@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.
- package/dist-cjs/Wilma.js +21 -0
- package/dist-cjs/WilmaClient.js +41 -0
- package/dist-cjs/commands/DeleteChatCommand.js +21 -0
- package/dist-cjs/commands/DislikeAnswerCommand.js +21 -0
- package/dist-cjs/commands/GetChatCommand.js +21 -0
- package/dist-cjs/commands/LikeAnswerCommand.js +21 -0
- package/dist-cjs/commands/ListChatsCommand.js +21 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/WilmaServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +47 -0
- package/dist-cjs/protocols/Aws_restJson1.js +269 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +37 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-cjs/runtimeExtensions.js +11 -0
- package/dist-es/Wilma.js +17 -0
- package/dist-es/WilmaClient.js +37 -0
- package/dist-es/commands/DeleteChatCommand.js +17 -0
- package/dist-es/commands/DislikeAnswerCommand.js +17 -0
- package/dist-es/commands/GetChatCommand.js +17 -0
- package/dist-es/commands/LikeAnswerCommand.js +17 -0
- package/dist-es/commands/ListChatsCommand.js +17 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/WilmaServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +41 -0
- package/dist-es/protocols/Aws_restJson1.js +256 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +32 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-es/runtimeExtensions.js +7 -0
- package/dist-types/Wilma.d.ts +45 -0
- package/dist-types/WilmaClient.d.ts +148 -0
- package/dist-types/commands/DeleteChatCommand.d.ts +76 -0
- package/dist-types/commands/DislikeAnswerCommand.d.ts +83 -0
- package/dist-types/commands/GetChatCommand.d.ts +94 -0
- package/dist-types/commands/LikeAnswerCommand.d.ts +83 -0
- package/dist-types/commands/ListChatsCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +7 -0
- package/dist-types/models/WilmaServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +195 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +47 -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 +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +83 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { WilmaServiceException as __BaseException } from "./WilmaServiceException";
|
|
2
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
+
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class NotFoundException extends __BaseException {
|
|
8
|
+
readonly name: "NotFoundException";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare class ValidationException extends __BaseException {
|
|
19
|
+
readonly name: "ValidationException";
|
|
20
|
+
readonly $fault: "client";
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export declare class ForbiddenException extends __BaseException {
|
|
30
|
+
readonly name: "ForbiddenException";
|
|
31
|
+
readonly $fault: "client";
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export interface Chat {
|
|
41
|
+
id: string;
|
|
42
|
+
title?: string | undefined;
|
|
43
|
+
target?: string | undefined;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
updatedAt?: string | undefined;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* @enum
|
|
50
|
+
*/
|
|
51
|
+
export declare const ChatFeedbackScore: {
|
|
52
|
+
readonly DISLIKE: "DISLIKE";
|
|
53
|
+
readonly LIKE: "LIKE";
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
export type ChatFeedbackScore = typeof ChatFeedbackScore[keyof typeof ChatFeedbackScore];
|
|
59
|
+
/**
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export interface ChatFeedback {
|
|
63
|
+
id: string;
|
|
64
|
+
text: string;
|
|
65
|
+
score: ChatFeedbackScore;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export interface ChatHistory {
|
|
72
|
+
messages: (__DocumentType)[];
|
|
73
|
+
mentions?: (__DocumentType)[] | undefined;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export interface DeleteChatInput {
|
|
79
|
+
/**
|
|
80
|
+
* The unique identifier of the tenant when a service token is used.
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
company?: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* The unique identifier of the user when a service or tenant token is used.
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
user?: string | undefined;
|
|
89
|
+
id: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export interface DeleteChatOutput {
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export interface DislikeAnswerInput {
|
|
100
|
+
/**
|
|
101
|
+
* The unique identifier of the tenant when a service token is used.
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
company?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* The unique identifier of the user when a service or tenant token is used.
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
user?: string | undefined;
|
|
110
|
+
chatId: string;
|
|
111
|
+
message: __DocumentType;
|
|
112
|
+
feedback: ChatFeedback;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
export interface DislikeAnswerOutput {
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
export interface GetChatInput {
|
|
123
|
+
/**
|
|
124
|
+
* The unique identifier of the tenant when a service token is used.
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
company?: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* The unique identifier of the user when a service or tenant token is used.
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
user?: string | undefined;
|
|
133
|
+
id: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
export interface GetChatOutput {
|
|
139
|
+
chat: Chat;
|
|
140
|
+
history: ChatHistory;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
export interface LikeAnswerInput {
|
|
146
|
+
/**
|
|
147
|
+
* The unique identifier of the tenant when a service token is used.
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
company?: string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* The unique identifier of the user when a service or tenant token is used.
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
user?: string | undefined;
|
|
156
|
+
chatId: string;
|
|
157
|
+
message: __DocumentType;
|
|
158
|
+
feedback: ChatFeedback;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
export interface LikeAnswerOutput {
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
export interface ListChatsInput {
|
|
169
|
+
/**
|
|
170
|
+
* The unique identifier of the tenant when a service token is used.
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
company?: string | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* The unique identifier of the user when a service or tenant token is used.
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
user?: string | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* ...
|
|
181
|
+
* @public
|
|
182
|
+
*/
|
|
183
|
+
exclusiveStartKey?: string | undefined;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export interface ListChatsOutput {
|
|
189
|
+
chats: (Chat)[];
|
|
190
|
+
/**
|
|
191
|
+
* ...
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
lastEvaluatedKey?: string | undefined;
|
|
195
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
7
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
8
|
+
/**
|
|
9
|
+
* serializeAws_restJson1DeleteChatCommand
|
|
10
|
+
*/
|
|
11
|
+
export declare const se_DeleteChatCommand: (input: DeleteChatCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
12
|
+
/**
|
|
13
|
+
* serializeAws_restJson1DislikeAnswerCommand
|
|
14
|
+
*/
|
|
15
|
+
export declare const se_DislikeAnswerCommand: (input: DislikeAnswerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
|
+
/**
|
|
17
|
+
* serializeAws_restJson1GetChatCommand
|
|
18
|
+
*/
|
|
19
|
+
export declare const se_GetChatCommand: (input: GetChatCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
|
+
/**
|
|
21
|
+
* serializeAws_restJson1LikeAnswerCommand
|
|
22
|
+
*/
|
|
23
|
+
export declare const se_LikeAnswerCommand: (input: LikeAnswerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
|
+
/**
|
|
25
|
+
* serializeAws_restJson1ListChatsCommand
|
|
26
|
+
*/
|
|
27
|
+
export declare const se_ListChatsCommand: (input: ListChatsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
28
|
+
/**
|
|
29
|
+
* deserializeAws_restJson1DeleteChatCommand
|
|
30
|
+
*/
|
|
31
|
+
export declare const de_DeleteChatCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteChatCommandOutput>;
|
|
32
|
+
/**
|
|
33
|
+
* deserializeAws_restJson1DislikeAnswerCommand
|
|
34
|
+
*/
|
|
35
|
+
export declare const de_DislikeAnswerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DislikeAnswerCommandOutput>;
|
|
36
|
+
/**
|
|
37
|
+
* deserializeAws_restJson1GetChatCommand
|
|
38
|
+
*/
|
|
39
|
+
export declare const de_GetChatCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetChatCommandOutput>;
|
|
40
|
+
/**
|
|
41
|
+
* deserializeAws_restJson1LikeAnswerCommand
|
|
42
|
+
*/
|
|
43
|
+
export declare const de_LikeAnswerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<LikeAnswerCommandOutput>;
|
|
44
|
+
/**
|
|
45
|
+
* deserializeAws_restJson1ListChatsCommand
|
|
46
|
+
*/
|
|
47
|
+
export declare const de_ListChatsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListChatsCommandOutput>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import { WilmaClientConfig } from "./WilmaClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: WilmaClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
11
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
12
|
+
requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
|
|
13
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
15
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
+
env?: "stage" | "stable" | "prod" | undefined;
|
|
17
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
|
+
apiVersion: string;
|
|
19
|
+
cacheMiddleware?: boolean | undefined;
|
|
20
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
21
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
22
|
+
base64Encoder: (_input: string | Uint8Array) => string;
|
|
23
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
24
|
+
utf8Encoder: (input: string | Uint8Array) => string;
|
|
25
|
+
disableHostPrefix: boolean;
|
|
26
|
+
logger: import("@smithy/types").Logger;
|
|
27
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
28
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
29
|
+
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
30
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import { WilmaClientConfig } from "./WilmaClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: WilmaClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
11
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
12
|
+
requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
|
|
13
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
15
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
|
+
env?: "stage" | "stable" | "prod" | undefined;
|
|
18
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
|
+
apiVersion: string;
|
|
20
|
+
cacheMiddleware?: boolean | undefined;
|
|
21
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: (_input: string | Uint8Array) => string;
|
|
24
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
utf8Encoder: (input: string | Uint8Array) => string;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
logger: import("@smithy/types").Logger;
|
|
28
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
30
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
31
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { WilmaClientConfig } from "./WilmaClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: WilmaClientConfig) => {
|
|
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").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
|
+
apiVersion: string;
|
|
12
|
+
cacheMiddleware?: boolean | undefined;
|
|
13
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
14
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
15
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
17
|
+
base64Encoder: (_input: string | Uint8Array) => string;
|
|
18
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
19
|
+
utf8Encoder: (input: string | Uint8Array) => string;
|
|
20
|
+
disableHostPrefix: boolean;
|
|
21
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
22
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
23
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
|
+
logger: import("@smithy/types").Logger;
|
|
25
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
26
|
+
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
27
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
28
|
+
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
29
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
30
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WilmaClientConfig } from "./WilmaClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: WilmaClientConfig) => {
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
8
|
+
base64Encoder: (_input: string | Uint8Array) => string;
|
|
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: (input: string | Uint8Array) => string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WilmaExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: WilmaExtensionConfiguration): 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,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wildix/wim-wilma-client",
|
|
3
|
+
"description": "@wildix/wim-wilma-client client",
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
12
|
+
"prepack": "yarn run clean && yarn run build",
|
|
13
|
+
"postpublish": "node ../../scripts/postpublish.js"
|
|
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.6.2",
|
|
21
|
+
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
|
+
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
+
"@aws-sdk/core": "3.775.0",
|
|
24
|
+
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
25
|
+
"@aws-sdk/middleware-logger": "3.775.0",
|
|
26
|
+
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
27
|
+
"@aws-sdk/middleware-user-agent": "3.775.0",
|
|
28
|
+
"@aws-sdk/types": "latest",
|
|
29
|
+
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
30
|
+
"@aws-sdk/util-user-agent-node": "3.775.0",
|
|
31
|
+
"@smithy/config-resolver": "^4.1.0",
|
|
32
|
+
"@smithy/core": "^3.2.0",
|
|
33
|
+
"@smithy/fetch-http-handler": "^5.0.2",
|
|
34
|
+
"@smithy/hash-node": "^4.0.2",
|
|
35
|
+
"@smithy/invalid-dependency": "^4.0.2",
|
|
36
|
+
"@smithy/middleware-content-length": "^4.0.2",
|
|
37
|
+
"@smithy/middleware-retry": "^4.1.0",
|
|
38
|
+
"@smithy/middleware-serde": "^4.0.3",
|
|
39
|
+
"@smithy/middleware-stack": "^4.0.2",
|
|
40
|
+
"@smithy/node-config-provider": "^4.0.2",
|
|
41
|
+
"@smithy/node-http-handler": "^4.0.4",
|
|
42
|
+
"@smithy/protocol-http": "^5.1.0",
|
|
43
|
+
"@smithy/smithy-client": "^4.2.0",
|
|
44
|
+
"@smithy/types": "^4.2.0",
|
|
45
|
+
"@smithy/url-parser": "^4.0.2",
|
|
46
|
+
"@smithy/util-base64": "^4.0.0",
|
|
47
|
+
"@smithy/util-body-length-browser": "^4.0.0",
|
|
48
|
+
"@smithy/util-body-length-node": "^4.0.0",
|
|
49
|
+
"@smithy/util-defaults-mode-browser": "^4.0.8",
|
|
50
|
+
"@smithy/util-defaults-mode-node": "^4.0.8",
|
|
51
|
+
"@smithy/util-retry": "^4.0.2",
|
|
52
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
53
|
+
"@wildix/smithy-utils": "^1.0.3"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@tsconfig/node18": "18.2.4",
|
|
57
|
+
"concurrently": "7.0.0",
|
|
58
|
+
"downlevel-dts": "0.10.1",
|
|
59
|
+
"rimraf": "^3.0.0",
|
|
60
|
+
"typescript": "~5.2.2",
|
|
61
|
+
"@types/node": "^18.19.69"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=18.0.0"
|
|
65
|
+
},
|
|
66
|
+
"typesVersions": {
|
|
67
|
+
"<4.0": {
|
|
68
|
+
"dist-types/*": [
|
|
69
|
+
"dist-types/ts3.4/*"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"files": [
|
|
74
|
+
"dist-*/**"
|
|
75
|
+
],
|
|
76
|
+
"license": "Apache-2.0",
|
|
77
|
+
"browser": {
|
|
78
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
79
|
+
},
|
|
80
|
+
"react-native": {
|
|
81
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
82
|
+
}
|
|
83
|
+
}
|