@aws-sdk/client-socialmessaging 3.1059.0 → 3.1061.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.
Files changed (67) hide show
  1. package/README.md +77 -7
  2. package/dist-cjs/index.js +160 -0
  3. package/dist-cjs/schemas/schemas_0.js +262 -14
  4. package/dist-es/SocialMessaging.js +24 -0
  5. package/dist-es/commands/CreateWhatsAppFlowCommand.js +16 -0
  6. package/dist-es/commands/DeleteWhatsAppFlowCommand.js +16 -0
  7. package/dist-es/commands/DeprecateWhatsAppFlowCommand.js +16 -0
  8. package/dist-es/commands/GetWhatsAppFlowCommand.js +16 -0
  9. package/dist-es/commands/GetWhatsAppFlowPreviewCommand.js +16 -0
  10. package/dist-es/commands/ListWhatsAppFlowAssetsCommand.js +16 -0
  11. package/dist-es/commands/ListWhatsAppFlowsCommand.js +16 -0
  12. package/dist-es/commands/PublishWhatsAppFlowCommand.js +16 -0
  13. package/dist-es/commands/UpdateWhatsAppFlowAssetsCommand.js +16 -0
  14. package/dist-es/commands/UpdateWhatsAppFlowCommand.js +16 -0
  15. package/dist-es/commands/index.js +10 -0
  16. package/dist-es/models/enums.js +11 -0
  17. package/dist-es/pagination/ListWhatsAppFlowAssetsPaginator.js +4 -0
  18. package/dist-es/pagination/ListWhatsAppFlowsPaginator.js +4 -0
  19. package/dist-es/pagination/index.js +2 -0
  20. package/dist-es/schemas/schemas_0.js +259 -12
  21. package/dist-types/SocialMessaging.d.ts +84 -0
  22. package/dist-types/SocialMessagingClient.d.ts +12 -2
  23. package/dist-types/commands/CreateWhatsAppFlowCommand.d.ts +113 -0
  24. package/dist-types/commands/CreateWhatsAppMessageTemplateCommand.d.ts +3 -0
  25. package/dist-types/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +3 -0
  26. package/dist-types/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +3 -0
  27. package/dist-types/commands/DeleteWhatsAppFlowCommand.d.ts +100 -0
  28. package/dist-types/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +3 -0
  29. package/dist-types/commands/DeprecateWhatsAppFlowCommand.d.ts +100 -0
  30. package/dist-types/commands/GetWhatsAppFlowCommand.d.ts +139 -0
  31. package/dist-types/commands/GetWhatsAppFlowPreviewCommand.d.ts +107 -0
  32. package/dist-types/commands/GetWhatsAppMessageTemplateCommand.d.ts +3 -0
  33. package/dist-types/commands/ListWhatsAppFlowAssetsCommand.d.ts +111 -0
  34. package/dist-types/commands/ListWhatsAppFlowsCommand.d.ts +116 -0
  35. package/dist-types/commands/ListWhatsAppMessageTemplatesCommand.d.ts +3 -0
  36. package/dist-types/commands/ListWhatsAppTemplateLibraryCommand.d.ts +3 -0
  37. package/dist-types/commands/PublishWhatsAppFlowCommand.d.ts +100 -0
  38. package/dist-types/commands/UpdateWhatsAppFlowAssetsCommand.d.ts +105 -0
  39. package/dist-types/commands/UpdateWhatsAppFlowCommand.d.ts +104 -0
  40. package/dist-types/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +3 -0
  41. package/dist-types/commands/index.d.ts +10 -0
  42. package/dist-types/models/enums.d.ts +19 -0
  43. package/dist-types/models/models_0.d.ts +518 -1
  44. package/dist-types/pagination/ListWhatsAppFlowAssetsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/ListWhatsAppFlowsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/index.d.ts +2 -0
  47. package/dist-types/schemas/schemas_0.d.ts +37 -0
  48. package/dist-types/ts3.4/SocialMessaging.d.ts +184 -0
  49. package/dist-types/ts3.4/SocialMessagingClient.d.ts +60 -0
  50. package/dist-types/ts3.4/commands/CreateWhatsAppFlowCommand.d.ts +53 -0
  51. package/dist-types/ts3.4/commands/DeleteWhatsAppFlowCommand.d.ts +53 -0
  52. package/dist-types/ts3.4/commands/DeprecateWhatsAppFlowCommand.d.ts +53 -0
  53. package/dist-types/ts3.4/commands/GetWhatsAppFlowCommand.d.ts +52 -0
  54. package/dist-types/ts3.4/commands/GetWhatsAppFlowPreviewCommand.d.ts +53 -0
  55. package/dist-types/ts3.4/commands/ListWhatsAppFlowAssetsCommand.d.ts +53 -0
  56. package/dist-types/ts3.4/commands/ListWhatsAppFlowsCommand.d.ts +52 -0
  57. package/dist-types/ts3.4/commands/PublishWhatsAppFlowCommand.d.ts +53 -0
  58. package/dist-types/ts3.4/commands/UpdateWhatsAppFlowAssetsCommand.d.ts +53 -0
  59. package/dist-types/ts3.4/commands/UpdateWhatsAppFlowCommand.d.ts +53 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  61. package/dist-types/ts3.4/models/enums.d.ts +13 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +126 -1
  63. package/dist-types/ts3.4/pagination/ListWhatsAppFlowAssetsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/ListWhatsAppFlowsPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  66. package/dist-types/ts3.4/schemas/schemas_0.d.ts +37 -0
  67. package/package.json +3 -3
@@ -1,24 +1,34 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type AssociateWhatsAppBusinessAccountCommandInput, type AssociateWhatsAppBusinessAccountCommandOutput } from "./commands/AssociateWhatsAppBusinessAccountCommand";
3
+ import { type CreateWhatsAppFlowCommandInput, type CreateWhatsAppFlowCommandOutput } from "./commands/CreateWhatsAppFlowCommand";
3
4
  import { type CreateWhatsAppMessageTemplateCommandInput, type CreateWhatsAppMessageTemplateCommandOutput } from "./commands/CreateWhatsAppMessageTemplateCommand";
