@wildix/wda-stream-client 1.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/dist-cjs/WdaStream.js +17 -0
- package/dist-cjs/WdaStreamClient.js +35 -0
- package/dist-cjs/commands/ConsumeEventCommand.js +41 -0
- package/dist-cjs/commands/DescribeEventCommand.js +41 -0
- package/dist-cjs/commands/GetOngoingConversationsCommand.js +41 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/WdaStreamServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +170 -0
- package/dist-cjs/protocols/Aws_restJson1.js +262 -0
- package/dist-cjs/runtimeConfig.browser.js +28 -0
- package/dist-cjs/runtimeConfig.js +32 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +19 -0
- package/dist-cjs/runtimeExtensions.js +19 -0
- package/dist-es/WdaStream.js +13 -0
- package/dist-es/WdaStreamClient.js +31 -0
- package/dist-es/commands/ConsumeEventCommand.js +37 -0
- package/dist-es/commands/DescribeEventCommand.js +37 -0
- package/dist-es/commands/GetOngoingConversationsCommand.js +37 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/WdaStreamServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +165 -0
- package/dist-es/protocols/Aws_restJson1.js +253 -0
- package/dist-es/runtimeConfig.browser.js +24 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +15 -0
- package/dist-es/runtimeExtensions.js +15 -0
- package/dist-types/WdaStream.d.ts +30 -0
- package/dist-types/WdaStreamClient.d.ts +139 -0
- package/dist-types/commands/ConsumeEventCommand.d.ts +219 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +327 -0
- package/dist-types/commands/GetOngoingConversationsCommand.d.ts +275 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/WdaStreamServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +857 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +29 -0
- package/dist-types/runtimeConfig.browser.d.ts +29 -0
- package/dist-types/runtimeConfig.d.ts +29 -0
- package/dist-types/runtimeConfig.native.d.ts +28 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +77 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "../commands/ConsumeEventCommand";
|
|
2
|
+
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "../commands/DescribeEventCommand";
|
|
3
|
+
import { GetOngoingConversationsCommandInput, GetOngoingConversationsCommandOutput } from "../commands/GetOngoingConversationsCommand";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
+
/**
|
|
7
|
+
* serializeAws_restJson1ConsumeEventCommand
|
|
8
|
+
*/
|
|
9
|
+
export declare const se_ConsumeEventCommand: (input: ConsumeEventCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
10
|
+
/**
|
|
11
|
+
* serializeAws_restJson1DescribeEventCommand
|
|
12
|
+
*/
|
|
13
|
+
export declare const se_DescribeEventCommand: (input: DescribeEventCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
|
+
/**
|
|
15
|
+
* serializeAws_restJson1GetOngoingConversationsCommand
|
|
16
|
+
*/
|
|
17
|
+
export declare const se_GetOngoingConversationsCommand: (input: GetOngoingConversationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
|
+
/**
|
|
19
|
+
* deserializeAws_restJson1ConsumeEventCommand
|
|
20
|
+
*/
|
|
21
|
+
export declare const de_ConsumeEventCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ConsumeEventCommandOutput>;
|
|
22
|
+
/**
|
|
23
|
+
* deserializeAws_restJson1DescribeEventCommand
|
|
24
|
+
*/
|
|
25
|
+
export declare const de_DescribeEventCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEventCommandOutput>;
|
|
26
|
+
/**
|
|
27
|
+
* deserializeAws_restJson1GetOngoingConversationsCommand
|
|
28
|
+
*/
|
|
29
|
+
export declare const de_GetOngoingConversationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingConversationsCommandOutput>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import { WdaStreamClientConfig } from "./WdaStreamClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: WdaStreamClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
11
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
12
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
13
|
+
httpHandlerConfigs(): {};
|
|
14
|
+
}) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
env?: "stage" | "stable" | "prod" | undefined;
|
|
19
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
20
|
+
apiVersion: string;
|
|
21
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
logger: import("@smithy/types").Logger;
|
|
28
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import { WdaStreamClientConfig } from "./WdaStreamClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: WdaStreamClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
11
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
12
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
13
|
+
httpHandlerConfigs(): {};
|
|
14
|
+
}) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
env?: "stage" | "stable" | "prod" | undefined;
|
|
19
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
20
|
+
apiVersion: string;
|
|
21
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
logger: import("@smithy/types").Logger;
|
|
28
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { WdaStreamClientConfig } from "./WdaStreamClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: WdaStreamClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
+
env?: "stage" | "stable" | "prod" | undefined;
|
|
9
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
11
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
12
|
+
httpHandlerConfigs(): {};
|
|
13
|
+
}) | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
14
|
+
apiVersion: string;
|
|
15
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
16
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
19
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
20
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
21
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
22
|
+
disableHostPrefix: boolean;
|
|
23
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
24
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
|
+
logger: import("@smithy/types").Logger;
|
|
26
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
27
|
+
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WdaStreamClientConfig } from "./WdaStreamClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: WdaStreamClientConfig) => {
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
8
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
9
|
+
disableHostPrefix: boolean;
|
|
10
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
11
|
+
logger: import("@smithy/types").Logger;
|
|
12
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
13
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
14
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WdaStreamExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: WdaStreamExtensionConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wildix/wda-stream-client",
|
|
3
|
+
"description": "@wildix/wda-stream-client client",
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
13
|
+
"prepack": "yarn run clean && yarn run build"
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist-cjs/index.js",
|
|
16
|
+
"types": "./dist-types/index.d.ts",
|
|
17
|
+
"module": "./dist-es/index.js",
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"tslib": "^2.5.0",
|
|
21
|
+
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
|
+
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
+
"@aws-sdk/types": "latest",
|
|
24
|
+
"@smithy/config-resolver": "^2.0.11",
|
|
25
|
+
"@smithy/fetch-http-handler": "^2.2.1",
|
|
26
|
+
"@smithy/hash-node": "^2.0.10",
|
|
27
|
+
"@smithy/invalid-dependency": "^2.0.10",
|
|
28
|
+
"@smithy/middleware-content-length": "^2.0.12",
|
|
29
|
+
"@smithy/middleware-retry": "^2.0.13",
|
|
30
|
+
"@smithy/middleware-serde": "^2.0.10",
|
|
31
|
+
"@smithy/middleware-stack": "^2.0.4",
|
|
32
|
+
"@smithy/node-config-provider": "^2.0.13",
|
|
33
|
+
"@smithy/node-http-handler": "^2.1.6",
|
|
34
|
+
"@smithy/protocol-http": "^3.0.6",
|
|
35
|
+
"@smithy/smithy-client": "^2.1.9",
|
|
36
|
+
"@smithy/types": "^2.3.4",
|
|
37
|
+
"@smithy/url-parser": "^2.0.10",
|
|
38
|
+
"@smithy/util-base64": "^2.0.0",
|
|
39
|
+
"@smithy/util-body-length-browser": "^2.0.0",
|
|
40
|
+
"@smithy/util-body-length-node": "^2.1.0",
|
|
41
|
+
"@smithy/util-defaults-mode-browser": "^2.0.13",
|
|
42
|
+
"@smithy/util-defaults-mode-node": "^2.0.15",
|
|
43
|
+
"@smithy/util-retry": "^2.0.3",
|
|
44
|
+
"@smithy/util-utf8": "^2.0.0",
|
|
45
|
+
"@wildix/smithy-utils": "^1.0.1"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@tsconfig/node14": "1.0.3",
|
|
49
|
+
"concurrently": "7.0.0",
|
|
50
|
+
"downlevel-dts": "0.10.1",
|
|
51
|
+
"rimraf": "^3.0.0",
|
|
52
|
+
"typedoc": "0.23.23",
|
|
53
|
+
"typescript": "~4.9.5",
|
|
54
|
+
"@smithy/service-client-documentation-generator": "^2.0.0",
|
|
55
|
+
"@types/node": "^14.14.31"
|
|
56
|
+
},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=14.0.0"
|
|
59
|
+
},
|
|
60
|
+
"typesVersions": {
|
|
61
|
+
"<4.0": {
|
|
62
|
+
"dist-types/*": [
|
|
63
|
+
"dist-types/ts3.4/*"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"dist-*/**"
|
|
69
|
+
],
|
|
70
|
+
"license": "Apache-2.0",
|
|
71
|
+
"browser": {
|
|
72
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
73
|
+
},
|
|
74
|
+
"react-native": {
|
|
75
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
76
|
+
}
|
|
77
|
+
}
|