@rivet-gg/chat 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist-types/ChatService.d.ts +56 -0
- package/dist-types/ChatServiceClient.d.ts +133 -0
- package/dist-types/commands/GetDirectThreadCommand.d.ts +35 -0
- package/dist-types/commands/GetThreadHistoryCommand.d.ts +37 -0
- package/dist-types/commands/GetThreadTopicCommand.d.ts +35 -0
- package/dist-types/commands/SendChatMessageCommand.d.ts +35 -0
- package/dist-types/commands/SetThreadReadCommand.d.ts +35 -0
- package/dist-types/commands/SetTypingStatusCommand.d.ts +35 -0
- package/dist-types/commands/WatchThreadCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/ChatServiceServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1317 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +23 -0
- package/dist-types/runtimeConfig.browser.d.ts +31 -0
- package/dist-types/runtimeConfig.d.ts +31 -0
- package/dist-types/runtimeConfig.native.d.ts +30 -0
- package/dist-types/runtimeConfig.shared.d.ts +11 -0
- package/package.json +1 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
import { GetDirectThreadCommandInput, GetDirectThreadCommandOutput } from "../commands/GetDirectThreadCommand";
|
2
|
+
import { GetThreadHistoryCommandInput, GetThreadHistoryCommandOutput } from "../commands/GetThreadHistoryCommand";
|
3
|
+
import { GetThreadTopicCommandInput, GetThreadTopicCommandOutput } from "../commands/GetThreadTopicCommand";
|
4
|
+
import { SendChatMessageCommandInput, SendChatMessageCommandOutput } from "../commands/SendChatMessageCommand";
|
5
|
+
import { SetThreadReadCommandInput, SetThreadReadCommandOutput } from "../commands/SetThreadReadCommand";
|
6
|
+
import { SetTypingStatusCommandInput, SetTypingStatusCommandOutput } from "../commands/SetTypingStatusCommand";
|
7
|
+
import { WatchThreadCommandInput, WatchThreadCommandOutput } from "../commands/WatchThreadCommand";
|
8
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
9
|
+
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
10
|
+
export declare const serializeAws_restJson1GetDirectThreadCommand: (input: GetDirectThreadCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
11
|
+
export declare const serializeAws_restJson1GetThreadHistoryCommand: (input: GetThreadHistoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
12
|
+
export declare const serializeAws_restJson1GetThreadTopicCommand: (input: GetThreadTopicCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
13
|
+
export declare const serializeAws_restJson1SendChatMessageCommand: (input: SendChatMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
14
|
+
export declare const serializeAws_restJson1SetThreadReadCommand: (input: SetThreadReadCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
15
|
+
export declare const serializeAws_restJson1SetTypingStatusCommand: (input: SetTypingStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
16
|
+
export declare const serializeAws_restJson1WatchThreadCommand: (input: WatchThreadCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
17
|
+
export declare const deserializeAws_restJson1GetDirectThreadCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDirectThreadCommandOutput>;
|
18
|
+
export declare const deserializeAws_restJson1GetThreadHistoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetThreadHistoryCommandOutput>;
|
19
|
+
export declare const deserializeAws_restJson1GetThreadTopicCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetThreadTopicCommandOutput>;
|
20
|
+
export declare const deserializeAws_restJson1SendChatMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendChatMessageCommandOutput>;
|
21
|
+
export declare const deserializeAws_restJson1SetThreadReadCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetThreadReadCommandOutput>;
|
22
|
+
export declare const deserializeAws_restJson1SetTypingStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetTypingStatusCommandOutput>;
|
23
|
+
export declare const deserializeAws_restJson1WatchThreadCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<WatchThreadCommandOutput>;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
2
|
+
import { ChatServiceClientConfig } from "./ChatServiceClient";
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export declare const getRuntimeConfig: (config: ChatServiceClientConfig) => {
|
7
|
+
runtime: string;
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
9
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
10
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
12
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
13
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
15
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
16
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
17
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
18
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
19
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
20
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
21
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
22
|
+
apiVersion: string;
|
23
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
24
|
+
disableHostPrefix: boolean;
|
25
|
+
token?: string | undefined;
|
26
|
+
logger: import("@aws-sdk/types").Logger;
|
27
|
+
tls?: boolean | undefined;
|
28
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
29
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
30
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
31
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
2
|
+
import { ChatServiceClientConfig } from "./ChatServiceClient";
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export declare const getRuntimeConfig: (config: ChatServiceClientConfig) => {
|
7
|
+
runtime: string;
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
9
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
10
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
12
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
13
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
15
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
16
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
17
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
18
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
19
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
20
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
21
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
22
|
+
apiVersion: string;
|
23
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
24
|
+
disableHostPrefix: boolean;
|
25
|
+
token?: string | undefined;
|
26
|
+
logger: import("@aws-sdk/types").Logger;
|
27
|
+
tls?: boolean | undefined;
|
28
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
29
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
30
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
31
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { ChatServiceClientConfig } from "./ChatServiceClient";
|
2
|
+
/**
|
3
|
+
* @internal
|
4
|
+
*/
|
5
|
+
export declare const getRuntimeConfig: (config: ChatServiceClientConfig) => {
|
6
|
+
runtime: string;
|
7
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
8
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
9
|
+
apiVersion: string;
|
10
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
12
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
13
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
14
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
15
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
16
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
17
|
+
disableHostPrefix: boolean;
|
18
|
+
token?: string | undefined;
|
19
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
20
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
21
|
+
logger: import("@aws-sdk/types").Logger;
|
22
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
23
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
24
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
25
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
26
|
+
tls?: boolean | undefined;
|
27
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
28
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
29
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
30
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Logger as __Logger } from "@aws-sdk/types";
|
2
|
+
import { ChatServiceClientConfig } from "./ChatServiceClient";
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export declare const getRuntimeConfig: (config: ChatServiceClientConfig) => {
|
7
|
+
apiVersion: string;
|
8
|
+
disableHostPrefix: boolean;
|
9
|
+
logger: __Logger;
|
10
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
11
|
+
};
|
package/package.json
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"author":"Rivet Gaming, LLC","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"bugs":{"email":"developer@rivet.gg"},"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.80.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.80.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.99.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.99.0","@aws-sdk/util-defaults-mode-node":"3.99.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0","tslib":"^2.3.1"},"description":"@rivet-gg/chat client","devDependencies":{"@aws-sdk/service-client-documentation-generator":"git+https://github.com/rivet-gg/service-client-documentation-generator.git","@rivet-gg/common":"git+https://github.com/rivet-gg/rivet-sdk-js.git","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"^3.0.0","typedoc":"^0.19.2","typescript":"~4.6.2"},"engines":{"node":">=12.0.0"},"files":["dist-*"],"homepage":"https://rivet.gg/","license":"Apache-2.0","main":"./dist-cjs/index.js","module":"./dist-es/index.js","name":"@rivet-gg/chat","overrides":{"typedoc":{"typescript":"~4.6.2"}},"private":false,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","prepack":"yarn run clean && yarn run build"},"sideEffects":false,"types":"./dist-types/index.d.ts","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"version":"0.0.1"}
|