4
5
  import { type CreateWhatsAppMessageTemplateFromLibraryCommandInput, type CreateWhatsAppMessageTemplateFromLibraryCommandOutput } from "./commands/CreateWhatsAppMessageTemplateFromLibraryCommand";
5
6
  import { type CreateWhatsAppMessageTemplateMediaCommandInput, type CreateWhatsAppMessageTemplateMediaCommandOutput } from "./commands/CreateWhatsAppMessageTemplateMediaCommand";
7
+ import { type DeleteWhatsAppFlowCommandInput, type DeleteWhatsAppFlowCommandOutput } from "./commands/DeleteWhatsAppFlowCommand";
6
8
  import { type DeleteWhatsAppMessageMediaCommandInput, type DeleteWhatsAppMessageMediaCommandOutput } from "./commands/DeleteWhatsAppMessageMediaCommand";
7
9
  import { type DeleteWhatsAppMessageTemplateCommandInput, type DeleteWhatsAppMessageTemplateCommandOutput } from "./commands/DeleteWhatsAppMessageTemplateCommand";
10
+ import { type DeprecateWhatsAppFlowCommandInput, type DeprecateWhatsAppFlowCommandOutput } from "./commands/DeprecateWhatsAppFlowCommand";
8
11
  import { type DisassociateWhatsAppBusinessAccountCommandInput, type DisassociateWhatsAppBusinessAccountCommandOutput } from "./commands/DisassociateWhatsAppBusinessAccountCommand";
9
12
  import { type GetLinkedWhatsAppBusinessAccountCommandInput, type GetLinkedWhatsAppBusinessAccountCommandOutput } from "./commands/GetLinkedWhatsAppBusinessAccountCommand";
10
13
  import { type GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, type GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput } from "./commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
14
+ import { type GetWhatsAppFlowCommandInput, type GetWhatsAppFlowCommandOutput } from "./commands/GetWhatsAppFlowCommand";
15
+ import { type GetWhatsAppFlowPreviewCommandInput, type GetWhatsAppFlowPreviewCommandOutput } from "./commands/GetWhatsAppFlowPreviewCommand";
11
16
  import { type GetWhatsAppMessageMediaCommandInput, type GetWhatsAppMessageMediaCommandOutput } from "./commands/GetWhatsAppMessageMediaCommand";
12
17
  import { type GetWhatsAppMessageTemplateCommandInput, type GetWhatsAppMessageTemplateCommandOutput } from "./commands/GetWhatsAppMessageTemplateCommand";
13
18
  import { type ListLinkedWhatsAppBusinessAccountsCommandInput, type ListLinkedWhatsAppBusinessAccountsCommandOutput } from "./commands/ListLinkedWhatsAppBusinessAccountsCommand";
14
19
  import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
20
+ import { type ListWhatsAppFlowAssetsCommandInput, type ListWhatsAppFlowAssetsCommandOutput } from "./commands/ListWhatsAppFlowAssetsCommand";
21
+ import { type ListWhatsAppFlowsCommandInput, type ListWhatsAppFlowsCommandOutput } from "./commands/ListWhatsAppFlowsCommand";
15
22
  import { type ListWhatsAppMessageTemplatesCommandInput, type ListWhatsAppMessageTemplatesCommandOutput } from "./commands/ListWhatsAppMessageTemplatesCommand";
16
23
  import { type ListWhatsAppTemplateLibraryCommandInput, type ListWhatsAppTemplateLibraryCommandOutput } from "./commands/ListWhatsAppTemplateLibraryCommand";
17
24
  import { type PostWhatsAppMessageMediaCommandInput, type PostWhatsAppMessageMediaCommandOutput } from "./commands/PostWhatsAppMessageMediaCommand";
25
+ import { type PublishWhatsAppFlowCommandInput, type PublishWhatsAppFlowCommandOutput } from "./commands/PublishWhatsAppFlowCommand";
18
26
  import { type PutWhatsAppBusinessAccountEventDestinationsCommandInput, type PutWhatsAppBusinessAccountEventDestinationsCommandOutput } from "./commands/PutWhatsAppBusinessAccountEventDestinationsCommand";
19
27
  import { type SendWhatsAppMessageCommandInput, type SendWhatsAppMessageCommandOutput } from "./commands/SendWhatsAppMessageCommand";
20
28
  import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
29
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
30
+ import { type UpdateWhatsAppFlowAssetsCommandInput, type UpdateWhatsAppFlowAssetsCommandOutput } from "./commands/UpdateWhatsAppFlowAssetsCommand";
31
+ import { type UpdateWhatsAppFlowCommandInput, type UpdateWhatsAppFlowCommandOutput } from "./commands/UpdateWhatsAppFlowCommand";
22
32
  import { type UpdateWhatsAppMessageTemplateCommandInput, type UpdateWhatsAppMessageTemplateCommandOutput } from "./commands/UpdateWhatsAppMessageTemplateCommand";
23
33
  import { SocialMessagingClient } from "./SocialMessagingClient";
24
34
  export interface SocialMessaging {
@@ -29,6 +39,12 @@ export interface SocialMessaging {
29
39
  associateWhatsAppBusinessAccount(args: AssociateWhatsAppBusinessAccountCommandInput, options?: __HttpHandlerOptions): Promise<AssociateWhatsAppBusinessAccountCommandOutput>;
30
40
  associateWhatsAppBusinessAccount(args: AssociateWhatsAppBusinessAccountCommandInput, cb: (err: any, data?: AssociateWhatsAppBusinessAccountCommandOutput) => void): void;
31
41
  associateWhatsAppBusinessAccount(args: AssociateWhatsAppBusinessAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateWhatsAppBusinessAccountCommandOutput) => void): void;
42
+ /**
43
+ * @see {@link CreateWhatsAppFlowCommand}
44
+ */
45
+ createWhatsAppFlow(args: CreateWhatsAppFlowCommandInput, options?: __HttpHandlerOptions): Promise<CreateWhatsAppFlowCommandOutput>;
46
+ createWhatsAppFlow(args: CreateWhatsAppFlowCommandInput, cb: (err: any, data?: CreateWhatsAppFlowCommandOutput) => void): void;
47
+ createWhatsAppFlow(args: CreateWhatsAppFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWhatsAppFlowCommandOutput) => void): void;
32
48
  /**
33
49
  * @see {@link CreateWhatsAppMessageTemplateCommand}
34
50
  */
