Time to add the new API docs
This commit is contained in:
parent
30e32a2313
commit
cbae3174b2
82 changed files with 3788 additions and 0 deletions
8
docs/api/_category_.json
Normal file
8
docs/api/_category_.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"label": "Api",
|
||||
"position": 3,
|
||||
"link": {
|
||||
"type": "generated-index",
|
||||
"description": "Here you can find our api docs."
|
||||
}
|
||||
}
|
12
docs/api/index.md
Normal file
12
docs/api/index.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index)
|
||||
|
||||
## API Reference
|
||||
|
||||
## Packages
|
||||
|
||||
| Package | Description |
|
||||
| --- | --- |
|
||||
| [valkyrie-js](./valkyrie-js) | |
|
||||
|
7
docs/api/info.md
Normal file
7
docs/api/info.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: info
|
||||
---
|
||||
|
||||
# About this section
|
||||
|
||||
In this section of the documentation you will find the docs for the Valkyriecoms api which you can use by following the insturction of the [toastielab page](https://toastielab.dev/Valkyriecoms/-/packages/npm/valkyrie-js/0.0.24)
|
14
docs/api/valkyrie-js.acct.md
Normal file
14
docs/api/valkyrie-js.acct.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Acct](./valkyrie-js.acct)
|
||||
|
||||
## Acct type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type Acct = {
|
||||
username: string;
|
||||
host: string | null;
|
||||
};
|
||||
```
|
24
docs/api/valkyrie-js.api.apiclient._constructor_.md
Normal file
24
docs/api/valkyrie-js.api.apiclient._constructor_.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api) > [APIClient](./valkyrie-js.api.apiclient) > [(constructor)](./valkyrie-js.api.apiclient._constructor_)
|
||||
|
||||
## 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](./valkyrie-js.api.apiclient)<!-- -->\["origin"\]; credential?: [APIClient](./valkyrie-js.api.apiclient)<!-- -->\["credential"\]; fetch?: [APIClient](./valkyrie-js.api.apiclient)<!-- -->\["fetch"\] \| null \| undefined; } | |
|
||||
|
11
docs/api/valkyrie-js.api.apiclient.credential.md
Normal file
11
docs/api/valkyrie-js.api.apiclient.credential.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api) > [APIClient](./valkyrie-js.api.apiclient) > [credential](./valkyrie-js.api.apiclient.credential)
|
||||
|
||||
## api.APIClient.credential property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
credential: string | null | undefined;
|
||||
```
|
11
docs/api/valkyrie-js.api.apiclient.fetch.md
Normal file
11
docs/api/valkyrie-js.api.apiclient.fetch.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api) > [APIClient](./valkyrie-js.api.apiclient) > [fetch](./valkyrie-js.api.apiclient.fetch)
|
||||
|
||||
## api.APIClient.fetch property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
fetch: FetchLike;
|
||||
```
|
32
docs/api/valkyrie-js.api.apiclient.md
Normal file
32
docs/api/valkyrie-js.api.apiclient.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api) > [APIClient](./valkyrie-js.api.apiclient)
|
||||
|
||||
## api.APIClient class
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare class APIClient
|
||||
```
|
||||
|
||||
## Constructors
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [(constructor)(opts)](./valkyrie-js.api.apiclient._constructor_) | | Constructs a new instance of the <code>APIClient</code> class |
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [credential](./valkyrie-js.api.apiclient.credential) | | string \| null \| undefined | |
|
||||
| [fetch](./valkyrie-js.api.apiclient.fetch) | | [FetchLike](./valkyrie-js.api.fetchlike) | |
|
||||
| [origin](./valkyrie-js.api.apiclient.origin) | | string | |
|
||||
|
||||
## Methods
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [request(endpoint, params, credential)](./valkyrie-js.api.apiclient.request) | | |
|
||||
|
11
docs/api/valkyrie-js.api.apiclient.origin.md
Normal file
11
docs/api/valkyrie-js.api.apiclient.origin.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api) > [APIClient](./valkyrie-js.api.apiclient) > [origin](./valkyrie-js.api.apiclient.origin)
|
||||
|
||||
## api.APIClient.origin property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
origin: string;
|
||||
```
|
57
docs/api/valkyrie-js.api.apiclient.request.md
Normal file
57
docs/api/valkyrie-js.api.apiclient.request.md
Normal file
|
@ -0,0 +1,57 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api) > [APIClient](./valkyrie-js.api.apiclient) > [request](./valkyrie-js.api.apiclient.request)
|
||||
|
||||
## api.APIClient.request() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
request<E extends keyof Endpoints, P extends Endpoints[E]["req"]>(
|
||||
endpoint: E,
|
||||
params?: P,
|
||||
credential?: string | null | undefined,
|
||||
): Promise<
|
||||
Endpoints[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[E]["res"]["$switch"]["$default"]
|
||||
: Endpoints[E]["res"]
|
||||
>;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| endpoint | E | |
|
||||
| params | P | _(Optional)_ |
|
||||
| credential | string \| null \| undefined | _(Optional)_ |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise< [Endpoints](./valkyrie-js.endpoints)<!-- -->\[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](./valkyrie-js.endpoints)<!-- -->\[E\]\["res"\]\["$switch"\]\["$default"\] : [Endpoints](./valkyrie-js.endpoints)<!-- -->\[E\]\["res"\] >
|
||||
|
17
docs/api/valkyrie-js.api.apierror.md
Normal file
17
docs/api/valkyrie-js.api.apierror.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api) > [APIError](./valkyrie-js.api.apierror)
|
||||
|
||||
## api.APIError type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type APIError = {
|
||||
id: string;
|
||||
code: string;
|
||||
message: string;
|
||||
kind: "client" | "server";
|
||||
info: Record<string, any>;
|
||||
};
|
||||
```
|
22
docs/api/valkyrie-js.api.fetchlike.md
Normal file
22
docs/api/valkyrie-js.api.fetchlike.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api) > [FetchLike](./valkyrie-js.api.fetchlike)
|
||||
|
||||
## 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<any>;
|
||||
}>;
|
||||
```
|
22
docs/api/valkyrie-js.api.isapierror.md
Normal file
22
docs/api/valkyrie-js.api.isapierror.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api) > [isAPIError](./valkyrie-js.api.isapierror)
|
||||
|
||||
## api.isAPIError() function
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare function isAPIError(reason: any): reason is APIError;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| reason | any | |
|
||||
|
||||
**Returns:**
|
||||
|
||||
reason is [APIError](./valkyrie-js.api.apierror)
|
||||
|
25
docs/api/valkyrie-js.api.md
Normal file
25
docs/api/valkyrie-js.api.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [api](./valkyrie-js.api)
|
||||
|
||||
## api namespace
|
||||
|
||||
## Classes
|
||||
|
||||
| Class | Description |
|
||||
| --- | --- |
|
||||
| [APIClient](./valkyrie-js.api.apiclient) | |
|
||||
|
||||
## Functions
|
||||
|
||||
| Function | Description |
|
||||
| --- | --- |
|
||||
| [isAPIError(reason)](./valkyrie-js.api.isapierror) | |
|
||||
|
||||
## Type Aliases
|
||||
|
||||
| Type Alias | Description |
|
||||
| --- | --- |
|
||||
| [APIError](./valkyrie-js.api.apierror) | |
|
||||
| [FetchLike](./valkyrie-js.api.fetchlike) | |
|
||||
|
22
docs/api/valkyrie-js.channelconnection._constructor_.md
Normal file
22
docs/api/valkyrie-js.channelconnection._constructor_.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [(constructor)](./valkyrie-js.channelconnection._constructor_)
|
||||
|
||||
## 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](./valkyrie-js.stream) | |
|
||||
| channel | string | |
|
||||
| name | string | _(Optional)_ |
|
||||
|
11
docs/api/valkyrie-js.channelconnection.channel.md
Normal file
11
docs/api/valkyrie-js.channelconnection.channel.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [channel](./valkyrie-js.channelconnection.channel)
|
||||
|
||||
## ChannelConnection.channel property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
channel: string;
|
||||
```
|
15
docs/api/valkyrie-js.channelconnection.dispose.md
Normal file
15
docs/api/valkyrie-js.channelconnection.dispose.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [dispose](./valkyrie-js.channelconnection.dispose)
|
||||
|
||||
## ChannelConnection.dispose() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
abstract dispose(): void;
|
||||
```
|
||||
**Returns:**
|
||||
|
||||
void
|
||||
|
11
docs/api/valkyrie-js.channelconnection.id.md
Normal file
11
docs/api/valkyrie-js.channelconnection.id.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [id](./valkyrie-js.channelconnection.id)
|
||||
|
||||
## ChannelConnection.id property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
abstract id: string;
|
||||
```
|
11
docs/api/valkyrie-js.channelconnection.incount.md
Normal file
11
docs/api/valkyrie-js.channelconnection.incount.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [inCount](./valkyrie-js.channelconnection.incount)
|
||||
|
||||
## ChannelConnection.inCount property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
inCount: number;
|
||||
```
|
39
docs/api/valkyrie-js.channelconnection.md
Normal file
39
docs/api/valkyrie-js.channelconnection.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection)
|
||||
|
||||
## ChannelConnection class
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare abstract class Connection<
|
||||
Channel extends AnyOf<Channels> = any,
|
||||
> extends EventEmitter<Channel["events"]>
|
||||
```
|
||||
**Extends:** EventEmitter<Channel\["events"\]>
|
||||
|
||||
## Constructors
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [(constructor)(stream, channel, name)](./valkyrie-js.channelconnection._constructor_) | | Constructs a new instance of the <code>Connection</code> class |
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [channel](./valkyrie-js.channelconnection.channel) | | string | |
|
||||
| [id](./valkyrie-js.channelconnection.id) | <code>abstract</code> | string | |
|
||||
| [inCount](./valkyrie-js.channelconnection.incount) | | number | |
|
||||
| [name?](./valkyrie-js.channelconnection.name) | | string | _(Optional)_ |
|
||||
| [outCount](./valkyrie-js.channelconnection.outcount) | | number | |
|
||||
| [stream](./valkyrie-js.channelconnection.stream) | <code>protected</code> | [Stream](./valkyrie-js.stream) | |
|
||||
|
||||
## Methods
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [dispose()](./valkyrie-js.channelconnection.dispose) | <code>abstract</code> | |
|
||||
| [send(type, body)](./valkyrie-js.channelconnection.send) | | |
|
||||
|
11
docs/api/valkyrie-js.channelconnection.name.md
Normal file
11
docs/api/valkyrie-js.channelconnection.name.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [name](./valkyrie-js.channelconnection.name)
|
||||
|
||||
## ChannelConnection.name property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
name?: string;
|
||||
```
|
11
docs/api/valkyrie-js.channelconnection.outcount.md
Normal file
11
docs/api/valkyrie-js.channelconnection.outcount.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [outCount](./valkyrie-js.channelconnection.outcount)
|
||||
|
||||
## ChannelConnection.outCount property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
outCount: number;
|
||||
```
|
26
docs/api/valkyrie-js.channelconnection.send.md
Normal file
26
docs/api/valkyrie-js.channelconnection.send.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [send](./valkyrie-js.channelconnection.send)
|
||||
|
||||
## ChannelConnection.send() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
send<T extends keyof Channel["receives"]>(
|
||||
type: T,
|
||||
body: Channel["receives"][T],
|
||||
): void;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| type | T | |
|
||||
| body | Channel\["receives"\]\[T\] | |
|
||||
|
||||
**Returns:**
|
||||
|
||||
void
|
||||
|
11
docs/api/valkyrie-js.channelconnection.stream.md
Normal file
11
docs/api/valkyrie-js.channelconnection.stream.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [stream](./valkyrie-js.channelconnection.stream)
|
||||
|
||||
## ChannelConnection.stream property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
protected stream: Stream;
|
||||
```
|
143
docs/api/valkyrie-js.channels.md
Normal file
143
docs/api/valkyrie-js.channels.md
Normal file
|
@ -0,0 +1,143 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Channels](./valkyrie-js.channels)
|
||||
|
||||
## 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](./valkyrie-js.entities.note)<!-- -->, [User](./valkyrie-js.entities.user)<!-- -->, [MeDetailed](./valkyrie-js.entities.medetailed)<!-- -->, [PageEvent](./valkyrie-js.entities.pageevent)<!-- -->, [DriveFile](./valkyrie-js.entities.drivefile)<!-- -->, [MessagingMessage](./valkyrie-js.entities.messagingmessage)<!-- -->, [Antenna](./valkyrie-js.entities.antenna)<!-- -->, [UserGroup](./valkyrie-js.entities.usergroup)
|
||||
|
1911
docs/api/valkyrie-js.endpoints.md
Normal file
1911
docs/api/valkyrie-js.endpoints.md
Normal file
File diff suppressed because it is too large
Load diff
11
docs/api/valkyrie-js.entities.ad.md
Normal file
11
docs/api/valkyrie-js.entities.ad.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Ad](./valkyrie-js.entities.ad)
|
||||
|
||||
## entities.Ad type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type Ad = TODO;
|
||||
```
|
21
docs/api/valkyrie-js.entities.announcement.md
Normal file
21
docs/api/valkyrie-js.entities.announcement.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Announcement](./valkyrie-js.entities.announcement)
|
||||
|
||||
## 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](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)
|
||||
|
29
docs/api/valkyrie-js.entities.antenna.md
Normal file
29
docs/api/valkyrie-js.entities.antenna.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Antenna](./valkyrie-js.entities.antenna)
|
||||
|
||||
## 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](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)
|
||||
|
11
docs/api/valkyrie-js.entities.app.md
Normal file
11
docs/api/valkyrie-js.entities.app.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [App](./valkyrie-js.entities.app)
|
||||
|
||||
## entities.App type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type App = TODO;
|
||||
```
|
17
docs/api/valkyrie-js.entities.authsession.md
Normal file
17
docs/api/valkyrie-js.entities.authsession.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [AuthSession](./valkyrie-js.entities.authsession)
|
||||
|
||||
## entities.AuthSession type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type AuthSession = {
|
||||
id: ID;
|
||||
app: App;
|
||||
token: string;
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)<!-- -->, [App](./valkyrie-js.entities.app)
|
||||
|
18
docs/api/valkyrie-js.entities.blocking.md
Normal file
18
docs/api/valkyrie-js.entities.blocking.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Blocking](./valkyrie-js.entities.blocking)
|
||||
|
||||
## entities.Blocking type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type Blocking = {
|
||||
id: ID;
|
||||
createdAt: DateString;
|
||||
blockeeId: User["id"];
|
||||
blockee: UserDetailed;
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [User](./valkyrie-js.entities.user)<!-- -->, [UserDetailed](./valkyrie-js.entities.userdetailed)
|
||||
|
15
docs/api/valkyrie-js.entities.channel.md
Normal file
15
docs/api/valkyrie-js.entities.channel.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Channel](./valkyrie-js.entities.channel)
|
||||
|
||||
## entities.Channel type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type Channel = {
|
||||
id: ID;
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)
|
||||
|
11
docs/api/valkyrie-js.entities.clip.md
Normal file
11
docs/api/valkyrie-js.entities.clip.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Clip](./valkyrie-js.entities.clip)
|
||||
|
||||
## entities.Clip type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type Clip = TODO;
|
||||
```
|
17
docs/api/valkyrie-js.entities.customemoji.md
Normal file
17
docs/api/valkyrie-js.entities.customemoji.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [CustomEmoji](./valkyrie-js.entities.customemoji)
|
||||
|
||||
## entities.CustomEmoji type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type CustomEmoji = {
|
||||
id: string;
|
||||
name: string;
|
||||
url: string;
|
||||
category: string;
|
||||
aliases: string[];
|
||||
};
|
||||
```
|
11
docs/api/valkyrie-js.entities.datestring.md
Normal file
11
docs/api/valkyrie-js.entities.datestring.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [DateString](./valkyrie-js.entities.datestring)
|
||||
|
||||
## entities.DateString type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type DateString = string;
|
||||
```
|
15
docs/api/valkyrie-js.entities.detailedinstancemetadata.md
Normal file
15
docs/api/valkyrie-js.entities.detailedinstancemetadata.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [DetailedInstanceMetadata](./valkyrie-js.entities.detailedinstancemetadata)
|
||||
|
||||
## entities.DetailedInstanceMetadata type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type DetailedInstanceMetadata = LiteInstanceMetadata & {
|
||||
features: Record<string, any>;
|
||||
};
|
||||
```
|
||||
**References:** [LiteInstanceMetadata](./valkyrie-js.entities.liteinstancemetadata)
|
||||
|
26
docs/api/valkyrie-js.entities.drivefile.md
Normal file
26
docs/api/valkyrie-js.entities.drivefile.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [DriveFile](./valkyrie-js.entities.drivefile)
|
||||
|
||||
## 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<string, any>;
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)
|
||||
|
11
docs/api/valkyrie-js.entities.drivefolder.md
Normal file
11
docs/api/valkyrie-js.entities.drivefolder.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [DriveFolder](./valkyrie-js.entities.drivefolder)
|
||||
|
||||
## entities.DriveFolder type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type DriveFolder = TODO;
|
||||
```
|
18
docs/api/valkyrie-js.entities.following.md
Normal file
18
docs/api/valkyrie-js.entities.following.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Following](./valkyrie-js.entities.following)
|
||||
|
||||
## entities.Following type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type Following = {
|
||||
id: ID;
|
||||
createdAt: DateString;
|
||||
followerId: User["id"];
|
||||
followeeId: User["id"];
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [User](./valkyrie-js.entities.user)
|
||||
|
15
docs/api/valkyrie-js.entities.followingfolloweepopulated.md
Normal file
15
docs/api/valkyrie-js.entities.followingfolloweepopulated.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [FollowingFolloweePopulated](./valkyrie-js.entities.followingfolloweepopulated)
|
||||
|
||||
## entities.FollowingFolloweePopulated type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type FollowingFolloweePopulated = Following & {
|
||||
followee: UserDetailed;
|
||||
};
|
||||
```
|
||||
**References:** [Following](./valkyrie-js.entities.following)<!-- -->, [UserDetailed](./valkyrie-js.entities.userdetailed)
|
||||
|
15
docs/api/valkyrie-js.entities.followingfollowerpopulated.md
Normal file
15
docs/api/valkyrie-js.entities.followingfollowerpopulated.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [FollowingFollowerPopulated](./valkyrie-js.entities.followingfollowerpopulated)
|
||||
|
||||
## entities.FollowingFollowerPopulated type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type FollowingFollowerPopulated = Following & {
|
||||
follower: UserDetailed;
|
||||
};
|
||||
```
|
||||
**References:** [Following](./valkyrie-js.entities.following)<!-- -->, [UserDetailed](./valkyrie-js.entities.userdetailed)
|
||||
|
17
docs/api/valkyrie-js.entities.followrequest.md
Normal file
17
docs/api/valkyrie-js.entities.followrequest.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [FollowRequest](./valkyrie-js.entities.followrequest)
|
||||
|
||||
## entities.FollowRequest type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type FollowRequest = {
|
||||
id: ID;
|
||||
follower: User;
|
||||
followee: User;
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)<!-- -->, [User](./valkyrie-js.entities.user)
|
||||
|
11
docs/api/valkyrie-js.entities.gallerypost.md
Normal file
11
docs/api/valkyrie-js.entities.gallerypost.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [GalleryPost](./valkyrie-js.entities.gallerypost)
|
||||
|
||||
## entities.GalleryPost type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type GalleryPost = TODO;
|
||||
```
|
11
docs/api/valkyrie-js.entities.id.md
Normal file
11
docs/api/valkyrie-js.entities.id.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [ID](./valkyrie-js.entities.id)
|
||||
|
||||
## entities.ID type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type ID = string;
|
||||
```
|
40
docs/api/valkyrie-js.entities.instance.md
Normal file
40
docs/api/valkyrie-js.entities.instance.md
Normal file
|
@ -0,0 +1,40 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Instance](./valkyrie-js.entities.instance)
|
||||
|
||||
## 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](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)
|
||||
|
15
docs/api/valkyrie-js.entities.instancemetadata.md
Normal file
15
docs/api/valkyrie-js.entities.instancemetadata.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [InstanceMetadata](./valkyrie-js.entities.instancemetadata)
|
||||
|
||||
## entities.InstanceMetadata type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type InstanceMetadata =
|
||||
| LiteInstanceMetadata
|
||||
| DetailedInstanceMetadata;
|
||||
```
|
||||
**References:** [LiteInstanceMetadata](./valkyrie-js.entities.liteinstancemetadata)<!-- -->, [DetailedInstanceMetadata](./valkyrie-js.entities.detailedinstancemetadata)
|
||||
|
46
docs/api/valkyrie-js.entities.liteinstancemetadata.md
Normal file
46
docs/api/valkyrie-js.entities.liteinstancemetadata.md
Normal file
|
@ -0,0 +1,46 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./indexgt; [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [LiteInstanceMetadata](./valkyrie-js.entities.liteinstancemetadata)
|
||||
|
||||
## 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](./valkyrie-js.entities.customemoji)<!-- -->, [ID](./valkyrie-js.entities.id)
|
||||
|
51
docs/api/valkyrie-js.entities.md
Normal file
51
docs/api/valkyrie-js.entities.md
Normal file
|
@ -0,0 +1,51 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities)
|
||||
|
||||
## entities namespace
|
||||
|
||||
## Type Aliases
|
||||
|
||||
| Type Alias | Description |
|
||||
| --- | --- |
|
||||
| [Ad](./valkyrie-js.entities.ad) | |
|
||||
| [Announcement](./valkyrie-js.entities.announcement) | |
|
||||
| [Antenna](./valkyrie-js.entities.antenna) | |
|
||||
| [App](./valkyrie-js.entities.app) | |
|
||||
| [AuthSession](./valkyrie-js.entities.authsession) | |
|
||||
| [Blocking](./valkyrie-js.entities.blocking) | |
|
||||
| [Channel](./valkyrie-js.entities.channel) | |
|
||||
| [Clip](./valkyrie-js.entities.clip) | |
|
||||
| [CustomEmoji](./valkyrie-js.entities.customemoji) | |
|
||||
| [DateString](./valkyrie-js.entities.datestring) | |
|
||||
| [DetailedInstanceMetadata](./valkyrie-js.entities.detailedinstancemetadata) | |
|
||||
| [DriveFile](./valkyrie-js.entities.drivefile) | |
|
||||
| [DriveFolder](./valkyrie-js.entities.drivefolder) | |
|
||||
| [Following](./valkyrie-js.entities.following) | |
|
||||
| [FollowingFolloweePopulated](./valkyrie-js.entities.followingfolloweepopulated) | |
|
||||
| [FollowingFollowerPopulated](./valkyrie-js.entities.followingfollowerpopulated) | |
|
||||
| [FollowRequest](./valkyrie-js.entities.followrequest) | |
|
||||
| [GalleryPost](./valkyrie-js.entities.gallerypost) | |
|
||||
| [ID](./valkyrie-js.entities.id) | |
|
||||
| [Instance](./valkyrie-js.entities.instance) | |
|
||||
| [InstanceMetadata](./valkyrie-js.entities.instancemetadata) | |
|
||||
| [LiteInstanceMetadata](./valkyrie-js.entities.liteinstancemetadata) | |
|
||||
| [MeDetailed](./valkyrie-js.entities.medetailed) | |
|
||||
| [MessagingMessage](./valkyrie-js.entities.messagingmessage) | |
|
||||
| [Note](./valkyrie-js.entities.note) | |
|
||||
| [NoteFavorite](./valkyrie-js.entities.notefavorite) | |
|
||||
| [NoteReaction](./valkyrie-js.entities.notereaction) | |
|
||||
| [Notification](./valkyrie-js.entities.notification) | |
|
||||
| [OriginType](./valkyrie-js.entities.origintype) | |
|
||||
| [Page](./valkyrie-js.entities.page) | |
|
||||
| [PageEvent](./valkyrie-js.entities.pageevent) | |
|
||||
| [ServerInfo](./valkyrie-js.entities.serverinfo) | |
|
||||
| [Signin](./valkyrie-js.entities.signin) | |
|
||||
| [Stats](./valkyrie-js.entities.stats) | |
|
||||
| [User](./valkyrie-js.entities.user) | |
|
||||
| [UserDetailed](./valkyrie-js.entities.userdetailed) | |
|
||||
| [UserGroup](./valkyrie-js.entities.usergroup) | |
|
||||
| [UserList](./valkyrie-js.entities.userlist) | |
|
||||
| [UserLite](./valkyrie-js.entities.userlite) | |
|
||||
| [UserSorting](./valkyrie-js.entities.usersorting) | |
|
||||
|
40
docs/api/valkyrie-js.entities.medetailed.md
Normal file
40
docs/api/valkyrie-js.entities.medetailed.md
Normal file
|
@ -0,0 +1,40 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [MeDetailed](./valkyrie-js.entities.medetailed)
|
||||
|
||||
## 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<string, any>;
|
||||
isDeleted: boolean;
|
||||
isExplorable: boolean;
|
||||
mutedWords: string[][];
|
||||
mutingNotificationTypes: string[];
|
||||
noCrawle: boolean;
|
||||
preventAiLearning: boolean;
|
||||
receiveAnnouncementEmail: boolean;
|
||||
usePasswordLessLogin: boolean;
|
||||
[other: string]: any;
|
||||
};
|
||||
```
|
||||
**References:** [UserDetailed](./valkyrie-js.entities.userdetailed)<!-- -->, [DriveFile](./valkyrie-js.entities.drivefile)
|
||||
|
27
docs/api/valkyrie-js.entities.messagingmessage.md
Normal file
27
docs/api/valkyrie-js.entities.messagingmessage.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [MessagingMessage](./valkyrie-js.entities.messagingmessage)
|
||||
|
||||
## 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](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [DriveFile](./valkyrie-js.entities.drivefile)<!-- -->, [User](./valkyrie-js.entities.user)<!-- -->, [UserGroup](./valkyrie-js.entities.usergroup)
|
||||
|
51
docs/api/valkyrie-js.entities.note.md
Normal file
51
docs/api/valkyrie-js.entities.note.md
Normal file
|
@ -0,0 +1,51 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Note](./valkyrie-js.entities.note)
|
||||
|
||||
## 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<string, number>;
|
||||
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](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [User](./valkyrie-js.entities.user)<!-- -->, [Note](./valkyrie-js.entities.note)<!-- -->, [DriveFile](./valkyrie-js.entities.drivefile)<!-- -->, [Channel](./valkyrie-js.entities.channel)
|
||||
|
18
docs/api/valkyrie-js.entities.notefavorite.md
Normal file
18
docs/api/valkyrie-js.entities.notefavorite.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [NoteFavorite](./valkyrie-js.entities.notefavorite)
|
||||
|
||||
## entities.NoteFavorite type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type NoteFavorite = {
|
||||
id: ID;
|
||||
createdAt: DateString;
|
||||
noteId: Note["id"];
|
||||
note: Note;
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [Note](./valkyrie-js.entities.note)
|
||||
|
18
docs/api/valkyrie-js.entities.notereaction.md
Normal file
18
docs/api/valkyrie-js.entities.notereaction.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [NoteReaction](./valkyrie-js.entities.notereaction)
|
||||
|
||||
## entities.NoteReaction type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type NoteReaction = {
|
||||
id: ID;
|
||||
createdAt: DateString;
|
||||
user: UserLite;
|
||||
type: string;
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [UserLite](./valkyrie-js.entities.userlite)
|
||||
|
82
docs/api/valkyrie-js.entities.notification.md
Normal file
82
docs/api/valkyrie-js.entities.notification.md
Normal file
|
@ -0,0 +1,82 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Notification](./valkyrie-js.entities.notification)
|
||||
|
||||
## 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](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [User](./valkyrie-js.entities.user)<!-- -->, [Note](./valkyrie-js.entities.note)<!-- -->, [UserGroup](./valkyrie-js.entities.usergroup)
|
||||
|
11
docs/api/valkyrie-js.entities.origintype.md
Normal file
11
docs/api/valkyrie-js.entities.origintype.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [OriginType](./valkyrie-js.entities.origintype)
|
||||
|
||||
## entities.OriginType type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type OriginType = "combined" | "local" | "remote";
|
||||
```
|
33
docs/api/valkyrie-js.entities.page.md
Normal file
33
docs/api/valkyrie-js.entities.page.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Page](./valkyrie-js.entities.page)
|
||||
|
||||
## entities.Page type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type Page = {
|
||||
id: ID;
|
||||
createdAt: DateString;
|
||||
updatedAt: DateString;
|
||||
userId: User["id"];
|
||||
user: User;
|
||||
content: Record<string, any>[];
|
||||
variables: Record<string, any>[];
|
||||
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](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [User](./valkyrie-js.entities.user)<!-- -->, [DriveFile](./valkyrie-js.entities.drivefile)
|
||||
|
19
docs/api/valkyrie-js.entities.pageevent.md
Normal file
19
docs/api/valkyrie-js.entities.pageevent.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [PageEvent](./valkyrie-js.entities.pageevent)
|
||||
|
||||
## entities.PageEvent type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type PageEvent = {
|
||||
pageId: Page["id"];
|
||||
event: string;
|
||||
var: any;
|
||||
userId: User["id"];
|
||||
user: User;
|
||||
};
|
||||
```
|
||||
**References:** [Page](./valkyrie-js.entities.page)<!-- -->, [User](./valkyrie-js.entities.user)
|
||||
|
24
docs/api/valkyrie-js.entities.serverinfo.md
Normal file
24
docs/api/valkyrie-js.entities.serverinfo.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [ServerInfo](./valkyrie-js.entities.serverinfo)
|
||||
|
||||
## entities.ServerInfo type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type ServerInfo = {
|
||||
machine: string;
|
||||
cpu: {
|
||||
model: string;
|
||||
cores: number;
|
||||
};
|
||||
mem: {
|
||||
total: number;
|
||||
};
|
||||
fs: {
|
||||
total: number;
|
||||
used: number;
|
||||
};
|
||||
};
|
||||
```
|
19
docs/api/valkyrie-js.entities.signin.md
Normal file
19
docs/api/valkyrie-js.entities.signin.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Signin](./valkyrie-js.entities.signin)
|
||||
|
||||
## entities.Signin type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type Signin = {
|
||||
id: ID;
|
||||
createdAt: DateString;
|
||||
ip: string;
|
||||
headers: Record<string, any>;
|
||||
success: boolean;
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)
|
||||
|
19
docs/api/valkyrie-js.entities.stats.md
Normal file
19
docs/api/valkyrie-js.entities.stats.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [Stats](./valkyrie-js.entities.stats)
|
||||
|
||||
## entities.Stats type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type Stats = {
|
||||
notesCount: number;
|
||||
originalNotesCount: number;
|
||||
usersCount: number;
|
||||
originalUsersCount: number;
|
||||
instances: number;
|
||||
driveUsageLocal: number;
|
||||
driveUsageRemote: number;
|
||||
};
|
||||
```
|
13
docs/api/valkyrie-js.entities.user.md
Normal file
13
docs/api/valkyrie-js.entities.user.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [User](./valkyrie-js.entities.user)
|
||||
|
||||
## entities.User type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type User = UserLite | UserDetailed;
|
||||
```
|
||||
**References:** [UserLite](./valkyrie-js.entities.userlite)<!-- -->, [UserDetailed](./valkyrie-js.entities.userdetailed)
|
||||
|
56
docs/api/valkyrie-js.entities.userdetailed.md
Normal file
56
docs/api/valkyrie-js.entities.userdetailed.md
Normal file
|
@ -0,0 +1,56 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [UserDetailed](./valkyrie-js.entities.userdetailed)
|
||||
|
||||
## 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](./valkyrie-js.entities.userlite)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [ID](./valkyrie-js.entities.id)<!-- -->, [Note](./valkyrie-js.entities.note)<!-- -->, [Page](./valkyrie-js.entities.page)
|
||||
|
11
docs/api/valkyrie-js.entities.usergroup.md
Normal file
11
docs/api/valkyrie-js.entities.usergroup.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [UserGroup](./valkyrie-js.entities.usergroup)
|
||||
|
||||
## entities.UserGroup type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type UserGroup = TODO;
|
||||
```
|
18
docs/api/valkyrie-js.entities.userlist.md
Normal file
18
docs/api/valkyrie-js.entities.userlist.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [UserList](./valkyrie-js.entities.userlist)
|
||||
|
||||
## entities.UserList type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type UserList = {
|
||||
id: ID;
|
||||
createdAt: DateString;
|
||||
name: string;
|
||||
userIds: User["id"][];
|
||||
};
|
||||
```
|
||||
**References:** [ID](./valkyrie-js.entities.id)<!-- -->, [DateString](./valkyrie-js.entities.datestring)<!-- -->, [User](./valkyrie-js.entities.user)
|
||||
|
35
docs/api/valkyrie-js.entities.userlite.md
Normal file
35
docs/api/valkyrie-js.entities.userlite.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [UserLite](./valkyrie-js.entities.userlite)
|
||||
|
||||
## 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](./valkyrie-js.entities.id)<!-- -->, [Instance](./valkyrie-js.entities.instance)
|
||||
|
17
docs/api/valkyrie-js.entities.usersorting.md
Normal file
17
docs/api/valkyrie-js.entities.usersorting.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [entities](./valkyrie-js.entities) > [UserSorting](./valkyrie-js.entities.usersorting)
|
||||
|
||||
## entities.UserSorting type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export declare type UserSorting =
|
||||
| "+follower"
|
||||
| "-follower"
|
||||
| "+createdAt"
|
||||
| "-createdAt"
|
||||
| "+updatedAt"
|
||||
| "-updatedAt";
|
||||
```
|
11
docs/api/valkyrie-js.ffvisibility.md
Normal file
11
docs/api/valkyrie-js.ffvisibility.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ffVisibility](./valkyrie-js.ffvisibility)
|
||||
|
||||
## ffVisibility variable
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
ffVisibility: readonly ["public", "followers", "private"]
|
||||
```
|
43
docs/api/valkyrie-js.md
Normal file
43
docs/api/valkyrie-js.md
Normal file
|
@ -0,0 +1,43 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js)
|
||||
|
||||
## valkyrie-js package
|
||||
|
||||
## Classes
|
||||
|
||||
| Class | Description |
|
||||
| --- | --- |
|
||||
| [Stream](./valkyrie-js.stream) | |
|
||||
|
||||
## Abstract Classes
|
||||
|
||||
| Abstract Class | Description |
|
||||
| --- | --- |
|
||||
| [ChannelConnection](./valkyrie-js.channelconnection) | |
|
||||
|
||||
## Namespaces
|
||||
|
||||
| Namespace | Description |
|
||||
| --- | --- |
|
||||
| [api](./valkyrie-js.api) | |
|
||||
| [entities](./valkyrie-js.entities) | |
|
||||
|
||||
## Variables
|
||||
|
||||
| Variable | Description |
|
||||
| --- | --- |
|
||||
| [ffVisibility](./valkyrie-js.ffvisibility) | |
|
||||
| [mutedNoteReasons](./valkyrie-js.mutednotereasons) | |
|
||||
| [noteVisibilities](./valkyrie-js.notevisibilities) | |
|
||||
| [notificationTypes](./valkyrie-js.notificationtypes) | |
|
||||
| [permissions](./valkyrie-js.permissions) | |
|
||||
|
||||
## Type Aliases
|
||||
|
||||
| Type Alias | Description |
|
||||
| --- | --- |
|
||||
| [Acct](./valkyrie-js.acct) | |
|
||||
| [Channels](./valkyrie-js.channels) | |
|
||||
| [Endpoints](./valkyrie-js.endpoints) | |
|
||||
|
16
docs/api/valkyrie-js.mutednotereasons.md
Normal file
16
docs/api/valkyrie-js.mutednotereasons.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [mutedNoteReasons](./valkyrie-js.mutednotereasons)
|
||||
|
||||
## mutedNoteReasons variable
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
mutedNoteReasons: readonly [
|
||||
"word",
|
||||
"manual",
|
||||
"spam",
|
||||
"other",
|
||||
]
|
||||
```
|
16
docs/api/valkyrie-js.notevisibilities.md
Normal file
16
docs/api/valkyrie-js.notevisibilities.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [noteVisibilities](./valkyrie-js.notevisibilities)
|
||||
|
||||
## noteVisibilities variable
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
noteVisibilities: readonly [
|
||||
"public",
|
||||
"home",
|
||||
"followers",
|
||||
"specified",
|
||||
]
|
||||
```
|
24
docs/api/valkyrie-js.notificationtypes.md
Normal file
24
docs/api/valkyrie-js.notificationtypes.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [notificationTypes](./valkyrie-js.notificationtypes)
|
||||
|
||||
## notificationTypes variable
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
notificationTypes: readonly [
|
||||
"follow",
|
||||
"mention",
|
||||
"reply",
|
||||
"renote",
|
||||
"quote",
|
||||
"reaction",
|
||||
"pollVote",
|
||||
"pollEnded",
|
||||
"receiveFollowRequest",
|
||||
"followRequestAccepted",
|
||||
"groupInvited",
|
||||
"app",
|
||||
]
|
||||
```
|
11
docs/api/valkyrie-js.permissions.md
Normal file
11
docs/api/valkyrie-js.permissions.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [permissions](./valkyrie-js.permissions)
|
||||
|
||||
## permissions variable
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
permissions: string[]
|
||||
```
|
30
docs/api/valkyrie-js.stream._constructor_.md
Normal file
30
docs/api/valkyrie-js.stream._constructor_.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream) > [(constructor)](./valkyrie-js.stream._constructor_)
|
||||
|
||||
## 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)_ |
|
||||
|
15
docs/api/valkyrie-js.stream.close.md
Normal file
15
docs/api/valkyrie-js.stream.close.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream) > [close](./valkyrie-js.stream.close)
|
||||
|
||||
## Stream.close() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
close(): void;
|
||||
```
|
||||
**Returns:**
|
||||
|
||||
void
|
||||
|
22
docs/api/valkyrie-js.stream.disconnecttochannel.md
Normal file
22
docs/api/valkyrie-js.stream.disconnecttochannel.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream) > [disconnectToChannel](./valkyrie-js.stream.disconnecttochannel)
|
||||
|
||||
## Stream.disconnectToChannel() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
disconnectToChannel(connection: NonSharedConnection): void;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| connection | NonSharedConnection | |
|
||||
|
||||
**Returns:**
|
||||
|
||||
void
|
||||
|
36
docs/api/valkyrie-js.stream.md
Normal file
36
docs/api/valkyrie-js.stream.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream)
|
||||
|
||||
## Stream class
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export default class Stream extends EventEmitter<StreamEvents>
|
||||
```
|
||||
**Extends:** EventEmitter<StreamEvents>
|
||||
|
||||
## Constructors
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [(constructor)(origin, user, options)](./valkyrie-js.stream._constructor_) | | Constructs a new instance of the <code>Stream</code> class |
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [state](./valkyrie-js.stream.state) | | "initializing" \| "reconnecting" \| "connected" | |
|
||||
|
||||
## Methods
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [close()](./valkyrie-js.stream.close) | | |
|
||||
| [disconnectToChannel(connection)](./valkyrie-js.stream.disconnecttochannel) | | |
|
||||
| [removeSharedConnection(connection)](./valkyrie-js.stream.removesharedconnection) | | |
|
||||
| [removeSharedConnectionPool(pool)](./valkyrie-js.stream.removesharedconnectionpool) | | |
|
||||
| [send(typeOrPayload, payload)](./valkyrie-js.stream.send) | | |
|
||||
| [useChannel(channel, params, name)](./valkyrie-js.stream.usechannel) | | |
|
||||
|
22
docs/api/valkyrie-js.stream.removesharedconnection.md
Normal file
22
docs/api/valkyrie-js.stream.removesharedconnection.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream) > [removeSharedConnection](./valkyrie-js.stream.removesharedconnection)
|
||||
|
||||
## Stream.removeSharedConnection() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
removeSharedConnection(connection: SharedConnection): void;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| connection | SharedConnection | |
|
||||
|
||||
**Returns:**
|
||||
|
||||
void
|
||||
|
22
docs/api/valkyrie-js.stream.removesharedconnectionpool.md
Normal file
22
docs/api/valkyrie-js.stream.removesharedconnectionpool.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream) > [removeSharedConnectionPool](./valkyrie-js.stream.removesharedconnectionpool)
|
||||
|
||||
## Stream.removeSharedConnectionPool() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
removeSharedConnectionPool(pool: Pool): void;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| pool | Pool | |
|
||||
|
||||
**Returns:**
|
||||
|
||||
void
|
||||
|
23
docs/api/valkyrie-js.stream.send.md
Normal file
23
docs/api/valkyrie-js.stream.send.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream) > [send](./valkyrie-js.stream.send)
|
||||
|
||||
## Stream.send() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
send(typeOrPayload: any, payload?: any): void;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| typeOrPayload | any | |
|
||||
| payload | any | _(Optional)_ |
|
||||
|
||||
**Returns:**
|
||||
|
||||
void
|
||||
|
11
docs/api/valkyrie-js.stream.state.md
Normal file
11
docs/api/valkyrie-js.stream.state.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream) > [state](./valkyrie-js.stream.state)
|
||||
|
||||
## Stream.state property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
state: "initializing" | "reconnecting" | "connected";
|
||||
```
|
28
docs/api/valkyrie-js.stream.usechannel.md
Normal file
28
docs/api/valkyrie-js.stream.usechannel.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream) > [useChannel](./valkyrie-js.stream.usechannel)
|
||||
|
||||
## Stream.useChannel() method
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
useChannel<C extends keyof Channels>(
|
||||
channel: C,
|
||||
params?: Channels[C]["params"],
|
||||
name?: string,
|
||||
): Connection<Channels[C]>;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| channel | C | |
|
||||
| params | [Channels](./valkyrie-js.channels)<!-- -->\[C\]\["params"\] | _(Optional)_ |
|
||||
| name | string | _(Optional)_ |
|
||||
|
||||
**Returns:**
|
||||
|
||||
[Connection](./valkyrie-js.channelconnection)<!-- --><[Channels](./valkyrie-js.channels)<!-- -->\[C\]>
|
||||
|
Loading…
Reference in a new issue