From b04076fbf02083b0e76ced771d9fcfdffb1fea4f Mon Sep 17 00:00:00 2001 From: Natty Date: Thu, 20 Jul 2023 22:57:13 +0200 Subject: [PATCH] Removed calckey-js and removed channels --- Dockerfile | 2 - package.json | 1 - packages/README.md | 9 - packages/backend/package.json | 6 +- packages/backend/src/db/meilisearch.ts | 12 +- packages/backend/src/db/postgre.ts | 6 - packages/backend/src/misc/api-permissions.ts | 2 - packages/backend/src/misc/schema.ts | 52 +- .../src/models/entities/channel-following.ts | 50 - .../models/entities/channel-note-pining.ts | 42 - .../backend/src/models/entities/channel.ts | 83 - packages/backend/src/models/entities/meta.ts | 10 +- .../src/models/entities/note-unread.ts | 24 +- packages/backend/src/models/entities/note.ts | 32 +- packages/backend/src/models/index.ts | 134 +- .../src/models/repositories/channel.ts | 55 - .../backend/src/models/repositories/note.ts | 53 +- .../backend/src/models/repositories/user.ts | 48 +- packages/backend/src/models/schema/channel.ts | 61 - packages/backend/src/models/schema/note.ts | 29 - .../queue/processors/db/import-masto-post.ts | 13 +- .../api/common/generate-channel-query.ts | 35 - packages/backend/src/server/api/endpoints.ts | 20 - .../server/api/endpoints/channels/create.ts | 68 - .../server/api/endpoints/channels/featured.ts | 37 - .../server/api/endpoints/channels/follow.ts | 48 - .../server/api/endpoints/channels/followed.ts | 59 - .../server/api/endpoints/channels/owned.ts | 45 - .../server/api/endpoints/channels/search.ts | 69 - .../src/server/api/endpoints/channels/show.ts | 45 - .../server/api/endpoints/channels/timeline.ts | 84 - .../server/api/endpoints/channels/unfollow.ts | 45 - .../server/api/endpoints/channels/update.ts | 90 - .../src/server/api/endpoints/notes/create.ts | 37 +- .../src/server/api/endpoints/notes/edit.ts | 62 +- .../api/endpoints/notes/global-timeline.ts | 21 +- .../api/endpoints/notes/hybrid-timeline.ts | 26 +- .../api/endpoints/notes/local-timeline.ts | 26 +- .../endpoints/notes/recommended-timeline.ts | 26 +- .../server/api/endpoints/notes/timeline.ts | 24 +- .../backend/src/server/api/stream/channel.ts | 39 +- .../src/server/api/stream/channels/channel.ts | 84 - .../api/stream/channels/global-timeline.ts | 23 +- .../api/stream/channels/home-timeline.ts | 27 +- .../api/stream/channels/hybrid-timeline.ts | 38 +- .../src/server/api/stream/channels/index.ts | 2 - .../api/stream/channels/local-timeline.ts | 22 +- .../backend/src/server/api/stream/index.ts | 237 +- .../backend/src/server/api/stream/types.ts | 34 +- packages/backend/src/services/note/create.ts | 166 +- packages/backend/src/services/note/read.ts | 57 +- packages/backend/src/services/stream.ts | 70 +- packages/calckey-js/.editorconfig | 7 - packages/calckey-js/.gitignore | 113 - packages/calckey-js/.swcrc | 20 - packages/calckey-js/CHANGELOG.md | 29 - packages/calckey-js/LICENSE | 21 - packages/calckey-js/README.md | 9 - packages/calckey-js/api-extractor.json | 364 - packages/calckey-js/codecov.yml | 2 - packages/calckey-js/etc/calckey-js.api.json | 9814 ----------------- packages/calckey-js/etc/calckey-js.api.md | 2839 ----- packages/calckey-js/etc/misskey-js.api.md | 2681 ----- packages/calckey-js/jest.config.ts | 195 - .../calckey-js/markdown/calckey-js.acct.md | 14 - .../calckey-js.api.apiclient._constructor_.md | 24 - .../calckey-js.api.apiclient.credential.md | 11 - .../calckey-js.api.apiclient.fetch.md | 11 - .../markdown/calckey-js.api.apiclient.md | 32 - .../calckey-js.api.apiclient.origin.md | 11 - .../calckey-js.api.apiclient.request.md | 57 - .../markdown/calckey-js.api.apierror.md | 17 - .../markdown/calckey-js.api.fetchlike.md | 22 - .../markdown/calckey-js.api.isapierror.md | 22 - .../calckey-js/markdown/calckey-js.api.md | 25 - ...ckey-js.channelconnection._constructor_.md | 22 - .../calckey-js.channelconnection.channel.md | 11 - .../calckey-js.channelconnection.dispose.md | 15 - .../calckey-js.channelconnection.id.md | 11 - .../calckey-js.channelconnection.incount.md | 11 - .../markdown/calckey-js.channelconnection.md | 39 - .../calckey-js.channelconnection.name.md | 11 - .../calckey-js.channelconnection.outcount.md | 11 - .../calckey-js.channelconnection.send.md | 26 - .../calckey-js.channelconnection.stream.md | 11 - .../markdown/calckey-js.channels.md | 143 - .../markdown/calckey-js.endpoints.md | 1911 ---- .../markdown/calckey-js.entities.ad.md | 11 - .../calckey-js.entities.announcement.md | 21 - .../markdown/calckey-js.entities.antenna.md | 29 - .../markdown/calckey-js.entities.app.md | 11 - .../calckey-js.entities.authsession.md | 17 - .../markdown/calckey-js.entities.blocking.md | 18 - .../markdown/calckey-js.entities.channel.md | 15 - .../markdown/calckey-js.entities.clip.md | 11 - .../calckey-js.entities.customemoji.md | 17 - .../calckey-js.entities.datestring.md | 11 - ...ey-js.entities.detailedinstancemetadata.md | 15 - .../markdown/calckey-js.entities.drivefile.md | 26 - .../calckey-js.entities.drivefolder.md | 11 - .../markdown/calckey-js.entities.following.md | 18 - ...-js.entities.followingfolloweepopulated.md | 15 - ...-js.entities.followingfollowerpopulated.md | 15 - .../calckey-js.entities.followrequest.md | 17 - .../calckey-js.entities.gallerypost.md | 11 - .../markdown/calckey-js.entities.id.md | 11 - .../markdown/calckey-js.entities.instance.md | 40 - .../calckey-js.entities.instancemetadata.md | 15 - ...alckey-js.entities.liteinstancemetadata.md | 46 - .../markdown/calckey-js.entities.md | 51 - .../calckey-js.entities.medetailed.md | 40 - .../calckey-js.entities.messagingmessage.md | 27 - .../markdown/calckey-js.entities.note.md | 51 - .../calckey-js.entities.notefavorite.md | 18 - .../calckey-js.entities.notereaction.md | 18 - .../calckey-js.entities.notification.md | 82 - .../calckey-js.entities.origintype.md | 11 - .../markdown/calckey-js.entities.page.md | 33 - .../markdown/calckey-js.entities.pageevent.md | 19 - .../calckey-js.entities.serverinfo.md | 24 - .../markdown/calckey-js.entities.signin.md | 19 - .../markdown/calckey-js.entities.stats.md | 19 - .../markdown/calckey-js.entities.user.md | 13 - .../calckey-js.entities.userdetailed.md | 56 - .../markdown/calckey-js.entities.usergroup.md | 11 - .../markdown/calckey-js.entities.userlist.md | 18 - .../markdown/calckey-js.entities.userlite.md | 35 - .../calckey-js.entities.usersorting.md | 17 - .../markdown/calckey-js.ffvisibility.md | 11 - packages/calckey-js/markdown/calckey-js.md | 43 - .../markdown/calckey-js.mutednotereasons.md | 16 - .../markdown/calckey-js.notevisibilities.md | 16 - .../markdown/calckey-js.notificationtypes.md | 24 - .../markdown/calckey-js.permissions.md | 11 - .../calckey-js.stream._constructor_.md | 30 - .../markdown/calckey-js.stream.close.md | 15 - .../calckey-js.stream.disconnecttochannel.md | 22 - .../calckey-js/markdown/calckey-js.stream.md | 36 - ...alckey-js.stream.removesharedconnection.md | 22 - ...ey-js.stream.removesharedconnectionpool.md | 22 - .../markdown/calckey-js.stream.send.md | 23 - .../markdown/calckey-js.stream.state.md | 11 - .../markdown/calckey-js.stream.usechannel.md | 28 - packages/calckey-js/markdown/index.md | 12 - packages/calckey-js/package.json | 50 - packages/calckey-js/src/acct.ts | 14 - packages/calckey-js/src/api.ts | 127 - packages/calckey-js/src/api.types.ts | 1094 -- packages/calckey-js/src/consts.ts | 60 - packages/calckey-js/src/entities.ts | 494 - packages/calckey-js/src/index.ts | 20 - packages/calckey-js/src/streaming.ts | 391 - packages/calckey-js/src/streaming.types.ts | 197 - packages/calckey-js/test-d/api.ts | 48 - packages/calckey-js/test-d/streaming.ts | 32 - packages/calckey-js/test/api.ts | 222 - packages/calckey-js/test/streaming.ts | 181 - packages/calckey-js/tsconfig.json | 20 - pnpm-lock.yaml | 2517 +---- pnpm-workspace.yaml | 3 +- rome.json | 22 - scripts/clean-all.js | 23 - scripts/clean.js | 16 - 163 files changed, 582 insertions(+), 27206 deletions(-) delete mode 100644 packages/README.md delete mode 100644 packages/backend/src/models/entities/channel-following.ts delete mode 100644 packages/backend/src/models/entities/channel-note-pining.ts delete mode 100644 packages/backend/src/models/entities/channel.ts delete mode 100644 packages/backend/src/models/repositories/channel.ts delete mode 100644 packages/backend/src/models/schema/channel.ts delete mode 100644 packages/backend/src/server/api/common/generate-channel-query.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/create.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/featured.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/follow.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/followed.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/owned.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/search.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/show.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/timeline.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/unfollow.ts delete mode 100644 packages/backend/src/server/api/endpoints/channels/update.ts delete mode 100644 packages/backend/src/server/api/stream/channels/channel.ts delete mode 100644 packages/calckey-js/.editorconfig delete mode 100644 packages/calckey-js/.gitignore delete mode 100644 packages/calckey-js/.swcrc delete mode 100644 packages/calckey-js/CHANGELOG.md delete mode 100644 packages/calckey-js/LICENSE delete mode 100644 packages/calckey-js/README.md delete mode 100644 packages/calckey-js/api-extractor.json delete mode 100644 packages/calckey-js/codecov.yml delete mode 100644 packages/calckey-js/etc/calckey-js.api.json delete mode 100644 packages/calckey-js/etc/calckey-js.api.md delete mode 100644 packages/calckey-js/etc/misskey-js.api.md delete mode 100644 packages/calckey-js/jest.config.ts delete mode 100644 packages/calckey-js/markdown/calckey-js.acct.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.apiclient._constructor_.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.apiclient.credential.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.apiclient.fetch.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.apiclient.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.apiclient.origin.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.apiclient.request.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.apierror.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.fetchlike.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.isapierror.md delete mode 100644 packages/calckey-js/markdown/calckey-js.api.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection._constructor_.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection.channel.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection.dispose.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection.id.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection.incount.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection.name.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection.outcount.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection.send.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channelconnection.stream.md delete mode 100644 packages/calckey-js/markdown/calckey-js.channels.md delete mode 100644 packages/calckey-js/markdown/calckey-js.endpoints.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.ad.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.announcement.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.antenna.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.app.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.authsession.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.blocking.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.channel.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.clip.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.customemoji.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.datestring.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.detailedinstancemetadata.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.drivefile.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.drivefolder.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.following.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.followingfolloweepopulated.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.followingfollowerpopulated.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.followrequest.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.gallerypost.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.id.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.instance.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.instancemetadata.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.liteinstancemetadata.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.medetailed.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.messagingmessage.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.note.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.notefavorite.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.notereaction.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.notification.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.origintype.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.page.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.pageevent.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.serverinfo.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.signin.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.stats.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.user.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.userdetailed.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.usergroup.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.userlist.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.userlite.md delete mode 100644 packages/calckey-js/markdown/calckey-js.entities.usersorting.md delete mode 100644 packages/calckey-js/markdown/calckey-js.ffvisibility.md delete mode 100644 packages/calckey-js/markdown/calckey-js.md delete mode 100644 packages/calckey-js/markdown/calckey-js.mutednotereasons.md delete mode 100644 packages/calckey-js/markdown/calckey-js.notevisibilities.md delete mode 100644 packages/calckey-js/markdown/calckey-js.notificationtypes.md delete mode 100644 packages/calckey-js/markdown/calckey-js.permissions.md delete mode 100644 packages/calckey-js/markdown/calckey-js.stream._constructor_.md delete mode 100644 packages/calckey-js/markdown/calckey-js.stream.close.md delete mode 100644 packages/calckey-js/markdown/calckey-js.stream.disconnecttochannel.md delete mode 100644 packages/calckey-js/markdown/calckey-js.stream.md delete mode 100644 packages/calckey-js/markdown/calckey-js.stream.removesharedconnection.md delete mode 100644 packages/calckey-js/markdown/calckey-js.stream.removesharedconnectionpool.md delete mode 100644 packages/calckey-js/markdown/calckey-js.stream.send.md delete mode 100644 packages/calckey-js/markdown/calckey-js.stream.state.md delete mode 100644 packages/calckey-js/markdown/calckey-js.stream.usechannel.md delete mode 100644 packages/calckey-js/markdown/index.md delete mode 100644 packages/calckey-js/package.json delete mode 100644 packages/calckey-js/src/acct.ts delete mode 100644 packages/calckey-js/src/api.ts delete mode 100644 packages/calckey-js/src/api.types.ts delete mode 100644 packages/calckey-js/src/consts.ts delete mode 100644 packages/calckey-js/src/entities.ts delete mode 100644 packages/calckey-js/src/index.ts delete mode 100644 packages/calckey-js/src/streaming.ts delete mode 100644 packages/calckey-js/src/streaming.types.ts delete mode 100644 packages/calckey-js/test-d/api.ts delete mode 100644 packages/calckey-js/test-d/streaming.ts delete mode 100644 packages/calckey-js/test/api.ts delete mode 100644 packages/calckey-js/test/streaming.ts delete mode 100644 packages/calckey-js/tsconfig.json delete mode 100644 rome.json diff --git a/Dockerfile b/Dockerfile index 40565b8244..a98b72a2bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ RUN apk add --no-cache --no-progress git alpine-sdk python3 nodejs-current npm v # Copy only the dependency-related files first, to cache efficiently COPY package.json pnpm*.yaml ./ COPY packages/backend/package.json packages/backend/package.json -COPY packages/calckey-js/package.json packages/calckey-js/package.json # Configure corepack and pnpm, and install dev mode dependencies for compilation RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile @@ -32,7 +31,6 @@ COPY . ./ # Copy node modules COPY --from=build /calckey/node_modules /calckey/node_modules COPY --from=build /calckey/packages/backend/node_modules /calckey/packages/backend/node_modules -COPY --from=build /calckey/packages/calckey-js/node_modules /calckey/packages/calckey-js/node_modules # Copy the finished compiled files COPY --from=build /calckey/packages/backend/built /calckey/packages/backend/built diff --git a/package.json b/package.json index 91568fcab3..37c7ad2687 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "cross-env": "7.0.3", "execa": "5.1.1", "install-peers": "^1.0.4", - "rome": "^12.1.3", "start-server-and-test": "1.15.2", "typescript": "4.9.4" } diff --git a/packages/README.md b/packages/README.md deleted file mode 100644 index 7d7c03e0b5..0000000000 --- a/packages/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# 📩 Packages - -This directory contains all of the packages Calckey uses. - -- `backend`: Main backend code written in TypeScript for NodeJS -- `backend/native-utils`: Backend code written in Rust, bound to NodeJS by [NAPI-RS](https://napi.rs/) -- `client`: Web interface written in Vue3 and TypeScript -- `sw`: Web [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) written in TypeScript -- `calckey-js`: TypeScript SDK for both backend and client, also published on [NPM](https://www.npmjs.com/package/calckey-js) for public use diff --git a/packages/backend/package.json b/packages/backend/package.json index 67254ab447..86f94c41b3 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -7,10 +7,7 @@ "start": "pnpm node ./built/index.js", "start:test": "NODE_ENV=test pnpm node ./built/index.js", "build": "pnpm swc src -d built -D", - "watch": "pnpm swc src -d built -D -w", - "lint": "pnpm rome check --apply *", - "test": "pnpm run mocha", - "format": "pnpm rome format * --write" + "watch": "pnpm swc src -d built -D -w" }, "optionalDependencies": { "@swc/core-android-arm64": "1.3.11" @@ -41,7 +38,6 @@ "blurhash": "1.1.5", "bull": "4.10.4", "cacheable-lookup": "7.0.0", - "calckey-js": "workspace:*", "cbor": "8.1.0", "chalk": "5.2.0", "chalk-template": "0.4.0", diff --git a/packages/backend/src/db/meilisearch.ts b/packages/backend/src/db/meilisearch.ts index 4a8985d080..6a82c38b90 100644 --- a/packages/backend/src/db/meilisearch.ts +++ b/packages/backend/src/db/meilisearch.ts @@ -1,11 +1,11 @@ -import { Health, Index, MeiliSearch, Stats } from "meilisearch"; -import { dbLogger } from "./logger.js"; +import {Health, Index, MeiliSearch, Stats} from "meilisearch"; +import {dbLogger} from "./logger.js"; import config from "@/config/index.js"; -import { Note } from "@/models/entities/note.js"; +import {Note} from "@/models/entities/note.js"; import * as url from "url"; -import { ILocalUser } from "@/models/entities/user.js"; -import { Followings, Users } from "@/models/index.js"; +import {ILocalUser} from "@/models/entities/user.js"; +import {Followings, Users} from "@/models/index.js"; const logger = dbLogger.createSubLogger("meilisearch", "gray", false); @@ -130,7 +130,6 @@ export type MeilisearchNote = { userId: string; userHost: string; userName: string; - channelId: string; mediaAttachment: string; createdAt: number; }; @@ -346,7 +345,6 @@ export default hasConfig note.userHost !== "" ? note.userHost : url.parse(config.host).host, - channelId: note.channelId ? note.channelId : "", mediaAttachment: attachmentType, userName: note.user?.username ?? "UNKNOWN", createdAt: note.createdAt.getTime() / 1000, // division by 1000 is necessary because Node returns in ms-accuracy diff --git a/packages/backend/src/db/postgre.ts b/packages/backend/src/db/postgre.ts index dcd21ce537..c673d8a814 100644 --- a/packages/backend/src/db/postgre.ts +++ b/packages/backend/src/db/postgre.ts @@ -60,9 +60,6 @@ import {PromoNote} from "@/models/entities/promo-note.js"; import {PromoRead} from "@/models/entities/promo-read.js"; import {Relay} from "@/models/entities/relay.js"; import {MutedNote} from "@/models/entities/muted-note.js"; -import {Channel} from "@/models/entities/channel.js"; -import {ChannelFollowing} from "@/models/entities/channel-following.js"; -import {ChannelNotePining} from "@/models/entities/channel-note-pining.js"; import {RegistryItem} from "@/models/entities/registry-item.js"; import {Ad} from "@/models/entities/ad.js"; import {PasswordResetRequest} from "@/models/entities/password-reset-request.js"; @@ -169,9 +166,6 @@ export const entities = [ PromoRead, Relay, MutedNote, - Channel, - ChannelFollowing, - ChannelNotePining, RegistryItem, Ad, PasswordResetRequest, diff --git a/packages/backend/src/misc/api-permissions.ts b/packages/backend/src/misc/api-permissions.ts index bb4a842693..73c748caf0 100644 --- a/packages/backend/src/misc/api-permissions.ts +++ b/packages/backend/src/misc/api-permissions.ts @@ -23,8 +23,6 @@ export const kinds = [ "read:page-likes", "read:user-groups", "write:user-groups", - "read:channels", - "write:channels", "read:gallery", "write:gallery", "read:gallery-likes", diff --git a/packages/backend/src/misc/schema.ts b/packages/backend/src/misc/schema.ts index 1be537141c..5c45802b8a 100644 --- a/packages/backend/src/misc/schema.ts +++ b/packages/backend/src/misc/schema.ts @@ -1,35 +1,34 @@ import { - packedUserLiteSchema, - packedUserDetailedNotMeOnlySchema, packedMeDetailedOnlySchema, - packedUserDetailedNotMeSchema, packedMeDetailedSchema, + packedUserDetailedNotMeOnlySchema, + packedUserDetailedNotMeSchema, packedUserDetailedSchema, + packedUserLiteSchema, packedUserSchema, } from "@/models/schema/user.js"; -import { packedNoteSchema } from "@/models/schema/note.js"; -import { packedUserListSchema } from "@/models/schema/user-list.js"; -import { packedAppSchema } from "@/models/schema/app.js"; -import { packedNotificationSchema } from "@/models/schema/notification.js"; -import { packedDriveFileSchema } from "@/models/schema/drive-file.js"; -import { packedDriveFolderSchema } from "@/models/schema/drive-folder.js"; -import { packedFollowingSchema } from "@/models/schema/following.js"; -import { packedMutingSchema } from "@/models/schema/muting.js"; -import { packedRenoteMutingSchema } from "@/models/schema/renote-muting.js"; -import { packedBlockingSchema } from "@/models/schema/blocking.js"; -import { packedNoteReactionSchema } from "@/models/schema/note-reaction.js"; -import { packedHashtagSchema } from "@/models/schema/hashtag.js"; -import { packedPageSchema } from "@/models/schema/page.js"; -import { packedUserGroupSchema } from "@/models/schema/user-group.js"; -import { packedNoteFavoriteSchema } from "@/models/schema/note-favorite.js"; -import { packedChannelSchema } from "@/models/schema/channel.js"; -import { packedAntennaSchema } from "@/models/schema/antenna.js"; -import { packedClipSchema } from "@/models/schema/clip.js"; -import { packedFederationInstanceSchema } from "@/models/schema/federation-instance.js"; -import { packedQueueCountSchema } from "@/models/schema/queue.js"; -import { packedGalleryPostSchema } from "@/models/schema/gallery-post.js"; -import { packedEmojiSchema } from "@/models/schema/emoji.js"; -import { packedNoteEdit } from "@/models/schema/note-edit.js"; +import {packedNoteSchema} from "@/models/schema/note.js"; +import {packedUserListSchema} from "@/models/schema/user-list.js"; +import {packedAppSchema} from "@/models/schema/app.js"; +import {packedNotificationSchema} from "@/models/schema/notification.js"; +import {packedDriveFileSchema} from "@/models/schema/drive-file.js"; +import {packedDriveFolderSchema} from "@/models/schema/drive-folder.js"; +import {packedFollowingSchema} from "@/models/schema/following.js"; +import {packedMutingSchema} from "@/models/schema/muting.js"; +import {packedRenoteMutingSchema} from "@/models/schema/renote-muting.js"; +import {packedBlockingSchema} from "@/models/schema/blocking.js"; +import {packedNoteReactionSchema} from "@/models/schema/note-reaction.js"; +import {packedHashtagSchema} from "@/models/schema/hashtag.js"; +import {packedPageSchema} from "@/models/schema/page.js"; +import {packedUserGroupSchema} from "@/models/schema/user-group.js"; +import {packedNoteFavoriteSchema} from "@/models/schema/note-favorite.js"; +import {packedAntennaSchema} from "@/models/schema/antenna.js"; +import {packedClipSchema} from "@/models/schema/clip.js"; +import {packedFederationInstanceSchema} from "@/models/schema/federation-instance.js"; +import {packedQueueCountSchema} from "@/models/schema/queue.js"; +import {packedGalleryPostSchema} from "@/models/schema/gallery-post.js"; +import {packedEmojiSchema} from "@/models/schema/emoji.js"; +import {packedNoteEdit} from "@/models/schema/note-edit.js"; export const refs = { UserLite: packedUserLiteSchema, @@ -56,7 +55,6 @@ export const refs = { Blocking: packedBlockingSchema, Hashtag: packedHashtagSchema, Page: packedPageSchema, - Channel: packedChannelSchema, QueueCount: packedQueueCountSchema, Antenna: packedAntennaSchema, Clip: packedClipSchema, diff --git a/packages/backend/src/models/entities/channel-following.ts b/packages/backend/src/models/entities/channel-following.ts deleted file mode 100644 index ee329fa50f..0000000000 --- a/packages/backend/src/models/entities/channel-following.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { - PrimaryColumn, - Entity, - Index, - JoinColumn, - Column, - ManyToOne, -} from "typeorm"; -import { User } from "./user.js"; -import { id } from "../id.js"; -import { Channel } from "./channel.js"; - -@Entity() -@Index(["followerId", "followeeId"], { unique: true }) -export class ChannelFollowing { - @PrimaryColumn(id()) - public id: string; - - @Index() - @Column("timestamp with time zone", { - comment: "The created date of the ChannelFollowing.", - }) - public createdAt: Date; - - @Index() - @Column({ - ...id(), - comment: "The followee channel ID.", - }) - public followeeId: Channel["id"]; - - @ManyToOne((type) => Channel, { - onDelete: "CASCADE", - }) - @JoinColumn() - public followee: Channel | null; - - @Index() - @Column({ - ...id(), - comment: "The follower user ID.", - }) - public followerId: User["id"]; - - @ManyToOne((type) => User, { - onDelete: "CASCADE", - }) - @JoinColumn() - public follower: User | null; -} diff --git a/packages/backend/src/models/entities/channel-note-pining.ts b/packages/backend/src/models/entities/channel-note-pining.ts deleted file mode 100644 index 67d1d48ccd..0000000000 --- a/packages/backend/src/models/entities/channel-note-pining.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { - PrimaryColumn, - Entity, - Index, - JoinColumn, - Column, - ManyToOne, -} from "typeorm"; -import { Note } from "./note.js"; -import { Channel } from "./channel.js"; -import { id } from "../id.js"; - -@Entity() -@Index(["channelId", "noteId"], { unique: true }) -export class ChannelNotePining { - @PrimaryColumn(id()) - public id: string; - - @Column("timestamp with time zone", { - comment: "The created date of the ChannelNotePining.", - }) - public createdAt: Date; - - @Index() - @Column(id()) - public channelId: Channel["id"]; - - @ManyToOne((type) => Channel, { - onDelete: "CASCADE", - }) - @JoinColumn() - public channel: Channel | null; - - @Column(id()) - public noteId: Note["id"]; - - @ManyToOne((type) => Note, { - onDelete: "CASCADE", - }) - @JoinColumn() - public note: Note | null; -} diff --git a/packages/backend/src/models/entities/channel.ts b/packages/backend/src/models/entities/channel.ts deleted file mode 100644 index ea22fed50b..0000000000 --- a/packages/backend/src/models/entities/channel.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { - PrimaryColumn, - Entity, - Index, - JoinColumn, - Column, - ManyToOne, -} from "typeorm"; -import { User } from "./user.js"; -import { id } from "../id.js"; -import { DriveFile } from "./drive-file.js"; - -@Entity() -export class Channel { - @PrimaryColumn(id()) - public id: string; - - @Index() - @Column("timestamp with time zone", { - comment: "The created date of the Channel.", - }) - public createdAt: Date; - - @Index() - @Column("timestamp with time zone", { - nullable: true, - }) - public lastNotedAt: Date | null; - - @Index() - @Column({ - ...id(), - nullable: true, - comment: "The owner ID.", - }) - public userId: User["id"] | null; - - @ManyToOne((type) => User, { - onDelete: "SET NULL", - }) - @JoinColumn() - public user: User | null; - - @Column("varchar", { - length: 128, - comment: "The name of the Channel.", - }) - public name: string; - - @Column("varchar", { - length: 2048, - nullable: true, - comment: "The description of the Channel.", - }) - public description: string | null; - - @Column({ - ...id(), - nullable: true, - comment: "The ID of banner Channel.", - }) - public bannerId: DriveFile["id"] | null; - - @ManyToOne((type) => DriveFile, { - onDelete: "SET NULL", - }) - @JoinColumn() - public banner: DriveFile | null; - - @Index() - @Column("integer", { - default: 0, - comment: "The count of notes.", - }) - public notesCount: number; - - @Index() - @Column("integer", { - default: 0, - comment: "The count of users.", - }) - public usersCount: number; -} diff --git a/packages/backend/src/models/entities/meta.ts b/packages/backend/src/models/entities/meta.ts index dd3c5b3b72..3b814e59df 100644 --- a/packages/backend/src/models/entities/meta.ts +++ b/packages/backend/src/models/entities/meta.ts @@ -1,7 +1,7 @@ -import { Entity, Column, PrimaryColumn, ManyToOne, JoinColumn } from "typeorm"; -import { id } from "../id.js"; -import { User } from "./user.js"; -import type { Clip } from "./clip.js"; +import {Column, Entity, JoinColumn, ManyToOne, PrimaryColumn} from "typeorm"; +import {id} from "../id.js"; +import {User} from "./user.js"; +import type {Clip} from "./clip.js"; @Entity() export class Meta { @@ -143,7 +143,7 @@ export class Meta { @Column("varchar", { length: 512, array: true, - default: "{/featured,/channels,/explore,/pages,/about-calckey}", + default: "{/featured,/explore,/pages,/about-calckey}", }) public pinnedPages: string[]; diff --git a/packages/backend/src/models/entities/note-unread.ts b/packages/backend/src/models/entities/note-unread.ts index 95695cbc8e..06356056cd 100644 --- a/packages/backend/src/models/entities/note-unread.ts +++ b/packages/backend/src/models/entities/note-unread.ts @@ -1,15 +1,7 @@ -import { - PrimaryColumn, - Entity, - Index, - JoinColumn, - Column, - ManyToOne, -} from "typeorm"; -import { User } from "./user.js"; -import { Note } from "./note.js"; -import { id } from "../id.js"; -import type { Channel } from "./channel.js"; +import {Column, Entity, Index, JoinColumn, ManyToOne, PrimaryColumn,} from "typeorm"; +import {User} from "./user.js"; +import {Note} from "./note.js"; +import {id} from "../id.js"; @Entity() @Index(["userId", "noteId"], { unique: true }) @@ -58,13 +50,5 @@ export class NoteUnread { comment: "[Denormalized]", }) public noteUserId: User["id"]; - - @Index() - @Column({ - ...id(), - nullable: true, - comment: "[Denormalized]", - }) - public noteChannelId: Channel["id"] | null; //#endregion } diff --git a/packages/backend/src/models/entities/note.ts b/packages/backend/src/models/entities/note.ts index edcfdb635e..605dcc458d 100644 --- a/packages/backend/src/models/entities/note.ts +++ b/packages/backend/src/models/entities/note.ts @@ -1,16 +1,8 @@ -import { - Entity, - Index, - JoinColumn, - Column, - PrimaryColumn, - ManyToOne, -} from "typeorm"; -import { User } from "./user.js"; -import type { DriveFile } from "./drive-file.js"; -import { id } from "../id.js"; -import { noteVisibilities } from "../../types.js"; -import { Channel } from "./channel.js"; +import {Column, Entity, Index, JoinColumn, ManyToOne, PrimaryColumn,} from "typeorm"; +import {User} from "./user.js"; +import type {DriveFile} from "./drive-file.js"; +import {id} from "../id.js"; +import {noteVisibilities} from "../../types.js"; @Entity() @Index("IDX_NOTE_TAGS", { synchronize: false }) @@ -200,20 +192,6 @@ export class Note { }) public hasPoll: boolean; - @Index() - @Column({ - ...id(), - nullable: true, - comment: "The ID of source channel.", - }) - public channelId: Channel["id"] | null; - - @ManyToOne((type) => Channel, { - onDelete: "CASCADE", - }) - @JoinColumn() - public channel: Channel | null; - //#region Denormalized fields @Index() @Column("varchar", { diff --git a/packages/backend/src/models/index.ts b/packages/backend/src/models/index.ts index 27f1973b19..c6f3499a57 100644 --- a/packages/backend/src/models/index.ts +++ b/packages/backend/src/models/index.ts @@ -1,72 +1,67 @@ -import {} from "typeorm"; -import { db } from "@/db/postgre.js"; +import {db} from "@/db/postgre.js"; -import { Announcement } from "./entities/announcement.js"; -import { AnnouncementRead } from "./entities/announcement-read.js"; -import { Instance } from "./entities/instance.js"; -import { Poll } from "./entities/poll.js"; -import { PollVote } from "./entities/poll-vote.js"; -import { Meta } from "./entities/meta.js"; -import { SwSubscription } from "./entities/sw-subscription.js"; -import { NoteWatching } from "./entities/note-watching.js"; -import { NoteThreadMuting } from "./entities/note-thread-muting.js"; -import { NoteUnread } from "./entities/note-unread.js"; -import { RegistrationTicket } from "./entities/registration-tickets.js"; -import { UserRepository } from "./repositories/user.js"; -import { NoteRepository } from "./repositories/note.js"; -import { DriveFileRepository } from "./repositories/drive-file.js"; -import { DriveFolderRepository } from "./repositories/drive-folder.js"; -import { AccessToken } from "./entities/access-token.js"; -import { UserNotePining } from "./entities/user-note-pining.js"; -import { SigninRepository } from "./repositories/signin.js"; -import { UserListRepository } from "./repositories/user-list.js"; -import { UserListJoining } from "./entities/user-list-joining.js"; -import { UserGroupRepository } from "./repositories/user-group.js"; -import { UserGroupJoining } from "./entities/user-group-joining.js"; -import { UserGroupInvitationRepository } from "./repositories/user-group-invitation.js"; -import { FollowRequestRepository } from "./repositories/follow-request.js"; -import { MutingRepository } from "./repositories/muting.js"; -import { RenoteMutingRepository } from "./repositories/renote-muting.js"; -import { BlockingRepository } from "./repositories/blocking.js"; -import { NoteReactionRepository } from "./repositories/note-reaction.js"; -import { NotificationRepository } from "./repositories/notification.js"; -import { NoteFavoriteRepository } from "./repositories/note-favorite.js"; -import { UserPublickey } from "./entities/user-publickey.js"; -import { UserKeypair } from "./entities/user-keypair.js"; -import { AppRepository } from "./repositories/app.js"; -import { FollowingRepository } from "./repositories/following.js"; -import { AbuseUserReportRepository } from "./repositories/abuse-user-report.js"; -import { AuthSessionRepository } from "./repositories/auth-session.js"; -import { UserProfile } from "./entities/user-profile.js"; -import { AttestationChallenge } from "./entities/attestation-challenge.js"; -import { UserSecurityKey } from "./entities/user-security-key.js"; -import { HashtagRepository } from "./repositories/hashtag.js"; -import { PageRepository } from "./repositories/page.js"; -import { PageLikeRepository } from "./repositories/page-like.js"; -import { GalleryPostRepository } from "./repositories/gallery-post.js"; -import { GalleryLikeRepository } from "./repositories/gallery-like.js"; -import { ModerationLogRepository } from "./repositories/moderation-logs.js"; -import { UsedUsername } from "./entities/used-username.js"; -import { ClipRepository } from "./repositories/clip.js"; -import { ClipNote } from "./entities/clip-note.js"; -import { AntennaRepository } from "./repositories/antenna.js"; -import { AntennaNote } from "./entities/antenna-note.js"; -import { PromoNote } from "./entities/promo-note.js"; -import { PromoRead } from "./entities/promo-read.js"; -import { EmojiRepository } from "./repositories/emoji.js"; -import { RelayRepository } from "./repositories/relay.js"; -import { ChannelRepository } from "./repositories/channel.js"; -import { MutedNote } from "./entities/muted-note.js"; -import { ChannelFollowing } from "./entities/channel-following.js"; -import { ChannelNotePining } from "./entities/channel-note-pining.js"; -import { RegistryItem } from "./entities/registry-item.js"; -import { Ad } from "./entities/ad.js"; -import { PasswordResetRequest } from "./entities/password-reset-request.js"; -import { UserPending } from "./entities/user-pending.js"; -import { InstanceRepository } from "./repositories/instance.js"; -import { Webhook } from "./entities/webhook.js"; -import { UserIp } from "./entities/user-ip.js"; -import { NoteEdit } from "./entities/note-edit.js"; +import {Announcement} from "./entities/announcement.js"; +import {AnnouncementRead} from "./entities/announcement-read.js"; +import {Poll} from "./entities/poll.js"; +import {PollVote} from "./entities/poll-vote.js"; +import {Meta} from "./entities/meta.js"; +import {SwSubscription} from "./entities/sw-subscription.js"; +import {NoteWatching} from "./entities/note-watching.js"; +import {NoteThreadMuting} from "./entities/note-thread-muting.js"; +import {NoteUnread} from "./entities/note-unread.js"; +import {RegistrationTicket} from "./entities/registration-tickets.js"; +import {UserRepository} from "./repositories/user.js"; +import {NoteRepository} from "./repositories/note.js"; +import {DriveFileRepository} from "./repositories/drive-file.js"; +import {DriveFolderRepository} from "./repositories/drive-folder.js"; +import {AccessToken} from "./entities/access-token.js"; +import {UserNotePining} from "./entities/user-note-pining.js"; +import {SigninRepository} from "./repositories/signin.js"; +import {UserListRepository} from "./repositories/user-list.js"; +import {UserListJoining} from "./entities/user-list-joining.js"; +import {UserGroupRepository} from "./repositories/user-group.js"; +import {UserGroupJoining} from "./entities/user-group-joining.js"; +import {UserGroupInvitationRepository} from "./repositories/user-group-invitation.js"; +import {FollowRequestRepository} from "./repositories/follow-request.js"; +import {MutingRepository} from "./repositories/muting.js"; +import {RenoteMutingRepository} from "./repositories/renote-muting.js"; +import {BlockingRepository} from "./repositories/blocking.js"; +import {NoteReactionRepository} from "./repositories/note-reaction.js"; +import {NotificationRepository} from "./repositories/notification.js"; +import {NoteFavoriteRepository} from "./repositories/note-favorite.js"; +import {UserPublickey} from "./entities/user-publickey.js"; +import {UserKeypair} from "./entities/user-keypair.js"; +import {AppRepository} from "./repositories/app.js"; +import {FollowingRepository} from "./repositories/following.js"; +import {AbuseUserReportRepository} from "./repositories/abuse-user-report.js"; +import {AuthSessionRepository} from "./repositories/auth-session.js"; +import {UserProfile} from "./entities/user-profile.js"; +import {AttestationChallenge} from "./entities/attestation-challenge.js"; +import {UserSecurityKey} from "./entities/user-security-key.js"; +import {HashtagRepository} from "./repositories/hashtag.js"; +import {PageRepository} from "./repositories/page.js"; +import {PageLikeRepository} from "./repositories/page-like.js"; +import {GalleryPostRepository} from "./repositories/gallery-post.js"; +import {GalleryLikeRepository} from "./repositories/gallery-like.js"; +import {ModerationLogRepository} from "./repositories/moderation-logs.js"; +import {UsedUsername} from "./entities/used-username.js"; +import {ClipRepository} from "./repositories/clip.js"; +import {ClipNote} from "./entities/clip-note.js"; +import {AntennaRepository} from "./repositories/antenna.js"; +import {AntennaNote} from "./entities/antenna-note.js"; +import {PromoNote} from "./entities/promo-note.js"; +import {PromoRead} from "./entities/promo-read.js"; +import {EmojiRepository} from "./repositories/emoji.js"; +import {RelayRepository} from "./repositories/relay.js"; +import {MutedNote} from "./entities/muted-note.js"; +import {RegistryItem} from "./entities/registry-item.js"; +import {Ad} from "./entities/ad.js"; +import {PasswordResetRequest} from "./entities/password-reset-request.js"; +import {UserPending} from "./entities/user-pending.js"; +import {InstanceRepository} from "./repositories/instance.js"; +import {Webhook} from "./entities/webhook.js"; +import {UserIp} from "./entities/user-ip.js"; +import {NoteEdit} from "./entities/note-edit.js"; export const Announcements = db.getRepository(Announcement); export const AnnouncementReads = db.getRepository(AnnouncementRead); @@ -126,9 +121,6 @@ export const PromoNotes = db.getRepository(PromoNote); export const PromoReads = db.getRepository(PromoRead); export const Relays = RelayRepository; export const MutedNotes = db.getRepository(MutedNote); -export const Channels = ChannelRepository; -export const ChannelFollowings = db.getRepository(ChannelFollowing); -export const ChannelNotePinings = db.getRepository(ChannelNotePining); export const RegistryItems = db.getRepository(RegistryItem); export const Webhooks = db.getRepository(Webhook); export const Ads = db.getRepository(Ad); diff --git a/packages/backend/src/models/repositories/channel.ts b/packages/backend/src/models/repositories/channel.ts deleted file mode 100644 index 7800a65940..0000000000 --- a/packages/backend/src/models/repositories/channel.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { db } from "@/db/postgre.js"; -import { Channel } from "@/models/entities/channel.js"; -import type { Packed } from "@/misc/schema.js"; -import { DriveFiles, ChannelFollowings, NoteUnreads } from "../index.js"; -import type { User } from "@/models/entities/user.js"; - -export const ChannelRepository = db.getRepository(Channel).extend({ - async pack( - src: Channel["id"] | Channel, - me?: { id: User["id"] } | null | undefined, - ): Promise> { - const channel = - typeof src === "object" ? src : await this.findOneByOrFail({ id: src }); - const meId = me ? me.id : null; - - const banner = channel.bannerId - ? await DriveFiles.findOneBy({ id: channel.bannerId }) - : null; - - const hasUnreadNote = meId - ? (await NoteUnreads.findOneBy({ - noteChannelId: channel.id, - userId: meId, - })) != null - : undefined; - - const following = meId - ? await ChannelFollowings.findOneBy({ - followerId: meId, - followeeId: channel.id, - }) - : null; - - return { - id: channel.id, - createdAt: channel.createdAt.toISOString(), - lastNotedAt: channel.lastNotedAt - ? channel.lastNotedAt.toISOString() - : null, - name: channel.name, - description: channel.description, - userId: channel.userId, - bannerUrl: banner ? DriveFiles.getPublicUrl(banner, false) : null, - usersCount: channel.usersCount, - notesCount: channel.notesCount, - - ...(me - ? { - isFollowing: following != null, - hasUnreadNote, - } - : {}), - }; - }, -}); diff --git a/packages/backend/src/models/repositories/note.ts b/packages/backend/src/models/repositories/note.ts index 453179bd6f..3f0b231b9c 100644 --- a/packages/backend/src/models/repositories/note.ts +++ b/packages/backend/src/models/repositories/note.ts @@ -1,32 +1,16 @@ -import { In } from "typeorm"; +import {In} from "typeorm"; import * as mfm from "mfm-js"; -import { Note } from "@/models/entities/note.js"; -import type { User } from "@/models/entities/user.js"; -import { - Users, - PollVotes, - DriveFiles, - NoteReactions, - Followings, - Polls, - Channels, -} from "../index.js"; -import type { Packed } from "@/misc/schema.js"; -import { nyaize } from "@/misc/nyaize.js"; -import { awaitAll } from "@/prelude/await-all.js"; -import { - convertLegacyReaction, - convertLegacyReactions, - decodeReaction, -} from "@/misc/reaction-lib.js"; -import type { NoteReaction } from "@/models/entities/note-reaction.js"; -import { - aggregateNoteEmojis, - populateEmojis, - prefetchEmojis, -} from "@/misc/populate-emojis.js"; -import { db } from "@/db/postgre.js"; -import { IdentifiableError } from "@/misc/identifiable-error.js"; +import {Note} from "@/models/entities/note.js"; +import type {User} from "@/models/entities/user.js"; +import {DriveFiles, Followings, NoteReactions, Polls, PollVotes, Users,} from "../index.js"; +import type {Packed} from "@/misc/schema.js"; +import {nyaize} from "@/misc/nyaize.js"; +import {awaitAll} from "@/prelude/await-all.js"; +import {convertLegacyReaction, convertLegacyReactions, decodeReaction,} from "@/misc/reaction-lib.js"; +import type {NoteReaction} from "@/models/entities/note-reaction.js"; +import {aggregateNoteEmojis, populateEmojis, prefetchEmojis,} from "@/misc/populate-emojis.js"; +import {db} from "@/db/postgre.js"; +import {IdentifiableError} from "@/misc/identifiable-error.js"; export async function populatePoll(note: Note, meId: User["id"] | null) { const poll = await Polls.findOneByOrFail({ noteId: note.id }); @@ -186,12 +170,6 @@ export const NoteRepository = db.getRepository(Note).extend({ }`; } - const channel = note.channelId - ? note.channel - ? note.channel - : await Channels.findOneBy({ id: note.channelId }) - : null; - const reactionEmojiNames = Object.keys(note.reactions) .filter((x) => x?.startsWith(":")) .map((x) => decodeReaction(x).reaction) @@ -225,13 +203,6 @@ export const NoteRepository = db.getRepository(Note).extend({ files: DriveFiles.packMany(note.fileIds), replyId: note.replyId, renoteId: note.renoteId, - channelId: note.channelId || undefined, - channel: channel - ? { - id: channel.id, - name: channel.name, - } - : undefined, mentions: note.mentions.length > 0 ? note.mentions : undefined, uri: note.uri || undefined, url: note.url || undefined, diff --git a/packages/backend/src/models/repositories/user.ts b/packages/backend/src/models/repositories/user.ts index b2e04e19dc..a3c8a98aa8 100644 --- a/packages/backend/src/models/repositories/user.ts +++ b/packages/backend/src/models/repositories/user.ts @@ -1,43 +1,40 @@ -import { URL } from "url"; -import { In, Not } from "typeorm"; +import {In, Not} from "typeorm"; import Ajv from "ajv"; -import type { ILocalUser, IRemoteUser } from "@/models/entities/user.js"; -import { User } from "@/models/entities/user.js"; +import type {ILocalUser, IRemoteUser} from "@/models/entities/user.js"; +import {User} from "@/models/entities/user.js"; import config from "@/config/index.js"; -import type { Packed } from "@/misc/schema.js"; -import type { Promiseable } from "@/prelude/await-all.js"; -import { awaitAll } from "@/prelude/await-all.js"; -import { populateEmojis } from "@/misc/populate-emojis.js"; -import { getAntennas } from "@/misc/antenna-cache.js"; -import { USER_ACTIVE_THRESHOLD, USER_ONLINE_THRESHOLD } from "@/const.js"; -import { Cache } from "@/misc/cache.js"; -import { db } from "@/db/postgre.js"; -import { isActor, getApId } from "@/remote/activitypub/type.js"; +import type {Packed} from "@/misc/schema.js"; +import type {Promiseable} from "@/prelude/await-all.js"; +import {awaitAll} from "@/prelude/await-all.js"; +import {populateEmojis} from "@/misc/populate-emojis.js"; +import {getAntennas} from "@/misc/antenna-cache.js"; +import {USER_ACTIVE_THRESHOLD, USER_ONLINE_THRESHOLD} from "@/const.js"; +import {Cache} from "@/misc/cache.js"; +import {db} from "@/db/postgre.js"; +import {getApId, isActor} from "@/remote/activitypub/type.js"; import DbResolver from "@/remote/activitypub/db-resolver.js"; import Resolver from "@/remote/activitypub/resolver.js"; -import { createPerson } from "@/remote/activitypub/models/person.js"; +import {createPerson} from "@/remote/activitypub/models/person.js"; import { AnnouncementReads, Announcements, AntennaNotes, Blockings, - ChannelFollowings, DriveFiles, Followings, FollowRequests, Instances, Mutings, - RenoteMutings, Notes, NoteUnreads, Notifications, Pages, - UserGroupJoinings, + RenoteMutings, UserNotePinings, UserProfiles, UserSecurityKeys, } from "../index.js"; -import type { Instance } from "../entities/instance.js"; +import type {Instance} from "../entities/instance.js"; const userInstanceCache = new Cache(1000 * 60 * 60 * 3); @@ -238,20 +235,6 @@ export const UserRepository = db.getRepository(User).extend({ } }, - async getHasUnreadChannel(userId: User["id"]): Promise { - const channels = await ChannelFollowings.findBy({ followerId: userId }); - - const unread = - channels.length > 0 - ? await NoteUnreads.findOneBy({ - userId: userId, - noteChannelId: In(channels.map((x) => x.followeeId)), - }) - : null; - - return unread != null; - }, - async getHasUnreadNotification(userId: User["id"]): Promise { const mute = await Mutings.findBy({ muterId: userId, @@ -518,7 +501,6 @@ export const UserRepository = db.getRepository(User).extend({ }).then((count) => count > 0), hasUnreadAnnouncement: this.getHasUnreadAnnouncement(user.id), hasUnreadAntenna: this.getHasUnreadAntenna(user.id), - hasUnreadChannel: this.getHasUnreadChannel(user.id), hasUnreadNotification: this.getHasUnreadNotification(user.id), hasPendingReceivedFollowRequest: this.getHasPendingReceivedFollowRequest(user.id), diff --git a/packages/backend/src/models/schema/channel.ts b/packages/backend/src/models/schema/channel.ts deleted file mode 100644 index 67833cb0dd..0000000000 --- a/packages/backend/src/models/schema/channel.ts +++ /dev/null @@ -1,61 +0,0 @@ -export const packedChannelSchema = { - type: "object", - properties: { - id: { - type: "string", - optional: false, - nullable: false, - format: "id", - example: "xxxxxxxxxx", - }, - createdAt: { - type: "string", - optional: false, - nullable: false, - format: "date-time", - }, - lastNotedAt: { - type: "string", - optional: false, - nullable: true, - format: "date-time", - }, - name: { - type: "string", - optional: false, - nullable: false, - }, - description: { - type: "string", - nullable: true, - optional: false, - }, - bannerUrl: { - type: "string", - format: "url", - nullable: true, - optional: false, - }, - notesCount: { - type: "number", - nullable: false, - optional: false, - }, - usersCount: { - type: "number", - nullable: false, - optional: false, - }, - isFollowing: { - type: "boolean", - optional: true, - nullable: false, - }, - userId: { - type: "string", - nullable: true, - optional: false, - format: "id", - }, - }, -} as const; diff --git a/packages/backend/src/models/schema/note.ts b/packages/backend/src/models/schema/note.ts index e17f054e8e..76ae412fa7 100644 --- a/packages/backend/src/models/schema/note.ts +++ b/packages/backend/src/models/schema/note.ts @@ -126,35 +126,6 @@ export const packedNoteSchema = { optional: true, nullable: true, }, - channelId: { - type: "string", - optional: true, - nullable: true, - format: "id", - example: "xxxxxxxxxx", - }, - channel: { - type: "object", - optional: true, - nullable: true, - items: { - type: "object", - optional: false, - nullable: false, - properties: { - id: { - type: "string", - optional: false, - nullable: false, - }, - name: { - type: "string", - optional: false, - nullable: true, - }, - }, - }, - }, localOnly: { type: "boolean", optional: true, diff --git a/packages/backend/src/queue/processors/db/import-masto-post.ts b/packages/backend/src/queue/processors/db/import-masto-post.ts index 317ba7b1bd..9c1b520071 100644 --- a/packages/backend/src/queue/processors/db/import-masto-post.ts +++ b/packages/backend/src/queue/processors/db/import-masto-post.ts @@ -1,11 +1,11 @@ import create from "@/services/note/create.js"; -import { Users } from "@/models/index.js"; -import type { DbUserImportMastoPostJobData } from "@/queue/types.js"; -import { queueLogger } from "../../logger.js"; +import {Users} from "@/models/index.js"; +import type {DbUserImportMastoPostJobData} from "@/queue/types.js"; +import {queueLogger} from "../../logger.js"; import type Bull from "bull"; -import { htmlToMfm } from "@/remote/activitypub/misc/html-to-mfm.js"; -import { resolveNote } from "@/remote/activitypub/models/note.js"; -import { Note } from "@/models/entities/note.js"; +import {htmlToMfm} from "@/remote/activitypub/misc/html-to-mfm.js"; +import {resolveNote} from "@/remote/activitypub/models/note.js"; +import {Note} from "@/models/entities/note.js"; const logger = queueLogger.createSubLogger("import-masto-post"); @@ -54,7 +54,6 @@ export async function importMastoPost( localOnly: false, visibility: "hidden", visibleUsers: [], - channel: null, apMentions: new Array(0), apHashtags: undefined, apEmojis: undefined, diff --git a/packages/backend/src/server/api/common/generate-channel-query.ts b/packages/backend/src/server/api/common/generate-channel-query.ts deleted file mode 100644 index 318062266e..0000000000 --- a/packages/backend/src/server/api/common/generate-channel-query.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { User } from "@/models/entities/user.js"; -import { ChannelFollowings } from "@/models/index.js"; -import type { SelectQueryBuilder } from "typeorm"; -import { Brackets } from "typeorm"; - -export function generateChannelQuery( - q: SelectQueryBuilder, - me?: { id: User["id"] } | null, -) { - if (me == null) { - q.andWhere("note.channelId IS NULL"); - } else { - q.leftJoinAndSelect("note.channel", "channel"); - - const channelFollowingQuery = ChannelFollowings.createQueryBuilder( - "channelFollowing", - ) - .select("channelFollowing.followeeId") - .where("channelFollowing.followerId = :followerId", { - followerId: me.id, - }); - - q.andWhere( - new Brackets((qb) => { - qb - // ăƒăƒŁăƒłăƒăƒ«ăźăƒŽăƒŒăƒˆă§ăŻăȘい - .where("note.channelId IS NULL") - // ăŸăŸăŻè‡Șćˆ†ăŒăƒ•ă‚©ăƒ­ăƒŒă—ăŠă„ă‚‹ăƒăƒŁăƒłăƒăƒ«ăźăƒŽăƒŒăƒˆ - .orWhere(`note.channelId IN (${channelFollowingQuery.getQuery()})`); - }), - ); - - q.setParameters(channelFollowingQuery.getParameters()); - } -} diff --git a/packages/backend/src/server/api/endpoints.ts b/packages/backend/src/server/api/endpoints.ts index 1050a3cc5b..4ca389fd2c 100644 --- a/packages/backend/src/server/api/endpoints.ts +++ b/packages/backend/src/server/api/endpoints.ts @@ -86,16 +86,6 @@ import * as ep___auth_session_userkey from "./endpoints/auth/session/userkey.js" import * as ep___blocking_create from "./endpoints/blocking/create.js"; import * as ep___blocking_delete from "./endpoints/blocking/delete.js"; import * as ep___blocking_list from "./endpoints/blocking/list.js"; -import * as ep___channels_create from "./endpoints/channels/create.js"; -import * as ep___channels_featured from "./endpoints/channels/featured.js"; -import * as ep___channels_follow from "./endpoints/channels/follow.js"; -import * as ep___channels_followed from "./endpoints/channels/followed.js"; -import * as ep___channels_owned from "./endpoints/channels/owned.js"; -import * as ep___channels_search from "./endpoints/channels/search.js"; -import * as ep___channels_show from "./endpoints/channels/show.js"; -import * as ep___channels_timeline from "./endpoints/channels/timeline.js"; -import * as ep___channels_unfollow from "./endpoints/channels/unfollow.js"; -import * as ep___channels_update from "./endpoints/channels/update.js"; import * as ep___charts_activeUsers from "./endpoints/charts/active-users.js"; import * as ep___charts_apRequest from "./endpoints/charts/ap-request.js"; import * as ep___charts_drive from "./endpoints/charts/drive.js"; @@ -432,16 +422,6 @@ const eps = [ ["blocking/create", ep___blocking_create], ["blocking/delete", ep___blocking_delete], ["blocking/list", ep___blocking_list], - ["channels/create", ep___channels_create], - ["channels/featured", ep___channels_featured], - ["channels/follow", ep___channels_follow], - ["channels/followed", ep___channels_followed], - ["channels/owned", ep___channels_owned], - ["channels/search", ep___channels_search], - ["channels/show", ep___channels_show], - ["channels/timeline", ep___channels_timeline], - ["channels/unfollow", ep___channels_unfollow], - ["channels/update", ep___channels_update], ["charts/active-users", ep___charts_activeUsers], ["charts/ap-request", ep___charts_apRequest], ["charts/drive", ep___charts_drive], diff --git a/packages/backend/src/server/api/endpoints/channels/create.ts b/packages/backend/src/server/api/endpoints/channels/create.ts deleted file mode 100644 index 26a3448b2b..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/create.ts +++ /dev/null @@ -1,68 +0,0 @@ -import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { Channels, DriveFiles } from "@/models/index.js"; -import type { Channel } from "@/models/entities/channel.js"; -import { genId } from "@/misc/gen-id.js"; - -export const meta = { - tags: ["channels"], - - requireCredential: true, - - kind: "write:channels", - - res: { - type: "object", - optional: false, - nullable: false, - ref: "Channel", - }, - - errors: { - noSuchFile: { - message: "No such file.", - code: "NO_SUCH_FILE", - id: "cd1e9f3e-5a12-4ab4-96f6-5d0a2cc32050", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: { - name: { type: "string", minLength: 1, maxLength: 128 }, - description: { - type: "string", - nullable: true, - minLength: 1, - maxLength: 2048, - }, - bannerId: { type: "string", format: "misskey:id", nullable: true }, - }, - required: ["name"], -} as const; - -export default define(meta, paramDef, async (ps, user) => { - let banner = null; - if (ps.bannerId != null) { - banner = await DriveFiles.findOneBy({ - id: ps.bannerId, - userId: user.id, - }); - - if (banner == null) { - throw new ApiError(meta.errors.noSuchFile); - } - } - - const channel = await Channels.insert({ - id: genId(), - createdAt: new Date(), - userId: user.id, - name: ps.name, - description: ps.description || null, - bannerId: banner ? banner.id : null, - } as Channel).then((x) => Channels.findOneByOrFail(x.identifiers[0])); - - return await Channels.pack(channel, user); -}); diff --git a/packages/backend/src/server/api/endpoints/channels/featured.ts b/packages/backend/src/server/api/endpoints/channels/featured.ts deleted file mode 100644 index 06e0e850fd..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/featured.ts +++ /dev/null @@ -1,37 +0,0 @@ -import define from "../../define.js"; -import { Channels } from "@/models/index.js"; - -export const meta = { - tags: ["channels"], - - requireCredential: false, - requireCredentialPrivateMode: true, - - res: { - type: "array", - optional: false, - nullable: false, - items: { - type: "object", - optional: false, - nullable: false, - ref: "Channel", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: {}, - required: [], -} as const; - -export default define(meta, paramDef, async (ps, me) => { - const query = Channels.createQueryBuilder("channel") - .where("channel.lastNotedAt IS NOT NULL") - .orderBy("channel.lastNotedAt", "DESC"); - - const channels = await query.take(10).getMany(); - - return await Promise.all(channels.map((x) => Channels.pack(x, me))); -}); diff --git a/packages/backend/src/server/api/endpoints/channels/follow.ts b/packages/backend/src/server/api/endpoints/channels/follow.ts deleted file mode 100644 index de0554383e..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/follow.ts +++ /dev/null @@ -1,48 +0,0 @@ -import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { Channels, ChannelFollowings } from "@/models/index.js"; -import { genId } from "@/misc/gen-id.js"; -import { publishUserEvent } from "@/services/stream.js"; - -export const meta = { - tags: ["channels"], - - requireCredential: true, - - kind: "write:channels", - - errors: { - noSuchChannel: { - message: "No such channel.", - code: "NO_SUCH_CHANNEL", - id: "c0031718-d573-4e85-928e-10039f1fbb68", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: { - channelId: { type: "string", format: "misskey:id" }, - }, - required: ["channelId"], -} as const; - -export default define(meta, paramDef, async (ps, user) => { - const channel = await Channels.findOneBy({ - id: ps.channelId, - }); - - if (channel == null) { - throw new ApiError(meta.errors.noSuchChannel); - } - - await ChannelFollowings.insert({ - id: genId(), - createdAt: new Date(), - followerId: user.id, - followeeId: channel.id, - }); - - publishUserEvent(user.id, "followChannel", channel); -}); diff --git a/packages/backend/src/server/api/endpoints/channels/followed.ts b/packages/backend/src/server/api/endpoints/channels/followed.ts deleted file mode 100644 index 993a211f7e..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/followed.ts +++ /dev/null @@ -1,59 +0,0 @@ -import define from "../../define.js"; -import { Channels, ChannelFollowings } from "@/models/index.js"; - -export const meta = { - tags: ["channels", "account"], - - requireCredential: true, - - kind: "read:channels", - - res: { - type: "array", - optional: false, - nullable: false, - items: { - type: "object", - optional: false, - nullable: false, - ref: "Channel", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: { - sinceId: { type: "string", format: "misskey:id" }, - untilId: { type: "string", format: "misskey:id" }, - limit: { type: "integer", minimum: 1, maximum: 100, default: 5 }, - }, - required: [], -} as const; - -export default define(meta, paramDef, async (ps, me) => { - const query = ChannelFollowings.createQueryBuilder("following").andWhere({ - followerId: me.id, - }); - if (ps.sinceId) { - query.andWhere('following."followeeId" > :sinceId', { - sinceId: ps.sinceId, - }); - } - if (ps.untilId) { - query.andWhere('following."followeeId" < :untilId', { - untilId: ps.untilId, - }); - } - if (ps.sinceId && !ps.untilId) { - query.orderBy('following."followeeId"', "ASC"); - } else { - query.orderBy('following."followeeId"', "DESC"); - } - - const followings = await query.take(ps.limit).getMany(); - - return await Promise.all( - followings.map((x) => Channels.pack(x.followeeId, me)), - ); -}); diff --git a/packages/backend/src/server/api/endpoints/channels/owned.ts b/packages/backend/src/server/api/endpoints/channels/owned.ts deleted file mode 100644 index 78d9e80ccf..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/owned.ts +++ /dev/null @@ -1,45 +0,0 @@ -import define from "../../define.js"; -import { Channels } from "@/models/index.js"; -import { makePaginationQuery } from "../../common/make-pagination-query.js"; - -export const meta = { - tags: ["channels", "account"], - - requireCredential: true, - - kind: "read:channels", - - res: { - type: "array", - optional: false, - nullable: false, - items: { - type: "object", - optional: false, - nullable: false, - ref: "Channel", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: { - sinceId: { type: "string", format: "misskey:id" }, - untilId: { type: "string", format: "misskey:id" }, - limit: { type: "integer", minimum: 1, maximum: 100, default: 5 }, - }, - required: [], -} as const; - -export default define(meta, paramDef, async (ps, me) => { - const query = makePaginationQuery( - Channels.createQueryBuilder(), - ps.sinceId, - ps.untilId, - ).andWhere({ userId: me.id }); - - const channels = await query.take(ps.limit).getMany(); - - return await Promise.all(channels.map((x) => Channels.pack(x, me))); -}); diff --git a/packages/backend/src/server/api/endpoints/channels/search.ts b/packages/backend/src/server/api/endpoints/channels/search.ts deleted file mode 100644 index b21fa76206..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/search.ts +++ /dev/null @@ -1,69 +0,0 @@ -import define from "../../define.js"; -import { Brackets } from "typeorm"; -import { Endpoint } from "@/server/api/endpoint-base.js"; -import { makePaginationQuery } from "@/server/api/common/make-pagination-query.js"; -import { Channels } from "@/models/index.js"; -import { DI } from "@/di-symbols.js"; -import { sqlLikeEscape } from "@/misc/sql-like-escape.js"; - -export const meta = { - tags: ["channels"], - - requireCredential: false, - - res: { - type: "array", - optional: false, - nullable: false, - items: { - type: "object", - optional: false, - nullable: false, - ref: "Channel", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: { - query: { type: "string" }, - type: { - type: "string", - enum: ["nameAndDescription", "nameOnly"], - default: "nameAndDescription", - }, - sinceId: { type: "string", format: "misskey:id" }, - untilId: { type: "string", format: "misskey:id" }, - limit: { type: "integer", minimum: 1, maximum: 100, default: 5 }, - }, - required: ["query"], -} as const; - -export default define(meta, paramDef, async (ps, me) => { - const query = makePaginationQuery( - Channels.createQueryBuilder("channel"), - ps.sinceId, - ps.untilId, - ); - - if (ps.type === "nameAndDescription") { - query.andWhere( - new Brackets((qb) => { - qb.where("channel.name ILIKE :q", { - q: `%${sqlLikeEscape(ps.query)}%`, - }).orWhere("channel.description ILIKE :q", { - q: `%${sqlLikeEscape(ps.query)}%`, - }); - }), - ); - } else { - query.andWhere("channel.name ILIKE :q", { - q: `%${sqlLikeEscape(ps.query)}%`, - }); - } - - const channels = await query.take(ps.limit).getMany(); - - return await Promise.all(channels.map((x) => Channels.pack(x, me))); -}); diff --git a/packages/backend/src/server/api/endpoints/channels/show.ts b/packages/backend/src/server/api/endpoints/channels/show.ts deleted file mode 100644 index e4ca756634..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/show.ts +++ /dev/null @@ -1,45 +0,0 @@ -import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { Channels } from "@/models/index.js"; - -export const meta = { - tags: ["channels"], - - requireCredential: false, - requireCredentialPrivateMode: true, - - res: { - type: "object", - optional: false, - nullable: false, - ref: "Channel", - }, - - errors: { - noSuchChannel: { - message: "No such channel.", - code: "NO_SUCH_CHANNEL", - id: "6f6c314b-7486-4897-8966-c04a66a02923", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: { - channelId: { type: "string", format: "misskey:id" }, - }, - required: ["channelId"], -} as const; - -export default define(meta, paramDef, async (ps, me) => { - const channel = await Channels.findOneBy({ - id: ps.channelId, - }); - - if (channel == null) { - throw new ApiError(meta.errors.noSuchChannel); - } - - return await Channels.pack(channel, me); -}); diff --git a/packages/backend/src/server/api/endpoints/channels/timeline.ts b/packages/backend/src/server/api/endpoints/channels/timeline.ts deleted file mode 100644 index b5d5325234..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/timeline.ts +++ /dev/null @@ -1,84 +0,0 @@ -import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { Notes, Channels } from "@/models/index.js"; -import { makePaginationQuery } from "../../common/make-pagination-query.js"; -import { activeUsersChart } from "@/services/chart/index.js"; - -export const meta = { - tags: ["notes", "channels"], - - requireCredential: false, - requireCredentialPrivateMode: true, - - res: { - type: "array", - optional: false, - nullable: false, - items: { - type: "object", - optional: false, - nullable: false, - ref: "Note", - }, - }, - - errors: { - noSuchChannel: { - message: "No such channel.", - code: "NO_SUCH_CHANNEL", - id: "4d0eeeba-a02c-4c3c-9966-ef60d38d2e7f", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: { - channelId: { type: "string", format: "misskey:id" }, - limit: { type: "integer", minimum: 1, maximum: 100, default: 10 }, - sinceId: { type: "string", format: "misskey:id" }, - untilId: { type: "string", format: "misskey:id" }, - sinceDate: { type: "integer" }, - untilDate: { type: "integer" }, - }, - required: ["channelId"], -} as const; - -export default define(meta, paramDef, async (ps, user) => { - const channel = await Channels.findOneBy({ - id: ps.channelId, - }); - - if (channel == null) { - throw new ApiError(meta.errors.noSuchChannel); - } - - //#region Construct query - const query = makePaginationQuery( - Notes.createQueryBuilder("note"), - ps.sinceId, - ps.untilId, - ps.sinceDate, - ps.untilDate, - ) - .andWhere("note.channelId = :channelId", { channelId: channel.id }) - .innerJoinAndSelect("note.user", "user") - .leftJoinAndSelect("user.avatar", "avatar") - .leftJoinAndSelect("user.banner", "banner") - .leftJoinAndSelect("note.reply", "reply") - .leftJoinAndSelect("note.renote", "renote") - .leftJoinAndSelect("reply.user", "replyUser") - .leftJoinAndSelect("replyUser.avatar", "replyUserAvatar") - .leftJoinAndSelect("replyUser.banner", "replyUserBanner") - .leftJoinAndSelect("renote.user", "renoteUser") - .leftJoinAndSelect("renoteUser.avatar", "renoteUserAvatar") - .leftJoinAndSelect("renoteUser.banner", "renoteUserBanner") - .leftJoinAndSelect("note.channel", "channel"); - //#endregion - - const timeline = await query.take(ps.limit).getMany(); - - if (user) activeUsersChart.read(user); - - return await Notes.packMany(timeline, user); -}); diff --git a/packages/backend/src/server/api/endpoints/channels/unfollow.ts b/packages/backend/src/server/api/endpoints/channels/unfollow.ts deleted file mode 100644 index 654a4fbba5..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/unfollow.ts +++ /dev/null @@ -1,45 +0,0 @@ -import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { Channels, ChannelFollowings } from "@/models/index.js"; -import { publishUserEvent } from "@/services/stream.js"; - -export const meta = { - tags: ["channels"], - - requireCredential: true, - - kind: "write:channels", - - errors: { - noSuchChannel: { - message: "No such channel.", - code: "NO_SUCH_CHANNEL", - id: "19959ee9-0153-4c51-bbd9-a98c49dc59d6", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: { - channelId: { type: "string", format: "misskey:id" }, - }, - required: ["channelId"], -} as const; - -export default define(meta, paramDef, async (ps, user) => { - const channel = await Channels.findOneBy({ - id: ps.channelId, - }); - - if (channel == null) { - throw new ApiError(meta.errors.noSuchChannel); - } - - await ChannelFollowings.delete({ - followerId: user.id, - followeeId: channel.id, - }); - - publishUserEvent(user.id, "unfollowChannel", channel); -}); diff --git a/packages/backend/src/server/api/endpoints/channels/update.ts b/packages/backend/src/server/api/endpoints/channels/update.ts deleted file mode 100644 index d9f6f7644c..0000000000 --- a/packages/backend/src/server/api/endpoints/channels/update.ts +++ /dev/null @@ -1,90 +0,0 @@ -import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { Channels, DriveFiles } from "@/models/index.js"; - -export const meta = { - tags: ["channels"], - - requireCredential: true, - - kind: "write:channels", - - res: { - type: "object", - optional: false, - nullable: false, - ref: "Channel", - }, - - errors: { - noSuchChannel: { - message: "No such channel.", - code: "NO_SUCH_CHANNEL", - id: "f9c5467f-d492-4c3c-9a8d-a70dacc86512", - }, - - accessDenied: { - message: "You do not have edit privilege of the channel.", - code: "ACCESS_DENIED", - id: "1fb7cb09-d46a-4fdf-b8df-057788cce513", - }, - - noSuchFile: { - message: "No such file.", - code: "NO_SUCH_FILE", - id: "e86c14a4-0da2-4032-8df3-e737a04c7f3b", - }, - }, -} as const; - -export const paramDef = { - type: "object", - properties: { - channelId: { type: "string", format: "misskey:id" }, - name: { type: "string", minLength: 1, maxLength: 128 }, - description: { - type: "string", - nullable: true, - minLength: 1, - maxLength: 2048, - }, - bannerId: { type: "string", format: "misskey:id", nullable: true }, - }, - required: ["channelId"], -} as const; - -export default define(meta, paramDef, async (ps, me) => { - const channel = await Channels.findOneBy({ - id: ps.channelId, - }); - - if (channel == null) { - throw new ApiError(meta.errors.noSuchChannel); - } - - if (channel.userId !== me.id) { - throw new ApiError(meta.errors.accessDenied); - } - - let banner = undefined; - if (ps.bannerId != null) { - banner = await DriveFiles.findOneBy({ - id: ps.bannerId, - userId: me.id, - }); - - if (banner == null) { - throw new ApiError(meta.errors.noSuchFile); - } - } else if (ps.bannerId === null) { - banner = null; - } - - await Channels.update(channel.id, { - ...(ps.name !== undefined ? { name: ps.name } : {}), - ...(ps.description !== undefined ? { description: ps.description } : {}), - ...(banner ? { bannerId: banner.id } : {}), - }); - - return await Channels.pack(channel.id, me); -}); diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index 41b8ab9796..c16e2f3dcc 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -1,22 +1,14 @@ -import { In } from "typeorm"; +import {In} from "typeorm"; import create from "@/services/note/create.js"; -import type { User } from "@/models/entities/user.js"; -import { - Users, - DriveFiles, - Notes, - Channels, - Blockings, -} from "@/models/index.js"; -import type { DriveFile } from "@/models/entities/drive-file.js"; -import type { Note } from "@/models/entities/note.js"; -import type { Channel } from "@/models/entities/channel.js"; -import { MAX_NOTE_TEXT_LENGTH } from "@/const.js"; -import { noteVisibilities } from "../../../../types.js"; -import { ApiError } from "../../error.js"; +import type {User} from "@/models/entities/user.js"; +import {Blockings, DriveFiles, Notes, Users,} from "@/models/index.js"; +import type {DriveFile} from "@/models/entities/drive-file.js"; +import type {Note} from "@/models/entities/note.js"; +import {HOUR, MAX_NOTE_TEXT_LENGTH} from "@/const.js"; +import {noteVisibilities} from "../../../../types.js"; +import {ApiError} from "../../error.js"; import define from "../../define.js"; -import { HOUR } from "@/const.js"; -import { getNote } from "../../common/getters.js"; +import {getNote} from "../../common/getters.js"; export const meta = { tags: ["notes"], @@ -268,16 +260,6 @@ export default define(meta, paramDef, async (ps, user) => { ps.poll.expiresAt = Date.now() + ps.poll.expiredAfter; } } - - let channel: Channel | null = null; - if (ps.channelId != null) { - channel = await Channels.findOneBy({ id: ps.channelId }); - - if (channel == null) { - throw new ApiError(meta.errors.noSuchChannel); - } - } - // Create a post const note = await create(user, { createdAt: new Date(), @@ -296,7 +278,6 @@ export default define(meta, paramDef, async (ps, user) => { localOnly: ps.localOnly, visibility: ps.visibility, visibleUsers, - channel, apMentions: ps.noExtractMentions ? [] : undefined, apHashtags: ps.noExtractHashtags ? [] : undefined, apEmojis: ps.noExtractEmojis ? [] : undefined, diff --git a/packages/backend/src/server/api/endpoints/notes/edit.ts b/packages/backend/src/server/api/endpoints/notes/edit.ts index 14ce2faafc..53c42951a4 100644 --- a/packages/backend/src/server/api/endpoints/notes/edit.ts +++ b/packages/backend/src/server/api/endpoints/notes/edit.ts @@ -1,40 +1,28 @@ -import { In } from "typeorm"; -import create, { index } from "@/services/note/create.js"; -import type { IRemoteUser, User } from "@/models/entities/user.js"; -import { - Users, - DriveFiles, - Notes, - Channels, - Blockings, - UserProfiles, - Polls, - NoteEdits, -} from "@/models/index.js"; -import type { DriveFile } from "@/models/entities/drive-file.js"; -import type { IMentionedRemoteUsers, Note } from "@/models/entities/note.js"; -import type { Channel } from "@/models/entities/channel.js"; -import { MAX_NOTE_TEXT_LENGTH } from "@/const.js"; -import { noteVisibilities } from "../../../../types.js"; -import { ApiError } from "../../error.js"; +import {In} from "typeorm"; +import {extractMentionedUsers, index} from "@/services/note/create.js"; +import type {IRemoteUser, User} from "@/models/entities/user.js"; +import {Blockings, DriveFiles, NoteEdits, Notes, Polls, UserProfiles, Users,} from "@/models/index.js"; +import type {DriveFile} from "@/models/entities/drive-file.js"; +import type {IMentionedRemoteUsers, Note} from "@/models/entities/note.js"; +import {HOUR, MAX_NOTE_TEXT_LENGTH} from "@/const.js"; +import {noteVisibilities} from "../../../../types.js"; +import {ApiError} from "../../error.js"; import define from "../../define.js"; -import { HOUR } from "@/const.js"; -import { getNote } from "../../common/getters.js"; -import { Poll } from "@/models/entities/poll.js"; +import {getNote} from "../../common/getters.js"; +import {Poll} from "@/models/entities/poll.js"; import * as mfm from "mfm-js"; -import { concat } from "@/prelude/array.js"; -import { extractHashtags } from "@/misc/extract-hashtags.js"; -import { extractCustomEmojisFromMfm } from "@/misc/extract-custom-emojis-from-mfm.js"; -import { extractMentionedUsers } from "@/services/note/create.js"; -import { genId } from "@/misc/gen-id.js"; -import { publishNoteStream } from "@/services/stream.js"; +import {concat} from "@/prelude/array.js"; +import {extractHashtags} from "@/misc/extract-hashtags.js"; +import {extractCustomEmojisFromMfm} from "@/misc/extract-custom-emojis-from-mfm.js"; +import {genId} from "@/misc/gen-id.js"; +import {publishNoteStream} from "@/services/stream.js"; import DeliverManager from "@/remote/activitypub/deliver-manager.js"; -import { renderActivity } from "@/remote/activitypub/renderer/index.js"; +import {renderActivity} from "@/remote/activitypub/renderer/index.js"; import renderNote from "@/remote/activitypub/renderer/note.js"; import renderUpdate from "@/remote/activitypub/renderer/update.js"; -import { deliverToRelays } from "@/services/relay.js"; +import {deliverToRelays} from "@/services/relay.js"; // import { deliverQuestionUpdate } from "@/services/note/polls/update.js"; -import { fetchMeta } from "@/misc/fetch-meta.js"; +import {fetchMeta} from "@/misc/fetch-meta.js"; export const meta = { tags: ["notes"], @@ -320,15 +308,6 @@ export default define(meta, paramDef, async (ps, user) => { } } - let channel: Channel | null = null; - if (ps.channelId != null) { - channel = await Channels.findOneBy({ id: ps.channelId }); - - if (channel == null) { - throw new ApiError(meta.errors.noSuchChannel); - } - } - // enforce silent clients on server if (user.isSilenced && ps.visibility === "public" && ps.channelId == null) { ps.visibility = "home"; @@ -546,9 +525,6 @@ export default define(meta, paramDef, async (ps, user) => { update.mentions = mentionedUserIds; update.mentionedRemoteUsers = JSON.stringify(mentionedRemoteUsers); } - if (ps.channelId !== note.channelId) { - update.channelId = ps.channelId; - } if (ps.replyId !== note.replyId) { update.replyId = ps.replyId; } diff --git a/packages/backend/src/server/api/endpoints/notes/global-timeline.ts b/packages/backend/src/server/api/endpoints/notes/global-timeline.ts index 0a365a6dfd..7394af4bdb 100644 --- a/packages/backend/src/server/api/endpoints/notes/global-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/global-timeline.ts @@ -1,14 +1,14 @@ -import { fetchMeta } from "@/misc/fetch-meta.js"; -import { Notes } from "@/models/index.js"; -import { activeUsersChart } from "@/services/chart/index.js"; +import {fetchMeta} from "@/misc/fetch-meta.js"; +import {Notes} from "@/models/index.js"; +import {activeUsersChart} from "@/services/chart/index.js"; import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { makePaginationQuery } from "../../common/make-pagination-query.js"; -import { generateMutedUserQuery } from "../../common/generate-muted-user-query.js"; -import { generateRepliesQuery } from "../../common/generate-replies-query.js"; -import { generateMutedNoteQuery } from "../../common/generate-muted-note-query.js"; -import { generateBlockedUserQuery } from "../../common/generate-block-query.js"; -import { generateMutedUserRenotesQueryForNotes } from "../../common/generated-muted-renote-query.js"; +import {ApiError} from "../../error.js"; +import {makePaginationQuery} from "../../common/make-pagination-query.js"; +import {generateMutedUserQuery} from "../../common/generate-muted-user-query.js"; +import {generateRepliesQuery} from "../../common/generate-replies-query.js"; +import {generateMutedNoteQuery} from "../../common/generate-muted-note-query.js"; +import {generateBlockedUserQuery} from "../../common/generate-block-query.js"; +import {generateMutedUserRenotesQueryForNotes} from "../../common/generated-muted-renote-query.js"; export const meta = { tags: ["notes"], @@ -79,7 +79,6 @@ export default define(meta, paramDef, async (ps, user) => { ps.untilDate, ) .andWhere("note.visibility = 'public'") - .andWhere("note.channelId IS NULL") .innerJoinAndSelect("note.user", "user") .leftJoinAndSelect("user.avatar", "avatar") .leftJoinAndSelect("user.banner", "banner") diff --git a/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts b/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts index 4e32b0ab29..1637de2f0d 100644 --- a/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts @@ -1,17 +1,16 @@ -import { Brackets } from "typeorm"; -import { fetchMeta } from "@/misc/fetch-meta.js"; -import { Followings, Notes } from "@/models/index.js"; -import { activeUsersChart } from "@/services/chart/index.js"; +import {Brackets} from "typeorm"; +import {fetchMeta} from "@/misc/fetch-meta.js"; +import {Followings, Notes} from "@/models/index.js"; +import {activeUsersChart} from "@/services/chart/index.js"; import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { makePaginationQuery } from "../../common/make-pagination-query.js"; -import { generateVisibilityQuery } from "../../common/generate-visibility-query.js"; -import { generateMutedUserQuery } from "../../common/generate-muted-user-query.js"; -import { generateRepliesQuery } from "../../common/generate-replies-query.js"; -import { generateMutedNoteQuery } from "../../common/generate-muted-note-query.js"; -import { generateChannelQuery } from "../../common/generate-channel-query.js"; -import { generateBlockedUserQuery } from "../../common/generate-block-query.js"; -import { generateMutedUserRenotesQueryForNotes } from "../../common/generated-muted-renote-query.js"; +import {ApiError} from "../../error.js"; +import {makePaginationQuery} from "../../common/make-pagination-query.js"; +import {generateVisibilityQuery} from "../../common/generate-visibility-query.js"; +import {generateMutedUserQuery} from "../../common/generate-muted-user-query.js"; +import {generateRepliesQuery} from "../../common/generate-replies-query.js"; +import {generateMutedNoteQuery} from "../../common/generate-muted-note-query.js"; +import {generateBlockedUserQuery} from "../../common/generate-block-query.js"; +import {generateMutedUserRenotesQueryForNotes} from "../../common/generated-muted-renote-query.js"; export const meta = { tags: ["notes"], @@ -108,7 +107,6 @@ export default define(meta, paramDef, async (ps, user) => { .leftJoinAndSelect("renoteUser.banner", "renoteUserBanner") .setParameters(followingQuery.getParameters()); - generateChannelQuery(query, user); generateRepliesQuery(query, ps.withReplies, user); generateVisibilityQuery(query, user); generateMutedUserQuery(query, user); diff --git a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts index 82e93e371f..0ac175cc1b 100644 --- a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts @@ -1,17 +1,16 @@ -import { Brackets } from "typeorm"; -import { fetchMeta } from "@/misc/fetch-meta.js"; -import { Notes, Users } from "@/models/index.js"; -import { activeUsersChart } from "@/services/chart/index.js"; +import {Brackets} from "typeorm"; +import {fetchMeta} from "@/misc/fetch-meta.js"; +import {Notes} from "@/models/index.js"; +import {activeUsersChart} from "@/services/chart/index.js"; import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { generateMutedUserQuery } from "../../common/generate-muted-user-query.js"; -import { makePaginationQuery } from "../../common/make-pagination-query.js"; -import { generateVisibilityQuery } from "../../common/generate-visibility-query.js"; -import { generateRepliesQuery } from "../../common/generate-replies-query.js"; -import { generateMutedNoteQuery } from "../../common/generate-muted-note-query.js"; -import { generateChannelQuery } from "../../common/generate-channel-query.js"; -import { generateBlockedUserQuery } from "../../common/generate-block-query.js"; -import { generateMutedUserRenotesQueryForNotes } from "../../common/generated-muted-renote-query.js"; +import {ApiError} from "../../error.js"; +import {generateMutedUserQuery} from "../../common/generate-muted-user-query.js"; +import {makePaginationQuery} from "../../common/make-pagination-query.js"; +import {generateVisibilityQuery} from "../../common/generate-visibility-query.js"; +import {generateRepliesQuery} from "../../common/generate-replies-query.js"; +import {generateMutedNoteQuery} from "../../common/generate-muted-note-query.js"; +import {generateBlockedUserQuery} from "../../common/generate-block-query.js"; +import {generateMutedUserRenotesQueryForNotes} from "../../common/generated-muted-renote-query.js"; export const meta = { tags: ["notes"], @@ -101,7 +100,6 @@ export default define(meta, paramDef, async (ps, user) => { .leftJoinAndSelect("renoteUser.avatar", "renoteUserAvatar") .leftJoinAndSelect("renoteUser.banner", "renoteUserBanner"); - generateChannelQuery(query, user); generateRepliesQuery(query, ps.withReplies, user); generateVisibilityQuery(query, user); if (user) generateMutedUserQuery(query, user); diff --git a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts index d3b5cbff50..44763b67e8 100644 --- a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts @@ -1,17 +1,16 @@ -import { Brackets } from "typeorm"; -import { fetchMeta } from "@/misc/fetch-meta.js"; -import { Notes } from "@/models/index.js"; -import { activeUsersChart } from "@/services/chart/index.js"; +import {Brackets} from "typeorm"; +import {fetchMeta} from "@/misc/fetch-meta.js"; +import {Notes} from "@/models/index.js"; +import {activeUsersChart} from "@/services/chart/index.js"; import define from "../../define.js"; -import { ApiError } from "../../error.js"; -import { generateMutedUserQuery } from "../../common/generate-muted-user-query.js"; -import { makePaginationQuery } from "../../common/make-pagination-query.js"; -import { generateVisibilityQuery } from "../../common/generate-visibility-query.js"; -import { generateRepliesQuery } from "../../common/generate-replies-query.js"; -import { generateMutedNoteQuery } from "../../common/generate-muted-note-query.js"; -import { generateChannelQuery } from "../../common/generate-channel-query.js"; -import { generateBlockedUserQuery } from "../../common/generate-block-query.js"; -import { generateMutedUserRenotesQueryForNotes } from "../../common/generated-muted-renote-query.js"; +import {ApiError} from "../../error.js"; +import {generateMutedUserQuery} from "../../common/generate-muted-user-query.js"; +import {makePaginationQuery} from "../../common/make-pagination-query.js"; +import {generateVisibilityQuery} from "../../common/generate-visibility-query.js"; +import {generateRepliesQuery} from "../../common/generate-replies-query.js"; +import {generateMutedNoteQuery} from "../../common/generate-muted-note-query.js"; +import {generateBlockedUserQuery} from "../../common/generate-block-query.js"; +import {generateMutedUserRenotesQueryForNotes} from "../../common/generated-muted-renote-query.js"; export const meta = { tags: ["notes"], @@ -104,7 +103,6 @@ export default define(meta, paramDef, async (ps, user) => { .leftJoinAndSelect("renoteUser.avatar", "renoteUserAvatar") .leftJoinAndSelect("renoteUser.banner", "renoteUserBanner"); - generateChannelQuery(query, user); generateRepliesQuery(query, ps.withReplies, user); generateVisibilityQuery(query, user); if (user) generateMutedUserQuery(query, user); diff --git a/packages/backend/src/server/api/endpoints/notes/timeline.ts b/packages/backend/src/server/api/endpoints/notes/timeline.ts index d629deebb6..6cd50da174 100644 --- a/packages/backend/src/server/api/endpoints/notes/timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/timeline.ts @@ -1,16 +1,15 @@ -import { Brackets } from "typeorm"; -import { Notes, Followings } from "@/models/index.js"; -import { activeUsersChart } from "@/services/chart/index.js"; +import {Brackets} from "typeorm"; +import {Followings, Notes} from "@/models/index.js"; +import {activeUsersChart} from "@/services/chart/index.js"; import define from "../../define.js"; -import { makePaginationQuery } from "../../common/make-pagination-query.js"; -import { generateVisibilityQuery } from "../../common/generate-visibility-query.js"; -import { generateMutedUserQuery } from "../../common/generate-muted-user-query.js"; -import { generateRepliesQuery } from "../../common/generate-replies-query.js"; -import { generateMutedNoteQuery } from "../../common/generate-muted-note-query.js"; -import { generateChannelQuery } from "../../common/generate-channel-query.js"; -import { generateBlockedUserQuery } from "../../common/generate-block-query.js"; -import { generateMutedUserRenotesQueryForNotes } from "../../common/generated-muted-renote-query.js"; -import { ApiError } from "../../error.js"; +import {makePaginationQuery} from "../../common/make-pagination-query.js"; +import {generateVisibilityQuery} from "../../common/generate-visibility-query.js"; +import {generateMutedUserQuery} from "../../common/generate-muted-user-query.js"; +import {generateRepliesQuery} from "../../common/generate-replies-query.js"; +import {generateMutedNoteQuery} from "../../common/generate-muted-note-query.js"; +import {generateBlockedUserQuery} from "../../common/generate-block-query.js"; +import {generateMutedUserRenotesQueryForNotes} from "../../common/generated-muted-renote-query.js"; +import {ApiError} from "../../error.js"; export const meta = { tags: ["notes"], @@ -104,7 +103,6 @@ export default define(meta, paramDef, async (ps, user) => { .leftJoinAndSelect("renoteUser.banner", "renoteUserBanner") .setParameters(followingQuery.getParameters()); - generateChannelQuery(query, user); generateRepliesQuery(query, ps.withReplies, user); generateVisibilityQuery(query, user); generateMutedUserQuery(query, user); diff --git a/packages/backend/src/server/api/stream/channel.ts b/packages/backend/src/server/api/stream/channel.ts index fc8e0ce35e..8e14490ebc 100644 --- a/packages/backend/src/server/api/stream/channel.ts +++ b/packages/backend/src/server/api/stream/channel.ts @@ -1,18 +1,23 @@ import type Connection from "."; -import type { Note } from "@/models/entities/note.js"; -import { Notes } from "@/models/index.js"; -import type { Packed } from "@/misc/schema.js"; -import { IdentifiableError } from "@/misc/identifiable-error.js"; +import type {Note} from "@/models/entities/note.js"; +import {Notes} from "@/models/index.js"; +import type {Packed} from "@/misc/schema.js"; +import {IdentifiableError} from "@/misc/identifiable-error.js"; /** * Stream channel */ export default abstract class Channel { - protected connection: Connection; - public id: string; - public abstract readonly chName: string; public static readonly shouldShare: boolean; public static readonly requireCredential: boolean; + public id: string; + public abstract readonly chName: string; + protected connection: Connection; + + constructor(id: string, connection: Connection) { + this.id = id; + this.connection = connection; + } protected get user() { return this.connection.user; @@ -38,19 +43,10 @@ export default abstract class Channel { return this.connection.blocking; } - protected get followingChannels() { - return this.connection.followingChannels; - } - protected get subscriber() { return this.connection.subscriber; } - constructor(id: string, connection: Connection) { - this.id = id; - this.connection = connection; - } - public send(typeOrPayload: any, payload?: any) { const type = payload === undefined ? typeOrPayload.type : typeOrPayload; const body = payload === undefined ? typeOrPayload.body : payload; @@ -62,6 +58,12 @@ export default abstract class Channel { }); } + public abstract init(params: any): void; + + public dispose?(): void; + + public onMessage?(type: string, body: any): void; + protected withPackedNote( callback: (note: Packed<"Note">) => void, ): (Note) => void { @@ -74,7 +76,6 @@ export default abstract class Channel { note.reply = undefined; note.renote = undefined; note.user = undefined; - note.channel = undefined; const packed = await Notes.pack(note, this.user, { detail: true }); @@ -92,8 +93,4 @@ export default abstract class Channel { } }; } - - public abstract init(params: any): void; - public dispose?(): void; - public onMessage?(type: string, body: any): void; } diff --git a/packages/backend/src/server/api/stream/channels/channel.ts b/packages/backend/src/server/api/stream/channels/channel.ts deleted file mode 100644 index 2ff4e08209..0000000000 --- a/packages/backend/src/server/api/stream/channels/channel.ts +++ /dev/null @@ -1,84 +0,0 @@ -import Channel from "../channel.js"; -import { Users } from "@/models/index.js"; -import { isUserRelated } from "@/misc/is-user-related.js"; -import type { User } from "@/models/entities/user.js"; -import type { StreamMessages } from "../types.js"; -import type { Packed } from "@/misc/schema.js"; - -export default class extends Channel { - public readonly chName = "channel"; - public static shouldShare = false; - public static requireCredential = false; - private channelId: string; - private typers: Map = new Map(); - private emitTypersIntervalId: ReturnType; - - constructor(id: string, connection: Channel["connection"]) { - super(id, connection); - this.onNote = this.withPackedNote(this.onNote.bind(this)); - this.emitTypers = this.emitTypers.bind(this); - } - - public async init(params: any) { - this.channelId = params.channelId as string; - - // Subscribe stream - this.subscriber.on("notesStream", this.onNote); - this.subscriber.on(`channelStream:${this.channelId}`, this.onEvent); - this.emitTypersIntervalId = setInterval(this.emitTypers, 5000); - } - - private async onNote(note: Packed<"Note">) { - if (note.visibility === "hidden") return; - if (note.channelId !== this.channelId) return; - - // æ”ă‚ŒăŠăăŸNoteăŒăƒŸăƒ„ăƒŒăƒˆă—ăŠă„ă‚‹ăƒŠăƒŒă‚¶ăƒŒăŒé–ąă‚ă‚‹ă‚‚ăźă ăŁăŸă‚‰ç„ĄèŠ–ă™ă‚‹ - if (isUserRelated(note, this.muting)) return; - // æ”ă‚ŒăŠăăŸNoteăŒăƒ–ăƒ­ăƒƒă‚Żă•ă‚ŒăŠă„ă‚‹ăƒŠăƒŒă‚¶ăƒŒăŒé–ąă‚ă‚‹ă‚‚ăźă ăŁăŸă‚‰ç„ĄèŠ–ă™ă‚‹ - if (isUserRelated(note, this.blocking)) return; - - if (note.renote && !note.text && this.renoteMuting.has(note.userId)) return; - - this.connection.cacheNote(note); - - this.send("note", note); - } - - private onEvent(data: StreamMessages["channel"]["payload"]) { - if (data.type === "typing") { - const id = data.body; - const begin = !this.typers.has(id); - this.typers.set(id, new Date()); - if (begin) { - this.emitTypers(); - } - } - } - - private async emitTypers() { - const now = new Date(); - - // Remove not typing users - for (const [userId, date] of Object.entries(this.typers)) { - if (now.getTime() - date.getTime() > 5000) this.typers.delete(userId); - } - - const userIds = Array.from(this.typers.keys()); - const users = await Users.packMany(userIds, null, { - detail: false, - }); - - this.send({ - type: "typers", - body: users, - }); - } - - public dispose() { - // Unsubscribe events - this.subscriber.off("notesStream", this.onNote); - this.subscriber.off(`channelStream:${this.channelId}`, this.onEvent); - - clearInterval(this.emitTypersIntervalId); - } -} diff --git a/packages/backend/src/server/api/stream/channels/global-timeline.ts b/packages/backend/src/server/api/stream/channels/global-timeline.ts index 2257be2b8c..d5ea82f624 100644 --- a/packages/backend/src/server/api/stream/channels/global-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/global-timeline.ts @@ -1,14 +1,14 @@ import Channel from "../channel.js"; -import { fetchMeta } from "@/misc/fetch-meta.js"; -import { getWordHardMute } from "@/misc/check-word-mute.js"; -import { isInstanceMuted } from "@/misc/is-instance-muted.js"; -import { isUserRelated } from "@/misc/is-user-related.js"; -import type { Packed } from "@/misc/schema.js"; +import {fetchMeta} from "@/misc/fetch-meta.js"; +import {getWordHardMute} from "@/misc/check-word-mute.js"; +import {isInstanceMuted} from "@/misc/is-instance-muted.js"; +import {isUserRelated} from "@/misc/is-user-related.js"; +import type {Packed} from "@/misc/schema.js"; export default class extends Channel { - public readonly chName = "globalTimeline"; public static shouldShare = true; public static requireCredential = false; + public readonly chName = "globalTimeline"; private withReplies: boolean; constructor(id: string, connection: Channel["connection"]) { @@ -29,9 +29,13 @@ export default class extends Channel { this.subscriber.on("notesStream", this.onNote); } + public dispose() { + // Unsubscribe events + this.subscriber.off("notesStream", this.onNote); + } + private async onNote(note: Packed<"Note">) { if (note.visibility !== "public") return; - if (note.channelId != null) return; // 閱係ăȘă„èż”äżĄăŻé™€ć€– if (note.reply && !this.withReplies) { @@ -76,9 +80,4 @@ export default class extends Channel { this.send("note", note); } - - public dispose() { - // Unsubscribe events - this.subscriber.off("notesStream", this.onNote); - } } diff --git a/packages/backend/src/server/api/stream/channels/home-timeline.ts b/packages/backend/src/server/api/stream/channels/home-timeline.ts index 47875aeda7..ba86b3f32a 100644 --- a/packages/backend/src/server/api/stream/channels/home-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/home-timeline.ts @@ -1,13 +1,13 @@ import Channel from "../channel.js"; -import { getWordHardMute } from "@/misc/check-word-mute.js"; -import { isUserRelated } from "@/misc/is-user-related.js"; -import { isInstanceMuted } from "@/misc/is-instance-muted.js"; -import type { Packed } from "@/misc/schema.js"; +import {getWordHardMute} from "@/misc/check-word-mute.js"; +import {isUserRelated} from "@/misc/is-user-related.js"; +import {isInstanceMuted} from "@/misc/is-instance-muted.js"; +import type {Packed} from "@/misc/schema.js"; export default class extends Channel { - public readonly chName = "homeTimeline"; public static shouldShare = true; public static requireCredential = true; + public readonly chName = "homeTimeline"; private withReplies: boolean; constructor(id: string, connection: Channel["connection"]) { @@ -22,15 +22,13 @@ export default class extends Channel { this.subscriber.on("notesStream", this.onNote); } + public dispose() { + // Unsubscribe events + this.subscriber.off("notesStream", this.onNote); + } + private async onNote(note: Packed<"Note">) { if (note.visibility === "hidden") return; - if (note.channelId) { - if (!this.followingChannels.has(note.channelId)) return; - } else { - // ăăźæŠ•çšżăźăƒŠăƒŒă‚¶ăƒŒă‚’ăƒ•ă‚©ăƒ­ăƒŒă—ăŠă„ăȘă‹ăŁăŸă‚‰ćŒŸă - if (this.user!.id !== note.userId && !this.following.has(note.userId)) - return; - } // Ignore notes from instances the user has muted if ( @@ -75,9 +73,4 @@ export default class extends Channel { this.send("note", note); } - - public dispose() { - // Unsubscribe events - this.subscriber.off("notesStream", this.onNote); - } } diff --git a/packages/backend/src/server/api/stream/channels/hybrid-timeline.ts b/packages/backend/src/server/api/stream/channels/hybrid-timeline.ts index 1f1a9b831a..47818d0770 100644 --- a/packages/backend/src/server/api/stream/channels/hybrid-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/hybrid-timeline.ts @@ -1,14 +1,14 @@ import Channel from "../channel.js"; -import { fetchMeta } from "@/misc/fetch-meta.js"; -import { getWordHardMute } from "@/misc/check-word-mute.js"; -import { isUserRelated } from "@/misc/is-user-related.js"; -import { isInstanceMuted } from "@/misc/is-instance-muted.js"; -import type { Packed } from "@/misc/schema.js"; +import {fetchMeta} from "@/misc/fetch-meta.js"; +import {getWordHardMute} from "@/misc/check-word-mute.js"; +import {isUserRelated} from "@/misc/is-user-related.js"; +import {isInstanceMuted} from "@/misc/is-instance-muted.js"; +import type {Packed} from "@/misc/schema.js"; export default class extends Channel { - public readonly chName = "hybridTimeline"; public static shouldShare = true; public static requireCredential = true; + public readonly chName = "hybridTimeline"; private withReplies: boolean; constructor(id: string, connection: Channel["connection"]) { @@ -31,22 +31,13 @@ export default class extends Channel { this.subscriber.on("notesStream", this.onNote); } + public dispose() { + // Unsubscribe events + this.subscriber.off("notesStream", this.onNote); + } + private async onNote(note: Packed<"Note">) { - if (note.visibility === "hidden") return; - // ăƒăƒŁăƒłăƒăƒ«ăźæŠ•çšżă§ăŻăȘく、è‡Ș戆è‡Șèș«ăźæŠ•çšż ăŸăŸăŻ - // ăƒăƒŁăƒłăƒăƒ«ăźæŠ•çšżă§ăŻăȘăă€ăăźæŠ•çšżăźăƒŠăƒŒă‚¶ăƒŒă‚’ăƒ•ă‚©ăƒ­ăƒŒă—ăŠă„ă‚‹ ăŸăŸăŻ - // ăƒăƒŁăƒłăƒăƒ«ăźæŠ•çšżă§ăŻăȘăă€ć…šäœ“ć…Źé–‹ăźăƒ­ăƒŒă‚«ăƒ«ăźæŠ•çšż ăŸăŸăŻ - // ăƒ•ă‚©ăƒ­ăƒŒă—ăŠă„ă‚‹ăƒăƒŁăƒłăƒăƒ«ăźæŠ•çšż ぼ栮搈だけ - if ( - !( - (note.channelId == null && this.user!.id === note.userId) || - (note.channelId == null && this.following.has(note.userId)) || - (note.channelId == null && - note.user.host == null && - note.visibility === "public") || - (note.channelId != null && this.followingChannels.has(note.channelId)) - ) - ) + if (note.visibility === "hidden") return; // Ignore notes from instances the user has muted @@ -92,9 +83,4 @@ export default class extends Channel { this.send("note", note); } - - public dispose() { - // Unsubscribe events - this.subscriber.off("notesStream", this.onNote); - } } diff --git a/packages/backend/src/server/api/stream/channels/index.ts b/packages/backend/src/server/api/stream/channels/index.ts index 2213fc119d..caf1930d1c 100644 --- a/packages/backend/src/server/api/stream/channels/index.ts +++ b/packages/backend/src/server/api/stream/channels/index.ts @@ -10,7 +10,6 @@ import userList from "./user-list.js"; import antenna from "./antenna.js"; import drive from "./drive.js"; import hashtag from "./hashtag.js"; -import channel from "./channel.js"; import admin from "./admin.js"; export default { @@ -26,6 +25,5 @@ export default { antenna, drive, hashtag, - channel, admin, }; diff --git a/packages/backend/src/server/api/stream/channels/local-timeline.ts b/packages/backend/src/server/api/stream/channels/local-timeline.ts index bd488bdd7d..637f9a3e5d 100644 --- a/packages/backend/src/server/api/stream/channels/local-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/local-timeline.ts @@ -1,13 +1,13 @@ import Channel from "../channel.js"; -import { fetchMeta } from "@/misc/fetch-meta.js"; -import { getWordHardMute } from "@/misc/check-word-mute.js"; -import { isUserRelated } from "@/misc/is-user-related.js"; -import type { Packed } from "@/misc/schema.js"; +import {fetchMeta} from "@/misc/fetch-meta.js"; +import {getWordHardMute} from "@/misc/check-word-mute.js"; +import {isUserRelated} from "@/misc/is-user-related.js"; +import type {Packed} from "@/misc/schema.js"; export default class extends Channel { - public readonly chName = "localTimeline"; public static shouldShare = true; public static requireCredential = false; + public readonly chName = "localTimeline"; private withReplies: boolean; constructor(id: string, connection: Channel["connection"]) { @@ -28,11 +28,14 @@ export default class extends Channel { this.subscriber.on("notesStream", this.onNote); } + public dispose() { + // Unsubscribe events + this.subscriber.off("notesStream", this.onNote); + } + private async onNote(note: Packed<"Note">) { if (note.user.host !== null) return; if (note.visibility !== "public") return; - if (note.channelId != null && !this.followingChannels.has(note.channelId)) - return; // 閱係ăȘă„èż”äżĄăŻé™€ć€– if (note.reply && !this.withReplies) { @@ -68,9 +71,4 @@ export default class extends Channel { this.send("note", note); } - - public dispose() { - // Unsubscribe events - this.subscriber.off("notesStream", this.onNote); - } } diff --git a/packages/backend/src/server/api/stream/index.ts b/packages/backend/src/server/api/stream/index.ts index 0aa9ec698a..e7b0236dd3 100644 --- a/packages/backend/src/server/api/stream/index.ts +++ b/packages/backend/src/server/api/stream/index.ts @@ -1,24 +1,14 @@ -import type { EventEmitter } from "events"; +import type {EventEmitter} from "events"; import type * as websocket from "websocket"; -import readNote from "@/services/note/read.js"; -import type { User } from "@/models/entities/user.js"; -import type { Channel as ChannelModel } from "@/models/entities/channel.js"; -import { - Followings, - Mutings, - RenoteMutings, - UserProfiles, - ChannelFollowings, - Blockings, -} from "@/models/index.js"; -import type { AccessToken } from "@/models/entities/access-token.js"; -import type { UserProfile } from "@/models/entities/user-profile.js"; -import type { UserGroup } from "@/models/entities/user-group.js"; -import type { Packed } from "@/misc/schema.js"; -import { readNotification } from "../common/read-notification.js"; +import type {User} from "@/models/entities/user.js"; +import {Blockings, Followings, Mutings, RenoteMutings, UserProfiles,} from "@/models/index.js"; +import type {AccessToken} from "@/models/entities/access-token.js"; +import type {UserProfile} from "@/models/entities/user-profile.js"; +import type {Packed} from "@/misc/schema.js"; +import {readNotification} from "../common/read-notification.js"; import channels from "./channels/index.js"; import type Channel from "./channel.js"; -import type { StreamEventEmitter, StreamMessages } from "./types.js"; +import type {StreamEventEmitter, StreamMessages} from "./types.js"; /** * Main stream connection @@ -30,14 +20,12 @@ export default class Connection { public muting: Set = new Set(); public renoteMuting: Set = new Set(); public blocking: Set = new Set(); // "èą«"blocking - public followingChannels: Set = new Set(); public token?: AccessToken; - private wsConnection: websocket.connection; public subscriber: StreamEventEmitter; + private wsConnection: websocket.connection; private channels: Channel[] = []; private subscribingNotes: Map = new Map(); private cachedNotes: Packed<"Note">[] = []; - private isMastodonCompatible: boolean = false; private host: string; private accessToken: string; private currentSubscribe: string[][] = []; @@ -75,7 +63,6 @@ export default class Connection { this.updateMuting(); this.updateRenoteMuting(); this.updateBlocking(); - this.updateFollowingChannels(); this.updateUserProfile(); this.subscriber.on(`user:${this.user.id}`, this.onUserEvent); @@ -89,6 +76,91 @@ export default class Connection { } } + public cacheNote(note: Packed<"Note">) { + const add = (note: Packed<"Note">) => { + const existIndex = this.cachedNotes.findIndex((n) => n.id === note.id); + if (existIndex > -1) { + this.cachedNotes[existIndex] = note; + return; + } + + this.cachedNotes.unshift(note); + if (this.cachedNotes.length > 32) { + this.cachedNotes.splice(32); + } + }; + + add(note); + if (note.reply) add(note.reply); + if (note.renote) add(note.renote); + } + + /** + * ă‚Żăƒ©ă‚€ă‚ąăƒłăƒˆă«ăƒĄăƒƒă‚»ăƒŒă‚žé€äżĄ + */ + public sendMessageToWs(type: string, payload: any) { + this.wsConnection.send( + JSON.stringify({ + type: type, + body: payload, + }), + ); + } + + /** + * ăƒăƒŁăƒłăƒăƒ«ă«æŽ„ç¶š + */ + public connectChannel( + id: string, + params: any, + channel: string, + pong = false, + ) { + if ((channels as any)[channel].requireCredential && this.user == null) { + return; + } + + // ć…±æœ‰ćŻèƒœăƒăƒŁăƒłăƒăƒ«ă«æŽ„ç¶šă—ă‚ˆă†ăšă—ăŠă„ăŠă€ă‹ă€ăăźăƒăƒŁăƒłăƒăƒ«ă«æ—ąă«æŽ„ç¶šă—ăŠă„ăŸă‚‰ç„Ąæ„ć‘łăȘăźă§ç„ĄèŠ– + if ( + (channels as any)[channel].shouldShare && + this.channels.some((c) => c.chName === channel) + ) { + return; + } + + const ch: Channel = new (channels as any)[channel](id, this); + this.channels.push(ch); + ch.init(params); + + if (pong) { + this.sendMessageToWs("connected", { + id: id, + }); + } + } + + /** + * ăƒăƒŁăƒłăƒăƒ«ă‹ă‚‰ćˆ‡æ–­ + * @param id ăƒăƒŁăƒłăƒăƒ«ă‚łăƒă‚Żă‚·ăƒ§ăƒłID + */ + public disconnectChannel(id: string) { + const channel = this.channels.find((c) => c.id === id); + + if (channel) { + if (channel.dispose) channel.dispose(); + this.channels = this.channels.filter((c) => c.id !== id); + } + } + + /** + * ă‚čトăƒȘăƒŒăƒ ăŒćˆ‡ă‚ŒăŸăšă + */ + public dispose() { + for (const c of this.channels.filter((c) => c.dispose)) { + if (c.dispose) c.dispose(); + } + } + private onUserEvent(data: StreamMessages["user"]["payload"]) { // { type, body }ăšć±•é–‹ă™ă‚‹ăšăă‚Œăžă‚Œćž‹ăŒćˆ†é›ąă—ăŠă—ăŸă† switch (data.type) { @@ -111,14 +183,6 @@ export default class Connection { // TODO: renote mute events // TODO: block events - case "followChannel": - this.followingChannels.add(data.body.id); - break; - - case "unfollowChannel": - this.followingChannels.delete(data.body.id); - break; - case "updateUserProfile": this.userProfile = data.body; break; @@ -162,7 +226,6 @@ export default class Connection { break; // alias case "sr": this.onSubscribeNote(body); - this.readNote(body); break; case "unsubNote": this.onUnsubscribeNote(body); @@ -190,39 +253,6 @@ export default class Connection { this.sendMessageToWs(data.type, data.body); } - public cacheNote(note: Packed<"Note">) { - const add = (note: Packed<"Note">) => { - const existIndex = this.cachedNotes.findIndex((n) => n.id === note.id); - if (existIndex > -1) { - this.cachedNotes[existIndex] = note; - return; - } - - this.cachedNotes.unshift(note); - if (this.cachedNotes.length > 32) { - this.cachedNotes.splice(32); - } - }; - - add(note); - if (note.reply) add(note.reply); - if (note.renote) add(note.renote); - } - - private readNote(body: any) { - const id = body.id; - - const note = this.cachedNotes.find((n) => n.id === id); - if (note == null) return; - - if (this.user && note.userId !== this.user.id) { - readNote(this.user.id, [note], { - following: this.following, - followingChannels: this.followingChannels, - }); - } - } - private onReadNotification(payload: any) { if (!payload.id) return; readNotification(this.user!.id, [payload.id]); @@ -281,63 +311,6 @@ export default class Connection { this.disconnectChannel(id); } - /** - * ă‚Żăƒ©ă‚€ă‚ąăƒłăƒˆă«ăƒĄăƒƒă‚»ăƒŒă‚žé€äżĄ - */ - public sendMessageToWs(type: string, payload: any) { - this.wsConnection.send( - JSON.stringify({ - type: type, - body: payload, - }), - ); - } - - /** - * ăƒăƒŁăƒłăƒăƒ«ă«æŽ„ç¶š - */ - public connectChannel( - id: string, - params: any, - channel: string, - pong = false, - ) { - if ((channels as any)[channel].requireCredential && this.user == null) { - return; - } - - // ć…±æœ‰ćŻèƒœăƒăƒŁăƒłăƒăƒ«ă«æŽ„ç¶šă—ă‚ˆă†ăšă—ăŠă„ăŠă€ă‹ă€ăăźăƒăƒŁăƒłăƒăƒ«ă«æ—ąă«æŽ„ç¶šă—ăŠă„ăŸă‚‰ç„Ąæ„ć‘łăȘăźă§ç„ĄèŠ– - if ( - (channels as any)[channel].shouldShare && - this.channels.some((c) => c.chName === channel) - ) { - return; - } - - const ch: Channel = new (channels as any)[channel](id, this); - this.channels.push(ch); - ch.init(params); - - if (pong) { - this.sendMessageToWs("connected", { - id: id, - }); - } - } - - /** - * ăƒăƒŁăƒłăƒăƒ«ă‹ă‚‰ćˆ‡æ–­ - * @param id ăƒăƒŁăƒłăƒăƒ«ă‚łăƒă‚Żă‚·ăƒ§ăƒłID - */ - public disconnectChannel(id: string) { - const channel = this.channels.find((c) => c.id === id); - - if (channel) { - if (channel.dispose) channel.dispose(); - this.channels = this.channels.filter((c) => c.id !== id); - } - } - /** * ăƒăƒŁăƒłăƒăƒ«ăžăƒĄăƒƒă‚»ăƒŒă‚žé€äżĄèŠæ±‚æ™‚ * @param data ăƒĄăƒƒă‚»ăƒŒă‚ž @@ -394,31 +367,9 @@ export default class Connection { this.blocking = new Set(blockings.map((x) => x.blockerId)); } - private async updateFollowingChannels() { - const followings = await ChannelFollowings.find({ - where: { - followerId: this.user!.id, - }, - select: ["followeeId"], - }); - - this.followingChannels = new Set( - followings.map((x) => x.followeeId), - ); - } - private async updateUserProfile() { this.userProfile = await UserProfiles.findOneBy({ userId: this.user!.id, }); } - - /** - * ă‚čトăƒȘăƒŒăƒ ăŒćˆ‡ă‚ŒăŸăšă - */ - public dispose() { - for (const c of this.channels.filter((c) => c.dispose)) { - if (c.dispose) c.dispose(); - } - } } diff --git a/packages/backend/src/server/api/stream/types.ts b/packages/backend/src/server/api/stream/types.ts index 702af5d56a..67873a2763 100644 --- a/packages/backend/src/server/api/stream/types.ts +++ b/packages/backend/src/server/api/stream/types.ts @@ -1,19 +1,17 @@ -import type { EventEmitter } from "events"; +import type {EventEmitter} from "events"; import type Emitter from "strict-event-emitter-types"; -import type { Channel } from "@/models/entities/channel.js"; -import type { User } from "@/models/entities/user.js"; -import type { UserProfile } from "@/models/entities/user-profile.js"; -import type { Note } from "@/models/entities/note.js"; -import type { Antenna } from "@/models/entities/antenna.js"; -import type { DriveFile } from "@/models/entities/drive-file.js"; -import type { DriveFolder } from "@/models/entities/drive-folder.js"; -import type { UserList } from "@/models/entities/user-list.js"; -import type { UserGroup } from "@/models/entities/user-group.js"; -import type { AbuseUserReport } from "@/models/entities/abuse-user-report.js"; -import type { Signin } from "@/models/entities/signin.js"; -import type { Page } from "@/models/entities/page.js"; -import type { Packed } from "@/misc/schema.js"; -import type { Webhook } from "@/models/entities/webhook"; +import type {User} from "@/models/entities/user.js"; +import type {UserProfile} from "@/models/entities/user-profile.js"; +import type {Note} from "@/models/entities/note.js"; +import type {Antenna} from "@/models/entities/antenna.js"; +import type {DriveFile} from "@/models/entities/drive-file.js"; +import type {DriveFolder} from "@/models/entities/drive-folder.js"; +import type {UserList} from "@/models/entities/user-list.js"; +import type {AbuseUserReport} from "@/models/entities/abuse-user-report.js"; +import type {Signin} from "@/models/entities/signin.js"; +import type {Page} from "@/models/entities/page.js"; +import type {Packed} from "@/misc/schema.js"; +import type {Webhook} from "@/models/entities/webhook"; //#region Stream type-body definitions export interface InternalStreamTypes { @@ -56,8 +54,6 @@ export interface BroadcastTypes { export interface UserStreamTypes { terminate: Record; - followChannel: Channel; - unfollowChannel: Channel; updateUserProfile: UserProfile; mute: User; unmute: User; @@ -207,10 +203,6 @@ export type StreamMessages = { name: `noteStream:${Note["id"]}`; payload: EventUnionFromDictionary; }; - channel: { - name: `channelStream:${Channel["id"]}`; - payload: EventUnionFromDictionary; - }; userList: { name: `userListStream:${UserList["id"]}`; payload: EventUnionFromDictionary; diff --git a/packages/backend/src/services/note/create.ts b/packages/backend/src/services/note/create.ts index ba6859249d..2e128295a5 100644 --- a/packages/backend/src/services/note/create.ts +++ b/packages/backend/src/services/note/create.ts @@ -1,74 +1,59 @@ import * as mfm from "mfm-js"; import es from "../../db/elasticsearch.js"; import sonic from "../../db/sonic.js"; -import { - publishMainStream, - publishNotesStream, - publishNoteStream, -} from "@/services/stream.js"; +import {publishMainStream, publishNotesStream, publishNoteStream,} from "@/services/stream.js"; import DeliverManager from "@/remote/activitypub/deliver-manager.js"; import renderNote from "@/remote/activitypub/renderer/note.js"; import renderCreate from "@/remote/activitypub/renderer/create.js"; import renderAnnounce from "@/remote/activitypub/renderer/announce.js"; -import { renderActivity } from "@/remote/activitypub/renderer/index.js"; -import { resolveUser } from "@/remote/resolve-user.js"; +import {renderActivity} from "@/remote/activitypub/renderer/index.js"; +import {resolveUser} from "@/remote/resolve-user.js"; import config from "@/config/index.js"; -import { updateHashtags } from "../update-hashtag.js"; -import { concat } from "@/prelude/array.js"; -import { insertNoteUnread } from "@/services/note/unread.js"; -import { registerOrFetchInstanceDoc } from "../register-or-fetch-instance-doc.js"; -import { extractMentions } from "@/misc/extract-mentions.js"; -import { extractCustomEmojisFromMfm } from "@/misc/extract-custom-emojis-from-mfm.js"; -import { extractHashtags } from "@/misc/extract-hashtags.js"; -import type { IMentionedRemoteUsers } from "@/models/entities/note.js"; -import { Note } from "@/models/entities/note.js"; +import {updateHashtags} from "../update-hashtag.js"; +import {concat} from "@/prelude/array.js"; +import {insertNoteUnread} from "@/services/note/unread.js"; +import {registerOrFetchInstanceDoc} from "../register-or-fetch-instance-doc.js"; +import {extractMentions} from "@/misc/extract-mentions.js"; +import {extractCustomEmojisFromMfm} from "@/misc/extract-custom-emojis-from-mfm.js"; +import {extractHashtags} from "@/misc/extract-hashtags.js"; +import type {IMentionedRemoteUsers} from "@/models/entities/note.js"; +import {Note} from "@/models/entities/note.js"; import { - Mutings, - Users, - NoteWatchings, - Notes, Instances, - UserProfiles, - Antennas, - Followings, MutedNotes, - Channels, - ChannelFollowings, - Blockings, + Mutings, + Notes, NoteThreadMutings, + NoteWatchings, + UserProfiles, + Users, } from "@/models/index.js"; -import type { DriveFile } from "@/models/entities/drive-file.js"; -import type { App } from "@/models/entities/app.js"; -import { Not, In, IsNull } from "typeorm"; -import type { User, ILocalUser, IRemoteUser } from "@/models/entities/user.js"; -import { genId } from "@/misc/gen-id.js"; -import { - notesChart, - perUserNotesChart, - activeUsersChart, - instanceChart, -} from "@/services/chart/index.js"; -import type { IPoll } from "@/models/entities/poll.js"; -import { Poll } from "@/models/entities/poll.js"; -import { createNotification } from "../create-notification.js"; -import { isDuplicateKeyValueError } from "@/misc/is-duplicate-key-value-error.js"; -import { checkHitAntenna } from "@/misc/check-hit-antenna.js"; -import { getWordHardMute } from "@/misc/check-word-mute.js"; -import { addNoteToAntenna } from "../add-note-to-antenna.js"; -import { countSameRenotes } from "@/misc/count-same-renotes.js"; -import { deliverToRelays, getCachedRelays } from "../relay.js"; -import type { Channel } from "@/models/entities/channel.js"; -import { normalizeForSearch } from "@/misc/normalize-for-search.js"; -import { getAntennas } from "@/misc/antenna-cache.js"; -import { endedPollNotificationQueue } from "@/queue/queues.js"; -import { webhookDeliver } from "@/queue/index.js"; -import { Cache } from "@/misc/cache.js"; -import type { UserProfile } from "@/models/entities/user-profile.js"; -import { db } from "@/db/postgre.js"; -import { getActiveWebhooks } from "@/misc/webhook-cache.js"; -import { shouldSilenceInstance } from "@/misc/should-block-instance.js"; +import type {DriveFile} from "@/models/entities/drive-file.js"; +import type {App} from "@/models/entities/app.js"; +import {In, Not} from "typeorm"; +import type {ILocalUser, IRemoteUser, User} from "@/models/entities/user.js"; +import {genId} from "@/misc/gen-id.js"; +import {activeUsersChart, instanceChart, notesChart, perUserNotesChart,} from "@/services/chart/index.js"; +import type {IPoll} from "@/models/entities/poll.js"; +import {Poll} from "@/models/entities/poll.js"; +import {createNotification} from "../create-notification.js"; +import {isDuplicateKeyValueError} from "@/misc/is-duplicate-key-value-error.js"; +import {checkHitAntenna} from "@/misc/check-hit-antenna.js"; +import {getWordHardMute} from "@/misc/check-word-mute.js"; +import {addNoteToAntenna} from "../add-note-to-antenna.js"; +import {countSameRenotes} from "@/misc/count-same-renotes.js"; +import {deliverToRelays, getCachedRelays} from "../relay.js"; +import {normalizeForSearch} from "@/misc/normalize-for-search.js"; +import {getAntennas} from "@/misc/antenna-cache.js"; +import {endedPollNotificationQueue} from "@/queue/queues.js"; +import {webhookDeliver} from "@/queue/index.js"; +import {Cache} from "@/misc/cache.js"; +import type {UserProfile} from "@/models/entities/user-profile.js"; +import {db} from "@/db/postgre.js"; +import {getActiveWebhooks} from "@/misc/webhook-cache.js"; +import {shouldSilenceInstance} from "@/misc/should-block-instance.js"; import meilisearch from "../../db/meilisearch.js"; -import { redisClient } from "@/db/redis.js"; +import {redisClient} from "@/db/redis.js"; const mutedWordsCache = new Cache< { userId: UserProfile["userId"]; mutedWords: UserProfile["mutedWords"] }[] @@ -149,7 +134,6 @@ type Option = { cw?: string | null; visibility?: string; visibleUsers?: MinimumUser[] | null; - channel?: Channel | null; apMentions?: MinimumUser[] | null; apHashtags?: string[] | null; apEmojis?: string[] | null; @@ -176,39 +160,15 @@ export default async ( const dontFederateInitially = data.localOnly || data.visibility === "hidden"; - // If you reply outside the channel, match the scope of the target. - // TODO (I think it's a process that could be done on the client side, but it's server side for now.) - if ( - data.reply && - data.channel && - data.reply.channelId !== data.channel.id - ) { - if (data.reply.channelId) { - data.channel = await Channels.findOneBy({ id: data.reply.channelId }); - } else { - data.channel = null; - } - } - - // When you reply in a channel, match the scope of the target - // TODO (I think it's a process that could be done on the client side, but it's server side for now.) - if (data.reply && data.channel == null && data.reply.channelId) { - data.channel = await Channels.findOneBy({ id: data.reply.channelId }); - } - if (data.createdAt == null) data.createdAt = new Date(); if (data.visibility == null) data.visibility = "public"; if (data.localOnly == null) data.localOnly = false; - if (data.channel != null) data.visibility = "public"; - if (data.channel != null) data.visibleUsers = []; - if (data.channel != null) data.localOnly = true; if (data.visibility === "hidden") data.visibility = "public"; // enforce silent clients on server if ( user.isSilenced && - data.visibility === "public" && - data.channel == null + data.visibility === "public" ) { data.visibility = "home"; } @@ -256,12 +216,12 @@ export default async ( } // Renote local only if you Renote local only. - if (data.renote?.localOnly && data.channel == null) { + if (data.renote?.localOnly) { data.localOnly = true; } // If you reply to local only, make it local only. - if (data.reply?.localOnly && data.channel == null) { + if (data.reply?.localOnly) { data.localOnly = true; } @@ -386,20 +346,6 @@ export default async ( }); } - // Channel - if (note.channelId) { - ChannelFollowings.findBy({ followeeId: note.channelId }).then( - (followings) => { - for (const following of followings) { - insertNoteUnread(following.followerId, note, { - isSpecified: false, - isMentioned: false, - }); - } - }, - ); - } - if (data.reply) { saveReply(data.reply, note); } @@ -644,24 +590,6 @@ export default async ( //#endregion } - if (data.channel) { - Channels.increment({ id: data.channel.id }, "notesCount", 1); - Channels.update(data.channel.id, { - lastNotedAt: new Date(), - }); - - await Notes.countBy({ - userId: user.id, - channelId: data.channel.id, - }).then((count) => { - // ă“ăźć‡Šç†ăŒèĄŒă‚ă‚Œă‚‹ăźăŻăƒŽăƒŒăƒˆäœœæˆćŸŒăȘăźă§ă€ăƒŽăƒŒăƒˆăŒäž€ă€ă—ă‹ăȘă‹ăŁăŸă‚‰æœ€ćˆăźæŠ•çšżă ăšćˆ€æ–­ă§ăă‚‹ - // TODO: ăšăŻă„ăˆăƒŽăƒŒăƒˆă‚’ć‰Šé™€ă—ăŠäœ•ć›žă‚‚æŠ•çšżă™ă‚Œă°ăăźćˆ†ă ă‘ă‚€ăƒłă‚ŻăƒȘăƒĄăƒłăƒˆă•ă‚Œă‚‹é›‘ă•ă‚‚ă‚ă‚‹ăźă§ă©ă†ă«ă‹ă—ăŸă„ - if (count === 1 && data.channel != null) { - Channels.increment({ id: data.channel.id }, "usersCount", 1); - } - }); - } - // Register to search database await index(note, false); }); @@ -712,7 +640,6 @@ async function insertNote( fileIds: data.files ? data.files.map((file) => file.id) : [], replyId: data.reply ? data.reply.id : null, renoteId: data.renote ? data.renote.id : null, - channelId: data.channel ? data.channel.id : null, threadId: data.reply ? data.reply.threadId ? data.reply.threadId @@ -837,8 +764,7 @@ export async function index(note: Note, reindexing: boolean): Promise { JSON.stringify({ id: note.id, userId: note.userId, - userHost: note.userHost, - channelId: note.channelId, + userHost: note.userHost }), note.text, ); diff --git a/packages/backend/src/services/note/read.ts b/packages/backend/src/services/note/read.ts index 53188f15f7..0081d622c2 100644 --- a/packages/backend/src/services/note/read.ts +++ b/packages/backend/src/services/note/read.ts @@ -1,19 +1,12 @@ -import { publishMainStream } from "@/services/stream.js"; -import type { Note } from "@/models/entities/note.js"; -import type { User } from "@/models/entities/user.js"; -import { - NoteUnreads, - AntennaNotes, - Users, - Followings, - ChannelFollowings, -} from "@/models/index.js"; -import { Not, IsNull, In } from "typeorm"; -import type { Channel } from "@/models/entities/channel.js"; -import { checkHitAntenna } from "@/misc/check-hit-antenna.js"; -import { getAntennas } from "@/misc/antenna-cache.js"; -import { readNotificationByQuery } from "@/server/api/common/read-notification.js"; -import type { Packed } from "@/misc/schema.js"; +import {publishMainStream} from "@/services/stream.js"; +import type {Note} from "@/models/entities/note.js"; +import type {User} from "@/models/entities/user.js"; +import {AntennaNotes, Followings, NoteUnreads, Users} from "@/models/index.js"; +import {In} from "typeorm"; +import {checkHitAntenna} from "@/misc/check-hit-antenna.js"; +import {getAntennas} from "@/misc/antenna-cache.js"; +import {readNotificationByQuery} from "@/server/api/common/read-notification.js"; +import type {Packed} from "@/misc/schema.js"; /** * Mark notes as read @@ -23,7 +16,6 @@ export default async function ( notes: (Note | Packed<"Note">)[], info?: { following: Set; - followingChannels: Set; }, ) { const following = info?.following @@ -38,23 +30,10 @@ export default async function ( }) ).map((x) => x.followeeId), ); - const followingChannels = info?.followingChannels - ? info.followingChannels - : new Set( - ( - await ChannelFollowings.find({ - where: { - followerId: userId, - }, - select: ["followeeId"], - }) - ).map((x) => x.followeeId), - ); const myAntennas = (await getAntennas()).filter((a) => a.userId === userId); const readMentions: (Note | Packed<"Note">)[] = []; const readSpecifiedNotes: (Note | Packed<"Note">)[] = []; - const readChannelNotes: (Note | Packed<"Note">)[] = []; const readAntennaNotes: (Note | Packed<"Note">)[] = []; for (const note of notes) { @@ -64,10 +43,6 @@ export default async function ( readSpecifiedNotes.push(note); } - if (note.channelId && followingChannels.has(note.channelId)) { - readChannelNotes.push(note); - } - if (note.user != null) { // ăŸă¶ă‚“nullにăȘă‚‹ă“ăšăŻç„Ąă„ăŻăšă ă‘ă©äž€ćżœ for (const antenna of myAntennas) { @@ -88,8 +63,7 @@ export default async function ( if ( readMentions.length > 0 || - readSpecifiedNotes.length > 0 || - readChannelNotes.length > 0 + readSpecifiedNotes.length > 0 ) { // Remove the record await NoteUnreads.delete({ @@ -97,7 +71,6 @@ export default async function ( noteId: In([ ...readMentions.map((n) => n.id), ...readSpecifiedNotes.map((n) => n.id), - ...readChannelNotes.map((n) => n.id), ]), }); @@ -123,16 +96,6 @@ export default async function ( } }); - NoteUnreads.countBy({ - userId: userId, - noteChannelId: Not(IsNull()), - }).then((channelNoteCount) => { - if (channelNoteCount === 0) { - // ć…šăŠæ—ąèȘ­ă«ăȘăŁăŸă‚€ăƒ™ăƒłăƒˆă‚’ç™șèĄŒ - publishMainStream(userId, "readAllChannels"); - } - }); - readNotificationByQuery(userId, { noteId: In([ ...readMentions.map((n) => n.id), diff --git a/packages/backend/src/services/stream.ts b/packages/backend/src/services/stream.ts index 8e5210d841..280cc67e05 100644 --- a/packages/backend/src/services/stream.ts +++ b/packages/backend/src/services/stream.ts @@ -1,47 +1,23 @@ -import { redisClient } from "../db/redis.js"; -import type { User } from "@/models/entities/user.js"; -import type { Note } from "@/models/entities/note.js"; -import type { UserList } from "@/models/entities/user-list.js"; -import type { UserGroup } from "@/models/entities/user-group.js"; +import {redisClient} from "../db/redis.js"; +import type {User} from "@/models/entities/user.js"; +import type {Note} from "@/models/entities/note.js"; +import type {UserList} from "@/models/entities/user-list.js"; import config from "@/config/index.js"; -import type { Antenna } from "@/models/entities/antenna.js"; -import type { Channel } from "@/models/entities/channel.js"; +import type {Antenna} from "@/models/entities/antenna.js"; import type { - StreamChannels, AdminStreamTypes, AntennaStreamTypes, BroadcastTypes, - ChannelStreamTypes, DriveStreamTypes, InternalStreamTypes, MainStreamTypes, NoteStreamTypes, + StreamChannels, UserListStreamTypes, UserStreamTypes, } from "@/server/api/stream/types.js"; class Publisher { - private publish = ( - channel: StreamChannels, - type: string | null, - value?: any, - ): void => { - const message = - type == null - ? value - : value == null - ? { type: type, body: null } - : { type: type, body: value }; - - redisClient.publish( - config.host, - JSON.stringify({ - channel: channel, - message: message, - }), - ); - }; - public publishInternalEvent = ( type: K, value?: InternalStreamTypes[K], @@ -107,18 +83,6 @@ class Publisher { }); }; - public publishChannelStream = ( - channelId: Channel["id"], - type: K, - value?: ChannelStreamTypes[K], - ): void => { - this.publish( - `channelStream:${channelId}`, - type, - typeof value === "undefined" ? null : value, - ); - }; - public publishUserListStream = ( listId: UserList["id"], type: K, @@ -158,6 +122,27 @@ class Publisher { typeof value === "undefined" ? null : value, ); }; + + private publish = ( + channel: StreamChannels, + type: string | null, + value?: any, + ): void => { + const message = + type == null + ? value + : value == null + ? { type: type, body: null } + : { type: type, body: value }; + + redisClient.publish( + config.host, + JSON.stringify({ + channel: channel, + message: message, + }), + ); + }; } const publisher = new Publisher(); @@ -171,7 +156,6 @@ export const publishMainStream = publisher.publishMainStream; export const publishDriveStream = publisher.publishDriveStream; export const publishNoteStream = publisher.publishNoteStream; export const publishNotesStream = publisher.publishNotesStream; -export const publishChannelStream = publisher.publishChannelStream; export const publishUserListStream = publisher.publishUserListStream; export const publishAntennaStream = publisher.publishAntennaStream; export const publishAdminStream = publisher.publishAdminStream; diff --git a/packages/calckey-js/.editorconfig b/packages/calckey-js/.editorconfig deleted file mode 100644 index da178f0707..0000000000 --- a/packages/calckey-js/.editorconfig +++ /dev/null @@ -1,7 +0,0 @@ -root = true - -[*] -indent_style = tab -indent_size = 2 -charset = utf-8 -insert_final_newline = true diff --git a/packages/calckey-js/.gitignore b/packages/calckey-js/.gitignore deleted file mode 100644 index 8a97abf3a4..0000000000 --- a/packages/calckey-js/.gitignore +++ /dev/null @@ -1,113 +0,0 @@ -# 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 - -# App -temp -# built - -# Yarn -.yarn/* -.pnp.cjs -.pnp.loader.mjs diff --git a/packages/calckey-js/.swcrc b/packages/calckey-js/.swcrc deleted file mode 100644 index 508e597b5c..0000000000 --- a/packages/calckey-js/.swcrc +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/swcrc", - "jsc": { - "parser": { - "syntax": "typescript", - "dynamicImport": true, - "decorators": true - }, - "transform": { - "legacyDecorator": true, - "decoratorMetadata": true - }, - "target": "es2022" - }, - "minify": false, - "module": { - "type": "commonjs", - "strict": true - } -} diff --git a/packages/calckey-js/CHANGELOG.md b/packages/calckey-js/CHANGELOG.md deleted file mode 100644 index 88a5c24610..0000000000 --- a/packages/calckey-js/CHANGELOG.md +++ /dev/null @@ -1,29 +0,0 @@ -# 0.0.14 -- remove needless Object.freeze() - -# 0.0.13 -- expose ChannelConnection and Channels types - -# 0.0.12 -- fix a bug that cannot connect to streaming - -# 0.0.11 -- update user type -- add missing main stream types - -# 0.0.10 -- add consts - -# 0.0.9 -- add list of api permission -- Update Note type - -# 0.0.8 -- add type definition for `messagingMessage` event to main stream channel -- Update Note type - -# 0.0.7 -- Notificationsăźćž‹ă‚’äżźæ­Ł -- MessagingMessageăźćž‹ă‚’äżźæ­Ł -- UserLiteăźćž‹ă‚’äżźæ­Ł -- apiă§ăƒă‚€ăƒ†ă‚Łăƒ–fetchă‚’æ ŒçŽă™ă‚‹éš›ă«ç„Ąćé–ąæ•°ă§ăƒ©ăƒƒăƒ—ă™ă‚‹ă‚ˆă†ă« diff --git a/packages/calckey-js/LICENSE b/packages/calckey-js/LICENSE deleted file mode 100644 index 11c1f9ce22..0000000000 --- a/packages/calckey-js/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021-2022 syuilo and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/calckey-js/README.md b/packages/calckey-js/README.md deleted file mode 100644 index 0aef8d6b0d..0000000000 --- a/packages/calckey-js/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Calckey.js - -Fork of Misskey.js for Calckey - -https://www.npmjs.com/package/calckey-js - -To fully build, run `pnpm i && pnpm run render`. - -![Parody of the Javascript logo with "CK" instead of "JS"](https://codeberg.org/repo-avatars/80771-4d86135f67b9a460cdd1be9e91648e5f) diff --git a/packages/calckey-js/api-extractor.json b/packages/calckey-js/api-extractor.json deleted file mode 100644 index a95281a6d5..0000000000 --- a/packages/calckey-js/api-extractor.json +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - - /** - * Optionally specifies another JSON config file that this file extends from. This provides a way for - * standard settings to be shared across multiple projects. - * - * If the path starts with "./" or "../", the path is resolved relative to the folder of the file that contains - * the "extends" field. Otherwise, the first path segment is interpreted as an NPM package name, and will be - * resolved using NodeJS require(). - * - * SUPPORTED TOKENS: none - * DEFAULT VALUE: "" - */ - // "extends": "./shared/api-extractor-base.json" - // "extends": "my-package/include/api-extractor-base.json" - - /** - * Determines the "" token that can be used with other config file settings. The project folder - * typically contains the tsconfig.json and package.json config files, but the path is user-defined. - * - * The path is resolved relative to the folder of the config file that contains the setting. - * - * The default value for "projectFolder" is the token "", which means the folder is determined by traversing - * parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder - * that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error - * will be reported. - * - * SUPPORTED TOKENS: - * DEFAULT VALUE: "" - */ - // "projectFolder": "..", - - /** - * (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor - * analyzes the symbols exported by this module. - * - * The file extension must be ".d.ts" and not ".ts". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - */ - "mainEntryPointFilePath": "/built/index.d.ts", - - /** - * A list of NPM package names whose exports should be treated as part of this package. - * - * For example, suppose that Webpack is used to generate a distributed bundle for the project "library1", - * and another NPM package "library2" is embedded in this bundle. Some types from library2 may become part - * of the exported API for library1, but by default API Extractor would generate a .d.ts rollup that explicitly - * imports library2. To avoid this, we can specify: - * - * "bundledPackages": [ "library2" ], - * - * This would direct API Extractor to embed those types directly in the .d.ts rollup, as if they had been - * local files for library1. - */ - "bundledPackages": [], - - /** - * Determines how the TypeScript compiler engine will be invoked by API Extractor. - */ - "compiler": { - /** - * Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * Note: This setting will be ignored if "overrideTsconfig" is used. - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/tsconfig.json" - */ - // "tsconfigFilePath": "/tsconfig.json", - /** - * Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk. - * The object must conform to the TypeScript tsconfig schema: - * - * http://json.schemastore.org/tsconfig - * - * If omitted, then the tsconfig.json file will be read from the "projectFolder". - * - * DEFAULT VALUE: no overrideTsconfig section - */ - // "overrideTsconfig": { - // . . . - // } - /** - * This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended - * and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when - * dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses - * for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck. - * - * DEFAULT VALUE: false - */ - // "skipLibCheck": true, - }, - - /** - * Configures how the API report file (*.api.md) will be generated. - */ - "apiReport": { - /** - * (REQUIRED) Whether to generate an API report. - */ - "enabled": true - - /** - * The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce - * a full file path. - * - * The file extension should be ".api.md", and the string should not contain a path separator such as "\" or "/". - * - * SUPPORTED TOKENS: , - * DEFAULT VALUE: ".api.md" - */ - // "reportFileName": ".api.md", - - /** - * Specifies the folder where the API report file is written. The file name portion is determined by - * the "reportFileName" setting. - * - * The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy, - * e.g. for an API review. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/etc/" - */ - // "reportFolder": "/etc/", - - /** - * Specifies the folder where the temporary report file is written. The file name portion is determined by - * the "reportFileName" setting. - * - * After the temporary file is written to disk, it is compared with the file in the "reportFolder". - * If they are different, a production build will fail. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/temp/" - */ - // "reportTempFolder": "/temp/" - }, - - /** - * Configures how the doc model file (*.api.json) will be generated. - */ - "docModel": { - /** - * (REQUIRED) Whether to generate a doc model file. - */ - "enabled": true - - /** - * The output path for the doc model file. The file extension should be ".api.json". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/temp/.api.json" - */ - // "apiJsonFilePath": "/temp/.api.json" - }, - - /** - * Configures how the .d.ts rollup file will be generated. - */ - "dtsRollup": { - /** - * (REQUIRED) Whether to generate the .d.ts rollup file. - */ - "enabled": false - - /** - * Specifies the output path for a .d.ts rollup file to be generated without any trimming. - * This file will include all declarations that are exported by the main entry point. - * - * If the path is an empty string, then this file will not be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/dist/.d.ts" - */ - // "untrimmedFilePath": "/dist/.d.ts", - - /** - * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "beta" release. - * This file will include only declarations that are marked as "@public" or "@beta". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "betaTrimmedFilePath": "/dist/-beta.d.ts", - - /** - * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "public" release. - * This file will include only declarations that are marked as "@public". - * - * If the path is an empty string, then this file will not be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "publicTrimmedFilePath": "/dist/-public.d.ts", - - /** - * When a declaration is trimmed, by default it will be replaced by a code comment such as - * "Excluded from this release type: exampleMember". Set "omitTrimmingComments" to true to remove the - * declaration completely. - * - * DEFAULT VALUE: false - */ - // "omitTrimmingComments": true - }, - - /** - * Configures how the tsdoc-metadata.json file will be generated. - */ - "tsdocMetadata": { - /** - * Whether to generate the tsdoc-metadata.json file. - * - * DEFAULT VALUE: true - */ - // "enabled": true, - /** - * Specifies where the TSDoc metadata file should be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * The default value is "", which causes the path to be automatically inferred from the "tsdocMetadata", - * "typings" or "main" fields of the project's package.json. If none of these fields are set, the lookup - * falls back to "tsdoc-metadata.json" in the package folder. - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "tsdocMetadataFilePath": "/dist/tsdoc-metadata.json" - }, - - /** - * Specifies what type of newlines API Extractor should use when writing output files. By default, the output files - * will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead. - * To use the OS's default newline kind, specify "os". - * - * DEFAULT VALUE: "crlf" - */ - // "newlineKind": "crlf", - - /** - * Configures how API Extractor reports error and warning messages produced during analysis. - * - * There are three sources of messages: compiler messages, API Extractor messages, and TSDoc messages. - */ - "messages": { - /** - * Configures handling of diagnostic messages reported by the TypeScript compiler engine while analyzing - * the input .d.ts files. - * - * TypeScript message identifiers start with "TS" followed by an integer. For example: "TS2551" - * - * DEFAULT VALUE: A single "default" entry with logLevel=warning. - */ - "compilerMessageReporting": { - /** - * Configures the default routing for messages that don't match an explicit rule in this table. - */ - "default": { - /** - * Specifies whether the message should be written to the the tool's output log. Note that - * the "addToApiReportFile" property may supersede this option. - * - * Possible values: "error", "warning", "none" - * - * Errors cause the build to fail and return a nonzero exit code. Warnings cause a production build fail - * and return a nonzero exit code. For a non-production build (e.g. when "api-extractor run" includes - * the "--local" option), the warning is displayed but the build will not fail. - * - * DEFAULT VALUE: "warning" - */ - "logLevel": "warning" - - /** - * When addToApiReportFile is true: If API Extractor is configured to write an API report file (.api.md), - * then the message will be written inside that file; otherwise, the message is instead logged according to - * the "logLevel" option. - * - * DEFAULT VALUE: false - */ - // "addToApiReportFile": false - } - - // "TS2551": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - }, - - /** - * Configures handling of messages reported by API Extractor during its analysis. - * - * API Extractor message identifiers start with "ae-". For example: "ae-extra-release-tag" - * - * DEFAULT VALUE: See api-extractor-defaults.json for the complete table of extractorMessageReporting mappings - */ - "extractorMessageReporting": { - "default": { - "logLevel": "none" - // "addToApiReportFile": false - } - - // "ae-extra-release-tag": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - }, - - /** - * Configures handling of messages reported by the TSDoc parser when analyzing code comments. - * - * TSDoc message identifiers start with "tsdoc-". For example: "tsdoc-link-tag-unescaped-text" - * - * DEFAULT VALUE: A single "default" entry with logLevel=warning. - */ - "tsdocMessageReporting": { - "default": { - "logLevel": "warning" - // "addToApiReportFile": false - } - - // "tsdoc-link-tag-unescaped-text": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - } - } -} diff --git a/packages/calckey-js/codecov.yml b/packages/calckey-js/codecov.yml deleted file mode 100644 index 5242987213..0000000000 --- a/packages/calckey-js/codecov.yml +++ /dev/null @@ -1,2 +0,0 @@ -codecov: - token: d55e1270-f20a-4727-aa05-2bd57793315a diff --git a/packages/calckey-js/etc/calckey-js.api.json b/packages/calckey-js/etc/calckey-js.api.json deleted file mode 100644 index 524ae3b2eb..0000000000 --- a/packages/calckey-js/etc/calckey-js.api.json +++ /dev/null @@ -1,9814 +0,0 @@ -{ - "metadata": { - "toolPackage": "@microsoft/api-extractor", - "toolVersion": "7.36.0", - "schemaVersion": 1011, - "oldestForwardsCompatibleVersion": 1001, - "tsdocConfig": { - "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", - "noStandardTags": true, - "tagDefinitions": [ - { - "tagName": "@alpha", - "syntaxKind": "modifier" - }, - { - "tagName": "@beta", - "syntaxKind": "modifier" - }, - { - "tagName": "@defaultValue", - "syntaxKind": "block" - }, - { - "tagName": "@decorator", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@deprecated", - "syntaxKind": "block" - }, - { - "tagName": "@eventProperty", - "syntaxKind": "modifier" - }, - { - "tagName": "@example", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@experimental", - "syntaxKind": "modifier" - }, - { - "tagName": "@inheritDoc", - "syntaxKind": "inline" - }, - { - "tagName": "@internal", - "syntaxKind": "modifier" - }, - { - "tagName": "@label", - "syntaxKind": "inline" - }, - { - "tagName": "@link", - "syntaxKind": "inline", - "allowMultiple": true - }, - { - "tagName": "@override", - "syntaxKind": "modifier" - }, - { - "tagName": "@packageDocumentation", - "syntaxKind": "modifier" - }, - { - "tagName": "@param", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@privateRemarks", - "syntaxKind": "block" - }, - { - "tagName": "@public", - "syntaxKind": "modifier" - }, - { - "tagName": "@readonly", - "syntaxKind": "modifier" - }, - { - "tagName": "@remarks", - "syntaxKind": "block" - }, - { - "tagName": "@returns", - "syntaxKind": "block" - }, - { - "tagName": "@sealed", - "syntaxKind": "modifier" - }, - { - "tagName": "@see", - "syntaxKind": "block" - }, - { - "tagName": "@throws", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@typeParam", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@virtual", - "syntaxKind": "modifier" - }, - { - "tagName": "@betaDocumentation", - "syntaxKind": "modifier" - }, - { - "tagName": "@internalRemarks", - "syntaxKind": "block" - }, - { - "tagName": "@preapproved", - "syntaxKind": "modifier" - } - ], - "supportForTags": { - "@alpha": true, - "@beta": true, - "@defaultValue": true, - "@decorator": true, - "@deprecated": true, - "@eventProperty": true, - "@example": true, - "@experimental": true, - "@inheritDoc": true, - "@internal": true, - "@label": true, - "@link": true, - "@override": true, - "@packageDocumentation": true, - "@param": true, - "@privateRemarks": true, - "@public": true, - "@readonly": true, - "@remarks": true, - "@returns": true, - "@sealed": true, - "@see": true, - "@throws": true, - "@typeParam": true, - "@virtual": true, - "@betaDocumentation": true, - "@internalRemarks": true, - "@preapproved": true - }, - "reportUnsupportedHtmlElements": false - } - }, - "kind": "Package", - "canonicalReference": "calckey-js!", - "docComment": "", - "name": "calckey-js", - "preserveMemberOrder": false, - "members": [ - { - "kind": "EntryPoint", - "canonicalReference": "calckey-js!", - "name": "", - "preserveMemberOrder": false, - "members": [ - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!Acct:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Acct = " - }, - { - "kind": "Content", - "text": "{\n\tusername: string;\n\thost: string | null;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/acct.ts", - "releaseTag": "Public", - "name": "Acct", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "Namespace", - "canonicalReference": "calckey-js!api:namespace", - "docComment": "", - "excerptTokens": [], - "fileUrlPath": "src/index.ts", - "releaseTag": "None", - "name": "api", - "preserveMemberOrder": false, - "members": [ - { - "kind": "Class", - "canonicalReference": "calckey-js!api.APIClient:class", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare class APIClient " - } - ], - "fileUrlPath": "src/api.ts", - "releaseTag": "Public", - "isAbstract": false, - "name": "APIClient", - "preserveMemberOrder": false, - "members": [ - { - "kind": "Constructor", - "canonicalReference": "calckey-js!api.APIClient:constructor(1)", - "docComment": "/**\n * Constructs a new instance of the `APIClient` class\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "constructor(opts: " - }, - { - "kind": "Content", - "text": "{\n\t\torigin: " - }, - { - "kind": "Reference", - "text": "APIClient", - "canonicalReference": "calckey-js!api.APIClient:class" - }, - { - "kind": "Content", - "text": "[\"origin\"];\n\t\tcredential?: " - }, - { - "kind": "Reference", - "text": "APIClient", - "canonicalReference": "calckey-js!api.APIClient:class" - }, - { - "kind": "Content", - "text": "[\"credential\"];\n\t\tfetch?: " - }, - { - "kind": "Reference", - "text": "APIClient", - "canonicalReference": "calckey-js!api.APIClient:class" - }, - { - "kind": "Content", - "text": "[\"fetch\"] | null | undefined;\n\t}" - }, - { - "kind": "Content", - "text": ");" - } - ], - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "opts", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 8 - }, - "isOptional": false - } - ] - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!api.APIClient#credential:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "credential: " - }, - { - "kind": "Content", - "text": "string | null | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": false, - "releaseTag": "Public", - "name": "credential", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": false, - "isAbstract": false - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!api.APIClient#fetch:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "fetch: " - }, - { - "kind": "Reference", - "text": "FetchLike", - "canonicalReference": "calckey-js!api.FetchLike:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": false, - "releaseTag": "Public", - "name": "fetch", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": false, - "isAbstract": false - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!api.APIClient#origin:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "origin: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": false, - "releaseTag": "Public", - "name": "origin", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": false, - "isAbstract": false - }, - { - "kind": "Method", - "canonicalReference": "calckey-js!api.APIClient#request:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "request(\n\t\tendpoint: " - }, - { - "kind": "Content", - "text": "E" - }, - { - "kind": "Content", - "text": ",\n\t\tparams?: " - }, - { - "kind": "Content", - "text": "P" - }, - { - "kind": "Content", - "text": ",\n\t\tcredential?: " - }, - { - "kind": "Content", - "text": "string | null | undefined" - }, - { - "kind": "Content", - "text": ",\n\t): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "<\n\t\t" - }, - { - "kind": "Reference", - "text": "Endpoints", - "canonicalReference": "calckey-js!Endpoints:type" - }, - { - "kind": "Content", - "text": "[E][\"res\"] extends {\n\t\t\t$switch: {\n\t\t\t\t$cases: [any, any][];\n\t\t\t\t$default: any;\n\t\t\t};\n\t\t}\n\t\t\t? " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "IsCaseMatched", - "canonicalReference": "calckey-js!~IsCaseMatched:type" - }, - { - "kind": "Content", - "text": " extends true\n\t\t\t\t? " - }, - { - "kind": "Reference", - "text": "GetCaseResult", - "canonicalReference": "calckey-js!~GetCaseResult:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t\t: " - }, - { - "kind": "Reference", - "text": "Endpoints", - "canonicalReference": "calckey-js!Endpoints:type" - }, - { - "kind": "Content", - "text": "[E][\"res\"][\"$switch\"][\"$default\"]\n\t\t\t: " - }, - { - "kind": "Reference", - "text": "Endpoints", - "canonicalReference": "calckey-js!Endpoints:type" - }, - { - "kind": "Content", - "text": "[E][\"res\"]\n\t>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "typeParameters": [ - { - "typeParameterName": "E", - "constraintTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "defaultTypeTokenRange": { - "startIndex": 0, - "endIndex": 0 - } - }, - { - "typeParameterName": "P", - "constraintTokenRange": { - "startIndex": 4, - "endIndex": 6 - }, - "defaultTypeTokenRange": { - "startIndex": 0, - "endIndex": 0 - } - } - ], - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 13, - "endIndex": 61 - }, - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "endpoint", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "isOptional": false - }, - { - "parameterName": "params", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "isOptional": true - }, - { - "parameterName": "credential", - "parameterTypeTokenRange": { - "startIndex": 11, - "endIndex": 12 - }, - "isOptional": true - } - ], - "isOptional": false, - "isAbstract": false, - "name": "request" - } - ], - "implementsTokenRanges": [] - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!api.APIError:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type APIError = " - }, - { - "kind": "Content", - "text": "{\n\tid: string;\n\tcode: string;\n\tmessage: string;\n\tkind: \"client\" | \"server\";\n\tinfo: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/api.ts", - "releaseTag": "Public", - "name": "APIError", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!api.FetchLike:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type FetchLike = " - }, - { - "kind": "Content", - "text": "(\n\tinput: string,\n\tinit?: {\n\t\tmethod?: string;\n\t\tbody?: string;\n\t\tcredentials?: " - }, - { - "kind": "Reference", - "text": "RequestCredentials", - "canonicalReference": "!RequestCredentials:type" - }, - { - "kind": "Content", - "text": ";\n\t\tcache?: " - }, - { - "kind": "Reference", - "text": "RequestCache", - "canonicalReference": "!RequestCache:type" - }, - { - "kind": "Content", - "text": ";\n\t},\n) => " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "<{\n\tstatus: number;\n\tjson(): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": ";\n}>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/api.ts", - "releaseTag": "Public", - "name": "FetchLike", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 10 - } - }, - { - "kind": "Function", - "canonicalReference": "calckey-js!api.isAPIError:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function isAPIError(reason: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "reason", - "canonicalReference": "calckey-js!~reason" - }, - { - "kind": "Content", - "text": " is " - }, - { - "kind": "Reference", - "text": "APIError", - "canonicalReference": "calckey-js!api.APIError:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/api.ts", - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "reason", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isOptional": false - } - ], - "name": "isAPIError" - } - ] - }, - { - "kind": "Class", - "canonicalReference": "calckey-js!ChannelConnection:class", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare abstract class Connection<\n\tChannel extends " - }, - { - "kind": "Reference", - "text": "AnyOf", - "canonicalReference": "calckey-js!~AnyOf:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "Channels", - "canonicalReference": "calckey-js!Channels:type" - }, - { - "kind": "Content", - "text": ">" - }, - { - "kind": "Content", - "text": " = " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ",\n> extends " - }, - { - "kind": "Reference", - "text": "EventEmitter", - "canonicalReference": "eventemitter3!EventEmitter.EventEmitter" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": " " - } - ], - "fileUrlPath": "src/streaming.ts", - "releaseTag": "Public", - "typeParameters": [ - { - "typeParameterName": "Channel", - "constraintTokenRange": { - "startIndex": 1, - "endIndex": 5 - }, - "defaultTypeTokenRange": { - "startIndex": 6, - "endIndex": 7 - } - } - ], - "isAbstract": true, - "name": "ChannelConnection", - "preserveMemberOrder": false, - "members": [ - { - "kind": "Constructor", - "canonicalReference": "calckey-js!ChannelConnection:constructor(1)", - "docComment": "/**\n * Constructs a new instance of the `Connection` class\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "constructor(stream: " - }, - { - "kind": "Reference", - "text": "Stream", - "canonicalReference": "calckey-js!Stream:class" - }, - { - "kind": "Content", - "text": ", channel: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ");" - } - ], - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "stream", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isOptional": false - }, - { - "parameterName": "channel", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "isOptional": false - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "isOptional": true - } - ] - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!ChannelConnection#channel:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "channel: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": false, - "releaseTag": "Public", - "name": "channel", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": false, - "isAbstract": false - }, - { - "kind": "Method", - "canonicalReference": "calckey-js!ChannelConnection#dispose:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "abstract dispose(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [], - "isOptional": false, - "isAbstract": true, - "name": "dispose" - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!ChannelConnection#id:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "abstract id: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": false, - "releaseTag": "Public", - "name": "id", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": false, - "isAbstract": true - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!ChannelConnection#inCount:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "inCount: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": false, - "releaseTag": "Public", - "name": "inCount", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": false, - "isAbstract": false - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!ChannelConnection#name:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "name?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": true, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": false, - "isAbstract": false - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!ChannelConnection#outCount:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "outCount: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": false, - "releaseTag": "Public", - "name": "outCount", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": false, - "isAbstract": false - }, - { - "kind": "Method", - "canonicalReference": "calckey-js!ChannelConnection#send:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "send(\n\t\ttype: " - }, - { - "kind": "Content", - "text": "T" - }, - { - "kind": "Content", - "text": ",\n\t\tbody: " - }, - { - "kind": "Content", - "text": "Channel[\"receives\"][T]" - }, - { - "kind": "Content", - "text": ",\n\t): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "typeParameters": [ - { - "typeParameterName": "T", - "constraintTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "defaultTypeTokenRange": { - "startIndex": 0, - "endIndex": 0 - } - } - ], - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "isOptional": false - }, - { - "parameterName": "body", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "isOptional": false - } - ], - "isOptional": false, - "isAbstract": false, - "name": "send" - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!ChannelConnection#stream:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "protected stream: " - }, - { - "kind": "Reference", - "text": "Stream", - "canonicalReference": "calckey-js!Stream:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": false, - "releaseTag": "Public", - "name": "stream", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": true, - "isAbstract": false - } - ], - "extendsTokenRange": { - "startIndex": 8, - "endIndex": 10 - }, - "implementsTokenRanges": [] - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!Channels:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Channels = " - }, - { - "kind": "Content", - "text": "{\n\tmain: {\n\t\tparams: null;\n\t\tevents: {\n\t\t\tnotification: (payload: " - }, - { - "kind": "Reference", - "text": "Notification", - "canonicalReference": "calckey-js!entities.Notification_2:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tmention: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\treply: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\trenote: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tfollow: (payload: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tfollowed: (payload: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tunfollow: (payload: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tmeUpdated: (payload: " - }, - { - "kind": "Reference", - "text": "MeDetailed", - "canonicalReference": "calckey-js!entities.MeDetailed:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tpageEvent: (payload: " - }, - { - "kind": "Reference", - "text": "PageEvent", - "canonicalReference": "calckey-js!entities.PageEvent:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\turlUploadFinished: (payload: {\n\t\t\t\tmarker: string;\n\t\t\t\tfile: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\t}) => void;\n\t\t\treadAllNotifications: () => void;\n\t\t\tunreadNotification: (payload: " - }, - { - "kind": "Reference", - "text": "Notification", - "canonicalReference": "calckey-js!entities.Notification_2:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tunreadMention: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"]) => void;\n\t\t\treadAllUnreadMentions: () => void;\n\t\t\tunreadSpecifiedNote: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"]) => void;\n\t\t\treadAllUnreadSpecifiedNotes: () => void;\n\t\t\treadAllMessagingMessages: () => void;\n\t\t\tmessagingMessage: (payload: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tunreadMessagingMessage: (payload: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\treadAllAntennas: () => void;\n\t\t\tunreadAntenna: (payload: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\treadAllAnnouncements: () => void;\n\t\t\treadAllChannels: () => void;\n\t\t\tunreadChannel: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"]) => void;\n\t\t\tmyTokenRegenerated: () => void;\n\t\t\treversiNoInvites: () => void;\n\t\t\treversiInvited: (payload: " - }, - { - "kind": "Reference", - "text": "FIXME", - "canonicalReference": "calckey-js!~FIXME:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tsignin: (payload: " - }, - { - "kind": "Reference", - "text": "FIXME", - "canonicalReference": "calckey-js!~FIXME:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tregistryUpdated: (payload: {\n\t\t\t\tscope?: string[];\n\t\t\t\tkey: string;\n\t\t\t\tvalue: any | null;\n\t\t\t}) => void;\n\t\t\tdriveFileCreated: (payload: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\treadAntenna: (payload: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t};\n\t\treceives: null;\n\t};\n\thomeTimeline: {\n\t\tparams: null;\n\t\tevents: {\n\t\t\tnote: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t};\n\t\treceives: null;\n\t};\n\tlocalTimeline: {\n\t\tparams: null;\n\t\tevents: {\n\t\t\tnote: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t};\n\t\treceives: null;\n\t};\n\thybridTimeline: {\n\t\tparams: null;\n\t\tevents: {\n\t\t\tnote: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t};\n\t\treceives: null;\n\t};\n\trecommendedTimeline: {\n\t\tparams: null;\n\t\tevents: {\n\t\t\tnote: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t};\n\t\treceives: null;\n\t};\n\tglobalTimeline: {\n\t\tparams: null;\n\t\tevents: {\n\t\t\tnote: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t};\n\t\treceives: null;\n\t};\n\tantenna: {\n\t\tparams: {\n\t\t\tantennaId: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tevents: {\n\t\t\tnote: (payload: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t};\n\t\treceives: null;\n\t};\n\tmessaging: {\n\t\tparams: {\n\t\t\totherparty?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t\tgroup?: " - }, - { - "kind": "Reference", - "text": "UserGroup", - "canonicalReference": "calckey-js!entities.UserGroup:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t};\n\t\tevents: {\n\t\t\tmessage: (payload: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t\tdeleted: (payload: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": "[\"id\"]) => void;\n\t\t\tread: (payload: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": "[\"id\"][]) => void;\n\t\t\ttypers: (payload: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[]) => void;\n\t\t};\n\t\treceives: {\n\t\t\tread: {\n\t\t\t\tid: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\t};\n\t\t};\n\t};\n\tserverStats: {\n\t\tparams: null;\n\t\tevents: {\n\t\t\tstats: (payload: " - }, - { - "kind": "Reference", - "text": "FIXME", - "canonicalReference": "calckey-js!~FIXME:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t};\n\t\treceives: {\n\t\t\trequestLog: {\n\t\t\t\tid: string | number;\n\t\t\t\tlength: number;\n\t\t\t};\n\t\t};\n\t};\n\tqueueStats: {\n\t\tparams: null;\n\t\tevents: {\n\t\t\tstats: (payload: " - }, - { - "kind": "Reference", - "text": "FIXME", - "canonicalReference": "calckey-js!~FIXME:type" - }, - { - "kind": "Content", - "text": ") => void;\n\t\t};\n\t\treceives: {\n\t\t\trequestLog: {\n\t\t\t\tid: string | number;\n\t\t\t\tlength: number;\n\t\t\t};\n\t\t};\n\t};\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/streaming.types.ts", - "releaseTag": "Public", - "name": "Channels", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 76 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!Endpoints:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Endpoints = " - }, - { - "kind": "Content", - "text": "{\n\t\"admin/abuse-user-reports\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/delete-all-files-of-a-user\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"admin/delete-logs\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: null;\n\t};\n\t\"admin/get-index-stats\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/get-table-stats\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/invite\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/logs\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/meta\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/reset-password\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/resolve-abuse-user-report\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/resync-chart\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/send-email\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/server-info\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/show-moderation-logs\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/show-user\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/show-users\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/silence-user\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/suspend-user\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/unsilence-user\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/unsuspend-user\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/update-meta\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/vacuum\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/accounts/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/ad/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/ad/delete\": {\n\t\treq: {\n\t\t\tid: " - }, - { - "kind": "Reference", - "text": "Ad", - "canonicalReference": "calckey-js!entities.Ad:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"admin/ad/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/ad/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/announcements/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/announcements/delete\": {\n\t\treq: {\n\t\t\tid: " - }, - { - "kind": "Reference", - "text": "Announcement", - "canonicalReference": "calckey-js!entities.Announcement:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"admin/announcements/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/announcements/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/drive/clean-remote-files\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/drive/cleanup\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/drive/files\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/drive/show-file\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/emoji/add\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/emoji/copy\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/emoji/list-remote\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/emoji/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/emoji/remove\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/emoji/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/federation/delete-all-files\": {\n\t\treq: {\n\t\t\thost: string;\n\t\t};\n\t\tres: null;\n\t};\n\t\"admin/federation/refresh-remote-instance-metadata\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/federation/remove-all-following\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/federation/update-instance\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/moderators/add\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/moderators/remove\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/promo/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/queue/clear\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/queue/deliver-delayed\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/queue/inbox-delayed\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/queue/jobs\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/queue/stats\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/relays/add\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/relays/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"admin/relays/remove\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\tannouncements: {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\twithUnreads?: boolean;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Announcement", - "canonicalReference": "calckey-js!entities.Announcement:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Announcement", - "canonicalReference": "calckey-js!entities.Announcement:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Announcement", - "canonicalReference": "calckey-js!entities.Announcement:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"antennas/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"antennas/delete\": {\n\t\treq: {\n\t\t\tantennaId: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"antennas/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"antennas/notes\": {\n\t\treq: {\n\t\t\tantennaId: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"antennas/show\": {\n\t\treq: {\n\t\t\tantennaId: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"antennas/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"antennas/mark-read\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Antenna", - "canonicalReference": "calckey-js!entities.Antenna:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"ap/get\": {\n\t\treq: {\n\t\t\turi: string;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"ap/show\": {\n\t\treq: {\n\t\t\turi: string;\n\t\t};\n\t\tres:\n\t\t\t| {\n\t\t\t\t\ttype: \"Note\";\n\t\t\t\t\tobject: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\t }\n\t\t\t| {\n\t\t\t\t\ttype: \"User\";\n\t\t\t\t\tobject: " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\t };\n\t};\n\t\"app/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "App", - "canonicalReference": "calckey-js!entities.App:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"app/show\": {\n\t\treq: {\n\t\t\tappId: " - }, - { - "kind": "Reference", - "text": "App", - "canonicalReference": "calckey-js!entities.App:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "App", - "canonicalReference": "calckey-js!entities.App:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"auth/accept\": {\n\t\treq: {\n\t\t\ttoken: string;\n\t\t};\n\t\tres: null;\n\t};\n\t\"auth/session/generate\": {\n\t\treq: {\n\t\t\tappSecret: string;\n\t\t};\n\t\tres: {\n\t\t\ttoken: string;\n\t\t\turl: string;\n\t\t};\n\t};\n\t\"auth/session/show\": {\n\t\treq: {\n\t\t\ttoken: string;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "AuthSession", - "canonicalReference": "calckey-js!entities.AuthSession:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"auth/session/userkey\": {\n\t\treq: {\n\t\t\tappSecret: string;\n\t\t\ttoken: string;\n\t\t};\n\t\tres: {\n\t\t\taccessToken: string;\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t};\n\t};\n\t\"blocking/create\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"blocking/delete\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"blocking/list\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Blocking", - "canonicalReference": "calckey-js!entities.Blocking:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Blocking", - "canonicalReference": "calckey-js!entities.Blocking:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Blocking", - "canonicalReference": "calckey-js!entities.Blocking:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"channels/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"channels/featured\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"channels/follow\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"channels/followed\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"channels/owned\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"channels/pin-note\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"channels/show\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"channels/timeline\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"channels/unfollow\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"channels/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"charts/active-users\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t};\n\t\tres: {\n\t\t\tlocal: {\n\t\t\t\tusers: number[];\n\t\t\t};\n\t\t\tremote: {\n\t\t\t\tusers: number[];\n\t\t\t};\n\t\t};\n\t};\n\t\"charts/drive\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t};\n\t\tres: {\n\t\t\tlocal: {\n\t\t\t\tdecCount: number[];\n\t\t\t\tdecSize: number[];\n\t\t\t\tincCount: number[];\n\t\t\t\tincSize: number[];\n\t\t\t\ttotalCount: number[];\n\t\t\t\ttotalSize: number[];\n\t\t\t};\n\t\t\tremote: {\n\t\t\t\tdecCount: number[];\n\t\t\t\tdecSize: number[];\n\t\t\t\tincCount: number[];\n\t\t\t\tincSize: number[];\n\t\t\t\ttotalCount: number[];\n\t\t\t\ttotalSize: number[];\n\t\t\t};\n\t\t};\n\t};\n\t\"charts/federation\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t};\n\t\tres: {\n\t\t\tinstance: {\n\t\t\t\tdec: number[];\n\t\t\t\tinc: number[];\n\t\t\t\ttotal: number[];\n\t\t\t};\n\t\t};\n\t};\n\t\"charts/hashtag\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"charts/instance\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t\thost: string;\n\t\t};\n\t\tres: {\n\t\t\tdrive: {\n\t\t\t\tdecFiles: number[];\n\t\t\t\tdecUsage: number[];\n\t\t\t\tincFiles: number[];\n\t\t\t\tincUsage: number[];\n\t\t\t\ttotalFiles: number[];\n\t\t\t\ttotalUsage: number[];\n\t\t\t};\n\t\t\tfollowers: {\n\t\t\t\tdec: number[];\n\t\t\t\tinc: number[];\n\t\t\t\ttotal: number[];\n\t\t\t};\n\t\t\tfollowing: {\n\t\t\t\tdec: number[];\n\t\t\t\tinc: number[];\n\t\t\t\ttotal: number[];\n\t\t\t};\n\t\t\tnotes: {\n\t\t\t\tdec: number[];\n\t\t\t\tinc: number[];\n\t\t\t\ttotal: number[];\n\t\t\t\tdiffs: {\n\t\t\t\t\tnormal: number[];\n\t\t\t\t\trenote: number[];\n\t\t\t\t\treply: number[];\n\t\t\t\t};\n\t\t\t};\n\t\t\trequests: {\n\t\t\t\tfailed: number[];\n\t\t\t\treceived: number[];\n\t\t\t\tsucceeded: number[];\n\t\t\t};\n\t\t\tusers: {\n\t\t\t\tdec: number[];\n\t\t\t\tinc: number[];\n\t\t\t\ttotal: number[];\n\t\t\t};\n\t\t};\n\t};\n\t\"charts/network\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"charts/notes\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t};\n\t\tres: {\n\t\t\tlocal: {\n\t\t\t\tdec: number[];\n\t\t\t\tinc: number[];\n\t\t\t\ttotal: number[];\n\t\t\t\tdiffs: {\n\t\t\t\t\tnormal: number[];\n\t\t\t\t\trenote: number[];\n\t\t\t\t\treply: number[];\n\t\t\t\t};\n\t\t\t};\n\t\t\tremote: {\n\t\t\t\tdec: number[];\n\t\t\t\tinc: number[];\n\t\t\t\ttotal: number[];\n\t\t\t\tdiffs: {\n\t\t\t\t\tnormal: number[];\n\t\t\t\t\trenote: number[];\n\t\t\t\t\treply: number[];\n\t\t\t\t};\n\t\t\t};\n\t\t};\n\t};\n\t\"charts/user/drive\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: {\n\t\t\tdecCount: number[];\n\t\t\tdecSize: number[];\n\t\t\tincCount: number[];\n\t\t\tincSize: number[];\n\t\t\ttotalCount: number[];\n\t\t\ttotalSize: number[];\n\t\t};\n\t};\n\t\"charts/user/following\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"charts/user/notes\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: {\n\t\t\tdec: number[];\n\t\t\tinc: number[];\n\t\t\ttotal: number[];\n\t\t\tdiffs: {\n\t\t\t\tnormal: number[];\n\t\t\t\trenote: number[];\n\t\t\t\treply: number[];\n\t\t\t};\n\t\t};\n\t};\n\t\"charts/user/reactions\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"charts/users\": {\n\t\treq: {\n\t\t\tspan: \"day\" | \"hour\";\n\t\t\tlimit?: number;\n\t\t\toffset?: number | null;\n\t\t};\n\t\tres: {\n\t\t\tlocal: {\n\t\t\t\tdec: number[];\n\t\t\t\tinc: number[];\n\t\t\t\ttotal: number[];\n\t\t\t};\n\t\t\tremote: {\n\t\t\t\tdec: number[];\n\t\t\t\tinc: number[];\n\t\t\t\ttotal: number[];\n\t\t\t};\n\t\t};\n\t};\n\t\"clips/add-note\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"clips/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"clips/delete\": {\n\t\treq: {\n\t\t\tclipId: " - }, - { - "kind": "Reference", - "text": "Clip", - "canonicalReference": "calckey-js!entities.Clip:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"clips/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"clips/notes\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"clips/show\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"clips/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\tdrive: {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: {\n\t\t\tcapacity: number;\n\t\t\tusage: number;\n\t\t};\n\t};\n\t\"drive/files\": {\n\t\treq: {\n\t\t\tfolderId?: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t\ttype?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"type\"] | null;\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"drive/files/attached-notes\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"drive/files/check-existence\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"drive/files/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"drive/files/delete\": {\n\t\treq: {\n\t\t\tfileId: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"drive/files/find-by-hash\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"drive/files/find\": {\n\t\treq: {\n\t\t\tname: string;\n\t\t\tfolderId?: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"drive/files/show\": {\n\t\treq: {\n\t\t\tfileId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\turl?: string;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"drive/files/update\": {\n\t\treq: {\n\t\t\tfileId: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tfolderId?: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t\tname?: string;\n\t\t\tisSensitive?: boolean;\n\t\t\tcomment?: string | null;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"drive/files/upload-from-url\": {\n\t\treq: {\n\t\t\turl: string;\n\t\t\tfolderId?: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t\tisSensitive?: boolean;\n\t\t\tcomment?: string | null;\n\t\t\tmarker?: string | null;\n\t\t\tforce?: boolean;\n\t\t};\n\t\tres: null;\n\t};\n\t\"drive/folders\": {\n\t\treq: {\n\t\t\tfolderId?: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"drive/folders/create\": {\n\t\treq: {\n\t\t\tname?: string;\n\t\t\tparentId?: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"drive/folders/delete\": {\n\t\treq: {\n\t\t\tfolderId: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"drive/folders/find\": {\n\t\treq: {\n\t\t\tname: string;\n\t\t\tparentId?: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"drive/folders/show\": {\n\t\treq: {\n\t\t\tfolderId: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"drive/folders/update\": {\n\t\treq: {\n\t\t\tfolderId: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tname?: string;\n\t\t\tparentId?: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFolder", - "canonicalReference": "calckey-js!entities.DriveFolder:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"drive/stream\": {\n\t\treq: {\n\t\t\ttype?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"type\"] | null;\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\tendpoint: {\n\t\treq: {\n\t\t\tendpoint: string;\n\t\t};\n\t\tres: {\n\t\t\tparams: {\n\t\t\t\tname: string;\n\t\t\t\ttype: string;\n\t\t\t}[];\n\t\t};\n\t};\n\tendpoints: {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: string[];\n\t};\n\t\"federation/dns\": {\n\t\treq: {\n\t\t\thost: string;\n\t\t};\n\t\tres: {\n\t\t\ta: string[];\n\t\t\taaaa: string[];\n\t\t\tcname: string[];\n\t\t\ttxt: string[];\n\t\t};\n\t};\n\t\"federation/followers\": {\n\t\treq: {\n\t\t\thost: string;\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "FollowingFolloweePopulated", - "canonicalReference": "calckey-js!entities.FollowingFolloweePopulated:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"federation/following\": {\n\t\treq: {\n\t\t\thost: string;\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "FollowingFolloweePopulated", - "canonicalReference": "calckey-js!entities.FollowingFolloweePopulated:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"federation/instances\": {\n\t\treq: {\n\t\t\thost?: string | null;\n\t\t\tblocked?: boolean | null;\n\t\t\tnotResponding?: boolean | null;\n\t\t\tsuspended?: boolean | null;\n\t\t\tfederating?: boolean | null;\n\t\t\tsubscribing?: boolean | null;\n\t\t\tpublishing?: boolean | null;\n\t\t\tlimit?: number;\n\t\t\toffset?: number;\n\t\t\tsort?:\n\t\t\t\t| \"+pubSub\"\n\t\t\t\t| \"-pubSub\"\n\t\t\t\t| \"+notes\"\n\t\t\t\t| \"-notes\"\n\t\t\t\t| \"+users\"\n\t\t\t\t| \"-users\"\n\t\t\t\t| \"+following\"\n\t\t\t\t| \"-following\"\n\t\t\t\t| \"+followers\"\n\t\t\t\t| \"-followers\"\n\t\t\t\t| \"+caughtAt\"\n\t\t\t\t| \"-caughtAt\"\n\t\t\t\t| \"+lastCommunicatedAt\"\n\t\t\t\t| \"-lastCommunicatedAt\"\n\t\t\t\t| \"+driveUsage\"\n\t\t\t\t| \"-driveUsage\"\n\t\t\t\t| \"+driveFiles\"\n\t\t\t\t| \"-driveFiles\";\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Instance", - "canonicalReference": "calckey-js!entities.Instance:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"federation/show-instance\": {\n\t\treq: {\n\t\t\thost: string;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Instance", - "canonicalReference": "calckey-js!entities.Instance:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"federation/update-remote-user\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"federation/users\": {\n\t\treq: {\n\t\t\thost: string;\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"following/create\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"following/delete\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"following/requests/accept\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"following/requests/cancel\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"following/requests/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "FollowRequest", - "canonicalReference": "calckey-js!entities.FollowRequest:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"following/requests/reject\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"gallery/featured\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"gallery/popular\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"gallery/posts\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"gallery/posts/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"gallery/posts/delete\": {\n\t\treq: {\n\t\t\tpostId: " - }, - { - "kind": "Reference", - "text": "GalleryPost", - "canonicalReference": "calckey-js!entities.GalleryPost:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"gallery/posts/like\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"gallery/posts/show\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"gallery/posts/unlike\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"gallery/posts/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"games/reversi/games\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"games/reversi/games/show\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"games/reversi/games/surrender\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"games/reversi/invitations\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"games/reversi/match\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"games/reversi/match/cancel\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"get-online-users-count\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: {\n\t\t\tcount: number;\n\t\t};\n\t};\n\t\"hashtags/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"hashtags/search\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"hashtags/show\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"hashtags/trend\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"hashtags/users\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\ti: {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/apps\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/authorized-apps\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/change-password\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/delete-account\": {\n\t\treq: {\n\t\t\tpassword: string;\n\t\t};\n\t\tres: null;\n\t};\n\t\"i/export-blocking\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/export-following\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/export-mute\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/export-notes\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/export-user-lists\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/favorites\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "NoteFavorite", - "canonicalReference": "calckey-js!entities.NoteFavorite:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "NoteFavorite", - "canonicalReference": "calckey-js!entities.NoteFavorite:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "NoteFavorite", - "canonicalReference": "calckey-js!entities.NoteFavorite:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"i/gallery/likes\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/gallery/posts\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/get-word-muted-notes-count\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/import-following\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/import-user-lists\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/move\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/known-as\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/notifications\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Notification", - "canonicalReference": "calckey-js!entities.Notification_2:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Notification", - "canonicalReference": "calckey-js!entities.Notification_2:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tfollowing?: boolean;\n\t\t\tmarkAsRead?: boolean;\n\t\t\tincludeTypes?: " - }, - { - "kind": "Reference", - "text": "Notification", - "canonicalReference": "calckey-js!entities.Notification_2:type" - }, - { - "kind": "Content", - "text": "[\"type\"][];\n\t\t\texcludeTypes?: " - }, - { - "kind": "Reference", - "text": "Notification", - "canonicalReference": "calckey-js!entities.Notification_2:type" - }, - { - "kind": "Content", - "text": "[\"type\"][];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Notification", - "canonicalReference": "calckey-js!entities.Notification_2:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"i/page-likes\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/pages\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/pin\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "MeDetailed", - "canonicalReference": "calckey-js!entities.MeDetailed:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/read-all-messaging-messages\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/read-all-unread-notes\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/read-announcement\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/regenerate-token\": {\n\t\treq: {\n\t\t\tpassword: string;\n\t\t};\n\t\tres: null;\n\t};\n\t\"i/registry/get-all\": {\n\t\treq: {\n\t\t\tscope?: string[];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/registry/get-detail\": {\n\t\treq: {\n\t\t\tkey: string;\n\t\t\tscope?: string[];\n\t\t};\n\t\tres: {\n\t\t\tupdatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tvalue: any;\n\t\t};\n\t};\n\t\"i/registry/get\": {\n\t\treq: {\n\t\t\tkey: string;\n\t\t\tscope?: string[];\n\t\t};\n\t\tres: any;\n\t};\n\t\"i/registry/keys-with-type\": {\n\t\treq: {\n\t\t\tscope?: string[];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": "<\n\t\t\tstring,\n\t\t\t\"null\" | \"array\" | \"number\" | \"string\" | \"boolean\" | \"object\"\n\t\t>;\n\t};\n\t\"i/registry/keys\": {\n\t\treq: {\n\t\t\tscope?: string[];\n\t\t};\n\t\tres: string[];\n\t};\n\t\"i/registry/remove\": {\n\t\treq: {\n\t\t\tkey: string;\n\t\t\tscope?: string[];\n\t\t};\n\t\tres: null;\n\t};\n\t\"i/registry/scopes\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: string[][];\n\t};\n\t\"i/registry/set\": {\n\t\treq: {\n\t\t\tkey: string;\n\t\t\tvalue: any;\n\t\t\tscope?: string[];\n\t\t};\n\t\tres: null;\n\t};\n\t\"i/revoke-token\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/signin-history\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Signin", - "canonicalReference": "calckey-js!entities.Signin:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Signin", - "canonicalReference": "calckey-js!entities.Signin:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Signin", - "canonicalReference": "calckey-js!entities.Signin:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"i/unpin\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "MeDetailed", - "canonicalReference": "calckey-js!entities.MeDetailed:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/update-email\": {\n\t\treq: {\n\t\t\tpassword: string;\n\t\t\temail?: string | null;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "MeDetailed", - "canonicalReference": "calckey-js!entities.MeDetailed:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/update\": {\n\t\treq: {\n\t\t\tname?: string | null;\n\t\t\tdescription?: string | null;\n\t\t\tlang?: string | null;\n\t\t\tlocation?: string | null;\n\t\t\tbirthday?: string | null;\n\t\t\tavatarId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t\tbannerId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\t\t\tfields?: {\n\t\t\t\tname: string;\n\t\t\t\tvalue: string;\n\t\t\t}[];\n\t\t\tisLocked?: boolean;\n\t\t\tisExplorable?: boolean;\n\t\t\thideOnlineStatus?: boolean;\n\t\t\tcarefulBot?: boolean;\n\t\t\tautoAcceptFollowed?: boolean;\n\t\t\tnoCrawle?: boolean;\n\t\t\tpreventAiLearning?: boolean;\n\t\t\tisBot?: boolean;\n\t\t\tisCat?: boolean;\n\t\t\tinjectFeaturedNote?: boolean;\n\t\t\treceiveAnnouncementEmail?: boolean;\n\t\t\talwaysMarkNsfw?: boolean;\n\t\t\tmutedWords?: string[][];\n\t\t\tmutingNotificationTypes?: " - }, - { - "kind": "Reference", - "text": "Notification", - "canonicalReference": "calckey-js!entities.Notification_2:type" - }, - { - "kind": "Content", - "text": "[\"type\"][];\n\t\t\temailNotificationTypes?: string[];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "MeDetailed", - "canonicalReference": "calckey-js!entities.MeDetailed:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/user-group-invites\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/2fa/done\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/2fa/key-done\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/2fa/password-less\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/2fa/register-key\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/2fa/register\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/2fa/update-key\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/2fa/remove-key\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"i/2fa/unregister\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"messaging/history\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tgroup?: boolean;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"messaging/messages\": {\n\t\treq: {\n\t\t\tuserId?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tgroupId?: " - }, - { - "kind": "Reference", - "text": "UserGroup", - "canonicalReference": "calckey-js!entities.UserGroup:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tmarkAsRead?: boolean;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"messaging/messages/create\": {\n\t\treq: {\n\t\t\tuserId?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tgroupId?: " - }, - { - "kind": "Reference", - "text": "UserGroup", - "canonicalReference": "calckey-js!entities.UserGroup:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\ttext?: string;\n\t\t\tfileId?: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"messaging/messages/delete\": {\n\t\treq: {\n\t\t\tmessageId: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"messaging/messages/read\": {\n\t\treq: {\n\t\t\tmessageId: " - }, - { - "kind": "Reference", - "text": "MessagingMessage", - "canonicalReference": "calckey-js!entities.MessagingMessage:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\tmeta: {\n\t\treq: {\n\t\t\tdetail?: boolean;\n\t\t};\n\t\tres: {\n\t\t\t$switch: {\n\t\t\t\t$cases: [\n\t\t\t\t\t[\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdetail: true;\n\t\t\t\t\t\t},\n\t\t\t\t\t\t" - }, - { - "kind": "Reference", - "text": "DetailedInstanceMetadata", - "canonicalReference": "calckey-js!entities.DetailedInstanceMetadata:type" - }, - { - "kind": "Content", - "text": ",\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdetail: false;\n\t\t\t\t\t\t},\n\t\t\t\t\t\t" - }, - { - "kind": "Reference", - "text": "LiteInstanceMetadata", - "canonicalReference": "calckey-js!entities.LiteInstanceMetadata:type" - }, - { - "kind": "Content", - "text": ",\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdetail: boolean;\n\t\t\t\t\t\t},\n\t\t\t\t\t\t" - }, - { - "kind": "Reference", - "text": "LiteInstanceMetadata", - "canonicalReference": "calckey-js!entities.LiteInstanceMetadata:type" - }, - { - "kind": "Content", - "text": " | " - }, - { - "kind": "Reference", - "text": "DetailedInstanceMetadata", - "canonicalReference": "calckey-js!entities.DetailedInstanceMetadata:type" - }, - { - "kind": "Content", - "text": ",\n\t\t\t\t\t],\n\t\t\t\t];\n\t\t\t\t$default: " - }, - { - "kind": "Reference", - "text": "LiteInstanceMetadata", - "canonicalReference": "calckey-js!entities.LiteInstanceMetadata:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\t};\n\t\t};\n\t};\n\t\"miauth/gen-token\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"mute/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"mute/delete\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"mute/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"renote-mute/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"renote-mute/delete\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"renote-mute/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"my/apps\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\tnotes: {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/children\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/clips\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"notes/conversation\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"notes/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoteSubmitReq", - "canonicalReference": "calckey-js!~NoteSubmitReq:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: {\n\t\t\tcreatedNote: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t\t};\n\t};\n\t\"notes/delete\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"notes/edit\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoteSubmitReq", - "canonicalReference": "calckey-js!~NoteSubmitReq:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: {\n\t\t\tcreatedNote: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t\t};\n\t};\n\t\"notes/favorites/create\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"notes/favorites/delete\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"notes/featured\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/global-timeline\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tsinceDate?: number;\n\t\t\tuntilDate?: number;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/recommended-timeline\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tsinceDate?: number;\n\t\t\tuntilDate?: number;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/hybrid-timeline\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tsinceDate?: number;\n\t\t\tuntilDate?: number;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/local-timeline\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tsinceDate?: number;\n\t\t\tuntilDate?: number;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/mentions\": {\n\t\treq: {\n\t\t\tfollowing?: boolean;\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/polls/recommendation\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"notes/polls/vote\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tchoice: number;\n\t\t};\n\t\tres: null;\n\t};\n\t\"notes/reactions\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\ttype?: string | null;\n\t\t\tlimit?: number;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "NoteReaction", - "canonicalReference": "calckey-js!entities.NoteReaction:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/reactions/create\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\treaction: string;\n\t\t};\n\t\tres: null;\n\t};\n\t\"notes/reactions/delete\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"notes/renotes\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/replies\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/search-by-tag\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"notes/search\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"notes/show\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"notes/state\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"notes/timeline\": {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tsinceDate?: number;\n\t\t\tuntilDate?: number;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/unrenote\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"notes/user-list-timeline\": {\n\t\treq: {\n\t\t\tlistId: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tsinceDate?: number;\n\t\t\tuntilDate?: number;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"notes/watching/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"notes/watching/delete\": {\n\t\treq: {\n\t\t\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"notifications/create\": {\n\t\treq: {\n\t\t\tbody: string;\n\t\t\theader?: string | null;\n\t\t\ticon?: string | null;\n\t\t};\n\t\tres: null;\n\t};\n\t\"notifications/mark-all-as-read\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: null;\n\t};\n\t\"notifications/read\": {\n\t\treq: {\n\t\t\tnotificationId: " - }, - { - "kind": "Reference", - "text": "Notification", - "canonicalReference": "calckey-js!entities.Notification_2:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"page-push\": {\n\t\treq: {\n\t\t\tpageId: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tevent: string;\n\t\t\tvar?: any;\n\t\t};\n\t\tres: null;\n\t};\n\t\"pages/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"pages/delete\": {\n\t\treq: {\n\t\t\tpageId: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"pages/featured\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"pages/like\": {\n\t\treq: {\n\t\t\tpageId: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"pages/show\": {\n\t\treq: {\n\t\t\tpageId?: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tname?: string;\n\t\t\tusername?: string;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"pages/unlike\": {\n\t\treq: {\n\t\t\tpageId: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"pages/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: null;\n\t};\n\tping: {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: {\n\t\t\tpong: number;\n\t\t};\n\t};\n\t\"pinned-users\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"promo/read\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"request-reset-password\": {\n\t\treq: {\n\t\t\tusername: string;\n\t\t\temail: string;\n\t\t};\n\t\tres: null;\n\t};\n\t\"reset-password\": {\n\t\treq: {\n\t\t\ttoken: string;\n\t\t\tpassword: string;\n\t\t};\n\t\tres: null;\n\t};\n\t\"room/show\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"room/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\tstats: {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Stats", - "canonicalReference": "calckey-js!entities.Stats:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"server-info\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "ServerInfo", - "canonicalReference": "calckey-js!entities.ServerInfo:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"latest-version\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"sw/register\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"username/available\": {\n\t\treq: {\n\t\t\tusername: string;\n\t\t};\n\t\tres: {\n\t\t\tavailable: boolean;\n\t\t};\n\t};\n\tusers: {\n\t\treq: {\n\t\t\tlimit?: number;\n\t\t\toffset?: number;\n\t\t\tsort?: " - }, - { - "kind": "Reference", - "text": "UserSorting", - "canonicalReference": "calckey-js!entities.UserSorting:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\torigin?: " - }, - { - "kind": "Reference", - "text": "OriginType", - "canonicalReference": "calckey-js!entities.OriginType:type" - }, - { - "kind": "Content", - "text": ";\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"users/clips\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/followers\": {\n\t\treq: {\n\t\t\tuserId?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tusername?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"username\"];\n\t\t\thost?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"host\"] | null;\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "FollowingFollowerPopulated", - "canonicalReference": "calckey-js!entities.FollowingFollowerPopulated:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"users/following\": {\n\t\treq: {\n\t\t\tuserId?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tusername?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"username\"];\n\t\t\thost?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"host\"] | null;\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "FollowingFolloweePopulated", - "canonicalReference": "calckey-js!entities.FollowingFolloweePopulated:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"users/gallery/posts\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/get-frequently-replied-users\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/create\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/delete\": {\n\t\treq: {\n\t\t\tgroupId: " - }, - { - "kind": "Reference", - "text": "UserGroup", - "canonicalReference": "calckey-js!entities.UserGroup:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"users/groups/invitations/accept\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/invitations/reject\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/invite\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/joined\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/owned\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/pull\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/show\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/transfer\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/groups/update\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/lists/create\": {\n\t\treq: {\n\t\t\tname: string;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/lists/delete\": {\n\t\treq: {\n\t\t\tlistId: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"users/lists/list\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "NoParams", - "canonicalReference": "calckey-js!~NoParams:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"users/lists/pull\": {\n\t\treq: {\n\t\t\tlistId: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"users/lists/push\": {\n\t\treq: {\n\t\t\tlistId: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: null;\n\t};\n\t\"users/lists/show\": {\n\t\treq: {\n\t\t\tlistId: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/lists/update\": {\n\t\treq: {\n\t\t\tlistId: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tname: string;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "UserList", - "canonicalReference": "calckey-js!entities.UserList:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/notes\": {\n\t\treq: {\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tlimit?: number;\n\t\t\tsinceId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tuntilId?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tsinceDate?: number;\n\t\t\tuntilDate?: number;\n\t\t};\n\t\tres: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\t};\n\t\"users/pages\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/recommendation\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/relation\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/report-abuse\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/search-by-username-and-host\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/search\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n\t\"users/show\": {\n\t\treq:\n\t\t\t| " - }, - { - "kind": "Reference", - "text": "ShowUserReq", - "canonicalReference": "calckey-js!~ShowUserReq:type" - }, - { - "kind": "Content", - "text": "\n\t\t\t| {\n\t\t\t\t\tuserIds: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"][];\n\t\t\t };\n\t\tres: {\n\t\t\t$switch: {\n\t\t\t\t$cases: [\n\t\t\t\t\t[\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tuserIds: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"][];\n\t\t\t\t\t\t},\n\t\t\t\t\t\t" - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": "[],\n\t\t\t\t\t],\n\t\t\t\t];\n\t\t\t\t$default: " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\t};\n\t\t};\n\t};\n\t\"users/stats\": {\n\t\treq: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t\tres: " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO:type" - }, - { - "kind": "Content", - "text": ";\n\t};\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/api.types.ts", - "releaseTag": "Public", - "name": "Endpoints", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 1158 - } - }, - { - "kind": "Namespace", - "canonicalReference": "calckey-js!entities:namespace", - "docComment": "", - "excerptTokens": [], - "fileUrlPath": "src/index.ts", - "releaseTag": "None", - "name": "entities", - "preserveMemberOrder": false, - "members": [ - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Ad:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Ad = " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO_2:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Ad", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Announcement:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Announcement = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tupdatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": " | null;\n\ttext: string;\n\ttitle: string;\n\timageUrl: string | null;\n\tisRead?: boolean;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Announcement", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 8 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Antenna:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Antenna = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tname: string;\n\tkeywords: string[][];\n\texcludeKeywords: string[][];\n\tsrc: \"home\" | \"all\" | \"users\" | \"list\" | \"group\" | \"instances\";\n\tuserListId: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": " | null;\n\tuserGroupId: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": " | null;\n\tusers: string[];\n\tinstances: string[];\n\tcaseSensitive: boolean;\n\tnotify: boolean;\n\twithReplies: boolean;\n\twithFile: boolean;\n\thasUnreadNote: boolean;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Antenna", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 10 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.App:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type App = " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO_2:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "App", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.AuthSession:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type AuthSession = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tapp: " - }, - { - "kind": "Reference", - "text": "App", - "canonicalReference": "calckey-js!entities.App:type" - }, - { - "kind": "Content", - "text": ";\n\ttoken: string;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "AuthSession", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 6 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Blocking:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Blocking = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tblockeeId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tblockee: " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Blocking", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 10 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Channel:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Channel = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Channel", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Clip:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Clip = " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO_2:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Clip", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.CustomEmoji:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type CustomEmoji = " - }, - { - "kind": "Content", - "text": "{\n\tid: string;\n\tname: string;\n\turl: string;\n\tcategory: string;\n\taliases: string[];\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "CustomEmoji", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.DateString:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type DateString = " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "DateString", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.DetailedInstanceMetadata:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type DetailedInstanceMetadata = " - }, - { - "kind": "Reference", - "text": "LiteInstanceMetadata", - "canonicalReference": "calckey-js!entities.LiteInstanceMetadata:type" - }, - { - "kind": "Content", - "text": " & {\n\tfeatures: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "DetailedInstanceMetadata", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.DriveFile:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type DriveFile = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tisSensitive: boolean;\n\tname: string;\n\tthumbnailUrl: string;\n\turl: string;\n\ttype: string;\n\tsize: number;\n\tmd5: string;\n\tblurhash: string;\n\tcomment: string | null;\n\tproperties: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "DriveFile", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 8 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.DriveFolder:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type DriveFolder = " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO_2:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "DriveFolder", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Following:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Following = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tfollowerId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tfolloweeId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Following", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 10 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.FollowingFolloweePopulated:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type FollowingFolloweePopulated = " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": " & {\n\tfollowee: " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "FollowingFolloweePopulated", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.FollowingFollowerPopulated:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type FollowingFollowerPopulated = " - }, - { - "kind": "Reference", - "text": "Following", - "canonicalReference": "calckey-js!entities.Following:type" - }, - { - "kind": "Content", - "text": " & {\n\tfollower: " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "FollowingFollowerPopulated", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.FollowRequest:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type FollowRequest = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tfollower: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\tfollowee: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "FollowRequest", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 8 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.GalleryPost:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type GalleryPost = " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO_2:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "GalleryPost", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.ID:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type ID = " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "ID", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Instance:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Instance = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcaughtAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\thost: string;\n\tusersCount: number;\n\tnotesCount: number;\n\tfollowingCount: number;\n\tfollowersCount: number;\n\tdriveUsage: number;\n\tdriveFiles: number;\n\tlatestRequestSentAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": " | null;\n\tlatestStatus: number | null;\n\tlatestRequestReceivedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": " | null;\n\tlastCommunicatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tisNotResponding: boolean;\n\tisSuspended: boolean;\n\tsoftwareName: string | null;\n\tsoftwareVersion: string | null;\n\topenRegistrations: boolean | null;\n\tname: string | null;\n\tdescription: string | null;\n\tmaintainerName: string | null;\n\tmaintainerEmail: string | null;\n\ticonUrl: string | null;\n\tfaviconUrl: string | null;\n\tthemeColor: string | null;\n\tinfoUpdatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": " | null;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Instance", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 14 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.InstanceMetadata:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type InstanceMetadata =\n\t" - }, - { - "kind": "Content", - "text": "| " - }, - { - "kind": "Reference", - "text": "LiteInstanceMetadata", - "canonicalReference": "calckey-js!entities.LiteInstanceMetadata:type" - }, - { - "kind": "Content", - "text": "\n\t| " - }, - { - "kind": "Reference", - "text": "DetailedInstanceMetadata", - "canonicalReference": "calckey-js!entities.DetailedInstanceMetadata:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "InstanceMetadata", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.LiteInstanceMetadata:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type LiteInstanceMetadata = " - }, - { - "kind": "Content", - "text": "{\n\tmaintainerName: string | null;\n\tmaintainerEmail: string | null;\n\tversion: string;\n\tname: string | null;\n\turi: string;\n\tdescription: string | null;\n\ttosUrl: string | null;\n\tdisableRegistration: boolean;\n\tdisableLocalTimeline: boolean;\n\tdisableRecommendedTimeline: boolean;\n\tdisableGlobalTimeline: boolean;\n\tdriveCapacityPerLocalUserMb: number;\n\tdriveCapacityPerRemoteUserMb: number;\n\tenableHcaptcha: boolean;\n\thcaptchaSiteKey: string | null;\n\tenableRecaptcha: boolean;\n\trecaptchaSiteKey: string | null;\n\tswPublickey: string | null;\n\tmaxNoteTextLength: number;\n\tenableEmail: boolean;\n\tenableTwitterIntegration: boolean;\n\tenableGithubIntegration: boolean;\n\tenableDiscordIntegration: boolean;\n\tenableServiceWorker: boolean;\n\temojis: " - }, - { - "kind": "Reference", - "text": "CustomEmoji", - "canonicalReference": "calckey-js!entities.CustomEmoji:type" - }, - { - "kind": "Content", - "text": "[];\n\tads: {\n\t\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\t\tratio: number;\n\t\tplace: string;\n\t\turl: string;\n\t\timageUrl: string;\n\t}[];\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "LiteInstanceMetadata", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 6 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.MeDetailed:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type MeDetailed = " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": " & {\n\tavatarId: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tbannerId: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tautoAcceptFollowed: boolean;\n\talwaysMarkNsfw: boolean;\n\tcarefulBot: boolean;\n\temailNotificationTypes: string[];\n\thasPendingReceivedFollowRequest: boolean;\n\thasUnreadAnnouncement: boolean;\n\thasUnreadAntenna: boolean;\n\thasUnreadChannel: boolean;\n\thasUnreadMentions: boolean;\n\thasUnreadMessagingMessage: boolean;\n\thasUnreadNotification: boolean;\n\thasUnreadSpecifiedNotes: boolean;\n\thideOnlineStatus: boolean;\n\tinjectFeaturedNote: boolean;\n\tintegrations: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n\tisDeleted: boolean;\n\tisExplorable: boolean;\n\tmutedWords: string[][];\n\tmutingNotificationTypes: string[];\n\tnoCrawle: boolean;\n\tpreventAiLearning: boolean;\n\treceiveAnnouncementEmail: boolean;\n\tusePasswordLessLogin: boolean;\n\t[other: string]: any;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "MeDetailed", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 9 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.MessagingMessage:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type MessagingMessage = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tfile: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": " | null;\n\tfileId: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\tisRead: boolean;\n\treads: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"][];\n\ttext: string | null;\n\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\trecipient?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": " | null;\n\trecipientId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\tgroup?: " - }, - { - "kind": "Reference", - "text": "UserGroup", - "canonicalReference": "calckey-js!entities.UserGroup:type" - }, - { - "kind": "Content", - "text": " | null;\n\tgroupId: " - }, - { - "kind": "Reference", - "text": "UserGroup", - "canonicalReference": "calckey-js!entities.UserGroup:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "MessagingMessage", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 24 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Note:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Note = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\ttext: string | null;\n\tcw: string | null;\n\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\treply?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\treplyId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\trenote?: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\trenoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tfiles: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[];\n\tfileIds: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"][];\n\tvisibility: \"public\" | \"home\" | \"followers\" | \"specified\";\n\tvisibleUserIds?: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"][];\n\tlocalOnly?: boolean;\n\tchannel?: " - }, - { - "kind": "Reference", - "text": "Channel", - "canonicalReference": "calckey-js!entities.Channel:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tmyReaction?: string;\n\treactions: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n\trenoteCount: number;\n\trepliesCount: number;\n\tpoll?: {\n\t\texpiresAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": " | null;\n\t\tmultiple: boolean;\n\t\tchoices: {\n\t\t\tisVoted: boolean;\n\t\t\ttext: string;\n\t\t\tvotes: number;\n\t\t}[];\n\t};\n\temojis: {\n\t\tname: string;\n\t\turl: string;\n\t}[];\n\turi?: string;\n\turl?: string;\n\tupdatedAt?: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tisHidden?: boolean;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Note", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 32 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.NoteFavorite:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type NoteFavorite = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tnoteId: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tnote: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "NoteFavorite", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 10 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.NoteReaction:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type NoteReaction = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tuser: " - }, - { - "kind": "Reference", - "text": "UserLite", - "canonicalReference": "calckey-js!entities.UserLite:type" - }, - { - "kind": "Content", - "text": ";\n\ttype: string;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "NoteReaction", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 8 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Notification:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Notification = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tisRead: boolean;\n} & (\n\t| {\n\t\t\ttype: \"reaction\";\n\t\t\treaction: string;\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tnote: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t }\n\t| {\n\t\t\ttype: \"reply\";\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tnote: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t }\n\t| {\n\t\t\ttype: \"renote\";\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tnote: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t }\n\t| {\n\t\t\ttype: \"quote\";\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tnote: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t }\n\t| {\n\t\t\ttype: \"mention\";\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tnote: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t }\n\t| {\n\t\t\ttype: \"pollVote\";\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t\t\tnote: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": ";\n\t }\n\t| {\n\t\t\ttype: \"follow\";\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t }\n\t| {\n\t\t\ttype: \"followRequestAccepted\";\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t }\n\t| {\n\t\t\ttype: \"receiveFollowRequest\";\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t }\n\t| {\n\t\t\ttype: \"groupInvited\";\n\t\t\tinvitation: " - }, - { - "kind": "Reference", - "text": "UserGroup", - "canonicalReference": "calckey-js!entities.UserGroup:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\t\t\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\t }\n\t| {\n\t\t\ttype: \"app\";\n\t\t\theader?: string | null;\n\t\t\tbody: string;\n\t\t\ticon?: string | null;\n\t }\n)" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Notification", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 60 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.OriginType:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type OriginType = " - }, - { - "kind": "Content", - "text": "\"combined\" | \"local\" | \"remote\"" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "OriginType", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Page:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Page = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tupdatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n\tcontent: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": "[];\n\tvariables: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": "[];\n\ttitle: string;\n\tname: string;\n\tsummary: string | null;\n\thideTitleWhenPinned: boolean;\n\talignCenter: boolean;\n\tfont: string;\n\tscript: string;\n\teyeCatchingImageId: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": "[\"id\"] | null;\n\teyeCatchingImage: " - }, - { - "kind": "Reference", - "text": "DriveFile", - "canonicalReference": "calckey-js!entities.DriveFile:type" - }, - { - "kind": "Content", - "text": " | null;\n\tattachedFiles: any;\n\tlikedCount: number;\n\tisLiked?: boolean;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Page", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 20 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.PageEvent:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type PageEvent = " - }, - { - "kind": "Content", - "text": "{\n\tpageId: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tevent: string;\n\tvar: any;\n\tuserId: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"];\n\tuser: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "PageEvent", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 8 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.ServerInfo:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type ServerInfo = " - }, - { - "kind": "Content", - "text": "{\n\tmachine: string;\n\tcpu: {\n\t\tmodel: string;\n\t\tcores: number;\n\t};\n\tmem: {\n\t\ttotal: number;\n\t};\n\tfs: {\n\t\ttotal: number;\n\t\tused: number;\n\t};\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "ServerInfo", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Signin:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Signin = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tip: string;\n\theaders: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n\tsuccess: boolean;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Signin", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 8 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.Stats:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Stats = " - }, - { - "kind": "Content", - "text": "{\n\tnotesCount: number;\n\toriginalNotesCount: number;\n\tusersCount: number;\n\toriginalUsersCount: number;\n\tinstances: number;\n\tdriveUsageLocal: number;\n\tdriveUsageRemote: number;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "Stats", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.User:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type User = " - }, - { - "kind": "Reference", - "text": "UserLite", - "canonicalReference": "calckey-js!entities.UserLite:type" - }, - { - "kind": "Content", - "text": " | " - }, - { - "kind": "Reference", - "text": "UserDetailed", - "canonicalReference": "calckey-js!entities.UserDetailed:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "User", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.UserDetailed:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type UserDetailed = " - }, - { - "kind": "Reference", - "text": "UserLite", - "canonicalReference": "calckey-js!entities.UserLite:type" - }, - { - "kind": "Content", - "text": " & {\n\tbannerBlurhash: string | null;\n\tbannerColor: string | null;\n\tbannerUrl: string | null;\n\tbirthday: string | null;\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tdescription: string | null;\n\tffVisibility: \"public\" | \"followers\" | \"private\";\n\tfields: {\n\t\tname: string;\n\t\tvalue: string;\n\t}[];\n\tfollowersCount: number;\n\tfollowingCount: number;\n\thasPendingFollowRequestFromYou: boolean;\n\thasPendingFollowRequestToYou: boolean;\n\tisAdmin: boolean;\n\tisBlocked: boolean;\n\tisBlocking: boolean;\n\tisBot: boolean;\n\tisCat: boolean;\n\tisFollowed: boolean;\n\tisFollowing: boolean;\n\tisLocked: boolean;\n\tisModerator: boolean;\n\tisMuted: boolean;\n\tisRenoteMuted: boolean;\n\tisSilenced: boolean;\n\tisSuspended: boolean;\n\tlang: string | null;\n\tlastFetchedAt?: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tlocation: string | null;\n\tnotesCount: number;\n\tpinnedNoteIds: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": "[];\n\tpinnedNotes: " - }, - { - "kind": "Reference", - "text": "Note", - "canonicalReference": "calckey-js!entities.Note:type" - }, - { - "kind": "Content", - "text": "[];\n\tpinnedPage: " - }, - { - "kind": "Reference", - "text": "Page", - "canonicalReference": "calckey-js!entities.Page:type" - }, - { - "kind": "Content", - "text": " | null;\n\tpinnedPageId: string | null;\n\tpublicReactions: boolean;\n\tsecurityKeys: boolean;\n\ttwoFactorEnabled: boolean;\n\tupdatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": " | null;\n\turi: string | null;\n\turl: string | null;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "UserDetailed", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 15 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.UserGroup:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type UserGroup = " - }, - { - "kind": "Reference", - "text": "TODO", - "canonicalReference": "calckey-js!~TODO_2:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "UserGroup", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.UserList:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type UserList = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tcreatedAt: " - }, - { - "kind": "Reference", - "text": "DateString", - "canonicalReference": "calckey-js!entities.DateString:type" - }, - { - "kind": "Content", - "text": ";\n\tname: string;\n\tuserIds: " - }, - { - "kind": "Reference", - "text": "User", - "canonicalReference": "calckey-js!entities.User:type" - }, - { - "kind": "Content", - "text": "[\"id\"][];\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "UserList", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 8 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.UserLite:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type UserLite = " - }, - { - "kind": "Content", - "text": "{\n\tid: " - }, - { - "kind": "Reference", - "text": "ID", - "canonicalReference": "calckey-js!entities.ID:type" - }, - { - "kind": "Content", - "text": ";\n\tusername: string;\n\thost: string | null;\n\tname: string;\n\tonlineStatus: \"online\" | \"active\" | \"offline\" | \"unknown\";\n\tavatarUrl: string;\n\tavatarBlurhash: string;\n\talsoKnownAs: string[];\n\tmovedToUri: any;\n\temojis: {\n\t\tname: string;\n\t\turl: string;\n\t}[];\n\tinstance?: {\n\t\tname: " - }, - { - "kind": "Reference", - "text": "Instance", - "canonicalReference": "calckey-js!entities.Instance:type" - }, - { - "kind": "Content", - "text": "[\"name\"];\n\t\tsoftwareName: " - }, - { - "kind": "Reference", - "text": "Instance", - "canonicalReference": "calckey-js!entities.Instance:type" - }, - { - "kind": "Content", - "text": "[\"softwareName\"];\n\t\tsoftwareVersion: " - }, - { - "kind": "Reference", - "text": "Instance", - "canonicalReference": "calckey-js!entities.Instance:type" - }, - { - "kind": "Content", - "text": "[\"softwareVersion\"];\n\t\ticonUrl: " - }, - { - "kind": "Reference", - "text": "Instance", - "canonicalReference": "calckey-js!entities.Instance:type" - }, - { - "kind": "Content", - "text": "[\"iconUrl\"];\n\t\tfaviconUrl: " - }, - { - "kind": "Reference", - "text": "Instance", - "canonicalReference": "calckey-js!entities.Instance:type" - }, - { - "kind": "Content", - "text": "[\"faviconUrl\"];\n\t\tthemeColor: " - }, - { - "kind": "Reference", - "text": "Instance", - "canonicalReference": "calckey-js!entities.Instance:type" - }, - { - "kind": "Content", - "text": "[\"themeColor\"];\n\t};\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "UserLite", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 16 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "calckey-js!entities.UserSorting:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type UserSorting =\n\t" - }, - { - "kind": "Content", - "text": "| \"+follower\"\n\t| \"-follower\"\n\t| \"+createdAt\"\n\t| \"-createdAt\"\n\t| \"+updatedAt\"\n\t| \"-updatedAt\"" - }, - { - "kind": "Content", - "text": ";" - } - ], - "fileUrlPath": "src/entities.ts", - "releaseTag": "Public", - "name": "UserSorting", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ] - }, - { - "kind": "Variable", - "canonicalReference": "calckey-js!ffVisibility:var", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "ffVisibility: " - }, - { - "kind": "Content", - "text": "readonly [\"public\", \"followers\", \"private\"]" - } - ], - "fileUrlPath": "src/index.ts", - "isReadonly": true, - "releaseTag": "Public", - "name": "ffVisibility", - "variableTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "Variable", - "canonicalReference": "calckey-js!mutedNoteReasons:var", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "mutedNoteReasons: " - }, - { - "kind": "Content", - "text": "readonly [\n\t\"word\",\n\t\"manual\",\n\t\"spam\",\n\t\"other\",\n]" - } - ], - "fileUrlPath": "src/index.ts", - "isReadonly": true, - "releaseTag": "Public", - "name": "mutedNoteReasons", - "variableTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "Variable", - "canonicalReference": "calckey-js!noteVisibilities:var", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "noteVisibilities: " - }, - { - "kind": "Content", - "text": "readonly [\n\t\"public\",\n\t\"home\",\n\t\"followers\",\n\t\"specified\",\n]" - } - ], - "fileUrlPath": "src/index.ts", - "isReadonly": true, - "releaseTag": "Public", - "name": "noteVisibilities", - "variableTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "Variable", - "canonicalReference": "calckey-js!notificationTypes:var", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "notificationTypes: " - }, - { - "kind": "Content", - "text": "readonly [\n\t\"follow\",\n\t\"mention\",\n\t\"reply\",\n\t\"renote\",\n\t\"quote\",\n\t\"reaction\",\n\t\"pollVote\",\n\t\"pollEnded\",\n\t\"receiveFollowRequest\",\n\t\"followRequestAccepted\",\n\t\"groupInvited\",\n\t\"app\",\n]" - } - ], - "fileUrlPath": "src/index.ts", - "isReadonly": true, - "releaseTag": "Public", - "name": "notificationTypes", - "variableTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "Variable", - "canonicalReference": "calckey-js!permissions:var", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "permissions: " - }, - { - "kind": "Content", - "text": "string[]" - } - ], - "fileUrlPath": "src/index.ts", - "isReadonly": true, - "releaseTag": "Public", - "name": "permissions", - "variableTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "Class", - "canonicalReference": "calckey-js!Stream:class", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export default class Stream extends " - }, - { - "kind": "Reference", - "text": "EventEmitter", - "canonicalReference": "eventemitter3!EventEmitter.EventEmitter" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "StreamEvents", - "canonicalReference": "calckey-js!~StreamEvents:type" - }, - { - "kind": "Content", - "text": ">" - }, - { - "kind": "Content", - "text": " " - } - ], - "fileUrlPath": "src/streaming.ts", - "releaseTag": "Public", - "isAbstract": false, - "name": "Stream", - "preserveMemberOrder": false, - "members": [ - { - "kind": "Constructor", - "canonicalReference": "calckey-js!Stream:constructor(1)", - "docComment": "/**\n * Constructs a new instance of the `Stream` class\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "constructor(\n\t\torigin: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n\t\tuser: " - }, - { - "kind": "Content", - "text": "{\n\t\t\ttoken: string;\n\t\t} | null" - }, - { - "kind": "Content", - "text": ",\n\t\toptions?: " - }, - { - "kind": "Content", - "text": "{\n\t\t\tWebSocket?: any;\n\t\t}" - }, - { - "kind": "Content", - "text": ",\n\t);" - } - ], - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "origin", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isOptional": false - }, - { - "parameterName": "user", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "isOptional": false - }, - { - "parameterName": "options", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "isOptional": true - } - ] - }, - { - "kind": "Method", - "canonicalReference": "calckey-js!Stream#close:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "close(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [], - "isOptional": false, - "isAbstract": false, - "name": "close" - }, - { - "kind": "Method", - "canonicalReference": "calckey-js!Stream#disconnectToChannel:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "disconnectToChannel(connection: " - }, - { - "kind": "Reference", - "text": "NonSharedConnection", - "canonicalReference": "calckey-js!~NonSharedConnection:class" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "connection", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isOptional": false - } - ], - "isOptional": false, - "isAbstract": false, - "name": "disconnectToChannel" - }, - { - "kind": "Method", - "canonicalReference": "calckey-js!Stream#removeSharedConnection:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "removeSharedConnection(connection: " - }, - { - "kind": "Reference", - "text": "SharedConnection", - "canonicalReference": "calckey-js!~SharedConnection:class" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "connection", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isOptional": false - } - ], - "isOptional": false, - "isAbstract": false, - "name": "removeSharedConnection" - }, - { - "kind": "Method", - "canonicalReference": "calckey-js!Stream#removeSharedConnectionPool:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "removeSharedConnectionPool(pool: " - }, - { - "kind": "Reference", - "text": "Pool", - "canonicalReference": "calckey-js!~Pool:class" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "pool", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isOptional": false - } - ], - "isOptional": false, - "isAbstract": false, - "name": "removeSharedConnectionPool" - }, - { - "kind": "Method", - "canonicalReference": "calckey-js!Stream#send:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "send(typeOrPayload: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ", payload?: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "typeOrPayload", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isOptional": false - }, - { - "parameterName": "payload", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "isOptional": true - } - ], - "isOptional": false, - "isAbstract": false, - "name": "send" - }, - { - "kind": "Property", - "canonicalReference": "calckey-js!Stream#state:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "state: " - }, - { - "kind": "Content", - "text": "\"initializing\" | \"reconnecting\" | \"connected\"" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isReadonly": false, - "isOptional": false, - "releaseTag": "Public", - "name": "state", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false, - "isProtected": false, - "isAbstract": false - }, - { - "kind": "Method", - "canonicalReference": "calckey-js!Stream#useChannel:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "useChannel(\n\t\tchannel: " - }, - { - "kind": "Content", - "text": "C" - }, - { - "kind": "Content", - "text": ",\n\t\tparams?: " - }, - { - "kind": "Reference", - "text": "Channels", - "canonicalReference": "calckey-js!Channels:type" - }, - { - "kind": "Content", - "text": "[C][\"params\"]" - }, - { - "kind": "Content", - "text": ",\n\t\tname?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n\t): " - }, - { - "kind": "Reference", - "text": "Connection", - "canonicalReference": "calckey-js!ChannelConnection:class" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "Channels", - "canonicalReference": "calckey-js!Channels:type" - }, - { - "kind": "Content", - "text": "[C]>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "typeParameters": [ - { - "typeParameterName": "C", - "constraintTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "defaultTypeTokenRange": { - "startIndex": 0, - "endIndex": 0 - } - } - ], - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 11, - "endIndex": 15 - }, - "releaseTag": "Public", - "isProtected": false, - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "channel", - "parameterTypeTokenRange": { - "startIndex": 4, - "endIndex": 5 - }, - "isOptional": false - }, - { - "parameterName": "params", - "parameterTypeTokenRange": { - "startIndex": 6, - "endIndex": 8 - }, - "isOptional": true - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "isOptional": true - } - ], - "isOptional": false, - "isAbstract": false, - "name": "useChannel" - } - ], - "extendsTokenRange": { - "startIndex": 1, - "endIndex": 5 - }, - "implementsTokenRanges": [] - } - ] - } - ] -} diff --git a/packages/calckey-js/etc/calckey-js.api.md b/packages/calckey-js/etc/calckey-js.api.md deleted file mode 100644 index bb441fef87..0000000000 --- a/packages/calckey-js/etc/calckey-js.api.md +++ /dev/null @@ -1,2839 +0,0 @@ -## API Report File for "calckey-js" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { EventEmitter } from 'eventemitter3'; - -// @public (undocumented) -export type Acct = { - username: string; - host: string | null; -}; - -// Warning: (ae-forgotten-export) The symbol "TODO_2" needs to be exported by the entry point index.d.ts -// -// @public (undocumented) -type Ad = TODO_2; - -// @public (undocumented) -type Announcement = { - id: ID; - createdAt: DateString; - updatedAt: DateString | null; - text: string; - title: string; - imageUrl: string | null; - isRead?: boolean; -}; - -// @public (undocumented) -type Antenna = { - id: ID; - createdAt: DateString; - name: string; - keywords: string[][]; - excludeKeywords: string[][]; - src: "home" | "all" | "users" | "list" | "group" | "instances"; - userListId: ID | null; - userGroupId: ID | null; - users: string[]; - instances: string[]; - caseSensitive: boolean; - notify: boolean; - withReplies: boolean; - withFile: boolean; - hasUnreadNote: boolean; -}; - -declare namespace api { - export { - isAPIError, - APIError, - FetchLike, - APIClient - } -} -export { api } - -// @public (undocumented) -class APIClient { - constructor(opts: { - origin: APIClient["origin"]; - credential?: APIClient["credential"]; - fetch?: APIClient["fetch"] | null | undefined; - }); - // (undocumented) - credential: string | null | undefined; - // (undocumented) - fetch: FetchLike; - // (undocumented) - origin: string; - // Warning: (ae-forgotten-export) The symbol "IsCaseMatched" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "GetCaseResult" needs to be exported by the entry point index.d.ts - // - // (undocumented) - request( - endpoint: E, - params?: P, - credential?: string | null | undefined, - ): Promise< - Endpoints[E]["res"] extends { - $switch: { - $cases: [any, any][]; - $default: any; - }; - } - ? IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : Endpoints[E]["res"]["$switch"]["$default"] - : Endpoints[E]["res"] - >; -} - -// @public (undocumented) -type APIError = { - id: string; - code: string; - message: string; - kind: "client" | "server"; - info: Record; -}; - -// @public (undocumented) -type App = TODO_2; - -// @public (undocumented) -type AuthSession = { - id: ID; - app: App; - token: string; -}; - -// @public (undocumented) -type Blocking = { - id: ID; - createdAt: DateString; - blockeeId: User["id"]; - blockee: UserDetailed; -}; - -// @public (undocumented) -type Channel = { - id: ID; -}; - -// Warning: (ae-forgotten-export) The symbol "AnyOf" needs to be exported by the entry point index.d.ts -// -// @public (undocumented) -export abstract class ChannelConnection< - Channel extends AnyOf = any, -> extends EventEmitter { - constructor(stream: Stream, channel: string, name?: string); - // (undocumented) - channel: string; - // (undocumented) - abstract dispose(): void; - // (undocumented) - abstract id: string; - // (undocumented) - inCount: number; - // (undocumented) - name?: string; - // (undocumented) - outCount: number; - // (undocumented) - send( - type: T, - body: Channel["receives"][T], - ): void; - // (undocumented) - protected stream: Stream; -} - -// @public (undocumented) -export type Channels = { - main: { - params: null; - events: { - notification: (payload: Notification_2) => void; - mention: (payload: Note) => void; - reply: (payload: Note) => void; - renote: (payload: Note) => void; - follow: (payload: User) => void; - followed: (payload: User) => void; - unfollow: (payload: User) => void; - meUpdated: (payload: MeDetailed) => void; - pageEvent: (payload: PageEvent) => void; - urlUploadFinished: (payload: { - marker: string; - file: DriveFile; - }) => void; - readAllNotifications: () => void; - unreadNotification: (payload: Notification_2) => void; - unreadMention: (payload: Note["id"]) => void; - readAllUnreadMentions: () => void; - unreadSpecifiedNote: (payload: Note["id"]) => void; - readAllUnreadSpecifiedNotes: () => void; - readAllMessagingMessages: () => void; - messagingMessage: (payload: MessagingMessage) => void; - unreadMessagingMessage: (payload: MessagingMessage) => void; - readAllAntennas: () => void; - unreadAntenna: (payload: Antenna) => void; - readAllAnnouncements: () => void; - readAllChannels: () => void; - unreadChannel: (payload: Note["id"]) => void; - myTokenRegenerated: () => void; - reversiNoInvites: () => void; - reversiInvited: (payload: FIXME) => void; - signin: (payload: FIXME) => void; - registryUpdated: (payload: { - scope?: string[]; - key: string; - value: any | null; - }) => void; - driveFileCreated: (payload: DriveFile) => void; - readAntenna: (payload: Antenna) => void; - }; - receives: null; - }; - homeTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - localTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - hybridTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - recommendedTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - globalTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - antenna: { - params: { - antennaId: Antenna["id"]; - }; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - messaging: { - params: { - otherparty?: User["id"] | null; - group?: UserGroup["id"] | null; - }; - events: { - message: (payload: MessagingMessage) => void; - deleted: (payload: MessagingMessage["id"]) => void; - read: (payload: MessagingMessage["id"][]) => void; - typers: (payload: User[]) => void; - }; - receives: { - read: { - id: MessagingMessage["id"]; - }; - }; - }; - serverStats: { - params: null; - events: { - stats: (payload: FIXME) => void; - }; - receives: { - requestLog: { - id: string | number; - length: number; - }; - }; - }; - queueStats: { - params: null; - events: { - stats: (payload: FIXME) => void; - }; - receives: { - requestLog: { - id: string | number; - length: number; - }; - }; - }; -}; - -// @public (undocumented) -type Clip = TODO_2; - -// @public (undocumented) -type CustomEmoji = { - id: string; - name: string; - url: string; - category: string; - aliases: string[]; -}; - -// @public (undocumented) -type DateString = string; - -// @public (undocumented) -type DetailedInstanceMetadata = LiteInstanceMetadata & { - features: Record; -}; - -// @public (undocumented) -type DriveFile = { - id: ID; - createdAt: DateString; - isSensitive: boolean; - name: string; - thumbnailUrl: string; - url: string; - type: string; - size: number; - md5: string; - blurhash: string; - comment: string | null; - properties: Record; -}; - -// @public (undocumented) -type DriveFolder = TODO_2; - -// @public (undocumented) -export type Endpoints = { - "admin/abuse-user-reports": { - req: TODO; - res: TODO; - }; - "admin/delete-all-files-of-a-user": { - req: { - userId: User["id"]; - }; - res: null; - }; - "admin/delete-logs": { - req: NoParams; - res: null; - }; - "admin/get-index-stats": { - req: TODO; - res: TODO; - }; - "admin/get-table-stats": { - req: TODO; - res: TODO; - }; - "admin/invite": { - req: TODO; - res: TODO; - }; - "admin/logs": { - req: TODO; - res: TODO; - }; - "admin/meta": { - req: TODO; - res: TODO; - }; - "admin/reset-password": { - req: TODO; - res: TODO; - }; - "admin/resolve-abuse-user-report": { - req: TODO; - res: TODO; - }; - "admin/resync-chart": { - req: TODO; - res: TODO; - }; - "admin/send-email": { - req: TODO; - res: TODO; - }; - "admin/server-info": { - req: TODO; - res: TODO; - }; - "admin/show-moderation-logs": { - req: TODO; - res: TODO; - }; - "admin/show-user": { - req: TODO; - res: TODO; - }; - "admin/show-users": { - req: TODO; - res: TODO; - }; - "admin/silence-user": { - req: TODO; - res: TODO; - }; - "admin/suspend-user": { - req: TODO; - res: TODO; - }; - "admin/unsilence-user": { - req: TODO; - res: TODO; - }; - "admin/unsuspend-user": { - req: TODO; - res: TODO; - }; - "admin/update-meta": { - req: TODO; - res: TODO; - }; - "admin/vacuum": { - req: TODO; - res: TODO; - }; - "admin/accounts/create": { - req: TODO; - res: TODO; - }; - "admin/ad/create": { - req: TODO; - res: TODO; - }; - "admin/ad/delete": { - req: { - id: Ad["id"]; - }; - res: null; - }; - "admin/ad/list": { - req: TODO; - res: TODO; - }; - "admin/ad/update": { - req: TODO; - res: TODO; - }; - "admin/announcements/create": { - req: TODO; - res: TODO; - }; - "admin/announcements/delete": { - req: { - id: Announcement["id"]; - }; - res: null; - }; - "admin/announcements/list": { - req: TODO; - res: TODO; - }; - "admin/announcements/update": { - req: TODO; - res: TODO; - }; - "admin/drive/clean-remote-files": { - req: TODO; - res: TODO; - }; - "admin/drive/cleanup": { - req: TODO; - res: TODO; - }; - "admin/drive/files": { - req: TODO; - res: TODO; - }; - "admin/drive/show-file": { - req: TODO; - res: TODO; - }; - "admin/emoji/add": { - req: TODO; - res: TODO; - }; - "admin/emoji/copy": { - req: TODO; - res: TODO; - }; - "admin/emoji/list-remote": { - req: TODO; - res: TODO; - }; - "admin/emoji/list": { - req: TODO; - res: TODO; - }; - "admin/emoji/remove": { - req: TODO; - res: TODO; - }; - "admin/emoji/update": { - req: TODO; - res: TODO; - }; - "admin/federation/delete-all-files": { - req: { - host: string; - }; - res: null; - }; - "admin/federation/refresh-remote-instance-metadata": { - req: TODO; - res: TODO; - }; - "admin/federation/remove-all-following": { - req: TODO; - res: TODO; - }; - "admin/federation/update-instance": { - req: TODO; - res: TODO; - }; - "admin/moderators/add": { - req: TODO; - res: TODO; - }; - "admin/moderators/remove": { - req: TODO; - res: TODO; - }; - "admin/promo/create": { - req: TODO; - res: TODO; - }; - "admin/queue/clear": { - req: TODO; - res: TODO; - }; - "admin/queue/deliver-delayed": { - req: TODO; - res: TODO; - }; - "admin/queue/inbox-delayed": { - req: TODO; - res: TODO; - }; - "admin/queue/jobs": { - req: TODO; - res: TODO; - }; - "admin/queue/stats": { - req: TODO; - res: TODO; - }; - "admin/relays/add": { - req: TODO; - res: TODO; - }; - "admin/relays/list": { - req: TODO; - res: TODO; - }; - "admin/relays/remove": { - req: TODO; - res: TODO; - }; - announcements: { - req: { - limit?: number; - withUnreads?: boolean; - sinceId?: Announcement["id"]; - untilId?: Announcement["id"]; - }; - res: Announcement[]; - }; - "antennas/create": { - req: TODO; - res: Antenna; - }; - "antennas/delete": { - req: { - antennaId: Antenna["id"]; - }; - res: null; - }; - "antennas/list": { - req: NoParams; - res: Antenna[]; - }; - "antennas/notes": { - req: { - antennaId: Antenna["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "antennas/show": { - req: { - antennaId: Antenna["id"]; - }; - res: Antenna; - }; - "antennas/update": { - req: TODO; - res: Antenna; - }; - "antennas/mark-read": { - req: TODO; - res: Antenna; - }; - "ap/get": { - req: { - uri: string; - }; - res: Record; - }; - "ap/show": { - req: { - uri: string; - }; - res: - | { - type: "Note"; - object: Note; - } - | { - type: "User"; - object: UserDetailed; - }; - }; - "app/create": { - req: TODO; - res: App; - }; - "app/show": { - req: { - appId: App["id"]; - }; - res: App; - }; - "auth/accept": { - req: { - token: string; - }; - res: null; - }; - "auth/session/generate": { - req: { - appSecret: string; - }; - res: { - token: string; - url: string; - }; - }; - "auth/session/show": { - req: { - token: string; - }; - res: AuthSession; - }; - "auth/session/userkey": { - req: { - appSecret: string; - token: string; - }; - res: { - accessToken: string; - user: User; - }; - }; - "blocking/create": { - req: { - userId: User["id"]; - }; - res: UserDetailed; - }; - "blocking/delete": { - req: { - userId: User["id"]; - }; - res: UserDetailed; - }; - "blocking/list": { - req: { - limit?: number; - sinceId?: Blocking["id"]; - untilId?: Blocking["id"]; - }; - res: Blocking[]; - }; - "channels/create": { - req: TODO; - res: TODO; - }; - "channels/featured": { - req: TODO; - res: TODO; - }; - "channels/follow": { - req: TODO; - res: TODO; - }; - "channels/followed": { - req: TODO; - res: TODO; - }; - "channels/owned": { - req: TODO; - res: TODO; - }; - "channels/pin-note": { - req: TODO; - res: TODO; - }; - "channels/show": { - req: TODO; - res: TODO; - }; - "channels/timeline": { - req: TODO; - res: TODO; - }; - "channels/unfollow": { - req: TODO; - res: TODO; - }; - "channels/update": { - req: TODO; - res: TODO; - }; - "charts/active-users": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - local: { - users: number[]; - }; - remote: { - users: number[]; - }; - }; - }; - "charts/drive": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - local: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - remote: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - }; - }; - "charts/federation": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - instance: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - "charts/hashtag": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: TODO; - }; - "charts/instance": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - host: string; - }; - res: { - drive: { - decFiles: number[]; - decUsage: number[]; - incFiles: number[]; - incUsage: number[]; - totalFiles: number[]; - totalUsage: number[]; - }; - followers: { - dec: number[]; - inc: number[]; - total: number[]; - }; - following: { - dec: number[]; - inc: number[]; - total: number[]; - }; - notes: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - requests: { - failed: number[]; - received: number[]; - succeeded: number[]; - }; - users: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - "charts/network": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: TODO; - }; - "charts/notes": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - local: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - remote: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - }; - }; - "charts/user/drive": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - }; - "charts/user/following": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: TODO; - }; - "charts/user/notes": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - }; - "charts/user/reactions": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: TODO; - }; - "charts/users": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - local: { - dec: number[]; - inc: number[]; - total: number[]; - }; - remote: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - "clips/add-note": { - req: TODO; - res: TODO; - }; - "clips/create": { - req: TODO; - res: TODO; - }; - "clips/delete": { - req: { - clipId: Clip["id"]; - }; - res: null; - }; - "clips/list": { - req: TODO; - res: TODO; - }; - "clips/notes": { - req: TODO; - res: TODO; - }; - "clips/show": { - req: TODO; - res: TODO; - }; - "clips/update": { - req: TODO; - res: TODO; - }; - drive: { - req: NoParams; - res: { - capacity: number; - usage: number; - }; - }; - "drive/files": { - req: { - folderId?: DriveFolder["id"] | null; - type?: DriveFile["type"] | null; - limit?: number; - sinceId?: DriveFile["id"]; - untilId?: DriveFile["id"]; - }; - res: DriveFile[]; - }; - "drive/files/attached-notes": { - req: TODO; - res: TODO; - }; - "drive/files/check-existence": { - req: TODO; - res: TODO; - }; - "drive/files/create": { - req: TODO; - res: TODO; - }; - "drive/files/delete": { - req: { - fileId: DriveFile["id"]; - }; - res: null; - }; - "drive/files/find-by-hash": { - req: TODO; - res: TODO; - }; - "drive/files/find": { - req: { - name: string; - folderId?: DriveFolder["id"] | null; - }; - res: DriveFile[]; - }; - "drive/files/show": { - req: { - fileId?: DriveFile["id"]; - url?: string; - }; - res: DriveFile; - }; - "drive/files/update": { - req: { - fileId: DriveFile["id"]; - folderId?: DriveFolder["id"] | null; - name?: string; - isSensitive?: boolean; - comment?: string | null; - }; - res: DriveFile; - }; - "drive/files/upload-from-url": { - req: { - url: string; - folderId?: DriveFolder["id"] | null; - isSensitive?: boolean; - comment?: string | null; - marker?: string | null; - force?: boolean; - }; - res: null; - }; - "drive/folders": { - req: { - folderId?: DriveFolder["id"] | null; - limit?: number; - sinceId?: DriveFile["id"]; - untilId?: DriveFile["id"]; - }; - res: DriveFolder[]; - }; - "drive/folders/create": { - req: { - name?: string; - parentId?: DriveFolder["id"] | null; - }; - res: DriveFolder; - }; - "drive/folders/delete": { - req: { - folderId: DriveFolder["id"]; - }; - res: null; - }; - "drive/folders/find": { - req: { - name: string; - parentId?: DriveFolder["id"] | null; - }; - res: DriveFolder[]; - }; - "drive/folders/show": { - req: { - folderId: DriveFolder["id"]; - }; - res: DriveFolder; - }; - "drive/folders/update": { - req: { - folderId: DriveFolder["id"]; - name?: string; - parentId?: DriveFolder["id"] | null; - }; - res: DriveFolder; - }; - "drive/stream": { - req: { - type?: DriveFile["type"] | null; - limit?: number; - sinceId?: DriveFile["id"]; - untilId?: DriveFile["id"]; - }; - res: DriveFile[]; - }; - endpoint: { - req: { - endpoint: string; - }; - res: { - params: { - name: string; - type: string; - }[]; - }; - }; - endpoints: { - req: NoParams; - res: string[]; - }; - "federation/dns": { - req: { - host: string; - }; - res: { - a: string[]; - aaaa: string[]; - cname: string[]; - txt: string[]; - }; - }; - "federation/followers": { - req: { - host: string; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFolloweePopulated[]; - }; - "federation/following": { - req: { - host: string; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFolloweePopulated[]; - }; - "federation/instances": { - req: { - host?: string | null; - blocked?: boolean | null; - notResponding?: boolean | null; - suspended?: boolean | null; - federating?: boolean | null; - subscribing?: boolean | null; - publishing?: boolean | null; - limit?: number; - offset?: number; - sort?: - | "+pubSub" - | "-pubSub" - | "+notes" - | "-notes" - | "+users" - | "-users" - | "+following" - | "-following" - | "+followers" - | "-followers" - | "+caughtAt" - | "-caughtAt" - | "+lastCommunicatedAt" - | "-lastCommunicatedAt" - | "+driveUsage" - | "-driveUsage" - | "+driveFiles" - | "-driveFiles"; - }; - res: Instance[]; - }; - "federation/show-instance": { - req: { - host: string; - }; - res: Instance; - }; - "federation/update-remote-user": { - req: { - userId: User["id"]; - }; - res: null; - }; - "federation/users": { - req: { - host: string; - limit?: number; - sinceId?: User["id"]; - untilId?: User["id"]; - }; - res: UserDetailed[]; - }; - "following/create": { - req: { - userId: User["id"]; - }; - res: User; - }; - "following/delete": { - req: { - userId: User["id"]; - }; - res: User; - }; - "following/requests/accept": { - req: { - userId: User["id"]; - }; - res: null; - }; - "following/requests/cancel": { - req: { - userId: User["id"]; - }; - res: User; - }; - "following/requests/list": { - req: NoParams; - res: FollowRequest[]; - }; - "following/requests/reject": { - req: { - userId: User["id"]; - }; - res: null; - }; - "gallery/featured": { - req: TODO; - res: TODO; - }; - "gallery/popular": { - req: TODO; - res: TODO; - }; - "gallery/posts": { - req: TODO; - res: TODO; - }; - "gallery/posts/create": { - req: TODO; - res: TODO; - }; - "gallery/posts/delete": { - req: { - postId: GalleryPost["id"]; - }; - res: null; - }; - "gallery/posts/like": { - req: TODO; - res: TODO; - }; - "gallery/posts/show": { - req: TODO; - res: TODO; - }; - "gallery/posts/unlike": { - req: TODO; - res: TODO; - }; - "gallery/posts/update": { - req: TODO; - res: TODO; - }; - "games/reversi/games": { - req: TODO; - res: TODO; - }; - "games/reversi/games/show": { - req: TODO; - res: TODO; - }; - "games/reversi/games/surrender": { - req: TODO; - res: TODO; - }; - "games/reversi/invitations": { - req: TODO; - res: TODO; - }; - "games/reversi/match": { - req: TODO; - res: TODO; - }; - "games/reversi/match/cancel": { - req: TODO; - res: TODO; - }; - "get-online-users-count": { - req: NoParams; - res: { - count: number; - }; - }; - "hashtags/list": { - req: TODO; - res: TODO; - }; - "hashtags/search": { - req: TODO; - res: TODO; - }; - "hashtags/show": { - req: TODO; - res: TODO; - }; - "hashtags/trend": { - req: TODO; - res: TODO; - }; - "hashtags/users": { - req: TODO; - res: TODO; - }; - i: { - req: NoParams; - res: User; - }; - "i/apps": { - req: TODO; - res: TODO; - }; - "i/authorized-apps": { - req: TODO; - res: TODO; - }; - "i/change-password": { - req: TODO; - res: TODO; - }; - "i/delete-account": { - req: { - password: string; - }; - res: null; - }; - "i/export-blocking": { - req: TODO; - res: TODO; - }; - "i/export-following": { - req: TODO; - res: TODO; - }; - "i/export-mute": { - req: TODO; - res: TODO; - }; - "i/export-notes": { - req: TODO; - res: TODO; - }; - "i/export-user-lists": { - req: TODO; - res: TODO; - }; - "i/favorites": { - req: { - limit?: number; - sinceId?: NoteFavorite["id"]; - untilId?: NoteFavorite["id"]; - }; - res: NoteFavorite[]; - }; - "i/gallery/likes": { - req: TODO; - res: TODO; - }; - "i/gallery/posts": { - req: TODO; - res: TODO; - }; - "i/get-word-muted-notes-count": { - req: TODO; - res: TODO; - }; - "i/import-following": { - req: TODO; - res: TODO; - }; - "i/import-user-lists": { - req: TODO; - res: TODO; - }; - "i/move": { - req: TODO; - res: TODO; - }; - "i/known-as": { - req: TODO; - res: TODO; - }; - "i/notifications": { - req: { - limit?: number; - sinceId?: Notification_2["id"]; - untilId?: Notification_2["id"]; - following?: boolean; - markAsRead?: boolean; - includeTypes?: Notification_2["type"][]; - excludeTypes?: Notification_2["type"][]; - }; - res: Notification_2[]; - }; - "i/page-likes": { - req: TODO; - res: TODO; - }; - "i/pages": { - req: TODO; - res: TODO; - }; - "i/pin": { - req: { - noteId: Note["id"]; - }; - res: MeDetailed; - }; - "i/read-all-messaging-messages": { - req: TODO; - res: TODO; - }; - "i/read-all-unread-notes": { - req: TODO; - res: TODO; - }; - "i/read-announcement": { - req: TODO; - res: TODO; - }; - "i/regenerate-token": { - req: { - password: string; - }; - res: null; - }; - "i/registry/get-all": { - req: { - scope?: string[]; - }; - res: Record; - }; - "i/registry/get-detail": { - req: { - key: string; - scope?: string[]; - }; - res: { - updatedAt: DateString; - value: any; - }; - }; - "i/registry/get": { - req: { - key: string; - scope?: string[]; - }; - res: any; - }; - "i/registry/keys-with-type": { - req: { - scope?: string[]; - }; - res: Record< - string, - "null" | "array" | "number" | "string" | "boolean" | "object" - >; - }; - "i/registry/keys": { - req: { - scope?: string[]; - }; - res: string[]; - }; - "i/registry/remove": { - req: { - key: string; - scope?: string[]; - }; - res: null; - }; - "i/registry/scopes": { - req: NoParams; - res: string[][]; - }; - "i/registry/set": { - req: { - key: string; - value: any; - scope?: string[]; - }; - res: null; - }; - "i/revoke-token": { - req: TODO; - res: TODO; - }; - "i/signin-history": { - req: { - limit?: number; - sinceId?: Signin["id"]; - untilId?: Signin["id"]; - }; - res: Signin[]; - }; - "i/unpin": { - req: { - noteId: Note["id"]; - }; - res: MeDetailed; - }; - "i/update-email": { - req: { - password: string; - email?: string | null; - }; - res: MeDetailed; - }; - "i/update": { - req: { - name?: string | null; - description?: string | null; - lang?: string | null; - location?: string | null; - birthday?: string | null; - avatarId?: DriveFile["id"] | null; - bannerId?: DriveFile["id"] | null; - fields?: { - name: string; - value: string; - }[]; - isLocked?: boolean; - isExplorable?: boolean; - hideOnlineStatus?: boolean; - carefulBot?: boolean; - autoAcceptFollowed?: boolean; - noCrawle?: boolean; - preventAiLearning?: boolean; - isBot?: boolean; - isCat?: boolean; - injectFeaturedNote?: boolean; - receiveAnnouncementEmail?: boolean; - alwaysMarkNsfw?: boolean; - mutedWords?: string[][]; - mutingNotificationTypes?: Notification_2["type"][]; - emailNotificationTypes?: string[]; - }; - res: MeDetailed; - }; - "i/user-group-invites": { - req: TODO; - res: TODO; - }; - "i/2fa/done": { - req: TODO; - res: TODO; - }; - "i/2fa/key-done": { - req: TODO; - res: TODO; - }; - "i/2fa/password-less": { - req: TODO; - res: TODO; - }; - "i/2fa/register-key": { - req: TODO; - res: TODO; - }; - "i/2fa/register": { - req: TODO; - res: TODO; - }; - "i/2fa/update-key": { - req: TODO; - res: TODO; - }; - "i/2fa/remove-key": { - req: TODO; - res: TODO; - }; - "i/2fa/unregister": { - req: TODO; - res: TODO; - }; - "messaging/history": { - req: { - limit?: number; - group?: boolean; - }; - res: MessagingMessage[]; - }; - "messaging/messages": { - req: { - userId?: User["id"]; - groupId?: UserGroup["id"]; - limit?: number; - sinceId?: MessagingMessage["id"]; - untilId?: MessagingMessage["id"]; - markAsRead?: boolean; - }; - res: MessagingMessage[]; - }; - "messaging/messages/create": { - req: { - userId?: User["id"]; - groupId?: UserGroup["id"]; - text?: string; - fileId?: DriveFile["id"]; - }; - res: MessagingMessage; - }; - "messaging/messages/delete": { - req: { - messageId: MessagingMessage["id"]; - }; - res: null; - }; - "messaging/messages/read": { - req: { - messageId: MessagingMessage["id"]; - }; - res: null; - }; - meta: { - req: { - detail?: boolean; - }; - res: { - $switch: { - $cases: [ - [ - { - detail: true; - }, - DetailedInstanceMetadata, - ], - [ - { - detail: false; - }, - LiteInstanceMetadata, - ], - [ - { - detail: boolean; - }, - LiteInstanceMetadata | DetailedInstanceMetadata, - ], - ]; - $default: LiteInstanceMetadata; - }; - }; - }; - "miauth/gen-token": { - req: TODO; - res: TODO; - }; - "mute/create": { - req: TODO; - res: TODO; - }; - "mute/delete": { - req: { - userId: User["id"]; - }; - res: null; - }; - "mute/list": { - req: TODO; - res: TODO; - }; - "renote-mute/create": { - req: TODO; - res: TODO; - }; - "renote-mute/delete": { - req: { - userId: User["id"]; - }; - res: null; - }; - "renote-mute/list": { - req: TODO; - res: TODO; - }; - "my/apps": { - req: TODO; - res: TODO; - }; - notes: { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "notes/children": { - req: { - noteId: Note["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "notes/clips": { - req: TODO; - res: TODO; - }; - "notes/conversation": { - req: TODO; - res: TODO; - }; - "notes/create": { - req: NoteSubmitReq; - res: { - createdNote: Note; - }; - }; - "notes/delete": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/edit": { - req: NoteSubmitReq; - res: { - createdNote: Note; - }; - }; - "notes/favorites/create": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/favorites/delete": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/featured": { - req: TODO; - res: Note[]; - }; - "notes/global-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/recommended-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/hybrid-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/local-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/mentions": { - req: { - following?: boolean; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "notes/polls/recommendation": { - req: TODO; - res: TODO; - }; - "notes/polls/vote": { - req: { - noteId: Note["id"]; - choice: number; - }; - res: null; - }; - "notes/reactions": { - req: { - noteId: Note["id"]; - type?: string | null; - limit?: number; - }; - res: NoteReaction[]; - }; - "notes/reactions/create": { - req: { - noteId: Note["id"]; - reaction: string; - }; - res: null; - }; - "notes/reactions/delete": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/renotes": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - noteId: Note["id"]; - }; - res: Note[]; - }; - "notes/replies": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - noteId: Note["id"]; - }; - res: Note[]; - }; - "notes/search-by-tag": { - req: TODO; - res: TODO; - }; - "notes/search": { - req: TODO; - res: TODO; - }; - "notes/show": { - req: { - noteId: Note["id"]; - }; - res: Note; - }; - "notes/state": { - req: TODO; - res: TODO; - }; - "notes/timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/unrenote": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/user-list-timeline": { - req: { - listId: UserList["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/watching/create": { - req: TODO; - res: TODO; - }; - "notes/watching/delete": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notifications/create": { - req: { - body: string; - header?: string | null; - icon?: string | null; - }; - res: null; - }; - "notifications/mark-all-as-read": { - req: NoParams; - res: null; - }; - "notifications/read": { - req: { - notificationId: Notification_2["id"]; - }; - res: null; - }; - "page-push": { - req: { - pageId: Page["id"]; - event: string; - var?: any; - }; - res: null; - }; - "pages/create": { - req: TODO; - res: Page; - }; - "pages/delete": { - req: { - pageId: Page["id"]; - }; - res: null; - }; - "pages/featured": { - req: NoParams; - res: Page[]; - }; - "pages/like": { - req: { - pageId: Page["id"]; - }; - res: null; - }; - "pages/show": { - req: { - pageId?: Page["id"]; - name?: string; - username?: string; - }; - res: Page; - }; - "pages/unlike": { - req: { - pageId: Page["id"]; - }; - res: null; - }; - "pages/update": { - req: TODO; - res: null; - }; - ping: { - req: NoParams; - res: { - pong: number; - }; - }; - "pinned-users": { - req: TODO; - res: TODO; - }; - "promo/read": { - req: TODO; - res: TODO; - }; - "request-reset-password": { - req: { - username: string; - email: string; - }; - res: null; - }; - "reset-password": { - req: { - token: string; - password: string; - }; - res: null; - }; - "room/show": { - req: TODO; - res: TODO; - }; - "room/update": { - req: TODO; - res: TODO; - }; - stats: { - req: NoParams; - res: Stats; - }; - "server-info": { - req: NoParams; - res: ServerInfo; - }; - "latest-version": { - req: NoParams; - res: TODO; - }; - "sw/register": { - req: TODO; - res: TODO; - }; - "username/available": { - req: { - username: string; - }; - res: { - available: boolean; - }; - }; - users: { - req: { - limit?: number; - offset?: number; - sort?: UserSorting; - origin?: OriginType; - }; - res: User[]; - }; - "users/clips": { - req: TODO; - res: TODO; - }; - "users/followers": { - req: { - userId?: User["id"]; - username?: User["username"]; - host?: User["host"] | null; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFollowerPopulated[]; - }; - "users/following": { - req: { - userId?: User["id"]; - username?: User["username"]; - host?: User["host"] | null; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFolloweePopulated[]; - }; - "users/gallery/posts": { - req: TODO; - res: TODO; - }; - "users/get-frequently-replied-users": { - req: TODO; - res: TODO; - }; - "users/groups/create": { - req: TODO; - res: TODO; - }; - "users/groups/delete": { - req: { - groupId: UserGroup["id"]; - }; - res: null; - }; - "users/groups/invitations/accept": { - req: TODO; - res: TODO; - }; - "users/groups/invitations/reject": { - req: TODO; - res: TODO; - }; - "users/groups/invite": { - req: TODO; - res: TODO; - }; - "users/groups/joined": { - req: TODO; - res: TODO; - }; - "users/groups/owned": { - req: TODO; - res: TODO; - }; - "users/groups/pull": { - req: TODO; - res: TODO; - }; - "users/groups/show": { - req: TODO; - res: TODO; - }; - "users/groups/transfer": { - req: TODO; - res: TODO; - }; - "users/groups/update": { - req: TODO; - res: TODO; - }; - "users/lists/create": { - req: { - name: string; - }; - res: UserList; - }; - "users/lists/delete": { - req: { - listId: UserList["id"]; - }; - res: null; - }; - "users/lists/list": { - req: NoParams; - res: UserList[]; - }; - "users/lists/pull": { - req: { - listId: UserList["id"]; - userId: User["id"]; - }; - res: null; - }; - "users/lists/push": { - req: { - listId: UserList["id"]; - userId: User["id"]; - }; - res: null; - }; - "users/lists/show": { - req: { - listId: UserList["id"]; - }; - res: UserList; - }; - "users/lists/update": { - req: { - listId: UserList["id"]; - name: string; - }; - res: UserList; - }; - "users/notes": { - req: { - userId: User["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "users/pages": { - req: TODO; - res: TODO; - }; - "users/recommendation": { - req: TODO; - res: TODO; - }; - "users/relation": { - req: TODO; - res: TODO; - }; - "users/report-abuse": { - req: TODO; - res: TODO; - }; - "users/search-by-username-and-host": { - req: TODO; - res: TODO; - }; - "users/search": { - req: TODO; - res: TODO; - }; - "users/show": { - req: - | ShowUserReq - | { - userIds: User["id"][]; - }; - res: { - $switch: { - $cases: [ - [ - { - userIds: User["id"][]; - }, - UserDetailed[], - ], - ]; - $default: UserDetailed; - }; - }; - }; - "users/stats": { - req: TODO; - res: TODO; - }; -}; - -declare namespace entities { - export { - ID, - DateString, - User, - UserLite, - UserDetailed, - UserGroup, - UserList, - MeDetailed, - DriveFile, - DriveFolder, - GalleryPost, - Note, - NoteReaction, - Notification_2 as Notification, - MessagingMessage, - CustomEmoji, - LiteInstanceMetadata, - DetailedInstanceMetadata, - InstanceMetadata, - ServerInfo, - Stats, - Page, - PageEvent, - Announcement, - Antenna, - App, - AuthSession, - Ad, - Clip, - NoteFavorite, - FollowRequest, - Channel, - Following, - FollowingFolloweePopulated, - FollowingFollowerPopulated, - Blocking, - Instance, - Signin, - UserSorting, - OriginType - } -} -export { entities } - -// @public (undocumented) -type FetchLike = ( - input: string, - init?: { - method?: string; - body?: string; - credentials?: RequestCredentials; - cache?: RequestCache; - }, -) => Promise<{ - status: number; - json(): Promise; -}>; - -// @public (undocumented) -export const ffVisibility: readonly ["public", "followers", "private"]; - -// @public (undocumented) -type Following = { - id: ID; - createdAt: DateString; - followerId: User["id"]; - followeeId: User["id"]; -}; - -// @public (undocumented) -type FollowingFolloweePopulated = Following & { - followee: UserDetailed; -}; - -// @public (undocumented) -type FollowingFollowerPopulated = Following & { - follower: UserDetailed; -}; - -// @public (undocumented) -type FollowRequest = { - id: ID; - follower: User; - followee: User; -}; - -// @public (undocumented) -type GalleryPost = TODO_2; - -// @public (undocumented) -type ID = string; - -// @public (undocumented) -type Instance = { - id: ID; - caughtAt: DateString; - host: string; - usersCount: number; - notesCount: number; - followingCount: number; - followersCount: number; - driveUsage: number; - driveFiles: number; - latestRequestSentAt: DateString | null; - latestStatus: number | null; - latestRequestReceivedAt: DateString | null; - lastCommunicatedAt: DateString; - isNotResponding: boolean; - isSuspended: boolean; - softwareName: string | null; - softwareVersion: string | null; - openRegistrations: boolean | null; - name: string | null; - description: string | null; - maintainerName: string | null; - maintainerEmail: string | null; - iconUrl: string | null; - faviconUrl: string | null; - themeColor: string | null; - infoUpdatedAt: DateString | null; -}; - -// @public (undocumented) -type InstanceMetadata = - | LiteInstanceMetadata - | DetailedInstanceMetadata; - -// @public (undocumented) -function isAPIError(reason: any): reason is APIError; - -// @public (undocumented) -type LiteInstanceMetadata = { - maintainerName: string | null; - maintainerEmail: string | null; - version: string; - name: string | null; - uri: string; - description: string | null; - tosUrl: string | null; - disableRegistration: boolean; - disableLocalTimeline: boolean; - disableRecommendedTimeline: boolean; - disableGlobalTimeline: boolean; - driveCapacityPerLocalUserMb: number; - driveCapacityPerRemoteUserMb: number; - enableHcaptcha: boolean; - hcaptchaSiteKey: string | null; - enableRecaptcha: boolean; - recaptchaSiteKey: string | null; - swPublickey: string | null; - maxNoteTextLength: number; - enableEmail: boolean; - enableTwitterIntegration: boolean; - enableGithubIntegration: boolean; - enableDiscordIntegration: boolean; - enableServiceWorker: boolean; - emojis: CustomEmoji[]; - ads: { - id: ID; - ratio: number; - place: string; - url: string; - imageUrl: string; - }[]; -}; - -// @public (undocumented) -type MeDetailed = UserDetailed & { - avatarId: DriveFile["id"]; - bannerId: DriveFile["id"]; - autoAcceptFollowed: boolean; - alwaysMarkNsfw: boolean; - carefulBot: boolean; - emailNotificationTypes: string[]; - hasPendingReceivedFollowRequest: boolean; - hasUnreadAnnouncement: boolean; - hasUnreadAntenna: boolean; - hasUnreadChannel: boolean; - hasUnreadMentions: boolean; - hasUnreadMessagingMessage: boolean; - hasUnreadNotification: boolean; - hasUnreadSpecifiedNotes: boolean; - hideOnlineStatus: boolean; - injectFeaturedNote: boolean; - integrations: Record; - isDeleted: boolean; - isExplorable: boolean; - mutedWords: string[][]; - mutingNotificationTypes: string[]; - noCrawle: boolean; - preventAiLearning: boolean; - receiveAnnouncementEmail: boolean; - usePasswordLessLogin: boolean; - [other: string]: any; -}; - -// @public (undocumented) -type MessagingMessage = { - id: ID; - createdAt: DateString; - file: DriveFile | null; - fileId: DriveFile["id"] | null; - isRead: boolean; - reads: User["id"][]; - text: string | null; - user: User; - userId: User["id"]; - recipient?: User | null; - recipientId: User["id"] | null; - group?: UserGroup | null; - groupId: UserGroup["id"] | null; -}; - -// @public (undocumented) -export const mutedNoteReasons: readonly [ - "word", - "manual", - "spam", - "other", -]; - -// @public (undocumented) -type Note = { - id: ID; - createdAt: DateString; - text: string | null; - cw: string | null; - user: User; - userId: User["id"]; - reply?: Note; - replyId: Note["id"]; - renote?: Note; - renoteId: Note["id"]; - files: DriveFile[]; - fileIds: DriveFile["id"][]; - visibility: "public" | "home" | "followers" | "specified"; - visibleUserIds?: User["id"][]; - localOnly?: boolean; - channel?: Channel["id"]; - myReaction?: string; - reactions: Record; - renoteCount: number; - repliesCount: number; - poll?: { - expiresAt: DateString | null; - multiple: boolean; - choices: { - isVoted: boolean; - text: string; - votes: number; - }[]; - }; - emojis: { - name: string; - url: string; - }[]; - uri?: string; - url?: string; - updatedAt?: DateString; - isHidden?: boolean; -}; - -// @public (undocumented) -type NoteFavorite = { - id: ID; - createdAt: DateString; - noteId: Note["id"]; - note: Note; -}; - -// @public (undocumented) -type NoteReaction = { - id: ID; - createdAt: DateString; - user: UserLite; - type: string; -}; - -// @public (undocumented) -export const noteVisibilities: readonly [ - "public", - "home", - "followers", - "specified", -]; - -// @public (undocumented) -type Notification_2 = { - id: ID; - createdAt: DateString; - isRead: boolean; -} & ( - | { - type: "reaction"; - reaction: string; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "reply"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "renote"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "quote"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "mention"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "pollVote"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "follow"; - user: User; - userId: User["id"]; - } - | { - type: "followRequestAccepted"; - user: User; - userId: User["id"]; - } - | { - type: "receiveFollowRequest"; - user: User; - userId: User["id"]; - } - | { - type: "groupInvited"; - invitation: UserGroup; - user: User; - userId: User["id"]; - } - | { - type: "app"; - header?: string | null; - body: string; - icon?: string | null; - } -); - -// @public (undocumented) -export const notificationTypes: readonly [ - "follow", - "mention", - "reply", - "renote", - "quote", - "reaction", - "pollVote", - "pollEnded", - "receiveFollowRequest", - "followRequestAccepted", - "groupInvited", - "app", -]; - -// @public (undocumented) -type OriginType = "combined" | "local" | "remote"; - -// @public (undocumented) -type Page = { - id: ID; - createdAt: DateString; - updatedAt: DateString; - userId: User["id"]; - user: User; - content: Record[]; - variables: Record[]; - title: string; - name: string; - summary: string | null; - hideTitleWhenPinned: boolean; - alignCenter: boolean; - font: string; - script: string; - eyeCatchingImageId: DriveFile["id"] | null; - eyeCatchingImage: DriveFile | null; - attachedFiles: any; - likedCount: number; - isLiked?: boolean; -}; - -// @public (undocumented) -type PageEvent = { - pageId: Page["id"]; - event: string; - var: any; - userId: User["id"]; - user: User; -}; - -// @public (undocumented) -export const permissions: string[]; - -// @public (undocumented) -type ServerInfo = { - machine: string; - cpu: { - model: string; - cores: number; - }; - mem: { - total: number; - }; - fs: { - total: number; - used: number; - }; -}; - -// @public (undocumented) -type Signin = { - id: ID; - createdAt: DateString; - ip: string; - headers: Record; - success: boolean; -}; - -// @public (undocumented) -type Stats = { - notesCount: number; - originalNotesCount: number; - usersCount: number; - originalUsersCount: number; - instances: number; - driveUsageLocal: number; - driveUsageRemote: number; -}; - -// Warning: (ae-forgotten-export) The symbol "StreamEvents" needs to be exported by the entry point index.d.ts -// -// @public (undocumented) -export class Stream extends EventEmitter { - constructor( - origin: string, - user: { - token: string; - } | null, - options?: { - WebSocket?: any; - }, - ); - // (undocumented) - close(): void; - // Warning: (ae-forgotten-export) The symbol "NonSharedConnection" needs to be exported by the entry point index.d.ts - // - // (undocumented) - disconnectToChannel(connection: NonSharedConnection): void; - // Warning: (ae-forgotten-export) The symbol "SharedConnection" needs to be exported by the entry point index.d.ts - // - // (undocumented) - removeSharedConnection(connection: SharedConnection): void; - // Warning: (ae-forgotten-export) The symbol "Pool" needs to be exported by the entry point index.d.ts - // - // (undocumented) - removeSharedConnectionPool(pool: Pool): void; - // (undocumented) - send(typeOrPayload: any, payload?: any): void; - // (undocumented) - state: "initializing" | "reconnecting" | "connected"; - // (undocumented) - useChannel( - channel: C, - params?: Channels[C]["params"], - name?: string, - ): ChannelConnection; - } - -// @public (undocumented) -type User = UserLite | UserDetailed; - -// @public (undocumented) -type UserDetailed = UserLite & { - bannerBlurhash: string | null; - bannerColor: string | null; - bannerUrl: string | null; - birthday: string | null; - createdAt: DateString; - description: string | null; - ffVisibility: "public" | "followers" | "private"; - fields: { - name: string; - value: string; - }[]; - followersCount: number; - followingCount: number; - hasPendingFollowRequestFromYou: boolean; - hasPendingFollowRequestToYou: boolean; - isAdmin: boolean; - isBlocked: boolean; - isBlocking: boolean; - isBot: boolean; - isCat: boolean; - isFollowed: boolean; - isFollowing: boolean; - isLocked: boolean; - isModerator: boolean; - isMuted: boolean; - isRenoteMuted: boolean; - isSilenced: boolean; - isSuspended: boolean; - lang: string | null; - lastFetchedAt?: DateString; - location: string | null; - notesCount: number; - pinnedNoteIds: ID[]; - pinnedNotes: Note[]; - pinnedPage: Page | null; - pinnedPageId: string | null; - publicReactions: boolean; - securityKeys: boolean; - twoFactorEnabled: boolean; - updatedAt: DateString | null; - uri: string | null; - url: string | null; -}; - -// @public (undocumented) -type UserGroup = TODO_2; - -// @public (undocumented) -type UserList = { - id: ID; - createdAt: DateString; - name: string; - userIds: User["id"][]; -}; - -// @public (undocumented) -type UserLite = { - id: ID; - username: string; - host: string | null; - name: string; - onlineStatus: "online" | "active" | "offline" | "unknown"; - avatarUrl: string; - avatarBlurhash: string; - alsoKnownAs: string[]; - movedToUri: any; - emojis: { - name: string; - url: string; - }[]; - instance?: { - name: Instance["name"]; - softwareName: Instance["softwareName"]; - softwareVersion: Instance["softwareVersion"]; - iconUrl: Instance["iconUrl"]; - faviconUrl: Instance["faviconUrl"]; - themeColor: Instance["themeColor"]; - }; -}; - -// @public (undocumented) -type UserSorting = - | "+follower" - | "-follower" - | "+createdAt" - | "-createdAt" - | "+updatedAt" - | "-updatedAt"; - -// Warnings were encountered during analysis: -// -// src/api.types.ts:80:37 - (ae-forgotten-export) The symbol "TODO" needs to be exported by the entry point index.d.ts -// src/api.types.ts:83:28 - (ae-forgotten-export) The symbol "NoParams" needs to be exported by the entry point index.d.ts -// src/api.types.ts:853:5 - (ae-forgotten-export) The symbol "NoteSubmitReq" needs to be exported by the entry point index.d.ts -// src/api.types.ts:1094:3 - (ae-forgotten-export) The symbol "ShowUserReq" needs to be exported by the entry point index.d.ts -// src/streaming.types.ts:56:18 - (ae-forgotten-export) The symbol "FIXME" needs to be exported by the entry point index.d.ts - -// (No @packageDocumentation comment for this package) - -``` diff --git a/packages/calckey-js/etc/misskey-js.api.md b/packages/calckey-js/etc/misskey-js.api.md deleted file mode 100644 index 269d5cf101..0000000000 --- a/packages/calckey-js/etc/misskey-js.api.md +++ /dev/null @@ -1,2681 +0,0 @@ -## API Report File for "misskey-js" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { EventEmitter } from 'eventemitter3'; - -// @public (undocumented) -export type Acct = { - username: string; - host: string | null; -}; - -// Warning: (ae-forgotten-export) The symbol "TODO" needs to be exported by the entry point index.d.ts -// -// @public (undocumented) -type Ad = TODO_2; - -// @public (undocumented) -type Announcement = { - id: ID; - createdAt: DateString; - updatedAt: DateString | null; - text: string; - title: string; - imageUrl: string | null; - isRead?: boolean; -}; - -// @public (undocumented) -type Antenna = { - id: ID; - createdAt: DateString; - name: string; - keywords: string[][]; - excludeKeywords: string[][]; - src: 'home' | 'all' | 'users' | 'list' | 'group'; - userListId: ID | null; - userGroupId: ID | null; - users: string[]; - caseSensitive: boolean; - notify: boolean; - withReplies: boolean; - withFile: boolean; - hasUnreadNote: boolean; -}; - -declare namespace api { - export { - isAPIError, - APIError, - FetchLike, - APIClient - } -} -export { api } - -// @public (undocumented) -class APIClient { - constructor(opts: { - origin: APIClient['origin']; - credential?: APIClient['credential']; - fetch?: APIClient['fetch'] | null | undefined; - }); - // (undocumented) - credential: string | null | undefined; - // (undocumented) - fetch: FetchLike; - // (undocumented) - origin: string; - // Warning: (ae-forgotten-export) The symbol "IsCaseMatched" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "GetCaseResult" needs to be exported by the entry point index.d.ts - // - // (undocumented) - request(endpoint: E, params?: P, credential?: string | null | undefined): Promise extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : IsCaseMatched extends true ? GetCaseResult : Endpoints[E]['res']['$switch']['$default'] : Endpoints[E]['res']>; -} - -// @public (undocumented) -type APIError = { - id: string; - code: string; - message: string; - kind: 'client' | 'server'; - info: Record; -}; - -// @public (undocumented) -type App = TODO_2; - -// @public (undocumented) -type AuthSession = { - id: ID; - app: App; - token: string; -}; - -// @public (undocumented) -type Blocking = { - id: ID; - createdAt: DateString; - blockeeId: User['id']; - blockee: UserDetailed; -}; - -// @public (undocumented) -type Channel = { - id: ID; -}; - -// Warning: (ae-forgotten-export) The symbol "AnyOf" needs to be exported by the entry point index.d.ts -// -// @public (undocumented) -export abstract class ChannelConnection = any> extends EventEmitter { - constructor(stream: Stream, channel: string, name?: string); - // (undocumented) - channel: string; - // (undocumented) - abstract dispose(): void; - // (undocumented) - abstract id: string; - // (undocumented) - inCount: number; - // (undocumented) - name?: string; - // (undocumented) - outCount: number; - // (undocumented) - send(type: T, body: Channel['receives'][T]): void; - // (undocumented) - protected stream: Stream; -} - -// @public (undocumented) -export type Channels = { - main: { - params: null; - events: { - notification: (payload: Notification_2) => void; - mention: (payload: Note) => void; - reply: (payload: Note) => void; - renote: (payload: Note) => void; - follow: (payload: User) => void; - followed: (payload: User) => void; - unfollow: (payload: User) => void; - meUpdated: (payload: MeDetailed) => void; - pageEvent: (payload: PageEvent) => void; - urlUploadFinished: (payload: { - marker: string; - file: DriveFile; - }) => void; - readAllNotifications: () => void; - unreadNotification: (payload: Notification_2) => void; - unreadMention: (payload: Note['id']) => void; - readAllUnreadMentions: () => void; - unreadSpecifiedNote: (payload: Note['id']) => void; - readAllUnreadSpecifiedNotes: () => void; - readAllMessagingMessages: () => void; - messagingMessage: (payload: MessagingMessage) => void; - unreadMessagingMessage: (payload: MessagingMessage) => void; - readAllAntennas: () => void; - unreadAntenna: (payload: Antenna) => void; - readAllAnnouncements: () => void; - readAllChannels: () => void; - unreadChannel: (payload: Note['id']) => void; - myTokenRegenerated: () => void; - reversiNoInvites: () => void; - reversiInvited: (payload: FIXME) => void; - signin: (payload: FIXME) => void; - registryUpdated: (payload: { - scope?: string[]; - key: string; - value: any | null; - }) => void; - driveFileCreated: (payload: DriveFile) => void; - readAntenna: (payload: Antenna) => void; - }; - receives: null; - }; - homeTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - localTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - hybridTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - recommendedTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - globalTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - messaging: { - params: { - otherparty?: User['id'] | null; - group?: UserGroup['id'] | null; - }; - events: { - message: (payload: MessagingMessage) => void; - deleted: (payload: MessagingMessage['id']) => void; - read: (payload: MessagingMessage['id'][]) => void; - typers: (payload: User[]) => void; - }; - receives: { - read: { - id: MessagingMessage['id']; - }; - }; - }; - serverStats: { - params: null; - events: { - stats: (payload: FIXME) => void; - }; - receives: { - requestLog: { - id: string | number; - length: number; - }; - }; - }; - queueStats: { - params: null; - events: { - stats: (payload: FIXME) => void; - }; - receives: { - requestLog: { - id: string | number; - length: number; - }; - }; - }; -}; - -// @public (undocumented) -type Clip = TODO_2; - -// @public (undocumented) -type CustomEmoji = { - id: string; - name: string; - url: string; - category: string; - aliases: string[]; -}; - -// @public (undocumented) -type DateString = string; - -// @public (undocumented) -type DetailedInstanceMetadata = LiteInstanceMetadata & { - features: Record; -}; - -// @public (undocumented) -type DriveFile = { - id: ID; - createdAt: DateString; - isSensitive: boolean; - name: string; - thumbnailUrl: string; - url: string; - type: string; - size: number; - md5: string; - blurhash: string; - properties: Record; -}; - -// @public (undocumented) -type DriveFolder = TODO_2; - -// @public (undocumented) -export type Endpoints = { - 'admin/abuse-user-reports': { - req: TODO; - res: TODO; - }; - 'admin/delete-all-files-of-a-user': { - req: { - userId: User['id']; - }; - res: null; - }; - 'admin/delete-logs': { - req: NoParams; - res: null; - }; - 'admin/get-index-stats': { - req: TODO; - res: TODO; - }; - 'admin/get-table-stats': { - req: TODO; - res: TODO; - }; - 'admin/invite': { - req: TODO; - res: TODO; - }; - 'admin/logs': { - req: TODO; - res: TODO; - }; - 'admin/reset-password': { - req: TODO; - res: TODO; - }; - 'admin/resolve-abuse-user-report': { - req: TODO; - res: TODO; - }; - 'admin/resync-chart': { - req: TODO; - res: TODO; - }; - 'admin/send-email': { - req: TODO; - res: TODO; - }; - 'admin/server-info': { - req: TODO; - res: TODO; - }; - 'admin/show-moderation-logs': { - req: TODO; - res: TODO; - }; - 'admin/show-user': { - req: TODO; - res: TODO; - }; - 'admin/show-users': { - req: TODO; - res: TODO; - }; - 'admin/silence-user': { - req: TODO; - res: TODO; - }; - 'admin/suspend-user': { - req: TODO; - res: TODO; - }; - 'admin/unsilence-user': { - req: TODO; - res: TODO; - }; - 'admin/unsuspend-user': { - req: TODO; - res: TODO; - }; - 'admin/update-meta': { - req: TODO; - res: TODO; - }; - 'admin/vacuum': { - req: TODO; - res: TODO; - }; - 'admin/accounts/create': { - req: TODO; - res: TODO; - }; - 'admin/ad/create': { - req: TODO; - res: TODO; - }; - 'admin/ad/delete': { - req: { - id: Ad['id']; - }; - res: null; - }; - 'admin/ad/list': { - req: TODO; - res: TODO; - }; - 'admin/ad/update': { - req: TODO; - res: TODO; - }; - 'admin/announcements/create': { - req: TODO; - res: TODO; - }; - 'admin/announcements/delete': { - req: { - id: Announcement['id']; - }; - res: null; - }; - 'admin/announcements/list': { - req: TODO; - res: TODO; - }; - 'admin/announcements/update': { - req: TODO; - res: TODO; - }; - 'admin/drive/clean-remote-files': { - req: TODO; - res: TODO; - }; - 'admin/drive/cleanup': { - req: TODO; - res: TODO; - }; - 'admin/drive/files': { - req: TODO; - res: TODO; - }; - 'admin/drive/show-file': { - req: TODO; - res: TODO; - }; - 'admin/emoji/add': { - req: TODO; - res: TODO; - }; - 'admin/emoji/copy': { - req: TODO; - res: TODO; - }; - 'admin/emoji/list-remote': { - req: TODO; - res: TODO; - }; - 'admin/emoji/list': { - req: TODO; - res: TODO; - }; - 'admin/emoji/remove': { - req: TODO; - res: TODO; - }; - 'admin/emoji/update': { - req: TODO; - res: TODO; - }; - 'admin/federation/delete-all-files': { - req: { - host: string; - }; - res: null; - }; - 'admin/federation/refresh-remote-instance-metadata': { - req: TODO; - res: TODO; - }; - 'admin/federation/remove-all-following': { - req: TODO; - res: TODO; - }; - 'admin/federation/update-instance': { - req: TODO; - res: TODO; - }; - 'admin/moderators/add': { - req: TODO; - res: TODO; - }; - 'admin/moderators/remove': { - req: TODO; - res: TODO; - }; - 'admin/promo/create': { - req: TODO; - res: TODO; - }; - 'admin/queue/clear': { - req: TODO; - res: TODO; - }; - 'admin/queue/deliver-delayed': { - req: TODO; - res: TODO; - }; - 'admin/queue/inbox-delayed': { - req: TODO; - res: TODO; - }; - 'admin/queue/jobs': { - req: TODO; - res: TODO; - }; - 'admin/queue/stats': { - req: TODO; - res: TODO; - }; - 'admin/relays/add': { - req: TODO; - res: TODO; - }; - 'admin/relays/list': { - req: TODO; - res: TODO; - }; - 'admin/relays/remove': { - req: TODO; - res: TODO; - }; - 'announcements': { - req: { - limit?: number; - withUnreads?: boolean; - sinceId?: Announcement['id']; - untilId?: Announcement['id']; - }; - res: Announcement[]; - }; - 'antennas/create': { - req: TODO; - res: Antenna; - }; - 'antennas/delete': { - req: { - antennaId: Antenna['id']; - }; - res: null; - }; - 'antennas/list': { - req: NoParams; - res: Antenna[]; - }; - 'antennas/notes': { - req: { - antennaId: Antenna['id']; - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - }; - res: Note[]; - }; - 'antennas/show': { - req: { - antennaId: Antenna['id']; - }; - res: Antenna; - }; - 'antennas/update': { - req: TODO; - res: Antenna; - }; - 'ap/get': { - req: { - uri: string; - }; - res: Record; - }; - 'ap/show': { - req: { - uri: string; - }; - res: { - type: 'Note'; - object: Note; - } | { - type: 'User'; - object: UserDetailed; - }; - }; - 'app/create': { - req: TODO; - res: App; - }; - 'app/show': { - req: { - appId: App['id']; - }; - res: App; - }; - 'auth/accept': { - req: { - token: string; - }; - res: null; - }; - 'auth/session/generate': { - req: { - appSecret: string; - }; - res: { - token: string; - url: string; - }; - }; - 'auth/session/show': { - req: { - token: string; - }; - res: AuthSession; - }; - 'auth/session/userkey': { - req: { - appSecret: string; - token: string; - }; - res: { - accessToken: string; - user: User; - }; - }; - 'blocking/create': { - req: { - userId: User['id']; - }; - res: UserDetailed; - }; - 'blocking/delete': { - req: { - userId: User['id']; - }; - res: UserDetailed; - }; - 'blocking/list': { - req: { - limit?: number; - sinceId?: Blocking['id']; - untilId?: Blocking['id']; - }; - res: Blocking[]; - }; - 'channels/create': { - req: TODO; - res: TODO; - }; - 'channels/featured': { - req: TODO; - res: TODO; - }; - 'channels/follow': { - req: TODO; - res: TODO; - }; - 'channels/followed': { - req: TODO; - res: TODO; - }; - 'channels/owned': { - req: TODO; - res: TODO; - }; - 'channels/pin-note': { - req: TODO; - res: TODO; - }; - 'channels/show': { - req: TODO; - res: TODO; - }; - 'channels/timeline': { - req: TODO; - res: TODO; - }; - 'channels/unfollow': { - req: TODO; - res: TODO; - }; - 'channels/update': { - req: TODO; - res: TODO; - }; - 'charts/active-users': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - }; - res: { - local: { - users: number[]; - }; - remote: { - users: number[]; - }; - }; - }; - 'charts/drive': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - }; - res: { - local: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - remote: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - }; - }; - 'charts/federation': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - }; - res: { - instance: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - 'charts/hashtag': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - }; - res: TODO; - }; - 'charts/instance': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - host: string; - }; - res: { - drive: { - decFiles: number[]; - decUsage: number[]; - incFiles: number[]; - incUsage: number[]; - totalFiles: number[]; - totalUsage: number[]; - }; - followers: { - dec: number[]; - inc: number[]; - total: number[]; - }; - following: { - dec: number[]; - inc: number[]; - total: number[]; - }; - notes: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - requests: { - failed: number[]; - received: number[]; - succeeded: number[]; - }; - users: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - 'charts/network': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - }; - res: TODO; - }; - 'charts/notes': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - }; - res: { - local: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - remote: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - }; - }; - 'charts/user/drive': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - userId: User['id']; - }; - res: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - }; - 'charts/user/following': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - userId: User['id']; - }; - res: TODO; - }; - 'charts/user/notes': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - userId: User['id']; - }; - res: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - }; - 'charts/user/reactions': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - userId: User['id']; - }; - res: TODO; - }; - 'charts/users': { - req: { - span: 'day' | 'hour'; - limit?: number; - offset?: number | null; - }; - res: { - local: { - dec: number[]; - inc: number[]; - total: number[]; - }; - remote: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - 'clips/add-note': { - req: TODO; - res: TODO; - }; - 'clips/create': { - req: TODO; - res: TODO; - }; - 'clips/delete': { - req: { - clipId: Clip['id']; - }; - res: null; - }; - 'clips/list': { - req: TODO; - res: TODO; - }; - 'clips/notes': { - req: TODO; - res: TODO; - }; - 'clips/show': { - req: TODO; - res: TODO; - }; - 'clips/update': { - req: TODO; - res: TODO; - }; - 'drive': { - req: NoParams; - res: { - capacity: number; - usage: number; - }; - }; - 'drive/files': { - req: { - folderId?: DriveFolder['id'] | null; - type?: DriveFile['type'] | null; - limit?: number; - sinceId?: DriveFile['id']; - untilId?: DriveFile['id']; - }; - res: DriveFile[]; - }; - 'drive/files/attached-notes': { - req: TODO; - res: TODO; - }; - 'drive/files/check-existence': { - req: TODO; - res: TODO; - }; - 'drive/files/create': { - req: TODO; - res: TODO; - }; - 'drive/files/delete': { - req: { - fileId: DriveFile['id']; - }; - res: null; - }; - 'drive/files/find-by-hash': { - req: TODO; - res: TODO; - }; - 'drive/files/find': { - req: { - name: string; - folderId?: DriveFolder['id'] | null; - }; - res: DriveFile[]; - }; - 'drive/files/show': { - req: { - fileId?: DriveFile['id']; - url?: string; - }; - res: DriveFile; - }; - 'drive/files/update': { - req: { - fileId: DriveFile['id']; - folderId?: DriveFolder['id'] | null; - name?: string; - isSensitive?: boolean; - comment?: string | null; - }; - res: DriveFile; - }; - 'drive/files/upload-from-url': { - req: { - url: string; - folderId?: DriveFolder['id'] | null; - isSensitive?: boolean; - comment?: string | null; - marker?: string | null; - force?: boolean; - }; - res: null; - }; - 'drive/folders': { - req: { - folderId?: DriveFolder['id'] | null; - limit?: number; - sinceId?: DriveFile['id']; - untilId?: DriveFile['id']; - }; - res: DriveFolder[]; - }; - 'drive/folders/create': { - req: { - name?: string; - parentId?: DriveFolder['id'] | null; - }; - res: DriveFolder; - }; - 'drive/folders/delete': { - req: { - folderId: DriveFolder['id']; - }; - res: null; - }; - 'drive/folders/find': { - req: { - name: string; - parentId?: DriveFolder['id'] | null; - }; - res: DriveFolder[]; - }; - 'drive/folders/show': { - req: { - folderId: DriveFolder['id']; - }; - res: DriveFolder; - }; - 'drive/folders/update': { - req: { - folderId: DriveFolder['id']; - name?: string; - parentId?: DriveFolder['id'] | null; - }; - res: DriveFolder; - }; - 'drive/stream': { - req: { - type?: DriveFile['type'] | null; - limit?: number; - sinceId?: DriveFile['id']; - untilId?: DriveFile['id']; - }; - res: DriveFile[]; - }; - 'endpoint': { - req: { - endpoint: string; - }; - res: { - params: { - name: string; - type: string; - }[]; - }; - }; - 'endpoints': { - req: NoParams; - res: string[]; - }; - 'federation/dns': { - req: { - host: string; - }; - res: { - a: string[]; - aaaa: string[]; - cname: string[]; - txt: string[]; - }; - }; - 'federation/followers': { - req: { - host: string; - limit?: number; - sinceId?: Following['id']; - untilId?: Following['id']; - }; - res: FollowingFolloweePopulated[]; - }; - 'federation/following': { - req: { - host: string; - limit?: number; - sinceId?: Following['id']; - untilId?: Following['id']; - }; - res: FollowingFolloweePopulated[]; - }; - 'federation/instances': { - req: { - host?: string | null; - blocked?: boolean | null; - notResponding?: boolean | null; - suspended?: boolean | null; - federating?: boolean | null; - subscribing?: boolean | null; - publishing?: boolean | null; - limit?: number; - offset?: number; - sort?: '+pubSub' | '-pubSub' | '+notes' | '-notes' | '+users' | '-users' | '+following' | '-following' | '+followers' | '-followers' | '+caughtAt' | '-caughtAt' | '+lastCommunicatedAt' | '-lastCommunicatedAt' | '+driveUsage' | '-driveUsage' | '+driveFiles' | '-driveFiles'; - }; - res: Instance[]; - }; - 'federation/show-instance': { - req: { - host: string; - }; - res: Instance; - }; - 'federation/update-remote-user': { - req: { - userId: User['id']; - }; - res: null; - }; - 'federation/users': { - req: { - host: string; - limit?: number; - sinceId?: User['id']; - untilId?: User['id']; - }; - res: UserDetailed[]; - }; - 'following/create': { - req: { - userId: User['id']; - }; - res: User; - }; - 'following/delete': { - req: { - userId: User['id']; - }; - res: User; - }; - 'following/requests/accept': { - req: { - userId: User['id']; - }; - res: null; - }; - 'following/requests/cancel': { - req: { - userId: User['id']; - }; - res: User; - }; - 'following/requests/list': { - req: NoParams; - res: FollowRequest[]; - }; - 'following/requests/reject': { - req: { - userId: User['id']; - }; - res: null; - }; - 'gallery/featured': { - req: TODO; - res: TODO; - }; - 'gallery/popular': { - req: TODO; - res: TODO; - }; - 'gallery/posts': { - req: TODO; - res: TODO; - }; - 'gallery/posts/create': { - req: TODO; - res: TODO; - }; - 'gallery/posts/delete': { - req: { - postId: GalleryPost['id']; - }; - res: null; - }; - 'gallery/posts/like': { - req: TODO; - res: TODO; - }; - 'gallery/posts/show': { - req: TODO; - res: TODO; - }; - 'gallery/posts/unlike': { - req: TODO; - res: TODO; - }; - 'gallery/posts/update': { - req: TODO; - res: TODO; - }; - 'games/reversi/games': { - req: TODO; - res: TODO; - }; - 'games/reversi/games/show': { - req: TODO; - res: TODO; - }; - 'games/reversi/games/surrender': { - req: TODO; - res: TODO; - }; - 'games/reversi/invitations': { - req: TODO; - res: TODO; - }; - 'games/reversi/match': { - req: TODO; - res: TODO; - }; - 'games/reversi/match/cancel': { - req: TODO; - res: TODO; - }; - 'get-online-users-count': { - req: NoParams; - res: { - count: number; - }; - }; - 'hashtags/list': { - req: TODO; - res: TODO; - }; - 'hashtags/search': { - req: TODO; - res: TODO; - }; - 'hashtags/show': { - req: TODO; - res: TODO; - }; - 'hashtags/trend': { - req: TODO; - res: TODO; - }; - 'hashtags/users': { - req: TODO; - res: TODO; - }; - 'i': { - req: NoParams; - res: User; - }; - 'i/apps': { - req: TODO; - res: TODO; - }; - 'i/authorized-apps': { - req: TODO; - res: TODO; - }; - 'i/change-password': { - req: TODO; - res: TODO; - }; - 'i/delete-account': { - req: { - password: string; - }; - res: null; - }; - 'i/export-blocking': { - req: TODO; - res: TODO; - }; - 'i/export-following': { - req: TODO; - res: TODO; - }; - 'i/export-mute': { - req: TODO; - res: TODO; - }; - 'i/export-notes': { - req: TODO; - res: TODO; - }; - 'i/export-user-lists': { - req: TODO; - res: TODO; - }; - 'i/favorites': { - req: { - limit?: number; - sinceId?: NoteFavorite['id']; - untilId?: NoteFavorite['id']; - }; - res: NoteFavorite[]; - }; - 'i/gallery/likes': { - req: TODO; - res: TODO; - }; - 'i/gallery/posts': { - req: TODO; - res: TODO; - }; - 'i/get-word-muted-notes-count': { - req: TODO; - res: TODO; - }; - 'i/import-following': { - req: TODO; - res: TODO; - }; - 'i/import-user-lists': { - req: TODO; - res: TODO; - }; - 'i/notifications': { - req: { - limit?: number; - sinceId?: Notification_2['id']; - untilId?: Notification_2['id']; - following?: boolean; - markAsRead?: boolean; - includeTypes?: Notification_2['type'][]; - excludeTypes?: Notification_2['type'][]; - }; - res: Notification_2[]; - }; - 'i/page-likes': { - req: TODO; - res: TODO; - }; - 'i/pages': { - req: TODO; - res: TODO; - }; - 'i/pin': { - req: { - noteId: Note['id']; - }; - res: MeDetailed; - }; - 'i/read-all-messaging-messages': { - req: TODO; - res: TODO; - }; - 'i/read-all-unread-notes': { - req: TODO; - res: TODO; - }; - 'i/read-announcement': { - req: TODO; - res: TODO; - }; - 'i/regenerate-token': { - req: { - password: string; - }; - res: null; - }; - 'i/registry/get-all': { - req: { - scope?: string[]; - }; - res: Record; - }; - 'i/registry/get-detail': { - req: { - key: string; - scope?: string[]; - }; - res: { - updatedAt: DateString; - value: any; - }; - }; - 'i/registry/get': { - req: { - key: string; - scope?: string[]; - }; - res: any; - }; - 'i/registry/keys-with-type': { - req: { - scope?: string[]; - }; - res: Record; - }; - 'i/registry/keys': { - req: { - scope?: string[]; - }; - res: string[]; - }; - 'i/registry/remove': { - req: { - key: string; - scope?: string[]; - }; - res: null; - }; - 'i/registry/scopes': { - req: NoParams; - res: string[][]; - }; - 'i/registry/set': { - req: { - key: string; - value: any; - scope?: string[]; - }; - res: null; - }; - 'i/revoke-token': { - req: TODO; - res: TODO; - }; - 'i/signin-history': { - req: { - limit?: number; - sinceId?: Signin['id']; - untilId?: Signin['id']; - }; - res: Signin[]; - }; - 'i/unpin': { - req: { - noteId: Note['id']; - }; - res: MeDetailed; - }; - 'i/update-email': { - req: { - password: string; - email?: string | null; - }; - res: MeDetailed; - }; - 'i/update': { - req: { - name?: string | null; - description?: string | null; - lang?: string | null; - location?: string | null; - birthday?: string | null; - avatarId?: DriveFile['id'] | null; - bannerId?: DriveFile['id'] | null; - fields?: { - name: string; - value: string; - }[]; - isLocked?: boolean; - isExplorable?: boolean; - hideOnlineStatus?: boolean; - carefulBot?: boolean; - autoAcceptFollowed?: boolean; - noCrawle?: boolean; - isBot?: boolean; - isCat?: boolean; - injectFeaturedNote?: boolean; - receiveAnnouncementEmail?: boolean; - alwaysMarkNsfw?: boolean; - mutedWords?: string[][]; - mutingNotificationTypes?: Notification_2['type'][]; - emailNotificationTypes?: string[]; - }; - res: MeDetailed; - }; - 'i/user-group-invites': { - req: TODO; - res: TODO; - }; - 'i/2fa/done': { - req: TODO; - res: TODO; - }; - 'i/2fa/key-done': { - req: TODO; - res: TODO; - }; - 'i/2fa/password-less': { - req: TODO; - res: TODO; - }; - 'i/2fa/register-key': { - req: TODO; - res: TODO; - }; - 'i/2fa/register': { - req: TODO; - res: TODO; - }; - 'i/2fa/remove-key': { - req: TODO; - res: TODO; - }; - 'i/2fa/unregister': { - req: TODO; - res: TODO; - }; - 'messaging/history': { - req: { - limit?: number; - group?: boolean; - }; - res: MessagingMessage[]; - }; - 'messaging/messages': { - req: { - userId?: User['id']; - groupId?: UserGroup['id']; - limit?: number; - sinceId?: MessagingMessage['id']; - untilId?: MessagingMessage['id']; - markAsRead?: boolean; - }; - res: MessagingMessage[]; - }; - 'messaging/messages/create': { - req: { - userId?: User['id']; - groupId?: UserGroup['id']; - text?: string; - fileId?: DriveFile['id']; - }; - res: MessagingMessage; - }; - 'messaging/messages/delete': { - req: { - messageId: MessagingMessage['id']; - }; - res: null; - }; - 'messaging/messages/read': { - req: { - messageId: MessagingMessage['id']; - }; - res: null; - }; - 'meta': { - req: { - detail?: boolean; - }; - res: { - $switch: { - $cases: [ - [ - { - detail: true; - }, - DetailedInstanceMetadata - ], - [ - { - detail: false; - }, - LiteInstanceMetadata - ], - [ - { - detail: boolean; - }, - LiteInstanceMetadata | DetailedInstanceMetadata - ] - ]; - $default: LiteInstanceMetadata; - }; - }; - }; - 'miauth/gen-token': { - req: TODO; - res: TODO; - }; - 'mute/create': { - req: TODO; - res: TODO; - }; - 'mute/delete': { - req: { - userId: User['id']; - }; - res: null; - }; - 'mute/list': { - req: TODO; - res: TODO; - }; - 'my/apps': { - req: TODO; - res: TODO; - }; - 'notes': { - req: { - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - }; - res: Note[]; - }; - 'notes/children': { - req: { - noteId: Note['id']; - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - }; - res: Note[]; - }; - 'notes/clips': { - req: TODO; - res: TODO; - }; - 'notes/conversation': { - req: TODO; - res: TODO; - }; - 'notes/create': { - req: { - visibility?: 'public' | 'home' | 'followers' | 'specified'; - visibleUserIds?: User['id'][]; - text?: null | string; - cw?: null | string; - viaMobile?: boolean; - localOnly?: boolean; - fileIds?: DriveFile['id'][]; - replyId?: null | Note['id']; - renoteId?: null | Note['id']; - channelId?: null | Channel['id']; - poll?: null | { - choices: string[]; - multiple?: boolean; - expiresAt?: null | number; - expiredAfter?: null | number; - }; - }; - res: { - createdNote: Note; - }; - }; - 'notes/delete': { - req: { - noteId: Note['id']; - }; - res: null; - }; - 'notes/favorites/create': { - req: { - noteId: Note['id']; - }; - res: null; - }; - 'notes/favorites/delete': { - req: { - noteId: Note['id']; - }; - res: null; - }; - 'notes/featured': { - req: TODO; - res: Note[]; - }; - 'notes/global-timeline': { - req: { - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - 'notes/recommended-timeline': { - req: { - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - 'notes/hybrid-timeline': { - req: { - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - 'notes/local-timeline': { - req: { - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - 'notes/mentions': { - req: { - following?: boolean; - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - }; - res: Note[]; - }; - 'notes/polls/recommendation': { - req: TODO; - res: TODO; - }; - 'notes/polls/vote': { - req: { - noteId: Note['id']; - choice: number; - }; - res: null; - }; - 'notes/reactions': { - req: { - noteId: Note['id']; - type?: string | null; - limit?: number; - }; - res: NoteReaction[]; - }; - 'notes/reactions/create': { - req: { - noteId: Note['id']; - reaction: string; - }; - res: null; - }; - 'notes/reactions/delete': { - req: { - noteId: Note['id']; - }; - res: null; - }; - 'notes/renotes': { - req: { - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - noteId: Note['id']; - }; - res: Note[]; - }; - 'notes/replies': { - req: { - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - noteId: Note['id']; - }; - res: Note[]; - }; - 'notes/search-by-tag': { - req: TODO; - res: TODO; - }; - 'notes/search': { - req: TODO; - res: TODO; - }; - 'notes/show': { - req: { - noteId: Note['id']; - }; - res: Note; - }; - 'notes/state': { - req: TODO; - res: TODO; - }; - 'notes/timeline': { - req: { - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - 'notes/unrenote': { - req: { - noteId: Note['id']; - }; - res: null; - }; - 'notes/user-list-timeline': { - req: { - listId: UserList['id']; - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - 'notes/watching/create': { - req: TODO; - res: TODO; - }; - 'notes/watching/delete': { - req: { - noteId: Note['id']; - }; - res: null; - }; - 'notifications/create': { - req: { - body: string; - header?: string | null; - icon?: string | null; - }; - res: null; - }; - 'notifications/mark-all-as-read': { - req: NoParams; - res: null; - }; - 'notifications/read': { - req: { - notificationId: Notification_2['id']; - }; - res: null; - }; - 'page-push': { - req: { - pageId: Page['id']; - event: string; - var?: any; - }; - res: null; - }; - 'pages/create': { - req: TODO; - res: Page; - }; - 'pages/delete': { - req: { - pageId: Page['id']; - }; - res: null; - }; - 'pages/featured': { - req: NoParams; - res: Page[]; - }; - 'pages/like': { - req: { - pageId: Page['id']; - }; - res: null; - }; - 'pages/show': { - req: { - pageId?: Page['id']; - name?: string; - username?: string; - }; - res: Page; - }; - 'pages/unlike': { - req: { - pageId: Page['id']; - }; - res: null; - }; - 'pages/update': { - req: TODO; - res: null; - }; - 'ping': { - req: NoParams; - res: { - pong: number; - }; - }; - 'pinned-users': { - req: TODO; - res: TODO; - }; - 'promo/read': { - req: TODO; - res: TODO; - }; - 'request-reset-password': { - req: { - username: string; - email: string; - }; - res: null; - }; - 'reset-password': { - req: { - token: string; - password: string; - }; - res: null; - }; - 'room/show': { - req: TODO; - res: TODO; - }; - 'room/update': { - req: TODO; - res: TODO; - }; - 'stats': { - req: NoParams; - res: Stats; - }; - 'server-info': { - req: NoParams; - res: ServerInfo; - }; - 'sw/register': { - req: TODO; - res: TODO; - }; - 'username/available': { - req: { - username: string; - }; - res: { - available: boolean; - }; - }; - 'users': { - req: { - limit?: number; - offset?: number; - sort?: UserSorting; - origin?: OriginType; - }; - res: User[]; - }; - 'users/clips': { - req: TODO; - res: TODO; - }; - 'users/followers': { - req: { - userId?: User['id']; - username?: User['username']; - host?: User['host'] | null; - limit?: number; - sinceId?: Following['id']; - untilId?: Following['id']; - }; - res: FollowingFollowerPopulated[]; - }; - 'users/following': { - req: { - userId?: User['id']; - username?: User['username']; - host?: User['host'] | null; - limit?: number; - sinceId?: Following['id']; - untilId?: Following['id']; - }; - res: FollowingFolloweePopulated[]; - }; - 'users/gallery/posts': { - req: TODO; - res: TODO; - }; - 'users/get-frequently-replied-users': { - req: TODO; - res: TODO; - }; - 'users/groups/create': { - req: TODO; - res: TODO; - }; - 'users/groups/delete': { - req: { - groupId: UserGroup['id']; - }; - res: null; - }; - 'users/groups/invitations/accept': { - req: TODO; - res: TODO; - }; - 'users/groups/invitations/reject': { - req: TODO; - res: TODO; - }; - 'users/groups/invite': { - req: TODO; - res: TODO; - }; - 'users/groups/joined': { - req: TODO; - res: TODO; - }; - 'users/groups/owned': { - req: TODO; - res: TODO; - }; - 'users/groups/pull': { - req: TODO; - res: TODO; - }; - 'users/groups/show': { - req: TODO; - res: TODO; - }; - 'users/groups/transfer': { - req: TODO; - res: TODO; - }; - 'users/groups/update': { - req: TODO; - res: TODO; - }; - 'users/lists/create': { - req: { - name: string; - }; - res: UserList; - }; - 'users/lists/delete': { - req: { - listId: UserList['id']; - }; - res: null; - }; - 'users/lists/list': { - req: NoParams; - res: UserList[]; - }; - 'users/lists/pull': { - req: { - listId: UserList['id']; - userId: User['id']; - }; - res: null; - }; - 'users/lists/push': { - req: { - listId: UserList['id']; - userId: User['id']; - }; - res: null; - }; - 'users/lists/show': { - req: { - listId: UserList['id']; - }; - res: UserList; - }; - 'users/lists/update': { - req: { - listId: UserList['id']; - name: string; - }; - res: UserList; - }; - 'users/notes': { - req: { - userId: User['id']; - limit?: number; - sinceId?: Note['id']; - untilId?: Note['id']; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - 'users/pages': { - req: TODO; - res: TODO; - }; - 'users/recommendation': { - req: TODO; - res: TODO; - }; - 'users/relation': { - req: TODO; - res: TODO; - }; - 'users/report-abuse': { - req: TODO; - res: TODO; - }; - 'users/search-by-username-and-host': { - req: TODO; - res: TODO; - }; - 'users/search': { - req: TODO; - res: TODO; - }; - 'users/show': { - req: ShowUserReq | { - userIds: User['id'][]; - }; - res: { - $switch: { - $cases: [ - [ - { - userIds: User['id'][]; - }, - UserDetailed[] - ] - ]; - $default: UserDetailed; - }; - }; - }; - 'users/stats': { - req: TODO; - res: TODO; - }; -}; - -declare namespace entities { - export { - ID, - DateString, - User, - UserLite, - UserDetailed, - UserGroup, - UserList, - MeDetailed, - DriveFile, - DriveFolder, - GalleryPost, - Note, - NoteReaction, - Notification_2 as Notification, - MessagingMessage, - CustomEmoji, - LiteInstanceMetadata, - DetailedInstanceMetadata, - InstanceMetadata, - ServerInfo, - Stats, - Page, - PageEvent, - Announcement, - Antenna, - App, - AuthSession, - Ad, - Clip, - NoteFavorite, - FollowRequest, - Channel, - Following, - FollowingFolloweePopulated, - FollowingFollowerPopulated, - Blocking, - Instance, - Signin, - UserSorting, - OriginType - } -} -export { entities } - -// @public (undocumented) -type FetchLike = (input: string, init?: { - method?: string; - body?: string; - credentials?: RequestCredentials; - cache?: RequestCache; -}) => Promise<{ - status: number; - json(): Promise; -}>; - -// @public (undocumented) -export const ffVisibility: readonly ["public", "followers", "private"]; - -// @public (undocumented) -type Following = { - id: ID; - createdAt: DateString; - followerId: User['id']; - followeeId: User['id']; -}; - -// @public (undocumented) -type FollowingFolloweePopulated = Following & { - followee: UserDetailed; -}; - -// @public (undocumented) -type FollowingFollowerPopulated = Following & { - follower: UserDetailed; -}; - -// @public (undocumented) -type FollowRequest = { - id: ID; - follower: User; - followee: User; -}; - -// @public (undocumented) -type GalleryPost = TODO_2; - -// @public (undocumented) -type ID = string; - -// @public (undocumented) -type Instance = { - id: ID; - caughtAt: DateString; - host: string; - usersCount: number; - notesCount: number; - followingCount: number; - followersCount: number; - driveUsage: number; - driveFiles: number; - latestRequestSentAt: DateString | null; - latestStatus: number | null; - latestRequestReceivedAt: DateString | null; - lastCommunicatedAt: DateString; - isNotResponding: boolean; - isSuspended: boolean; - softwareName: string | null; - softwareVersion: string | null; - openRegistrations: boolean | null; - name: string | null; - description: string | null; - maintainerName: string | null; - maintainerEmail: string | null; - iconUrl: string | null; - faviconUrl: string | null; - themeColor: string | null; - infoUpdatedAt: DateString | null; -}; - -// @public (undocumented) -type InstanceMetadata = LiteInstanceMetadata | DetailedInstanceMetadata; - -// @public (undocumented) -function isAPIError(reason: any): reason is APIError; - -// @public (undocumented) -type LiteInstanceMetadata = { - maintainerName: string | null; - maintainerEmail: string | null; - version: string; - name: string | null; - uri: string; - description: string | null; - tosUrl: string | null; - disableRegistration: boolean; - disableLocalTimeline: boolean; - disableRecommendedTimeline: boolean; - disableGlobalTimeline: boolean; - driveCapacityPerLocalUserMb: number; - driveCapacityPerRemoteUserMb: number; - enableHcaptcha: boolean; - hcaptchaSiteKey: string | null; - enableRecaptcha: boolean; - recaptchaSiteKey: string | null; - swPublickey: string | null; - maxNoteTextLength: number; - enableEmail: boolean; - enableTwitterIntegration: boolean; - enableGithubIntegration: boolean; - enableDiscordIntegration: boolean; - enableServiceWorker: boolean; - emojis: CustomEmoji[]; - ads: { - id: ID; - ratio: number; - place: string; - url: string; - imageUrl: string; - }[]; -}; - -// @public (undocumented) -type MeDetailed = UserDetailed & { - avatarId: DriveFile['id']; - bannerId: DriveFile['id']; - autoAcceptFollowed: boolean; - alwaysMarkNsfw: boolean; - carefulBot: boolean; - emailNotificationTypes: string[]; - hasPendingReceivedFollowRequest: boolean; - hasUnreadAnnouncement: boolean; - hasUnreadAntenna: boolean; - hasUnreadChannel: boolean; - hasUnreadMentions: boolean; - hasUnreadMessagingMessage: boolean; - hasUnreadNotification: boolean; - hasUnreadSpecifiedNotes: boolean; - hideOnlineStatus: boolean; - injectFeaturedNote: boolean; - integrations: Record; - isDeleted: boolean; - isExplorable: boolean; - mutedWords: string[][]; - mutingNotificationTypes: string[]; - noCrawle: boolean; - receiveAnnouncementEmail: boolean; - usePasswordLessLogin: boolean; - [other: string]: any; -}; - -// @public (undocumented) -type MessagingMessage = { - id: ID; - createdAt: DateString; - file: DriveFile | null; - fileId: DriveFile['id'] | null; - isRead: boolean; - reads: User['id'][]; - text: string | null; - user: User; - userId: User['id']; - recipient?: User | null; - recipientId: User['id'] | null; - group?: UserGroup | null; - groupId: UserGroup['id'] | null; -}; - -// @public (undocumented) -export const mutedNoteReasons: readonly ["word", "manual", "spam", "other"]; - -// @public (undocumented) -type Note = { - id: ID; - createdAt: DateString; - text: string | null; - cw: string | null; - user: User; - userId: User['id']; - reply?: Note; - replyId: Note['id']; - renote?: Note; - renoteId: Note['id']; - files: DriveFile[]; - fileIds: DriveFile['id'][]; - visibility: 'public' | 'home' | 'followers' | 'specified'; - visibleUserIds?: User['id'][]; - localOnly?: boolean; - myReaction?: string; - reactions: Record; - renoteCount: number; - repliesCount: number; - poll?: { - expiresAt: DateString | null; - multiple: boolean; - choices: { - isVoted: boolean; - text: string; - votes: number; - }[]; - }; - emojis: { - name: string; - url: string; - }[]; - uri?: string; - url?: string; - isHidden?: boolean; -}; - -// @public (undocumented) -type NoteFavorite = { - id: ID; - createdAt: DateString; - noteId: Note['id']; - note: Note; -}; - -// @public (undocumented) -type NoteReaction = { - id: ID; - createdAt: DateString; - user: UserLite; - type: string; -}; - -// @public (undocumented) -export const noteVisibilities: readonly ["public", "home", "followers", "specified"]; - -// @public (undocumented) -type Notification_2 = { - id: ID; - createdAt: DateString; - isRead: boolean; -} & ({ - type: 'reaction'; - reaction: string; - user: User; - userId: User['id']; - note: Note; -} | { - type: 'reply'; - user: User; - userId: User['id']; - note: Note; -} | { - type: 'renote'; - user: User; - userId: User['id']; - note: Note; -} | { - type: 'quote'; - user: User; - userId: User['id']; - note: Note; -} | { - type: 'mention'; - user: User; - userId: User['id']; - note: Note; -} | { - type: 'pollVote'; - user: User; - userId: User['id']; - note: Note; -} | { - type: 'follow'; - user: User; - userId: User['id']; -} | { - type: 'followRequestAccepted'; - user: User; - userId: User['id']; -} | { - type: 'receiveFollowRequest'; - user: User; - userId: User['id']; -} | { - type: 'groupInvited'; - invitation: UserGroup; - user: User; - userId: User['id']; -} | { - type: 'app'; - header?: string | null; - body: string; - icon?: string | null; -}); - -// @public (undocumented) -export const notificationTypes: readonly ["follow", "mention", "reply", "renote", "quote", "reaction", "pollVote", "receiveFollowRequest", "followRequestAccepted", "groupInvited", "app"]; - -// @public (undocumented) -type OriginType = 'combined' | 'local' | 'remote'; - -// @public (undocumented) -type Page = { - id: ID; - createdAt: DateString; - updatedAt: DateString; - userId: User['id']; - user: User; - content: Record[]; - variables: Record[]; - title: string; - name: string; - summary: string | null; - hideTitleWhenPinned: boolean; - alignCenter: boolean; - font: string; - script: string; - eyeCatchingImageId: DriveFile['id'] | null; - eyeCatchingImage: DriveFile | null; - attachedFiles: any; - likedCount: number; - isLiked?: boolean; -}; - -// @public (undocumented) -type PageEvent = { - pageId: Page['id']; - event: string; - var: any; - userId: User['id']; - user: User; -}; - -// @public (undocumented) -export const permissions: string[]; - -// @public (undocumented) -type ServerInfo = { - machine: string; - cpu: { - model: string; - cores: number; - }; - mem: { - total: number; - }; - fs: { - total: number; - used: number; - }; -}; - -// @public (undocumented) -type Signin = { - id: ID; - createdAt: DateString; - ip: string; - headers: Record; - success: boolean; -}; - -// @public (undocumented) -type Stats = { - notesCount: number; - originalNotesCount: number; - usersCount: number; - originalUsersCount: number; - instances: number; - driveUsageLocal: number; - driveUsageRemote: number; -}; - -// Warning: (ae-forgotten-export) The symbol "StreamEvents" needs to be exported by the entry point index.d.ts -// -// @public (undocumented) -export class Stream extends EventEmitter { - constructor(origin: string, user: { - token: string; - } | null, options?: { - WebSocket?: any; - }); - // (undocumented) - close(): void; - // Warning: (ae-forgotten-export) The symbol "NonSharedConnection" needs to be exported by the entry point index.d.ts - // - // (undocumented) - disconnectToChannel(connection: NonSharedConnection): void; - // Warning: (ae-forgotten-export) The symbol "SharedConnection" needs to be exported by the entry point index.d.ts - // - // (undocumented) - removeSharedConnection(connection: SharedConnection): void; - // Warning: (ae-forgotten-export) The symbol "Pool" needs to be exported by the entry point index.d.ts - // - // (undocumented) - removeSharedConnectionPool(pool: Pool): void; - // (undocumented) - send(typeOrPayload: any, payload?: any): void; - // (undocumented) - state: 'initializing' | 'reconnecting' | 'connected'; - // (undocumented) - useChannel(channel: C, params?: Channels[C]['params'], name?: string): ChannelConnection; -} - -// @public (undocumented) -type User = UserLite | UserDetailed; - -// @public (undocumented) -type UserDetailed = UserLite & { - bannerBlurhash: string | null; - bannerColor: string | null; - bannerUrl: string | null; - birthday: string | null; - createdAt: DateString; - description: string | null; - ffVisibility: 'public' | 'followers' | 'private'; - fields: { - name: string; - value: string; - }[]; - followersCount: number; - followingCount: number; - hasPendingFollowRequestFromYou: boolean; - hasPendingFollowRequestToYou: boolean; - isAdmin: boolean; - isBlocked: boolean; - isBlocking: boolean; - isBot: boolean; - isCat: boolean; - isFollowed: boolean; - isFollowing: boolean; - isLocked: boolean; - isModerator: boolean; - isMuted: boolean; - isSilenced: boolean; - isSuspended: boolean; - lang: string | null; - lastFetchedAt?: DateString; - location: string | null; - notesCount: number; - pinnedNoteIds: ID[]; - pinnedNotes: Note[]; - pinnedPage: Page | null; - pinnedPageId: string | null; - publicReactions: boolean; - securityKeys: boolean; - twoFactorEnabled: boolean; - updatedAt: DateString | null; - uri: string | null; - url: string | null; -}; - -// @public (undocumented) -type UserGroup = TODO_2; - -// @public (undocumented) -type UserList = { - id: ID; - createdAt: DateString; - name: string; - userIds: User['id'][]; -}; - -// @public (undocumented) -type UserLite = { - id: ID; - username: string; - host: string | null; - name: string; - onlineStatus: 'online' | 'active' | 'offline' | 'unknown'; - avatarUrl: string; - avatarBlurhash: string; - emojis: { - name: string; - url: string; - }[]; - instance?: { - name: Instance['name']; - softwareName: Instance['softwareName']; - softwareVersion: Instance['softwareVersion']; - iconUrl: Instance['iconUrl']; - faviconUrl: Instance['faviconUrl']; - themeColor: Instance['themeColor']; - }; -}; - -// @public (undocumented) -type UserSorting = '+follower' | '-follower' | '+createdAt' | '-createdAt' | '+updatedAt' | '-updatedAt'; - -// Warnings were encountered during analysis: -// -// src/api.types.ts:16:32 - (ae-forgotten-export) The symbol "TODO" needs to be exported by the entry point index.d.ts -// src/api.types.ts:18:25 - (ae-forgotten-export) The symbol "NoParams" needs to be exported by the entry point index.d.ts -// src/api.types.ts:595:18 - (ae-forgotten-export) The symbol "ShowUserReq" needs to be exported by the entry point index.d.ts -// src/streaming.types.ts:35:4 - (ae-forgotten-export) The symbol "FIXME" needs to be exported by the entry point index.d.ts - -// (No @packageDocumentation comment for this package) - -``` diff --git a/packages/calckey-js/jest.config.ts b/packages/calckey-js/jest.config.ts deleted file mode 100644 index f26a77c278..0000000000 --- a/packages/calckey-js/jest.config.ts +++ /dev/null @@ -1,195 +0,0 @@ -/* - * For a detailed explanation regarding each configuration property and type check, visit: - * https://jestjs.io/docs/en/configuration.html - */ - -export default { - // All imported modules in your tests should be mocked automatically - // automock: false, - - // Stop running tests after `n` failures - // bail: 0, - - // The directory where Jest should store its cached dependency information - // cacheDirectory: "C:\\Users\\ai\\AppData\\Local\\Temp\\jest", - - // Automatically clear mock calls and instances between every test - // clearMocks: false, - - // Indicates whether the coverage information should be collected while executing the test - // collectCoverage: false, - - // An array of glob patterns indicating a set of files for which coverage information should be collected - // collectCoverageFrom: undefined, - - // The directory where Jest should output its coverage files - coverageDirectory: "coverage", - - // An array of regexp pattern strings used to skip coverage collection - // coveragePathIgnorePatterns: [ - // "\\\\node_modules\\\\" - // ], - - // Indicates which provider should be used to instrument code for coverage - coverageProvider: "v8", - - // A list of reporter names that Jest uses when writing coverage reports - // coverageReporters: [ - // "json", - // "text", - // "lcov", - // "clover" - // ], - - // An object that configures minimum threshold enforcement for coverage results - // coverageThreshold: undefined, - - // A path to a custom dependency extractor - // dependencyExtractor: undefined, - - // Make calling deprecated APIs throw helpful error messages - // errorOnDeprecated: false, - - // Force coverage collection from ignored files using an array of glob patterns - // forceCoverageMatch: [], - - // A path to a module which exports an async function that is triggered once before all test suites - // globalSetup: undefined, - - // A path to a module which exports an async function that is triggered once after all test suites - // globalTeardown: undefined, - - // A set of global variables that need to be available in all test environments - // globals: {}, - - // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. - // maxWorkers: "50%", - - // An array of directory names to be searched recursively up from the requiring module's location - // moduleDirectories: [ - // "node_modules" - // ], - - // An array of file extensions your modules use - // moduleFileExtensions: [ - // "js", - // "json", - // "jsx", - // "ts", - // "tsx", - // "node" - // ], - - // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module - // moduleNameMapper: {}, - - // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader - // modulePathIgnorePatterns: [], - - // Activates notifications for test results - // notify: false, - - // An enum that specifies notification mode. Requires { notify: true } - // notifyMode: "failure-change", - - // A preset that is used as a base for Jest's configuration - // preset: undefined, - - // Run tests from one or more projects - // projects: undefined, - - // Use this configuration option to add custom reporters to Jest - // reporters: undefined, - - // Automatically reset mock state between every test - // resetMocks: false, - - // Reset the module registry before running each individual test - // resetModules: false, - - // A path to a custom resolver - // resolver: undefined, - - // Automatically restore mock state between every test - // restoreMocks: false, - - // The root directory that Jest should scan for tests and modules within - // rootDir: undefined, - - // A list of paths to directories that Jest should use to search for files in - roots: [""], - - // Allows you to use a custom runner instead of Jest's default test runner - // runner: "jest-runner", - - // The paths to modules that run some code to configure or set up the testing environment before each test - // setupFiles: [], - - // A list of paths to modules that run some code to configure or set up the testing framework before each test - // setupFilesAfterEnv: [], - - // The number of seconds after which a test is considered as slow and reported as such in the results. - // slowTestThreshold: 5, - - // A list of paths to snapshot serializer modules Jest should use for snapshot testing - // snapshotSerializers: [], - - // The test environment that will be used for testing - testEnvironment: "node", - - // Options that will be passed to the testEnvironment - // testEnvironmentOptions: {}, - - // Adds a location field to test results - // testLocationInResults: false, - - // The glob patterns Jest uses to detect test files - testMatch: [ - "**/__tests__/**/*.[jt]s?(x)", - "**/?(*.)+(spec|test).[tj]s?(x)", - "/test/**/*", - ], - - // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped - // testPathIgnorePatterns: [ - // "\\\\node_modules\\\\" - // ], - - // The regexp pattern or array of patterns that Jest uses to detect test files - // testRegex: [], - - // This option allows the use of a custom results processor - // testResultsProcessor: undefined, - - // This option allows use of a custom test runner - // testRunner: "jasmine2", - - // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href - // testURL: "http://localhost", - - // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout" - // timers: "real", - - // A map from regular expressions to paths to transformers - transform: { - "^.+\\.(ts|tsx)$": "ts-jest", - }, - - // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation - // transformIgnorePatterns: [ - // "\\\\node_modules\\\\", - // "\\.pnp\\.[^\\\\]+$" - // ], - - // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them - // unmockedModulePathPatterns: undefined, - - // Indicates whether each individual test should be reported during the run - // verbose: undefined, - - // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode - // watchPathIgnorePatterns: [], - - // Whether to use watchman for file crawling - // watchman: true, -}; diff --git a/packages/calckey-js/markdown/calckey-js.acct.md b/packages/calckey-js/markdown/calckey-js.acct.md deleted file mode 100644 index 2535e0e9a8..0000000000 --- a/packages/calckey-js/markdown/calckey-js.acct.md +++ /dev/null @@ -1,14 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Acct](./calckey-js.acct.md) - -## Acct type - -**Signature:** - -```typescript -export declare type Acct = { - username: string; - host: string | null; -}; -``` diff --git a/packages/calckey-js/markdown/calckey-js.api.apiclient._constructor_.md b/packages/calckey-js/markdown/calckey-js.api.apiclient._constructor_.md deleted file mode 100644 index ed4c03effc..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.apiclient._constructor_.md +++ /dev/null @@ -1,24 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [(constructor)](./calckey-js.api.apiclient._constructor_.md) - -## api.APIClient.(constructor) - -Constructs a new instance of the `APIClient` class - -**Signature:** - -```typescript -constructor(opts: { - origin: APIClient["origin"]; - credential?: APIClient["credential"]; - fetch?: APIClient["fetch"] | null | undefined; - }); -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| opts | { origin: [APIClient](./calckey-js.api.apiclient.md)\["origin"\]; credential?: [APIClient](./calckey-js.api.apiclient.md)\["credential"\]; fetch?: [APIClient](./calckey-js.api.apiclient.md)\["fetch"\] \| null \| undefined; } | | - diff --git a/packages/calckey-js/markdown/calckey-js.api.apiclient.credential.md b/packages/calckey-js/markdown/calckey-js.api.apiclient.credential.md deleted file mode 100644 index 2c14d244a3..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.apiclient.credential.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [credential](./calckey-js.api.apiclient.credential.md) - -## api.APIClient.credential property - -**Signature:** - -```typescript -credential: string | null | undefined; -``` diff --git a/packages/calckey-js/markdown/calckey-js.api.apiclient.fetch.md b/packages/calckey-js/markdown/calckey-js.api.apiclient.fetch.md deleted file mode 100644 index c7108c23db..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.apiclient.fetch.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [fetch](./calckey-js.api.apiclient.fetch.md) - -## api.APIClient.fetch property - -**Signature:** - -```typescript -fetch: FetchLike; -``` diff --git a/packages/calckey-js/markdown/calckey-js.api.apiclient.md b/packages/calckey-js/markdown/calckey-js.api.apiclient.md deleted file mode 100644 index 92dff826fa..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.apiclient.md +++ /dev/null @@ -1,32 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) - -## api.APIClient class - -**Signature:** - -```typescript -export declare class APIClient -``` - -## Constructors - -| Constructor | Modifiers | Description | -| --- | --- | --- | -| [(constructor)(opts)](./calckey-js.api.apiclient._constructor_.md) | | Constructs a new instance of the APIClient class | - -## Properties - -| Property | Modifiers | Type | Description | -| --- | --- | --- | --- | -| [credential](./calckey-js.api.apiclient.credential.md) | | string \| null \| undefined | | -| [fetch](./calckey-js.api.apiclient.fetch.md) | | [FetchLike](./calckey-js.api.fetchlike.md) | | -| [origin](./calckey-js.api.apiclient.origin.md) | | string | | - -## Methods - -| Method | Modifiers | Description | -| --- | --- | --- | -| [request(endpoint, params, credential)](./calckey-js.api.apiclient.request.md) | | | - diff --git a/packages/calckey-js/markdown/calckey-js.api.apiclient.origin.md b/packages/calckey-js/markdown/calckey-js.api.apiclient.origin.md deleted file mode 100644 index 1f6a4be912..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.apiclient.origin.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [origin](./calckey-js.api.apiclient.origin.md) - -## api.APIClient.origin property - -**Signature:** - -```typescript -origin: string; -``` diff --git a/packages/calckey-js/markdown/calckey-js.api.apiclient.request.md b/packages/calckey-js/markdown/calckey-js.api.apiclient.request.md deleted file mode 100644 index a330011777..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.apiclient.request.md +++ /dev/null @@ -1,57 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [request](./calckey-js.api.apiclient.request.md) - -## api.APIClient.request() method - -**Signature:** - -```typescript -request( - endpoint: E, - params?: P, - credential?: string | null | undefined, - ): Promise< - Endpoints[E]["res"] extends { - $switch: { - $cases: [any, any][]; - $default: any; - }; - } - ? IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : Endpoints[E]["res"]["$switch"]["$default"] - : Endpoints[E]["res"] - >; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| endpoint | E | | -| params | P | _(Optional)_ | -| credential | string \| null \| undefined | _(Optional)_ | - -**Returns:** - -Promise< [Endpoints](./calckey-js.endpoints.md)\[E\]\["res"\] extends { $switch: { $cases: \[any, any\]\[\]; $default: any; }; } ? IsCaseMatched<E, P, 0> extends true ? GetCaseResult<E, P, 0> : IsCaseMatched<E, P, 1> extends true ? GetCaseResult<E, P, 1> : IsCaseMatched<E, P, 2> extends true ? GetCaseResult<E, P, 2> : IsCaseMatched<E, P, 3> extends true ? GetCaseResult<E, P, 3> : IsCaseMatched<E, P, 4> extends true ? GetCaseResult<E, P, 4> : IsCaseMatched<E, P, 5> extends true ? GetCaseResult<E, P, 5> : IsCaseMatched<E, P, 6> extends true ? GetCaseResult<E, P, 6> : IsCaseMatched<E, P, 7> extends true ? GetCaseResult<E, P, 7> : IsCaseMatched<E, P, 8> extends true ? GetCaseResult<E, P, 8> : IsCaseMatched<E, P, 9> extends true ? GetCaseResult<E, P, 9> : [Endpoints](./calckey-js.endpoints.md)\[E\]\["res"\]\["$switch"\]\["$default"\] : [Endpoints](./calckey-js.endpoints.md)\[E\]\["res"\] > - diff --git a/packages/calckey-js/markdown/calckey-js.api.apierror.md b/packages/calckey-js/markdown/calckey-js.api.apierror.md deleted file mode 100644 index 7927cfd895..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.apierror.md +++ /dev/null @@ -1,17 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIError](./calckey-js.api.apierror.md) - -## api.APIError type - -**Signature:** - -```typescript -export declare type APIError = { - id: string; - code: string; - message: string; - kind: "client" | "server"; - info: Record; -}; -``` diff --git a/packages/calckey-js/markdown/calckey-js.api.fetchlike.md b/packages/calckey-js/markdown/calckey-js.api.fetchlike.md deleted file mode 100644 index 9ec29fa2d5..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.fetchlike.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [FetchLike](./calckey-js.api.fetchlike.md) - -## api.FetchLike type - -**Signature:** - -```typescript -export declare type FetchLike = ( - input: string, - init?: { - method?: string; - body?: string; - credentials?: RequestCredentials; - cache?: RequestCache; - }, -) => Promise<{ - status: number; - json(): Promise; -}>; -``` diff --git a/packages/calckey-js/markdown/calckey-js.api.isapierror.md b/packages/calckey-js/markdown/calckey-js.api.isapierror.md deleted file mode 100644 index 965bf9ce27..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.isapierror.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [isAPIError](./calckey-js.api.isapierror.md) - -## api.isAPIError() function - -**Signature:** - -```typescript -export declare function isAPIError(reason: any): reason is APIError; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| reason | any | | - -**Returns:** - -reason is [APIError](./calckey-js.api.apierror.md) - diff --git a/packages/calckey-js/markdown/calckey-js.api.md b/packages/calckey-js/markdown/calckey-js.api.md deleted file mode 100644 index eee1920abc..0000000000 --- a/packages/calckey-js/markdown/calckey-js.api.md +++ /dev/null @@ -1,25 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) - -## api namespace - -## Classes - -| Class | Description | -| --- | --- | -| [APIClient](./calckey-js.api.apiclient.md) | | - -## Functions - -| Function | Description | -| --- | --- | -| [isAPIError(reason)](./calckey-js.api.isapierror.md) | | - -## Type Aliases - -| Type Alias | Description | -| --- | --- | -| [APIError](./calckey-js.api.apierror.md) | | -| [FetchLike](./calckey-js.api.fetchlike.md) | | - diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection._constructor_.md b/packages/calckey-js/markdown/calckey-js.channelconnection._constructor_.md deleted file mode 100644 index 65f7c3eee0..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection._constructor_.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [(constructor)](./calckey-js.channelconnection._constructor_.md) - -## ChannelConnection.(constructor) - -Constructs a new instance of the `Connection` class - -**Signature:** - -```typescript -constructor(stream: Stream, channel: string, name?: string); -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| stream | [Stream](./calckey-js.stream.md) | | -| channel | string | | -| name | string | _(Optional)_ | - diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection.channel.md b/packages/calckey-js/markdown/calckey-js.channelconnection.channel.md deleted file mode 100644 index bbf36efced..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection.channel.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [channel](./calckey-js.channelconnection.channel.md) - -## ChannelConnection.channel property - -**Signature:** - -```typescript -channel: string; -``` diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection.dispose.md b/packages/calckey-js/markdown/calckey-js.channelconnection.dispose.md deleted file mode 100644 index 847e7dfae4..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection.dispose.md +++ /dev/null @@ -1,15 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [dispose](./calckey-js.channelconnection.dispose.md) - -## ChannelConnection.dispose() method - -**Signature:** - -```typescript -abstract dispose(): void; -``` -**Returns:** - -void - diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection.id.md b/packages/calckey-js/markdown/calckey-js.channelconnection.id.md deleted file mode 100644 index b145ffa067..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection.id.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [id](./calckey-js.channelconnection.id.md) - -## ChannelConnection.id property - -**Signature:** - -```typescript -abstract id: string; -``` diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection.incount.md b/packages/calckey-js/markdown/calckey-js.channelconnection.incount.md deleted file mode 100644 index b7ef319e2d..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection.incount.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [inCount](./calckey-js.channelconnection.incount.md) - -## ChannelConnection.inCount property - -**Signature:** - -```typescript -inCount: number; -``` diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection.md b/packages/calckey-js/markdown/calckey-js.channelconnection.md deleted file mode 100644 index 0429baa805..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection.md +++ /dev/null @@ -1,39 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) - -## ChannelConnection class - -**Signature:** - -```typescript -export declare abstract class Connection< - Channel extends AnyOf = any, -> extends EventEmitter -``` -**Extends:** EventEmitter<Channel\["events"\]> - -## Constructors - -| Constructor | Modifiers | Description | -| --- | --- | --- | -| [(constructor)(stream, channel, name)](./calckey-js.channelconnection._constructor_.md) | | Constructs a new instance of the Connection class | - -## Properties - -| Property | Modifiers | Type | Description | -| --- | --- | --- | --- | -| [channel](./calckey-js.channelconnection.channel.md) | | string | | -| [id](./calckey-js.channelconnection.id.md) | abstract | string | | -| [inCount](./calckey-js.channelconnection.incount.md) | | number | | -| [name?](./calckey-js.channelconnection.name.md) | | string | _(Optional)_ | -| [outCount](./calckey-js.channelconnection.outcount.md) | | number | | -| [stream](./calckey-js.channelconnection.stream.md) | protected | [Stream](./calckey-js.stream.md) | | - -## Methods - -| Method | Modifiers | Description | -| --- | --- | --- | -| [dispose()](./calckey-js.channelconnection.dispose.md) | abstract | | -| [send(type, body)](./calckey-js.channelconnection.send.md) | | | - diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection.name.md b/packages/calckey-js/markdown/calckey-js.channelconnection.name.md deleted file mode 100644 index b364bdf844..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection.name.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [name](./calckey-js.channelconnection.name.md) - -## ChannelConnection.name property - -**Signature:** - -```typescript -name?: string; -``` diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection.outcount.md b/packages/calckey-js/markdown/calckey-js.channelconnection.outcount.md deleted file mode 100644 index e300757688..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection.outcount.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [outCount](./calckey-js.channelconnection.outcount.md) - -## ChannelConnection.outCount property - -**Signature:** - -```typescript -outCount: number; -``` diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection.send.md b/packages/calckey-js/markdown/calckey-js.channelconnection.send.md deleted file mode 100644 index 2ee5c20159..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection.send.md +++ /dev/null @@ -1,26 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [send](./calckey-js.channelconnection.send.md) - -## ChannelConnection.send() method - -**Signature:** - -```typescript -send( - type: T, - body: Channel["receives"][T], - ): void; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| type | T | | -| body | Channel\["receives"\]\[T\] | | - -**Returns:** - -void - diff --git a/packages/calckey-js/markdown/calckey-js.channelconnection.stream.md b/packages/calckey-js/markdown/calckey-js.channelconnection.stream.md deleted file mode 100644 index 2e1fc584c2..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channelconnection.stream.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [stream](./calckey-js.channelconnection.stream.md) - -## ChannelConnection.stream property - -**Signature:** - -```typescript -protected stream: Stream; -``` diff --git a/packages/calckey-js/markdown/calckey-js.channels.md b/packages/calckey-js/markdown/calckey-js.channels.md deleted file mode 100644 index 952a79f044..0000000000 --- a/packages/calckey-js/markdown/calckey-js.channels.md +++ /dev/null @@ -1,143 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Channels](./calckey-js.channels.md) - -## Channels type - -**Signature:** - -```typescript -export declare type Channels = { - main: { - params: null; - events: { - notification: (payload: Notification) => void; - mention: (payload: Note) => void; - reply: (payload: Note) => void; - renote: (payload: Note) => void; - follow: (payload: User) => void; - followed: (payload: User) => void; - unfollow: (payload: User) => void; - meUpdated: (payload: MeDetailed) => void; - pageEvent: (payload: PageEvent) => void; - urlUploadFinished: (payload: { - marker: string; - file: DriveFile; - }) => void; - readAllNotifications: () => void; - unreadNotification: (payload: Notification) => void; - unreadMention: (payload: Note["id"]) => void; - readAllUnreadMentions: () => void; - unreadSpecifiedNote: (payload: Note["id"]) => void; - readAllUnreadSpecifiedNotes: () => void; - readAllMessagingMessages: () => void; - messagingMessage: (payload: MessagingMessage) => void; - unreadMessagingMessage: (payload: MessagingMessage) => void; - readAllAntennas: () => void; - unreadAntenna: (payload: Antenna) => void; - readAllAnnouncements: () => void; - readAllChannels: () => void; - unreadChannel: (payload: Note["id"]) => void; - myTokenRegenerated: () => void; - reversiNoInvites: () => void; - reversiInvited: (payload: FIXME) => void; - signin: (payload: FIXME) => void; - registryUpdated: (payload: { - scope?: string[]; - key: string; - value: any | null; - }) => void; - driveFileCreated: (payload: DriveFile) => void; - readAntenna: (payload: Antenna) => void; - }; - receives: null; - }; - homeTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - localTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - hybridTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - recommendedTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - globalTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - antenna: { - params: { - antennaId: Antenna["id"]; - }; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - messaging: { - params: { - otherparty?: User["id"] | null; - group?: UserGroup["id"] | null; - }; - events: { - message: (payload: MessagingMessage) => void; - deleted: (payload: MessagingMessage["id"]) => void; - read: (payload: MessagingMessage["id"][]) => void; - typers: (payload: User[]) => void; - }; - receives: { - read: { - id: MessagingMessage["id"]; - }; - }; - }; - serverStats: { - params: null; - events: { - stats: (payload: FIXME) => void; - }; - receives: { - requestLog: { - id: string | number; - length: number; - }; - }; - }; - queueStats: { - params: null; - events: { - stats: (payload: FIXME) => void; - }; - receives: { - requestLog: { - id: string | number; - length: number; - }; - }; - }; -}; -``` -**References:** [Note](./calckey-js.entities.note.md), [User](./calckey-js.entities.user.md), [MeDetailed](./calckey-js.entities.medetailed.md), [PageEvent](./calckey-js.entities.pageevent.md), [DriveFile](./calckey-js.entities.drivefile.md), [MessagingMessage](./calckey-js.entities.messagingmessage.md), [Antenna](./calckey-js.entities.antenna.md), [UserGroup](./calckey-js.entities.usergroup.md) - diff --git a/packages/calckey-js/markdown/calckey-js.endpoints.md b/packages/calckey-js/markdown/calckey-js.endpoints.md deleted file mode 100644 index c38a936836..0000000000 --- a/packages/calckey-js/markdown/calckey-js.endpoints.md +++ /dev/null @@ -1,1911 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Endpoints](./calckey-js.endpoints.md) - -## Endpoints type - -**Signature:** - -```typescript -export declare type Endpoints = { - "admin/abuse-user-reports": { - req: TODO; - res: TODO; - }; - "admin/delete-all-files-of-a-user": { - req: { - userId: User["id"]; - }; - res: null; - }; - "admin/delete-logs": { - req: NoParams; - res: null; - }; - "admin/get-index-stats": { - req: TODO; - res: TODO; - }; - "admin/get-table-stats": { - req: TODO; - res: TODO; - }; - "admin/invite": { - req: TODO; - res: TODO; - }; - "admin/logs": { - req: TODO; - res: TODO; - }; - "admin/meta": { - req: TODO; - res: TODO; - }; - "admin/reset-password": { - req: TODO; - res: TODO; - }; - "admin/resolve-abuse-user-report": { - req: TODO; - res: TODO; - }; - "admin/resync-chart": { - req: TODO; - res: TODO; - }; - "admin/send-email": { - req: TODO; - res: TODO; - }; - "admin/server-info": { - req: TODO; - res: TODO; - }; - "admin/show-moderation-logs": { - req: TODO; - res: TODO; - }; - "admin/show-user": { - req: TODO; - res: TODO; - }; - "admin/show-users": { - req: TODO; - res: TODO; - }; - "admin/silence-user": { - req: TODO; - res: TODO; - }; - "admin/suspend-user": { - req: TODO; - res: TODO; - }; - "admin/unsilence-user": { - req: TODO; - res: TODO; - }; - "admin/unsuspend-user": { - req: TODO; - res: TODO; - }; - "admin/update-meta": { - req: TODO; - res: TODO; - }; - "admin/vacuum": { - req: TODO; - res: TODO; - }; - "admin/accounts/create": { - req: TODO; - res: TODO; - }; - "admin/ad/create": { - req: TODO; - res: TODO; - }; - "admin/ad/delete": { - req: { - id: Ad["id"]; - }; - res: null; - }; - "admin/ad/list": { - req: TODO; - res: TODO; - }; - "admin/ad/update": { - req: TODO; - res: TODO; - }; - "admin/announcements/create": { - req: TODO; - res: TODO; - }; - "admin/announcements/delete": { - req: { - id: Announcement["id"]; - }; - res: null; - }; - "admin/announcements/list": { - req: TODO; - res: TODO; - }; - "admin/announcements/update": { - req: TODO; - res: TODO; - }; - "admin/drive/clean-remote-files": { - req: TODO; - res: TODO; - }; - "admin/drive/cleanup": { - req: TODO; - res: TODO; - }; - "admin/drive/files": { - req: TODO; - res: TODO; - }; - "admin/drive/show-file": { - req: TODO; - res: TODO; - }; - "admin/emoji/add": { - req: TODO; - res: TODO; - }; - "admin/emoji/copy": { - req: TODO; - res: TODO; - }; - "admin/emoji/list-remote": { - req: TODO; - res: TODO; - }; - "admin/emoji/list": { - req: TODO; - res: TODO; - }; - "admin/emoji/remove": { - req: TODO; - res: TODO; - }; - "admin/emoji/update": { - req: TODO; - res: TODO; - }; - "admin/federation/delete-all-files": { - req: { - host: string; - }; - res: null; - }; - "admin/federation/refresh-remote-instance-metadata": { - req: TODO; - res: TODO; - }; - "admin/federation/remove-all-following": { - req: TODO; - res: TODO; - }; - "admin/federation/update-instance": { - req: TODO; - res: TODO; - }; - "admin/moderators/add": { - req: TODO; - res: TODO; - }; - "admin/moderators/remove": { - req: TODO; - res: TODO; - }; - "admin/promo/create": { - req: TODO; - res: TODO; - }; - "admin/queue/clear": { - req: TODO; - res: TODO; - }; - "admin/queue/deliver-delayed": { - req: TODO; - res: TODO; - }; - "admin/queue/inbox-delayed": { - req: TODO; - res: TODO; - }; - "admin/queue/jobs": { - req: TODO; - res: TODO; - }; - "admin/queue/stats": { - req: TODO; - res: TODO; - }; - "admin/relays/add": { - req: TODO; - res: TODO; - }; - "admin/relays/list": { - req: TODO; - res: TODO; - }; - "admin/relays/remove": { - req: TODO; - res: TODO; - }; - announcements: { - req: { - limit?: number; - withUnreads?: boolean; - sinceId?: Announcement["id"]; - untilId?: Announcement["id"]; - }; - res: Announcement[]; - }; - "antennas/create": { - req: TODO; - res: Antenna; - }; - "antennas/delete": { - req: { - antennaId: Antenna["id"]; - }; - res: null; - }; - "antennas/list": { - req: NoParams; - res: Antenna[]; - }; - "antennas/notes": { - req: { - antennaId: Antenna["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "antennas/show": { - req: { - antennaId: Antenna["id"]; - }; - res: Antenna; - }; - "antennas/update": { - req: TODO; - res: Antenna; - }; - "antennas/mark-read": { - req: TODO; - res: Antenna; - }; - "ap/get": { - req: { - uri: string; - }; - res: Record; - }; - "ap/show": { - req: { - uri: string; - }; - res: - | { - type: "Note"; - object: Note; - } - | { - type: "User"; - object: UserDetailed; - }; - }; - "app/create": { - req: TODO; - res: App; - }; - "app/show": { - req: { - appId: App["id"]; - }; - res: App; - }; - "auth/accept": { - req: { - token: string; - }; - res: null; - }; - "auth/session/generate": { - req: { - appSecret: string; - }; - res: { - token: string; - url: string; - }; - }; - "auth/session/show": { - req: { - token: string; - }; - res: AuthSession; - }; - "auth/session/userkey": { - req: { - appSecret: string; - token: string; - }; - res: { - accessToken: string; - user: User; - }; - }; - "blocking/create": { - req: { - userId: User["id"]; - }; - res: UserDetailed; - }; - "blocking/delete": { - req: { - userId: User["id"]; - }; - res: UserDetailed; - }; - "blocking/list": { - req: { - limit?: number; - sinceId?: Blocking["id"]; - untilId?: Blocking["id"]; - }; - res: Blocking[]; - }; - "channels/create": { - req: TODO; - res: TODO; - }; - "channels/featured": { - req: TODO; - res: TODO; - }; - "channels/follow": { - req: TODO; - res: TODO; - }; - "channels/followed": { - req: TODO; - res: TODO; - }; - "channels/owned": { - req: TODO; - res: TODO; - }; - "channels/pin-note": { - req: TODO; - res: TODO; - }; - "channels/show": { - req: TODO; - res: TODO; - }; - "channels/timeline": { - req: TODO; - res: TODO; - }; - "channels/unfollow": { - req: TODO; - res: TODO; - }; - "channels/update": { - req: TODO; - res: TODO; - }; - "charts/active-users": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - local: { - users: number[]; - }; - remote: { - users: number[]; - }; - }; - }; - "charts/drive": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - local: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - remote: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - }; - }; - "charts/federation": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - instance: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - "charts/hashtag": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: TODO; - }; - "charts/instance": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - host: string; - }; - res: { - drive: { - decFiles: number[]; - decUsage: number[]; - incFiles: number[]; - incUsage: number[]; - totalFiles: number[]; - totalUsage: number[]; - }; - followers: { - dec: number[]; - inc: number[]; - total: number[]; - }; - following: { - dec: number[]; - inc: number[]; - total: number[]; - }; - notes: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - requests: { - failed: number[]; - received: number[]; - succeeded: number[]; - }; - users: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - "charts/network": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: TODO; - }; - "charts/notes": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - local: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - remote: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - }; - }; - "charts/user/drive": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - }; - "charts/user/following": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: TODO; - }; - "charts/user/notes": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - }; - "charts/user/reactions": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: TODO; - }; - "charts/users": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - }; - res: { - local: { - dec: number[]; - inc: number[]; - total: number[]; - }; - remote: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - "clips/add-note": { - req: TODO; - res: TODO; - }; - "clips/create": { - req: TODO; - res: TODO; - }; - "clips/delete": { - req: { - clipId: Clip["id"]; - }; - res: null; - }; - "clips/list": { - req: TODO; - res: TODO; - }; - "clips/notes": { - req: TODO; - res: TODO; - }; - "clips/show": { - req: TODO; - res: TODO; - }; - "clips/update": { - req: TODO; - res: TODO; - }; - drive: { - req: NoParams; - res: { - capacity: number; - usage: number; - }; - }; - "drive/files": { - req: { - folderId?: DriveFolder["id"] | null; - type?: DriveFile["type"] | null; - limit?: number; - sinceId?: DriveFile["id"]; - untilId?: DriveFile["id"]; - }; - res: DriveFile[]; - }; - "drive/files/attached-notes": { - req: TODO; - res: TODO; - }; - "drive/files/check-existence": { - req: TODO; - res: TODO; - }; - "drive/files/create": { - req: TODO; - res: TODO; - }; - "drive/files/delete": { - req: { - fileId: DriveFile["id"]; - }; - res: null; - }; - "drive/files/find-by-hash": { - req: TODO; - res: TODO; - }; - "drive/files/find": { - req: { - name: string; - folderId?: DriveFolder["id"] | null; - }; - res: DriveFile[]; - }; - "drive/files/show": { - req: { - fileId?: DriveFile["id"]; - url?: string; - }; - res: DriveFile; - }; - "drive/files/update": { - req: { - fileId: DriveFile["id"]; - folderId?: DriveFolder["id"] | null; - name?: string; - isSensitive?: boolean; - comment?: string | null; - }; - res: DriveFile; - }; - "drive/files/upload-from-url": { - req: { - url: string; - folderId?: DriveFolder["id"] | null; - isSensitive?: boolean; - comment?: string | null; - marker?: string | null; - force?: boolean; - }; - res: null; - }; - "drive/folders": { - req: { - folderId?: DriveFolder["id"] | null; - limit?: number; - sinceId?: DriveFile["id"]; - untilId?: DriveFile["id"]; - }; - res: DriveFolder[]; - }; - "drive/folders/create": { - req: { - name?: string; - parentId?: DriveFolder["id"] | null; - }; - res: DriveFolder; - }; - "drive/folders/delete": { - req: { - folderId: DriveFolder["id"]; - }; - res: null; - }; - "drive/folders/find": { - req: { - name: string; - parentId?: DriveFolder["id"] | null; - }; - res: DriveFolder[]; - }; - "drive/folders/show": { - req: { - folderId: DriveFolder["id"]; - }; - res: DriveFolder; - }; - "drive/folders/update": { - req: { - folderId: DriveFolder["id"]; - name?: string; - parentId?: DriveFolder["id"] | null; - }; - res: DriveFolder; - }; - "drive/stream": { - req: { - type?: DriveFile["type"] | null; - limit?: number; - sinceId?: DriveFile["id"]; - untilId?: DriveFile["id"]; - }; - res: DriveFile[]; - }; - endpoint: { - req: { - endpoint: string; - }; - res: { - params: { - name: string; - type: string; - }[]; - }; - }; - endpoints: { - req: NoParams; - res: string[]; - }; - "federation/dns": { - req: { - host: string; - }; - res: { - a: string[]; - aaaa: string[]; - cname: string[]; - txt: string[]; - }; - }; - "federation/followers": { - req: { - host: string; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFolloweePopulated[]; - }; - "federation/following": { - req: { - host: string; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFolloweePopulated[]; - }; - "federation/instances": { - req: { - host?: string | null; - blocked?: boolean | null; - notResponding?: boolean | null; - suspended?: boolean | null; - federating?: boolean | null; - subscribing?: boolean | null; - publishing?: boolean | null; - limit?: number; - offset?: number; - sort?: - | "+pubSub" - | "-pubSub" - | "+notes" - | "-notes" - | "+users" - | "-users" - | "+following" - | "-following" - | "+followers" - | "-followers" - | "+caughtAt" - | "-caughtAt" - | "+lastCommunicatedAt" - | "-lastCommunicatedAt" - | "+driveUsage" - | "-driveUsage" - | "+driveFiles" - | "-driveFiles"; - }; - res: Instance[]; - }; - "federation/show-instance": { - req: { - host: string; - }; - res: Instance; - }; - "federation/update-remote-user": { - req: { - userId: User["id"]; - }; - res: null; - }; - "federation/users": { - req: { - host: string; - limit?: number; - sinceId?: User["id"]; - untilId?: User["id"]; - }; - res: UserDetailed[]; - }; - "following/create": { - req: { - userId: User["id"]; - }; - res: User; - }; - "following/delete": { - req: { - userId: User["id"]; - }; - res: User; - }; - "following/requests/accept": { - req: { - userId: User["id"]; - }; - res: null; - }; - "following/requests/cancel": { - req: { - userId: User["id"]; - }; - res: User; - }; - "following/requests/list": { - req: NoParams; - res: FollowRequest[]; - }; - "following/requests/reject": { - req: { - userId: User["id"]; - }; - res: null; - }; - "gallery/featured": { - req: TODO; - res: TODO; - }; - "gallery/popular": { - req: TODO; - res: TODO; - }; - "gallery/posts": { - req: TODO; - res: TODO; - }; - "gallery/posts/create": { - req: TODO; - res: TODO; - }; - "gallery/posts/delete": { - req: { - postId: GalleryPost["id"]; - }; - res: null; - }; - "gallery/posts/like": { - req: TODO; - res: TODO; - }; - "gallery/posts/show": { - req: TODO; - res: TODO; - }; - "gallery/posts/unlike": { - req: TODO; - res: TODO; - }; - "gallery/posts/update": { - req: TODO; - res: TODO; - }; - "games/reversi/games": { - req: TODO; - res: TODO; - }; - "games/reversi/games/show": { - req: TODO; - res: TODO; - }; - "games/reversi/games/surrender": { - req: TODO; - res: TODO; - }; - "games/reversi/invitations": { - req: TODO; - res: TODO; - }; - "games/reversi/match": { - req: TODO; - res: TODO; - }; - "games/reversi/match/cancel": { - req: TODO; - res: TODO; - }; - "get-online-users-count": { - req: NoParams; - res: { - count: number; - }; - }; - "hashtags/list": { - req: TODO; - res: TODO; - }; - "hashtags/search": { - req: TODO; - res: TODO; - }; - "hashtags/show": { - req: TODO; - res: TODO; - }; - "hashtags/trend": { - req: TODO; - res: TODO; - }; - "hashtags/users": { - req: TODO; - res: TODO; - }; - i: { - req: NoParams; - res: User; - }; - "i/apps": { - req: TODO; - res: TODO; - }; - "i/authorized-apps": { - req: TODO; - res: TODO; - }; - "i/change-password": { - req: TODO; - res: TODO; - }; - "i/delete-account": { - req: { - password: string; - }; - res: null; - }; - "i/export-blocking": { - req: TODO; - res: TODO; - }; - "i/export-following": { - req: TODO; - res: TODO; - }; - "i/export-mute": { - req: TODO; - res: TODO; - }; - "i/export-notes": { - req: TODO; - res: TODO; - }; - "i/export-user-lists": { - req: TODO; - res: TODO; - }; - "i/favorites": { - req: { - limit?: number; - sinceId?: NoteFavorite["id"]; - untilId?: NoteFavorite["id"]; - }; - res: NoteFavorite[]; - }; - "i/gallery/likes": { - req: TODO; - res: TODO; - }; - "i/gallery/posts": { - req: TODO; - res: TODO; - }; - "i/get-word-muted-notes-count": { - req: TODO; - res: TODO; - }; - "i/import-following": { - req: TODO; - res: TODO; - }; - "i/import-user-lists": { - req: TODO; - res: TODO; - }; - "i/move": { - req: TODO; - res: TODO; - }; - "i/known-as": { - req: TODO; - res: TODO; - }; - "i/notifications": { - req: { - limit?: number; - sinceId?: Notification["id"]; - untilId?: Notification["id"]; - following?: boolean; - markAsRead?: boolean; - includeTypes?: Notification["type"][]; - excludeTypes?: Notification["type"][]; - }; - res: Notification[]; - }; - "i/page-likes": { - req: TODO; - res: TODO; - }; - "i/pages": { - req: TODO; - res: TODO; - }; - "i/pin": { - req: { - noteId: Note["id"]; - }; - res: MeDetailed; - }; - "i/read-all-messaging-messages": { - req: TODO; - res: TODO; - }; - "i/read-all-unread-notes": { - req: TODO; - res: TODO; - }; - "i/read-announcement": { - req: TODO; - res: TODO; - }; - "i/regenerate-token": { - req: { - password: string; - }; - res: null; - }; - "i/registry/get-all": { - req: { - scope?: string[]; - }; - res: Record; - }; - "i/registry/get-detail": { - req: { - key: string; - scope?: string[]; - }; - res: { - updatedAt: DateString; - value: any; - }; - }; - "i/registry/get": { - req: { - key: string; - scope?: string[]; - }; - res: any; - }; - "i/registry/keys-with-type": { - req: { - scope?: string[]; - }; - res: Record< - string, - "null" | "array" | "number" | "string" | "boolean" | "object" - >; - }; - "i/registry/keys": { - req: { - scope?: string[]; - }; - res: string[]; - }; - "i/registry/remove": { - req: { - key: string; - scope?: string[]; - }; - res: null; - }; - "i/registry/scopes": { - req: NoParams; - res: string[][]; - }; - "i/registry/set": { - req: { - key: string; - value: any; - scope?: string[]; - }; - res: null; - }; - "i/revoke-token": { - req: TODO; - res: TODO; - }; - "i/signin-history": { - req: { - limit?: number; - sinceId?: Signin["id"]; - untilId?: Signin["id"]; - }; - res: Signin[]; - }; - "i/unpin": { - req: { - noteId: Note["id"]; - }; - res: MeDetailed; - }; - "i/update-email": { - req: { - password: string; - email?: string | null; - }; - res: MeDetailed; - }; - "i/update": { - req: { - name?: string | null; - description?: string | null; - lang?: string | null; - location?: string | null; - birthday?: string | null; - avatarId?: DriveFile["id"] | null; - bannerId?: DriveFile["id"] | null; - fields?: { - name: string; - value: string; - }[]; - isLocked?: boolean; - isExplorable?: boolean; - hideOnlineStatus?: boolean; - carefulBot?: boolean; - autoAcceptFollowed?: boolean; - noCrawle?: boolean; - preventAiLearning?: boolean; - isBot?: boolean; - isCat?: boolean; - injectFeaturedNote?: boolean; - receiveAnnouncementEmail?: boolean; - alwaysMarkNsfw?: boolean; - mutedWords?: string[][]; - mutingNotificationTypes?: Notification["type"][]; - emailNotificationTypes?: string[]; - }; - res: MeDetailed; - }; - "i/user-group-invites": { - req: TODO; - res: TODO; - }; - "i/2fa/done": { - req: TODO; - res: TODO; - }; - "i/2fa/key-done": { - req: TODO; - res: TODO; - }; - "i/2fa/password-less": { - req: TODO; - res: TODO; - }; - "i/2fa/register-key": { - req: TODO; - res: TODO; - }; - "i/2fa/register": { - req: TODO; - res: TODO; - }; - "i/2fa/update-key": { - req: TODO; - res: TODO; - }; - "i/2fa/remove-key": { - req: TODO; - res: TODO; - }; - "i/2fa/unregister": { - req: TODO; - res: TODO; - }; - "messaging/history": { - req: { - limit?: number; - group?: boolean; - }; - res: MessagingMessage[]; - }; - "messaging/messages": { - req: { - userId?: User["id"]; - groupId?: UserGroup["id"]; - limit?: number; - sinceId?: MessagingMessage["id"]; - untilId?: MessagingMessage["id"]; - markAsRead?: boolean; - }; - res: MessagingMessage[]; - }; - "messaging/messages/create": { - req: { - userId?: User["id"]; - groupId?: UserGroup["id"]; - text?: string; - fileId?: DriveFile["id"]; - }; - res: MessagingMessage; - }; - "messaging/messages/delete": { - req: { - messageId: MessagingMessage["id"]; - }; - res: null; - }; - "messaging/messages/read": { - req: { - messageId: MessagingMessage["id"]; - }; - res: null; - }; - meta: { - req: { - detail?: boolean; - }; - res: { - $switch: { - $cases: [ - [ - { - detail: true; - }, - DetailedInstanceMetadata, - ], - [ - { - detail: false; - }, - LiteInstanceMetadata, - ], - [ - { - detail: boolean; - }, - LiteInstanceMetadata | DetailedInstanceMetadata, - ], - ]; - $default: LiteInstanceMetadata; - }; - }; - }; - "miauth/gen-token": { - req: TODO; - res: TODO; - }; - "mute/create": { - req: TODO; - res: TODO; - }; - "mute/delete": { - req: { - userId: User["id"]; - }; - res: null; - }; - "mute/list": { - req: TODO; - res: TODO; - }; - "renote-mute/create": { - req: TODO; - res: TODO; - }; - "renote-mute/delete": { - req: { - userId: User["id"]; - }; - res: null; - }; - "renote-mute/list": { - req: TODO; - res: TODO; - }; - "my/apps": { - req: TODO; - res: TODO; - }; - notes: { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "notes/children": { - req: { - noteId: Note["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "notes/clips": { - req: TODO; - res: TODO; - }; - "notes/conversation": { - req: TODO; - res: TODO; - }; - "notes/create": { - req: NoteSubmitReq; - res: { - createdNote: Note; - }; - }; - "notes/delete": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/edit": { - req: NoteSubmitReq; - res: { - createdNote: Note; - }; - }; - "notes/favorites/create": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/favorites/delete": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/featured": { - req: TODO; - res: Note[]; - }; - "notes/global-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/recommended-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/hybrid-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/local-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/mentions": { - req: { - following?: boolean; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "notes/polls/recommendation": { - req: TODO; - res: TODO; - }; - "notes/polls/vote": { - req: { - noteId: Note["id"]; - choice: number; - }; - res: null; - }; - "notes/reactions": { - req: { - noteId: Note["id"]; - type?: string | null; - limit?: number; - }; - res: NoteReaction[]; - }; - "notes/reactions/create": { - req: { - noteId: Note["id"]; - reaction: string; - }; - res: null; - }; - "notes/reactions/delete": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/renotes": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - noteId: Note["id"]; - }; - res: Note[]; - }; - "notes/replies": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - noteId: Note["id"]; - }; - res: Note[]; - }; - "notes/search-by-tag": { - req: TODO; - res: TODO; - }; - "notes/search": { - req: TODO; - res: TODO; - }; - "notes/show": { - req: { - noteId: Note["id"]; - }; - res: Note; - }; - "notes/state": { - req: TODO; - res: TODO; - }; - "notes/timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/unrenote": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notes/user-list-timeline": { - req: { - listId: UserList["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/watching/create": { - req: TODO; - res: TODO; - }; - "notes/watching/delete": { - req: { - noteId: Note["id"]; - }; - res: null; - }; - "notifications/create": { - req: { - body: string; - header?: string | null; - icon?: string | null; - }; - res: null; - }; - "notifications/mark-all-as-read": { - req: NoParams; - res: null; - }; - "notifications/read": { - req: { - notificationId: Notification["id"]; - }; - res: null; - }; - "page-push": { - req: { - pageId: Page["id"]; - event: string; - var?: any; - }; - res: null; - }; - "pages/create": { - req: TODO; - res: Page; - }; - "pages/delete": { - req: { - pageId: Page["id"]; - }; - res: null; - }; - "pages/featured": { - req: NoParams; - res: Page[]; - }; - "pages/like": { - req: { - pageId: Page["id"]; - }; - res: null; - }; - "pages/show": { - req: { - pageId?: Page["id"]; - name?: string; - username?: string; - }; - res: Page; - }; - "pages/unlike": { - req: { - pageId: Page["id"]; - }; - res: null; - }; - "pages/update": { - req: TODO; - res: null; - }; - ping: { - req: NoParams; - res: { - pong: number; - }; - }; - "pinned-users": { - req: TODO; - res: TODO; - }; - "promo/read": { - req: TODO; - res: TODO; - }; - "request-reset-password": { - req: { - username: string; - email: string; - }; - res: null; - }; - "reset-password": { - req: { - token: string; - password: string; - }; - res: null; - }; - "room/show": { - req: TODO; - res: TODO; - }; - "room/update": { - req: TODO; - res: TODO; - }; - stats: { - req: NoParams; - res: Stats; - }; - "server-info": { - req: NoParams; - res: ServerInfo; - }; - "latest-version": { - req: NoParams; - res: TODO; - }; - "sw/register": { - req: TODO; - res: TODO; - }; - "username/available": { - req: { - username: string; - }; - res: { - available: boolean; - }; - }; - users: { - req: { - limit?: number; - offset?: number; - sort?: UserSorting; - origin?: OriginType; - }; - res: User[]; - }; - "users/clips": { - req: TODO; - res: TODO; - }; - "users/followers": { - req: { - userId?: User["id"]; - username?: User["username"]; - host?: User["host"] | null; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFollowerPopulated[]; - }; - "users/following": { - req: { - userId?: User["id"]; - username?: User["username"]; - host?: User["host"] | null; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFolloweePopulated[]; - }; - "users/gallery/posts": { - req: TODO; - res: TODO; - }; - "users/get-frequently-replied-users": { - req: TODO; - res: TODO; - }; - "users/groups/create": { - req: TODO; - res: TODO; - }; - "users/groups/delete": { - req: { - groupId: UserGroup["id"]; - }; - res: null; - }; - "users/groups/invitations/accept": { - req: TODO; - res: TODO; - }; - "users/groups/invitations/reject": { - req: TODO; - res: TODO; - }; - "users/groups/invite": { - req: TODO; - res: TODO; - }; - "users/groups/joined": { - req: TODO; - res: TODO; - }; - "users/groups/owned": { - req: TODO; - res: TODO; - }; - "users/groups/pull": { - req: TODO; - res: TODO; - }; - "users/groups/show": { - req: TODO; - res: TODO; - }; - "users/groups/transfer": { - req: TODO; - res: TODO; - }; - "users/groups/update": { - req: TODO; - res: TODO; - }; - "users/lists/create": { - req: { - name: string; - }; - res: UserList; - }; - "users/lists/delete": { - req: { - listId: UserList["id"]; - }; - res: null; - }; - "users/lists/list": { - req: NoParams; - res: UserList[]; - }; - "users/lists/pull": { - req: { - listId: UserList["id"]; - userId: User["id"]; - }; - res: null; - }; - "users/lists/push": { - req: { - listId: UserList["id"]; - userId: User["id"]; - }; - res: null; - }; - "users/lists/show": { - req: { - listId: UserList["id"]; - }; - res: UserList; - }; - "users/lists/update": { - req: { - listId: UserList["id"]; - name: string; - }; - res: UserList; - }; - "users/notes": { - req: { - userId: User["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "users/pages": { - req: TODO; - res: TODO; - }; - "users/recommendation": { - req: TODO; - res: TODO; - }; - "users/relation": { - req: TODO; - res: TODO; - }; - "users/report-abuse": { - req: TODO; - res: TODO; - }; - "users/search-by-username-and-host": { - req: TODO; - res: TODO; - }; - "users/search": { - req: TODO; - res: TODO; - }; - "users/show": { - req: - | ShowUserReq - | { - userIds: User["id"][]; - }; - res: { - $switch: { - $cases: [ - [ - { - userIds: User["id"][]; - }, - UserDetailed[], - ], - ]; - $default: UserDetailed; - }; - }; - }; - "users/stats": { - req: TODO; - res: TODO; - }; -}; -``` -**References:** [User](./calckey-js.entities.user.md), [Ad](./calckey-js.entities.ad.md), [Announcement](./calckey-js.entities.announcement.md), [Antenna](./calckey-js.entities.antenna.md), [Note](./calckey-js.entities.note.md), [UserDetailed](./calckey-js.entities.userdetailed.md), [App](./calckey-js.entities.app.md), [AuthSession](./calckey-js.entities.authsession.md), [Blocking](./calckey-js.entities.blocking.md), [Clip](./calckey-js.entities.clip.md), [DriveFolder](./calckey-js.entities.drivefolder.md), [DriveFile](./calckey-js.entities.drivefile.md), [Following](./calckey-js.entities.following.md), [FollowingFolloweePopulated](./calckey-js.entities.followingfolloweepopulated.md), [Instance](./calckey-js.entities.instance.md), [FollowRequest](./calckey-js.entities.followrequest.md), [GalleryPost](./calckey-js.entities.gallerypost.md), [NoteFavorite](./calckey-js.entities.notefavorite.md), [MeDetailed](./calckey-js.entities.medetailed.md), [DateString](./calckey-js.entities.datestring.md), [Signin](./calckey-js.entities.signin.md), [MessagingMessage](./calckey-js.entities.messagingmessage.md), [UserGroup](./calckey-js.entities.usergroup.md), [DetailedInstanceMetadata](./calckey-js.entities.detailedinstancemetadata.md), [LiteInstanceMetadata](./calckey-js.entities.liteinstancemetadata.md), [NoteReaction](./calckey-js.entities.notereaction.md), [UserList](./calckey-js.entities.userlist.md), [Page](./calckey-js.entities.page.md), [Stats](./calckey-js.entities.stats.md), [ServerInfo](./calckey-js.entities.serverinfo.md), [UserSorting](./calckey-js.entities.usersorting.md), [OriginType](./calckey-js.entities.origintype.md), [FollowingFollowerPopulated](./calckey-js.entities.followingfollowerpopulated.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.ad.md b/packages/calckey-js/markdown/calckey-js.entities.ad.md deleted file mode 100644 index 83bc86e489..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.ad.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Ad](./calckey-js.entities.ad.md) - -## entities.Ad type - -**Signature:** - -```typescript -export declare type Ad = TODO; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.announcement.md b/packages/calckey-js/markdown/calckey-js.entities.announcement.md deleted file mode 100644 index 09d572a584..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.announcement.md +++ /dev/null @@ -1,21 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Announcement](./calckey-js.entities.announcement.md) - -## entities.Announcement type - -**Signature:** - -```typescript -export declare type Announcement = { - id: ID; - createdAt: DateString; - updatedAt: DateString | null; - text: string; - title: string; - imageUrl: string | null; - isRead?: boolean; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.antenna.md b/packages/calckey-js/markdown/calckey-js.entities.antenna.md deleted file mode 100644 index 7f05d15a82..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.antenna.md +++ /dev/null @@ -1,29 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Antenna](./calckey-js.entities.antenna.md) - -## entities.Antenna type - -**Signature:** - -```typescript -export declare type Antenna = { - id: ID; - createdAt: DateString; - name: string; - keywords: string[][]; - excludeKeywords: string[][]; - src: "home" | "all" | "users" | "list" | "group" | "instances"; - userListId: ID | null; - userGroupId: ID | null; - users: string[]; - instances: string[]; - caseSensitive: boolean; - notify: boolean; - withReplies: boolean; - withFile: boolean; - hasUnreadNote: boolean; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.app.md b/packages/calckey-js/markdown/calckey-js.entities.app.md deleted file mode 100644 index 4f31281e37..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.app.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [App](./calckey-js.entities.app.md) - -## entities.App type - -**Signature:** - -```typescript -export declare type App = TODO; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.authsession.md b/packages/calckey-js/markdown/calckey-js.entities.authsession.md deleted file mode 100644 index 36ff409649..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.authsession.md +++ /dev/null @@ -1,17 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [AuthSession](./calckey-js.entities.authsession.md) - -## entities.AuthSession type - -**Signature:** - -```typescript -export declare type AuthSession = { - id: ID; - app: App; - token: string; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [App](./calckey-js.entities.app.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.blocking.md b/packages/calckey-js/markdown/calckey-js.entities.blocking.md deleted file mode 100644 index 6769b6475f..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.blocking.md +++ /dev/null @@ -1,18 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Blocking](./calckey-js.entities.blocking.md) - -## entities.Blocking type - -**Signature:** - -```typescript -export declare type Blocking = { - id: ID; - createdAt: DateString; - blockeeId: User["id"]; - blockee: UserDetailed; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md), [User](./calckey-js.entities.user.md), [UserDetailed](./calckey-js.entities.userdetailed.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.channel.md b/packages/calckey-js/markdown/calckey-js.entities.channel.md deleted file mode 100644 index 6f7d5f3b8f..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.channel.md +++ /dev/null @@ -1,15 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Channel](./calckey-js.entities.channel.md) - -## entities.Channel type - -**Signature:** - -```typescript -export declare type Channel = { - id: ID; -}; -``` -**References:** [ID](./calckey-js.entities.id.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.clip.md b/packages/calckey-js/markdown/calckey-js.entities.clip.md deleted file mode 100644 index 69607fb497..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.clip.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Clip](./calckey-js.entities.clip.md) - -## entities.Clip type - -**Signature:** - -```typescript -export declare type Clip = TODO; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.customemoji.md b/packages/calckey-js/markdown/calckey-js.entities.customemoji.md deleted file mode 100644 index 834eb0ec22..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.customemoji.md +++ /dev/null @@ -1,17 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [CustomEmoji](./calckey-js.entities.customemoji.md) - -## entities.CustomEmoji type - -**Signature:** - -```typescript -export declare type CustomEmoji = { - id: string; - name: string; - url: string; - category: string; - aliases: string[]; -}; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.datestring.md b/packages/calckey-js/markdown/calckey-js.entities.datestring.md deleted file mode 100644 index 20204330cb..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.datestring.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [DateString](./calckey-js.entities.datestring.md) - -## entities.DateString type - -**Signature:** - -```typescript -export declare type DateString = string; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.detailedinstancemetadata.md b/packages/calckey-js/markdown/calckey-js.entities.detailedinstancemetadata.md deleted file mode 100644 index 920e0bca94..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.detailedinstancemetadata.md +++ /dev/null @@ -1,15 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [DetailedInstanceMetadata](./calckey-js.entities.detailedinstancemetadata.md) - -## entities.DetailedInstanceMetadata type - -**Signature:** - -```typescript -export declare type DetailedInstanceMetadata = LiteInstanceMetadata & { - features: Record; -}; -``` -**References:** [LiteInstanceMetadata](./calckey-js.entities.liteinstancemetadata.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.drivefile.md b/packages/calckey-js/markdown/calckey-js.entities.drivefile.md deleted file mode 100644 index eec361a9b8..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.drivefile.md +++ /dev/null @@ -1,26 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [DriveFile](./calckey-js.entities.drivefile.md) - -## entities.DriveFile type - -**Signature:** - -```typescript -export declare type DriveFile = { - id: ID; - createdAt: DateString; - isSensitive: boolean; - name: string; - thumbnailUrl: string; - url: string; - type: string; - size: number; - md5: string; - blurhash: string; - comment: string | null; - properties: Record; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.drivefolder.md b/packages/calckey-js/markdown/calckey-js.entities.drivefolder.md deleted file mode 100644 index 4d8c68e8bb..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.drivefolder.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [DriveFolder](./calckey-js.entities.drivefolder.md) - -## entities.DriveFolder type - -**Signature:** - -```typescript -export declare type DriveFolder = TODO; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.following.md b/packages/calckey-js/markdown/calckey-js.entities.following.md deleted file mode 100644 index 2c495d2fea..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.following.md +++ /dev/null @@ -1,18 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Following](./calckey-js.entities.following.md) - -## entities.Following type - -**Signature:** - -```typescript -export declare type Following = { - id: ID; - createdAt: DateString; - followerId: User["id"]; - followeeId: User["id"]; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md), [User](./calckey-js.entities.user.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.followingfolloweepopulated.md b/packages/calckey-js/markdown/calckey-js.entities.followingfolloweepopulated.md deleted file mode 100644 index f0000326a8..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.followingfolloweepopulated.md +++ /dev/null @@ -1,15 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [FollowingFolloweePopulated](./calckey-js.entities.followingfolloweepopulated.md) - -## entities.FollowingFolloweePopulated type - -**Signature:** - -```typescript -export declare type FollowingFolloweePopulated = Following & { - followee: UserDetailed; -}; -``` -**References:** [Following](./calckey-js.entities.following.md), [UserDetailed](./calckey-js.entities.userdetailed.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.followingfollowerpopulated.md b/packages/calckey-js/markdown/calckey-js.entities.followingfollowerpopulated.md deleted file mode 100644 index 6f9860af8c..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.followingfollowerpopulated.md +++ /dev/null @@ -1,15 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [FollowingFollowerPopulated](./calckey-js.entities.followingfollowerpopulated.md) - -## entities.FollowingFollowerPopulated type - -**Signature:** - -```typescript -export declare type FollowingFollowerPopulated = Following & { - follower: UserDetailed; -}; -``` -**References:** [Following](./calckey-js.entities.following.md), [UserDetailed](./calckey-js.entities.userdetailed.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.followrequest.md b/packages/calckey-js/markdown/calckey-js.entities.followrequest.md deleted file mode 100644 index d7ff6bbef2..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.followrequest.md +++ /dev/null @@ -1,17 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [FollowRequest](./calckey-js.entities.followrequest.md) - -## entities.FollowRequest type - -**Signature:** - -```typescript -export declare type FollowRequest = { - id: ID; - follower: User; - followee: User; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [User](./calckey-js.entities.user.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.gallerypost.md b/packages/calckey-js/markdown/calckey-js.entities.gallerypost.md deleted file mode 100644 index a079955a91..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.gallerypost.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [GalleryPost](./calckey-js.entities.gallerypost.md) - -## entities.GalleryPost type - -**Signature:** - -```typescript -export declare type GalleryPost = TODO; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.id.md b/packages/calckey-js/markdown/calckey-js.entities.id.md deleted file mode 100644 index bf6e7f2911..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.id.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [ID](./calckey-js.entities.id.md) - -## entities.ID type - -**Signature:** - -```typescript -export declare type ID = string; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.instance.md b/packages/calckey-js/markdown/calckey-js.entities.instance.md deleted file mode 100644 index 7e0fb6cc6c..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.instance.md +++ /dev/null @@ -1,40 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Instance](./calckey-js.entities.instance.md) - -## entities.Instance type - -**Signature:** - -```typescript -export declare type Instance = { - id: ID; - caughtAt: DateString; - host: string; - usersCount: number; - notesCount: number; - followingCount: number; - followersCount: number; - driveUsage: number; - driveFiles: number; - latestRequestSentAt: DateString | null; - latestStatus: number | null; - latestRequestReceivedAt: DateString | null; - lastCommunicatedAt: DateString; - isNotResponding: boolean; - isSuspended: boolean; - softwareName: string | null; - softwareVersion: string | null; - openRegistrations: boolean | null; - name: string | null; - description: string | null; - maintainerName: string | null; - maintainerEmail: string | null; - iconUrl: string | null; - faviconUrl: string | null; - themeColor: string | null; - infoUpdatedAt: DateString | null; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.instancemetadata.md b/packages/calckey-js/markdown/calckey-js.entities.instancemetadata.md deleted file mode 100644 index 54e399e4ee..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.instancemetadata.md +++ /dev/null @@ -1,15 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [InstanceMetadata](./calckey-js.entities.instancemetadata.md) - -## entities.InstanceMetadata type - -**Signature:** - -```typescript -export declare type InstanceMetadata = - | LiteInstanceMetadata - | DetailedInstanceMetadata; -``` -**References:** [LiteInstanceMetadata](./calckey-js.entities.liteinstancemetadata.md), [DetailedInstanceMetadata](./calckey-js.entities.detailedinstancemetadata.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.liteinstancemetadata.md b/packages/calckey-js/markdown/calckey-js.entities.liteinstancemetadata.md deleted file mode 100644 index 51d21efcc9..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.liteinstancemetadata.md +++ /dev/null @@ -1,46 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [LiteInstanceMetadata](./calckey-js.entities.liteinstancemetadata.md) - -## entities.LiteInstanceMetadata type - -**Signature:** - -```typescript -export declare type LiteInstanceMetadata = { - maintainerName: string | null; - maintainerEmail: string | null; - version: string; - name: string | null; - uri: string; - description: string | null; - tosUrl: string | null; - disableRegistration: boolean; - disableLocalTimeline: boolean; - disableRecommendedTimeline: boolean; - disableGlobalTimeline: boolean; - driveCapacityPerLocalUserMb: number; - driveCapacityPerRemoteUserMb: number; - enableHcaptcha: boolean; - hcaptchaSiteKey: string | null; - enableRecaptcha: boolean; - recaptchaSiteKey: string | null; - swPublickey: string | null; - maxNoteTextLength: number; - enableEmail: boolean; - enableTwitterIntegration: boolean; - enableGithubIntegration: boolean; - enableDiscordIntegration: boolean; - enableServiceWorker: boolean; - emojis: CustomEmoji[]; - ads: { - id: ID; - ratio: number; - place: string; - url: string; - imageUrl: string; - }[]; -}; -``` -**References:** [CustomEmoji](./calckey-js.entities.customemoji.md), [ID](./calckey-js.entities.id.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.md b/packages/calckey-js/markdown/calckey-js.entities.md deleted file mode 100644 index a909f1f36a..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.md +++ /dev/null @@ -1,51 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) - -## entities namespace - -## Type Aliases - -| Type Alias | Description | -| --- | --- | -| [Ad](./calckey-js.entities.ad.md) | | -| [Announcement](./calckey-js.entities.announcement.md) | | -| [Antenna](./calckey-js.entities.antenna.md) | | -| [App](./calckey-js.entities.app.md) | | -| [AuthSession](./calckey-js.entities.authsession.md) | | -| [Blocking](./calckey-js.entities.blocking.md) | | -| [Channel](./calckey-js.entities.channel.md) | | -| [Clip](./calckey-js.entities.clip.md) | | -| [CustomEmoji](./calckey-js.entities.customemoji.md) | | -| [DateString](./calckey-js.entities.datestring.md) | | -| [DetailedInstanceMetadata](./calckey-js.entities.detailedinstancemetadata.md) | | -| [DriveFile](./calckey-js.entities.drivefile.md) | | -| [DriveFolder](./calckey-js.entities.drivefolder.md) | | -| [Following](./calckey-js.entities.following.md) | | -| [FollowingFolloweePopulated](./calckey-js.entities.followingfolloweepopulated.md) | | -| [FollowingFollowerPopulated](./calckey-js.entities.followingfollowerpopulated.md) | | -| [FollowRequest](./calckey-js.entities.followrequest.md) | | -| [GalleryPost](./calckey-js.entities.gallerypost.md) | | -| [ID](./calckey-js.entities.id.md) | | -| [Instance](./calckey-js.entities.instance.md) | | -| [InstanceMetadata](./calckey-js.entities.instancemetadata.md) | | -| [LiteInstanceMetadata](./calckey-js.entities.liteinstancemetadata.md) | | -| [MeDetailed](./calckey-js.entities.medetailed.md) | | -| [MessagingMessage](./calckey-js.entities.messagingmessage.md) | | -| [Note](./calckey-js.entities.note.md) | | -| [NoteFavorite](./calckey-js.entities.notefavorite.md) | | -| [NoteReaction](./calckey-js.entities.notereaction.md) | | -| [Notification](./calckey-js.entities.notification.md) | | -| [OriginType](./calckey-js.entities.origintype.md) | | -| [Page](./calckey-js.entities.page.md) | | -| [PageEvent](./calckey-js.entities.pageevent.md) | | -| [ServerInfo](./calckey-js.entities.serverinfo.md) | | -| [Signin](./calckey-js.entities.signin.md) | | -| [Stats](./calckey-js.entities.stats.md) | | -| [User](./calckey-js.entities.user.md) | | -| [UserDetailed](./calckey-js.entities.userdetailed.md) | | -| [UserGroup](./calckey-js.entities.usergroup.md) | | -| [UserList](./calckey-js.entities.userlist.md) | | -| [UserLite](./calckey-js.entities.userlite.md) | | -| [UserSorting](./calckey-js.entities.usersorting.md) | | - diff --git a/packages/calckey-js/markdown/calckey-js.entities.medetailed.md b/packages/calckey-js/markdown/calckey-js.entities.medetailed.md deleted file mode 100644 index 625722acbe..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.medetailed.md +++ /dev/null @@ -1,40 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [MeDetailed](./calckey-js.entities.medetailed.md) - -## entities.MeDetailed type - -**Signature:** - -```typescript -export declare type MeDetailed = UserDetailed & { - avatarId: DriveFile["id"]; - bannerId: DriveFile["id"]; - autoAcceptFollowed: boolean; - alwaysMarkNsfw: boolean; - carefulBot: boolean; - emailNotificationTypes: string[]; - hasPendingReceivedFollowRequest: boolean; - hasUnreadAnnouncement: boolean; - hasUnreadAntenna: boolean; - hasUnreadChannel: boolean; - hasUnreadMentions: boolean; - hasUnreadMessagingMessage: boolean; - hasUnreadNotification: boolean; - hasUnreadSpecifiedNotes: boolean; - hideOnlineStatus: boolean; - injectFeaturedNote: boolean; - integrations: Record; - isDeleted: boolean; - isExplorable: boolean; - mutedWords: string[][]; - mutingNotificationTypes: string[]; - noCrawle: boolean; - preventAiLearning: boolean; - receiveAnnouncementEmail: boolean; - usePasswordLessLogin: boolean; - [other: string]: any; -}; -``` -**References:** [UserDetailed](./calckey-js.entities.userdetailed.md), [DriveFile](./calckey-js.entities.drivefile.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.messagingmessage.md b/packages/calckey-js/markdown/calckey-js.entities.messagingmessage.md deleted file mode 100644 index ab810b79a4..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.messagingmessage.md +++ /dev/null @@ -1,27 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [MessagingMessage](./calckey-js.entities.messagingmessage.md) - -## entities.MessagingMessage type - -**Signature:** - -```typescript -export declare type MessagingMessage = { - id: ID; - createdAt: DateString; - file: DriveFile | null; - fileId: DriveFile["id"] | null; - isRead: boolean; - reads: User["id"][]; - text: string | null; - user: User; - userId: User["id"]; - recipient?: User | null; - recipientId: User["id"] | null; - group?: UserGroup | null; - groupId: UserGroup["id"] | null; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md), [DriveFile](./calckey-js.entities.drivefile.md), [User](./calckey-js.entities.user.md), [UserGroup](./calckey-js.entities.usergroup.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.note.md b/packages/calckey-js/markdown/calckey-js.entities.note.md deleted file mode 100644 index c648a7d053..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.note.md +++ /dev/null @@ -1,51 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Note](./calckey-js.entities.note.md) - -## entities.Note type - -**Signature:** - -```typescript -export declare type Note = { - id: ID; - createdAt: DateString; - text: string | null; - cw: string | null; - user: User; - userId: User["id"]; - reply?: Note; - replyId: Note["id"]; - renote?: Note; - renoteId: Note["id"]; - files: DriveFile[]; - fileIds: DriveFile["id"][]; - visibility: "public" | "home" | "followers" | "specified"; - visibleUserIds?: User["id"][]; - localOnly?: boolean; - channel?: Channel["id"]; - myReaction?: string; - reactions: Record; - renoteCount: number; - repliesCount: number; - poll?: { - expiresAt: DateString | null; - multiple: boolean; - choices: { - isVoted: boolean; - text: string; - votes: number; - }[]; - }; - emojis: { - name: string; - url: string; - }[]; - uri?: string; - url?: string; - updatedAt?: DateString; - isHidden?: boolean; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md), [User](./calckey-js.entities.user.md), [Note](./calckey-js.entities.note.md), [DriveFile](./calckey-js.entities.drivefile.md), [Channel](./calckey-js.entities.channel.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.notefavorite.md b/packages/calckey-js/markdown/calckey-js.entities.notefavorite.md deleted file mode 100644 index e61a826915..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.notefavorite.md +++ /dev/null @@ -1,18 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [NoteFavorite](./calckey-js.entities.notefavorite.md) - -## entities.NoteFavorite type - -**Signature:** - -```typescript -export declare type NoteFavorite = { - id: ID; - createdAt: DateString; - noteId: Note["id"]; - note: Note; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md), [Note](./calckey-js.entities.note.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.notereaction.md b/packages/calckey-js/markdown/calckey-js.entities.notereaction.md deleted file mode 100644 index c458b9ae73..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.notereaction.md +++ /dev/null @@ -1,18 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [NoteReaction](./calckey-js.entities.notereaction.md) - -## entities.NoteReaction type - -**Signature:** - -```typescript -export declare type NoteReaction = { - id: ID; - createdAt: DateString; - user: UserLite; - type: string; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md), [UserLite](./calckey-js.entities.userlite.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.notification.md b/packages/calckey-js/markdown/calckey-js.entities.notification.md deleted file mode 100644 index 9d8af4dff5..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.notification.md +++ /dev/null @@ -1,82 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Notification](./calckey-js.entities.notification.md) - -## entities.Notification type - -**Signature:** - -```typescript -export declare type Notification = { - id: ID; - createdAt: DateString; - isRead: boolean; -} & ( - | { - type: "reaction"; - reaction: string; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "reply"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "renote"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "quote"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "mention"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "pollVote"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "follow"; - user: User; - userId: User["id"]; - } - | { - type: "followRequestAccepted"; - user: User; - userId: User["id"]; - } - | { - type: "receiveFollowRequest"; - user: User; - userId: User["id"]; - } - | { - type: "groupInvited"; - invitation: UserGroup; - user: User; - userId: User["id"]; - } - | { - type: "app"; - header?: string | null; - body: string; - icon?: string | null; - } -); -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md), [User](./calckey-js.entities.user.md), [Note](./calckey-js.entities.note.md), [UserGroup](./calckey-js.entities.usergroup.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.origintype.md b/packages/calckey-js/markdown/calckey-js.entities.origintype.md deleted file mode 100644 index f00c0b915b..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.origintype.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [OriginType](./calckey-js.entities.origintype.md) - -## entities.OriginType type - -**Signature:** - -```typescript -export declare type OriginType = "combined" | "local" | "remote"; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.page.md b/packages/calckey-js/markdown/calckey-js.entities.page.md deleted file mode 100644 index 3a24e45120..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.page.md +++ /dev/null @@ -1,33 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Page](./calckey-js.entities.page.md) - -## entities.Page type - -**Signature:** - -```typescript -export declare type Page = { - id: ID; - createdAt: DateString; - updatedAt: DateString; - userId: User["id"]; - user: User; - content: Record[]; - variables: Record[]; - title: string; - name: string; - summary: string | null; - hideTitleWhenPinned: boolean; - alignCenter: boolean; - font: string; - script: string; - eyeCatchingImageId: DriveFile["id"] | null; - eyeCatchingImage: DriveFile | null; - attachedFiles: any; - likedCount: number; - isLiked?: boolean; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md), [User](./calckey-js.entities.user.md), [DriveFile](./calckey-js.entities.drivefile.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.pageevent.md b/packages/calckey-js/markdown/calckey-js.entities.pageevent.md deleted file mode 100644 index f3cba25919..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.pageevent.md +++ /dev/null @@ -1,19 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [PageEvent](./calckey-js.entities.pageevent.md) - -## entities.PageEvent type - -**Signature:** - -```typescript -export declare type PageEvent = { - pageId: Page["id"]; - event: string; - var: any; - userId: User["id"]; - user: User; -}; -``` -**References:** [Page](./calckey-js.entities.page.md), [User](./calckey-js.entities.user.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.serverinfo.md b/packages/calckey-js/markdown/calckey-js.entities.serverinfo.md deleted file mode 100644 index 9c2aadedc1..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.serverinfo.md +++ /dev/null @@ -1,24 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [ServerInfo](./calckey-js.entities.serverinfo.md) - -## entities.ServerInfo type - -**Signature:** - -```typescript -export declare type ServerInfo = { - machine: string; - cpu: { - model: string; - cores: number; - }; - mem: { - total: number; - }; - fs: { - total: number; - used: number; - }; -}; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.signin.md b/packages/calckey-js/markdown/calckey-js.entities.signin.md deleted file mode 100644 index 56d7f26ad3..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.signin.md +++ /dev/null @@ -1,19 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Signin](./calckey-js.entities.signin.md) - -## entities.Signin type - -**Signature:** - -```typescript -export declare type Signin = { - id: ID; - createdAt: DateString; - ip: string; - headers: Record; - success: boolean; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.stats.md b/packages/calckey-js/markdown/calckey-js.entities.stats.md deleted file mode 100644 index 1067e1a27d..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.stats.md +++ /dev/null @@ -1,19 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Stats](./calckey-js.entities.stats.md) - -## entities.Stats type - -**Signature:** - -```typescript -export declare type Stats = { - notesCount: number; - originalNotesCount: number; - usersCount: number; - originalUsersCount: number; - instances: number; - driveUsageLocal: number; - driveUsageRemote: number; -}; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.user.md b/packages/calckey-js/markdown/calckey-js.entities.user.md deleted file mode 100644 index 663daaaf38..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.user.md +++ /dev/null @@ -1,13 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [User](./calckey-js.entities.user.md) - -## entities.User type - -**Signature:** - -```typescript -export declare type User = UserLite | UserDetailed; -``` -**References:** [UserLite](./calckey-js.entities.userlite.md), [UserDetailed](./calckey-js.entities.userdetailed.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.userdetailed.md b/packages/calckey-js/markdown/calckey-js.entities.userdetailed.md deleted file mode 100644 index cce30a85c9..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.userdetailed.md +++ /dev/null @@ -1,56 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserDetailed](./calckey-js.entities.userdetailed.md) - -## entities.UserDetailed type - -**Signature:** - -```typescript -export declare type UserDetailed = UserLite & { - bannerBlurhash: string | null; - bannerColor: string | null; - bannerUrl: string | null; - birthday: string | null; - createdAt: DateString; - description: string | null; - ffVisibility: "public" | "followers" | "private"; - fields: { - name: string; - value: string; - }[]; - followersCount: number; - followingCount: number; - hasPendingFollowRequestFromYou: boolean; - hasPendingFollowRequestToYou: boolean; - isAdmin: boolean; - isBlocked: boolean; - isBlocking: boolean; - isBot: boolean; - isCat: boolean; - isFollowed: boolean; - isFollowing: boolean; - isLocked: boolean; - isModerator: boolean; - isMuted: boolean; - isRenoteMuted: boolean; - isSilenced: boolean; - isSuspended: boolean; - lang: string | null; - lastFetchedAt?: DateString; - location: string | null; - notesCount: number; - pinnedNoteIds: ID[]; - pinnedNotes: Note[]; - pinnedPage: Page | null; - pinnedPageId: string | null; - publicReactions: boolean; - securityKeys: boolean; - twoFactorEnabled: boolean; - updatedAt: DateString | null; - uri: string | null; - url: string | null; -}; -``` -**References:** [UserLite](./calckey-js.entities.userlite.md), [DateString](./calckey-js.entities.datestring.md), [ID](./calckey-js.entities.id.md), [Note](./calckey-js.entities.note.md), [Page](./calckey-js.entities.page.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.usergroup.md b/packages/calckey-js/markdown/calckey-js.entities.usergroup.md deleted file mode 100644 index 16bb9076bf..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.usergroup.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserGroup](./calckey-js.entities.usergroup.md) - -## entities.UserGroup type - -**Signature:** - -```typescript -export declare type UserGroup = TODO; -``` diff --git a/packages/calckey-js/markdown/calckey-js.entities.userlist.md b/packages/calckey-js/markdown/calckey-js.entities.userlist.md deleted file mode 100644 index 6ba539c662..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.userlist.md +++ /dev/null @@ -1,18 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserList](./calckey-js.entities.userlist.md) - -## entities.UserList type - -**Signature:** - -```typescript -export declare type UserList = { - id: ID; - createdAt: DateString; - name: string; - userIds: User["id"][]; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [DateString](./calckey-js.entities.datestring.md), [User](./calckey-js.entities.user.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.userlite.md b/packages/calckey-js/markdown/calckey-js.entities.userlite.md deleted file mode 100644 index 157b7b48a2..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.userlite.md +++ /dev/null @@ -1,35 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserLite](./calckey-js.entities.userlite.md) - -## entities.UserLite type - -**Signature:** - -```typescript -export declare type UserLite = { - id: ID; - username: string; - host: string | null; - name: string; - onlineStatus: "online" | "active" | "offline" | "unknown"; - avatarUrl: string; - avatarBlurhash: string; - alsoKnownAs: string[]; - movedToUri: any; - emojis: { - name: string; - url: string; - }[]; - instance?: { - name: Instance["name"]; - softwareName: Instance["softwareName"]; - softwareVersion: Instance["softwareVersion"]; - iconUrl: Instance["iconUrl"]; - faviconUrl: Instance["faviconUrl"]; - themeColor: Instance["themeColor"]; - }; -}; -``` -**References:** [ID](./calckey-js.entities.id.md), [Instance](./calckey-js.entities.instance.md) - diff --git a/packages/calckey-js/markdown/calckey-js.entities.usersorting.md b/packages/calckey-js/markdown/calckey-js.entities.usersorting.md deleted file mode 100644 index 54c3e9783f..0000000000 --- a/packages/calckey-js/markdown/calckey-js.entities.usersorting.md +++ /dev/null @@ -1,17 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserSorting](./calckey-js.entities.usersorting.md) - -## entities.UserSorting type - -**Signature:** - -```typescript -export declare type UserSorting = - | "+follower" - | "-follower" - | "+createdAt" - | "-createdAt" - | "+updatedAt" - | "-updatedAt"; -``` diff --git a/packages/calckey-js/markdown/calckey-js.ffvisibility.md b/packages/calckey-js/markdown/calckey-js.ffvisibility.md deleted file mode 100644 index df08c489c7..0000000000 --- a/packages/calckey-js/markdown/calckey-js.ffvisibility.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [ffVisibility](./calckey-js.ffvisibility.md) - -## ffVisibility variable - -**Signature:** - -```typescript -ffVisibility: readonly ["public", "followers", "private"] -``` diff --git a/packages/calckey-js/markdown/calckey-js.md b/packages/calckey-js/markdown/calckey-js.md deleted file mode 100644 index 1674ddd5a6..0000000000 --- a/packages/calckey-js/markdown/calckey-js.md +++ /dev/null @@ -1,43 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) - -## calckey-js package - -## Classes - -| Class | Description | -| --- | --- | -| [Stream](./calckey-js.stream.md) | | - -## Abstract Classes - -| Abstract Class | Description | -| --- | --- | -| [ChannelConnection](./calckey-js.channelconnection.md) | | - -## Namespaces - -| Namespace | Description | -| --- | --- | -| [api](./calckey-js.api.md) | | -| [entities](./calckey-js.entities.md) | | - -## Variables - -| Variable | Description | -| --- | --- | -| [ffVisibility](./calckey-js.ffvisibility.md) | | -| [mutedNoteReasons](./calckey-js.mutednotereasons.md) | | -| [noteVisibilities](./calckey-js.notevisibilities.md) | | -| [notificationTypes](./calckey-js.notificationtypes.md) | | -| [permissions](./calckey-js.permissions.md) | | - -## Type Aliases - -| Type Alias | Description | -| --- | --- | -| [Acct](./calckey-js.acct.md) | | -| [Channels](./calckey-js.channels.md) | | -| [Endpoints](./calckey-js.endpoints.md) | | - diff --git a/packages/calckey-js/markdown/calckey-js.mutednotereasons.md b/packages/calckey-js/markdown/calckey-js.mutednotereasons.md deleted file mode 100644 index c518ae8704..0000000000 --- a/packages/calckey-js/markdown/calckey-js.mutednotereasons.md +++ /dev/null @@ -1,16 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [mutedNoteReasons](./calckey-js.mutednotereasons.md) - -## mutedNoteReasons variable - -**Signature:** - -```typescript -mutedNoteReasons: readonly [ - "word", - "manual", - "spam", - "other", -] -``` diff --git a/packages/calckey-js/markdown/calckey-js.notevisibilities.md b/packages/calckey-js/markdown/calckey-js.notevisibilities.md deleted file mode 100644 index a18247abb1..0000000000 --- a/packages/calckey-js/markdown/calckey-js.notevisibilities.md +++ /dev/null @@ -1,16 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [noteVisibilities](./calckey-js.notevisibilities.md) - -## noteVisibilities variable - -**Signature:** - -```typescript -noteVisibilities: readonly [ - "public", - "home", - "followers", - "specified", -] -``` diff --git a/packages/calckey-js/markdown/calckey-js.notificationtypes.md b/packages/calckey-js/markdown/calckey-js.notificationtypes.md deleted file mode 100644 index 01d9ae3524..0000000000 --- a/packages/calckey-js/markdown/calckey-js.notificationtypes.md +++ /dev/null @@ -1,24 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [notificationTypes](./calckey-js.notificationtypes.md) - -## notificationTypes variable - -**Signature:** - -```typescript -notificationTypes: readonly [ - "follow", - "mention", - "reply", - "renote", - "quote", - "reaction", - "pollVote", - "pollEnded", - "receiveFollowRequest", - "followRequestAccepted", - "groupInvited", - "app", -] -``` diff --git a/packages/calckey-js/markdown/calckey-js.permissions.md b/packages/calckey-js/markdown/calckey-js.permissions.md deleted file mode 100644 index 6adcb917c7..0000000000 --- a/packages/calckey-js/markdown/calckey-js.permissions.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [permissions](./calckey-js.permissions.md) - -## permissions variable - -**Signature:** - -```typescript -permissions: string[] -``` diff --git a/packages/calckey-js/markdown/calckey-js.stream._constructor_.md b/packages/calckey-js/markdown/calckey-js.stream._constructor_.md deleted file mode 100644 index c6ab764983..0000000000 --- a/packages/calckey-js/markdown/calckey-js.stream._constructor_.md +++ /dev/null @@ -1,30 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [(constructor)](./calckey-js.stream._constructor_.md) - -## Stream.(constructor) - -Constructs a new instance of the `Stream` class - -**Signature:** - -```typescript -constructor( - origin: string, - user: { - token: string; - } | null, - options?: { - WebSocket?: any; - }, - ); -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| origin | string | | -| user | { token: string; } \| null | | -| options | { WebSocket?: any; } | _(Optional)_ | - diff --git a/packages/calckey-js/markdown/calckey-js.stream.close.md b/packages/calckey-js/markdown/calckey-js.stream.close.md deleted file mode 100644 index 222c4ae8ac..0000000000 --- a/packages/calckey-js/markdown/calckey-js.stream.close.md +++ /dev/null @@ -1,15 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [close](./calckey-js.stream.close.md) - -## Stream.close() method - -**Signature:** - -```typescript -close(): void; -``` -**Returns:** - -void - diff --git a/packages/calckey-js/markdown/calckey-js.stream.disconnecttochannel.md b/packages/calckey-js/markdown/calckey-js.stream.disconnecttochannel.md deleted file mode 100644 index 2403a0d5de..0000000000 --- a/packages/calckey-js/markdown/calckey-js.stream.disconnecttochannel.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [disconnectToChannel](./calckey-js.stream.disconnecttochannel.md) - -## Stream.disconnectToChannel() method - -**Signature:** - -```typescript -disconnectToChannel(connection: NonSharedConnection): void; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| connection | NonSharedConnection | | - -**Returns:** - -void - diff --git a/packages/calckey-js/markdown/calckey-js.stream.md b/packages/calckey-js/markdown/calckey-js.stream.md deleted file mode 100644 index 6c44402f56..0000000000 --- a/packages/calckey-js/markdown/calckey-js.stream.md +++ /dev/null @@ -1,36 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) - -## Stream class - -**Signature:** - -```typescript -export default class Stream extends EventEmitter -``` -**Extends:** EventEmitter<StreamEvents> - -## Constructors - -| Constructor | Modifiers | Description | -| --- | --- | --- | -| [(constructor)(origin, user, options)](./calckey-js.stream._constructor_.md) | | Constructs a new instance of the Stream class | - -## Properties - -| Property | Modifiers | Type | Description | -| --- | --- | --- | --- | -| [state](./calckey-js.stream.state.md) | | "initializing" \| "reconnecting" \| "connected" | | - -## Methods - -| Method | Modifiers | Description | -| --- | --- | --- | -| [close()](./calckey-js.stream.close.md) | | | -| [disconnectToChannel(connection)](./calckey-js.stream.disconnecttochannel.md) | | | -| [removeSharedConnection(connection)](./calckey-js.stream.removesharedconnection.md) | | | -| [removeSharedConnectionPool(pool)](./calckey-js.stream.removesharedconnectionpool.md) | | | -| [send(typeOrPayload, payload)](./calckey-js.stream.send.md) | | | -| [useChannel(channel, params, name)](./calckey-js.stream.usechannel.md) | | | - diff --git a/packages/calckey-js/markdown/calckey-js.stream.removesharedconnection.md b/packages/calckey-js/markdown/calckey-js.stream.removesharedconnection.md deleted file mode 100644 index b52ce862e3..0000000000 --- a/packages/calckey-js/markdown/calckey-js.stream.removesharedconnection.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [removeSharedConnection](./calckey-js.stream.removesharedconnection.md) - -## Stream.removeSharedConnection() method - -**Signature:** - -```typescript -removeSharedConnection(connection: SharedConnection): void; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| connection | SharedConnection | | - -**Returns:** - -void - diff --git a/packages/calckey-js/markdown/calckey-js.stream.removesharedconnectionpool.md b/packages/calckey-js/markdown/calckey-js.stream.removesharedconnectionpool.md deleted file mode 100644 index aa99153734..0000000000 --- a/packages/calckey-js/markdown/calckey-js.stream.removesharedconnectionpool.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [removeSharedConnectionPool](./calckey-js.stream.removesharedconnectionpool.md) - -## Stream.removeSharedConnectionPool() method - -**Signature:** - -```typescript -removeSharedConnectionPool(pool: Pool): void; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| pool | Pool | | - -**Returns:** - -void - diff --git a/packages/calckey-js/markdown/calckey-js.stream.send.md b/packages/calckey-js/markdown/calckey-js.stream.send.md deleted file mode 100644 index d8e03032d5..0000000000 --- a/packages/calckey-js/markdown/calckey-js.stream.send.md +++ /dev/null @@ -1,23 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [send](./calckey-js.stream.send.md) - -## Stream.send() method - -**Signature:** - -```typescript -send(typeOrPayload: any, payload?: any): void; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| typeOrPayload | any | | -| payload | any | _(Optional)_ | - -**Returns:** - -void - diff --git a/packages/calckey-js/markdown/calckey-js.stream.state.md b/packages/calckey-js/markdown/calckey-js.stream.state.md deleted file mode 100644 index 82c2e3c3ed..0000000000 --- a/packages/calckey-js/markdown/calckey-js.stream.state.md +++ /dev/null @@ -1,11 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [state](./calckey-js.stream.state.md) - -## Stream.state property - -**Signature:** - -```typescript -state: "initializing" | "reconnecting" | "connected"; -``` diff --git a/packages/calckey-js/markdown/calckey-js.stream.usechannel.md b/packages/calckey-js/markdown/calckey-js.stream.usechannel.md deleted file mode 100644 index b3c4abbf7c..0000000000 --- a/packages/calckey-js/markdown/calckey-js.stream.usechannel.md +++ /dev/null @@ -1,28 +0,0 @@ - - -[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [useChannel](./calckey-js.stream.usechannel.md) - -## Stream.useChannel() method - -**Signature:** - -```typescript -useChannel( - channel: C, - params?: Channels[C]["params"], - name?: string, - ): Connection; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| channel | C | | -| params | [Channels](./calckey-js.channels.md)\[C\]\["params"\] | _(Optional)_ | -| name | string | _(Optional)_ | - -**Returns:** - -[Connection](./calckey-js.channelconnection.md)<[Channels](./calckey-js.channels.md)\[C\]> - diff --git a/packages/calckey-js/markdown/index.md b/packages/calckey-js/markdown/index.md deleted file mode 100644 index 73dd95deb3..0000000000 --- a/packages/calckey-js/markdown/index.md +++ /dev/null @@ -1,12 +0,0 @@ - - -[Home](./index.md) - -## API Reference - -## Packages - -| Package | Description | -| --- | --- | -| [calckey-js](./calckey-js.md) | | - diff --git a/packages/calckey-js/package.json b/packages/calckey-js/package.json deleted file mode 100644 index fdb253f454..0000000000 --- a/packages/calckey-js/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "calckey-js", - "version": "0.0.24", - "description": "Calckey SDK for JavaScript", - "main": "./built/index.js", - "types": "./built/index.d.ts", - "scripts": { - "build": "pnpm swc src -d built -D", - "render": "pnpm run build && pnpm run api && pnpm run api-prod && cp temp/calckey-js.api.json etc/ && pnpm run api-doc", - "tsd": "tsc && tsd", - "api": "pnpm api-extractor run --local --verbose", - "api-prod": "pnpm api-extractor run --verbose", - "api-doc": "pnpm api-documenter markdown -i ./etc/", - "lint": "pnpm rome check --apply *.ts", - "format": "pnpm rome format --write *.ts", - "jest": "jest --coverage --detectOpenHandles", - "test": "pnpm jest && pnpm tsd" - }, - "repository": { - "type": "git", - "url": "https://codeberg.org/calckey/calckey.git" - }, - "devDependencies": { - "@microsoft/api-extractor": "^7.36.0", - "@microsoft/api-documenter": "^7.22.21", - "@swc/cli": "^0.1.62", - "@swc/core": "^1.3.62", - "@types/jest": "^27.4.0", - "@types/node": "20.3.1", - "jest": "^27.4.5", - "jest-fetch-mock": "^3.0.3", - "jest-websocket-mock": "^2.2.1", - "mock-socket": "^9.0.8", - "ts-jest": "^27.1.2", - "ts-node": "10.4.0", - "tsd": "^0.28.1", - "typescript": "5.1.3" - }, - "files": [ - "built" - ], - "dependencies": { - "eventemitter3": "^4.0.7", - "reconnecting-websocket": "^4.4.0", - "semver": "^7.3.8" - }, - "optionalDependencies": { - "@swc/core-android-arm64": "1.3.11" - } -} diff --git a/packages/calckey-js/src/acct.ts b/packages/calckey-js/src/acct.ts deleted file mode 100644 index 5b7767a106..0000000000 --- a/packages/calckey-js/src/acct.ts +++ /dev/null @@ -1,14 +0,0 @@ -export type Acct = { - username: string; - host: string | null; -}; - -export function parse(acct: string): Acct { - if (acct.startsWith("@")) acct = acct.substr(1); - const split = acct.split("@", 2); - return { username: split[0], host: split[1] || null }; -} - -export function toString(acct: Acct): string { - return acct.host == null ? acct.username : `${acct.username}@${acct.host}`; -} diff --git a/packages/calckey-js/src/api.ts b/packages/calckey-js/src/api.ts deleted file mode 100644 index 141aa4b858..0000000000 --- a/packages/calckey-js/src/api.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { Endpoints } from "./api.types"; - -const MK_API_ERROR = Symbol(); - -export type APIError = { - id: string; - code: string; - message: string; - kind: "client" | "server"; - info: Record; -}; - -export function isAPIError(reason: any): reason is APIError { - return reason[MK_API_ERROR] === true; -} - -export type FetchLike = ( - input: string, - init?: { - method?: string; - body?: string; - credentials?: RequestCredentials; - cache?: RequestCache; - }, -) => Promise<{ - status: number; - json(): Promise; -}>; - -type IsNeverType = [T] extends [never] ? true : false; - -type StrictExtract = Cond extends Union ? Union : never; - -type IsCaseMatched< - E extends keyof Endpoints, - P extends Endpoints[E]["req"], - C extends number, -> = IsNeverType< - StrictExtract -> extends false - ? true - : false; - -type GetCaseResult< - E extends keyof Endpoints, - P extends Endpoints[E]["req"], - C extends number, -> = StrictExtract[1]; - -export class APIClient { - public origin: string; - public credential: string | null | undefined; - public fetch: FetchLike; - - constructor(opts: { - origin: APIClient["origin"]; - credential?: APIClient["credential"]; - fetch?: APIClient["fetch"] | null | undefined; - }) { - this.origin = opts.origin; - this.credential = opts.credential; - // ăƒă‚€ăƒ†ă‚Łăƒ–é–ąæ•°ă‚’ăăźăŸăŸć€‰æ•°ă«ä»Łć…„ă—ăŠäœżăŠă†ăšă™ă‚‹ăšChromiumではIllegal invocationă‚šăƒ©ăƒŒăŒç™ș生するため、 - // ç’°ćąƒă§ćźŸèŁ…ă•ă‚ŒăŠă„ă‚‹fetchă‚’äœżă†ć ŽćˆăŻç„Ąćé–ąæ•°ă§ăƒ©ăƒƒăƒ—ă—ăŠäœżç”šă™ă‚‹ - this.fetch = opts.fetch || ((...args) => fetch(...args)); - } - - public request( - endpoint: E, - params: P = {} as P, - credential?: string | null | undefined, - ): Promise< - Endpoints[E]["res"] extends { - $switch: { $cases: [any, any][]; $default: any }; - } - ? IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : IsCaseMatched extends true - ? GetCaseResult - : Endpoints[E]["res"]["$switch"]["$default"] - : Endpoints[E]["res"] - > { - const promise = new Promise((resolve, reject) => { - this.fetch(`${this.origin}/api/${endpoint}`, { - method: "POST", - body: JSON.stringify({ - ...params, - i: credential !== undefined ? credential : this.credential, - }), - credentials: "omit", - cache: "no-cache", - }) - .then(async (res) => { - const body = res.status === 204 ? null : await res.json(); - - if (res.status === 200) { - resolve(body); - } else if (res.status === 204) { - resolve(null); - } else { - reject({ - [MK_API_ERROR]: true, - ...body.error, - }); - } - }) - .catch(reject); - }); - - return promise as any; - } -} diff --git a/packages/calckey-js/src/api.types.ts b/packages/calckey-js/src/api.types.ts deleted file mode 100644 index 626bdaad02..0000000000 --- a/packages/calckey-js/src/api.types.ts +++ /dev/null @@ -1,1094 +0,0 @@ -import { - Ad, - Announcement, - Antenna, - App, - AuthSession, - Blocking, - Channel, - Clip, - DateString, - DetailedInstanceMetadata, - DriveFile, - DriveFolder, - Following, - FollowingFolloweePopulated, - FollowingFollowerPopulated, - FollowRequest, - GalleryPost, - Instance, - InstanceMetadata, - LiteInstanceMetadata, - MeDetailed, - Note, - NoteFavorite, - OriginType, - Page, - ServerInfo, - Stats, - User, - UserDetailed, - UserGroup, - UserList, - UserSorting, - Notification, - NoteReaction, - Signin, - MessagingMessage, -} from "./entities"; - -type TODO = Record | null; - -type NoParams = Record; - -type ShowUserReq = { username: string; host?: string } | { userId: User["id"] }; - -type NoteSubmitReq = { - editId?: null | Note["id"]; - visibility?: "public" | "home" | "followers" | "specified"; - visibleUserIds?: User["id"][]; - text?: null | string; - cw?: null | string; - viaMobile?: boolean; - localOnly?: boolean; - fileIds?: DriveFile["id"][]; - replyId?: null | Note["id"]; - renoteId?: null | Note["id"]; - channelId?: null | Channel["id"]; - poll?: null | { - choices: string[]; - multiple?: boolean; - expiresAt?: null | number; - expiredAfter?: null | number; - }; -}; - -export type Endpoints = { - // admin - "admin/abuse-user-reports": { req: TODO; res: TODO }; - "admin/delete-all-files-of-a-user": { - req: { userId: User["id"] }; - res: null; - }; - "admin/delete-logs": { req: NoParams; res: null }; - "admin/get-index-stats": { req: TODO; res: TODO }; - "admin/get-table-stats": { req: TODO; res: TODO }; - "admin/invite": { req: TODO; res: TODO }; - "admin/logs": { req: TODO; res: TODO }; - "admin/meta": { req: TODO; res: TODO }; - "admin/reset-password": { req: TODO; res: TODO }; - "admin/resolve-abuse-user-report": { req: TODO; res: TODO }; - "admin/resync-chart": { req: TODO; res: TODO }; - "admin/send-email": { req: TODO; res: TODO }; - "admin/server-info": { req: TODO; res: TODO }; - "admin/show-moderation-logs": { req: TODO; res: TODO }; - "admin/show-user": { req: TODO; res: TODO }; - "admin/show-users": { req: TODO; res: TODO }; - "admin/silence-user": { req: TODO; res: TODO }; - "admin/suspend-user": { req: TODO; res: TODO }; - "admin/unsilence-user": { req: TODO; res: TODO }; - "admin/unsuspend-user": { req: TODO; res: TODO }; - "admin/update-meta": { req: TODO; res: TODO }; - "admin/vacuum": { req: TODO; res: TODO }; - "admin/accounts/create": { req: TODO; res: TODO }; - "admin/ad/create": { req: TODO; res: TODO }; - "admin/ad/delete": { req: { id: Ad["id"] }; res: null }; - "admin/ad/list": { req: TODO; res: TODO }; - "admin/ad/update": { req: TODO; res: TODO }; - "admin/announcements/create": { req: TODO; res: TODO }; - "admin/announcements/delete": { req: { id: Announcement["id"] }; res: null }; - "admin/announcements/list": { req: TODO; res: TODO }; - "admin/announcements/update": { req: TODO; res: TODO }; - "admin/drive/clean-remote-files": { req: TODO; res: TODO }; - "admin/drive/cleanup": { req: TODO; res: TODO }; - "admin/drive/files": { req: TODO; res: TODO }; - "admin/drive/show-file": { req: TODO; res: TODO }; - "admin/emoji/add": { req: TODO; res: TODO }; - "admin/emoji/copy": { req: TODO; res: TODO }; - "admin/emoji/list-remote": { req: TODO; res: TODO }; - "admin/emoji/list": { req: TODO; res: TODO }; - "admin/emoji/remove": { req: TODO; res: TODO }; - "admin/emoji/update": { req: TODO; res: TODO }; - "admin/federation/delete-all-files": { req: { host: string }; res: null }; - "admin/federation/refresh-remote-instance-metadata": { req: TODO; res: TODO }; - "admin/federation/remove-all-following": { req: TODO; res: TODO }; - "admin/federation/update-instance": { req: TODO; res: TODO }; - "admin/moderators/add": { req: TODO; res: TODO }; - "admin/moderators/remove": { req: TODO; res: TODO }; - "admin/promo/create": { req: TODO; res: TODO }; - "admin/queue/clear": { req: TODO; res: TODO }; - "admin/queue/deliver-delayed": { req: TODO; res: TODO }; - "admin/queue/inbox-delayed": { req: TODO; res: TODO }; - "admin/queue/jobs": { req: TODO; res: TODO }; - "admin/queue/stats": { req: TODO; res: TODO }; - "admin/relays/add": { req: TODO; res: TODO }; - "admin/relays/list": { req: TODO; res: TODO }; - "admin/relays/remove": { req: TODO; res: TODO }; - - // announcements - announcements: { - req: { - limit?: number; - withUnreads?: boolean; - sinceId?: Announcement["id"]; - untilId?: Announcement["id"]; - }; - res: Announcement[]; - }; - - // antennas - "antennas/create": { req: TODO; res: Antenna }; - "antennas/delete": { req: { antennaId: Antenna["id"] }; res: null }; - "antennas/list": { req: NoParams; res: Antenna[] }; - "antennas/notes": { - req: { - antennaId: Antenna["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "antennas/show": { req: { antennaId: Antenna["id"] }; res: Antenna }; - "antennas/update": { req: TODO; res: Antenna }; - "antennas/mark-read": { req: TODO; res: Antenna }; - - // ap - "ap/get": { req: { uri: string }; res: Record }; - "ap/show": { - req: { uri: string }; - res: - | { - type: "Note"; - object: Note; - } - | { - type: "User"; - object: UserDetailed; - }; - }; - - // app - "app/create": { req: TODO; res: App }; - "app/show": { req: { appId: App["id"] }; res: App }; - - // auth - "auth/accept": { req: { token: string }; res: null }; - "auth/session/generate": { - req: { appSecret: string }; - res: { token: string; url: string }; - }; - "auth/session/show": { req: { token: string }; res: AuthSession }; - "auth/session/userkey": { - req: { appSecret: string; token: string }; - res: { accessToken: string; user: User }; - }; - - // blocking - "blocking/create": { req: { userId: User["id"] }; res: UserDetailed }; - "blocking/delete": { req: { userId: User["id"] }; res: UserDetailed }; - "blocking/list": { - req: { limit?: number; sinceId?: Blocking["id"]; untilId?: Blocking["id"] }; - res: Blocking[]; - }; - - // channels - "channels/create": { req: TODO; res: TODO }; - "channels/featured": { req: TODO; res: TODO }; - "channels/follow": { req: TODO; res: TODO }; - "channels/followed": { req: TODO; res: TODO }; - "channels/owned": { req: TODO; res: TODO }; - "channels/pin-note": { req: TODO; res: TODO }; - "channels/show": { req: TODO; res: TODO }; - "channels/timeline": { req: TODO; res: TODO }; - "channels/unfollow": { req: TODO; res: TODO }; - "channels/update": { req: TODO; res: TODO }; - - // charts - "charts/active-users": { - req: { span: "day" | "hour"; limit?: number; offset?: number | null }; - res: { - local: { - users: number[]; - }; - remote: { - users: number[]; - }; - }; - }; - "charts/drive": { - req: { span: "day" | "hour"; limit?: number; offset?: number | null }; - res: { - local: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - remote: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - }; - }; - "charts/federation": { - req: { span: "day" | "hour"; limit?: number; offset?: number | null }; - res: { - instance: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - "charts/hashtag": { - req: { span: "day" | "hour"; limit?: number; offset?: number | null }; - res: TODO; - }; - "charts/instance": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - host: string; - }; - res: { - drive: { - decFiles: number[]; - decUsage: number[]; - incFiles: number[]; - incUsage: number[]; - totalFiles: number[]; - totalUsage: number[]; - }; - followers: { - dec: number[]; - inc: number[]; - total: number[]; - }; - following: { - dec: number[]; - inc: number[]; - total: number[]; - }; - notes: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - requests: { - failed: number[]; - received: number[]; - succeeded: number[]; - }; - users: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - "charts/network": { - req: { span: "day" | "hour"; limit?: number; offset?: number | null }; - res: TODO; - }; - "charts/notes": { - req: { span: "day" | "hour"; limit?: number; offset?: number | null }; - res: { - local: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - remote: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - }; - }; - "charts/user/drive": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: { - decCount: number[]; - decSize: number[]; - incCount: number[]; - incSize: number[]; - totalCount: number[]; - totalSize: number[]; - }; - }; - "charts/user/following": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: TODO; - }; - "charts/user/notes": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: { - dec: number[]; - inc: number[]; - total: number[]; - diffs: { - normal: number[]; - renote: number[]; - reply: number[]; - }; - }; - }; - "charts/user/reactions": { - req: { - span: "day" | "hour"; - limit?: number; - offset?: number | null; - userId: User["id"]; - }; - res: TODO; - }; - "charts/users": { - req: { span: "day" | "hour"; limit?: number; offset?: number | null }; - res: { - local: { - dec: number[]; - inc: number[]; - total: number[]; - }; - remote: { - dec: number[]; - inc: number[]; - total: number[]; - }; - }; - }; - - // clips - "clips/add-note": { req: TODO; res: TODO }; - "clips/create": { req: TODO; res: TODO }; - "clips/delete": { req: { clipId: Clip["id"] }; res: null }; - "clips/list": { req: TODO; res: TODO }; - "clips/notes": { req: TODO; res: TODO }; - "clips/show": { req: TODO; res: TODO }; - "clips/update": { req: TODO; res: TODO }; - - // drive - drive: { req: NoParams; res: { capacity: number; usage: number } }; - "drive/files": { - req: { - folderId?: DriveFolder["id"] | null; - type?: DriveFile["type"] | null; - limit?: number; - sinceId?: DriveFile["id"]; - untilId?: DriveFile["id"]; - }; - res: DriveFile[]; - }; - "drive/files/attached-notes": { req: TODO; res: TODO }; - "drive/files/check-existence": { req: TODO; res: TODO }; - "drive/files/create": { req: TODO; res: TODO }; - "drive/files/delete": { req: { fileId: DriveFile["id"] }; res: null }; - "drive/files/find-by-hash": { req: TODO; res: TODO }; - "drive/files/find": { - req: { name: string; folderId?: DriveFolder["id"] | null }; - res: DriveFile[]; - }; - "drive/files/show": { - req: { fileId?: DriveFile["id"]; url?: string }; - res: DriveFile; - }; - "drive/files/update": { - req: { - fileId: DriveFile["id"]; - folderId?: DriveFolder["id"] | null; - name?: string; - isSensitive?: boolean; - comment?: string | null; - }; - res: DriveFile; - }; - "drive/files/upload-from-url": { - req: { - url: string; - folderId?: DriveFolder["id"] | null; - isSensitive?: boolean; - comment?: string | null; - marker?: string | null; - force?: boolean; - }; - res: null; - }; - "drive/folders": { - req: { - folderId?: DriveFolder["id"] | null; - limit?: number; - sinceId?: DriveFile["id"]; - untilId?: DriveFile["id"]; - }; - res: DriveFolder[]; - }; - "drive/folders/create": { - req: { name?: string; parentId?: DriveFolder["id"] | null }; - res: DriveFolder; - }; - "drive/folders/delete": { req: { folderId: DriveFolder["id"] }; res: null }; - "drive/folders/find": { - req: { name: string; parentId?: DriveFolder["id"] | null }; - res: DriveFolder[]; - }; - "drive/folders/show": { - req: { folderId: DriveFolder["id"] }; - res: DriveFolder; - }; - "drive/folders/update": { - req: { - folderId: DriveFolder["id"]; - name?: string; - parentId?: DriveFolder["id"] | null; - }; - res: DriveFolder; - }; - "drive/stream": { - req: { - type?: DriveFile["type"] | null; - limit?: number; - sinceId?: DriveFile["id"]; - untilId?: DriveFile["id"]; - }; - res: DriveFile[]; - }; - - // endpoint - endpoint: { - req: { endpoint: string }; - res: { params: { name: string; type: string }[] }; - }; - - // endpoints - endpoints: { req: NoParams; res: string[] }; - - // federation - "federation/dns": { - req: { host: string }; - res: { - a: string[]; - aaaa: string[]; - cname: string[]; - txt: string[]; - }; - }; - "federation/followers": { - req: { - host: string; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFolloweePopulated[]; - }; - "federation/following": { - req: { - host: string; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFolloweePopulated[]; - }; - "federation/instances": { - req: { - host?: string | null; - blocked?: boolean | null; - notResponding?: boolean | null; - suspended?: boolean | null; - federating?: boolean | null; - subscribing?: boolean | null; - publishing?: boolean | null; - limit?: number; - offset?: number; - sort?: - | "+pubSub" - | "-pubSub" - | "+notes" - | "-notes" - | "+users" - | "-users" - | "+following" - | "-following" - | "+followers" - | "-followers" - | "+caughtAt" - | "-caughtAt" - | "+lastCommunicatedAt" - | "-lastCommunicatedAt" - | "+driveUsage" - | "-driveUsage" - | "+driveFiles" - | "-driveFiles"; - }; - res: Instance[]; - }; - "federation/show-instance": { req: { host: string }; res: Instance }; - "federation/update-remote-user": { req: { userId: User["id"] }; res: null }; - "federation/users": { - req: { - host: string; - limit?: number; - sinceId?: User["id"]; - untilId?: User["id"]; - }; - res: UserDetailed[]; - }; - - // following - "following/create": { req: { userId: User["id"] }; res: User }; - "following/delete": { req: { userId: User["id"] }; res: User }; - "following/requests/accept": { req: { userId: User["id"] }; res: null }; - "following/requests/cancel": { req: { userId: User["id"] }; res: User }; - "following/requests/list": { req: NoParams; res: FollowRequest[] }; - "following/requests/reject": { req: { userId: User["id"] }; res: null }; - - // gallery - "gallery/featured": { req: TODO; res: TODO }; - "gallery/popular": { req: TODO; res: TODO }; - "gallery/posts": { req: TODO; res: TODO }; - "gallery/posts/create": { req: TODO; res: TODO }; - "gallery/posts/delete": { req: { postId: GalleryPost["id"] }; res: null }; - "gallery/posts/like": { req: TODO; res: TODO }; - "gallery/posts/show": { req: TODO; res: TODO }; - "gallery/posts/unlike": { req: TODO; res: TODO }; - "gallery/posts/update": { req: TODO; res: TODO }; - - // games - "games/reversi/games": { req: TODO; res: TODO }; - "games/reversi/games/show": { req: TODO; res: TODO }; - "games/reversi/games/surrender": { req: TODO; res: TODO }; - "games/reversi/invitations": { req: TODO; res: TODO }; - "games/reversi/match": { req: TODO; res: TODO }; - "games/reversi/match/cancel": { req: TODO; res: TODO }; - - // get-online-users-count - "get-online-users-count": { req: NoParams; res: { count: number } }; - - // hashtags - "hashtags/list": { req: TODO; res: TODO }; - "hashtags/search": { req: TODO; res: TODO }; - "hashtags/show": { req: TODO; res: TODO }; - "hashtags/trend": { req: TODO; res: TODO }; - "hashtags/users": { req: TODO; res: TODO }; - - // i - i: { req: NoParams; res: User }; - "i/apps": { req: TODO; res: TODO }; - "i/authorized-apps": { req: TODO; res: TODO }; - "i/change-password": { req: TODO; res: TODO }; - "i/delete-account": { req: { password: string }; res: null }; - "i/export-blocking": { req: TODO; res: TODO }; - "i/export-following": { req: TODO; res: TODO }; - "i/export-mute": { req: TODO; res: TODO }; - "i/export-notes": { req: TODO; res: TODO }; - "i/export-user-lists": { req: TODO; res: TODO }; - "i/favorites": { - req: { - limit?: number; - sinceId?: NoteFavorite["id"]; - untilId?: NoteFavorite["id"]; - }; - res: NoteFavorite[]; - }; - "i/gallery/likes": { req: TODO; res: TODO }; - "i/gallery/posts": { req: TODO; res: TODO }; - "i/get-word-muted-notes-count": { req: TODO; res: TODO }; - "i/import-following": { req: TODO; res: TODO }; - "i/import-user-lists": { req: TODO; res: TODO }; - "i/move": { req: TODO; res: TODO }; - "i/known-as": { req: TODO; res: TODO }; - "i/notifications": { - req: { - limit?: number; - sinceId?: Notification["id"]; - untilId?: Notification["id"]; - following?: boolean; - markAsRead?: boolean; - includeTypes?: Notification["type"][]; - excludeTypes?: Notification["type"][]; - }; - res: Notification[]; - }; - "i/page-likes": { req: TODO; res: TODO }; - "i/pages": { req: TODO; res: TODO }; - "i/pin": { req: { noteId: Note["id"] }; res: MeDetailed }; - "i/read-all-messaging-messages": { req: TODO; res: TODO }; - "i/read-all-unread-notes": { req: TODO; res: TODO }; - "i/read-announcement": { req: TODO; res: TODO }; - "i/regenerate-token": { req: { password: string }; res: null }; - "i/registry/get-all": { req: { scope?: string[] }; res: Record }; - "i/registry/get-detail": { - req: { key: string; scope?: string[] }; - res: { updatedAt: DateString; value: any }; - }; - "i/registry/get": { req: { key: string; scope?: string[] }; res: any }; - "i/registry/keys-with-type": { - req: { scope?: string[] }; - res: Record< - string, - "null" | "array" | "number" | "string" | "boolean" | "object" - >; - }; - "i/registry/keys": { req: { scope?: string[] }; res: string[] }; - "i/registry/remove": { req: { key: string; scope?: string[] }; res: null }; - "i/registry/scopes": { req: NoParams; res: string[][] }; - "i/registry/set": { - req: { key: string; value: any; scope?: string[] }; - res: null; - }; - "i/revoke-token": { req: TODO; res: TODO }; - "i/signin-history": { - req: { limit?: number; sinceId?: Signin["id"]; untilId?: Signin["id"] }; - res: Signin[]; - }; - "i/unpin": { req: { noteId: Note["id"] }; res: MeDetailed }; - "i/update-email": { - req: { - password: string; - email?: string | null; - }; - res: MeDetailed; - }; - "i/update": { - req: { - name?: string | null; - description?: string | null; - lang?: string | null; - location?: string | null; - birthday?: string | null; - avatarId?: DriveFile["id"] | null; - bannerId?: DriveFile["id"] | null; - fields?: { - name: string; - value: string; - }[]; - isLocked?: boolean; - isExplorable?: boolean; - hideOnlineStatus?: boolean; - carefulBot?: boolean; - autoAcceptFollowed?: boolean; - noCrawle?: boolean; - preventAiLearning?: boolean; - isBot?: boolean; - isCat?: boolean; - injectFeaturedNote?: boolean; - receiveAnnouncementEmail?: boolean; - alwaysMarkNsfw?: boolean; - mutedWords?: string[][]; - mutingNotificationTypes?: Notification["type"][]; - emailNotificationTypes?: string[]; - }; - res: MeDetailed; - }; - "i/user-group-invites": { req: TODO; res: TODO }; - "i/2fa/done": { req: TODO; res: TODO }; - "i/2fa/key-done": { req: TODO; res: TODO }; - "i/2fa/password-less": { req: TODO; res: TODO }; - "i/2fa/register-key": { req: TODO; res: TODO }; - "i/2fa/register": { req: TODO; res: TODO }; - "i/2fa/update-key": { req: TODO; res: TODO }; - "i/2fa/remove-key": { req: TODO; res: TODO }; - "i/2fa/unregister": { req: TODO; res: TODO }; - - // messaging - "messaging/history": { - req: { limit?: number; group?: boolean }; - res: MessagingMessage[]; - }; - "messaging/messages": { - req: { - userId?: User["id"]; - groupId?: UserGroup["id"]; - limit?: number; - sinceId?: MessagingMessage["id"]; - untilId?: MessagingMessage["id"]; - markAsRead?: boolean; - }; - res: MessagingMessage[]; - }; - "messaging/messages/create": { - req: { - userId?: User["id"]; - groupId?: UserGroup["id"]; - text?: string; - fileId?: DriveFile["id"]; - }; - res: MessagingMessage; - }; - "messaging/messages/delete": { - req: { messageId: MessagingMessage["id"] }; - res: null; - }; - "messaging/messages/read": { - req: { messageId: MessagingMessage["id"] }; - res: null; - }; - - // meta - meta: { - req: { detail?: boolean }; - res: { - $switch: { - $cases: [ - [{ detail: true }, DetailedInstanceMetadata], - [{ detail: false }, LiteInstanceMetadata], - [ - { detail: boolean }, - LiteInstanceMetadata | DetailedInstanceMetadata, - ], - ]; - $default: LiteInstanceMetadata; - }; - }; - }; - - // miauth - "miauth/gen-token": { req: TODO; res: TODO }; - - // mute - "mute/create": { req: TODO; res: TODO }; - "mute/delete": { req: { userId: User["id"] }; res: null }; - "mute/list": { req: TODO; res: TODO }; - "renote-mute/create": { req: TODO; res: TODO }; - "renote-mute/delete": { req: { userId: User["id"] }; res: null }; - "renote-mute/list": { req: TODO; res: TODO }; - - // my - "my/apps": { req: TODO; res: TODO }; - - // notes - notes: { - req: { limit?: number; sinceId?: Note["id"]; untilId?: Note["id"] }; - res: Note[]; - }; - "notes/children": { - req: { - noteId: Note["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "notes/clips": { req: TODO; res: TODO }; - "notes/conversation": { req: TODO; res: TODO }; - "notes/create": { - req: NoteSubmitReq; - res: { createdNote: Note }; - }; - "notes/delete": { req: { noteId: Note["id"] }; res: null }; - "notes/edit": { - req: NoteSubmitReq; - res: { createdNote: Note }; - }; - "notes/favorites/create": { req: { noteId: Note["id"] }; res: null }; - "notes/favorites/delete": { req: { noteId: Note["id"] }; res: null }; - "notes/featured": { req: TODO; res: Note[] }; - "notes/global-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/recommended-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/hybrid-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/local-timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/mentions": { - req: { - following?: boolean; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - }; - res: Note[]; - }; - "notes/polls/recommendation": { req: TODO; res: TODO }; - "notes/polls/vote": { - req: { noteId: Note["id"]; choice: number }; - res: null; - }; - "notes/reactions": { - req: { noteId: Note["id"]; type?: string | null; limit?: number }; - res: NoteReaction[]; - }; - "notes/reactions/create": { - req: { noteId: Note["id"]; reaction: string }; - res: null; - }; - "notes/reactions/delete": { req: { noteId: Note["id"] }; res: null }; - "notes/renotes": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - noteId: Note["id"]; - }; - res: Note[]; - }; - "notes/replies": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - noteId: Note["id"]; - }; - res: Note[]; - }; - "notes/search-by-tag": { req: TODO; res: TODO }; - "notes/search": { req: TODO; res: TODO }; - "notes/show": { req: { noteId: Note["id"] }; res: Note }; - "notes/state": { req: TODO; res: TODO }; - "notes/timeline": { - req: { - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/unrenote": { req: { noteId: Note["id"] }; res: null }; - "notes/user-list-timeline": { - req: { - listId: UserList["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "notes/watching/create": { req: TODO; res: TODO }; - "notes/watching/delete": { req: { noteId: Note["id"] }; res: null }; - - // notifications - "notifications/create": { - req: { body: string; header?: string | null; icon?: string | null }; - res: null; - }; - "notifications/mark-all-as-read": { req: NoParams; res: null }; - "notifications/read": { - req: { notificationId: Notification["id"] }; - res: null; - }; - - // page-push - "page-push": { - req: { pageId: Page["id"]; event: string; var?: any }; - res: null; - }; - - // pages - "pages/create": { req: TODO; res: Page }; - "pages/delete": { req: { pageId: Page["id"] }; res: null }; - "pages/featured": { req: NoParams; res: Page[] }; - "pages/like": { req: { pageId: Page["id"] }; res: null }; - "pages/show": { - req: { pageId?: Page["id"]; name?: string; username?: string }; - res: Page; - }; - "pages/unlike": { req: { pageId: Page["id"] }; res: null }; - "pages/update": { req: TODO; res: null }; - - // ping - ping: { req: NoParams; res: { pong: number } }; - - // pinned-users - "pinned-users": { req: TODO; res: TODO }; - - // promo - "promo/read": { req: TODO; res: TODO }; - - // request-reset-password - "request-reset-password": { - req: { username: string; email: string }; - res: null; - }; - - // reset-password - "reset-password": { req: { token: string; password: string }; res: null }; - - // room - "room/show": { req: TODO; res: TODO }; - "room/update": { req: TODO; res: TODO }; - - // stats - stats: { req: NoParams; res: Stats }; - - // server-info - "server-info": { req: NoParams; res: ServerInfo }; - - // ck specific - "latest-version": { req: NoParams; res: TODO }; - - // sw - "sw/register": { req: TODO; res: TODO }; - - // username - "username/available": { - req: { username: string }; - res: { available: boolean }; - }; - - // users - users: { - req: { - limit?: number; - offset?: number; - sort?: UserSorting; - origin?: OriginType; - }; - res: User[]; - }; - "users/clips": { req: TODO; res: TODO }; - "users/followers": { - req: { - userId?: User["id"]; - username?: User["username"]; - host?: User["host"] | null; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFollowerPopulated[]; - }; - "users/following": { - req: { - userId?: User["id"]; - username?: User["username"]; - host?: User["host"] | null; - limit?: number; - sinceId?: Following["id"]; - untilId?: Following["id"]; - }; - res: FollowingFolloweePopulated[]; - }; - "users/gallery/posts": { req: TODO; res: TODO }; - "users/get-frequently-replied-users": { req: TODO; res: TODO }; - "users/groups/create": { req: TODO; res: TODO }; - "users/groups/delete": { req: { groupId: UserGroup["id"] }; res: null }; - "users/groups/invitations/accept": { req: TODO; res: TODO }; - "users/groups/invitations/reject": { req: TODO; res: TODO }; - "users/groups/invite": { req: TODO; res: TODO }; - "users/groups/joined": { req: TODO; res: TODO }; - "users/groups/owned": { req: TODO; res: TODO }; - "users/groups/pull": { req: TODO; res: TODO }; - "users/groups/show": { req: TODO; res: TODO }; - "users/groups/transfer": { req: TODO; res: TODO }; - "users/groups/update": { req: TODO; res: TODO }; - "users/lists/create": { req: { name: string }; res: UserList }; - "users/lists/delete": { req: { listId: UserList["id"] }; res: null }; - "users/lists/list": { req: NoParams; res: UserList[] }; - "users/lists/pull": { - req: { listId: UserList["id"]; userId: User["id"] }; - res: null; - }; - "users/lists/push": { - req: { listId: UserList["id"]; userId: User["id"] }; - res: null; - }; - "users/lists/show": { req: { listId: UserList["id"] }; res: UserList }; - "users/lists/update": { - req: { listId: UserList["id"]; name: string }; - res: UserList; - }; - "users/notes": { - req: { - userId: User["id"]; - limit?: number; - sinceId?: Note["id"]; - untilId?: Note["id"]; - sinceDate?: number; - untilDate?: number; - }; - res: Note[]; - }; - "users/pages": { req: TODO; res: TODO }; - "users/recommendation": { req: TODO; res: TODO }; - "users/relation": { req: TODO; res: TODO }; - "users/report-abuse": { req: TODO; res: TODO }; - "users/search-by-username-and-host": { req: TODO; res: TODO }; - "users/search": { req: TODO; res: TODO }; - "users/show": { - req: ShowUserReq | { userIds: User["id"][] }; - res: { - $switch: { - $cases: [[{ userIds: User["id"][] }, UserDetailed[]]]; - $default: UserDetailed; - }; - }; - }; - "users/stats": { req: TODO; res: TODO }; -}; diff --git a/packages/calckey-js/src/consts.ts b/packages/calckey-js/src/consts.ts deleted file mode 100644 index be33c0d3e3..0000000000 --- a/packages/calckey-js/src/consts.ts +++ /dev/null @@ -1,60 +0,0 @@ -export const notificationTypes = [ - "follow", - "mention", - "reply", - "renote", - "quote", - "reaction", - "pollVote", - "pollEnded", - "receiveFollowRequest", - "followRequestAccepted", - "groupInvited", - "app", -] as const; - -export const noteVisibilities = [ - "public", - "home", - "followers", - "specified", -] as const; - -export const mutedNoteReasons = ["word", "manual", "spam", "other"] as const; - -export const ffVisibility = ["public", "followers", "private"] as const; - -export const permissions = [ - "read:account", - "write:account", - "read:blocks", - "write:blocks", - "read:drive", - "write:drive", - "read:favorites", - "write:favorites", - "read:following", - "write:following", - "read:messaging", - "write:messaging", - "read:mutes", - "write:mutes", - "write:notes", - "read:notifications", - "write:notifications", - "read:reactions", - "write:reactions", - "write:votes", - "read:pages", - "write:pages", - "write:page-likes", - "read:page-likes", - "read:user-groups", - "write:user-groups", - "read:channels", - "write:channels", - "read:gallery", - "write:gallery", - "read:gallery-likes", - "write:gallery-likes", -]; diff --git a/packages/calckey-js/src/entities.ts b/packages/calckey-js/src/entities.ts deleted file mode 100644 index 5a581a54cd..0000000000 --- a/packages/calckey-js/src/entities.ts +++ /dev/null @@ -1,494 +0,0 @@ -export type ID = string; -export type DateString = string; - -type TODO = Record; - -// NOTE: æ„”ćŠ›ă“ăźćž‹ă‚’äœżă†ăźăŻéżă‘ă€UserLite か UserDetailed ă‹æ˜Žç€șă™ă‚‹ă‚ˆă†ă« -export type User = UserLite | UserDetailed; - -export type UserLite = { - id: ID; - username: string; - host: string | null; - name: string; - onlineStatus: "online" | "active" | "offline" | "unknown"; - avatarUrl: string; - avatarBlurhash: string; - alsoKnownAs: string[]; - movedToUri: any; - emojis: { - name: string; - url: string; - }[]; - instance?: { - name: Instance["name"]; - softwareName: Instance["softwareName"]; - softwareVersion: Instance["softwareVersion"]; - iconUrl: Instance["iconUrl"]; - faviconUrl: Instance["faviconUrl"]; - themeColor: Instance["themeColor"]; - }; -}; - -export type UserDetailed = UserLite & { - bannerBlurhash: string | null; - bannerColor: string | null; - bannerUrl: string | null; - birthday: string | null; - createdAt: DateString; - description: string | null; - ffVisibility: "public" | "followers" | "private"; - fields: { name: string; value: string }[]; - followersCount: number; - followingCount: number; - hasPendingFollowRequestFromYou: boolean; - hasPendingFollowRequestToYou: boolean; - isAdmin: boolean; - isBlocked: boolean; - isBlocking: boolean; - isBot: boolean; - isCat: boolean; - isFollowed: boolean; - isFollowing: boolean; - isLocked: boolean; - isModerator: boolean; - isMuted: boolean; - isRenoteMuted: boolean; - isSilenced: boolean; - isSuspended: boolean; - lang: string | null; - lastFetchedAt?: DateString; - location: string | null; - notesCount: number; - pinnedNoteIds: ID[]; - pinnedNotes: Note[]; - pinnedPage: Page | null; - pinnedPageId: string | null; - publicReactions: boolean; - securityKeys: boolean; - twoFactorEnabled: boolean; - updatedAt: DateString | null; - uri: string | null; - url: string | null; -}; - -export type UserGroup = TODO; - -export type UserList = { - id: ID; - createdAt: DateString; - name: string; - userIds: User["id"][]; -}; - -export type MeDetailed = UserDetailed & { - avatarId: DriveFile["id"]; - bannerId: DriveFile["id"]; - autoAcceptFollowed: boolean; - alwaysMarkNsfw: boolean; - carefulBot: boolean; - emailNotificationTypes: string[]; - hasPendingReceivedFollowRequest: boolean; - hasUnreadAnnouncement: boolean; - hasUnreadAntenna: boolean; - hasUnreadChannel: boolean; - hasUnreadMentions: boolean; - hasUnreadMessagingMessage: boolean; - hasUnreadNotification: boolean; - hasUnreadSpecifiedNotes: boolean; - hideOnlineStatus: boolean; - injectFeaturedNote: boolean; - integrations: Record; - isDeleted: boolean; - isExplorable: boolean; - mutedWords: string[][]; - mutingNotificationTypes: string[]; - noCrawle: boolean; - preventAiLearning: boolean; - receiveAnnouncementEmail: boolean; - usePasswordLessLogin: boolean; - [other: string]: any; -}; - -export type DriveFile = { - id: ID; - createdAt: DateString; - isSensitive: boolean; - name: string; - thumbnailUrl: string; - url: string; - type: string; - size: number; - md5: string; - blurhash: string; - comment: string | null; - properties: Record; -}; - -export type DriveFolder = TODO; - -export type GalleryPost = TODO; - -export type Note = { - id: ID; - createdAt: DateString; - text: string | null; - cw: string | null; - user: User; - userId: User["id"]; - reply?: Note; - replyId: Note["id"]; - renote?: Note; - renoteId: Note["id"]; - files: DriveFile[]; - fileIds: DriveFile["id"][]; - visibility: "public" | "home" | "followers" | "specified"; - visibleUserIds?: User["id"][]; - localOnly?: boolean; - channel?: Channel["id"]; - myReaction?: string; - reactions: Record; - renoteCount: number; - repliesCount: number; - poll?: { - expiresAt: DateString | null; - multiple: boolean; - choices: { - isVoted: boolean; - text: string; - votes: number; - }[]; - }; - emojis: { - name: string; - url: string; - }[]; - uri?: string; - url?: string; - updatedAt?: DateString; - isHidden?: boolean; -}; - -export type NoteReaction = { - id: ID; - createdAt: DateString; - user: UserLite; - type: string; -}; - -export type Notification = { - id: ID; - createdAt: DateString; - isRead: boolean; -} & ( - | { - type: "reaction"; - reaction: string; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "reply"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "renote"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "quote"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "mention"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "pollVote"; - user: User; - userId: User["id"]; - note: Note; - } - | { - type: "follow"; - user: User; - userId: User["id"]; - } - | { - type: "followRequestAccepted"; - user: User; - userId: User["id"]; - } - | { - type: "receiveFollowRequest"; - user: User; - userId: User["id"]; - } - | { - type: "groupInvited"; - invitation: UserGroup; - user: User; - userId: User["id"]; - } - | { - type: "app"; - header?: string | null; - body: string; - icon?: string | null; - } -); - -export type MessagingMessage = { - id: ID; - createdAt: DateString; - file: DriveFile | null; - fileId: DriveFile["id"] | null; - isRead: boolean; - reads: User["id"][]; - text: string | null; - user: User; - userId: User["id"]; - recipient?: User | null; - recipientId: User["id"] | null; - group?: UserGroup | null; - groupId: UserGroup["id"] | null; -}; - -export type CustomEmoji = { - id: string; - name: string; - url: string; - category: string; - aliases: string[]; -}; - -export type LiteInstanceMetadata = { - maintainerName: string | null; - maintainerEmail: string | null; - version: string; - name: string | null; - uri: string; - description: string | null; - tosUrl: string | null; - disableRegistration: boolean; - disableLocalTimeline: boolean; - disableRecommendedTimeline: boolean; - disableGlobalTimeline: boolean; - driveCapacityPerLocalUserMb: number; - driveCapacityPerRemoteUserMb: number; - enableHcaptcha: boolean; - hcaptchaSiteKey: string | null; - enableRecaptcha: boolean; - recaptchaSiteKey: string | null; - swPublickey: string | null; - maxNoteTextLength: number; - enableEmail: boolean; - enableTwitterIntegration: boolean; - enableGithubIntegration: boolean; - enableDiscordIntegration: boolean; - enableServiceWorker: boolean; - emojis: CustomEmoji[]; - ads: { - id: ID; - ratio: number; - place: string; - url: string; - imageUrl: string; - }[]; -}; - -export type DetailedInstanceMetadata = LiteInstanceMetadata & { - features: Record; -}; - -export type InstanceMetadata = LiteInstanceMetadata | DetailedInstanceMetadata; - -export type ServerInfo = { - machine: string; - cpu: { - model: string; - cores: number; - }; - mem: { - total: number; - }; - fs: { - total: number; - used: number; - }; -}; - -export type Stats = { - notesCount: number; - originalNotesCount: number; - usersCount: number; - originalUsersCount: number; - instances: number; - driveUsageLocal: number; - driveUsageRemote: number; -}; - -export type Page = { - id: ID; - createdAt: DateString; - updatedAt: DateString; - userId: User["id"]; - user: User; - content: Record[]; - variables: Record[]; - title: string; - name: string; - summary: string | null; - hideTitleWhenPinned: boolean; - alignCenter: boolean; - font: string; - script: string; - eyeCatchingImageId: DriveFile["id"] | null; - eyeCatchingImage: DriveFile | null; - attachedFiles: any; - likedCount: number; - isLiked?: boolean; -}; - -export type PageEvent = { - pageId: Page["id"]; - event: string; - var: any; - userId: User["id"]; - user: User; -}; - -export type Announcement = { - id: ID; - createdAt: DateString; - updatedAt: DateString | null; - text: string; - title: string; - imageUrl: string | null; - isRead?: boolean; -}; - -export type Antenna = { - id: ID; - createdAt: DateString; - name: string; - keywords: string[][]; // TODO - excludeKeywords: string[][]; // TODO - src: "home" | "all" | "users" | "list" | "group" | "instances"; - userListId: ID | null; // TODO - userGroupId: ID | null; // TODO - users: string[]; // TODO - instances: string[]; - caseSensitive: boolean; - notify: boolean; - withReplies: boolean; - withFile: boolean; - hasUnreadNote: boolean; -}; - -export type App = TODO; - -export type AuthSession = { - id: ID; - app: App; - token: string; -}; - -export type Ad = TODO; - -export type Clip = TODO; - -export type NoteFavorite = { - id: ID; - createdAt: DateString; - noteId: Note["id"]; - note: Note; -}; - -export type FollowRequest = { - id: ID; - follower: User; - followee: User; -}; - -export type Channel = { - id: ID; - // TODO -}; - -export type Following = { - id: ID; - createdAt: DateString; - followerId: User["id"]; - followeeId: User["id"]; -}; - -export type FollowingFolloweePopulated = Following & { - followee: UserDetailed; -}; - -export type FollowingFollowerPopulated = Following & { - follower: UserDetailed; -}; - -export type Blocking = { - id: ID; - createdAt: DateString; - blockeeId: User["id"]; - blockee: UserDetailed; -}; - -export type Instance = { - id: ID; - caughtAt: DateString; - host: string; - usersCount: number; - notesCount: number; - followingCount: number; - followersCount: number; - driveUsage: number; - driveFiles: number; - latestRequestSentAt: DateString | null; - latestStatus: number | null; - latestRequestReceivedAt: DateString | null; - lastCommunicatedAt: DateString; - isNotResponding: boolean; - isSuspended: boolean; - softwareName: string | null; - softwareVersion: string | null; - openRegistrations: boolean | null; - name: string | null; - description: string | null; - maintainerName: string | null; - maintainerEmail: string | null; - iconUrl: string | null; - faviconUrl: string | null; - themeColor: string | null; - infoUpdatedAt: DateString | null; -}; - -export type Signin = { - id: ID; - createdAt: DateString; - ip: string; - headers: Record; - success: boolean; -}; - -export type UserSorting = - | "+follower" - | "-follower" - | "+createdAt" - | "-createdAt" - | "+updatedAt" - | "-updatedAt"; -export type OriginType = "combined" | "local" | "remote"; diff --git a/packages/calckey-js/src/index.ts b/packages/calckey-js/src/index.ts deleted file mode 100644 index 128ed8c535..0000000000 --- a/packages/calckey-js/src/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Endpoints } from "./api.types"; -import Stream, { Connection } from "./streaming"; -import { Channels } from "./streaming.types"; -import { Acct } from "./acct"; -import * as consts from "./consts"; - -export { Endpoints, Stream, Connection as ChannelConnection, Channels, Acct }; - -export const permissions = consts.permissions; -export const notificationTypes = consts.notificationTypes; -export const noteVisibilities = consts.noteVisibilities; -export const mutedNoteReasons = consts.mutedNoteReasons; -export const ffVisibility = consts.ffVisibility; - -// api extractor not supported yet -//export * as api from './api'; -//export * as entities from './entities'; -import * as api from "./api"; -import * as entities from "./entities"; -export { api, entities }; diff --git a/packages/calckey-js/src/streaming.ts b/packages/calckey-js/src/streaming.ts deleted file mode 100644 index 924e33a45c..0000000000 --- a/packages/calckey-js/src/streaming.ts +++ /dev/null @@ -1,391 +0,0 @@ -import { EventEmitter } from "eventemitter3"; -import ReconnectingWebsocket from "reconnecting-websocket"; -import { BroadcastEvents, Channels } from "./streaming.types"; - -function autobind(instance: any): void { - const prototype = Object.getPrototypeOf(instance); - - const propertyNames = Object.getOwnPropertyNames(prototype); - - for (const key of propertyNames) { - const descriptor = Object.getOwnPropertyDescriptor(prototype, key); - - if (typeof descriptor?.value === "function" && key !== "constructor") { - Object.defineProperty(instance, key, { - value: instance[key].bind(instance), - enumerable: descriptor.enumerable, - configurable: descriptor.configurable, - writable: descriptor.writable, - }); - } - } -} - -export function urlQuery( - obj: Record, -): string { - const params = Object.entries(obj) - .filter(([, v]) => (Array.isArray(v) ? v.length : v !== undefined)) - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - .reduce( - (a, [k, v]) => ((a[k] = v!), a), - {} as Record, - ); - - return Object.entries(params) - .map((e) => `${e[0]}=${encodeURIComponent(e[1])}`) - .join("&"); -} - -type AnyOf> = T[keyof T]; - -type StreamEvents = { - _connected_: void; - _disconnected_: void; -} & BroadcastEvents; - -/** - * Misskey stream connection - */ -export default class Stream extends EventEmitter { - private stream: ReconnectingWebsocket; - public state: "initializing" | "reconnecting" | "connected" = "initializing"; - private sharedConnectionPools: Pool[] = []; - private sharedConnections: SharedConnection[] = []; - private nonSharedConnections: NonSharedConnection[] = []; - private idCounter = 0; - - constructor( - origin: string, - user: { token: string } | null, - options?: { - WebSocket?: any; - }, - ) { - super(); - autobind(this); - options = options || {}; - - const query = urlQuery({ - i: user?.token, - - // To prevent cache of an HTML such as error screen - _t: Date.now(), - }); - - const wsOrigin = origin - .replace("http://", "ws://") - .replace("https://", "wss://"); - - this.stream = new ReconnectingWebsocket( - `${wsOrigin}/streaming?${query}`, - "", - { - minReconnectionDelay: 1, // https://github.com/pladaria/reconnecting-websocket/issues/91 - WebSocket: options.WebSocket, - }, - ); - this.stream.addEventListener("open", this.onOpen); - this.stream.addEventListener("close", this.onClose); - this.stream.addEventListener("message", this.onMessage); - } - - private genId(): string { - return (++this.idCounter).toString(); - } - - public useChannel( - channel: C, - params?: Channels[C]["params"], - name?: string, - ): Connection { - if (params) { - return this.connectToChannel(channel, params); - } else { - return this.useSharedConnection(channel, name); - } - } - - private useSharedConnection( - channel: C, - name?: string, - ): SharedConnection { - let pool = this.sharedConnectionPools.find((p) => p.channel === channel); - - if (pool == null) { - pool = new Pool(this, channel, this.genId()); - this.sharedConnectionPools.push(pool); - } - - const connection = new SharedConnection(this, channel, pool, name); - this.sharedConnections.push(connection); - return connection; - } - - public removeSharedConnection(connection: SharedConnection): void { - this.sharedConnections = this.sharedConnections.filter( - (c) => c !== connection, - ); - } - - public removeSharedConnectionPool(pool: Pool): void { - this.sharedConnectionPools = this.sharedConnectionPools.filter( - (p) => p !== pool, - ); - } - - private connectToChannel( - channel: C, - params: Channels[C]["params"], - ): NonSharedConnection { - const connection = new NonSharedConnection( - this, - channel, - this.genId(), - params, - ); - this.nonSharedConnections.push(connection); - return connection; - } - - public disconnectToChannel(connection: NonSharedConnection): void { - this.nonSharedConnections = this.nonSharedConnections.filter( - (c) => c !== connection, - ); - } - - /** - * Callback of when open connection - */ - private onOpen(): void { - const isReconnect = this.state === "reconnecting"; - - this.state = "connected"; - this.emit("_connected_"); - - // ăƒăƒŁăƒłăƒăƒ«ć†æŽ„ç¶š - if (isReconnect) { - for (const p of this.sharedConnectionPools) p.connect(); - for (const c of this.nonSharedConnections) c.connect(); - } - } - - /** - * Callback of when close connection - */ - private onClose(): void { - if (this.state === "connected") { - this.state = "reconnecting"; - this.emit("_disconnected_"); - } - } - - /** - * Callback of when received a message from connection - */ - private onMessage(message: { data: string }): void { - const { type, body } = JSON.parse(message.data); - - if (type === "channel") { - const id = body.id; - - let connections: Connection[]; - - connections = this.sharedConnections.filter((c) => c.id === id); - - if (connections.length === 0) { - const found = this.nonSharedConnections.find((c) => c.id === id); - if (found) { - connections = [found]; - } - } - - for (const c of connections) { - c.emit(body.type, body.body); - c.inCount++; - } - } else { - this.emit(type, body); - } - } - - /** - * Send a message to connection - */ - public send(typeOrPayload: any, payload?: any): void { - const data = - payload === undefined - ? typeOrPayload - : { - type: typeOrPayload, - body: payload, - }; - - this.stream.send(JSON.stringify(data)); - } - - /** - * Close this connection - */ - public close(): void { - this.stream.close(); - } -} - -// TODO: ă“ă‚Œă‚‰ăźă‚Żăƒ©ă‚čを Stream ă‚Żăƒ©ă‚čăźć†…éƒšă‚Żăƒ©ă‚čă«ă™ă‚Œă°äœ™èšˆăȘメンバをpublicにしăȘă„ă§æžˆă‚€ă‹ă‚‚ïŒŸ -// もしくは @internal ă‚’äœżă†ïŒŸ https://www.typescriptlang.org/tsconfig#stripInternal -class Pool { - public channel: string; - public id: string; - protected stream: Stream; - public users = 0; - private disposeTimerId: any; - private isConnected = false; - - constructor(stream: Stream, channel: string, id: string) { - this.channel = channel; - this.stream = stream; - this.id = id; - - this.stream.on("_disconnected_", this.onStreamDisconnected); - } - - private onStreamDisconnected(): void { - this.isConnected = false; - } - - public inc(): void { - if (this.users === 0 && !this.isConnected) { - this.connect(); - } - - this.users++; - - // ă‚żă‚€ăƒžăƒŒè§Łé™€ - if (this.disposeTimerId) { - clearTimeout(this.disposeTimerId); - this.disposeTimerId = null; - } - } - - public dec(): void { - this.users--; - - // ăăźă‚łăƒă‚Żă‚·ăƒ§ăƒłăźćˆ©ç”šè€…ăŒèȘ°ă‚‚いăȘくăȘったら - if (this.users === 0) { - // ăŸăŸç›Žăă«ć†ćˆ©ç”šă•ă‚Œă‚‹ćŻèƒœæ€§ăŒă‚ă‚‹ăźă§ă€äž€ćźšæ™‚é–“ćŸ…ăĄă€ - // æ–°ăŸăȘćˆ©ç”šè€…ăŒçŸă‚ŒăȘă‘ă‚Œă°ă‚łăƒă‚Żă‚·ăƒ§ăƒłă‚’ćˆ‡æ–­ă™ă‚‹ - this.disposeTimerId = setTimeout(() => { - this.disconnect(); - }, 3000); - } - } - - public connect(): void { - if (this.isConnected) return; - this.isConnected = true; - this.stream.send("connect", { - channel: this.channel, - id: this.id, - }); - } - - private disconnect(): void { - this.stream.off("_disconnected_", this.onStreamDisconnected); - this.stream.send("disconnect", { id: this.id }); - this.stream.removeSharedConnectionPool(this); - } -} - -export abstract class Connection< - Channel extends AnyOf = any, -> extends EventEmitter { - public channel: string; - protected stream: Stream; - public abstract id: string; - - public name?: string; // for debug - public inCount = 0; // for debug - public outCount = 0; // for debug - - constructor(stream: Stream, channel: string, name?: string) { - super(); - - this.stream = stream; - this.channel = channel; - this.name = name; - } - - public send( - type: T, - body: Channel["receives"][T], - ): void { - this.stream.send("ch", { - id: this.id, - type: type, - body: body, - }); - - this.outCount++; - } - - public abstract dispose(): void; -} - -class SharedConnection< - Channel extends AnyOf = any, -> extends Connection { - private pool: Pool; - - public get id(): string { - return this.pool.id; - } - - constructor(stream: Stream, channel: string, pool: Pool, name?: string) { - super(stream, channel, name); - - this.pool = pool; - this.pool.inc(); - } - - public dispose(): void { - this.pool.dec(); - this.removeAllListeners(); - this.stream.removeSharedConnection(this); - } -} - -class NonSharedConnection< - Channel extends AnyOf = any, -> extends Connection { - public id: string; - protected params: Channel["params"]; - - constructor( - stream: Stream, - channel: string, - id: string, - params: Channel["params"], - ) { - super(stream, channel); - - this.params = params; - this.id = id; - - this.connect(); - } - - public connect(): void { - this.stream.send("connect", { - channel: this.channel, - id: this.id, - params: this.params, - }); - } - - public dispose(): void { - this.removeAllListeners(); - this.stream.send("disconnect", { id: this.id }); - this.stream.disconnectToChannel(this); - } -} diff --git a/packages/calckey-js/src/streaming.types.ts b/packages/calckey-js/src/streaming.types.ts deleted file mode 100644 index c0b0b030cd..0000000000 --- a/packages/calckey-js/src/streaming.types.ts +++ /dev/null @@ -1,197 +0,0 @@ -import type { - Antenna, - CustomEmoji, - DriveFile, - MeDetailed, - MessagingMessage, - Note, - Notification, - PageEvent, - User, - UserGroup, -} from "./entities"; - -type FIXME = any; - -export type Channels = { - main: { - params: null; - events: { - notification: (payload: Notification) => void; - mention: (payload: Note) => void; - reply: (payload: Note) => void; - renote: (payload: Note) => void; - follow: (payload: User) => void; // è‡Șćˆ†ăŒä»–äșșă‚’ăƒ•ă‚©ăƒ­ăƒŒă—ăŸăšă - followed: (payload: User) => void; // 他äșșがè‡Șćˆ†ă‚’ăƒ•ă‚©ăƒ­ăƒŒă—ăŸăšă - unfollow: (payload: User) => void; // è‡Șćˆ†ăŒä»–äșșă‚’ăƒ•ă‚©ăƒ­ăƒŒè§Łé™€ă—ăŸăšă - meUpdated: (payload: MeDetailed) => void; - pageEvent: (payload: PageEvent) => void; - urlUploadFinished: (payload: { marker: string; file: DriveFile }) => void; - readAllNotifications: () => void; - unreadNotification: (payload: Notification) => void; - unreadMention: (payload: Note["id"]) => void; - readAllUnreadMentions: () => void; - unreadSpecifiedNote: (payload: Note["id"]) => void; - readAllUnreadSpecifiedNotes: () => void; - readAllMessagingMessages: () => void; - messagingMessage: (payload: MessagingMessage) => void; - unreadMessagingMessage: (payload: MessagingMessage) => void; - readAllAntennas: () => void; - unreadAntenna: (payload: Antenna) => void; - readAllAnnouncements: () => void; - readAllChannels: () => void; - unreadChannel: (payload: Note["id"]) => void; - myTokenRegenerated: () => void; - reversiNoInvites: () => void; - reversiInvited: (payload: FIXME) => void; - signin: (payload: FIXME) => void; - registryUpdated: (payload: { - scope?: string[]; - key: string; - value: any | null; - }) => void; - driveFileCreated: (payload: DriveFile) => void; - readAntenna: (payload: Antenna) => void; - }; - receives: null; - }; - homeTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - localTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - hybridTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - recommendedTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - globalTimeline: { - params: null; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - antenna: { - params: { - antennaId: Antenna["id"]; - }; - events: { - note: (payload: Note) => void; - }; - receives: null; - }; - messaging: { - params: { - otherparty?: User["id"] | null; - group?: UserGroup["id"] | null; - }; - events: { - message: (payload: MessagingMessage) => void; - deleted: (payload: MessagingMessage["id"]) => void; - read: (payload: MessagingMessage["id"][]) => void; - typers: (payload: User[]) => void; - }; - receives: { - read: { - id: MessagingMessage["id"]; - }; - }; - }; - serverStats: { - params: null; - events: { - stats: (payload: FIXME) => void; - }; - receives: { - requestLog: { - id: string | number; - length: number; - }; - }; - }; - queueStats: { - params: null; - events: { - stats: (payload: FIXME) => void; - }; - receives: { - requestLog: { - id: string | number; - length: number; - }; - }; - }; -}; - -export type NoteUpdatedEvent = - | { - id: Note["id"]; - type: "reacted"; - body: { - reaction: string; - userId: User["id"]; - }; - } - | { - id: Note["id"]; - type: "unreacted"; - body: { - reaction: string; - userId: User["id"]; - }; - } - | { - id: Note["id"]; - type: "deleted"; - body: { - deletedAt: string; - }; - } - | { - id: Note["id"]; - type: "pollVoted"; - body: { - choice: number; - userId: User["id"]; - }; - } - | { - id: Note["id"]; - type: "replied"; - body: { - id: Note["id"]; - }; - } - | { - id: Note["id"]; - type: "updated"; - body: { - updatedAt: string; - }; - }; - -export type BroadcastEvents = { - noteUpdated: (payload: NoteUpdatedEvent) => void; - emojiAdded: (payload: { - emoji: CustomEmoji; - }) => void; -}; diff --git a/packages/calckey-js/test-d/api.ts b/packages/calckey-js/test-d/api.ts deleted file mode 100644 index 82dbae245c..0000000000 --- a/packages/calckey-js/test-d/api.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { expectType } from "tsd"; -import * as Misskey from "../src"; - -describe("API", () => { - test("success", async () => { - const cli = new Misskey.api.APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - const res = await cli.request("meta", { detail: true }); - expectType(res); - }); - - test("conditional respose type (meta)", async () => { - const cli = new Misskey.api.APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - - const res = await cli.request("meta", { detail: true }); - expectType(res); - - const res2 = await cli.request("meta", { detail: false }); - expectType(res2); - - const res3 = await cli.request("meta", {}); - expectType(res3); - - const res4 = await cli.request("meta", { detail: true as boolean }); - expectType< - | Misskey.entities.LiteInstanceMetadata - | Misskey.entities.DetailedInstanceMetadata - >(res4); - }); - - test("conditional respose type (users/show)", async () => { - const cli = new Misskey.api.APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - - const res = await cli.request("users/show", { userId: "xxxxxxxx" }); - expectType(res); - - const res2 = await cli.request("users/show", { userIds: ["xxxxxxxx"] }); - expectType(res2); - }); -}); diff --git a/packages/calckey-js/test-d/streaming.ts b/packages/calckey-js/test-d/streaming.ts deleted file mode 100644 index f9c414da70..0000000000 --- a/packages/calckey-js/test-d/streaming.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { expectType } from "tsd"; -import * as Misskey from "../src"; - -describe("Streaming", () => { - test("emit type", async () => { - const stream = new Misskey.Stream("https://calckey.test", { - token: "TOKEN", - }); - const mainChannel = stream.useChannel("main"); - mainChannel.on("notification", (notification) => { - expectType(notification); - }); - }); - - test("params type", async () => { - const stream = new Misskey.Stream("https://calckey.test", { - token: "TOKEN", - }); - // TODO: 「stream.useChannel た珏äșŒćŒ•æ•°ăšă—ăŠć—ă‘ć…„れる枋が - // { - // otherparty?: User['id'] | null; - // group?: UserGroup['id'] | null; - // } - // にăȘっどいる」べいうテă‚čăƒˆă‚’èĄŒă„ăŸă„ă‘ă©tsdă§ăźæ›žăæ–čがわからăȘい - const messagingChannel = stream.useChannel("messaging", { - otherparty: "aaa", - }); - messagingChannel.on("message", (message) => { - expectType(message); - }); - }); -}); diff --git a/packages/calckey-js/test/api.ts b/packages/calckey-js/test/api.ts deleted file mode 100644 index 5de41e1ed1..0000000000 --- a/packages/calckey-js/test/api.ts +++ /dev/null @@ -1,222 +0,0 @@ -import { APIClient, isAPIError } from "../src/api"; -import { enableFetchMocks } from "jest-fetch-mock"; - -enableFetchMocks(); - -function getFetchCall(call: any[]) { - const { body, method } = call[1]; - if (body != null && typeof body !== "string") { - throw new Error("invalid body"); - } - return { - url: call[0], - method: method, - body: JSON.parse(body as any), - }; -} - -describe("API", () => { - test("success", async () => { - fetchMock.resetMocks(); - fetchMock.mockResponse(async (req) => { - const body = await req.json(); - if (req.method === "POST" && req.url === "https://calckey.test/api/i") { - if (body.i === "TOKEN") { - return JSON.stringify({ id: "foo" }); - } else { - return { status: 400 }; - } - } else { - return { status: 404 }; - } - }); - - const cli = new APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - - const res = await cli.request("i"); - - expect(res).toEqual({ - id: "foo", - }); - - expect(getFetchCall(fetchMock.mock.calls[0])).toEqual({ - url: "https://calckey.test/api/i", - method: "POST", - body: { i: "TOKEN" }, - }); - }); - - test("with params", async () => { - fetchMock.resetMocks(); - fetchMock.mockResponse(async (req) => { - const body = await req.json(); - if ( - req.method === "POST" && - req.url === "https://calckey.test/api/notes/show" - ) { - if (body.i === "TOKEN" && body.noteId === "aaaaa") { - return JSON.stringify({ id: "foo" }); - } else { - return { status: 400 }; - } - } else { - return { status: 404 }; - } - }); - - const cli = new APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - - const res = await cli.request("notes/show", { noteId: "aaaaa" }); - - expect(res).toEqual({ - id: "foo", - }); - - expect(getFetchCall(fetchMock.mock.calls[0])).toEqual({ - url: "https://calckey.test/api/notes/show", - method: "POST", - body: { i: "TOKEN", noteId: "aaaaa" }, - }); - }); - - test("204 No Content で null ăŒèż”ă‚‹", async () => { - fetchMock.resetMocks(); - fetchMock.mockResponse(async (req) => { - if ( - req.method === "POST" && - req.url === "https://calckey.test/api/reset-password" - ) { - return { status: 204 }; - } else { - return { status: 404 }; - } - }); - - const cli = new APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - - const res = await cli.request("reset-password", { - token: "aaa", - password: "aaa", - }); - - expect(res).toEqual(null); - - expect(getFetchCall(fetchMock.mock.calls[0])).toEqual({ - url: "https://calckey.test/api/reset-password", - method: "POST", - body: { i: "TOKEN", token: "aaa", password: "aaa" }, - }); - }); - - test("ă‚€ăƒłă‚čタンă‚čた credential ăŒæŒ‡ćźšă•ă‚ŒăŠă„ăŠă‚‚ćŒ•æ•°ă§ credential が null ăȘらば null べしどăƒȘクスă‚čトされる", async () => { - fetchMock.resetMocks(); - fetchMock.mockResponse(async (req) => { - const body = await req.json(); - if (req.method === "POST" && req.url === "https://calckey.test/api/i") { - if (typeof body.i === "string") { - return JSON.stringify({ id: "foo" }); - } else { - return { - status: 401, - body: JSON.stringify({ - error: { - message: "Credential required.", - code: "CREDENTIAL_REQUIRED", - id: "1384574d-a912-4b81-8601-c7b1c4085df1", - }, - }), - }; - } - } else { - return { status: 404 }; - } - }); - - try { - const cli = new APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - - await cli.request("i", {}, null); - } catch (e) { - expect(isAPIError(e)).toEqual(true); - } - }); - - test("api error", async () => { - fetchMock.resetMocks(); - fetchMock.mockResponse(async (req) => { - return { - status: 500, - body: JSON.stringify({ - error: { - message: - "Internal error occurred. Please contact us if the error persists.", - code: "INTERNAL_ERROR", - id: "5d37dbcb-891e-41ca-a3d6-e690c97775ac", - kind: "server", - }, - }), - }; - }); - - try { - const cli = new APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - - await cli.request("i"); - } catch (e: any) { - expect(isAPIError(e)).toEqual(true); - expect(e.id).toEqual("5d37dbcb-891e-41ca-a3d6-e690c97775ac"); - } - }); - - test("network error", async () => { - fetchMock.resetMocks(); - fetchMock.mockAbort(); - - try { - const cli = new APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - - await cli.request("i"); - } catch (e) { - expect(isAPIError(e)).toEqual(false); - } - }); - - test("json parse error", async () => { - fetchMock.resetMocks(); - fetchMock.mockResponse(async (req) => { - return { - status: 500, - body: "I AM NOT JSON", - }; - }); - - try { - const cli = new APIClient({ - origin: "https://calckey.test", - credential: "TOKEN", - }); - - await cli.request("i"); - } catch (e) { - expect(isAPIError(e)).toEqual(false); - } - }); -}); diff --git a/packages/calckey-js/test/streaming.ts b/packages/calckey-js/test/streaming.ts deleted file mode 100644 index 1a3a71374a..0000000000 --- a/packages/calckey-js/test/streaming.ts +++ /dev/null @@ -1,181 +0,0 @@ -import WS from "jest-websocket-mock"; -import Stream from "../src/streaming"; - -describe("Streaming", () => { - test("useChannel", async () => { - const server = new WS("wss://calckey.test/streaming"); - const stream = new Stream("https://calckey.test", { token: "TOKEN" }); - const mainChannelReceived: any[] = []; - const main = stream.useChannel("main"); - main.on("meUpdated", (payload) => { - mainChannelReceived.push(payload); - }); - - const ws = await server.connected; - expect(new URLSearchParams(new URL(ws.url).search).get("i")).toEqual( - "TOKEN", - ); - - const msg = JSON.parse((await server.nextMessage) as string); - const mainChannelId = msg.body.id; - expect(msg.type).toEqual("connect"); - expect(msg.body.channel).toEqual("main"); - expect(mainChannelId != null).toEqual(true); - - server.send( - JSON.stringify({ - type: "channel", - body: { - id: mainChannelId, - type: "meUpdated", - body: { - id: "foo", - }, - }, - }), - ); - - expect(mainChannelReceived[0]).toEqual({ - id: "foo", - }); - - stream.close(); - server.close(); - }); - - test("useChannel with parameters", async () => { - const server = new WS("wss://calckey.test/streaming"); - const stream = new Stream("https://calckey.test", { token: "TOKEN" }); - const messagingChannelReceived: any[] = []; - const messaging = stream.useChannel("messaging", { otherparty: "aaa" }); - messaging.on("message", (payload) => { - messagingChannelReceived.push(payload); - }); - - const ws = await server.connected; - expect(new URLSearchParams(new URL(ws.url).search).get("i")).toEqual( - "TOKEN", - ); - - const msg = JSON.parse((await server.nextMessage) as string); - const messagingChannelId = msg.body.id; - expect(msg.type).toEqual("connect"); - expect(msg.body.channel).toEqual("messaging"); - expect(msg.body.params).toEqual({ otherparty: "aaa" }); - expect(messagingChannelId != null).toEqual(true); - - server.send( - JSON.stringify({ - type: "channel", - body: { - id: messagingChannelId, - type: "message", - body: { - id: "foo", - }, - }, - }), - ); - - expect(messagingChannelReceived[0]).toEqual({ - id: "foo", - }); - - stream.close(); - server.close(); - }); - - test("ăĄă‚ƒă‚“ăšăƒăƒŁăƒłăƒăƒ«ă”ăšă«idが異ăȘる", async () => { - const server = new WS("wss://calckey.test/streaming"); - const stream = new Stream("https://calckey.test", { token: "TOKEN" }); - - stream.useChannel("messaging", { otherparty: "aaa" }); - stream.useChannel("messaging", { otherparty: "bbb" }); - - const ws = await server.connected; - expect(new URLSearchParams(new URL(ws.url).search).get("i")).toEqual( - "TOKEN", - ); - - const msg = JSON.parse((await server.nextMessage) as string); - const messagingChannelId = msg.body.id; - const msg2 = JSON.parse((await server.nextMessage) as string); - const messagingChannelId2 = msg2.body.id; - - expect(messagingChannelId != null).toEqual(true); - expect(messagingChannelId2 != null).toEqual(true); - expect(messagingChannelId).not.toEqual(messagingChannelId2); - - stream.close(); - server.close(); - }); - - test("Connection#send", async () => { - const server = new WS("wss://calckey.test/streaming"); - const stream = new Stream("https://calckey.test", { token: "TOKEN" }); - - const messaging = stream.useChannel("messaging", { otherparty: "aaa" }); - messaging.send("read", { id: "aaa" }); - - const ws = await server.connected; - expect(new URLSearchParams(new URL(ws.url).search).get("i")).toEqual( - "TOKEN", - ); - - const connectMsg = JSON.parse((await server.nextMessage) as string); - const channelId = connectMsg.body.id; - const msg = JSON.parse((await server.nextMessage) as string); - - expect(msg.type).toEqual("ch"); - expect(msg.body.id).toEqual(channelId); - expect(msg.body.type).toEqual("read"); - expect(msg.body.body).toEqual({ id: "aaa" }); - - stream.close(); - server.close(); - }); - - test("Connection#dispose", async () => { - const server = new WS("wss://calckey.test/streaming"); - const stream = new Stream("https://calckey.test", { token: "TOKEN" }); - const mainChannelReceived: any[] = []; - const main = stream.useChannel("main"); - main.on("meUpdated", (payload) => { - mainChannelReceived.push(payload); - }); - - const ws = await server.connected; - expect(new URLSearchParams(new URL(ws.url).search).get("i")).toEqual( - "TOKEN", - ); - - const msg = JSON.parse((await server.nextMessage) as string); - const mainChannelId = msg.body.id; - expect(msg.type).toEqual("connect"); - expect(msg.body.channel).toEqual("main"); - expect(mainChannelId != null).toEqual(true); - main.dispose(); - - server.send( - JSON.stringify({ - type: "channel", - body: { - id: mainChannelId, - type: "meUpdated", - body: { - id: "foo", - }, - }, - }), - ); - - expect(mainChannelReceived.length).toEqual(0); - - stream.close(); - server.close(); - }); - - // TODO: SharedConnection#dispose ă—ăŠäž€ćźšæ™‚é–“ç”ŒăŁăŸă‚‰ disconnect ăƒĄăƒƒă‚»ăƒŒă‚žăŒă‚”ăƒŒăƒăƒŒă«é€ă‚‰ă‚ŒăŠăă‚‹ă‹ăźăƒ†ă‚čト - - // TODO: ăƒăƒŁăƒłăƒăƒ«æŽ„ç¶šăŒäœżă„ăŸă‚ă•ă‚Œă‚‹ă‹ăźăƒ†ă‚čト -}); diff --git a/packages/calckey-js/tsconfig.json b/packages/calckey-js/tsconfig.json deleted file mode 100644 index 642bcc45be..0000000000 --- a/packages/calckey-js/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "http://json.schemastore.org/tsconfig", - "compilerOptions": { - "target": "es2020", - "module": "commonjs", - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": "./built/", - "removeComments": true, - "strict": true, - "strictFunctionTypes": true, - "strictNullChecks": true, - "experimentalDecorators": true, - "noImplicitReturns": true, - "esModuleInterop": true - }, - "include": ["src/**/*"], - "exclude": ["node_modules", "test/**/*"] -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c7e490d45..b239ac497e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,9 +36,6 @@ importers: install-peers: specifier: ^1.0.4 version: 1.0.4 - rome: - specifier: ^12.1.3 - version: 12.1.3 start-server-and-test: specifier: 1.15.2 version: 1.15.2 @@ -123,9 +120,6 @@ importers: cacheable-lookup: specifier: 7.0.0 version: 7.0.0 - calckey-js: - specifier: workspace:* - version: link:../calckey-js cbor: specifier: 8.1.0 version: 8.1.0 @@ -537,65 +531,6 @@ importers: specifier: 8.13.0 version: 8.13.0 - packages/calckey-js: - dependencies: - eventemitter3: - specifier: ^4.0.7 - version: 4.0.7 - reconnecting-websocket: - specifier: ^4.4.0 - version: 4.4.0 - semver: - specifier: ^7.3.8 - version: 7.5.1 - optionalDependencies: - '@swc/core-android-arm64': - specifier: 1.3.11 - version: 1.3.11 - devDependencies: - '@microsoft/api-documenter': - specifier: ^7.22.21 - version: 7.22.21(@types/node@20.3.1) - '@microsoft/api-extractor': - specifier: ^7.36.0 - version: 7.36.0(@types/node@20.3.1) - '@swc/cli': - specifier: ^0.1.62 - version: 0.1.62(@swc/core@1.3.62)(chokidar@3.3.1) - '@swc/core': - specifier: ^1.3.62 - version: 1.3.62 - '@types/jest': - specifier: ^27.4.0 - version: 27.4.0 - '@types/node': - specifier: 20.3.1 - version: 20.3.1 - jest: - specifier: ^27.4.5 - version: 27.4.5(ts-node@10.4.0) - jest-fetch-mock: - specifier: ^3.0.3 - version: 3.0.3 - jest-websocket-mock: - specifier: ^2.2.1 - version: 2.2.1(mock-socket@9.0.8) - mock-socket: - specifier: ^9.0.8 - version: 9.0.8 - ts-jest: - specifier: ^27.1.2 - version: 27.1.2(@babel/core@7.22.8)(@types/jest@27.4.0)(jest@27.4.5)(typescript@5.1.3) - ts-node: - specifier: 10.4.0 - version: 10.4.0(@swc/core@1.3.62)(@types/node@20.3.1)(typescript@5.1.3) - tsd: - specifier: ^0.28.1 - version: 0.28.1 - typescript: - specifier: 5.1.3 - version: 5.1.3 - packages: /@ampproject/remapping@2.2.1: @@ -604,21 +539,19 @@ packages: dependencies: '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.18 + dev: false /@babel/code-frame@7.22.5: resolution: {integrity: sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==} engines: {node: '>=6.9.0'} dependencies: '@babel/highlight': 7.22.5 + dev: false /@babel/compat-data@7.22.5: resolution: {integrity: sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==} engines: {node: '>=6.9.0'} - - /@babel/compat-data@7.22.6: - resolution: {integrity: sha512-29tfsWTq2Ftu7MXmimyC0C5FDZv5DYxOZkh3XD3+QW4V/BYuv/LyEsjj3c0hqedEaDt6DBfDvexMKU8YevdqFg==} - engines: {node: '>=6.9.0'} - dev: true + dev: false /@babel/core@7.22.5: resolution: {integrity: sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==} @@ -641,29 +574,7 @@ packages: semver: 6.3.0 transitivePeerDependencies: - supports-color - - /@babel/core@7.22.8: - resolution: {integrity: sha512-75+KxFB4CZqYRXjx4NlR4J7yGvKumBuZTmV4NV6v09dVXXkuYVYLT68N6HCzLvfJ+fWCxQsntNzKwwIXL4bHnw==} - engines: {node: '>=6.9.0'} - dependencies: - '@ampproject/remapping': 2.2.1 - '@babel/code-frame': 7.22.5 - '@babel/generator': 7.22.7 - '@babel/helper-compilation-targets': 7.22.6(@babel/core@7.22.8) - '@babel/helper-module-transforms': 7.22.5 - '@babel/helpers': 7.22.6 - '@babel/parser': 7.22.7 - '@babel/template': 7.22.5 - '@babel/traverse': 7.22.8 - '@babel/types': 7.22.5 - '@nicolo-ribaudo/semver-v6': 6.3.3 - convert-source-map: 1.9.0 - debug: 4.3.4 - gensync: 1.0.0-beta.2 - json5: 2.2.3 - transitivePeerDependencies: - - supports-color - dev: true + dev: false /@babel/generator@7.22.5: resolution: {integrity: sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==} @@ -673,16 +584,7 @@ packages: '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.18 jsesc: 2.5.2 - - /@babel/generator@7.22.7: - resolution: {integrity: sha512-p+jPjMG+SI8yvIaxGgeW24u7q9+5+TGpZh8/CuB7RhBKd7RCy8FayNEFNNKrNK/eUcY/4ExQqLmyrvBXKsIcwQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.5 - '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.18 - jsesc: 2.5.2 - dev: true + dev: false /@babel/helper-compilation-targets@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==} @@ -696,24 +598,12 @@ packages: browserslist: 4.21.8 lru-cache: 5.1.1 semver: 6.3.0 - - /@babel/helper-compilation-targets@7.22.6(@babel/core@7.22.8): - resolution: {integrity: sha512-534sYEqWD9VfUm3IPn2SLcH4Q3P86XL+QvqdC7ZsFrzyyPF3T4XGiVghF6PTYNdWg6pXuoqXxNQAhbYeEInTzA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/compat-data': 7.22.6 - '@babel/core': 7.22.8 - '@babel/helper-validator-option': 7.22.5 - '@nicolo-ribaudo/semver-v6': 6.3.3 - browserslist: 4.21.9 - lru-cache: 5.1.1 - dev: true + dev: false /@babel/helper-environment-visitor@7.22.5: resolution: {integrity: sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==} engines: {node: '>=6.9.0'} + dev: false /@babel/helper-function-name@7.22.5: resolution: {integrity: sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==} @@ -721,18 +611,21 @@ packages: dependencies: '@babel/template': 7.22.5 '@babel/types': 7.22.5 + dev: false /@babel/helper-hoist-variables@7.22.5: resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} engines: {node: '>=6.9.0'} dependencies: '@babel/types': 7.22.5 + dev: false /@babel/helper-module-imports@7.22.5: resolution: {integrity: sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==} engines: {node: '>=6.9.0'} dependencies: '@babel/types': 7.22.5 + dev: false /@babel/helper-module-transforms@7.22.5: resolution: {integrity: sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==} @@ -748,41 +641,41 @@ packages: '@babel/types': 7.22.5 transitivePeerDependencies: - supports-color + dev: false /@babel/helper-plugin-utils@7.22.5: resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==} engines: {node: '>=6.9.0'} + dev: false /@babel/helper-simple-access@7.22.5: resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} engines: {node: '>=6.9.0'} dependencies: '@babel/types': 7.22.5 + dev: false /@babel/helper-split-export-declaration@7.22.5: resolution: {integrity: sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==} engines: {node: '>=6.9.0'} dependencies: '@babel/types': 7.22.5 - - /@babel/helper-split-export-declaration@7.22.6: - resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.5 - dev: true + dev: false /@babel/helper-string-parser@7.22.5: resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} engines: {node: '>=6.9.0'} + dev: false /@babel/helper-validator-identifier@7.22.5: resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==} engines: {node: '>=6.9.0'} + dev: false /@babel/helper-validator-option@7.22.5: resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==} engines: {node: '>=6.9.0'} + dev: false /@babel/helpers@7.22.5: resolution: {integrity: sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==} @@ -793,17 +686,7 @@ packages: '@babel/types': 7.22.5 transitivePeerDependencies: - supports-color - - /@babel/helpers@7.22.6: - resolution: {integrity: sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/template': 7.22.5 - '@babel/traverse': 7.22.8 - '@babel/types': 7.22.5 - transitivePeerDependencies: - - supports-color - dev: true + dev: false /@babel/highlight@7.22.5: resolution: {integrity: sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==} @@ -812,6 +695,7 @@ packages: '@babel/helper-validator-identifier': 7.22.5 chalk: 2.4.2 js-tokens: 4.0.0 + dev: false /@babel/parser@7.22.5: resolution: {integrity: sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==} @@ -819,14 +703,7 @@ packages: hasBin: true dependencies: '@babel/types': 7.22.5 - - /@babel/parser@7.22.7: - resolution: {integrity: sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==} - engines: {node: '>=6.0.0'} - hasBin: true - dependencies: - '@babel/types': 7.22.5 - dev: true + dev: false /@babel/plugin-proposal-export-namespace-from@7.18.9(@babel/core@7.22.5): resolution: {integrity: sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==} @@ -839,33 +716,6 @@ packages: '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.22.5) dev: false - /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.22.5): - resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.22.5): - resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.22.5): - resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.22.5): resolution: {integrity: sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==} peerDependencies: @@ -875,98 +725,6 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: false - /@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.22.5): - resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.22.5): - resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.22.5): - resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.22.5): - resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.22.5): - resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.22.5): - resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.22.5): - resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.22.5): - resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.22.5): - resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - - /@babel/plugin-syntax-typescript@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: true - /@babel/plugin-transform-modules-commonjs@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-B4pzOXj+ONRmuaQTg05b3y/4DuFz3WcCNAXPLb2Q0GT0TrGKGxNKV4jwsXts+StaM0LQczZbOpj8o1DLPDJIiA==} engines: {node: '>=6.9.0'} @@ -995,6 +753,7 @@ packages: '@babel/code-frame': 7.22.5 '@babel/parser': 7.22.5 '@babel/types': 7.22.5 + dev: false /@babel/traverse@7.22.5: resolution: {integrity: sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==} @@ -1012,24 +771,7 @@ packages: globals: 11.12.0 transitivePeerDependencies: - supports-color - - /@babel/traverse@7.22.8: - resolution: {integrity: sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.22.5 - '@babel/generator': 7.22.7 - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 - '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.22.7 - '@babel/types': 7.22.5 - debug: 4.3.4 - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - dev: true + dev: false /@babel/types@7.22.5: resolution: {integrity: sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==} @@ -1038,10 +780,7 @@ packages: '@babel/helper-string-parser': 7.22.5 '@babel/helper-validator-identifier': 7.22.5 to-fast-properties: 2.0.0 - - /@bcoe/v8-coverage@0.2.3: - resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} - dev: true + dev: false /@bull-board/api@5.2.0(@bull-board/ui@5.2.0): resolution: {integrity: sha512-1HGF2EF/4zI3+Cj414nQzwFprLXOJTlVdqXUf5UEBS4HtYafWv93mGIwkrD8S4Bpz4VSvM87adF6tQPJ7Ewt+w==} @@ -1126,18 +865,6 @@ packages: '@bull-board/api': 5.2.0(@bull-board/ui@5.2.0) dev: false - /@cspotcode/source-map-consumer@0.8.0: - resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==} - engines: {node: '>= 12'} - dev: true - - /@cspotcode/source-map-support@0.7.0: - resolution: {integrity: sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==} - engines: {node: '>=12'} - dependencies: - '@cspotcode/source-map-consumer': 0.8.0 - dev: true - /@cspotcode/source-map-support@0.8.1: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} @@ -1242,220 +969,6 @@ packages: wrap-ansi-cjs: /wrap-ansi@7.0.0 dev: false - /@istanbuljs/load-nyc-config@1.1.0: - resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} - engines: {node: '>=8'} - dependencies: - camelcase: 5.3.1 - find-up: 4.1.0 - get-package-type: 0.1.0 - js-yaml: 3.14.1 - resolve-from: 5.0.0 - dev: true - - /@istanbuljs/schema@0.1.3: - resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} - engines: {node: '>=8'} - dev: true - - /@jest/console@27.5.1: - resolution: {integrity: sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - chalk: 4.1.2 - jest-message-util: 27.5.1 - jest-util: 27.5.1 - slash: 3.0.0 - dev: true - - /@jest/core@27.5.1(ts-node@10.4.0): - resolution: {integrity: sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - peerDependencies: - node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 - peerDependenciesMeta: - node-notifier: - optional: true - dependencies: - '@jest/console': 27.5.1 - '@jest/reporters': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - ansi-escapes: 4.3.2 - chalk: 4.1.2 - emittery: 0.8.1 - exit: 0.1.2 - graceful-fs: 4.2.11 - jest-changed-files: 27.5.1 - jest-config: 27.5.1(ts-node@10.4.0) - jest-haste-map: 27.5.1 - jest-message-util: 27.5.1 - jest-regex-util: 27.5.1 - jest-resolve: 27.5.1 - jest-resolve-dependencies: 27.5.1 - jest-runner: 27.5.1 - jest-runtime: 27.5.1 - jest-snapshot: 27.5.1 - jest-util: 27.5.1 - jest-validate: 27.5.1 - jest-watcher: 27.5.1 - micromatch: 4.0.5 - rimraf: 3.0.2 - slash: 3.0.0 - strip-ansi: 6.0.1 - transitivePeerDependencies: - - bufferutil - - canvas - - supports-color - - ts-node - - utf-8-validate - dev: true - - /@jest/environment@27.5.1: - resolution: {integrity: sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/fake-timers': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - jest-mock: 27.5.1 - dev: true - - /@jest/fake-timers@27.5.1: - resolution: {integrity: sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - '@sinonjs/fake-timers': 8.1.0 - '@types/node': 20.3.1 - jest-message-util: 27.5.1 - jest-mock: 27.5.1 - jest-util: 27.5.1 - dev: true - - /@jest/globals@27.5.1: - resolution: {integrity: sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/environment': 27.5.1 - '@jest/types': 27.5.1 - expect: 27.5.1 - dev: true - - /@jest/reporters@27.5.1: - resolution: {integrity: sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - peerDependencies: - node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 - peerDependenciesMeta: - node-notifier: - optional: true - dependencies: - '@bcoe/v8-coverage': 0.2.3 - '@jest/console': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - chalk: 4.1.2 - collect-v8-coverage: 1.0.1 - exit: 0.1.2 - glob: 7.2.3 - graceful-fs: 4.2.11 - istanbul-lib-coverage: 3.2.0 - istanbul-lib-instrument: 5.2.1 - istanbul-lib-report: 3.0.0 - istanbul-lib-source-maps: 4.0.1 - istanbul-reports: 3.1.5 - jest-haste-map: 27.5.1 - jest-resolve: 27.5.1 - jest-util: 27.5.1 - jest-worker: 27.5.1 - slash: 3.0.0 - source-map: 0.6.1 - string-length: 4.0.2 - terminal-link: 2.1.1 - v8-to-istanbul: 8.1.1 - transitivePeerDependencies: - - supports-color - dev: true - - /@jest/schemas@29.4.3: - resolution: {integrity: sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - '@sinclair/typebox': 0.25.24 - dev: true - - /@jest/source-map@27.5.1: - resolution: {integrity: sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - callsites: 3.1.0 - graceful-fs: 4.2.11 - source-map: 0.6.1 - dev: true - - /@jest/test-result@27.5.1: - resolution: {integrity: sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/console': 27.5.1 - '@jest/types': 27.5.1 - '@types/istanbul-lib-coverage': 2.0.4 - collect-v8-coverage: 1.0.1 - dev: true - - /@jest/test-sequencer@27.5.1: - resolution: {integrity: sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/test-result': 27.5.1 - graceful-fs: 4.2.11 - jest-haste-map: 27.5.1 - jest-runtime: 27.5.1 - transitivePeerDependencies: - - supports-color - dev: true - - /@jest/transform@27.5.1: - resolution: {integrity: sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@babel/core': 7.22.5 - '@jest/types': 27.5.1 - babel-plugin-istanbul: 6.1.1 - chalk: 4.1.2 - convert-source-map: 1.9.0 - fast-json-stable-stringify: 2.1.0 - graceful-fs: 4.2.11 - jest-haste-map: 27.5.1 - jest-regex-util: 27.5.1 - jest-util: 27.5.1 - micromatch: 4.0.5 - pirates: 4.0.5 - slash: 3.0.0 - source-map: 0.6.1 - write-file-atomic: 3.0.3 - transitivePeerDependencies: - - supports-color - dev: true - - /@jest/types@27.5.1: - resolution: {integrity: sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@types/istanbul-lib-coverage': 2.0.4 - '@types/istanbul-reports': 3.0.1 - '@types/node': 20.3.1 - '@types/yargs': 16.0.5 - chalk: 4.1.2 - dev: true - /@jridgewell/gen-mapping@0.3.3: resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} engines: {node: '>=6.0.0'} @@ -1551,64 +1064,6 @@ packages: - supports-color dev: false - /@microsoft/api-documenter@7.22.21(@types/node@20.3.1): - resolution: {integrity: sha512-o8VXpB83P87cLIYfkQS7ibShoYorTZ7Xs+gMwftT75pFaYWwhBuI8M0MPgzTGIAxzi338XfUjhctlVCjRn+Sqg==} - hasBin: true - dependencies: - '@microsoft/api-extractor-model': 7.27.3(@types/node@20.3.1) - '@microsoft/tsdoc': 0.14.2 - '@rushstack/node-core-library': 3.59.4(@types/node@20.3.1) - '@rushstack/ts-command-line': 4.15.1 - colors: 1.2.5 - js-yaml: 3.13.1 - resolve: 1.22.2 - transitivePeerDependencies: - - '@types/node' - dev: true - - /@microsoft/api-extractor-model@7.27.3(@types/node@20.3.1): - resolution: {integrity: sha512-fSFvw7otYHduOkyshjTbapKKgwF8bgquVHvgF8VgeKtMYvqXkoaj7W6VcM7PNY7E2bbblhUgC4XNdqZLD4SJGw==} - dependencies: - '@microsoft/tsdoc': 0.14.2 - '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.59.4(@types/node@20.3.1) - transitivePeerDependencies: - - '@types/node' - dev: true - - /@microsoft/api-extractor@7.36.0(@types/node@20.3.1): - resolution: {integrity: sha512-P+kYgJFDXIr+UNzhRMhlpM/dderi6ab4lxn35vdhfAIMPtGCSXIJxrrtpTOQmQW8CZtmoZX06LYoUsKCc1zjow==} - hasBin: true - dependencies: - '@microsoft/api-extractor-model': 7.27.3(@types/node@20.3.1) - '@microsoft/tsdoc': 0.14.2 - '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.59.4(@types/node@20.3.1) - '@rushstack/rig-package': 0.4.0 - '@rushstack/ts-command-line': 4.15.1 - colors: 1.2.5 - lodash: 4.17.21 - resolve: 1.22.2 - semver: 7.3.8 - source-map: 0.6.1 - typescript: 5.0.4 - transitivePeerDependencies: - - '@types/node' - dev: true - - /@microsoft/tsdoc-config@0.16.2: - resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==} - dependencies: - '@microsoft/tsdoc': 0.14.2 - ajv: 6.12.6 - jju: 1.4.0 - resolve: 1.19.0 - dev: true - - /@microsoft/tsdoc@0.14.2: - resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} - dev: true - /@mole-inc/bin-wrapper@8.0.1: resolution: {integrity: sha512-sTGoeZnjI8N4KS+sW2AN95gDBErhAguvkw/tWdCjeM8bvxpz5lqrnd0vOJABA1A+Ic3zED7PYoLP/RANLgVotA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -1677,11 +1132,6 @@ packages: hasBin: true dev: false - /@nicolo-ribaudo/semver-v6@6.3.3: - resolution: {integrity: sha512-3Yc1fUTs69MG/uZbJlLSI3JISMn2UV2rg+1D/vROUqZyh3l6iYHCs7GMp+M40ZD7yOdDbYjJcU1oTJhrc+dGKg==} - hasBin: true - dev: true - /@noble/hashes@1.3.1: resolution: {integrity: sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==} engines: {node: '>= 16'} @@ -1815,88 +1265,6 @@ packages: - encoding dev: false - /@rometools/cli-darwin-arm64@12.1.3: - resolution: {integrity: sha512-AmFTUDYjBuEGQp/Wwps+2cqUr+qhR7gyXAUnkL5psCuNCz3807TrUq/ecOoct5MIavGJTH6R4aaSL6+f+VlBEg==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-darwin-x64@12.1.3: - resolution: {integrity: sha512-k8MbWna8q4LRlb005N2X+JS1UQ+s3ZLBBvwk4fP8TBxlAJXUz17jLLu/Fi+7DTTEmMhM84TWj4FDKW+rNar28g==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-linux-arm64@12.1.3: - resolution: {integrity: sha512-X/uLhJ2/FNA3nu5TiyeNPqiD3OZoFfNfRvw6a3ut0jEREPvEn72NI7WPijH/gxSz55znfQ7UQ6iM4DZumUknJg==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-linux-x64@12.1.3: - resolution: {integrity: sha512-csP17q1eWiUXx9z6Jr/JJPibkplyKIwiWPYNzvPCGE8pHlKhwZj3YHRuu7Dm/4EOqx0XFIuqqWZUYm9bkIC8xg==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-win32-arm64@12.1.3: - resolution: {integrity: sha512-RymHWeod57EBOJY4P636CgUwYA6BQdkQjh56XKk4pLEHO6X1bFyMet2XL7KlHw5qOTalzuzf5jJqUs+vf3jdXQ==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-win32-x64@12.1.3: - resolution: {integrity: sha512-yHSKYidqJMV9nADqg78GYA+cZ0hS1twANAjiFibQdXj9aGzD+s/IzIFEIi/U/OBLvWYg/SCw0QVozi2vTlKFDQ==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@rushstack/node-core-library@3.59.4(@types/node@20.3.1): - resolution: {integrity: sha512-YAKJDC6Mz/KA1D7bvB88WaRX3knt/ZuLzkRu5G9QADGSjLtvTWzCNCytRF2PCSaaHOZaZsWul4F1KQdgFgUDqA==} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - dependencies: - '@types/node': 20.3.1 - colors: 1.2.5 - fs-extra: 7.0.1 - import-lazy: 4.0.0 - jju: 1.4.0 - resolve: 1.22.2 - semver: 7.3.8 - z-schema: 5.0.5 - dev: true - - /@rushstack/rig-package@0.4.0: - resolution: {integrity: sha512-FnM1TQLJYwSiurP6aYSnansprK5l8WUK8VG38CmAaZs29ZeL1msjK0AP1VS4ejD33G0kE/2cpsPsS9jDenBMxw==} - dependencies: - resolve: 1.22.2 - strip-json-comments: 3.1.1 - dev: true - - /@rushstack/ts-command-line@4.15.1: - resolution: {integrity: sha512-EL4jxZe5fhb1uVL/P/wQO+Z8Rc8FMiWJ1G7VgnPDvdIt5GVjRfK7vwzder1CZQiX3x0PY6uxENYLNGTFd1InRQ==} - dependencies: - '@types/argparse': 1.0.38 - argparse: 1.0.10 - colors: 1.2.5 - string-argv: 0.3.2 - dev: true - /@sideway/address@4.1.4: resolution: {integrity: sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==} dependencies: @@ -1911,10 +1279,6 @@ packages: resolution: {integrity: sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==} dev: true - /@sinclair/typebox@0.25.24: - resolution: {integrity: sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==} - dev: true - /@sindresorhus/is@4.6.0: resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} engines: {node: '>=10'} @@ -1929,12 +1293,7 @@ packages: resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==} dependencies: type-detect: 4.0.8 - - /@sinonjs/fake-timers@8.1.0: - resolution: {integrity: sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==} - dependencies: - '@sinonjs/commons': 1.8.6 - dev: true + dev: false /@sinonjs/fake-timers@9.1.2: resolution: {integrity: sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==} @@ -2112,11 +1471,6 @@ packages: /@tokenizer/token@0.3.0: resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==} - /@tootallnate/once@1.1.2: - resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} - engines: {node: '>= 6'} - dev: true - /@tootallnate/once@2.0.0: resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} engines: {node: '>= 10'} @@ -2134,10 +1488,6 @@ packages: /@tsconfig/node16@1.0.4: resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - /@tsd/typescript@5.0.4: - resolution: {integrity: sha512-YQi2lvZSI+xidKeUjlbv6b6Zw7qB3aXHw5oGJLs5OOGAEqKIOvz5UIAkWyg0bJbkSUWPBEtaOHpVxU4EYBO1Jg==} - dev: true - /@types/accepts@1.3.5: resolution: {integrity: sha512-jOdnI/3qTpHABjM5cx1Hc0sKsPoYCp+DP/GJRGtDlPd7fiV9oXGGIcjW/ZOxLIvjGz8MA+uMZI9metHlgqbgwQ==} dependencies: @@ -2149,39 +1499,6 @@ packages: '@types/node': 18.11.18 dev: true - /@types/argparse@1.0.38: - resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} - dev: true - - /@types/babel__core@7.20.1: - resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==} - dependencies: - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 - '@types/babel__generator': 7.6.4 - '@types/babel__template': 7.4.1 - '@types/babel__traverse': 7.20.1 - dev: true - - /@types/babel__generator@7.6.4: - resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==} - dependencies: - '@babel/types': 7.22.5 - dev: true - - /@types/babel__template@7.4.1: - resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==} - dependencies: - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 - dev: true - - /@types/babel__traverse@7.20.1: - resolution: {integrity: sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==} - dependencies: - '@babel/types': 7.22.5 - dev: true - /@types/bcryptjs@2.4.2: resolution: {integrity: sha512-LiMQ6EOPob/4yUL66SZzu6Yh77cbzJFYll+ZfaPiPPFswtIlA/Fs1MzdKYA7JApHU49zQTbJGX3PDmCpIdDBRQ==} dev: true @@ -2255,13 +1572,6 @@ packages: '@types/estree': 1.0.1 dev: true - /@types/eslint@7.29.0: - resolution: {integrity: sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==} - dependencies: - '@types/estree': 1.0.1 - '@types/json-schema': 7.0.12 - dev: true - /@types/eslint@8.40.2: resolution: {integrity: sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==} dependencies: @@ -2301,12 +1611,6 @@ packages: '@types/node': 20.3.1 dev: false - /@types/graceful-fs@4.1.6: - resolution: {integrity: sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==} - dependencies: - '@types/node': 20.3.1 - dev: true - /@types/http-assert@1.5.3: resolution: {integrity: sha512-FyAOrDuQmBi8/or3ns4rwPno7/9tJTijVW6aQQjK02+kOQ8zmoNg2XJtAuQhvQcy1ASJq38wirX5//9J1EqoUA==} @@ -2325,29 +1629,6 @@ packages: - supports-color dev: true - /@types/istanbul-lib-coverage@2.0.4: - resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==} - dev: true - - /@types/istanbul-lib-report@3.0.0: - resolution: {integrity: sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==} - dependencies: - '@types/istanbul-lib-coverage': 2.0.4 - dev: true - - /@types/istanbul-reports@3.0.1: - resolution: {integrity: sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==} - dependencies: - '@types/istanbul-lib-report': 3.0.0 - dev: true - - /@types/jest@27.4.0: - resolution: {integrity: sha512-gHl8XuC1RZ8H2j5sHv/JqsaxXkDDM9iDOgu0Wp8sjs4u/snb2PVehyWXJPr+ORA0RPpgw231mnutWI1+0hgjIQ==} - dependencies: - jest-diff: 27.5.1 - pretty-format: 27.5.1 - dev: true - /@types/js-yaml@4.0.5: resolution: {integrity: sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==} dev: true @@ -2521,10 +1802,6 @@ packages: /@types/mime@3.0.1: resolution: {integrity: sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==} - /@types/minimist@1.2.2: - resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} - dev: true - /@types/needle@3.2.0: resolution: {integrity: sha512-6XzvzEyJ2ozFNfPajFmqH9JOt0Hp+9TawaYpJT59iIP/zR0U37cfWCRwosyIeEBBZBi021Osq4jGAD3AOju5fg==} dependencies: @@ -2554,20 +1831,12 @@ packages: '@types/node': 18.11.18 dev: true - /@types/normalize-package-data@2.4.1: - resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} - dev: true - /@types/oauth@0.9.1: resolution: {integrity: sha512-a1iY62/a3yhZ7qH7cNUsxoI3U/0Fe9+RnuFrpTKr+0WVOzbKlSLojShCKe20aOD1Sppv+i8Zlq0pLDuTJnwS4A==} dependencies: '@types/node': 18.11.18 dev: true - /@types/prettier@2.7.3: - resolution: {integrity: sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==} - dev: true - /@types/probe-image-size@7.2.0: resolution: {integrity: sha512-R5H3vw62gHNHrn+JGZbKejb+Z2D/6E5UNVlhCzIaBBLroMQMOFqy5Pap2gM+ZZHdqBtVU0/cx/M6to+mOJcoew==} dependencies: @@ -2654,10 +1923,6 @@ packages: resolution: {integrity: sha512-9GcLXF0/v3t80caGs5p2rRfkB+a8VBGLJZVih6CNFkx8IZ994wiKKLSRs9nuFwk1HevWs/1mnUmkApGrSGsShA==} dev: true - /@types/stack-utils@2.0.1: - resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==} - dev: true - /@types/tinycolor2@1.4.3: resolution: {integrity: sha512-Kf1w9NE5HEgGxCRyIcRXR/ZYtDv0V8FVPtYHwLxl0O+maGX0erE77pQlD0gpP+/KByMZ87mOA79SjifhSB3PjQ==} dev: true @@ -2692,16 +1957,6 @@ packages: '@types/node': 18.11.18 dev: true - /@types/yargs-parser@21.0.0: - resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} - dev: true - - /@types/yargs@16.0.5: - resolution: {integrity: sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==} - dependencies: - '@types/yargs-parser': 21.0.0 - dev: true - /@webassemblyjs/ast@1.11.6: resolution: {integrity: sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==} dependencies: @@ -2818,6 +2073,7 @@ packages: /abab@2.0.6: resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} + dev: false /abbrev@1.1.1: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} @@ -2837,13 +2093,6 @@ packages: negotiator: 0.6.3 dev: false - /acorn-globals@6.0.0: - resolution: {integrity: sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==} - dependencies: - acorn: 7.4.1 - acorn-walk: 7.2.0 - dev: true - /acorn-globals@7.0.1: resolution: {integrity: sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==} dependencies: @@ -2866,21 +2115,10 @@ packages: dependencies: acorn: 8.8.2 - /acorn-walk@7.2.0: - resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} - engines: {node: '>=0.4.0'} - dev: true - /acorn-walk@8.2.0: resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} engines: {node: '>=0.4.0'} - /acorn@7.4.1: - resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} - engines: {node: '>=0.4.0'} - hasBin: true - dev: true - /acorn@8.8.2: resolution: {integrity: sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==} engines: {node: '>=0.4.0'} @@ -2898,6 +2136,7 @@ packages: debug: 4.3.4 transitivePeerDependencies: - supports-color + dev: false /agentkeepalive@4.3.0: resolution: {integrity: sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==} @@ -2943,13 +2182,6 @@ packages: uri-js: 4.4.1 dev: false - /ansi-escapes@4.3.2: - resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} - engines: {node: '>=8'} - dependencies: - type-fest: 0.21.3 - dev: true - /ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} @@ -2964,6 +2196,7 @@ packages: engines: {node: '>=4'} dependencies: color-convert: 1.9.3 + dev: false /ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} @@ -2971,11 +2204,6 @@ packages: dependencies: color-convert: 2.0.1 - /ansi-styles@5.2.0: - resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} - engines: {node: '>=10'} - dev: true - /ansi-styles@6.2.1: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} @@ -3073,25 +2301,9 @@ packages: - supports-color dev: false - /argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - dependencies: - sprintf-js: 1.0.3 - dev: true - /argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - /array-union@2.1.0: - resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} - engines: {node: '>=8'} - dev: true - - /arrify@1.0.1: - resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} - engines: {node: '>=0.10.0'} - dev: true - /asap@2.0.6: resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==} dev: false @@ -3127,6 +2339,7 @@ packages: /asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + dev: false /autobind-decorator@2.4.0: resolution: {integrity: sha512-OGYhWUO72V6DafbF8PM8rm3EPbfuyMZcJhtm5/n26IDwO18pohE4eNazLoCGhPiXOCD0gEGmrbU3849QvM8bbw==} @@ -3200,79 +2413,6 @@ packages: - supports-color dev: false - /babel-jest@27.5.1(@babel/core@7.22.5): - resolution: {integrity: sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - peerDependencies: - '@babel/core': ^7.8.0 - dependencies: - '@babel/core': 7.22.5 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 - '@types/babel__core': 7.20.1 - babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 27.5.1(@babel/core@7.22.5) - chalk: 4.1.2 - graceful-fs: 4.2.11 - slash: 3.0.0 - transitivePeerDependencies: - - supports-color - dev: true - - /babel-plugin-istanbul@6.1.1: - resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} - engines: {node: '>=8'} - dependencies: - '@babel/helper-plugin-utils': 7.22.5 - '@istanbuljs/load-nyc-config': 1.1.0 - '@istanbuljs/schema': 0.1.3 - istanbul-lib-instrument: 5.2.1 - test-exclude: 6.0.0 - transitivePeerDependencies: - - supports-color - dev: true - - /babel-plugin-jest-hoist@27.5.1: - resolution: {integrity: sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@babel/template': 7.22.5 - '@babel/types': 7.22.5 - '@types/babel__core': 7.20.1 - '@types/babel__traverse': 7.20.1 - dev: true - - /babel-preset-current-node-syntax@1.0.1(@babel/core@7.22.5): - resolution: {integrity: sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/core': 7.22.5 - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.22.5) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.22.5) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.22.5) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.22.5) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.22.5) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.22.5) - dev: true - - /babel-preset-jest@27.5.1(@babel/core@7.22.5): - resolution: {integrity: sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/core': 7.22.5 - babel-plugin-jest-hoist: 27.5.1 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.22.5) - dev: true - /balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -3363,10 +2503,6 @@ packages: dependencies: fill-range: 7.0.1 - /browser-process-hrtime@1.0.0: - resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==} - dev: true - /browserslist@4.21.8: resolution: {integrity: sha512-j+7xYe+v+q2Id9qbBeCI8WX5NmZSRe8es1+0xntD/+gaWXznP8tFEkv5IgSaHf5dS1YwVMbX/4W6m937mj+wQw==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} @@ -3377,30 +2513,6 @@ packages: node-releases: 2.0.12 update-browserslist-db: 1.0.11(browserslist@4.21.8) - /browserslist@4.21.9: - resolution: {integrity: sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - dependencies: - caniuse-lite: 1.0.30001513 - electron-to-chromium: 1.4.454 - node-releases: 2.0.13 - update-browserslist-db: 1.0.11(browserslist@4.21.9) - dev: true - - /bs-logger@0.2.6: - resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==} - engines: {node: '>= 6'} - dependencies: - fast-json-stable-stringify: 2.1.0 - dev: true - - /bser@2.1.1: - resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} - dependencies: - node-int64: 0.4.0 - dev: true - /buffer-crc32@0.2.13: resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} dev: false @@ -3548,31 +2660,14 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - /camelcase-keys@6.2.2: - resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} - engines: {node: '>=8'} - dependencies: - camelcase: 5.3.1 - map-obj: 4.3.0 - quick-lru: 4.0.1 - dev: true - /camelcase@5.3.1: resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} engines: {node: '>=6'} - - /camelcase@6.3.0: - resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} - engines: {node: '>=10'} - dev: true + dev: false /caniuse-lite@1.0.30001502: resolution: {integrity: sha512-AZ+9tFXw1sS0o0jcpJQIXvFTOB/xGiQ4OQ2t98QX3NDn2EZTSRBC801gxrsGgViuq2ak/NLkNgSNEPtCr5lfKg==} - /caniuse-lite@1.0.30001513: - resolution: {integrity: sha512-pnjGJo7SOOjAGytZZ203Em95MRM8Cr6jhCXNF/FAXTpCTRTECnqQWLpiTRqrFtdYcth8hf4WECUpkezuYsMVww==} - dev: true - /canonicalize@1.0.8: resolution: {integrity: sha512-0CNTVCLZggSh7bc5VkX5WWPWO+cyZbNd07IHIsSXLia/eAq+r836hgk+8BKoEh7949Mda87VUOitx5OddVj64A==} dev: false @@ -3597,6 +2692,7 @@ packages: ansi-styles: 3.2.1 escape-string-regexp: 1.0.5 supports-color: 5.5.0 + dev: false /chalk@4.0.0: resolution: {integrity: sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==} @@ -3621,6 +2717,7 @@ packages: /char-regex@1.0.2: resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} engines: {node: '>=10'} + dev: false /check-more-types@2.24.0: resolution: {integrity: sha512-Pj779qHxV2tuapviy1bSZNEL1maXr13bPYpsvSDB68HlYcYuhlDrmGd63i0JHMCLKzc7rUSNIrpdJlhVlNwrxA==} @@ -3655,15 +2752,6 @@ packages: engines: {node: '>=6.0'} dev: true - /ci-info@3.8.0: - resolution: {integrity: sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==} - engines: {node: '>=8'} - dev: true - - /cjs-module-lexer@1.2.3: - resolution: {integrity: sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==} - dev: true - /clean-stack@2.2.0: resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} engines: {node: '>=6'} @@ -3696,6 +2784,7 @@ packages: string-width: 4.2.3 strip-ansi: 6.0.1 wrap-ansi: 7.0.0 + dev: false /cliui@8.0.1: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} @@ -3737,15 +2826,13 @@ packages: /co@4.6.0: resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} - - /collect-v8-coverage@1.0.1: - resolution: {integrity: sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==} - dev: true + dev: false /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: color-name: 1.1.3 + dev: false /color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} @@ -3755,6 +2842,7 @@ packages: /color-name@1.1.3: resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} + dev: false /color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} @@ -3783,16 +2871,12 @@ packages: resolution: {integrity: sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==} dev: false - /colors@1.2.5: - resolution: {integrity: sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg==} - engines: {node: '>=0.1.90'} - dev: true - /combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} dependencies: delayed-stream: 1.0.0 + dev: false /commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -3802,13 +2886,6 @@ packages: engines: {node: '>= 10'} dev: true - /commander@9.5.0: - resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} - engines: {node: ^12.20.0 || >=14} - requiresBuild: true - dev: true - optional: true - /compress-commons@4.1.1: resolution: {integrity: sha512-QLdDLCKNV2dtoTorqgxngQCMA+gWXkM/Nwu7FpeBhk/RdkzimqC3jueb/FDmaZeXh+uby1jkBqE3xArsLBE5wQ==} engines: {node: '>= 10'} @@ -4032,6 +3109,7 @@ packages: /convert-source-map@1.9.0: resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} + dev: false /cookies@0.8.0: resolution: {integrity: sha512-8aPsApQfebXnuI+537McwYsDtjVxGm8gTIzQI3FDW6t5t/DAhERxtnbEPN/8RX+uZthoz4eCOgloXaE5cYyNow==} @@ -4091,6 +3169,7 @@ packages: node-fetch: 2.6.11 transitivePeerDependencies: - encoding + dev: false /cross-spawn@5.1.0: resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} @@ -4110,10 +3189,7 @@ packages: /cssom@0.3.8: resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} - - /cssom@0.4.4: - resolution: {integrity: sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==} - dev: true + dev: false /cssom@0.5.0: resolution: {integrity: sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==} @@ -4124,6 +3200,7 @@ packages: engines: {node: '>=8'} dependencies: cssom: 0.3.8 + dev: false /d@1.0.1: resolution: {integrity: sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==} @@ -4143,15 +3220,6 @@ packages: resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} engines: {node: '>= 12'} - /data-urls@2.0.0: - resolution: {integrity: sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==} - engines: {node: '>=10'} - dependencies: - abab: 2.0.6 - whatwg-mimetype: 2.3.0 - whatwg-url: 8.7.0 - dev: true - /data-urls@3.0.2: resolution: {integrity: sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==} engines: {node: '>=12'} @@ -4205,20 +3273,14 @@ packages: resolution: {integrity: sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw==} dev: false - /decamelize-keys@1.1.1: - resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==} - engines: {node: '>=0.10.0'} - dependencies: - decamelize: 1.2.0 - map-obj: 1.0.1 - dev: true - /decamelize@1.2.0: resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} engines: {node: '>=0.10.0'} + dev: false /decimal.js@10.4.3: resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==} + dev: false /decompress-response@6.0.0: resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} @@ -4226,10 +3288,6 @@ packages: dependencies: mimic-response: 3.1.0 - /dedent@0.7.0: - resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==} - dev: true - /deep-email-validator@0.1.21: resolution: {integrity: sha512-DBAmMzbr+MAubXQ+TS9tZuPwLcdKscb8YzKZiwoLqF3NmaeEgXvSSHhZ0EXOFeKFE2FNWC4mNXCyiQ/JdFXUwg==} dependencies: @@ -4256,6 +3314,7 @@ packages: /deepmerge@4.3.1: resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} engines: {node: '>=0.10.0'} + dev: false /defer-to-connect@2.0.1: resolution: {integrity: sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==} @@ -4264,6 +3323,7 @@ packages: /delayed-stream@1.0.0: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} + dev: false /delegates@1.0.0: resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} @@ -4292,11 +3352,6 @@ packages: engines: {node: '>=8'} dev: false - /detect-newline@3.1.0: - resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} - engines: {node: '>=8'} - dev: true - /dezalgo@1.0.4: resolution: {integrity: sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==} dependencies: @@ -4304,16 +3359,6 @@ packages: wrappy: 1.0.2 dev: false - /diff-sequences@27.5.1: - resolution: {integrity: sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dev: true - - /diff-sequences@29.4.3: - resolution: {integrity: sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dev: true - /diff@4.0.2: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} @@ -4322,13 +3367,6 @@ packages: resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==} dev: false - /dir-glob@3.0.1: - resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} - engines: {node: '>=8'} - dependencies: - path-type: 4.0.0 - dev: true - /disposable-email-domains@1.0.62: resolution: {integrity: sha512-LBQvhRw7mznQTPoyZbsmYeNOZt1pN5aCsx4BAU/3siVFuiM9f2oyKzUaB8v1jbxFjE3aYqYiMo63kAL4pHgfWQ==} dev: false @@ -4349,13 +3387,6 @@ packages: /domelementtype@2.3.0: resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} - /domexception@2.0.1: - resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==} - engines: {node: '>=8'} - dependencies: - webidl-conversions: 5.0.0 - dev: true - /domexception@4.0.0: resolution: {integrity: sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==} engines: {node: '>=12'} @@ -4425,17 +3456,9 @@ packages: /electron-to-chromium@1.4.430: resolution: {integrity: sha512-FytjTbGwz///F+ToZ5XSeXbbSaXalsVRXsz2mHityI5gfxft7ieW3HqFLkU5V1aIrY42aflICqbmFoDxW10etg==} - /electron-to-chromium@1.4.454: - resolution: {integrity: sha512-pmf1rbAStw8UEQ0sr2cdJtWl48ZMuPD9Sto8HVQOq9vx9j2WgDEN6lYoaqFvqEHYOmGA9oRGn7LqWI9ta0YugQ==} - dev: true - - /emittery@0.8.1: - resolution: {integrity: sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==} - engines: {node: '>=10'} - dev: true - /emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + dev: false /emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} @@ -4493,12 +3516,6 @@ packages: resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==} dev: false - /error-ex@1.3.2: - resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} - dependencies: - is-arrayish: 0.2.1 - dev: true - /es-module-lexer@1.3.0: resolution: {integrity: sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==} dev: true @@ -4543,11 +3560,7 @@ packages: /escape-string-regexp@1.0.5: resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} engines: {node: '>=0.8.0'} - - /escape-string-regexp@2.0.0: - resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} - engines: {node: '>=8'} - dev: true + dev: false /escape-string-regexp@4.0.0: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} @@ -4569,24 +3582,7 @@ packages: optionator: 0.8.3 optionalDependencies: source-map: 0.6.1 - - /eslint-formatter-pretty@4.1.0: - resolution: {integrity: sha512-IsUTtGxF1hrH6lMWiSl1WbGaiP01eT6kzywdY1U+zLc0MP+nwEnUiS9UI8IaOTUhTeQJLlCEWIbXINBH4YJbBQ==} - engines: {node: '>=10'} - dependencies: - '@types/eslint': 7.29.0 - ansi-escapes: 4.3.2 - chalk: 4.1.2 - eslint-rule-docs: 1.1.235 - log-symbols: 4.1.0 - plur: 4.0.0 - string-width: 4.2.3 - supports-hyperlinks: 2.3.0 - dev: true - - /eslint-rule-docs@1.1.235: - resolution: {integrity: sha512-+TQ+x4JdTnDoFEXXb3fDvfGOwnyNV7duH8fXWTPD1ieaBmB8omj7Gw/pMBBu4uI2uJCCU8APDaQJzWuXnTsH4A==} - dev: true + dev: false /eslint-scope@5.1.1: resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} @@ -4671,6 +3667,7 @@ packages: resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} engines: {node: '>=4'} hasBin: true + dev: false /esquery@1.5.0: resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} @@ -4714,10 +3711,6 @@ packages: engines: {node: '>=6'} dev: false - /eventemitter3@4.0.7: - resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} - dev: false - /events@1.1.1: resolution: {integrity: sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==} engines: {node: '>=0.4.x'} @@ -4784,26 +3777,11 @@ packages: mixly: 1.0.0 dev: true - /exit@0.1.2: - resolution: {integrity: sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==} - engines: {node: '>= 0.8.0'} - dev: true - /expand-template@2.0.3: resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} engines: {node: '>=6'} dev: false - /expect@27.5.1: - resolution: {integrity: sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - jest-get-type: 27.5.1 - jest-matcher-utils: 27.5.1 - jest-message-util: 27.5.1 - dev: true - /exponential-backoff@3.1.1: resolution: {integrity: sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==} dev: false @@ -4872,12 +3850,6 @@ packages: dependencies: reusify: 1.0.4 - /fb-watchman@2.0.2: - resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==} - dependencies: - bser: 2.1.1 - dev: true - /feed@4.2.2: resolution: {integrity: sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==} engines: {node: '>=0.4.0'} @@ -4942,6 +3914,7 @@ packages: dependencies: locate-path: 5.0.0 path-exists: 4.0.0 + dev: false /find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} @@ -5015,15 +3988,6 @@ packages: engines: {node: '>= 14.17'} dev: false - /form-data@3.0.1: - resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} - engines: {node: '>= 6'} - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - dev: true - /form-data@4.0.0: resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} engines: {node: '>= 6'} @@ -5061,15 +4025,6 @@ packages: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} dev: false - /fs-extra@7.0.1: - resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} - engines: {node: '>=6 <7 || >=8'} - dependencies: - graceful-fs: 4.2.11 - jsonfile: 4.0.0 - universalify: 0.1.2 - dev: true - /fs-minipass@2.1.0: resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==} engines: {node: '>= 8'} @@ -5095,14 +4050,6 @@ packages: requiresBuild: true optional: true - /fsevents@2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - requiresBuild: true - dev: true - optional: true - /fulcon@1.0.2: resolution: {integrity: sha512-vYwUBqbdo9XK0NmN7cFmURmy2T1YHpEsTCbxGO3aErxx6a0Z/HkWXcqcPkk7yOuJ74mSAHGWGBSBBd6v3GKebA==} engines: {node: '>= 0.10'} @@ -5110,6 +4057,7 @@ packages: /function-bind@1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + dev: false /gauge@3.0.2: resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==} @@ -5148,10 +4096,12 @@ packages: /gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} + dev: false /get-caller-file@2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} + dev: false /get-intrinsic@1.2.1: resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==} @@ -5162,11 +4112,6 @@ packages: has-symbols: 1.0.3 dev: false - /get-package-type@0.1.0: - resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} - engines: {node: '>=8.0.0'} - dev: true - /get-paths@0.0.7: resolution: {integrity: sha512-0wdJt7C1XKQxuCgouqd+ZvLJ56FQixKoki9MrFaO4EriqzXOiH9gbukaDE1ou08S8Ns3/yDzoBAISNPqj6e6tA==} engines: {node: '>=6.4'} @@ -5255,6 +4200,7 @@ packages: /globals@11.12.0: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} engines: {node: '>=4'} + dev: false /globals@13.20.0: resolution: {integrity: sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==} @@ -5262,18 +4208,6 @@ packages: dependencies: type-fest: 0.20.2 - /globby@11.1.0: - resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} - engines: {node: '>=10'} - dependencies: - array-union: 2.1.0 - dir-glob: 3.0.1 - fast-glob: 3.2.12 - ignore: 5.2.4 - merge2: 1.4.1 - slash: 3.0.0 - dev: true - /gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} dependencies: @@ -5320,14 +4254,10 @@ packages: /graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} - /hard-rejection@2.1.0: - resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} - engines: {node: '>=6'} - dev: true - /has-flag@3.0.0: resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} engines: {node: '>=4'} + dev: false /has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} @@ -5359,6 +4289,7 @@ packages: engines: {node: '>= 0.4.0'} dependencies: function-bind: 1.1.1 + dev: false /hexoid@1.0.0: resolution: {integrity: sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==} @@ -5369,28 +4300,10 @@ packages: resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} dev: false - /hosted-git-info@2.8.9: - resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} - dev: true - - /hosted-git-info@4.1.0: - resolution: {integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==} - engines: {node: '>=10'} - dependencies: - lru-cache: 6.0.0 - dev: true - /hpagent@0.1.2: resolution: {integrity: sha512-ePqFXHtSQWAFXYmj+JtOTHr84iNrII4/QRlAAPPE+zqnKy4xJo7Ie1Y4kC7AdB+LxLxSTTzBMASsEcy0q8YyvQ==} dev: false - /html-encoding-sniffer@2.0.1: - resolution: {integrity: sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==} - engines: {node: '>=10'} - dependencies: - whatwg-encoding: 1.0.5 - dev: true - /html-encoding-sniffer@3.0.0: resolution: {integrity: sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==} engines: {node: '>=12'} @@ -5398,10 +4311,6 @@ packages: whatwg-encoding: 2.0.0 dev: false - /html-escaper@2.0.2: - resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} - dev: true - /htmlparser2@8.0.2: resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==} dependencies: @@ -5451,17 +4360,6 @@ packages: toidentifier: 1.0.1 dev: false - /http-proxy-agent@4.0.1: - resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==} - engines: {node: '>= 6'} - dependencies: - '@tootallnate/once': 1.1.2 - agent-base: 6.0.2 - debug: 4.3.4 - transitivePeerDependencies: - - supports-color - dev: true - /http-proxy-agent@5.0.0: resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==} engines: {node: '>= 6'} @@ -5504,6 +4402,7 @@ packages: debug: 4.3.4 transitivePeerDependencies: - supports-color + dev: false /human-signals@2.1.0: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} @@ -5530,6 +4429,7 @@ packages: engines: {node: '>=0.10.0'} dependencies: safer-buffer: 2.1.2 + dev: false /iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} @@ -5560,20 +4460,6 @@ packages: parent-module: 1.0.1 resolve-from: 4.0.0 - /import-lazy@4.0.0: - resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==} - engines: {node: '>=8'} - dev: true - - /import-local@3.1.0: - resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==} - engines: {node: '>=8'} - hasBin: true - dependencies: - pkg-dir: 4.2.0 - resolve-cwd: 3.0.0 - dev: true - /imurmurhash@0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} @@ -5581,6 +4467,7 @@ packages: /indent-string@4.0.0: resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} engines: {node: '>=8'} + dev: false /inflation@2.0.0: resolution: {integrity: sha512-m3xv4hJYR2oXw4o4Y5l6P5P16WYmazYof+el6Al3f+YlggGj6qT9kImBAnzDelRALnP5d3h4jGBPKzYCizjZZw==} @@ -5660,11 +4547,6 @@ packages: engines: {node: '>= 10'} dev: false - /irregular-plurals@3.5.0: - resolution: {integrity: sha512-1ANGLZ+Nkv1ptFb2pa8oG8Lem4krflKuX/gINiHJHjJUKaJHk/SXk5x6K3J+39/p0h1RQ2saROclJJ+QLvETCQ==} - engines: {node: '>=8'} - dev: true - /is-arguments@1.1.1: resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} engines: {node: '>= 0.4'} @@ -5673,10 +4555,6 @@ packages: has-tostringtag: 1.0.0 dev: false - /is-arrayish@0.2.1: - resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} - dev: true - /is-arrayish@0.3.2: resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==} dev: false @@ -5699,6 +4577,7 @@ packages: resolution: {integrity: sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==} dependencies: has: 1.0.3 + dev: false /is-electron@2.2.2: resolution: {integrity: sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg==} @@ -5715,11 +4594,7 @@ packages: /is-fullwidth-code-point@3.0.0: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} - - /is-generator-fn@2.1.0: - resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==} - engines: {node: '>=6'} - dev: true + dev: false /is-generator-function@1.0.10: resolution: {integrity: sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==} @@ -5765,6 +4640,7 @@ packages: /is-potential-custom-element-name@1.0.1: resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + dev: false /is-stream@1.1.0: resolution: {integrity: sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==} @@ -5801,11 +4677,7 @@ packages: /is-typedarray@1.0.0: resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==} - - /is-unicode-supported@0.1.0: - resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} - engines: {node: '>=10'} - dev: true + dev: false /is-url@1.2.4: resolution: {integrity: sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==} @@ -5822,52 +4694,6 @@ packages: /isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - /istanbul-lib-coverage@3.2.0: - resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} - engines: {node: '>=8'} - dev: true - - /istanbul-lib-instrument@5.2.1: - resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} - engines: {node: '>=8'} - dependencies: - '@babel/core': 7.22.5 - '@babel/parser': 7.22.5 - '@istanbuljs/schema': 0.1.3 - istanbul-lib-coverage: 3.2.0 - semver: 6.3.0 - transitivePeerDependencies: - - supports-color - dev: true - - /istanbul-lib-report@3.0.0: - resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==} - engines: {node: '>=8'} - dependencies: - istanbul-lib-coverage: 3.2.0 - make-dir: 3.1.0 - supports-color: 7.2.0 - dev: true - - /istanbul-lib-source-maps@4.0.1: - resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} - engines: {node: '>=10'} - dependencies: - debug: 4.3.4 - istanbul-lib-coverage: 3.2.0 - source-map: 0.6.1 - transitivePeerDependencies: - - supports-color - dev: true - - /istanbul-reports@3.1.5: - resolution: {integrity: sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==} - engines: {node: '>=8'} - dependencies: - html-escaper: 2.0.2 - istanbul-lib-report: 3.0.0 - dev: true - /jackspeak@2.2.1: resolution: {integrity: sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==} engines: {node: '>=14'} @@ -5887,476 +4713,6 @@ packages: filelist: 1.0.4 minimatch: 3.1.2 - /jest-changed-files@27.5.1: - resolution: {integrity: sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - execa: 5.1.1 - throat: 6.0.2 - dev: true - - /jest-circus@27.5.1: - resolution: {integrity: sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/environment': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - chalk: 4.1.2 - co: 4.6.0 - dedent: 0.7.0 - expect: 27.5.1 - is-generator-fn: 2.1.0 - jest-each: 27.5.1 - jest-matcher-utils: 27.5.1 - jest-message-util: 27.5.1 - jest-runtime: 27.5.1 - jest-snapshot: 27.5.1 - jest-util: 27.5.1 - pretty-format: 27.5.1 - slash: 3.0.0 - stack-utils: 2.0.6 - throat: 6.0.2 - transitivePeerDependencies: - - supports-color - dev: true - - /jest-cli@27.5.1(ts-node@10.4.0): - resolution: {integrity: sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - hasBin: true - peerDependencies: - node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 - peerDependenciesMeta: - node-notifier: - optional: true - dependencies: - '@jest/core': 27.5.1(ts-node@10.4.0) - '@jest/test-result': 27.5.1 - '@jest/types': 27.5.1 - chalk: 4.1.2 - exit: 0.1.2 - graceful-fs: 4.2.11 - import-local: 3.1.0 - jest-config: 27.5.1(ts-node@10.4.0) - jest-util: 27.5.1 - jest-validate: 27.5.1 - prompts: 2.4.2 - yargs: 16.2.0 - transitivePeerDependencies: - - bufferutil - - canvas - - supports-color - - ts-node - - utf-8-validate - dev: true - - /jest-config@27.5.1(ts-node@10.4.0): - resolution: {integrity: sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - peerDependencies: - ts-node: '>=9.0.0' - peerDependenciesMeta: - ts-node: - optional: true - dependencies: - '@babel/core': 7.22.5 - '@jest/test-sequencer': 27.5.1 - '@jest/types': 27.5.1 - babel-jest: 27.5.1(@babel/core@7.22.5) - chalk: 4.1.2 - ci-info: 3.8.0 - deepmerge: 4.3.1 - glob: 7.2.3 - graceful-fs: 4.2.11 - jest-circus: 27.5.1 - jest-environment-jsdom: 27.5.1 - jest-environment-node: 27.5.1 - jest-get-type: 27.5.1 - jest-jasmine2: 27.5.1 - jest-regex-util: 27.5.1 - jest-resolve: 27.5.1 - jest-runner: 27.5.1 - jest-util: 27.5.1 - jest-validate: 27.5.1 - micromatch: 4.0.5 - parse-json: 5.2.0 - pretty-format: 27.5.1 - slash: 3.0.0 - strip-json-comments: 3.1.1 - ts-node: 10.4.0(@swc/core@1.3.62)(@types/node@20.3.1)(typescript@5.1.3) - transitivePeerDependencies: - - bufferutil - - canvas - - supports-color - - utf-8-validate - dev: true - - /jest-diff@27.5.1: - resolution: {integrity: sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - chalk: 4.1.2 - diff-sequences: 27.5.1 - jest-get-type: 27.5.1 - pretty-format: 27.5.1 - dev: true - - /jest-diff@29.5.0: - resolution: {integrity: sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - chalk: 4.1.2 - diff-sequences: 29.4.3 - jest-get-type: 29.4.3 - pretty-format: 29.5.0 - dev: true - - /jest-docblock@27.5.1: - resolution: {integrity: sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - detect-newline: 3.1.0 - dev: true - - /jest-each@27.5.1: - resolution: {integrity: sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - chalk: 4.1.2 - jest-get-type: 27.5.1 - jest-util: 27.5.1 - pretty-format: 27.5.1 - dev: true - - /jest-environment-jsdom@27.5.1: - resolution: {integrity: sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/environment': 27.5.1 - '@jest/fake-timers': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - jest-mock: 27.5.1 - jest-util: 27.5.1 - jsdom: 16.7.0 - transitivePeerDependencies: - - bufferutil - - canvas - - supports-color - - utf-8-validate - dev: true - - /jest-environment-node@27.5.1: - resolution: {integrity: sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/environment': 27.5.1 - '@jest/fake-timers': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - jest-mock: 27.5.1 - jest-util: 27.5.1 - dev: true - - /jest-fetch-mock@3.0.3: - resolution: {integrity: sha512-Ux1nWprtLrdrH4XwE7O7InRY6psIi3GOsqNESJgMJ+M5cv4A8Lh7SN9d2V2kKRZ8ebAfcd1LNyZguAOb6JiDqw==} - dependencies: - cross-fetch: 3.1.6 - promise-polyfill: 8.3.0 - transitivePeerDependencies: - - encoding - dev: true - - /jest-get-type@27.5.1: - resolution: {integrity: sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dev: true - - /jest-get-type@29.4.3: - resolution: {integrity: sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dev: true - - /jest-haste-map@27.5.1: - resolution: {integrity: sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - '@types/graceful-fs': 4.1.6 - '@types/node': 20.3.1 - anymatch: 3.1.3 - fb-watchman: 2.0.2 - graceful-fs: 4.2.11 - jest-regex-util: 27.5.1 - jest-serializer: 27.5.1 - jest-util: 27.5.1 - jest-worker: 27.5.1 - micromatch: 4.0.5 - walker: 1.0.8 - optionalDependencies: - fsevents: 2.3.2 - dev: true - - /jest-jasmine2@27.5.1: - resolution: {integrity: sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/environment': 27.5.1 - '@jest/source-map': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - chalk: 4.1.2 - co: 4.6.0 - expect: 27.5.1 - is-generator-fn: 2.1.0 - jest-each: 27.5.1 - jest-matcher-utils: 27.5.1 - jest-message-util: 27.5.1 - jest-runtime: 27.5.1 - jest-snapshot: 27.5.1 - jest-util: 27.5.1 - pretty-format: 27.5.1 - throat: 6.0.2 - transitivePeerDependencies: - - supports-color - dev: true - - /jest-leak-detector@27.5.1: - resolution: {integrity: sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - jest-get-type: 27.5.1 - pretty-format: 27.5.1 - dev: true - - /jest-matcher-utils@27.5.1: - resolution: {integrity: sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - chalk: 4.1.2 - jest-diff: 27.5.1 - jest-get-type: 27.5.1 - pretty-format: 27.5.1 - dev: true - - /jest-message-util@27.5.1: - resolution: {integrity: sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@babel/code-frame': 7.22.5 - '@jest/types': 27.5.1 - '@types/stack-utils': 2.0.1 - chalk: 4.1.2 - graceful-fs: 4.2.11 - micromatch: 4.0.5 - pretty-format: 27.5.1 - slash: 3.0.0 - stack-utils: 2.0.6 - dev: true - - /jest-mock@27.5.1: - resolution: {integrity: sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - dev: true - - /jest-pnp-resolver@1.2.3(jest-resolve@27.5.1): - resolution: {integrity: sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==} - engines: {node: '>=6'} - peerDependencies: - jest-resolve: '*' - peerDependenciesMeta: - jest-resolve: - optional: true - dependencies: - jest-resolve: 27.5.1 - dev: true - - /jest-regex-util@27.5.1: - resolution: {integrity: sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dev: true - - /jest-resolve-dependencies@27.5.1: - resolution: {integrity: sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - jest-regex-util: 27.5.1 - jest-snapshot: 27.5.1 - transitivePeerDependencies: - - supports-color - dev: true - - /jest-resolve@27.5.1: - resolution: {integrity: sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - chalk: 4.1.2 - graceful-fs: 4.2.11 - jest-haste-map: 27.5.1 - jest-pnp-resolver: 1.2.3(jest-resolve@27.5.1) - jest-util: 27.5.1 - jest-validate: 27.5.1 - resolve: 1.22.2 - resolve.exports: 1.1.1 - slash: 3.0.0 - dev: true - - /jest-runner@27.5.1: - resolution: {integrity: sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/console': 27.5.1 - '@jest/environment': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - chalk: 4.1.2 - emittery: 0.8.1 - graceful-fs: 4.2.11 - jest-docblock: 27.5.1 - jest-environment-jsdom: 27.5.1 - jest-environment-node: 27.5.1 - jest-haste-map: 27.5.1 - jest-leak-detector: 27.5.1 - jest-message-util: 27.5.1 - jest-resolve: 27.5.1 - jest-runtime: 27.5.1 - jest-util: 27.5.1 - jest-worker: 27.5.1 - source-map-support: 0.5.21 - throat: 6.0.2 - transitivePeerDependencies: - - bufferutil - - canvas - - supports-color - - utf-8-validate - dev: true - - /jest-runtime@27.5.1: - resolution: {integrity: sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/environment': 27.5.1 - '@jest/fake-timers': 27.5.1 - '@jest/globals': 27.5.1 - '@jest/source-map': 27.5.1 - '@jest/test-result': 27.5.1 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 - chalk: 4.1.2 - cjs-module-lexer: 1.2.3 - collect-v8-coverage: 1.0.1 - execa: 5.1.1 - glob: 7.2.3 - graceful-fs: 4.2.11 - jest-haste-map: 27.5.1 - jest-message-util: 27.5.1 - jest-mock: 27.5.1 - jest-regex-util: 27.5.1 - jest-resolve: 27.5.1 - jest-snapshot: 27.5.1 - jest-util: 27.5.1 - slash: 3.0.0 - strip-bom: 4.0.0 - transitivePeerDependencies: - - supports-color - dev: true - - /jest-serializer@27.5.1: - resolution: {integrity: sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@types/node': 20.3.1 - graceful-fs: 4.2.11 - dev: true - - /jest-snapshot@27.5.1: - resolution: {integrity: sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@babel/core': 7.22.5 - '@babel/generator': 7.22.5 - '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.22.5) - '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 - '@jest/transform': 27.5.1 - '@jest/types': 27.5.1 - '@types/babel__traverse': 7.20.1 - '@types/prettier': 2.7.3 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.22.5) - chalk: 4.1.2 - expect: 27.5.1 - graceful-fs: 4.2.11 - jest-diff: 27.5.1 - jest-get-type: 27.5.1 - jest-haste-map: 27.5.1 - jest-matcher-utils: 27.5.1 - jest-message-util: 27.5.1 - jest-util: 27.5.1 - natural-compare: 1.4.0 - pretty-format: 27.5.1 - semver: 7.5.1 - transitivePeerDependencies: - - supports-color - dev: true - - /jest-util@27.5.1: - resolution: {integrity: sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - chalk: 4.1.2 - ci-info: 3.8.0 - graceful-fs: 4.2.11 - picomatch: 2.3.1 - dev: true - - /jest-validate@27.5.1: - resolution: {integrity: sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/types': 27.5.1 - camelcase: 6.3.0 - chalk: 4.1.2 - jest-get-type: 27.5.1 - leven: 3.1.0 - pretty-format: 27.5.1 - dev: true - - /jest-watcher@27.5.1: - resolution: {integrity: sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - '@jest/test-result': 27.5.1 - '@jest/types': 27.5.1 - '@types/node': 20.3.1 - ansi-escapes: 4.3.2 - chalk: 4.1.2 - jest-util: 27.5.1 - string-length: 4.0.2 - dev: true - - /jest-websocket-mock@2.2.1(mock-socket@9.0.8): - resolution: {integrity: sha512-fhsGLXrPfs06PhHoxqOSA9yZ6Rb4qYrf4Wcm7/nfRzjlrf1gIeuhYUkzMRjjE0TMQ37SwkmeLanwrZY4ZaNp8g==} - peerDependencies: - mock-socket: ^8||^9 - dependencies: - jest-diff: 27.5.1 - mock-socket: 9.0.8 - dev: true - /jest-worker@27.5.1: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} @@ -6366,31 +4722,6 @@ packages: supports-color: 8.1.1 dev: true - /jest@27.4.5(ts-node@10.4.0): - resolution: {integrity: sha512-uT5MiVN3Jppt314kidCk47MYIRilJjA/l2mxwiuzzxGUeJIvA8/pDaJOAX5KWvjAo7SCydcW0/4WEtgbLMiJkg==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - hasBin: true - peerDependencies: - node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 - peerDependenciesMeta: - node-notifier: - optional: true - dependencies: - '@jest/core': 27.5.1(ts-node@10.4.0) - import-local: 3.1.0 - jest-cli: 27.5.1(ts-node@10.4.0) - transitivePeerDependencies: - - bufferutil - - canvas - - supports-color - - ts-node - - utf-8-validate - dev: true - - /jju@1.4.0: - resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - dev: true - /jmespath@0.16.0: resolution: {integrity: sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==} engines: {node: '>= 0.6.0'} @@ -6427,22 +4758,7 @@ packages: /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - - /js-yaml@3.13.1: - resolution: {integrity: sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==} - hasBin: true - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - dev: true - - /js-yaml@3.14.1: - resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} - hasBin: true - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - dev: true + dev: false /js-yaml@4.1.0: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} @@ -6458,48 +4774,6 @@ packages: resolution: {integrity: sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==} dev: false - /jsdom@16.7.0: - resolution: {integrity: sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==} - engines: {node: '>=10'} - peerDependencies: - canvas: ^2.5.0 - peerDependenciesMeta: - canvas: - optional: true - dependencies: - abab: 2.0.6 - acorn: 8.8.2 - acorn-globals: 6.0.0 - cssom: 0.4.4 - cssstyle: 2.3.0 - data-urls: 2.0.0 - decimal.js: 10.4.3 - domexception: 2.0.1 - escodegen: 2.0.0 - form-data: 3.0.1 - html-encoding-sniffer: 2.0.1 - http-proxy-agent: 4.0.1 - https-proxy-agent: 5.0.1 - is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.5 - parse5: 6.0.1 - saxes: 5.0.1 - symbol-tree: 3.2.4 - tough-cookie: 4.1.3 - w3c-hr-time: 1.0.2 - w3c-xmlserializer: 2.0.0 - webidl-conversions: 6.1.0 - whatwg-encoding: 1.0.5 - whatwg-mimetype: 2.3.0 - whatwg-url: 8.7.0 - ws: 7.5.9 - xml-name-validator: 3.0.0 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - dev: true - /jsdom@20.0.3: resolution: {integrity: sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==} engines: {node: '>=14'} @@ -6545,6 +4819,7 @@ packages: resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} engines: {node: '>=4'} hasBin: true + dev: false /json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} @@ -6588,12 +4863,6 @@ packages: engines: {node: '>=6'} hasBin: true - /jsonfile@4.0.0: - resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} - optionalDependencies: - graceful-fs: 4.2.11 - dev: true - /jsonld@8.2.0: resolution: {integrity: sha512-qHUa9pn3/cdAZw26HY1Jmy9+sHOxaLrveTRWUcrSDx5apTa20bBTe+X4nzI7dlqc+M5GkwQW6RgRdqO6LF5nkw==} engines: {node: '>=14'} @@ -6657,16 +4926,6 @@ packages: dependencies: is-buffer: 1.1.6 - /kind-of@6.0.3: - resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} - engines: {node: '>=0.10.0'} - dev: true - - /kleur@3.0.3: - resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} - engines: {node: '>=6'} - dev: true - /koa-body@6.0.1: resolution: {integrity: sha512-M8ZvMD8r+kPHy28aWP9VxL7kY8oPWA+C7ZgCljrCMeaU7uX6wsIQgDHskyrAr9sw+jqnIXyv4Mlxri5R4InIJg==} dependencies: @@ -6912,17 +5171,13 @@ packages: readable-stream: 2.3.8 dev: false - /leven@3.1.0: - resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} - engines: {node: '>=6'} - dev: true - /levn@0.3.0: resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} engines: {node: '>= 0.8.0'} dependencies: prelude-ls: 1.1.2 type-check: 0.3.2 + dev: false /levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} @@ -6931,10 +5186,6 @@ packages: prelude-ls: 1.2.1 type-check: 0.4.0 - /lines-and-columns@1.2.4: - resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} - dev: true - /loader-runner@4.3.0: resolution: {integrity: sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==} engines: {node: '>=6.11.5'} @@ -6954,6 +5205,7 @@ packages: engines: {node: '>=8'} dependencies: p-locate: 4.1.0 + dev: false /locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} @@ -6972,15 +5224,12 @@ packages: resolution: {integrity: sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==} dev: false - /lodash.get@4.4.2: - resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} - dev: true - /lodash.isarguments@3.1.0: resolution: {integrity: sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==} /lodash.isequal@4.5.0: resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} + dev: false /lodash.isplainobject@4.0.6: resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==} @@ -6990,10 +5239,6 @@ packages: resolution: {integrity: sha512-VlV0abdYZs5asSYW1JW5W1f6gxf2SGQt90rzQp7UNTQ8KwcB3CprZe5crN1LIlCA/fB5R9xecrZijGSELJL8Yg==} dev: false - /lodash.memoize@4.1.2: - resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} - dev: true - /lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} @@ -7004,14 +5249,6 @@ packages: /lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} - /log-symbols@4.1.0: - resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} - engines: {node: '>=10'} - dependencies: - chalk: 4.1.2 - is-unicode-supported: 0.1.0 - dev: true - /lowercase-keys@2.0.0: resolution: {integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==} engines: {node: '>=8'} @@ -7032,6 +5269,7 @@ packages: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} dependencies: yallist: 3.1.1 + dev: false /lru-cache@6.0.0: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} @@ -7063,6 +5301,7 @@ packages: engines: {node: '>=8'} dependencies: semver: 6.3.0 + dev: false /make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} @@ -7090,22 +5329,6 @@ packages: - supports-color dev: false - /makeerror@1.0.12: - resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} - dependencies: - tmpl: 1.0.5 - dev: true - - /map-obj@1.0.1: - resolution: {integrity: sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==} - engines: {node: '>=0.10.0'} - dev: true - - /map-obj@4.3.0: - resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==} - engines: {node: '>=8'} - dev: true - /map-stream@0.1.0: resolution: {integrity: sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==} dev: true @@ -7123,24 +5346,6 @@ packages: - encoding dev: false - /meow@9.0.0: - resolution: {integrity: sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==} - engines: {node: '>=10'} - dependencies: - '@types/minimist': 1.2.2 - camelcase-keys: 6.2.2 - decamelize: 1.2.0 - decamelize-keys: 1.1.1 - hard-rejection: 2.1.0 - minimist-options: 4.1.0 - normalize-package-data: 3.0.3 - read-pkg-up: 7.0.1 - redent: 3.0.0 - trim-newlines: 3.0.1 - type-fest: 0.18.1 - yargs-parser: 20.2.9 - dev: true - /merge-stream@2.0.0: resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} dev: true @@ -7203,11 +5408,6 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dev: false - /min-indent@1.0.1: - resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} - engines: {node: '>=4'} - dev: true - /minimalistic-assert@1.0.1: resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} dev: false @@ -7230,15 +5430,6 @@ packages: brace-expansion: 2.0.1 dev: false - /minimist-options@4.1.0: - resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} - engines: {node: '>= 6'} - dependencies: - arrify: 1.0.1 - is-plain-obj: 1.1.0 - kind-of: 6.0.3 - dev: true - /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} @@ -7325,11 +5516,6 @@ packages: hasBin: true dev: false - /mock-socket@9.0.8: - resolution: {integrity: sha512-8Syqkaaa2SzRqW68DEsnZkKQicHP7hVzfj3uCvigB5TL79H1ljKbwmOcRIENkx0ZTyu/5W6u+Pk9Qy6JCp38Ww==} - engines: {node: '>= 8'} - dev: true - /moment@2.29.4: resolution: {integrity: sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==} dev: false @@ -7467,6 +5653,7 @@ packages: optional: true dependencies: whatwg-url: 5.0.0 + dev: false /node-fetch@3.3.1: resolution: {integrity: sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==} @@ -7507,17 +5694,9 @@ packages: - supports-color dev: false - /node-int64@0.4.0: - resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} - dev: true - /node-releases@2.0.12: resolution: {integrity: sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==} - /node-releases@2.0.13: - resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==} - dev: true - /nodemailer@6.9.3: resolution: {integrity: sha512-fy9v3NgTzBngrMFkDsKEj0r02U7jm6XfC3b52eoNV+GCrGj+s8pt5OqhiJdWKuw51zCTdiNR/IUD1z33LIIGpg==} engines: {node: '>=6.0.0'} @@ -7542,25 +5721,6 @@ packages: dependencies: abbrev: 1.1.1 - /normalize-package-data@2.5.0: - resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} - dependencies: - hosted-git-info: 2.8.9 - resolve: 1.22.2 - semver: 5.7.1 - validate-npm-package-license: 3.0.4 - dev: true - - /normalize-package-data@3.0.3: - resolution: {integrity: sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==} - engines: {node: '>=10'} - dependencies: - hosted-git-info: 4.1.0 - is-core-module: 2.12.1 - semver: 7.5.1 - validate-npm-package-license: 3.0.4 - dev: true - /normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} @@ -7617,6 +5777,7 @@ packages: /nwsapi@2.2.5: resolution: {integrity: sha512-6xpotnECFy/og7tKSBVmUNft7J3jyXAka4XvG6AUhFWRz+Q/Ljus7znJAA3bxColfQLdS+XsjoodtJfCgeTEFQ==} + dev: false /oauth@0.10.0: resolution: {integrity: sha512-1orQ9MT1vHFGQxhuy7E/0gECD3fd2fCC+PIX+/jgmU/gI3EpRocXtmtvxCO5x3WZ443FLTLFWNDjl5MPJf9u+Q==} @@ -7684,6 +5845,7 @@ packages: prelude-ls: 1.1.2 type-check: 0.3.2 word-wrap: 1.2.3 + dev: false /optionator@0.9.1: resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} @@ -7733,6 +5895,7 @@ packages: engines: {node: '>=6'} dependencies: p-try: 2.2.0 + dev: false /p-limit@3.1.0: resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} @@ -7745,6 +5908,7 @@ packages: engines: {node: '>=8'} dependencies: p-limit: 2.3.0 + dev: false /p-locate@5.0.0: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} @@ -7762,6 +5926,7 @@ packages: /p-try@2.2.0: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} + dev: false /packet-reader@1.0.0: resolution: {integrity: sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==} @@ -7773,16 +5938,6 @@ packages: dependencies: callsites: 3.1.0 - /parse-json@5.2.0: - resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} - engines: {node: '>=8'} - dependencies: - '@babel/code-frame': 7.22.5 - error-ex: 1.3.2 - json-parse-even-better-errors: 2.3.1 - lines-and-columns: 1.2.4 - dev: true - /parse-srcset@1.0.2: resolution: {integrity: sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==} dev: false @@ -7799,6 +5954,7 @@ packages: /parse5@6.0.1: resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + dev: false /parse5@7.1.2: resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} @@ -7838,6 +5994,7 @@ packages: /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + dev: false /path-scurry@1.9.2: resolution: {integrity: sha512-qSDLy2aGFPm8i4rsbHd4MNyTcrzHFsLQykrtbuGRknZZCBBVXSv2tSCDN2Cg6Rt/GFRw8GoW9y9Ecw5rIPG1sg==} @@ -7851,11 +6008,6 @@ packages: resolution: {integrity: sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==} dev: false - /path-type@4.0.0: - resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} - engines: {node: '>=8'} - dev: true - /pause-stream@0.0.11: resolution: {integrity: sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==} dependencies: @@ -7946,25 +6098,6 @@ packages: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} engines: {node: '>=6'} - /pirates@4.0.5: - resolution: {integrity: sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==} - engines: {node: '>= 6'} - dev: true - - /pkg-dir@4.2.0: - resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} - engines: {node: '>=8'} - dependencies: - find-up: 4.1.0 - dev: true - - /plur@4.0.0: - resolution: {integrity: sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg==} - engines: {node: '>=10'} - dependencies: - irregular-plurals: 3.5.0 - dev: true - /pluralize@8.0.0: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} @@ -8033,29 +6166,12 @@ packages: /prelude-ls@1.1.2: resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==} engines: {node: '>= 0.8.0'} + dev: false /prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} - /pretty-format@27.5.1: - resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - ansi-regex: 5.0.1 - ansi-styles: 5.2.0 - react-is: 17.0.2 - dev: true - - /pretty-format@29.5.0: - resolution: {integrity: sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - '@jest/schemas': 29.4.3 - ansi-styles: 5.2.0 - react-is: 18.2.0 - dev: true - /pretty@2.0.0: resolution: {integrity: sha512-G9xUchgTEiNpormdYBl+Pha50gOUovT18IvAe7EYMZ1/f9W/WWMPRn+xI68yXNMUk3QXHDwo/1wV/4NejVNe1w==} engines: {node: '>=0.10.0'} @@ -8091,10 +6207,6 @@ packages: resolution: {integrity: sha512-7nJ6v5lnJsXwGprnGXga4wx6d1POjvi5Qmf1ivTRxTjH4Z/9Czja/UCMLVmB9N93GeWOU93XaFaEt6jbuoagNw==} dev: false - /promise-polyfill@8.3.0: - resolution: {integrity: sha512-H5oELycFml5yto/atYqmjyigJoAo3+OXwolYiH7OfQuYlAqhxNvTfiNMbV9hsC6Yp83yE5r2KTVmtrG6R9i6Pg==} - dev: true - /promise-retry@2.0.1: resolution: {integrity: sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==} engines: {node: '>=10'} @@ -8103,14 +6215,6 @@ packages: retry: 0.12.0 dev: false - /prompts@2.4.2: - resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} - engines: {node: '>= 6'} - dependencies: - kleur: 3.0.3 - sisteransi: 1.0.5 - dev: true - /proto-list@1.2.4: resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==} @@ -8127,6 +6231,7 @@ packages: /psl@1.9.0: resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} + dev: false /pump@3.0.0: resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} @@ -8182,15 +6287,11 @@ packages: /querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} + dev: false /queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - /quick-lru@4.0.1: - resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} - engines: {node: '>=8'} - dev: true - /quick-lru@5.1.1: resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==} engines: {node: '>=10'} @@ -8254,33 +6355,6 @@ packages: - supports-color dev: false - /react-is@17.0.2: - resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} - dev: true - - /react-is@18.2.0: - resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} - dev: true - - /read-pkg-up@7.0.1: - resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} - engines: {node: '>=8'} - dependencies: - find-up: 4.1.0 - read-pkg: 5.2.0 - type-fest: 0.8.1 - dev: true - - /read-pkg@5.2.0: - resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} - engines: {node: '>=8'} - dependencies: - '@types/normalize-package-data': 2.4.1 - normalize-package-data: 2.5.0 - parse-json: 5.2.0 - type-fest: 0.6.0 - dev: true - /readable-stream@2.3.8: resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} dependencies: @@ -8319,18 +6393,6 @@ packages: dependencies: picomatch: 2.3.1 - /reconnecting-websocket@4.4.0: - resolution: {integrity: sha512-D2E33ceRPga0NvTDhJmphEgJ7FUYF0v4lr1ki0csq06OdlxKfugGzN0dSkxM/NfqCxYELK4KcaTOUOjTV6Dcng==} - dev: false - - /redent@3.0.0: - resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} - engines: {node: '>=8'} - dependencies: - indent-string: 4.0.0 - strip-indent: 3.0.0 - dev: true - /redis-errors@1.2.0: resolution: {integrity: sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==} engines: {node: '>=4'} @@ -8382,6 +6444,7 @@ packages: /require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} + dev: false /require-from-string@2.0.2: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} @@ -8394,26 +6457,15 @@ packages: /requires-port@1.0.0: resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} + dev: false /resolve-alpn@1.2.1: resolution: {integrity: sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==} - /resolve-cwd@3.0.0: - resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} - engines: {node: '>=8'} - dependencies: - resolve-from: 5.0.0 - dev: true - /resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} - /resolve-from@5.0.0: - resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} - engines: {node: '>=8'} - dev: true - /resolve-path@1.4.0: resolution: {integrity: sha512-i1xevIst/Qa+nA9olDxLWnLk8YZbi8R/7JPbCMcgyWaFR6bKWaexgJgEB5oc2PKMjYdrHynyz0NY+if+H98t1w==} engines: {node: '>= 0.8'} @@ -8426,18 +6478,6 @@ packages: deprecated: https://github.com/lydell/resolve-url#deprecated dev: false - /resolve.exports@1.1.1: - resolution: {integrity: sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==} - engines: {node: '>=10'} - dev: true - - /resolve@1.19.0: - resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==} - dependencies: - is-core-module: 2.12.1 - path-parse: 1.0.7 - dev: true - /resolve@1.22.2: resolution: {integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==} hasBin: true @@ -8445,6 +6485,7 @@ packages: is-core-module: 2.12.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 + dev: false /responselike@2.0.1: resolution: {integrity: sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==} @@ -8481,20 +6522,6 @@ packages: seedrandom: 2.4.2 dev: false - /rome@12.1.3: - resolution: {integrity: sha512-e+ff72hxDpe/t5/Us7YRBVw3PBET7SeczTQNn6tvrWdrCaAw3qOukQQ+tDCkyFtS4yGsnhjrJbm43ctNbz27Yg==} - engines: {node: '>=14.*'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@rometools/cli-darwin-arm64': 12.1.3 - '@rometools/cli-darwin-x64': 12.1.3 - '@rometools/cli-linux-arm64': 12.1.3 - '@rometools/cli-linux-x64': 12.1.3 - '@rometools/cli-win32-arm64': 12.1.3 - '@rometools/cli-win32-x64': 12.1.3 - dev: true - /rss-parser@3.13.0: resolution: {integrity: sha512-7jWUBV5yGN3rqMMj7CZufl/291QAhvrrGpDNE4k/02ZchL0npisiYYqULF71jCEKoIiHvK/Q2e6IkDwPziT7+w==} dependencies: @@ -8522,6 +6549,7 @@ packages: /safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + dev: false /sanitize-html@2.10.0: resolution: {integrity: sha512-JqdovUd81dG4k87vZt6uA6YhDfWkUGruUu/aPmXLxXi45gZExnt9Bnw/qeQU8oGf82vPyaE0vO4aH0PbobB9JQ==} @@ -8542,13 +6570,6 @@ packages: resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==} dev: false - /saxes@5.0.1: - resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==} - engines: {node: '>=10'} - dependencies: - xmlchars: 2.2.0 - dev: true - /saxes@6.0.0: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} @@ -8597,14 +6618,6 @@ packages: resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} hasBin: true - /semver@7.3.8: - resolution: {integrity: sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==} - engines: {node: '>=10'} - hasBin: true - dependencies: - lru-cache: 6.0.0 - dev: true - /semver@7.5.1: resolution: {integrity: sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==} engines: {node: '>=10'} @@ -8714,10 +6727,6 @@ packages: is-arrayish: 0.3.2 dev: false - /sisteransi@1.0.5: - resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} - dev: true - /slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -8787,28 +6796,6 @@ packages: engines: {node: '>= 8'} dev: true - /spdx-correct@3.2.0: - resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} - dependencies: - spdx-expression-parse: 3.0.1 - spdx-license-ids: 3.0.13 - dev: true - - /spdx-exceptions@2.3.0: - resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==} - dev: true - - /spdx-expression-parse@3.0.1: - resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} - dependencies: - spdx-exceptions: 2.3.0 - spdx-license-ids: 3.0.13 - dev: true - - /spdx-license-ids@3.0.13: - resolution: {integrity: sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==} - dev: true - /split2@4.2.0: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} @@ -8820,10 +6807,6 @@ packages: through: 2.3.8 dev: true - /sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - dev: true - /sprintf-js@1.1.2: resolution: {integrity: sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==} dev: false @@ -8851,13 +6834,6 @@ packages: minipass: 5.0.0 dev: false - /stack-utils@2.0.6: - resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} - engines: {node: '>=10'} - dependencies: - escape-string-regexp: 2.0.0 - dev: true - /standard-as-callback@2.1.0: resolution: {integrity: sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==} @@ -8910,19 +6886,6 @@ packages: resolution: {integrity: sha512-Nk/brWYpD85WlOgzw5h173aci0Teyv8YdIAEtV+N88nDB0dLlazZyJMIsN6eo1/AR61l+p6CJTG1JIyFaoNEEA==} dev: true - /string-argv@0.3.2: - resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} - engines: {node: '>=0.6.19'} - dev: true - - /string-length@4.0.2: - resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} - engines: {node: '>=10'} - dependencies: - char-regex: 1.0.2 - strip-ansi: 6.0.1 - dev: true - /string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -8930,6 +6893,7 @@ packages: emoji-regex: 8.0.0 is-fullwidth-code-point: 3.0.0 strip-ansi: 6.0.1 + dev: false /string-width@5.1.2: resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} @@ -8975,11 +6939,6 @@ packages: engines: {node: '>=4'} dev: true - /strip-bom@4.0.0: - resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==} - engines: {node: '>=8'} - dev: true - /strip-eof@1.0.0: resolution: {integrity: sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==} engines: {node: '>=0.10.0'} @@ -8995,13 +6954,6 @@ packages: engines: {node: '>=12'} dev: true - /strip-indent@3.0.0: - resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} - engines: {node: '>=8'} - dependencies: - min-indent: 1.0.1 - dev: true - /strip-json-comments@2.0.1: resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} engines: {node: '>=0.10.0'} @@ -9032,6 +6984,7 @@ packages: engines: {node: '>=4'} dependencies: has-flag: 3.0.0 + dev: false /supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} @@ -9046,17 +6999,10 @@ packages: has-flag: 4.0.0 dev: true - /supports-hyperlinks@2.3.0: - resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==} - engines: {node: '>=8'} - dependencies: - has-flag: 4.0.0 - supports-color: 7.2.0 - dev: true - /supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + dev: false /swc-loader@0.2.3(@swc/core@1.3.62)(webpack@5.85.1): resolution: {integrity: sha512-D1p6XXURfSPleZZA/Lipb3A8pZ17fP4NObZvFCDjK/OKljroqDpPmsBdTraWhVBqUNpcWBQY1imWdoPScRlQ7A==} @@ -9070,6 +7016,7 @@ packages: /symbol-tree@3.2.4: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + dev: false /syslog-pro@1.0.0: resolution: {integrity: sha512-7SNMJKtQBJlwBUp1jxFT7bXya71cnINXPCYJ2AVhlQE4MKL7o2QiPdAXbMdWRiLeykQ2rx+7TNrnoGzvzhO+eA==} @@ -9122,14 +7069,6 @@ packages: yallist: 4.0.0 dev: false - /terminal-link@2.1.1: - resolution: {integrity: sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==} - engines: {node: '>=8'} - dependencies: - ansi-escapes: 4.3.2 - supports-hyperlinks: 2.3.0 - dev: true - /terser-webpack-plugin@5.3.9(@swc/core@1.3.62)(webpack@5.85.1): resolution: {integrity: sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==} engines: {node: '>= 10.13.0'} @@ -9193,15 +7132,6 @@ packages: - supports-color dev: false - /test-exclude@6.0.0: - resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} - engines: {node: '>=8'} - dependencies: - '@istanbuljs/schema': 0.1.3 - glob: 7.2.3 - minimatch: 3.1.2 - dev: true - /text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} @@ -9216,10 +7146,6 @@ packages: dependencies: any-promise: 1.3.0 - /throat@6.0.2: - resolution: {integrity: sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==} - dev: true - /through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: true @@ -9235,13 +7161,10 @@ packages: rimraf: 3.0.2 dev: false - /tmpl@1.0.5: - resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} - dev: true - /to-fast-properties@2.0.0: resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} + dev: false /to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} @@ -9268,16 +7191,11 @@ packages: punycode: 2.3.0 universalify: 0.2.0 url-parse: 1.5.10 + dev: false /tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - - /tr46@2.1.0: - resolution: {integrity: sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==} - engines: {node: '>=8'} - dependencies: - punycode: 2.3.0 - dev: true + dev: false /tr46@3.0.0: resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==} @@ -9286,11 +7204,6 @@ packages: punycode: 2.3.0 dev: false - /trim-newlines@3.0.1: - resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} - engines: {node: '>=8'} - dev: true - /trim-repeated@2.0.0: resolution: {integrity: sha512-QUHBFTJGdOwmp0tbOG505xAgOp/YliZP/6UgafFXYZ26WT1bvQmSMJUvkeVSASuJJHbqsFbynTvkd5W8RBTipg==} engines: {node: '>=12'} @@ -9298,41 +7211,6 @@ packages: escape-string-regexp: 5.0.0 dev: true - /ts-jest@27.1.2(@babel/core@7.22.8)(@types/jest@27.4.0)(jest@27.4.5)(typescript@5.1.3): - resolution: {integrity: sha512-eSOiJOWq6Hhs6Khzk5wKC5sgWIXgXqOCiIl1+3lfnearu58Hj4QpE5tUhQcA3xtZrELbcvAGCsd6HB8OsaVaTA==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - hasBin: true - peerDependencies: - '@babel/core': '>=7.0.0-beta.0 <8' - '@types/jest': ^27.0.0 - babel-jest: '>=27.0.0 <28' - esbuild: ~0.14.0 - jest: ^27.0.0 - typescript: '>=3.8 <5.0' - peerDependenciesMeta: - '@babel/core': - optional: true - '@types/jest': - optional: true - babel-jest: - optional: true - esbuild: - optional: true - dependencies: - '@babel/core': 7.22.8 - '@types/jest': 27.4.0 - bs-logger: 0.2.6 - fast-json-stable-stringify: 2.1.0 - jest: 27.4.5(ts-node@10.4.0) - jest-util: 27.5.1 - json5: 2.2.3 - lodash.memoize: 4.1.2 - make-error: 1.3.6 - semver: 7.5.1 - typescript: 5.1.3 - yargs-parser: 20.2.9 - dev: true - /ts-loader@9.4.3(typescript@5.1.3)(webpack@5.85.1): resolution: {integrity: sha512-n3hBnm6ozJYzwiwt5YRiJZkzktftRpMiBApHaJPoWLA+qetQBAXkHqCLM6nwSdRDimqVtA5ocIkcTRLMTt7yzA==} engines: {node: '>=12.0.0'} @@ -9348,37 +7226,6 @@ packages: webpack: 5.85.1(@swc/core@1.3.62) dev: true - /ts-node@10.4.0(@swc/core@1.3.62)(@types/node@20.3.1)(typescript@5.1.3): - resolution: {integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - dependencies: - '@cspotcode/source-map-support': 0.7.0 - '@swc/core': 1.3.62 - '@tsconfig/node10': 1.0.9 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.3.1 - acorn: 8.8.2 - acorn-walk: 8.2.0 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.1.3 - yn: 3.1.1 - dev: true - /ts-node@10.9.1(@swc/core@1.3.62)(@types/node@18.11.18)(typescript@5.1.3): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true @@ -9419,20 +7266,6 @@ packages: strip-bom: 3.0.0 dev: true - /tsd@0.28.1: - resolution: {integrity: sha512-FeYrfJ05QgEMW/qOukNCr4fAJHww4SaKnivAXRv4g5kj4FeLpNV7zH4dorzB9zAfVX4wmA7zWu/wQf7kkcvfbw==} - engines: {node: '>=14.16'} - hasBin: true - dependencies: - '@tsd/typescript': 5.0.4 - eslint-formatter-pretty: 4.1.0 - globby: 11.1.0 - jest-diff: 29.5.0 - meow: 9.0.0 - path-exists: 4.0.0 - read-pkg-up: 7.0.1 - dev: true - /tslib@2.5.3: resolution: {integrity: sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==} dev: false @@ -9465,6 +7298,7 @@ packages: engines: {node: '>= 0.8.0'} dependencies: prelude-ls: 1.1.2 + dev: false /type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} @@ -9475,31 +7309,12 @@ packages: /type-detect@4.0.8: resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} engines: {node: '>=4'} - - /type-fest@0.18.1: - resolution: {integrity: sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==} - engines: {node: '>=10'} - dev: true + dev: false /type-fest@0.20.2: resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} engines: {node: '>=10'} - /type-fest@0.21.3: - resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} - engines: {node: '>=10'} - dev: true - - /type-fest@0.6.0: - resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} - engines: {node: '>=8'} - dev: true - - /type-fest@0.8.1: - resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} - engines: {node: '>=8'} - dev: true - /type-is@1.6.18: resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} engines: {node: '>= 0.6'} @@ -9520,6 +7335,7 @@ packages: resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} dependencies: is-typedarray: 1.0.0 + dev: false /typedarray@0.0.6: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} @@ -9613,12 +7429,6 @@ packages: hasBin: true dev: true - /typescript@5.0.4: - resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} - engines: {node: '>=12.20'} - hasBin: true - dev: true - /typescript@5.1.3: resolution: {integrity: sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==} engines: {node: '>=14.17'} @@ -9650,14 +7460,10 @@ packages: imurmurhash: 0.1.4 dev: false - /universalify@0.1.2: - resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} - engines: {node: '>= 4.0.0'} - dev: true - /universalify@0.2.0: resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} engines: {node: '>= 4.0.0'} + dev: false /unpipe@1.0.0: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} @@ -9674,17 +7480,6 @@ packages: escalade: 3.1.1 picocolors: 1.0.0 - /update-browserslist-db@1.0.11(browserslist@4.21.9): - resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - dependencies: - browserslist: 4.21.9 - escalade: 3.1.1 - picocolors: 1.0.0 - dev: true - /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: @@ -9695,6 +7490,7 @@ packages: dependencies: querystringify: 2.2.0 requires-port: 1.0.0 + dev: false /url@0.10.3: resolution: {integrity: sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==} @@ -9751,27 +7547,6 @@ packages: /v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - /v8-to-istanbul@8.1.1: - resolution: {integrity: sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==} - engines: {node: '>=10.12.0'} - dependencies: - '@types/istanbul-lib-coverage': 2.0.4 - convert-source-map: 1.9.0 - source-map: 0.7.4 - dev: true - - /validate-npm-package-license@3.0.4: - resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} - dependencies: - spdx-correct: 3.2.0 - spdx-expression-parse: 3.0.1 - dev: true - - /validator@13.9.0: - resolution: {integrity: sha512-B+dGG8U3fdtM0/aNK4/X8CXq/EcxU2WPrPEkJGslb47qyHsxmbggTWK0yEA4qnYVNF+nxNlN88o14hIcPmSIEA==} - engines: {node: '>= 0.10'} - dev: true - /vary@1.1.2: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} @@ -9786,20 +7561,6 @@ packages: extsprintf: 1.3.0 dev: false - /w3c-hr-time@1.0.2: - resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==} - deprecated: Use your platform's native performance.now() and performance.timeOrigin. - dependencies: - browser-process-hrtime: 1.0.0 - dev: true - - /w3c-xmlserializer@2.0.0: - resolution: {integrity: sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==} - engines: {node: '>=10'} - dependencies: - xml-name-validator: 3.0.0 - dev: true - /w3c-xmlserializer@4.0.0: resolution: {integrity: sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==} engines: {node: '>=14'} @@ -9821,12 +7582,6 @@ packages: - debug dev: true - /walker@1.0.8: - resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} - dependencies: - makeerror: 1.0.12 - dev: true - /wasm-feature-detect@1.5.1: resolution: {integrity: sha512-GHr23qmuehNXHY4902/hJ6EV5sUANIJC3R/yMfQ7hWDg3nfhlcJfnIL96R2ohpIwa62araN6aN4bLzzzq5GXkg==} dev: false @@ -9860,16 +7615,7 @@ packages: /webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - - /webidl-conversions@5.0.0: - resolution: {integrity: sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==} - engines: {node: '>=8'} - dev: true - - /webidl-conversions@6.1.0: - resolution: {integrity: sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==} - engines: {node: '>=10.4'} - dev: true + dev: false /webidl-conversions@7.0.0: resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==} @@ -9935,12 +7681,6 @@ packages: - supports-color dev: false - /whatwg-encoding@1.0.5: - resolution: {integrity: sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==} - dependencies: - iconv-lite: 0.4.24 - dev: true - /whatwg-encoding@2.0.0: resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==} engines: {node: '>=12'} @@ -9948,10 +7688,6 @@ packages: iconv-lite: 0.6.3 dev: false - /whatwg-mimetype@2.3.0: - resolution: {integrity: sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==} - dev: true - /whatwg-mimetype@3.0.0: resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==} engines: {node: '>=12'} @@ -9970,15 +7706,7 @@ packages: dependencies: tr46: 0.0.3 webidl-conversions: 3.0.1 - - /whatwg-url@8.7.0: - resolution: {integrity: sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==} - engines: {node: '>=10'} - dependencies: - lodash: 4.17.21 - tr46: 2.1.0 - webidl-conversions: 6.1.0 - dev: true + dev: false /which-module@2.0.1: resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} @@ -10035,6 +7763,7 @@ packages: ansi-styles: 4.3.0 string-width: 4.2.3 strip-ansi: 6.0.1 + dev: false /wrap-ansi@8.1.0: resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} @@ -10048,28 +7777,6 @@ packages: /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - /write-file-atomic@3.0.3: - resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==} - dependencies: - imurmurhash: 0.1.4 - is-typedarray: 1.0.0 - signal-exit: 3.0.7 - typedarray-to-buffer: 3.1.5 - dev: true - - /ws@7.5.9: - resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} - engines: {node: '>=8.3.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - dev: true - /ws@8.13.0: resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} engines: {node: '>=10.0.0'} @@ -10093,10 +7800,6 @@ packages: sax: 1.2.4 dev: false - /xml-name-validator@3.0.0: - resolution: {integrity: sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==} - dev: true - /xml-name-validator@4.0.0: resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==} engines: {node: '>=12'} @@ -10137,6 +7840,7 @@ packages: /xmlchars@2.2.0: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + dev: false /xtend@4.0.2: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} @@ -10150,6 +7854,7 @@ packages: /y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} + dev: false /yaeti@0.0.6: resolution: {integrity: sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==} @@ -10161,6 +7866,7 @@ packages: /yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + dev: false /yallist@4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} @@ -10180,11 +7886,7 @@ packages: /yargs-parser@20.2.4: resolution: {integrity: sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==} engines: {node: '>=10'} - - /yargs-parser@20.2.9: - resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} - engines: {node: '>=10'} - dev: true + dev: false /yargs-parser@21.1.1: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} @@ -10219,6 +7921,7 @@ packages: string-width: 4.2.3 y18n: 5.0.8 yargs-parser: 20.2.4 + dev: false /yargs@17.7.2: resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} @@ -10246,18 +7949,6 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} - /z-schema@5.0.5: - resolution: {integrity: sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==} - engines: {node: '>=8.0.0'} - hasBin: true - dependencies: - lodash.get: 4.4.2 - lodash.isequal: 4.5.0 - validator: 13.9.0 - optionalDependencies: - commander: 9.5.0 - dev: true - /zip-stream@4.1.0: resolution: {integrity: sha512-zshzwQW7gG7hjpBlgeQP9RuyPGNxvJdzR8SUM3QhxCnLjWN2E7j3dOvpeDcQoETfHx0urRS7EtmVToql7YpU4A==} engines: {node: '>= 10'} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index c494d18c76..c61b22be54 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,2 @@ packages: - - 'packages/backend' - - 'packages/calckey-js' + - 'packages/backend' \ No newline at end of file diff --git a/rome.json b/rome.json deleted file mode 100644 index 9b463ea411..0000000000 --- a/rome.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "$schema": "./node_modules/rome/configuration_schema.json", - "linter": { - "enabled": true, - "rules": { - "recommended": true - } - }, - "formatter": { - "ignore": [ - "packages/calckey-js/api-extractor.json", - "packages/*/tsconfig.json", - "packages/*/package-lock.json", - "packages/backend/src/server/web/manifest.ts", - "packages/backend/built/", - "*/model.json", - "*.md", - "**/tsconfig.json", - "*/.yml" - ] - } -} diff --git a/scripts/clean-all.js b/scripts/clean-all.js index 0de89a400e..fd6f08b297 100644 --- a/scripts/clean-all.js +++ b/scripts/clean-all.js @@ -12,24 +12,6 @@ const { join } = require("node:path"); force: true, }); - fs.rmSync(join(__dirname, "/../packages/backend/native-utils/built"), { - recursive: true, - force: true, - }); - fs.rmSync(join(__dirname, "/../packages/backend/native-utils/node_modules"), { - recursive: true, - force: true, - }); - - fs.rmSync(join(__dirname, "/../packages/calckey-js/built"), { - recursive: true, - force: true, - }); - fs.rmSync(join(__dirname, "/../packages/calckey-js/node_modules"), { - recursive: true, - force: true, - }); - fs.rmSync(join(__dirname, "/../built"), { recursive: true, force: true }); fs.rmSync(join(__dirname, "/../node_modules"), { recursive: true, @@ -40,9 +22,4 @@ const { join } = require("node:path"); cwd: join(__dirname, "/../"), stdio: "inherit", }); - - execa("cargo", ["clean"], { - cwd: join(__dirname, "/../packages/backend/native-utils"), - stdio: "inherit", - }); })(); diff --git a/scripts/clean.js b/scripts/clean.js index 39cbc77b90..4952566104 100644 --- a/scripts/clean.js +++ b/scripts/clean.js @@ -7,21 +7,5 @@ const { join } = require("node:path"); recursive: true, force: true, }); - fs.rmSync(join(__dirname, "/../packages/backend/native-utils/built"), { - recursive: true, - force: true, - }); - fs.rmSync(join(__dirname, "/../packages/client/built"), { - recursive: true, - force: true, - }); - fs.rmSync(join(__dirname, "/../packages/sw/built"), { - recursive: true, - force: true, - }); - fs.rmSync(join(__dirname, "/../packages/calckey-js/built"), { - recursive: true, - force: true, - }); fs.rmSync(join(__dirname, "/../built"), { recursive: true, force: true }); })();