@@ -47,6 +63,12 @@ export interface SocialMessaging {
47
63
  createWhatsAppMessageTemplateMedia(args: CreateWhatsAppMessageTemplateMediaCommandInput, options?: __HttpHandlerOptions): Promise<CreateWhatsAppMessageTemplateMediaCommandOutput>;
48
64
  createWhatsAppMessageTemplateMedia(args: CreateWhatsAppMessageTemplateMediaCommandInput, cb: (err: any, data?: CreateWhatsAppMessageTemplateMediaCommandOutput) => void): void;
49
65
  createWhatsAppMessageTemplateMedia(args: CreateWhatsAppMessageTemplateMediaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWhatsAppMessageTemplateMediaCommandOutput) => void): void;
66
+ /**
67
+ * @see {@link DeleteWhatsAppFlowCommand}
68
+ */
69
+ deleteWhatsAppFlow(args: DeleteWhatsAppFlowCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWhatsAppFlowCommandOutput>;
70
+ deleteWhatsAppFlow(args: DeleteWhatsAppFlowCommandInput, cb: (err: any, data?: DeleteWhatsAppFlowCommandOutput) => void): void;
71
+ deleteWhatsAppFlow(args: DeleteWhatsAppFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWhatsAppFlowCommandOutput) => void): void;
50
72
  /**
51
73
  * @see {@link DeleteWhatsAppMessageMediaCommand}
52
74
  */
@@ -59,6 +81,12 @@ export interface SocialMessaging {
59
81
  deleteWhatsAppMessageTemplate(args: DeleteWhatsAppMessageTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWhatsAppMessageTemplateCommandOutput>;
60
82
  deleteWhatsAppMessageTemplate(args: DeleteWhatsAppMessageTemplateCommandInput, cb: (err: any, data?: DeleteWhatsAppMessageTemplateCommandOutput) => void): void;
61
83
  deleteWhatsAppMessageTemplate(args: DeleteWhatsAppMessageTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWhatsAppMessageTemplateCommandOutput) => void): void;
84
+ /**
85
+ * @see {@link DeprecateWhatsAppFlowCommand}
86
+ */
87
+ deprecateWhatsAppFlow(args: DeprecateWhatsAppFlowCommandInput, options?: __HttpHandlerOptions): Promise<DeprecateWhatsAppFlowCommandOutput>;
88
+ deprecateWhatsAppFlow(args: DeprecateWhatsAppFlowCommandInput, cb: (err: any, data?: DeprecateWhatsAppFlowCommandOutput) => void): void;
89
+ deprecateWhatsAppFlow(args: DeprecateWhatsAppFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeprecateWhatsAppFlowCommandOutput) => void): void;
62
90
  /**
63
91
  * @see {@link DisassociateWhatsAppBusinessAccountCommand}
64
92
  */
@@ -77,6 +105,18 @@ export interface SocialMessaging {
77
105
  getLinkedWhatsAppBusinessAccountPhoneNumber(args: GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, options?: __HttpHandlerOptions): Promise<GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput>;
78
106
  getLinkedWhatsAppBusinessAccountPhoneNumber(args: GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, cb: (err: any, data?: GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput) => void): void;
79
107
  getLinkedWhatsAppBusinessAccountPhoneNumber(args: GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput) => void): void;
108
+ /**
109
+ * @see {@link GetWhatsAppFlowCommand}
110
+ */
111
+ getWhatsAppFlow(args: GetWhatsAppFlowCommandInput, options?: __HttpHandlerOptions): Promise<GetWhatsAppFlowCommandOutput>;
112
+ getWhatsAppFlow(args: GetWhatsAppFlowCommandInput, cb: (err: any, data?: GetWhatsAppFlowCommandOutput) => void): void;
113
+ getWhatsAppFlow(args: GetWhatsAppFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWhatsAppFlowCommandOutput) => void): void;
114
+ /**
115
+ * @see {@link GetWhatsAppFlowPreviewCommand}
116
+ */
117
+ getWhatsAppFlowPreview(args: GetWhatsAppFlowPreviewCommandInput, options?: __HttpHandlerOptions): Promise<GetWhatsAppFlowPreviewCommandOutput>;
118
+ getWhatsAppFlowPreview(args: GetWhatsAppFlowPreviewCommandInput, cb: (err: any, data?: GetWhatsAppFlowPreviewCommandOutput) => void): void;
119
+ getWhatsAppFlowPreview(args: GetWhatsAppFlowPreviewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWhatsAppFlowPreviewCommandOutput) => void): void;
80
120
  /**
81
121
  * @see {@link GetWhatsAppMessageMediaCommand}
82
122
  */
@@ -102,6 +142,18 @@ export interface SocialMessaging {
102
142
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
103
143
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
104
144
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
145
+ /**
146
+ * @see {@link ListWhatsAppFlowAssetsCommand}
147
+ */
148
+ listWhatsAppFlowAssets(args: ListWhatsAppFlowAssetsCommandInput, options?: __HttpHandlerOptions): Promise<ListWhatsAppFlowAssetsCommandOutput>;
149
+ listWhatsAppFlowAssets(args: ListWhatsAppFlowAssetsCommandInput, cb: (err: any, data?: ListWhatsAppFlowAssetsCommandOutput) => void): void;
150
+ listWhatsAppFlowAssets(args: ListWhatsAppFlowAssetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWhatsAppFlowAssetsCommandOutput) => void): void;
151
+ /**
152
+ * @see {@link ListWhatsAppFlowsCommand}
153
+ */
154
+ listWhatsAppFlows(args: ListWhatsAppFlowsCommandInput, options?: __HttpHandlerOptions): Promise<ListWhatsAppFlowsCommandOutput>;
155
+ listWhatsAppFlows(args: ListWhatsAppFlowsCommandInput, cb: (err: any, data?: ListWhatsAppFlowsCommandOutput) => void): void;
156
+ listWhatsAppFlows(args: ListWhatsAppFlowsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWhatsAppFlowsCommandOutput) => void): void;
105
157
  /**
106
158
  * @see {@link ListWhatsAppMessageTemplatesCommand}
107
159
  */
