@aws-sdk/client-socialmessaging 3.848.0 → 3.854.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 +64 -0
- package/dist-cjs/SocialMessaging.js +16 -0
- package/dist-cjs/commands/CreateWhatsAppMessageTemplateCommand.js +26 -0
- package/dist-cjs/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +26 -0
- package/dist-cjs/commands/CreateWhatsAppMessageTemplateMediaCommand.js +27 -0
- package/dist-cjs/commands/DeleteWhatsAppMessageTemplateCommand.js +26 -0
- package/dist-cjs/commands/GetWhatsAppMessageTemplateCommand.js +26 -0
- package/dist-cjs/commands/ListWhatsAppMessageTemplatesCommand.js +26 -0
- package/dist-cjs/commands/ListWhatsAppTemplateLibraryCommand.js +26 -0
- package/dist-cjs/commands/UpdateWhatsAppMessageTemplateCommand.js +26 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +19 -1
- package/dist-cjs/pagination/ListWhatsAppMessageTemplatesPaginator.js +7 -0
- package/dist-cjs/pagination/ListWhatsAppTemplateLibraryPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +265 -4
- package/dist-es/SocialMessaging.js +16 -0
- package/dist-es/commands/CreateWhatsAppMessageTemplateCommand.js +22 -0
- package/dist-es/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +22 -0
- package/dist-es/commands/CreateWhatsAppMessageTemplateMediaCommand.js +23 -0
- package/dist-es/commands/DeleteWhatsAppMessageTemplateCommand.js +22 -0
- package/dist-es/commands/GetWhatsAppMessageTemplateCommand.js +22 -0
- package/dist-es/commands/ListWhatsAppMessageTemplatesCommand.js +22 -0
- package/dist-es/commands/ListWhatsAppTemplateLibraryCommand.js +22 -0
- package/dist-es/commands/UpdateWhatsAppMessageTemplateCommand.js +22 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/pagination/ListWhatsAppMessageTemplatesPaginator.js +4 -0
- package/dist-es/pagination/ListWhatsAppTemplateLibraryPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +249 -4
- package/dist-types/SocialMessaging.d.ts +56 -0
- package/dist-types/SocialMessagingClient.d.ts +10 -2
- package/dist-types/commands/AssociateWhatsAppBusinessAccountCommand.d.ts +5 -0
- package/dist-types/commands/CreateWhatsAppMessageTemplateCommand.d.ts +97 -0
- package/dist-types/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +125 -0
- package/dist-types/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +98 -0
- package/dist-types/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +95 -0
- package/dist-types/commands/GetLinkedWhatsAppBusinessAccountCommand.d.ts +1 -0
- package/dist-types/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +1 -0
- package/dist-types/commands/GetWhatsAppMessageTemplateCommand.d.ts +95 -0
- package/dist-types/commands/ListWhatsAppMessageTemplatesCommand.d.ts +106 -0
- package/dist-types/commands/ListWhatsAppTemplateLibraryCommand.d.ts +129 -0
- package/dist-types/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +550 -28
- package/dist-types/pagination/ListWhatsAppMessageTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWhatsAppTemplateLibraryPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/dist-types/ts3.4/SocialMessaging.d.ts +148 -0
- package/dist-types/ts3.4/SocialMessagingClient.d.ts +50 -2
- package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWhatsAppMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWhatsAppMessageTemplatesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWhatsAppTemplateLibraryCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +139 -9
- package/dist-types/ts3.4/pagination/ListWhatsAppMessageTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWhatsAppTemplateLibraryPaginator.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 +96 -0
- package/package.json +1 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListWhatsAppTemplateLibraryInput, ListWhatsAppTemplateLibraryOutput } 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 ListWhatsAppTemplateLibraryCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListWhatsAppTemplateLibraryCommandInput extends ListWhatsAppTemplateLibraryInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListWhatsAppTemplateLibraryCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListWhatsAppTemplateLibraryCommandOutput extends ListWhatsAppTemplateLibraryOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListWhatsAppTemplateLibraryCommand_base: {
|
|
25
|
+
new (input: ListWhatsAppTemplateLibraryCommandInput): import("@smithy/smithy-client").CommandImpl<ListWhatsAppTemplateLibraryCommandInput, ListWhatsAppTemplateLibraryCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListWhatsAppTemplateLibraryCommandInput): import("@smithy/smithy-client").CommandImpl<ListWhatsAppTemplateLibraryCommandInput, ListWhatsAppTemplateLibraryCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists templates available in Meta's template library for WhatsApp messaging.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SocialMessagingClient, ListWhatsAppTemplateLibraryCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
35
|
+
* // const { SocialMessagingClient, ListWhatsAppTemplateLibraryCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
36
|
+
* const client = new SocialMessagingClient(config);
|
|
37
|
+
* const input = { // ListWhatsAppTemplateLibraryInput
|
|
38
|
+
* nextToken: "STRING_VALUE",
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* id: "STRING_VALUE", // required
|
|
41
|
+
* filters: { // Filter
|
|
42
|
+
* "<keys>": "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* };
|
|
45
|
+
* const command = new ListWhatsAppTemplateLibraryCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // ListWhatsAppTemplateLibraryOutput
|
|
48
|
+
* // metaLibraryTemplates: [ // MetaLibraryTemplatesList
|
|
49
|
+
* // { // MetaLibraryTemplateDefinition
|
|
50
|
+
* // templateName: "STRING_VALUE",
|
|
51
|
+
* // templateLanguage: "STRING_VALUE",
|
|
52
|
+
* // templateCategory: "STRING_VALUE",
|
|
53
|
+
* // templateTopic: "STRING_VALUE",
|
|
54
|
+
* // templateUseCase: "STRING_VALUE",
|
|
55
|
+
* // templateIndustry: [ // MetaIndustries
|
|
56
|
+
* // "STRING_VALUE",
|
|
57
|
+
* // ],
|
|
58
|
+
* // templateHeader: "STRING_VALUE",
|
|
59
|
+
* // templateBody: "STRING_VALUE",
|
|
60
|
+
* // templateButtons: [ // MetaLibraryTemplateButtonList
|
|
61
|
+
* // { // LibraryTemplateButtonList
|
|
62
|
+
* // type: "STRING_VALUE",
|
|
63
|
+
* // text: "STRING_VALUE",
|
|
64
|
+
* // phoneNumber: "STRING_VALUE",
|
|
65
|
+
* // url: "STRING_VALUE",
|
|
66
|
+
* // otpType: "STRING_VALUE",
|
|
67
|
+
* // zeroTapTermsAccepted: true || false,
|
|
68
|
+
* // supportedApps: [ // SupportedApps
|
|
69
|
+
* // { // SupportedApp
|
|
70
|
+
* // "<keys>": "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // },
|
|
74
|
+
* // ],
|
|
75
|
+
* // templateId: "STRING_VALUE",
|
|
76
|
+
* // },
|
|
77
|
+
* // ],
|
|
78
|
+
* // nextToken: "STRING_VALUE",
|
|
79
|
+
* // };
|
|
80
|
+
*
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @param ListWhatsAppTemplateLibraryCommandInput - {@link ListWhatsAppTemplateLibraryCommandInput}
|
|
84
|
+
* @returns {@link ListWhatsAppTemplateLibraryCommandOutput}
|
|
85
|
+
* @see {@link ListWhatsAppTemplateLibraryCommandInput} for command's `input` shape.
|
|
86
|
+
* @see {@link ListWhatsAppTemplateLibraryCommandOutput} for command's `response` shape.
|
|
87
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link DependencyException} (server fault)
|
|
90
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
93
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
94
|
+
* failure.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
97
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
100
|
+
* <p>The resource was not found.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
103
|
+
* <p>The request was denied due to request throttling.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
106
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ValidationException} (client fault)
|
|
109
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link SocialMessagingServiceException}
|
|
112
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
export declare class ListWhatsAppTemplateLibraryCommand extends ListWhatsAppTemplateLibraryCommand_base {
|
|
118
|
+
/** @internal type navigation helper, not in runtime. */
|
|
119
|
+
protected static __types: {
|
|
120
|
+
api: {
|
|
121
|
+
input: ListWhatsAppTemplateLibraryInput;
|
|
122
|
+
output: ListWhatsAppTemplateLibraryOutput;
|
|
123
|
+
};
|
|
124
|
+
sdk: {
|
|
125
|
+
input: ListWhatsAppTemplateLibraryCommandInput;
|
|
126
|
+
output: ListWhatsAppTemplateLibraryCommandOutput;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { UpdateWhatsAppMessageTemplateInput, UpdateWhatsAppMessageTemplateOutput } 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 UpdateWhatsAppMessageTemplateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateWhatsAppMessageTemplateCommandInput extends UpdateWhatsAppMessageTemplateInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateWhatsAppMessageTemplateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateWhatsAppMessageTemplateCommandOutput extends UpdateWhatsAppMessageTemplateOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateWhatsAppMessageTemplateCommand_base: {
|
|
25
|
+
new (input: UpdateWhatsAppMessageTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateWhatsAppMessageTemplateCommandInput, UpdateWhatsAppMessageTemplateCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateWhatsAppMessageTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateWhatsAppMessageTemplateCommandInput, UpdateWhatsAppMessageTemplateCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates an existing WhatsApp message template.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SocialMessagingClient, UpdateWhatsAppMessageTemplateCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
|
|
35
|
+
* // const { SocialMessagingClient, UpdateWhatsAppMessageTemplateCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
|
|
36
|
+
* const client = new SocialMessagingClient(config);
|
|
37
|
+
* const input = { // UpdateWhatsAppMessageTemplateInput
|
|
38
|
+
* id: "STRING_VALUE", // required
|
|
39
|
+
* metaTemplateId: "STRING_VALUE", // required
|
|
40
|
+
* templateCategory: "STRING_VALUE",
|
|
41
|
+
* templateComponents: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UpdateWhatsAppMessageTemplateCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // {};
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param UpdateWhatsAppMessageTemplateCommandInput - {@link UpdateWhatsAppMessageTemplateCommandInput}
|
|
50
|
+
* @returns {@link UpdateWhatsAppMessageTemplateCommandOutput}
|
|
51
|
+
* @see {@link UpdateWhatsAppMessageTemplateCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link UpdateWhatsAppMessageTemplateCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link DependencyException} (server fault)
|
|
56
|
+
* <p>Thrown when performing an action because a dependency would be broken.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
59
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
60
|
+
* failure.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InvalidParametersException} (client fault)
|
|
63
|
+
* <p>One or more parameters provided to the action are not valid.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>The resource was not found.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ThrottledRequestException} (client fault)
|
|
69
|
+
* <p>The request was denied due to request throttling.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ValidationException} (client fault)
|
|
75
|
+
* <p>The request contains an invalid parameter value. </p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link SocialMessagingServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from SocialMessaging service.</p>
|
|
79
|
+
*
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export declare class UpdateWhatsAppMessageTemplateCommand extends UpdateWhatsAppMessageTemplateCommand_base {
|
|
84
|
+
/** @internal type navigation helper, not in runtime. */
|
|
85
|
+
protected static __types: {
|
|
86
|
+
api: {
|
|
87
|
+
input: UpdateWhatsAppMessageTemplateInput;
|
|
88
|
+
output: {};
|
|
89
|
+
};
|
|
90
|
+
sdk: {
|
|
91
|
+
input: UpdateWhatsAppMessageTemplateCommandInput;
|
|
92
|
+
output: UpdateWhatsAppMessageTemplateCommandOutput;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
export * from "./AssociateWhatsAppBusinessAccountCommand";
|
|
2
|
+
export * from "./CreateWhatsAppMessageTemplateCommand";
|
|
3
|
+
export * from "./CreateWhatsAppMessageTemplateFromLibraryCommand";
|
|
4
|
+
export * from "./CreateWhatsAppMessageTemplateMediaCommand";
|
|
2
5
|
export * from "./DeleteWhatsAppMessageMediaCommand";
|
|
6
|
+
export * from "./DeleteWhatsAppMessageTemplateCommand";
|
|
3
7
|
export * from "./DisassociateWhatsAppBusinessAccountCommand";
|
|
4
8
|
export * from "./GetLinkedWhatsAppBusinessAccountCommand";
|
|
5
9
|
export * from "./GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
|
|
6
10
|
export * from "./GetWhatsAppMessageMediaCommand";
|
|
11
|
+
export * from "./GetWhatsAppMessageTemplateCommand";
|
|
7
12
|
export * from "./ListLinkedWhatsAppBusinessAccountsCommand";
|
|
8
13
|
export * from "./ListTagsForResourceCommand";
|
|
14
|
+
export * from "./ListWhatsAppMessageTemplatesCommand";
|
|
15
|
+
export * from "./ListWhatsAppTemplateLibraryCommand";
|
|
9
16
|
export * from "./PostWhatsAppMessageMediaCommand";
|
|
10
17
|
export * from "./PutWhatsAppBusinessAccountEventDestinationsCommand";
|
|
11
18
|
export * from "./SendWhatsAppMessageCommand";
|
|
12
19
|
export * from "./TagResourceCommand";
|
|
13
20
|
export * from "./UntagResourceCommand";
|
|
21
|
+
export * from "./UpdateWhatsAppMessageTemplateCommand";
|