@wildix/xbees-conversations-client 1.2.5 → 1.2.6
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/models/models_0.js +14 -14
- package/dist-cjs/runtimeConfig.browser.js +12 -0
- package/dist-cjs/runtimeConfig.js +12 -0
- package/dist-es/models/models_0.js +12 -12
- package/dist-es/runtimeConfig.browser.js +12 -0
- package/dist-es/runtimeConfig.js +12 -0
- package/dist-types/ConversationsClient.d.ts +8 -0
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +2 -2
- package/dist-types/commands/DescribeEventCommand.d.ts +5 -5
- package/dist-types/commands/GetMessageCommand.d.ts +1 -1
- package/dist-types/commands/ListMessagesCommand.d.ts +1 -1
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +1 -1
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +2 -2
- package/dist-types/commands/SendGiphyCommand.d.ts +1 -1
- package/dist-types/commands/SendMessageCommand.d.ts +2 -2
- package/dist-types/commands/SendSystemMessageCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMessageCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +12 -12
- package/dist-types/runtimeConfig.browser.d.ts +8 -1
- package/dist-types/runtimeConfig.d.ts +8 -1
- package/dist-types/runtimeConfig.native.d.ts +8 -1
- package/package.json +2 -2
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.SystemMessage = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.FileNotFoundException = exports.ConversationFileCategory = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.
|
|
3
|
+
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.SystemMessage = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.FileNotFoundException = exports.ConversationFileCategory = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ValidationException = exports.RateLimitExceededException = exports.ForbiddenException = void 0;
|
|
4
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
|
-
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
|
-
name = "ValidationException";
|
|
7
|
-
$fault = "client";
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "ValidationException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.ValidationException = ValidationException;
|
|
18
5
|
class ForbiddenException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
19
6
|
name = "ForbiddenException";
|
|
20
7
|
$fault = "client";
|
|
@@ -49,6 +36,19 @@ class RateLimitExceededException extends ConversationsServiceException_1.Convers
|
|
|
49
36
|
}
|
|
50
37
|
}
|
|
51
38
|
exports.RateLimitExceededException = RateLimitExceededException;
|
|
39
|
+
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
40
|
+
name = "ValidationException";
|
|
41
|
+
$fault = "client";
|
|
42
|
+
constructor(opts) {
|
|
43
|
+
super({
|
|
44
|
+
name: "ValidationException",
|
|
45
|
+
$fault: "client",
|
|
46
|
+
...opts
|
|
47
|
+
});
|
|
48
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ValidationException = ValidationException;
|
|
52
52
|
exports.ChannelAccess = {
|
|
53
53
|
PRIVATE: "private",
|
|
54
54
|
PUBLIC: "public",
|
|
@@ -24,6 +24,18 @@ const getRuntimeConfig = (config) => {
|
|
|
24
24
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
|
|
25
25
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
26
26
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
+
retryDecider: config?.retryDecider ?? ((error) => {
|
|
28
|
+
const statusCode = error?.$metadata?.httpStatusCode ?? error?.$response?.statusCode;
|
|
29
|
+
if (statusCode === 429) {
|
|
30
|
+
return Boolean(config?.retryOn429 ?? true);
|
|
31
|
+
}
|
|
32
|
+
return Boolean(error?.$retryable?.throttling
|
|
33
|
+
|| error?.$retryable?.retryable
|
|
34
|
+
|| statusCode === 500
|
|
35
|
+
|| statusCode === 502
|
|
36
|
+
|| statusCode === 503
|
|
37
|
+
|| statusCode === 504);
|
|
38
|
+
}),
|
|
27
39
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
28
40
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
29
41
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
@@ -28,6 +28,18 @@ const getRuntimeConfig = (config) => {
|
|
|
28
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
|
|
29
29
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
30
30
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
31
|
+
retryDecider: config?.retryDecider ?? ((error) => {
|
|
32
|
+
const statusCode = error?.$metadata?.httpStatusCode ?? error?.$response?.statusCode;
|
|
33
|
+
if (statusCode === 429) {
|
|
34
|
+
return Boolean(config?.retryOn429 ?? true);
|
|
35
|
+
}
|
|
36
|
+
return Boolean(error?.$retryable?.throttling
|
|
37
|
+
|| error?.$retryable?.retryable
|
|
38
|
+
|| statusCode === 500
|
|
39
|
+
|| statusCode === 502
|
|
40
|
+
|| statusCode === 503
|
|
41
|
+
|| statusCode === 504);
|
|
42
|
+
}),
|
|
31
43
|
retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, }, config),
|
|
32
44
|
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
33
45
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "./ConversationsServiceException";
|
|
2
|
-
export class ValidationException extends __BaseException {
|
|
3
|
-
name = "ValidationException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "ValidationException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
2
|
export class ForbiddenException extends __BaseException {
|
|
15
3
|
name = "ForbiddenException";
|
|
16
4
|
$fault = "client";
|
|
@@ -43,6 +31,18 @@ export class RateLimitExceededException extends __BaseException {
|
|
|
43
31
|
this.retryAfter = opts.retryAfter;
|
|
44
32
|
}
|
|
45
33
|
}
|
|
34
|
+
export class ValidationException extends __BaseException {
|
|
35
|
+
name = "ValidationException";
|
|
36
|
+
$fault = "client";
|
|
37
|
+
constructor(opts) {
|
|
38
|
+
super({
|
|
39
|
+
name: "ValidationException",
|
|
40
|
+
$fault: "client",
|
|
41
|
+
...opts
|
|
42
|
+
});
|
|
43
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
46
|
export const ChannelAccess = {
|
|
47
47
|
PRIVATE: "private",
|
|
48
48
|
PUBLIC: "public",
|
|
@@ -20,6 +20,18 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
20
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
|
|
21
21
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
22
22
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
23
|
+
retryDecider: config?.retryDecider ?? ((error) => {
|
|
24
|
+
const statusCode = error?.$metadata?.httpStatusCode ?? error?.$response?.statusCode;
|
|
25
|
+
if (statusCode === 429) {
|
|
26
|
+
return Boolean(config?.retryOn429 ?? true);
|
|
27
|
+
}
|
|
28
|
+
return Boolean(error?.$retryable?.throttling
|
|
29
|
+
|| error?.$retryable?.retryable
|
|
30
|
+
|| statusCode === 500
|
|
31
|
+
|| statusCode === 502
|
|
32
|
+
|| statusCode === 503
|
|
33
|
+
|| statusCode === 504);
|
|
34
|
+
}),
|
|
23
35
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
24
36
|
sha256: config?.sha256 ?? Sha256,
|
|
25
37
|
streamCollector: config?.streamCollector ?? streamCollector,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -24,6 +24,18 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
24
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
|
|
25
25
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
26
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
+
retryDecider: config?.retryDecider ?? ((error) => {
|
|
28
|
+
const statusCode = error?.$metadata?.httpStatusCode ?? error?.$response?.statusCode;
|
|
29
|
+
if (statusCode === 429) {
|
|
30
|
+
return Boolean(config?.retryOn429 ?? true);
|
|
31
|
+
}
|
|
32
|
+
return Boolean(error?.$retryable?.throttling
|
|
33
|
+
|| error?.$retryable?.retryable
|
|
34
|
+
|| statusCode === 500
|
|
35
|
+
|| statusCode === 502
|
|
36
|
+
|| statusCode === 503
|
|
37
|
+
|| statusCode === 504);
|
|
38
|
+
}),
|
|
27
39
|
retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }, config),
|
|
28
40
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
29
41
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
@@ -143,6 +143,14 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
143
143
|
* @internal
|
|
144
144
|
*/
|
|
145
145
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
146
|
+
/**
|
|
147
|
+
* Enable automatic retry on HTTP 429 responses. Defaults to `true`.
|
|
148
|
+
*/
|
|
149
|
+
retryOn429?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Custom retry decider override.
|
|
152
|
+
*/
|
|
153
|
+
retryDecider?: (error: any) => boolean;
|
|
146
154
|
/**
|
|
147
155
|
* Value for how many times a request will be made at most in case of retry.
|
|
148
156
|
*/
|
|
@@ -47,7 +47,7 @@ declare const CreateKiteChannelCommand_base: {
|
|
|
47
47
|
* template: { // MessageTemplateConfig
|
|
48
48
|
* whatsapp: { // TemplateWithParameters
|
|
49
49
|
* name: "STRING_VALUE", // required
|
|
50
|
-
* parameters: [ // ListTemplateParameter
|
|
50
|
+
* parameters: [ // ListTemplateParameter
|
|
51
51
|
* { // TemplateParameter
|
|
52
52
|
* name: "STRING_VALUE", // required
|
|
53
53
|
* value: "STRING_VALUE", // required
|
|
@@ -189,7 +189,7 @@ declare const CreateKiteChannelCommand_base: {
|
|
|
189
189
|
* template: {
|
|
190
190
|
* whatsapp: {
|
|
191
191
|
* name: "STRING_VALUE", // required
|
|
192
|
-
* parameters: [
|
|
192
|
+
* parameters: [
|
|
193
193
|
* {
|
|
194
194
|
* name: "STRING_VALUE", // required
|
|
195
195
|
* value: "STRING_VALUE", // required
|
|
@@ -511,7 +511,7 @@ declare const DescribeEventCommand_base: {
|
|
|
511
511
|
* // template: { // MessageTemplateConfig
|
|
512
512
|
* // whatsapp: { // TemplateWithParameters
|
|
513
513
|
* // name: "STRING_VALUE", // required
|
|
514
|
-
* // parameters: [ // ListTemplateParameter
|
|
514
|
+
* // parameters: [ // ListTemplateParameter
|
|
515
515
|
* // { // TemplateParameter
|
|
516
516
|
* // name: "STRING_VALUE", // required
|
|
517
517
|
* // value: "STRING_VALUE", // required
|
|
@@ -650,7 +650,7 @@ declare const DescribeEventCommand_base: {
|
|
|
650
650
|
* // template: {
|
|
651
651
|
* // whatsapp: {
|
|
652
652
|
* // name: "STRING_VALUE", // required
|
|
653
|
-
* // parameters: [
|
|
653
|
+
* // parameters: [
|
|
654
654
|
* // {
|
|
655
655
|
* // name: "STRING_VALUE", // required
|
|
656
656
|
* // value: "STRING_VALUE", // required
|
|
@@ -787,7 +787,7 @@ declare const DescribeEventCommand_base: {
|
|
|
787
787
|
* // template: {
|
|
788
788
|
* // whatsapp: {
|
|
789
789
|
* // name: "STRING_VALUE", // required
|
|
790
|
-
* // parameters: [
|
|
790
|
+
* // parameters: [
|
|
791
791
|
* // {
|
|
792
792
|
* // name: "STRING_VALUE", // required
|
|
793
793
|
* // value: "STRING_VALUE", // required
|
|
@@ -900,7 +900,7 @@ declare const DescribeEventCommand_base: {
|
|
|
900
900
|
* // template: {
|
|
901
901
|
* // whatsapp: {
|
|
902
902
|
* // name: "STRING_VALUE", // required
|
|
903
|
-
* // parameters: [
|
|
903
|
+
* // parameters: [
|
|
904
904
|
* // {
|
|
905
905
|
* // name: "STRING_VALUE", // required
|
|
906
906
|
* // value: "STRING_VALUE", // required
|
|
@@ -995,7 +995,7 @@ declare const DescribeEventCommand_base: {
|
|
|
995
995
|
* // template: {
|
|
996
996
|
* // whatsapp: {
|
|
997
997
|
* // name: "STRING_VALUE", // required
|
|
998
|
-
* // parameters: [
|
|
998
|
+
* // parameters: [
|
|
999
999
|
* // {
|
|
1000
1000
|
* // name: "STRING_VALUE", // required
|
|
1001
1001
|
* // value: "STRING_VALUE", // required
|
|
@@ -48,7 +48,7 @@ declare const GetMessageCommand_base: {
|
|
|
48
48
|
* // template: { // MessageTemplateConfig
|
|
49
49
|
* // whatsapp: { // TemplateWithParameters
|
|
50
50
|
* // name: "STRING_VALUE", // required
|
|
51
|
-
* // parameters: [ // ListTemplateParameter
|
|
51
|
+
* // parameters: [ // ListTemplateParameter
|
|
52
52
|
* // { // TemplateParameter
|
|
53
53
|
* // name: "STRING_VALUE", // required
|
|
54
54
|
* // value: "STRING_VALUE", // required
|
|
@@ -50,7 +50,7 @@ declare const ListMessagesCommand_base: {
|
|
|
50
50
|
* // template: { // MessageTemplateConfig
|
|
51
51
|
* // whatsapp: { // TemplateWithParameters
|
|
52
52
|
* // name: "STRING_VALUE", // required
|
|
53
|
-
* // parameters: [ // ListTemplateParameter
|
|
53
|
+
* // parameters: [ // ListTemplateParameter
|
|
54
54
|
* // { // TemplateParameter
|
|
55
55
|
* // name: "STRING_VALUE", // required
|
|
56
56
|
* // value: "STRING_VALUE", // required
|
|
@@ -50,7 +50,7 @@ declare const ListPinnedMessagesCommand_base: {
|
|
|
50
50
|
* // template: { // MessageTemplateConfig
|
|
51
51
|
* // whatsapp: { // TemplateWithParameters
|
|
52
52
|
* // name: "STRING_VALUE", // required
|
|
53
|
-
* // parameters: [ // ListTemplateParameter
|
|
53
|
+
* // parameters: [ // ListTemplateParameter
|
|
54
54
|
* // { // TemplateParameter
|
|
55
55
|
* // name: "STRING_VALUE", // required
|
|
56
56
|
* // value: "STRING_VALUE", // required
|
|
@@ -45,7 +45,7 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
45
45
|
* template: { // MessageTemplateConfig
|
|
46
46
|
* whatsapp: { // TemplateWithParameters
|
|
47
47
|
* name: "STRING_VALUE", // required
|
|
48
|
-
* parameters: [ // ListTemplateParameter
|
|
48
|
+
* parameters: [ // ListTemplateParameter
|
|
49
49
|
* { // TemplateParameter
|
|
50
50
|
* name: "STRING_VALUE", // required
|
|
51
51
|
* value: "STRING_VALUE", // required
|
|
@@ -192,7 +192,7 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
192
192
|
* // template: { // MessageTemplateConfig
|
|
193
193
|
* // whatsapp: { // TemplateWithParameters
|
|
194
194
|
* // name: "STRING_VALUE", // required
|
|
195
|
-
* // parameters: [ // ListTemplateParameter
|
|
195
|
+
* // parameters: [ // ListTemplateParameter
|
|
196
196
|
* // { // TemplateParameter
|
|
197
197
|
* // name: "STRING_VALUE", // required
|
|
198
198
|
* // value: "STRING_VALUE", // required
|
|
@@ -56,7 +56,7 @@ declare const SendGiphyCommand_base: {
|
|
|
56
56
|
* // template: { // MessageTemplateConfig
|
|
57
57
|
* // whatsapp: { // TemplateWithParameters
|
|
58
58
|
* // name: "STRING_VALUE", // required
|
|
59
|
-
* // parameters: [ // ListTemplateParameter
|
|
59
|
+
* // parameters: [ // ListTemplateParameter
|
|
60
60
|
* // { // TemplateParameter
|
|
61
61
|
* // name: "STRING_VALUE", // required
|
|
62
62
|
* // value: "STRING_VALUE", // required
|
|
@@ -41,7 +41,7 @@ declare const SendMessageCommand_base: {
|
|
|
41
41
|
* template: { // MessageTemplateConfig
|
|
42
42
|
* whatsapp: { // TemplateWithParameters
|
|
43
43
|
* name: "STRING_VALUE", // required
|
|
44
|
-
* parameters: [ // ListTemplateParameter
|
|
44
|
+
* parameters: [ // ListTemplateParameter
|
|
45
45
|
* { // TemplateParameter
|
|
46
46
|
* name: "STRING_VALUE", // required
|
|
47
47
|
* value: "STRING_VALUE", // required
|
|
@@ -186,7 +186,7 @@ declare const SendMessageCommand_base: {
|
|
|
186
186
|
* // template: { // MessageTemplateConfig
|
|
187
187
|
* // whatsapp: { // TemplateWithParameters
|
|
188
188
|
* // name: "STRING_VALUE", // required
|
|
189
|
-
* // parameters: [ // ListTemplateParameter
|
|
189
|
+
* // parameters: [ // ListTemplateParameter
|
|
190
190
|
* // { // TemplateParameter
|
|
191
191
|
* // name: "STRING_VALUE", // required
|
|
192
192
|
* // value: "STRING_VALUE", // required
|
|
@@ -56,7 +56,7 @@ declare const SendSystemMessageCommand_base: {
|
|
|
56
56
|
* // template: { // MessageTemplateConfig
|
|
57
57
|
* // whatsapp: { // TemplateWithParameters
|
|
58
58
|
* // name: "STRING_VALUE", // required
|
|
59
|
-
* // parameters: [ // ListTemplateParameter
|
|
59
|
+
* // parameters: [ // ListTemplateParameter
|
|
60
60
|
* // { // TemplateParameter
|
|
61
61
|
* // name: "STRING_VALUE", // required
|
|
62
62
|
* // value: "STRING_VALUE", // required
|
|
@@ -41,7 +41,7 @@ declare const UpdateMessageCommand_base: {
|
|
|
41
41
|
* template: { // MessageTemplateConfig
|
|
42
42
|
* whatsapp: { // TemplateWithParameters
|
|
43
43
|
* name: "STRING_VALUE", // required
|
|
44
|
-
* parameters: [ // ListTemplateParameter
|
|
44
|
+
* parameters: [ // ListTemplateParameter
|
|
45
45
|
* { // TemplateParameter
|
|
46
46
|
* name: "STRING_VALUE", // required
|
|
47
47
|
* value: "STRING_VALUE", // required
|
|
@@ -187,7 +187,7 @@ declare const UpdateMessageCommand_base: {
|
|
|
187
187
|
* // template: { // MessageTemplateConfig
|
|
188
188
|
* // whatsapp: { // TemplateWithParameters
|
|
189
189
|
* // name: "STRING_VALUE", // required
|
|
190
|
-
* // parameters: [ // ListTemplateParameter
|
|
190
|
+
* // parameters: [ // ListTemplateParameter
|
|
191
191
|
* // { // TemplateParameter
|
|
192
192
|
* // name: "STRING_VALUE", // required
|
|
193
193
|
* // value: "STRING_VALUE", // required
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "./ConversationsServiceException";
|
|
2
2
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare class ValidationException extends __BaseException {
|
|
7
|
-
readonly name: "ValidationException";
|
|
8
|
-
readonly $fault: "client";
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
13
|
-
}
|
|
14
3
|
/**
|
|
15
4
|
* @public
|
|
16
5
|
*/
|
|
@@ -53,6 +42,17 @@ export declare class RateLimitExceededException extends __BaseException {
|
|
|
53
42
|
*/
|
|
54
43
|
constructor(opts: __ExceptionOptionType<RateLimitExceededException, __BaseException>);
|
|
55
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export declare class ValidationException extends __BaseException {
|
|
49
|
+
readonly name: "ValidationException";
|
|
50
|
+
readonly $fault: "client";
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
55
|
+
}
|
|
56
56
|
/**
|
|
57
57
|
* @public
|
|
58
58
|
*/
|
|
@@ -65,7 +65,7 @@ export interface TemplateParameter {
|
|
|
65
65
|
*/
|
|
66
66
|
export interface TemplateWithParameters {
|
|
67
67
|
name: string;
|
|
68
|
-
parameters
|
|
68
|
+
parameters?: (TemplateParameter)[] | undefined;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* @public
|
|
@@ -10,19 +10,26 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
|
|
|
10
10
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
11
11
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
12
12
|
requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
|
|
13
|
+
retryDecider: (error: any) => boolean;
|
|
13
14
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
15
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
16
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
17
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
17
18
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
|
-
apiVersion: string;
|
|
19
19
|
cacheMiddleware?: boolean | undefined;
|
|
20
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
21
|
+
protocolSettings?: {
|
|
22
|
+
[setting: string]: unknown;
|
|
23
|
+
defaultNamespace?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
apiVersion: string;
|
|
20
26
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
27
|
base64Decoder: import("@smithy/types").Decoder;
|
|
22
28
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
23
29
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
24
30
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
25
31
|
disableHostPrefix: boolean;
|
|
32
|
+
retryOn429?: boolean | undefined;
|
|
26
33
|
logger: import("@smithy/types").Logger;
|
|
27
34
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
28
35
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
@@ -10,20 +10,27 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
|
|
|
10
10
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
11
11
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
12
12
|
requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
|
|
13
|
+
retryDecider: (error: any) => boolean;
|
|
13
14
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
15
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
16
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
17
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
18
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
18
19
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
|
-
apiVersion: string;
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
21
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
22
|
+
protocolSettings?: {
|
|
23
|
+
[setting: string]: unknown;
|
|
24
|
+
defaultNamespace?: string | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
apiVersion: string;
|
|
21
27
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
28
|
base64Decoder: import("@smithy/types").Decoder;
|
|
23
29
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
24
30
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
31
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
26
32
|
disableHostPrefix: boolean;
|
|
33
|
+
retryOn429?: boolean | undefined;
|
|
27
34
|
logger: import("@smithy/types").Logger;
|
|
28
35
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
36
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
@@ -8,8 +8,13 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
|
|
|
8
8
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
9
9
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
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
11
|
cacheMiddleware?: boolean | undefined;
|
|
12
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
13
|
+
protocolSettings?: {
|
|
14
|
+
[setting: string]: unknown;
|
|
15
|
+
defaultNamespace?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
apiVersion: string;
|
|
13
18
|
urlParser: import("@smithy/types").UrlParser;
|
|
14
19
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
15
20
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -19,6 +24,8 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
|
|
|
19
24
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
20
25
|
disableHostPrefix: boolean;
|
|
21
26
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
27
|
+
retryOn429?: boolean | undefined;
|
|
28
|
+
retryDecider: (error: any) => boolean;
|
|
22
29
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
23
30
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
31
|
logger: import("@smithy/types").Logger;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.6",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
"react-native": {
|
|
81
81
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|