@@ -120,6 +172,12 @@ export interface SocialMessaging {
120
172
  postWhatsAppMessageMedia(args: PostWhatsAppMessageMediaCommandInput, options?: __HttpHandlerOptions): Promise<PostWhatsAppMessageMediaCommandOutput>;
121
173
  postWhatsAppMessageMedia(args: PostWhatsAppMessageMediaCommandInput, cb: (err: any, data?: PostWhatsAppMessageMediaCommandOutput) => void): void;
122
174
  postWhatsAppMessageMedia(args: PostWhatsAppMessageMediaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PostWhatsAppMessageMediaCommandOutput) => void): void;
175
+ /**
176
+ * @see {@link PublishWhatsAppFlowCommand}
177
+ */
178
+ publishWhatsAppFlow(args: PublishWhatsAppFlowCommandInput, options?: __HttpHandlerOptions): Promise<PublishWhatsAppFlowCommandOutput>;
179
+ publishWhatsAppFlow(args: PublishWhatsAppFlowCommandInput, cb: (err: any, data?: PublishWhatsAppFlowCommandOutput) => void): void;
180
+ publishWhatsAppFlow(args: PublishWhatsAppFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PublishWhatsAppFlowCommandOutput) => void): void;
123
181
  /**
124
182
  * @see {@link PutWhatsAppBusinessAccountEventDestinationsCommand}
125
183
  */
