@aws-sdk/client-socialmessaging 3.669.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/LICENSE +201 -0
- package/README.md +334 -0
- package/dist-cjs/SocialMessaging.js +37 -0
- package/dist-cjs/SocialMessagingClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/AssociateWhatsAppBusinessAccountCommand.js +27 -0
- package/dist-cjs/commands/DeleteWhatsAppMessageMediaCommand.js +26 -0
- package/dist-cjs/commands/DisassociateWhatsAppBusinessAccountCommand.js +26 -0
- package/dist-cjs/commands/GetLinkedWhatsAppBusinessAccountCommand.js +26 -0
- package/dist-cjs/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +26 -0
- package/dist-cjs/commands/GetWhatsAppMessageMediaCommand.js +27 -0
- package/dist-cjs/commands/ListLinkedWhatsAppBusinessAccountsCommand.js +26 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/PostWhatsAppMessageMediaCommand.js +27 -0
- package/dist-cjs/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.js +26 -0
- package/dist-cjs/commands/SendWhatsAppMessageCommand.js +27 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/index.js +16 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/SocialMessagingServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +173 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +573 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/SocialMessaging.js +33 -0
- package/dist-es/SocialMessagingClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AssociateWhatsAppBusinessAccountCommand.js +23 -0
- package/dist-es/commands/DeleteWhatsAppMessageMediaCommand.js +22 -0
- package/dist-es/commands/DisassociateWhatsAppBusinessAccountCommand.js +22 -0
- package/dist-es/commands/GetLinkedWhatsAppBusinessAccountCommand.js +22 -0
- package/dist-es/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +22 -0
- package/dist-es/commands/GetWhatsAppMessageMediaCommand.js +23 -0
- package/dist-es/commands/ListLinkedWhatsAppBusinessAccountsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/PostWhatsAppMessageMediaCommand.js +23 -0
- package/dist-es/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.js +22 -0
- package/dist-es/commands/SendWhatsAppMessageCommand.js +23 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/SocialMessagingServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +152 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +544 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/SocialMessaging.d.ts +128 -0
- package/dist-types/SocialMessagingClient.d.ts +207 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/AssociateWhatsAppBusinessAccountCommand.d.ts +139 -0
- package/dist-types/commands/DeleteWhatsAppMessageMediaCommand.d.ts +97 -0
- package/dist-types/commands/DisassociateWhatsAppBusinessAccountCommand.d.ts +87 -0
- package/dist-types/commands/GetLinkedWhatsAppBusinessAccountCommand.d.ts +116 -0
- package/dist-types/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +103 -0
- package/dist-types/commands/GetWhatsAppMessageMediaCommand.d.ts +113 -0
- package/dist-types/commands/ListLinkedWhatsAppBusinessAccountsCommand.d.ts +106 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +93 -0
- package/dist-types/commands/PostWhatsAppMessageMediaCommand.d.ts +110 -0
- package/dist-types/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.d.ts +90 -0
- package/dist-types/commands/SendWhatsAppMessageCommand.d.ts +99 -0
- package/dist-types/commands/TagResourceCommand.d.ts +94 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +39 -0
- package/dist-types/models/SocialMessagingServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +969 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +119 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/SocialMessaging.d.ts +254 -0
- package/dist-types/ts3.4/SocialMessagingClient.d.ts +197 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/AssociateWhatsAppBusinessAccountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteWhatsAppMessageMediaCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateWhatsAppBusinessAccountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetLinkedWhatsAppBusinessAccountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWhatsAppMessageMediaCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListLinkedWhatsAppBusinessAccountsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PostWhatsAppMessageMediaCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendWhatsAppMessageCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/SocialMessagingServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +272 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +161 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +101 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DeleteWhatsAppMessageMediaInput, DeleteWhatsAppMessageMediaOutput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteWhatsAppMessageMediaCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteWhatsAppMessageMediaCommandInput extends DeleteWhatsAppMessageMediaInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteWhatsAppMessageMediaCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteWhatsAppMessageMediaCommandOutput extends DeleteWhatsAppMessageMediaOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteWhatsAppMessageMediaCommand_base: {
|
|
25
|
+
new (input: DeleteWhatsAppMessageMediaCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWhatsAppMessageMediaCommandInput, DeleteWhatsAppMessageMediaCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteWhatsAppMessageMediaCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWhatsAppMessageMediaCommandInput, DeleteWhatsAppMessageMediaCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Delete a media object from the WhatsApp service. If the object is still in an Amazon S3 bucket you should delete it from there too.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SocialMessagingClient, DeleteWhatsAppMessageMediaCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
35
|
+
* // const { SocialMessagingClient, DeleteWhatsAppMessageMediaCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
36
|
+
* const client = new SocialMessagingClient(config);
|
|
37
|
+
* const input = { // DeleteWhatsAppMessageMediaInput
|
|
38
|
+
* mediaId: "STRING_VALUE", // required
|
|
39
|
+
* originationPhoneNumberId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new DeleteWhatsAppMessageMediaCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // DeleteWhatsAppMessageMediaOutput
|
|
44
|
+
* // success: true || false,
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param DeleteWhatsAppMessageMediaCommandInput - {@link DeleteWhatsAppMessageMediaCommandInput}
|
|
50
|
+
* @returns {@link DeleteWhatsAppMessageMediaCommandOutput}
|
|
51
|
+
* @see {@link DeleteWhatsAppMessageMediaCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link DeleteWhatsAppMessageMediaCommandOutput} 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 DependencyException} (server fault)
|
|
59
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
62
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
63
|
+
* failure.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
66
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
69
|
+
* <p>The resource was not found.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
72
|
+
* <p>The request was denied due to request throttling.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
75
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link SocialMessagingServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class DeleteWhatsAppMessageMediaCommand extends DeleteWhatsAppMessageMediaCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: DeleteWhatsAppMessageMediaInput;
|
|
90
|
+
output: DeleteWhatsAppMessageMediaOutput;
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: DeleteWhatsAppMessageMediaCommandInput;
|
|
94
|
+
output: DeleteWhatsAppMessageMediaCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DisassociateWhatsAppBusinessAccountInput, DisassociateWhatsAppBusinessAccountOutput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DisassociateWhatsAppBusinessAccountCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DisassociateWhatsAppBusinessAccountCommandInput extends DisassociateWhatsAppBusinessAccountInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DisassociateWhatsAppBusinessAccountCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DisassociateWhatsAppBusinessAccountCommandOutput extends DisassociateWhatsAppBusinessAccountOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DisassociateWhatsAppBusinessAccountCommand_base: {
|
|
25
|
+
new (input: DisassociateWhatsAppBusinessAccountCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateWhatsAppBusinessAccountCommandInput, DisassociateWhatsAppBusinessAccountCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DisassociateWhatsAppBusinessAccountCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateWhatsAppBusinessAccountCommandInput, DisassociateWhatsAppBusinessAccountCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Disassociate a WhatsApp Business Account (WABA) from your Amazon Web Services account.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SocialMessagingClient, DisassociateWhatsAppBusinessAccountCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
35
|
+
* // const { SocialMessagingClient, DisassociateWhatsAppBusinessAccountCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
36
|
+
* const client = new SocialMessagingClient(config);
|
|
37
|
+
* const input = { // DisassociateWhatsAppBusinessAccountInput
|
|
38
|
+
* id: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DisassociateWhatsAppBusinessAccountCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param DisassociateWhatsAppBusinessAccountCommandInput - {@link DisassociateWhatsAppBusinessAccountCommandInput}
|
|
47
|
+
* @returns {@link DisassociateWhatsAppBusinessAccountCommandOutput}
|
|
48
|
+
* @see {@link DisassociateWhatsAppBusinessAccountCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link DisassociateWhatsAppBusinessAccountCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link DependencyException} (server fault)
|
|
53
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
56
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
59
|
+
* <p>The resource was not found.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
62
|
+
* <p>The request was denied due to request throttling.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
65
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link SocialMessagingServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class DisassociateWhatsAppBusinessAccountCommand extends DisassociateWhatsAppBusinessAccountCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: DisassociateWhatsAppBusinessAccountInput;
|
|
80
|
+
output: {};
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: DisassociateWhatsAppBusinessAccountCommandInput;
|
|
84
|
+
output: DisassociateWhatsAppBusinessAccountCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetLinkedWhatsAppBusinessAccountInput, GetLinkedWhatsAppBusinessAccountOutput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetLinkedWhatsAppBusinessAccountCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetLinkedWhatsAppBusinessAccountCommandInput extends GetLinkedWhatsAppBusinessAccountInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetLinkedWhatsAppBusinessAccountCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetLinkedWhatsAppBusinessAccountCommandOutput extends GetLinkedWhatsAppBusinessAccountOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetLinkedWhatsAppBusinessAccountCommand_base: {
|
|
25
|
+
new (input: GetLinkedWhatsAppBusinessAccountCommandInput): import("@smithy/smithy-client").CommandImpl<GetLinkedWhatsAppBusinessAccountCommandInput, GetLinkedWhatsAppBusinessAccountCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetLinkedWhatsAppBusinessAccountCommandInput): import("@smithy/smithy-client").CommandImpl<GetLinkedWhatsAppBusinessAccountCommandInput, GetLinkedWhatsAppBusinessAccountCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Get the details of your linked WhatsApp Business Account.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SocialMessagingClient, GetLinkedWhatsAppBusinessAccountCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
35
|
+
* // const { SocialMessagingClient, GetLinkedWhatsAppBusinessAccountCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
36
|
+
* const client = new SocialMessagingClient(config);
|
|
37
|
+
* const input = { // GetLinkedWhatsAppBusinessAccountInput
|
|
38
|
+
* id: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetLinkedWhatsAppBusinessAccountCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetLinkedWhatsAppBusinessAccountOutput
|
|
43
|
+
* // account: { // LinkedWhatsAppBusinessAccount
|
|
44
|
+
* // arn: "STRING_VALUE", // required
|
|
45
|
+
* // id: "STRING_VALUE", // required
|
|
46
|
+
* // wabaId: "STRING_VALUE", // required
|
|
47
|
+
* // registrationStatus: "COMPLETE" || "INCOMPLETE", // required
|
|
48
|
+
* // linkDate: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // wabaName: "STRING_VALUE", // required
|
|
50
|
+
* // eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required
|
|
51
|
+
* // { // WhatsAppBusinessAccountEventDestination
|
|
52
|
+
* // eventDestinationArn: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // ],
|
|
55
|
+
* // phoneNumbers: [ // WhatsAppPhoneNumberSummaryList // required
|
|
56
|
+
* // { // WhatsAppPhoneNumberSummary
|
|
57
|
+
* // arn: "STRING_VALUE", // required
|
|
58
|
+
* // phoneNumber: "STRING_VALUE", // required
|
|
59
|
+
* // phoneNumberId: "STRING_VALUE", // required
|
|
60
|
+
* // metaPhoneNumberId: "STRING_VALUE", // required
|
|
61
|
+
* // displayPhoneNumberName: "STRING_VALUE", // required
|
|
62
|
+
* // displayPhoneNumber: "STRING_VALUE", // required
|
|
63
|
+
* // qualityRating: "STRING_VALUE", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // ],
|
|
66
|
+
* // },
|
|
67
|
+
* // };
|
|
68
|
+
*
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @param GetLinkedWhatsAppBusinessAccountCommandInput - {@link GetLinkedWhatsAppBusinessAccountCommandInput}
|
|
72
|
+
* @returns {@link GetLinkedWhatsAppBusinessAccountCommandOutput}
|
|
73
|
+
* @see {@link GetLinkedWhatsAppBusinessAccountCommandInput} for command's `input` shape.
|
|
74
|
+
* @see {@link GetLinkedWhatsAppBusinessAccountCommandOutput} for command's `response` shape.
|
|
75
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link DependencyException} (server fault)
|
|
78
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
81
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
82
|
+
* failure.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
85
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
88
|
+
* <p>The resource was not found.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
91
|
+
* <p>The request was denied due to request throttling.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
94
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ValidationException} (client fault)
|
|
97
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link SocialMessagingServiceException}
|
|
100
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare class GetLinkedWhatsAppBusinessAccountCommand extends GetLinkedWhatsAppBusinessAccountCommand_base {
|
|
105
|
+
/** @internal type navigation helper, not in runtime. */
|
|
106
|
+
protected static __types: {
|
|
107
|
+
api: {
|
|
108
|
+
input: GetLinkedWhatsAppBusinessAccountInput;
|
|
109
|
+
output: GetLinkedWhatsAppBusinessAccountOutput;
|
|
110
|
+
};
|
|
111
|
+
sdk: {
|
|
112
|
+
input: GetLinkedWhatsAppBusinessAccountCommandInput;
|
|
113
|
+
output: GetLinkedWhatsAppBusinessAccountCommandOutput;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetLinkedWhatsAppBusinessAccountPhoneNumberInput, GetLinkedWhatsAppBusinessAccountPhoneNumberOutput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetLinkedWhatsAppBusinessAccountPhoneNumberCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput extends GetLinkedWhatsAppBusinessAccountPhoneNumberInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetLinkedWhatsAppBusinessAccountPhoneNumberCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput extends GetLinkedWhatsAppBusinessAccountPhoneNumberOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetLinkedWhatsAppBusinessAccountPhoneNumberCommand_base: {
|
|
25
|
+
new (input: GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput): import("@smithy/smithy-client").CommandImpl<GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput): import("@smithy/smithy-client").CommandImpl<GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Use your WhatsApp phone number id to get the WABA account id and phone number
|
|
31
|
+
* details.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { SocialMessagingClient, GetLinkedWhatsAppBusinessAccountPhoneNumberCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
36
|
+
* // const { SocialMessagingClient, GetLinkedWhatsAppBusinessAccountPhoneNumberCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
37
|
+
* const client = new SocialMessagingClient(config);
|
|
38
|
+
* const input = { // GetLinkedWhatsAppBusinessAccountPhoneNumberInput
|
|
39
|
+
* id: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetLinkedWhatsAppBusinessAccountPhoneNumberCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetLinkedWhatsAppBusinessAccountPhoneNumberOutput
|
|
44
|
+
* // phoneNumber: { // WhatsAppPhoneNumberDetail
|
|
45
|
+
* // arn: "STRING_VALUE", // required
|
|
46
|
+
* // phoneNumber: "STRING_VALUE", // required
|
|
47
|
+
* // phoneNumberId: "STRING_VALUE", // required
|
|
48
|
+
* // metaPhoneNumberId: "STRING_VALUE", // required
|
|
49
|
+
* // displayPhoneNumberName: "STRING_VALUE", // required
|
|
50
|
+
* // displayPhoneNumber: "STRING_VALUE", // required
|
|
51
|
+
* // qualityRating: "STRING_VALUE", // required
|
|
52
|
+
* // },
|
|
53
|
+
* // linkedWhatsAppBusinessAccountId: "STRING_VALUE",
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput - {@link GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput}
|
|
59
|
+
* @returns {@link GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput}
|
|
60
|
+
* @see {@link GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link DependencyException} (server fault)
|
|
65
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
68
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
69
|
+
* failure.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
72
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
75
|
+
* <p>The resource was not found.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
78
|
+
* <p>The request was denied due to request throttling.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
81
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ValidationException} (client fault)
|
|
84
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link SocialMessagingServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class GetLinkedWhatsAppBusinessAccountPhoneNumberCommand extends GetLinkedWhatsAppBusinessAccountPhoneNumberCommand_base {
|
|
92
|
+
/** @internal type navigation helper, not in runtime. */
|
|
93
|
+
protected static __types: {
|
|
94
|
+
api: {
|
|
95
|
+
input: GetLinkedWhatsAppBusinessAccountPhoneNumberInput;
|
|
96
|
+
output: GetLinkedWhatsAppBusinessAccountPhoneNumberOutput;
|
|
97
|
+
};
|
|
98
|
+
sdk: {
|
|
99
|
+
input: GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput;
|
|
100
|
+
output: GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetWhatsAppMessageMediaInput, GetWhatsAppMessageMediaOutput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetWhatsAppMessageMediaCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetWhatsAppMessageMediaCommandInput extends GetWhatsAppMessageMediaInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetWhatsAppMessageMediaCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetWhatsAppMessageMediaCommandOutput extends GetWhatsAppMessageMediaOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetWhatsAppMessageMediaCommand_base: {
|
|
25
|
+
new (input: GetWhatsAppMessageMediaCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppMessageMediaCommandInput, GetWhatsAppMessageMediaCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetWhatsAppMessageMediaCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppMessageMediaCommandInput, GetWhatsAppMessageMediaCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Get a media file from the WhatsApp service. On successful completion the media file is
|
|
31
|
+
* retrieved from Meta and stored in the specified Amazon S3 bucket. Use either
|
|
32
|
+
* <code>destinationS3File</code> or <code>destinationS3PresignedUrl</code> for the
|
|
33
|
+
* destination. If both are used then an <code>InvalidParameterException</code> is
|
|
34
|
+
* returned.</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { SocialMessagingClient, GetWhatsAppMessageMediaCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
39
|
+
* // const { SocialMessagingClient, GetWhatsAppMessageMediaCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
40
|
+
* const client = new SocialMessagingClient(config);
|
|
41
|
+
* const input = { // GetWhatsAppMessageMediaInput
|
|
42
|
+
* mediaId: "STRING_VALUE", // required
|
|
43
|
+
* originationPhoneNumberId: "STRING_VALUE", // required
|
|
44
|
+
* metadataOnly: true || false,
|
|
45
|
+
* destinationS3PresignedUrl: { // S3PresignedUrl
|
|
46
|
+
* url: "STRING_VALUE", // required
|
|
47
|
+
* headers: { // Headers // required
|
|
48
|
+
* "<keys>": "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* destinationS3File: { // S3File
|
|
52
|
+
* bucketName: "STRING_VALUE", // required
|
|
53
|
+
* key: "STRING_VALUE", // required
|
|
54
|
+
* },
|
|
55
|
+
* };
|
|
56
|
+
* const command = new GetWhatsAppMessageMediaCommand(input);
|
|
57
|
+
* const response = await client.send(command);
|
|
58
|
+
* // { // GetWhatsAppMessageMediaOutput
|
|
59
|
+
* // mimeType: "STRING_VALUE",
|
|
60
|
+
* // fileSize: Number("long"),
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param GetWhatsAppMessageMediaCommandInput - {@link GetWhatsAppMessageMediaCommandInput}
|
|
66
|
+
* @returns {@link GetWhatsAppMessageMediaCommandOutput}
|
|
67
|
+
* @see {@link GetWhatsAppMessageMediaCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link GetWhatsAppMessageMediaCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedByMetaException} (client fault)
|
|
72
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link DependencyException} (server fault)
|
|
75
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
78
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
79
|
+
* failure.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
82
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>The resource was not found.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
88
|
+
* <p>The request was denied due to request throttling.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
91
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link SocialMessagingServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
98
|
+
*
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
export declare class GetWhatsAppMessageMediaCommand extends GetWhatsAppMessageMediaCommand_base {
|
|
102
|
+
/** @internal type navigation helper, not in runtime. */
|
|
103
|
+
protected static __types: {
|
|
104
|
+
api: {
|
|
105
|
+
input: GetWhatsAppMessageMediaInput;
|
|
106
|
+
output: GetWhatsAppMessageMediaOutput;
|
|
107
|
+
};
|
|
108
|
+
sdk: {
|
|
109
|
+
input: GetWhatsAppMessageMediaCommandInput;
|
|
110
|
+
output: GetWhatsAppMessageMediaCommandOutput;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListLinkedWhatsAppBusinessAccountsInput, ListLinkedWhatsAppBusinessAccountsOutput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListLinkedWhatsAppBusinessAccountsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListLinkedWhatsAppBusinessAccountsCommandInput extends ListLinkedWhatsAppBusinessAccountsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListLinkedWhatsAppBusinessAccountsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListLinkedWhatsAppBusinessAccountsCommandOutput extends ListLinkedWhatsAppBusinessAccountsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListLinkedWhatsAppBusinessAccountsCommand_base: {
|
|
25
|
+
new (input: ListLinkedWhatsAppBusinessAccountsCommandInput): import("@smithy/smithy-client").CommandImpl<ListLinkedWhatsAppBusinessAccountsCommandInput, ListLinkedWhatsAppBusinessAccountsCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListLinkedWhatsAppBusinessAccountsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListLinkedWhatsAppBusinessAccountsCommandInput, ListLinkedWhatsAppBusinessAccountsCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>List all WhatsApp Business Accounts linked to your Amazon Web Services account.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SocialMessagingClient, ListLinkedWhatsAppBusinessAccountsCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
35
|
+
* // const { SocialMessagingClient, ListLinkedWhatsAppBusinessAccountsCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
36
|
+
* const client = new SocialMessagingClient(config);
|
|
37
|
+
* const input = { // ListLinkedWhatsAppBusinessAccountsInput
|
|
38
|
+
* nextToken: "STRING_VALUE",
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListLinkedWhatsAppBusinessAccountsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListLinkedWhatsAppBusinessAccountsOutput
|
|
44
|
+
* // linkedAccounts: [ // LinkedWhatsAppBusinessAccountSummaryList
|
|
45
|
+
* // { // LinkedWhatsAppBusinessAccountSummary
|
|
46
|
+
* // arn: "STRING_VALUE", // required
|
|
47
|
+
* // id: "STRING_VALUE", // required
|
|
48
|
+
* // wabaId: "STRING_VALUE", // required
|
|
49
|
+
* // registrationStatus: "COMPLETE" || "INCOMPLETE", // required
|
|
50
|
+
* // linkDate: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // wabaName: "STRING_VALUE", // required
|
|
52
|
+
* // eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required
|
|
53
|
+
* // { // WhatsAppBusinessAccountEventDestination
|
|
54
|
+
* // eventDestinationArn: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // nextToken: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param ListLinkedWhatsAppBusinessAccountsCommandInput - {@link ListLinkedWhatsAppBusinessAccountsCommandInput}
|
|
65
|
+
* @returns {@link ListLinkedWhatsAppBusinessAccountsCommandOutput}
|
|
66
|
+
* @see {@link ListLinkedWhatsAppBusinessAccountsCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link ListLinkedWhatsAppBusinessAccountsCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
71
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
72
|
+
* failure.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
75
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The resource was not found.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
81
|
+
* <p>The request was denied due to request throttling.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
84
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ValidationException} (client fault)
|
|
87
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link SocialMessagingServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class ListLinkedWhatsAppBusinessAccountsCommand extends ListLinkedWhatsAppBusinessAccountsCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: ListLinkedWhatsAppBusinessAccountsInput;
|
|
99
|
+
output: ListLinkedWhatsAppBusinessAccountsOutput;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: ListLinkedWhatsAppBusinessAccountsCommandInput;
|
|
103
|
+
output: ListLinkedWhatsAppBusinessAccountsCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|