@aws-sdk/client-socialmessaging 3.1134.0 → 3.1136.0
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/README.md +21 -0
- package/dist-cjs/index.js +229 -16
- package/dist-es/SocialMessaging.js +6 -0
- package/dist-es/commands/GetWhatsAppCallPermissionCommand.js +4 -0
- package/dist-es/commands/SendWhatsAppCallEventCommand.js +4 -0
- package/dist-es/commands/UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/enums.js +9 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/schemas/schemas_0.js +173 -16
- package/dist-types/SocialMessaging.d.ts +21 -0
- package/dist-types/SocialMessagingClient.d.ts +5 -2
- package/dist-types/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +35 -0
- package/dist-types/commands/GetWhatsAppBusinessPublicKeyCommand.d.ts +1 -1
- package/dist-types/commands/GetWhatsAppCallPermissionCommand.d.ts +115 -0
- package/dist-types/commands/PutWhatsAppBusinessPublicKeyCommand.d.ts +1 -1
- package/dist-types/commands/SendWhatsAppCallEventCommand.d.ts +101 -0
- package/dist-types/commands/UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +131 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/enums.d.ts +17 -0
- package/dist-types/models/errors.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +279 -24
- package/dist-types/schemas/schemas_0.d.ts +18 -0
- package/dist-types/ts3.4/SocialMessaging.d.ts +51 -0
- package/dist-types/ts3.4/SocialMessagingClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetWhatsAppCallPermissionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/SendWhatsAppCallEventCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +10 -0
- package/dist-types/ts3.4/models/errors.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetWhatsAppCallPermissionInput, GetWhatsAppCallPermissionOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetWhatsAppCallPermissionCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetWhatsAppCallPermissionCommandInput extends GetWhatsAppCallPermissionInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetWhatsAppCallPermissionCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetWhatsAppCallPermissionCommandOutput extends GetWhatsAppCallPermissionOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetWhatsAppCallPermissionCommand_base: {
|
|
22
|
+
new (input: GetWhatsAppCallPermissionCommandInput): import("@smithy/core/client").CommandImpl<GetWhatsAppCallPermissionCommandInput, GetWhatsAppCallPermissionCommandOutput, import("..").SocialMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetWhatsAppCallPermissionCommandInput): import("@smithy/core/client").CommandImpl<GetWhatsAppCallPermissionCommandInput, GetWhatsAppCallPermissionCommandOutput, import("..").SocialMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves the current calling permission for a WhatsApp end user, along with the calling actions the business is allowed to take with that user. Provide the destination phone number or the business-scoped user ID to identify the end user.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SocialMessagingClient, GetWhatsAppCallPermissionCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
32
|
+
* // const { SocialMessagingClient, GetWhatsAppCallPermissionCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
33
|
+
* // import type { SocialMessagingClientConfig } from "@aws-sdk/client-socialmessaging";
|
|
34
|
+
* const config = {}; // type is SocialMessagingClientConfig
|
|
35
|
+
* const client = new SocialMessagingClient(config);
|
|
36
|
+
* const input = { // GetWhatsAppCallPermissionInput
|
|
37
|
+
* originationPhoneNumberId: "STRING_VALUE", // required
|
|
38
|
+
* destinationPhoneNumber: "STRING_VALUE",
|
|
39
|
+
* endUserBsuid: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetWhatsAppCallPermissionCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetWhatsAppCallPermissionOutput
|
|
44
|
+
* // permission: { // WhatsAppCallPermission
|
|
45
|
+
* // status: "STRING_VALUE", // required
|
|
46
|
+
* // expirationTime: new Date("TIMESTAMP"),
|
|
47
|
+
* // },
|
|
48
|
+
* // actions: [ // WhatsAppCallPermissionActionList // required
|
|
49
|
+
* // { // WhatsAppCallPermissionAction
|
|
50
|
+
* // actionName: "STRING_VALUE", // required
|
|
51
|
+
* // canPerformAction: true || false, // required
|
|
52
|
+
* // limits: [ // WhatsAppCallPermissionLimitList // required
|
|
53
|
+
* // { // WhatsAppCallPermissionLimit
|
|
54
|
+
* // timePeriod: "STRING_VALUE", // required
|
|
55
|
+
* // maxAllowed: Number("int"), // required
|
|
56
|
+
* // currentUsage: Number("int"), // required
|
|
57
|
+
* // limitExpirationTime: new Date("TIMESTAMP"),
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param GetWhatsAppCallPermissionCommandInput - {@link GetWhatsAppCallPermissionCommandInput}
|
|
67
|
+
* @returns {@link GetWhatsAppCallPermissionCommandOutput}
|
|
68
|
+
* @see {@link GetWhatsAppCallPermissionCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link GetWhatsAppCallPermissionCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedByMetaException} (client fault)
|
|
73
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link DependencyException} (server fault)
|
|
76
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
79
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
80
|
+
* failure.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
83
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
86
|
+
* <p>The resource was not found.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
89
|
+
* <p>The request was denied due to request throttling.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
92
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ValidationException} (client fault)
|
|
95
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link SocialMessagingServiceException}
|
|
98
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
99
|
+
*
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export declare class GetWhatsAppCallPermissionCommand extends GetWhatsAppCallPermissionCommand_base {
|
|
104
|
+
/** @internal type navigation helper, not in runtime. */
|
|
105
|
+
protected static __types: {
|
|
106
|
+
api: {
|
|
107
|
+
input: GetWhatsAppCallPermissionInput;
|
|
108
|
+
output: GetWhatsAppCallPermissionOutput;
|
|
109
|
+
};
|
|
110
|
+
sdk: {
|
|
111
|
+
input: GetWhatsAppCallPermissionCommandInput;
|
|
112
|
+
output: GetWhatsAppCallPermissionCommandOutput;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}
|
|
@@ -24,7 +24,7 @@ declare const PutWhatsAppBusinessPublicKeyCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* Sets the business public key used to encrypt the data exchanged with the endpoint of a data exchange Flow
|
|
27
|
+
* <p>Sets the business public key used to encrypt the data exchanged with the endpoint of a data exchange Flow.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { SendWhatsAppCallEventInput, SendWhatsAppCallEventOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link SendWhatsAppCallEventCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface SendWhatsAppCallEventCommandInput extends SendWhatsAppCallEventInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link SendWhatsAppCallEventCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface SendWhatsAppCallEventCommandOutput extends SendWhatsAppCallEventOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const SendWhatsAppCallEventCommand_base: {
|
|
22
|
+
new (input: SendWhatsAppCallEventCommandInput): import("@smithy/core/client").CommandImpl<SendWhatsAppCallEventCommandInput, SendWhatsAppCallEventCommandOutput, import("..").SocialMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: SendWhatsAppCallEventCommandInput): import("@smithy/core/client").CommandImpl<SendWhatsAppCallEventCommandInput, SendWhatsAppCallEventCommandOutput, import("..").SocialMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Sends a WhatsApp calling event, such as connecting or terminating a call, for a business phone number. This operation passes the event through to Meta. To use this operation, the origination phone number must belong to a WhatsApp Business Account that is linked to your Amazon Web Services account.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SocialMessagingClient, SendWhatsAppCallEventCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
32
|
+
* // const { SocialMessagingClient, SendWhatsAppCallEventCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
33
|
+
* // import type { SocialMessagingClientConfig } from "@aws-sdk/client-socialmessaging";
|
|
34
|
+
* const config = {}; // type is SocialMessagingClientConfig
|
|
35
|
+
* const client = new SocialMessagingClient(config);
|
|
36
|
+
* const input = { // SendWhatsAppCallEventInput
|
|
37
|
+
* originationPhoneNumberId: "STRING_VALUE", // required
|
|
38
|
+
* metaApiVersion: "STRING_VALUE", // required
|
|
39
|
+
* callEvent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new SendWhatsAppCallEventCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // SendWhatsAppCallEventOutput
|
|
44
|
+
* // callId: "STRING_VALUE", // required
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param SendWhatsAppCallEventCommandInput - {@link SendWhatsAppCallEventCommandInput}
|
|
50
|
+
* @returns {@link SendWhatsAppCallEventCommandOutput}
|
|
51
|
+
* @see {@link SendWhatsAppCallEventCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link SendWhatsAppCallEventCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedByMetaException} (client fault)
|
|
56
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConflictException} (client fault)
|
|
59
|
+
* <p>Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link DependencyException} (server fault)
|
|
62
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
65
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
66
|
+
* failure.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
69
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p>The resource was not found.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
75
|
+
* <p>The request was denied due to request throttling.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
78
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link SocialMessagingServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class SendWhatsAppCallEventCommand extends SendWhatsAppCallEventCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: SendWhatsAppCallEventInput;
|
|
94
|
+
output: SendWhatsAppCallEventOutput;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: SendWhatsAppCallEventCommandInput;
|
|
98
|
+
output: SendWhatsAppCallEventCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdateLinkedWhatsAppBusinessAccountPhoneNumberInput, UpdateLinkedWhatsAppBusinessAccountPhoneNumberOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput extends UpdateLinkedWhatsAppBusinessAccountPhoneNumberInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput extends UpdateLinkedWhatsAppBusinessAccountPhoneNumberOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand_base: {
|
|
22
|
+
new (input: UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput): import("@smithy/core/client").CommandImpl<UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput, import("..").SocialMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput): import("@smithy/core/client").CommandImpl<UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput, import("..").SocialMessagingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Updates the calling settings for a linked WhatsApp business phone number, such as whether calling is enabled and the hours during which the business accepts calls.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SocialMessagingClient, UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
32
|
+
* // const { SocialMessagingClient, UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
33
|
+
* // import type { SocialMessagingClientConfig } from "@aws-sdk/client-socialmessaging";
|
|
34
|
+
* const config = {}; // type is SocialMessagingClientConfig
|
|
35
|
+
* const client = new SocialMessagingClient(config);
|
|
36
|
+
* const input = { // UpdateLinkedWhatsAppBusinessAccountPhoneNumberInput
|
|
37
|
+
* id: "STRING_VALUE", // required
|
|
38
|
+
* callSettings: { // WhatsAppCallSettings
|
|
39
|
+
* callEnabled: true || false, // required
|
|
40
|
+
* callHours: { // WhatsAppCallHours
|
|
41
|
+
* enabled: true || false, // required
|
|
42
|
+
* timezone: "STRING_VALUE", // required
|
|
43
|
+
* weeklyOperatingHours: [ // WhatsAppWeeklyOperatingHoursList // required
|
|
44
|
+
* { // WhatsAppWeeklyOperatingHoursEntry
|
|
45
|
+
* dayOfWeek: "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
46
|
+
* openTime: { // WhatsAppTimeOfDay
|
|
47
|
+
* hours: Number("int"), // required
|
|
48
|
+
* minutes: Number("int"), // required
|
|
49
|
+
* },
|
|
50
|
+
* closeTime: {
|
|
51
|
+
* hours: Number("int"), // required
|
|
52
|
+
* minutes: Number("int"), // required
|
|
53
|
+
* },
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* holidaySchedule: [ // WhatsAppHolidayScheduleList
|
|
57
|
+
* { // WhatsAppHolidayScheduleEntry
|
|
58
|
+
* date: "STRING_VALUE", // required
|
|
59
|
+
* startTime: {
|
|
60
|
+
* hours: Number("int"), // required
|
|
61
|
+
* minutes: Number("int"), // required
|
|
62
|
+
* },
|
|
63
|
+
* endTime: {
|
|
64
|
+
* hours: Number("int"), // required
|
|
65
|
+
* minutes: Number("int"), // required
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
69
|
+
* },
|
|
70
|
+
* callIconVisibility: "STRING_VALUE",
|
|
71
|
+
* callbackPermissionStatus: "STRING_VALUE",
|
|
72
|
+
* },
|
|
73
|
+
* };
|
|
74
|
+
* const command = new UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand(input);
|
|
75
|
+
* const response = await client.send(command);
|
|
76
|
+
* // { // UpdateLinkedWhatsAppBusinessAccountPhoneNumberOutput
|
|
77
|
+
* // phoneNumberId: "STRING_VALUE", // required
|
|
78
|
+
* // };
|
|
79
|
+
*
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @param UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput - {@link UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput}
|
|
83
|
+
* @returns {@link UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput}
|
|
84
|
+
* @see {@link UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput} for command's `input` shape.
|
|
85
|
+
* @see {@link UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput} for command's `response` shape.
|
|
86
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link AccessDeniedByMetaException} (client fault)
|
|
89
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link DependencyException} (server fault)
|
|
92
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
95
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
96
|
+
* failure.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
99
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
102
|
+
* <p>The resource was not found.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
105
|
+
* <p>The request was denied due to request throttling.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
108
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link ValidationException} (client fault)
|
|
111
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link SocialMessagingServiceException}
|
|
114
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
export declare class UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand extends UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand_base {
|
|
120
|
+
/** @internal type navigation helper, not in runtime. */
|
|
121
|
+
protected static __types: {
|
|
122
|
+
api: {
|
|
123
|
+
input: UpdateLinkedWhatsAppBusinessAccountPhoneNumberInput;
|
|
124
|
+
output: UpdateLinkedWhatsAppBusinessAccountPhoneNumberOutput;
|
|
125
|
+
};
|
|
126
|
+
sdk: {
|
|
127
|
+
input: UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput;
|
|
128
|
+
output: UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
}
|
|
@@ -12,6 +12,7 @@ export * from "./DisassociateWhatsAppBusinessAccountCommand";
|
|
|
12
12
|
export * from "./GetLinkedWhatsAppBusinessAccountCommand";
|
|
13
13
|
export * from "./GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
|
|
14
14
|
export * from "./GetWhatsAppBusinessPublicKeyCommand";
|
|
15
|
+
export * from "./GetWhatsAppCallPermissionCommand";
|
|
15
16
|
export * from "./GetWhatsAppFlowCommand";
|
|
16
17
|
export * from "./GetWhatsAppFlowPreviewCommand";
|
|
17
18
|
export * from "./GetWhatsAppMessageMediaCommand";
|
|
@@ -26,10 +27,12 @@ export * from "./PostWhatsAppMessageMediaCommand";
|
|
|
26
27
|
export * from "./PublishWhatsAppFlowCommand";
|
|
27
28
|
export * from "./PutWhatsAppBusinessAccountEventDestinationsCommand";
|
|
28
29
|
export * from "./PutWhatsAppBusinessPublicKeyCommand";
|
|
30
|
+
export * from "./SendWhatsAppCallEventCommand";
|
|
29
31
|
export * from "./SendWhatsAppConversionEventCommand";
|
|
30
32
|
export * from "./SendWhatsAppMessageCommand";
|
|
31
33
|
export * from "./TagResourceCommand";
|
|
32
34
|
export * from "./UntagResourceCommand";
|
|
35
|
+
export * from "./UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand";
|
|
33
36
|
export * from "./UpdateWhatsAppFlowAssetsCommand";
|
|
34
37
|
export * from "./UpdateWhatsAppFlowCommand";
|
|
35
38
|
export * from "./UpdateWhatsAppMessageTemplateCommand";
|
|
@@ -29,3 +29,20 @@ export declare const MetaFlowCategory: {
|
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
31
|
export type MetaFlowCategory = (typeof MetaFlowCategory)[keyof typeof MetaFlowCategory];
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
* @enum
|
|
35
|
+
*/
|
|
36
|
+
export declare const WhatsAppDayOfWeek: {
|
|
37
|
+
readonly FRIDAY: "FRIDAY";
|
|
38
|
+
readonly MONDAY: "MONDAY";
|
|
39
|
+
readonly SATURDAY: "SATURDAY";
|
|
40
|
+
readonly SUNDAY: "SUNDAY";
|
|
41
|
+
readonly THURSDAY: "THURSDAY";
|
|
42
|
+
readonly TUESDAY: "TUESDAY";
|
|
43
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export type WhatsAppDayOfWeek = (typeof WhatsAppDayOfWeek)[keyof typeof WhatsAppDayOfWeek];
|
|
@@ -86,6 +86,18 @@ export declare class ValidationException extends __BaseException {
|
|
|
86
86
|
*/
|
|
87
87
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* <p>Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.</p>
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare class ConflictException extends __BaseException {
|
|
94
|
+
readonly name: "ConflictException";
|
|
95
|
+
readonly $fault: "client";
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
100
|
+
}
|
|
89
101
|
/**
|
|
90
102
|
* <p>The request processing has failed because of an unknown error, exception, or
|
|
91
103
|
* failure.</p>
|