@wildix/xbees-kite-client 1.0.14 → 1.0.17
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/Kite.js +20 -0
- package/dist-cjs/KiteClient.js +4 -5
- package/dist-cjs/commands/CreateOrUpdateWidgetPreviewCommand.js +21 -0
- package/dist-cjs/commands/GetSmsNumberConfigurationCommand.js +21 -0
- package/dist-cjs/commands/GetWhatsAppNumberConfigurationCommand.js +21 -0
- package/dist-cjs/commands/ListSmsConfigurationsCommand.js +21 -0
- package/dist-cjs/commands/ListSmsNumbersCommand.js +21 -0
- package/dist-cjs/commands/ListWhatsAppConfigurationsCommand.js +21 -0
- package/dist-cjs/commands/ListWhatsAppNumbersCommand.js +21 -0
- package/dist-cjs/commands/ListWhatsAppTemplatesCommand.js +21 -0
- package/dist-cjs/commands/PutSmsNumberConfigurationCommand.js +21 -0
- package/dist-cjs/commands/PutWhatsAppNumberConfigurationCommand.js +21 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +113 -22
- package/dist-cjs/protocols/Aws_restJson1.js +380 -74
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeExtensions.js +2 -10
- package/dist-es/Kite.js +20 -0
- package/dist-es/KiteClient.js +4 -5
- package/dist-es/commands/CreateOrUpdateWidgetPreviewCommand.js +17 -0
- package/dist-es/commands/GetSmsNumberConfigurationCommand.js +17 -0
- package/dist-es/commands/GetWhatsAppNumberConfigurationCommand.js +17 -0
- package/dist-es/commands/ListSmsConfigurationsCommand.js +17 -0
- package/dist-es/commands/ListSmsNumbersCommand.js +17 -0
- package/dist-es/commands/ListWhatsAppConfigurationsCommand.js +17 -0
- package/dist-es/commands/ListWhatsAppNumbersCommand.js +17 -0
- package/dist-es/commands/ListWhatsAppTemplatesCommand.js +17 -0
- package/dist-es/commands/PutSmsNumberConfigurationCommand.js +17 -0
- package/dist-es/commands/PutWhatsAppNumberConfigurationCommand.js +17 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +105 -15
- package/dist-es/protocols/Aws_restJson1.js +334 -48
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +5 -4
- package/dist-es/runtimeExtensions.js +2 -10
- package/dist-types/Kite.d.ts +74 -0
- package/dist-types/KiteClient.d.ts +12 -2
- package/dist-types/commands/CancelCalendarEventCommand.d.ts +17 -0
- package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +414 -0
- package/dist-types/commands/CreateWidgetCommand.d.ts +118 -0
- package/dist-types/commands/DeleteWidgetCommand.d.ts +14 -0
- package/dist-types/commands/GetCalendarSlotsCommand.d.ts +14 -0
- package/dist-types/commands/GetConfigCommand.d.ts +14 -0
- package/dist-types/commands/GetSmsNumberConfigurationCommand.d.ts +178 -0
- package/dist-types/commands/GetWhatsAppNumberConfigurationCommand.d.ts +178 -0
- package/dist-types/commands/GetWidgetCommand.d.ts +66 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +14 -0
- package/dist-types/commands/ListServicesCommand.d.ts +14 -0
- package/dist-types/commands/ListSmsConfigurationsCommand.d.ts +179 -0
- package/dist-types/commands/ListSmsNumbersCommand.d.ts +82 -0
- package/dist-types/commands/ListWhatsAppConfigurationsCommand.d.ts +179 -0
- package/dist-types/commands/ListWhatsAppNumbersCommand.d.ts +82 -0
- package/dist-types/commands/ListWhatsAppTemplatesCommand.d.ts +118 -0
- package/dist-types/commands/ListWidgetsCommand.d.ts +66 -0
- package/dist-types/commands/PutSmsNumberConfigurationCommand.d.ts +270 -0
- package/dist-types/commands/PutWhatsAppNumberConfigurationCommand.d.ts +270 -0
- package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +17 -0
- package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +17 -0
- package/dist-types/commands/UpdateWidgetCommand.d.ts +118 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +900 -154
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/dist-types/runtimeConfig.d.ts +2 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -1
- package/package.json +37 -33
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListSmsConfigurationsInput, ListSmsConfigurationsOutput } 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 ListSmsConfigurationsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListSmsConfigurationsCommandInput extends ListSmsConfigurationsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListSmsConfigurationsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListSmsConfigurationsCommandOutput extends ListSmsConfigurationsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListSmsConfigurationsCommand_base: {
|
|
25
|
+
new (input: ListSmsConfigurationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSmsConfigurationsCommandInput, ListSmsConfigurationsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListSmsConfigurationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListSmsConfigurationsCommandInput, ListSmsConfigurationsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { KiteClient, ListSmsConfigurationsCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListSmsConfigurationsCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // ListSmsConfigurationsInput
|
|
39
|
+
* companyId: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListSmsConfigurationsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListSmsConfigurationsOutput
|
|
44
|
+
* // configurations: [ // SmsConfigsList // required
|
|
45
|
+
* // { // SmsConfig
|
|
46
|
+
* // serviceUri: "STRING_VALUE", // required
|
|
47
|
+
* // routes: [ // SmsConfigRoutesList
|
|
48
|
+
* // { // SmsConfigRoute
|
|
49
|
+
* // id: "STRING_VALUE", // required
|
|
50
|
+
* // rules: [ // RouteRulesList // required
|
|
51
|
+
* // { // RouteRule Union: only one key present
|
|
52
|
+
* // timeFrame: { // RouteTimeFrameRule
|
|
53
|
+
* // timeZone: "STRING_VALUE", // required
|
|
54
|
+
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
55
|
+
* // startMinute: Number("int"), // required
|
|
56
|
+
* // endMinute: Number("int"), // required
|
|
57
|
+
* // },
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // target: { // RouteTarget Union: only one key present
|
|
61
|
+
* // service: { // RouteServiceTarget
|
|
62
|
+
* // id: Number("int"), // required
|
|
63
|
+
* // uri: "STRING_VALUE", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // agent: { // RouteAgentTarget
|
|
66
|
+
* // email: "STRING_VALUE", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // bot: { // RouteBotTarget
|
|
69
|
+
* // id: "STRING_VALUE", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // actions: [ // RouteActions
|
|
73
|
+
* // { // RouteAction
|
|
74
|
+
* // id: "STRING_VALUE", // required
|
|
75
|
+
* // conditions: [ // RouteActionConditions
|
|
76
|
+
* // { // RouteActionCondition Union: only one key present
|
|
77
|
+
* // replyTimeout: { // RouteReplyTimeoutCondition
|
|
78
|
+
* // timeout: Number("int"), // required
|
|
79
|
+
* // },
|
|
80
|
+
* // readTimeout: { // RouteReadTimeoutCondition
|
|
81
|
+
* // timeout: Number("int"), // required
|
|
82
|
+
* // },
|
|
83
|
+
* // },
|
|
84
|
+
* // ],
|
|
85
|
+
* // task: { // RouteActionTask Union: only one key present
|
|
86
|
+
* // sendMessage: { // RouteSendMessageTask
|
|
87
|
+
* // botId: "STRING_VALUE", // required
|
|
88
|
+
* // text: "STRING_VALUE", // required
|
|
89
|
+
* // },
|
|
90
|
+
* // addMembers: { // RouteAddMembersTask
|
|
91
|
+
* // emails: [ // RouteAddMembersUsersList // required
|
|
92
|
+
* // "STRING_VALUE",
|
|
93
|
+
* // ],
|
|
94
|
+
* // },
|
|
95
|
+
* // },
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
98
|
+
* // },
|
|
99
|
+
* // ],
|
|
100
|
+
* // target: {// Union: only one key present
|
|
101
|
+
* // service: {
|
|
102
|
+
* // id: Number("int"), // required
|
|
103
|
+
* // uri: "STRING_VALUE", // required
|
|
104
|
+
* // },
|
|
105
|
+
* // agent: {
|
|
106
|
+
* // email: "STRING_VALUE", // required
|
|
107
|
+
* // },
|
|
108
|
+
* // bot: {
|
|
109
|
+
* // id: "STRING_VALUE", // required
|
|
110
|
+
* // },
|
|
111
|
+
* // },
|
|
112
|
+
* // actions: [
|
|
113
|
+
* // {
|
|
114
|
+
* // id: "STRING_VALUE", // required
|
|
115
|
+
* // conditions: [
|
|
116
|
+
* // {// Union: only one key present
|
|
117
|
+
* // replyTimeout: {
|
|
118
|
+
* // timeout: Number("int"), // required
|
|
119
|
+
* // },
|
|
120
|
+
* // readTimeout: {
|
|
121
|
+
* // timeout: Number("int"), // required
|
|
122
|
+
* // },
|
|
123
|
+
* // },
|
|
124
|
+
* // ],
|
|
125
|
+
* // task: {// Union: only one key present
|
|
126
|
+
* // sendMessage: {
|
|
127
|
+
* // botId: "STRING_VALUE", // required
|
|
128
|
+
* // text: "STRING_VALUE", // required
|
|
129
|
+
* // },
|
|
130
|
+
* // addMembers: {
|
|
131
|
+
* // emails: [ // required
|
|
132
|
+
* // "STRING_VALUE",
|
|
133
|
+
* // ],
|
|
134
|
+
* // },
|
|
135
|
+
* // },
|
|
136
|
+
* // },
|
|
137
|
+
* // ],
|
|
138
|
+
* // companyId: "STRING_VALUE", // required
|
|
139
|
+
* // serviceNumber: "STRING_VALUE", // required
|
|
140
|
+
* // createdAt: "STRING_VALUE", // required
|
|
141
|
+
* // updatedAt: "STRING_VALUE",
|
|
142
|
+
* // },
|
|
143
|
+
* // ],
|
|
144
|
+
* // };
|
|
145
|
+
*
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* @param ListSmsConfigurationsCommandInput - {@link ListSmsConfigurationsCommandInput}
|
|
149
|
+
* @returns {@link ListSmsConfigurationsCommandOutput}
|
|
150
|
+
* @see {@link ListSmsConfigurationsCommandInput} for command's `input` shape.
|
|
151
|
+
* @see {@link ListSmsConfigurationsCommandOutput} for command's `response` shape.
|
|
152
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link ValidationException} (client fault)
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link NotFoundException} (client fault)
|
|
157
|
+
*
|
|
158
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
159
|
+
*
|
|
160
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
161
|
+
*
|
|
162
|
+
* @throws {@link KiteServiceException}
|
|
163
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
164
|
+
*
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
export declare class ListSmsConfigurationsCommand extends ListSmsConfigurationsCommand_base {
|
|
168
|
+
/** @internal type navigation helper, not in runtime. */
|
|
169
|
+
protected static __types: {
|
|
170
|
+
api: {
|
|
171
|
+
input: ListSmsConfigurationsInput;
|
|
172
|
+
output: ListSmsConfigurationsOutput;
|
|
173
|
+
};
|
|
174
|
+
sdk: {
|
|
175
|
+
input: ListSmsConfigurationsCommandInput;
|
|
176
|
+
output: ListSmsConfigurationsCommandOutput;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListSmsNumbersInput, ListSmsNumbersOutput } 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 ListSmsNumbersCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListSmsNumbersCommandInput extends ListSmsNumbersInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListSmsNumbersCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListSmsNumbersCommandOutput extends ListSmsNumbersOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListSmsNumbersCommand_base: {
|
|
25
|
+
new (input: ListSmsNumbersCommandInput): import("@smithy/smithy-client").CommandImpl<ListSmsNumbersCommandInput, ListSmsNumbersCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListSmsNumbersCommandInput]): import("@smithy/smithy-client").CommandImpl<ListSmsNumbersCommandInput, ListSmsNumbersCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { KiteClient, ListSmsNumbersCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListSmsNumbersCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // ListSmsNumbersInput
|
|
39
|
+
* companyId: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListSmsNumbersCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListSmsNumbersOutput
|
|
44
|
+
* // numbers: [ // SmsServiceNumbersList // required
|
|
45
|
+
* // "STRING_VALUE",
|
|
46
|
+
* // ],
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param ListSmsNumbersCommandInput - {@link ListSmsNumbersCommandInput}
|
|
52
|
+
* @returns {@link ListSmsNumbersCommandOutput}
|
|
53
|
+
* @see {@link ListSmsNumbersCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link ListSmsNumbersCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ValidationException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link NotFoundException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link KiteServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
export declare class ListSmsNumbersCommand extends ListSmsNumbersCommand_base {
|
|
71
|
+
/** @internal type navigation helper, not in runtime. */
|
|
72
|
+
protected static __types: {
|
|
73
|
+
api: {
|
|
74
|
+
input: ListSmsNumbersInput;
|
|
75
|
+
output: ListSmsNumbersOutput;
|
|
76
|
+
};
|
|
77
|
+
sdk: {
|
|
78
|
+
input: ListSmsNumbersCommandInput;
|
|
79
|
+
output: ListSmsNumbersCommandOutput;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListWhatsAppConfigurationsInput, ListWhatsAppConfigurationsOutput } 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 ListWhatsAppConfigurationsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListWhatsAppConfigurationsCommandInput extends ListWhatsAppConfigurationsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListWhatsAppConfigurationsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListWhatsAppConfigurationsCommandOutput extends ListWhatsAppConfigurationsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListWhatsAppConfigurationsCommand_base: {
|
|
25
|
+
new (input: ListWhatsAppConfigurationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListWhatsAppConfigurationsCommandInput, ListWhatsAppConfigurationsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListWhatsAppConfigurationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListWhatsAppConfigurationsCommandInput, ListWhatsAppConfigurationsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { KiteClient, ListWhatsAppConfigurationsCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListWhatsAppConfigurationsCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // ListWhatsAppConfigurationsInput
|
|
39
|
+
* companyId: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListWhatsAppConfigurationsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListWhatsAppConfigurationsOutput
|
|
44
|
+
* // configurations: [ // WhatsAppConfigsList // required
|
|
45
|
+
* // { // WhatsAppConfig
|
|
46
|
+
* // serviceUri: "STRING_VALUE", // required
|
|
47
|
+
* // routes: [ // WhatsAppConfigRoutesList
|
|
48
|
+
* // { // WhatsAppConfigRoute
|
|
49
|
+
* // id: "STRING_VALUE", // required
|
|
50
|
+
* // rules: [ // RouteRulesList // required
|
|
51
|
+
* // { // RouteRule Union: only one key present
|
|
52
|
+
* // timeFrame: { // RouteTimeFrameRule
|
|
53
|
+
* // timeZone: "STRING_VALUE", // required
|
|
54
|
+
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
55
|
+
* // startMinute: Number("int"), // required
|
|
56
|
+
* // endMinute: Number("int"), // required
|
|
57
|
+
* // },
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // target: { // RouteTarget Union: only one key present
|
|
61
|
+
* // service: { // RouteServiceTarget
|
|
62
|
+
* // id: Number("int"), // required
|
|
63
|
+
* // uri: "STRING_VALUE", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // agent: { // RouteAgentTarget
|
|
66
|
+
* // email: "STRING_VALUE", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // bot: { // RouteBotTarget
|
|
69
|
+
* // id: "STRING_VALUE", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // actions: [ // RouteActions
|
|
73
|
+
* // { // RouteAction
|
|
74
|
+
* // id: "STRING_VALUE", // required
|
|
75
|
+
* // conditions: [ // RouteActionConditions
|
|
76
|
+
* // { // RouteActionCondition Union: only one key present
|
|
77
|
+
* // replyTimeout: { // RouteReplyTimeoutCondition
|
|
78
|
+
* // timeout: Number("int"), // required
|
|
79
|
+
* // },
|
|
80
|
+
* // readTimeout: { // RouteReadTimeoutCondition
|
|
81
|
+
* // timeout: Number("int"), // required
|
|
82
|
+
* // },
|
|
83
|
+
* // },
|
|
84
|
+
* // ],
|
|
85
|
+
* // task: { // RouteActionTask Union: only one key present
|
|
86
|
+
* // sendMessage: { // RouteSendMessageTask
|
|
87
|
+
* // botId: "STRING_VALUE", // required
|
|
88
|
+
* // text: "STRING_VALUE", // required
|
|
89
|
+
* // },
|
|
90
|
+
* // addMembers: { // RouteAddMembersTask
|
|
91
|
+
* // emails: [ // RouteAddMembersUsersList // required
|
|
92
|
+
* // "STRING_VALUE",
|
|
93
|
+
* // ],
|
|
94
|
+
* // },
|
|
95
|
+
* // },
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
98
|
+
* // },
|
|
99
|
+
* // ],
|
|
100
|
+
* // target: {// Union: only one key present
|
|
101
|
+
* // service: {
|
|
102
|
+
* // id: Number("int"), // required
|
|
103
|
+
* // uri: "STRING_VALUE", // required
|
|
104
|
+
* // },
|
|
105
|
+
* // agent: {
|
|
106
|
+
* // email: "STRING_VALUE", // required
|
|
107
|
+
* // },
|
|
108
|
+
* // bot: {
|
|
109
|
+
* // id: "STRING_VALUE", // required
|
|
110
|
+
* // },
|
|
111
|
+
* // },
|
|
112
|
+
* // actions: [
|
|
113
|
+
* // {
|
|
114
|
+
* // id: "STRING_VALUE", // required
|
|
115
|
+
* // conditions: [
|
|
116
|
+
* // {// Union: only one key present
|
|
117
|
+
* // replyTimeout: {
|
|
118
|
+
* // timeout: Number("int"), // required
|
|
119
|
+
* // },
|
|
120
|
+
* // readTimeout: {
|
|
121
|
+
* // timeout: Number("int"), // required
|
|
122
|
+
* // },
|
|
123
|
+
* // },
|
|
124
|
+
* // ],
|
|
125
|
+
* // task: {// Union: only one key present
|
|
126
|
+
* // sendMessage: {
|
|
127
|
+
* // botId: "STRING_VALUE", // required
|
|
128
|
+
* // text: "STRING_VALUE", // required
|
|
129
|
+
* // },
|
|
130
|
+
* // addMembers: {
|
|
131
|
+
* // emails: [ // required
|
|
132
|
+
* // "STRING_VALUE",
|
|
133
|
+
* // ],
|
|
134
|
+
* // },
|
|
135
|
+
* // },
|
|
136
|
+
* // },
|
|
137
|
+
* // ],
|
|
138
|
+
* // companyId: "STRING_VALUE", // required
|
|
139
|
+
* // serviceNumber: "STRING_VALUE", // required
|
|
140
|
+
* // createdAt: "STRING_VALUE", // required
|
|
141
|
+
* // updatedAt: "STRING_VALUE",
|
|
142
|
+
* // },
|
|
143
|
+
* // ],
|
|
144
|
+
* // };
|
|
145
|
+
*
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* @param ListWhatsAppConfigurationsCommandInput - {@link ListWhatsAppConfigurationsCommandInput}
|
|
149
|
+
* @returns {@link ListWhatsAppConfigurationsCommandOutput}
|
|
150
|
+
* @see {@link ListWhatsAppConfigurationsCommandInput} for command's `input` shape.
|
|
151
|
+
* @see {@link ListWhatsAppConfigurationsCommandOutput} for command's `response` shape.
|
|
152
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link ValidationException} (client fault)
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link NotFoundException} (client fault)
|
|
157
|
+
*
|
|
158
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
159
|
+
*
|
|
160
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
161
|
+
*
|
|
162
|
+
* @throws {@link KiteServiceException}
|
|
163
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
164
|
+
*
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
export declare class ListWhatsAppConfigurationsCommand extends ListWhatsAppConfigurationsCommand_base {
|
|
168
|
+
/** @internal type navigation helper, not in runtime. */
|
|
169
|
+
protected static __types: {
|
|
170
|
+
api: {
|
|
171
|
+
input: ListWhatsAppConfigurationsInput;
|
|
172
|
+
output: ListWhatsAppConfigurationsOutput;
|
|
173
|
+
};
|
|
174
|
+
sdk: {
|
|
175
|
+
input: ListWhatsAppConfigurationsCommandInput;
|
|
176
|
+
output: ListWhatsAppConfigurationsCommandOutput;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListWhatsAppNumbersInput, ListWhatsAppNumbersOutput } 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 ListWhatsAppNumbersCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListWhatsAppNumbersCommandInput extends ListWhatsAppNumbersInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListWhatsAppNumbersCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListWhatsAppNumbersCommandOutput extends ListWhatsAppNumbersOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListWhatsAppNumbersCommand_base: {
|
|
25
|
+
new (input: ListWhatsAppNumbersCommandInput): import("@smithy/smithy-client").CommandImpl<ListWhatsAppNumbersCommandInput, ListWhatsAppNumbersCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListWhatsAppNumbersCommandInput]): import("@smithy/smithy-client").CommandImpl<ListWhatsAppNumbersCommandInput, ListWhatsAppNumbersCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { KiteClient, ListWhatsAppNumbersCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListWhatsAppNumbersCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // ListWhatsAppNumbersInput
|
|
39
|
+
* companyId: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListWhatsAppNumbersCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListWhatsAppNumbersOutput
|
|
44
|
+
* // numbers: [ // WhatsAppServiceNumbersList // required
|
|
45
|
+
* // "STRING_VALUE",
|
|
46
|
+
* // ],
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param ListWhatsAppNumbersCommandInput - {@link ListWhatsAppNumbersCommandInput}
|
|
52
|
+
* @returns {@link ListWhatsAppNumbersCommandOutput}
|
|
53
|
+
* @see {@link ListWhatsAppNumbersCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link ListWhatsAppNumbersCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ValidationException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link NotFoundException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link KiteServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
export declare class ListWhatsAppNumbersCommand extends ListWhatsAppNumbersCommand_base {
|
|
71
|
+
/** @internal type navigation helper, not in runtime. */
|
|
72
|
+
protected static __types: {
|
|
73
|
+
api: {
|
|
74
|
+
input: ListWhatsAppNumbersInput;
|
|
75
|
+
output: ListWhatsAppNumbersOutput;
|
|
76
|
+
};
|
|
77
|
+
sdk: {
|
|
78
|
+
input: ListWhatsAppNumbersCommandInput;
|
|
79
|
+
output: ListWhatsAppNumbersCommandOutput;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListWhatsAppTemplatesInput, ListWhatsAppTemplatesOutput } 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 ListWhatsAppTemplatesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListWhatsAppTemplatesCommandInput extends ListWhatsAppTemplatesInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListWhatsAppTemplatesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListWhatsAppTemplatesCommandOutput extends ListWhatsAppTemplatesOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListWhatsAppTemplatesCommand_base: {
|
|
25
|
+
new (input: ListWhatsAppTemplatesCommandInput): import("@smithy/smithy-client").CommandImpl<ListWhatsAppTemplatesCommandInput, ListWhatsAppTemplatesCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListWhatsAppTemplatesCommandInput): import("@smithy/smithy-client").CommandImpl<ListWhatsAppTemplatesCommandInput, ListWhatsAppTemplatesCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { KiteClient, ListWhatsAppTemplatesCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListWhatsAppTemplatesCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // ListWhatsAppTemplatesInput
|
|
39
|
+
* companyId: "STRING_VALUE",
|
|
40
|
+
* serviceNumber: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListWhatsAppTemplatesCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListWhatsAppTemplatesOutput
|
|
45
|
+
* // templates: [ // TemplateList // required
|
|
46
|
+
* // { // Template
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // parameterFormat: "NAMED", // required
|
|
49
|
+
* // components: [ // ComponentList // required
|
|
50
|
+
* // { // Component
|
|
51
|
+
* // type: "HEADER" || "BODY" || "FOOTER" || "BUTTONS", // required
|
|
52
|
+
* // format: "TEXT" || "IMAGE", // required
|
|
53
|
+
* // text: "STRING_VALUE",
|
|
54
|
+
* // example: { // ComponentExample
|
|
55
|
+
* // headerHandle: [ // StringList
|
|
56
|
+
* // "STRING_VALUE",
|
|
57
|
+
* // ],
|
|
58
|
+
* // bodyTextNamedParams: [ // BodyTextNamedParamList
|
|
59
|
+
* // { // BodyTextNamedParam
|
|
60
|
+
* // paramName: "STRING_VALUE", // required
|
|
61
|
+
* // example: "STRING_VALUE", // required
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // },
|
|
65
|
+
* // buttons: [ // ButtonList
|
|
66
|
+
* // { // Button
|
|
67
|
+
* // type: "QUICK_REPLY" || "URL" || "PHONE_NUMBER" || "OTP" || "MPM" || "CATALOG" || "FLOW" || "VOICE_CALL" || "APP", // required
|
|
68
|
+
* // text: "STRING_VALUE", // required
|
|
69
|
+
* // flowId: Number("long"),
|
|
70
|
+
* // flowAction: "STRING_VALUE",
|
|
71
|
+
* // navigateScreen: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // language: "STRING_VALUE", // required
|
|
77
|
+
* // status: "APPROVED" || "PAUSED" || "REJECTED", // required
|
|
78
|
+
* // category: "MARKETING" || "UTILITY" || "AUTHENTICATION", // required
|
|
79
|
+
* // subCategory: "STRING_VALUE",
|
|
80
|
+
* // id: "STRING_VALUE", // required
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // };
|
|
84
|
+
*
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* @param ListWhatsAppTemplatesCommandInput - {@link ListWhatsAppTemplatesCommandInput}
|
|
88
|
+
* @returns {@link ListWhatsAppTemplatesCommandOutput}
|
|
89
|
+
* @see {@link ListWhatsAppTemplatesCommandInput} for command's `input` shape.
|
|
90
|
+
* @see {@link ListWhatsAppTemplatesCommandOutput} for command's `response` shape.
|
|
91
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link NotFoundException} (client fault)
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link KiteServiceException}
|
|
102
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
103
|
+
*
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
export declare class ListWhatsAppTemplatesCommand extends ListWhatsAppTemplatesCommand_base {
|
|
107
|
+
/** @internal type navigation helper, not in runtime. */
|
|
108
|
+
protected static __types: {
|
|
109
|
+
api: {
|
|
110
|
+
input: ListWhatsAppTemplatesInput;
|
|
111
|
+
output: ListWhatsAppTemplatesOutput;
|
|
112
|
+
};
|
|
113
|
+
sdk: {
|
|
114
|
+
input: ListWhatsAppTemplatesCommandInput;
|
|
115
|
+
output: ListWhatsAppTemplatesCommandOutput;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}
|