@wildix/wim-wilma-client 0.0.2

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.
Files changed (58) hide show
  1. package/dist-cjs/Wilma.js +21 -0
  2. package/dist-cjs/WilmaClient.js +41 -0
  3. package/dist-cjs/commands/DeleteChatCommand.js +21 -0
  4. package/dist-cjs/commands/DislikeAnswerCommand.js +21 -0
  5. package/dist-cjs/commands/GetChatCommand.js +21 -0
  6. package/dist-cjs/commands/LikeAnswerCommand.js +21 -0
  7. package/dist-cjs/commands/ListChatsCommand.js +21 -0
  8. package/dist-cjs/commands/index.js +8 -0
  9. package/dist-cjs/extensionConfiguration.js +2 -0
  10. package/dist-cjs/index.js +10 -0
  11. package/dist-cjs/models/WilmaServiceException.js +12 -0
  12. package/dist-cjs/models/index.js +4 -0
  13. package/dist-cjs/models/models_0.js +47 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +269 -0
  15. package/dist-cjs/runtimeConfig.browser.js +32 -0
  16. package/dist-cjs/runtimeConfig.js +37 -0
  17. package/dist-cjs/runtimeConfig.native.js +15 -0
  18. package/dist-cjs/runtimeConfig.shared.js +21 -0
  19. package/dist-cjs/runtimeExtensions.js +11 -0
  20. package/dist-es/Wilma.js +17 -0
  21. package/dist-es/WilmaClient.js +37 -0
  22. package/dist-es/commands/DeleteChatCommand.js +17 -0
  23. package/dist-es/commands/DislikeAnswerCommand.js +17 -0
  24. package/dist-es/commands/GetChatCommand.js +17 -0
  25. package/dist-es/commands/LikeAnswerCommand.js +17 -0
  26. package/dist-es/commands/ListChatsCommand.js +17 -0
  27. package/dist-es/commands/index.js +5 -0
  28. package/dist-es/extensionConfiguration.js +1 -0
  29. package/dist-es/index.js +5 -0
  30. package/dist-es/models/WilmaServiceException.js +8 -0
  31. package/dist-es/models/index.js +1 -0
  32. package/dist-es/models/models_0.js +41 -0
  33. package/dist-es/protocols/Aws_restJson1.js +256 -0
  34. package/dist-es/runtimeConfig.browser.js +27 -0
  35. package/dist-es/runtimeConfig.js +32 -0
  36. package/dist-es/runtimeConfig.native.js +11 -0
  37. package/dist-es/runtimeConfig.shared.js +17 -0
  38. package/dist-es/runtimeExtensions.js +7 -0
  39. package/dist-types/Wilma.d.ts +45 -0
  40. package/dist-types/WilmaClient.d.ts +148 -0
  41. package/dist-types/commands/DeleteChatCommand.d.ts +76 -0
  42. package/dist-types/commands/DislikeAnswerCommand.d.ts +83 -0
  43. package/dist-types/commands/GetChatCommand.d.ts +94 -0
  44. package/dist-types/commands/LikeAnswerCommand.d.ts +83 -0
  45. package/dist-types/commands/ListChatsCommand.d.ts +87 -0
  46. package/dist-types/commands/index.d.ts +5 -0
  47. package/dist-types/extensionConfiguration.d.ts +7 -0
  48. package/dist-types/index.d.ts +7 -0
  49. package/dist-types/models/WilmaServiceException.d.ts +14 -0
  50. package/dist-types/models/index.d.ts +1 -0
  51. package/dist-types/models/models_0.d.ts +195 -0
  52. package/dist-types/protocols/Aws_restJson1.d.ts +47 -0
  53. package/dist-types/runtimeConfig.browser.d.ts +31 -0
  54. package/dist-types/runtimeConfig.d.ts +31 -0
  55. package/dist-types/runtimeConfig.native.d.ts +30 -0
  56. package/dist-types/runtimeConfig.shared.d.ts +15 -0
  57. package/dist-types/runtimeExtensions.d.ts +17 -0
  58. package/package.json +83 -0