@@ -144,6 +202,18 @@ export interface SocialMessaging {
144
202
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
145
203
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
146
204
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
205
+ /**
206
+ * @see {@link UpdateWhatsAppFlowCommand}
207
+ */
208
+ updateWhatsAppFlow(args: UpdateWhatsAppFlowCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWhatsAppFlowCommandOutput>;
209
+ updateWhatsAppFlow(args: UpdateWhatsAppFlowCommandInput, cb: (err: any, data?: UpdateWhatsAppFlowCommandOutput) => void): void;
210
+ updateWhatsAppFlow(args: UpdateWhatsAppFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWhatsAppFlowCommandOutput) => void): void;
211
+ /**
212
+ * @see {@link UpdateWhatsAppFlowAssetsCommand}
213
+ */
214
+ updateWhatsAppFlowAssets(args: UpdateWhatsAppFlowAssetsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWhatsAppFlowAssetsCommandOutput>;
215
+ updateWhatsAppFlowAssets(args: UpdateWhatsAppFlowAssetsCommandInput, cb: (err: any, data?: UpdateWhatsAppFlowAssetsCommandOutput) => void): void;
216
+ updateWhatsAppFlowAssets(args: UpdateWhatsAppFlowAssetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWhatsAppFlowAssetsCommandOutput) => void): void;
147
217
  /**
148
218
  * @see {@link UpdateWhatsAppMessageTemplateCommand}
149
219
  */
@@ -157,6 +227,20 @@ export interface SocialMessaging {
157
227
  * @returns AsyncIterable of {@link ListLinkedWhatsAppBusinessAccountsCommandOutput}.
158
228
  */
159
229
  paginateListLinkedWhatsAppBusinessAccounts(args?: ListLinkedWhatsAppBusinessAccountsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListLinkedWhatsAppBusinessAccountsCommandOutput>;
230
+ /**
231
+ * @see {@link ListWhatsAppFlowAssetsCommand}
232
+ * @param args - command input.
233
+ * @param paginationConfig - optional pagination config.
234
+ * @returns AsyncIterable of {@link ListWhatsAppFlowAssetsCommandOutput}.
235
+ */
236
+ paginateListWhatsAppFlowAssets(args: ListWhatsAppFlowAssetsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListWhatsAppFlowAssetsCommandOutput>;
237
+ /**
238
+ * @see {@link ListWhatsAppFlowsCommand}
239
+ * @param args - command input.
240
+ * @param paginationConfig - optional pagination config.
241
+ * @returns AsyncIterable of {@link ListWhatsAppFlowsCommandOutput}.
242
+ */
243
+ paginateListWhatsAppFlows(args: ListWhatsAppFlowsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListWhatsAppFlowsCommandOutput>;
160
244
  /**
161
245
  * @see {@link ListWhatsAppMessageTemplatesCommand}
162
246
  * @param args - command input.
@@ -7,25 +7,35 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
7
7
  import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
8
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
9
  import type { AssociateWhatsAppBusinessAccountCommandInput, AssociateWhatsAppBusinessAccountCommandOutput } from "./commands/AssociateWhatsAppBusinessAccountCommand";
10
+ import type { CreateWhatsAppFlowCommandInput, CreateWhatsAppFlowCommandOutput } from "./commands/CreateWhatsAppFlowCommand";
10
11
  import type { CreateWhatsAppMessageTemplateCommandInput, CreateWhatsAppMessageTemplateCommandOutput } from "./commands/CreateWhatsAppMessageTemplateCommand";
11
12
  import type { CreateWhatsAppMessageTemplateFromLibraryCommandInput, CreateWhatsAppMessageTemplateFromLibraryCommandOutput } from "./commands/CreateWhatsAppMessageTemplateFromLibraryCommand";
12
13
  import type { CreateWhatsAppMessageTemplateMediaCommandInput, CreateWhatsAppMessageTemplateMediaCommandOutput } from "./commands/CreateWhatsAppMessageTemplateMediaCommand";
14
+ import type { DeleteWhatsAppFlowCommandInput, DeleteWhatsAppFlowCommandOutput } from "./commands/DeleteWhatsAppFlowCommand";
13
15
  import type { DeleteWhatsAppMessageMediaCommandInput, DeleteWhatsAppMessageMediaCommandOutput } from "./commands/DeleteWhatsAppMessageMediaCommand";
14
16
  import type { DeleteWhatsAppMessageTemplateCommandInput, DeleteWhatsAppMessageTemplateCommandOutput } from "./commands/DeleteWhatsAppMessageTemplateCommand";
17
+ import type { DeprecateWhatsAppFlowCommandInput, DeprecateWhatsAppFlowCommandOutput } from "./commands/DeprecateWhatsAppFlowCommand";
15
18
  import type { DisassociateWhatsAppBusinessAccountCommandInput, DisassociateWhatsAppBusinessAccountCommandOutput } from "./commands/DisassociateWhatsAppBusinessAccountCommand";
16
19
  import type { GetLinkedWhatsAppBusinessAccountCommandInput, GetLinkedWhatsAppBusinessAccountCommandOutput } from "./commands/GetLinkedWhatsAppBusinessAccountCommand";
17
20
  import type { GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput } from "./commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
21
+ import type { GetWhatsAppFlowCommandInput, GetWhatsAppFlowCommandOutput } from "./commands/GetWhatsAppFlowCommand";
22
+ import type { GetWhatsAppFlowPreviewCommandInput, GetWhatsAppFlowPreviewCommandOutput } from "./commands/GetWhatsAppFlowPreviewCommand";
18
23
  import type { GetWhatsAppMessageMediaCommandInput, GetWhatsAppMessageMediaCommandOutput } from "./commands/GetWhatsAppMessageMediaCommand";
19
24
  import type { GetWhatsAppMessageTemplateCommandInput, GetWhatsAppMessageTemplateCommandOutput } from "./commands/GetWhatsAppMessageTemplateCommand";
20
25
  import type { ListLinkedWhatsAppBusinessAccountsCommandInput, ListLinkedWhatsAppBusinessAccountsCommandOutput } from "./commands/ListLinkedWhatsAppBusinessAccountsCommand";
21
26
  import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
27
+ import type { ListWhatsAppFlowAssetsCommandInput, ListWhatsAppFlowAssetsCommandOutput } from "./commands/ListWhatsAppFlowAssetsCommand";
28
+ import type { ListWhatsAppFlowsCommandInput, ListWhatsAppFlowsCommandOutput } from "./commands/ListWhatsAppFlowsCommand";
22
29
  import type { ListWhatsAppMessageTemplatesCommandInput, ListWhatsAppMessageTemplatesCommandOutput } from "./commands/ListWhatsAppMessageTemplatesCommand";
23
30
  import type { ListWhatsAppTemplateLibraryCommandInput, ListWhatsAppTemplateLibraryCommandOutput } from "./commands/ListWhatsAppTemplateLibraryCommand";
24
31
  import type { PostWhatsAppMessageMediaCommandInput, PostWhatsAppMessageMediaCommandOutput } from "./commands/PostWhatsAppMessageMediaCommand";
32
+ import type { PublishWhatsAppFlowCommandInput, PublishWhatsAppFlowCommandOutput } from "./commands/PublishWhatsAppFlowCommand";
25
33
  import type { PutWhatsAppBusinessAccountEventDestinationsCommandInput, PutWhatsAppBusinessAccountEventDestinationsCommandOutput } from "./commands/PutWhatsAppBusinessAccountEventDestinationsCommand";
26
34
  import type { SendWhatsAppMessageCommandInput, SendWhatsAppMessageCommandOutput } from "./commands/SendWhatsAppMessageCommand";
27
35
  import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
28
36
  import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
37
+ import type { UpdateWhatsAppFlowAssetsCommandInput, UpdateWhatsAppFlowAssetsCommandOutput } from "./commands/UpdateWhatsAppFlowAssetsCommand";
38
+ import type { UpdateWhatsAppFlowCommandInput, UpdateWhatsAppFlowCommandOutput } from "./commands/UpdateWhatsAppFlowCommand";
29
39
  import type { UpdateWhatsAppMessageTemplateCommandInput, UpdateWhatsAppMessageTemplateCommandOutput } from "./commands/UpdateWhatsAppMessageTemplateCommand";
30
40
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
31
41
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -33,11 +43,11 @@ export { __Client };
33
43
  /**
34
44
  * @public
35
45
  */
36
- export type ServiceInputTypes = AssociateWhatsAppBusinessAccountCommandInput | CreateWhatsAppMessageTemplateCommandInput | CreateWhatsAppMessageTemplateFromLibraryCommandInput | CreateWhatsAppMessageTemplateMediaCommandInput | DeleteWhatsAppMessageMediaCommandInput | DeleteWhatsAppMessageTemplateCommandInput | DisassociateWhatsAppBusinessAccountCommandInput | GetLinkedWhatsAppBusinessAccountCommandInput | GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput | GetWhatsAppMessageMediaCommandInput | GetWhatsAppMessageTemplateCommandInput | ListLinkedWhatsAppBusinessAccountsCommandInput | ListTagsForResourceCommandInput | ListWhatsAppMessageTemplatesCommandInput | ListWhatsAppTemplateLibraryCommandInput | PostWhatsAppMessageMediaCommandInput | PutWhatsAppBusinessAccountEventDestinationsCommandInput | SendWhatsAppMessageCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateWhatsAppMessageTemplateCommandInput;
46
+ export type ServiceInputTypes = AssociateWhatsAppBusinessAccountCommandInput | CreateWhatsAppFlowCommandInput | CreateWhatsAppMessageTemplateCommandInput | CreateWhatsAppMessageTemplateFromLibraryCommandInput | CreateWhatsAppMessageTemplateMediaCommandInput | DeleteWhatsAppFlowCommandInput | DeleteWhatsAppMessageMediaCommandInput | DeleteWhatsAppMessageTemplateCommandInput | DeprecateWhatsAppFlowCommandInput | DisassociateWhatsAppBusinessAccountCommandInput | GetLinkedWhatsAppBusinessAccountCommandInput | GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput | GetWhatsAppFlowCommandInput | GetWhatsAppFlowPreviewCommandInput | GetWhatsAppMessageMediaCommandInput | GetWhatsAppMessageTemplateCommandInput | ListLinkedWhatsAppBusinessAccountsCommandInput | ListTagsForResourceCommandInput | ListWhatsAppFlowAssetsCommandInput | ListWhatsAppFlowsCommandInput | ListWhatsAppMessageTemplatesCommandInput | ListWhatsAppTemplateLibraryCommandInput | PostWhatsAppMessageMediaCommandInput | PublishWhatsAppFlowCommandInput | PutWhatsAppBusinessAccountEventDestinationsCommandInput | SendWhatsAppMessageCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateWhatsAppFlowAssetsCommandInput | UpdateWhatsAppFlowCommandInput | UpdateWhatsAppMessageTemplateCommandInput;
37
47
  /**
38
48
  * @public
39
49
  */
40
- export type ServiceOutputTypes = AssociateWhatsAppBusinessAccountCommandOutput | CreateWhatsAppMessageTemplateCommandOutput | CreateWhatsAppMessageTemplateFromLibraryCommandOutput | CreateWhatsAppMessageTemplateMediaCommandOutput | DeleteWhatsAppMessageMediaCommandOutput | DeleteWhatsAppMessageTemplateCommandOutput | DisassociateWhatsAppBusinessAccountCommandOutput | GetLinkedWhatsAppBusinessAccountCommandOutput | GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput | GetWhatsAppMessageMediaCommandOutput | GetWhatsAppMessageTemplateCommandOutput | ListLinkedWhatsAppBusinessAccountsCommandOutput | ListTagsForResourceCommandOutput | ListWhatsAppMessageTemplatesCommandOutput | ListWhatsAppTemplateLibraryCommandOutput | PostWhatsAppMessageMediaCommandOutput | PutWhatsAppBusinessAccountEventDestinationsCommandOutput | SendWhatsAppMessageCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateWhatsAppMessageTemplateCommandOutput;
50
+ export type ServiceOutputTypes = AssociateWhatsAppBusinessAccountCommandOutput | CreateWhatsAppFlowCommandOutput | CreateWhatsAppMessageTemplateCommandOutput | CreateWhatsAppMessageTemplateFromLibraryCommandOutput | CreateWhatsAppMessageTemplateMediaCommandOutput | DeleteWhatsAppFlowCommandOutput | DeleteWhatsAppMessageMediaCommandOutput | DeleteWhatsAppMessageTemplateCommandOutput | DeprecateWhatsAppFlowCommandOutput | DisassociateWhatsAppBusinessAccountCommandOutput | GetLinkedWhatsAppBusinessAccountCommandOutput | GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput | GetWhatsAppFlowCommandOutput | GetWhatsAppFlowPreviewCommandOutput | GetWhatsAppMessageMediaCommandOutput | GetWhatsAppMessageTemplateCommandOutput | ListLinkedWhatsAppBusinessAccountsCommandOutput | ListTagsForResourceCommandOutput | ListWhatsAppFlowAssetsCommandOutput | ListWhatsAppFlowsCommandOutput | ListWhatsAppMessageTemplatesCommandOutput | ListWhatsAppTemplateLibraryCommandOutput | PostWhatsAppMessageMediaCommandOutput | PublishWhatsAppFlowCommandOutput | PutWhatsAppBusinessAccountEventDestinationsCommandOutput | SendWhatsAppMessageCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateWhatsAppFlowAssetsCommandOutput | UpdateWhatsAppFlowCommandOutput | UpdateWhatsAppMessageTemplateCommandOutput;
41
51
  /**
42
52
  * @public
43
53
  */
@@ -0,0 +1,113 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CreateWhatsAppFlowInput, CreateWhatsAppFlowOutput } from "../models/models_0";
4
+ import type { 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 CreateWhatsAppFlowCommand}.
14
+ */
15
+ export interface CreateWhatsAppFlowCommandInput extends CreateWhatsAppFlowInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateWhatsAppFlowCommand}.
21
+ */
22
+ export interface CreateWhatsAppFlowCommandOutput extends CreateWhatsAppFlowOutput, __MetadataBearer {
23
+ }
24
+ declare const CreateWhatsAppFlowCommand_base: {
25
+ new (input: CreateWhatsAppFlowCommandInput): import("@smithy/core/client").CommandImpl<CreateWhatsAppFlowCommandInput, CreateWhatsAppFlowCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateWhatsAppFlowCommandInput): import("@smithy/core/client").CommandImpl<CreateWhatsAppFlowCommandInput, CreateWhatsAppFlowCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Creates a new WhatsApp Flow. Flows enable businesses to create rich, interactive forms and experiences
33
+ * that users can complete without leaving WhatsApp. The Flow is created in DRAFT status. If <code>publish</code>
34
+ * is set to <code>true</code> and a valid <code>flowJson</code> is provided, the Flow is published immediately.</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { SocialMessagingClient, CreateWhatsAppFlowCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
39
+ * // const { SocialMessagingClient, CreateWhatsAppFlowCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
40
+ * // import type { SocialMessagingClientConfig } from "@aws-sdk/client-socialmessaging";
41
+ * const config = {}; // type is SocialMessagingClientConfig
42
+ * const client = new SocialMessagingClient(config);
43
+ * const input = { // CreateWhatsAppFlowInput
44
+ * id: "STRING_VALUE", // required
45
+ * flowName: "STRING_VALUE", // required
46
+ * categories: [ // MetaFlowCategoryList // required
47
+ * "SIGN_UP" || "SIGN_IN" || "APPOINTMENT_BOOKING" || "LEAD_GENERATION" || "SHOPPING" || "CONTACT_US" || "CUSTOMER_SUPPORT" || "SURVEY" || "OTHER",
48
+ * ],
49
+ * flowJson: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
50
+ * publish: true || false,
51
+ * cloneFlowId: "STRING_VALUE",
52
+ * };
53
+ * const command = new CreateWhatsAppFlowCommand(input);
54
+ * const response = await client.send(command);
55
+ * // { // CreateWhatsAppFlowOutput
56
+ * // flowId: "STRING_VALUE",
57
+ * // validationErrors: [ // ValidationErrorList
58
+ * // "STRING_VALUE",
59
+ * // ],
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param CreateWhatsAppFlowCommandInput - {@link CreateWhatsAppFlowCommandInput}
65
+ * @returns {@link CreateWhatsAppFlowCommandOutput}
66
+ * @see {@link CreateWhatsAppFlowCommandInput} for command's `input` shape.
67
+ * @see {@link CreateWhatsAppFlowCommandOutput} for command's `response` shape.
68
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDeniedByMetaException} (client fault)
71
+ * <p>You do not have sufficient access to perform this action.</p>
72
+ *
73
+ * @throws {@link DependencyException} (server fault)
74
+ * <p>Thrown when performing an action because a dependency would be broken.</p>
75
+ *
76
+ * @throws {@link InternalServiceException} (server fault)
77
+ * <p>The request processing has failed because of an unknown error, exception, or
78
+ * failure.</p>
79
+ *
80
+ * @throws {@link InvalidParametersException} (client fault)
81
+ * <p>One or more parameters provided to the action are not valid.</p>
82
+ *
83
+ * @throws {@link ResourceNotFoundException} (client fault)
84
+ * <p>The resource was not found.</p>
85
+ *
86
+ * @throws {@link ThrottledRequestException} (client fault)
87
+ * <p>The request was denied due to request throttling.</p>
88
+ *
89
+ * @throws {@link AccessDeniedException} (client fault)
90
+ * <p>You do not have sufficient access to perform this action.</p>
91
+ *
92
+ * @throws {@link ValidationException} (client fault)
93
+ * <p>The request contains an invalid parameter value. </p>
94
+ *
95
+ * @throws {@link SocialMessagingServiceException}
96
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
97
+ *
98
+ *
99
+ * @public
100
+ */
101
+ export declare class CreateWhatsAppFlowCommand extends CreateWhatsAppFlowCommand_base {
102
+ /** @internal type navigation helper, not in runtime. */
103
+ protected static __types: {
104
+ api: {
105
+ input: CreateWhatsAppFlowInput;
106
+ output: CreateWhatsAppFlowOutput;
107
+ };
108
+ sdk: {
109
+ input: CreateWhatsAppFlowCommandInput;
110
+ output: CreateWhatsAppFlowCommandOutput;
111
+ };
112
+ };
113
+ }
@@ -61,6 +61,9 @@ declare const CreateWhatsAppMessageTemplateCommand_base: {
61
61
  * @see {@link CreateWhatsAppMessageTemplateCommandOutput} for command's `response` shape.
62
62
  * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
63
63
  *
64
+ * @throws {@link AccessDeniedByMetaException} (client fault)
65
+ * <p>You do not have sufficient access to perform this action.</p>
66
+ *
64
67
  * @throws {@link DependencyException} (server fault)
65
68
  * <p>Thrown when performing an action because a dependency would be broken.</p>
66
69
  *
@@ -86,6 +86,9 @@ declare const CreateWhatsAppMessageTemplateFromLibraryCommand_base: {
86
86
  * @see {@link CreateWhatsAppMessageTemplateFromLibraryCommandOutput} for command's `response` shape.
87
87
  * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
88
88
  *
89
+ * @throws {@link AccessDeniedByMetaException} (client fault)
90
+ * <p>You do not have sufficient access to perform this action.</p>
91
+ *
89
92
  * @throws {@link DependencyException} (server fault)
90
93
  * <p>Thrown when performing an action because a dependency would be broken.</p>
91
94
  *
@@ -59,6 +59,9 @@ declare const CreateWhatsAppMessageTemplateMediaCommand_base: {
59
59
  * @see {@link CreateWhatsAppMessageTemplateMediaCommandOutput} for command's `response` shape.
60
60
  * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
61
61
  *
62
+ * @throws {@link AccessDeniedByMetaException} (client fault)
63
+ * <p>You do not have sufficient access to perform this action.</p>
64
+ *
62
65
  * @throws {@link DependencyException} (server fault)
63
66
  * <p>Thrown when performing an action because a dependency would be broken.</p>
64
67
  *
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeleteWhatsAppFlowInput, DeleteWhatsAppFlowOutput } from "../models/models_0";
4
+ import type { 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 DeleteWhatsAppFlowCommand}.
14
+ */
15
+ export interface DeleteWhatsAppFlowCommandInput extends DeleteWhatsAppFlowInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteWhatsAppFlowCommand}.
21
+ */
22
+ export interface DeleteWhatsAppFlowCommandOutput extends DeleteWhatsAppFlowOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteWhatsAppFlowCommand_base: {
25
+ new (input: DeleteWhatsAppFlowCommandInput): import("@smithy/core/client").CommandImpl<DeleteWhatsAppFlowCommandInput, DeleteWhatsAppFlowCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteWhatsAppFlowCommandInput): import("@smithy/core/client").CommandImpl<DeleteWhatsAppFlowCommandInput, DeleteWhatsAppFlowCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Deletes a WhatsApp Flow permanently. Only Flows in DRAFT status can be deleted. Published or deprecated Flows cannot be deleted.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { SocialMessagingClient, DeleteWhatsAppFlowCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
37
+ * // const { SocialMessagingClient, DeleteWhatsAppFlowCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
38
+ * // import type { SocialMessagingClientConfig } from "@aws-sdk/client-socialmessaging";
39
+ * const config = {}; // type is SocialMessagingClientConfig
40
+ * const client = new SocialMessagingClient(config);
41
+ * const input = { // DeleteWhatsAppFlowInput
42
+ * id: "STRING_VALUE", // required
43
+ * flowId: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new DeleteWhatsAppFlowCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param DeleteWhatsAppFlowCommandInput - {@link DeleteWhatsAppFlowCommandInput}
52
+ * @returns {@link DeleteWhatsAppFlowCommandOutput}
53
+ * @see {@link DeleteWhatsAppFlowCommandInput} for command's `input` shape.
54
+ * @see {@link DeleteWhatsAppFlowCommandOutput} for command's `response` shape.
55
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedByMetaException} (client fault)
58
+ * <p>You do not have sufficient access to perform this action.</p>
59
+ *
60
+ * @throws {@link DependencyException} (server fault)
61
+ * <p>Thrown when performing an action because a dependency would be broken.</p>
62
+ *
63
+ * @throws {@link InternalServiceException} (server fault)
64
+ * <p>The request processing has failed because of an unknown error, exception, or
65
+ * failure.</p>
66
+ *
67
+ * @throws {@link InvalidParametersException} (client fault)
68
+ * <p>One or more parameters provided to the action are not valid.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The resource was not found.</p>
72
+ *
73
+ * @throws {@link ThrottledRequestException} (client fault)
74
+ * <p>The request was denied due to request throttling.</p>
75
+ *
76
+ * @throws {@link AccessDeniedException} (client fault)
77
+ * <p>You do not have sufficient access to perform this action.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>The request contains an invalid parameter value. </p>
81
+ *
82
+ * @throws {@link SocialMessagingServiceException}
83
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
84
+ *
85
+ *
86
+ * @public
87
+ */
88
+ export declare class DeleteWhatsAppFlowCommand extends DeleteWhatsAppFlowCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: DeleteWhatsAppFlowInput;
93
+ output: {};
94
+ };
95
+ sdk: {
96
+ input: DeleteWhatsAppFlowCommandInput;
97
+ output: DeleteWhatsAppFlowCommandOutput;
98
+ };
99
+ };
100
+ }
@@ -56,6 +56,9 @@ declare const DeleteWhatsAppMessageTemplateCommand_base: {
56
56
  * @see {@link DeleteWhatsAppMessageTemplateCommandOutput} for command's `response` shape.
57
57
  * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
58
58
  *
59
+ * @throws {@link AccessDeniedByMetaException} (client fault)
60
+ * <p>You do not have sufficient access to perform this action.</p>
61
+ *
59
62
  * @throws {@link DependencyException} (server fault)
60
63
  * <p>Thrown when performing an action because a dependency would be broken.</p>
61
64
  *
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeprecateWhatsAppFlowInput, DeprecateWhatsAppFlowOutput } from "../models/models_0";
4
+ import type { 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 DeprecateWhatsAppFlowCommand}.
14
+ */
15
+ export interface DeprecateWhatsAppFlowCommandInput extends DeprecateWhatsAppFlowInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeprecateWhatsAppFlowCommand}.
21
+ */
22
+ export interface DeprecateWhatsAppFlowCommandOutput extends DeprecateWhatsAppFlowOutput, __MetadataBearer {
23
+ }
24
+ declare const DeprecateWhatsAppFlowCommand_base: {
25
+ new (input: DeprecateWhatsAppFlowCommandInput): import("@smithy/core/client").CommandImpl<DeprecateWhatsAppFlowCommandInput, DeprecateWhatsAppFlowCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeprecateWhatsAppFlowCommandInput): import("@smithy/core/client").CommandImpl<DeprecateWhatsAppFlowCommandInput, DeprecateWhatsAppFlowCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Deprecates a published WhatsApp Flow, marking it as no longer recommended for use. The Flow must be in PUBLISHED status. This is an irreversible operation.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { SocialMessagingClient, DeprecateWhatsAppFlowCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
37
+ * // const { SocialMessagingClient, DeprecateWhatsAppFlowCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
38
+ * // import type { SocialMessagingClientConfig } from "@aws-sdk/client-socialmessaging";
39
+ * const config = {}; // type is SocialMessagingClientConfig
40
+ * const client = new SocialMessagingClient(config);
41
+ * const input = { // DeprecateWhatsAppFlowInput
42
+ * id: "STRING_VALUE", // required
43
+ * flowId: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new DeprecateWhatsAppFlowCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param DeprecateWhatsAppFlowCommandInput - {@link DeprecateWhatsAppFlowCommandInput}
52
+ * @returns {@link DeprecateWhatsAppFlowCommandOutput}
53
+ * @see {@link DeprecateWhatsAppFlowCommandInput} for command's `input` shape.
54
+ * @see {@link DeprecateWhatsAppFlowCommandOutput} for command's `response` shape.
55
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedByMetaException} (client fault)
58
+ * <p>You do not have sufficient access to perform this action.</p>
59
+ *
60
+ * @throws {@link DependencyException} (server fault)
61
+ * <p>Thrown when performing an action because a dependency would be broken.</p>
62
+ *
63
+ * @throws {@link InternalServiceException} (server fault)
64
+ * <p>The request processing has failed because of an unknown error, exception, or
65
+ * failure.</p>
66
+ *
67
+ * @throws {@link InvalidParametersException} (client fault)
68
+ * <p>One or more parameters provided to the action are not valid.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The resource was not found.</p>
72
+ *
73
+ * @throws {@link ThrottledRequestException} (client fault)
74
+ * <p>The request was denied due to request throttling.</p>
75
+ *
76
+ * @throws {@link AccessDeniedException} (client fault)
77
+ * <p>You do not have sufficient access to perform this action.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>The request contains an invalid parameter value. </p>
81
+ *
82
+ * @throws {@link SocialMessagingServiceException}
83
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
84
+ *
85
+ *
86
+ * @public
87
+ */
88
+ export declare class DeprecateWhatsAppFlowCommand extends DeprecateWhatsAppFlowCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: DeprecateWhatsAppFlowInput;
93
+ output: {};
94
+ };
95
+ sdk: {
96
+ input: DeprecateWhatsAppFlowCommandInput;
97
+ output: DeprecateWhatsAppFlowCommandOutput;
98
+ };
99
+ };
100
+ }