@@ -0,0 +1,148 @@
1
+ import { DeleteChatCommandInput, DeleteChatCommandOutput } from "./commands/DeleteChatCommand";
2
+ import { DislikeAnswerCommandInput, DislikeAnswerCommandOutput } from "./commands/DislikeAnswerCommand";
3
+ import { GetChatCommandInput, GetChatCommandOutput } from "./commands/GetChatCommand";
4
+ import { LikeAnswerCommandInput, LikeAnswerCommandOutput } from "./commands/LikeAnswerCommand";
5
+ import { ListChatsCommandInput, ListChatsCommandOutput } from "./commands/ListChatsCommand";
6
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
7
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
8
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
9
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
10
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
11
+ import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
12
+ import { TokenProvider } from '@wildix/smithy-utils';
13
+ export { __Client };
14
+ /**
15
+ * @public
16
+ */
17
+ export type ServiceInputTypes = DeleteChatCommandInput | DislikeAnswerCommandInput | GetChatCommandInput | LikeAnswerCommandInput | ListChatsCommandInput;
18
+ /**
19
+ * @public
20
+ */
21
+ export type ServiceOutputTypes = DeleteChatCommandOutput | DislikeAnswerCommandOutput | GetChatCommandOutput | LikeAnswerCommandOutput | ListChatsCommandOutput;
22
+ /**
23
+ * @public
24
+ */
25
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
26
+ /**
27
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
28
+ */
29
+ requestHandler?: __HttpHandlerUserInput;
30
+ /**
31
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
32
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
33
+ * @internal
34
+ */
35
+ sha256?: __ChecksumConstructor | __HashConstructor;
36
+ /**
37
+ * The function that will be used to convert strings into HTTP endpoints.
38
+ * @internal
39
+ */
40
+ urlParser?: __UrlParser;
41
+ /**
42
+ * A function that can calculate the length of a request body.
43
+ * @internal
44
+ */
45
+ bodyLengthChecker?: __BodyLengthCalculator;
46
+ /**
47
+ * A function that converts a stream into an array of bytes.
48
+ * @internal
49
+ */
50
+ streamCollector?: __StreamCollector;
51
+ /**
52
+ * The function that will be used to convert a base64-encoded string to a byte array.
53
+ * @internal
54
+ */
55
+ base64Decoder?: __Decoder;
56
+ /**
57
+ * The function that will be used to convert binary data to a base64-encoded string.
58
+ * @internal
59
+ */
60
+ base64Encoder?: __Encoder;
61
+ /**
62
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
63
+ * @internal
64
+ */
65
+ utf8Decoder?: __Decoder;
66
+ /**
67
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
68
+ * @internal
69
+ */
70
+ utf8Encoder?: __Encoder;
71
+ /**
72
+ * The runtime environment.
73
+ * @internal
74
+ */
75
+ runtime?: string;
76
+ /**
77
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
78
+ * trait of an operation.
79
+ */
80
+ disableHostPrefix?: boolean;
81
+ /**
82
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
83
+ * @internal
84
+ */
85
+ defaultUserAgentProvider?: Provider<__UserAgent>;
86
+ /**
87
+ * Value for how many times a request will be made at most in case of retry.
88
+ */
89
+ maxAttempts?: number | __Provider<number>;
90
+ /**
91
+ * Specifies which retry algorithm to use.
92
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
93
+ *
94
+ */
95
+ retryMode?: string | __Provider<string>;
96
+ /**
97
+ * Optional logger for logging debug/info/warn/error.
98
+ */
99
+ logger?: __Logger;
100
+ /**
101
+ * Optional extensions
102
+ */
103
+ extensions?: RuntimeExtension[];
104
+ /**
105
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
106
+ */
107
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
108
+ }
109
+ /**
110
+ * @public
111
+ */
112
+ export type WilmaClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig;
113
+ /**
114
+ * @public
115
+ *
116
+ * The configuration interface of WilmaClient class constructor that set the region, credentials and other options.
117
+ */
118
+ export interface WilmaClientConfig extends WilmaClientConfigType {
119
+ env?: 'stage' | 'stable' | 'prod';
120
+ token: TokenProvider;
121
+ }
122
+ /**
123
+ * @public
124
+ */
125
+ export type WilmaClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig;
126
+ /**
127
+ * @public
128
+ *
129
+ * The resolved configuration interface of WilmaClient class. This is resolved and normalized from the {@link WilmaClientConfig | constructor configuration interface}.
130
+ */
131
+ export interface WilmaClientResolvedConfig extends WilmaClientResolvedConfigType {
132
+ }
133
+ /**
134
+ * @public
135
+ */
136
+ export declare class WilmaClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig> {
137
+ /**
138
+ * The resolved configuration of WilmaClient class. This is resolved and normalized from the {@link WilmaClientConfig | constructor configuration interface}.
139
+ */
140
+ readonly config: WilmaClientResolvedConfig;
141
+ constructor(...[configuration]: __CheckOptionalClientConfig<WilmaClientConfig>);
142
+ /**
143
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
144
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
145
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
146
+ */
147
+ destroy(): void;
148
+ }
@@ -0,0 +1,76 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
2
+ import { DeleteChatInput, DeleteChatOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteChatCommand}.
14
+ */
15
+ export interface DeleteChatCommandInput extends DeleteChatInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteChatCommand}.
21
+ */
22
+ export interface DeleteChatCommandOutput extends DeleteChatOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteChatCommand_base: {
25
+ new (input: DeleteChatCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChatCommandInput, DeleteChatCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteChatCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChatCommandInput, DeleteChatCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Deletes a dashboard by its ID.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaClient, DeleteChatCommand } from "@wildix/wim-wilma-client"; // ES Modules import
35
+ * // const { WilmaClient, DeleteChatCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
36
+ * const client = new WilmaClient(config);
37
+ * const input = { // DeleteChatInput
38
+ * company: "STRING_VALUE",
39
+ * user: "STRING_VALUE",
40
+ * id: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteChatCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteChatCommandInput - {@link DeleteChatCommandInput}
49
+ * @returns {@link DeleteChatCommandOutput}
50
+ * @see {@link DeleteChatCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteChatCommandOutput} for command's `response` shape.
52
+ * @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
53
+ *
54
+ * @throws {@link ValidationException} (client fault)
55
+ *
56
+ * @throws {@link ForbiddenException} (client fault)
57
+ *
58
+ * @throws {@link WilmaServiceException}
59
+ * <p>Base exception class for all service exceptions from Wilma service.</p>
60
+ *
61
+ *
62
+ * @public
63
+ */
64
+ export declare class DeleteChatCommand extends DeleteChatCommand_base {
65
+ /** @internal type navigation helper, not in runtime. */
66
+ protected static __types: {
67
+ api: {
68
+ input: DeleteChatInput;
69
+ output: {};
70
+ };
71
+ sdk: {
72
+ input: DeleteChatCommandInput;
73
+ output: DeleteChatCommandOutput;
74
+ };
75
+ };
76
+ }
@@ -0,0 +1,83 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
2
+ import { DislikeAnswerInput, DislikeAnswerOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DislikeAnswerCommand}.
14
+ */
15
+ export interface DislikeAnswerCommandInput extends DislikeAnswerInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DislikeAnswerCommand}.
21
+ */
22
+ export interface DislikeAnswerCommandOutput extends DislikeAnswerOutput, __MetadataBearer {
23
+ }
24
+ declare const DislikeAnswerCommand_base: {
25
+ new (input: DislikeAnswerCommandInput): import("@smithy/smithy-client").CommandImpl<DislikeAnswerCommandInput, DislikeAnswerCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DislikeAnswerCommandInput): import("@smithy/smithy-client").CommandImpl<DislikeAnswerCommandInput, DislikeAnswerCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * ...
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaClient, DislikeAnswerCommand } from "@wildix/wim-wilma-client"; // ES Modules import
35
+ * // const { WilmaClient, DislikeAnswerCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
36
+ * const client = new WilmaClient(config);
37
+ * const input = { // DislikeAnswerInput
38
+ * company: "STRING_VALUE",
39
+ * user: "STRING_VALUE",
40
+ * chatId: "STRING_VALUE", // required
41
+ * message: "DOCUMENT_VALUE", // required
42
+ * feedback: { // ChatFeedback
43
+ * id: "STRING_VALUE", // required
44
+ * text: "STRING_VALUE", // required
45
+ * score: "LIKE" || "DISLIKE", // required
46
+ * createdAt: "STRING_VALUE", // required
47
+ * },
48
+ * };
49
+ * const command = new DislikeAnswerCommand(input);
50
+ * const response = await client.send(command);
51
+ * // {};
52
+ *
53
+ * ```
54
+ *
55
+ * @param DislikeAnswerCommandInput - {@link DislikeAnswerCommandInput}
56
+ * @returns {@link DislikeAnswerCommandOutput}
57
+ * @see {@link DislikeAnswerCommandInput} for command's `input` shape.
58
+ * @see {@link DislikeAnswerCommandOutput} for command's `response` shape.
59
+ * @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
60
+ *
61
+ * @throws {@link ValidationException} (client fault)
62
+ *
63
+ * @throws {@link ForbiddenException} (client fault)
64
+ *
65
+ * @throws {@link WilmaServiceException}
66
+ * <p>Base exception class for all service exceptions from Wilma service.</p>
67
+ *
68
+ *
69
+ * @public
70
+ */
71
+ export declare class DislikeAnswerCommand extends DislikeAnswerCommand_base {
72
+ /** @internal type navigation helper, not in runtime. */
73
+ protected static __types: {
74
+ api: {
75
+ input: DislikeAnswerInput;
76
+ output: {};
77
+ };
78
+ sdk: {
79
+ input: DislikeAnswerCommandInput;
80
+ output: DislikeAnswerCommandOutput;
81
+ };
82
+ };
83
+ }
@@ -0,0 +1,94 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
2
+ import { GetChatInput, GetChatOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetChatCommand}.
14
+ */
15
+ export interface GetChatCommandInput extends GetChatInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetChatCommand}.
21
+ */
22
+ export interface GetChatCommandOutput extends GetChatOutput, __MetadataBearer {
23
+ }
24
+ declare const GetChatCommand_base: {
25
+ new (input: GetChatCommandInput): import("@smithy/smithy-client").CommandImpl<GetChatCommandInput, GetChatCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetChatCommandInput): import("@smithy/smithy-client").CommandImpl<GetChatCommandInput, GetChatCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gets a dashboard by its ID.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaClient, GetChatCommand } from "@wildix/wim-wilma-client"; // ES Modules import
35
+ * // const { WilmaClient, GetChatCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
36
+ * const client = new WilmaClient(config);
37
+ * const input = { // GetChatInput
38
+ * company: "STRING_VALUE",
39
+ * user: "STRING_VALUE",
40
+ * id: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetChatCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetChatOutput
45
+ * // chat: { // Chat
46
+ * // id: "STRING_VALUE", // required
47
+ * // title: "STRING_VALUE",
48
+ * // target: "STRING_VALUE",
49
+ * // createdAt: "STRING_VALUE", // required
50
+ * // updatedAt: "STRING_VALUE",
51
+ * // },
52
+ * // history: { // ChatHistory
53
+ * // messages: [ // ChatMessagesList // required
54
+ * // "DOCUMENT_VALUE",
55
+ * // ],
56
+ * // mentions: [ // ChatMentionsList
57
+ * // "DOCUMENT_VALUE",
58
+ * // ],
59
+ * // },
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param GetChatCommandInput - {@link GetChatCommandInput}
65
+ * @returns {@link GetChatCommandOutput}
66
+ * @see {@link GetChatCommandInput} for command's `input` shape.
67
+ * @see {@link GetChatCommandOutput} for command's `response` shape.
68
+ * @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ *
72
+ * @throws {@link ForbiddenException} (client fault)
73
+ *
74
+ * @throws {@link NotFoundException} (client fault)
75
+ *
76
+ * @throws {@link WilmaServiceException}
77
+ * <p>Base exception class for all service exceptions from Wilma service.</p>
78
+ *
79
+ *
80
+ * @public
81
+ */
82
+ export declare class GetChatCommand extends GetChatCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: GetChatInput;
87
+ output: GetChatOutput;
88
+ };
89
+ sdk: {
90
+ input: GetChatCommandInput;
91
+ output: GetChatCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -0,0 +1,83 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
2
+ import { LikeAnswerInput, LikeAnswerOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link LikeAnswerCommand}.
14
+ */
15
+ export interface LikeAnswerCommandInput extends LikeAnswerInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link LikeAnswerCommand}.
21
+ */
22
+ export interface LikeAnswerCommandOutput extends LikeAnswerOutput, __MetadataBearer {
23
+ }
24
+ declare const LikeAnswerCommand_base: {
25
+ new (input: LikeAnswerCommandInput): import("@smithy/smithy-client").CommandImpl<LikeAnswerCommandInput, LikeAnswerCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: LikeAnswerCommandInput): import("@smithy/smithy-client").CommandImpl<LikeAnswerCommandInput, LikeAnswerCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * ...
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaClient, LikeAnswerCommand } from "@wildix/wim-wilma-client"; // ES Modules import
35
+ * // const { WilmaClient, LikeAnswerCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
36
+ * const client = new WilmaClient(config);
37
+ * const input = { // LikeAnswerInput
38
+ * company: "STRING_VALUE",
39
+ * user: "STRING_VALUE",
40
+ * chatId: "STRING_VALUE", // required
41
+ * message: "DOCUMENT_VALUE", // required
42
+ * feedback: { // ChatFeedback
43
+ * id: "STRING_VALUE", // required
44
+ * text: "STRING_VALUE", // required
45
+ * score: "LIKE" || "DISLIKE", // required
46
+ * createdAt: "STRING_VALUE", // required
47
+ * },
48
+ * };
49
+ * const command = new LikeAnswerCommand(input);
50
+ * const response = await client.send(command);
51
+ * // {};
52
+ *
53
+ * ```
54
+ *
55
+ * @param LikeAnswerCommandInput - {@link LikeAnswerCommandInput}
56
+ * @returns {@link LikeAnswerCommandOutput}
57
+ * @see {@link LikeAnswerCommandInput} for command's `input` shape.
58
+ * @see {@link LikeAnswerCommandOutput} for command's `response` shape.
59
+ * @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
60
+ *
61
+ * @throws {@link ValidationException} (client fault)
62
+ *
63
+ * @throws {@link ForbiddenException} (client fault)
64
+ *
65
+ * @throws {@link WilmaServiceException}
66
+ * <p>Base exception class for all service exceptions from Wilma service.</p>
67
+ *
68
+ *
69
+ * @public
70
+ */
71
+ export declare class LikeAnswerCommand extends LikeAnswerCommand_base {
72
+ /** @internal type navigation helper, not in runtime. */
73
+ protected static __types: {
74
+ api: {
75
+ input: LikeAnswerInput;
76
+ output: {};
77
+ };
78
+ sdk: {
79
+ input: LikeAnswerCommandInput;
80
+ output: LikeAnswerCommandOutput;
81
+ };
82
+ };
83
+ }
@@ -0,0 +1,87 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
2
+ import { ListChatsInput, ListChatsOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListChatsCommand}.
14
+ */
15
+ export interface ListChatsCommandInput extends ListChatsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListChatsCommand}.
21
+ */
22
+ export interface ListChatsCommandOutput extends ListChatsOutput, __MetadataBearer {
23
+ }
24
+ declare const ListChatsCommand_base: {
25
+ new (input: ListChatsCommandInput): import("@smithy/smithy-client").CommandImpl<ListChatsCommandInput, ListChatsCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListChatsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListChatsCommandInput, ListChatsCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists recent chats available to the user.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaClient, ListChatsCommand } from "@wildix/wim-wilma-client"; // ES Modules import
35
+ * // const { WilmaClient, ListChatsCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
36
+ * const client = new WilmaClient(config);
37
+ * const input = { // ListChatsInput
38
+ * company: "STRING_VALUE",
39
+ * user: "STRING_VALUE",
40
+ * exclusiveStartKey: "STRING_VALUE",
41
+ * };
42
+ * const command = new ListChatsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListChatsOutput
45
+ * // chats: [ // ChatsList // required
46
+ * // { // Chat
47
+ * // id: "STRING_VALUE", // required
48
+ * // title: "STRING_VALUE",
49
+ * // target: "STRING_VALUE",
50
+ * // createdAt: "STRING_VALUE", // required
51
+ * // updatedAt: "STRING_VALUE",
52
+ * // },
53
+ * // ],
54
+ * // lastEvaluatedKey: "STRING_VALUE",
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param ListChatsCommandInput - {@link ListChatsCommandInput}
60
+ * @returns {@link ListChatsCommandOutput}
61
+ * @see {@link ListChatsCommandInput} for command's `input` shape.
62
+ * @see {@link ListChatsCommandOutput} for command's `response` shape.
63
+ * @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ *
67
+ * @throws {@link ForbiddenException} (client fault)
68
+ *
69
+ * @throws {@link WilmaServiceException}
70
+ * <p>Base exception class for all service exceptions from Wilma service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class ListChatsCommand extends ListChatsCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: ListChatsInput;
80
+ output: ListChatsOutput;
81
+ };
82
+ sdk: {
83
+ input: ListChatsCommandInput;
84
+ output: ListChatsCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./DeleteChatCommand";
2
+ export * from "./DislikeAnswerCommand";
3
+ export * from "./GetChatCommand";
4
+ export * from "./LikeAnswerCommand";
5
+ export * from "./ListChatsCommand";
@@ -0,0 +1,7 @@
1
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
2
+ import { DefaultExtensionConfiguration } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface WilmaExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
7
+ }
@@ -0,0 +1,7 @@
1
+ export * from "./WilmaClient";
2
+ export * from "./Wilma";
3
+ export type { RuntimeExtension } from "./runtimeExtensions";
4
+ export type { WilmaExtensionConfiguration } from "./extensionConfiguration";
5
+ export * from "./commands";
6
+ export * from "./models";
7
+ export { WilmaServiceException } from "./models/WilmaServiceException";
@@ -0,0 +1,14 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from Wilma service.
8
+ */
9
+ export declare class WilmaServiceException extends __ServiceException {
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(options: __ServiceExceptionOptions);
14
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";