@aws-sdk/client-socialmessaging 3.687.0 → 3.691.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.
@@ -38,7 +38,7 @@ export interface Tag {
38
38
  * <p>The tag value.</p>
39
39
  * @public
40
40
  */
41
- value?: string;
41
+ value?: string | undefined;
42
42
  }
43
43
  /**
44
44
  * <p>The registration details for a linked phone number.</p>
@@ -146,12 +146,12 @@ export interface WabaPhoneNumberSetupFinalization {
146
146
  * </ul>
147
147
  * @public
148
148
  */
149
- dataLocalizationRegion?: string;
149
+ dataLocalizationRegion?: string | undefined;
150
150
  /**
151
151
  * <p>An array of key and value pair tags.</p>
152
152
  * @public
153
153
  */
154
- tags?: Tag[];
154
+ tags?: Tag[] | undefined;
155
155
  }
156
156
  /**
157
157
  * <p>Contains information on the event destination.</p>
@@ -173,17 +173,17 @@ export interface WabaSetupFinalization {
173
173
  * <p>The ID of the linked WhatsApp Business Account, formatted as <code>waba-01234567890123456789012345678901</code>.</p>
174
174
  * @public
175
175
  */
176
- id?: string;
176
+ id?: string | undefined;
177
177
  /**
178
178
  * <p>The event destinations for the linked WhatsApp Business Account.</p>
179
179
  * @public
180
180
  */
181
- eventDestinations?: WhatsAppBusinessAccountEventDestination[];
181
+ eventDestinations?: WhatsAppBusinessAccountEventDestination[] | undefined;
182
182
  /**
183
183
  * <p>An array of key and value pair tags.</p>
184
184
  * @public
185
185
  */
186
- tags?: Tag[];
186
+ tags?: Tag[] | undefined;
187
187
  }
188
188
  /**
189
189
  * <p>The details of linking a WhatsApp Business Account to your Amazon Web Services account.</p>
@@ -204,12 +204,12 @@ export interface WhatsAppSetupFinalization {
204
204
  * <p>Used to add a new phone number to an existing WhatsApp Business Account. This field can't be used when the <code>waba</code> field is present.</p>
205
205
  * @public
206
206
  */
207
- phoneNumberParent?: string;
207
+ phoneNumberParent?: string | undefined;
208
208
  /**
209
209
  * <p>Used to create a new WhatsApp Business Account and add a phone number. This field can't be used when the <code>phoneNumberParent</code> field is present.</p>
210
210
  * @public
211
211
  */
212
- waba?: WabaSetupFinalization;
212
+ waba?: WabaSetupFinalization | undefined;
213
213
  }
214
214
  /**
215
215
  * <p>Contains the <code>accessToken</code> provided by Meta during signup.</p>
@@ -230,12 +230,12 @@ export interface AssociateWhatsAppBusinessAccountInput {
230
230
  * <p>Contains the callback access token.</p>
231
231
  * @public
232
232
  */
233
- signupCallback?: WhatsAppSignupCallback;
233
+ signupCallback?: WhatsAppSignupCallback | undefined;
234
234
  /**
235
235
  * <p>A JSON object that contains the phone numbers and WhatsApp Business Account to link to your account.</p>
236
236
  * @public
237
237
  */
238
- setupFinalization?: WhatsAppSetupFinalization;
238
+ setupFinalization?: WhatsAppSetupFinalization | undefined;
239
239
  }
240
240
  /**
241
241
  * @public
@@ -300,17 +300,17 @@ export interface LinkedWhatsAppBusinessAccountIdMetaData {
300
300
  * <p>The name of your account.</p>
301
301
  * @public
302
302
  */
303
- accountName?: string;
303
+ accountName?: string | undefined;
304
304
  /**
305
305
  * <p>The registration status of the linked WhatsApp Business Account.</p>
306
306
  * @public
307
307
  */
308
- registrationStatus?: RegistrationStatus;
308
+ registrationStatus?: RegistrationStatus | undefined;
309
309
  /**
310
310
  * <p>The details for unregistered WhatsApp phone numbers.</p>
311
311
  * @public
312
312
  */
313
- unregisteredWhatsAppPhoneNumbers?: WhatsAppPhoneNumberDetail[];
313
+ unregisteredWhatsAppPhoneNumbers?: WhatsAppPhoneNumberDetail[] | undefined;
314
314
  }
315
315
  /**
316
316
  * <p>Contains the results of WhatsAppSignupCallback.</p>
@@ -321,12 +321,12 @@ export interface WhatsAppSignupCallbackResult {
321
321
  * <p>An Amazon Web Services access token generated by <code>WhatsAppSignupCallback</code> and used by <code>WhatsAppSetupFinalization</code>.</p>
322
322
  * @public
323
323
  */
324
- associateInProgressToken?: string;
324
+ associateInProgressToken?: string | undefined;
325
325
  /**
326
326
  * <p>A LinkedWhatsAppBusinessAccountIdMetaData object map containing the details of any WhatsAppBusiness accounts that have incomplete setup.</p>
327
327
  * @public
328
328
  */
329
- linkedAccountsWithIncompleteSetup?: Record<string, LinkedWhatsAppBusinessAccountIdMetaData>;
329
+ linkedAccountsWithIncompleteSetup?: Record<string, LinkedWhatsAppBusinessAccountIdMetaData> | undefined;
330
330
  }
331
331
  /**
332
332
  * @public
@@ -336,12 +336,12 @@ export interface AssociateWhatsAppBusinessAccountOutput {
336
336
  * <p>Contains your WhatsApp registration status.</p>
337
337
  * @public
338
338
  */
339
- signupCallbackResult?: WhatsAppSignupCallbackResult;
339
+ signupCallbackResult?: WhatsAppSignupCallbackResult | undefined;
340
340
  /**
341
341
  * <p>The status code for the response.</p>
342
342
  * @public
343
343
  */
344
- statusCode?: number;
344
+ statusCode?: number | undefined;
345
345
  }
346
346
  /**
347
347
  * <p>Thrown when performing an action because a dependency would be broken.</p>
@@ -420,7 +420,7 @@ export interface DeleteWhatsAppMessageMediaOutput {
420
420
  * <p>Success indicator for deleting the media file.</p>
421
421
  * @public
422
422
  */
423
- success?: boolean;
423
+ success?: boolean | undefined;
424
424
  }
425
425
  /**
426
426
  * <p>The request processing has failed because of an unknown error, exception, or
@@ -573,7 +573,7 @@ export interface GetLinkedWhatsAppBusinessAccountOutput {
573
573
  * <p>The details of the linked WhatsApp Business Account.</p>
574
574
  * @public
575
575
  */
576
- account?: LinkedWhatsAppBusinessAccount;
576
+ account?: LinkedWhatsAppBusinessAccount | undefined;
577
577
  }
578
578
  /**
579
579
  * @public
@@ -596,13 +596,13 @@ export interface GetLinkedWhatsAppBusinessAccountPhoneNumberOutput {
596
596
  * <p>The details of your WhatsApp phone number.</p>
597
597
  * @public
598
598
  */
599
- phoneNumber?: WhatsAppPhoneNumberDetail;
599
+ phoneNumber?: WhatsAppPhoneNumberDetail | undefined;
600
600
  /**
601
601
  * <p>The WABA identifier linked to the phone number, formatted as
602
602
  * <code>waba-01234567890123456789012345678901</code>.</p>
603
603
  * @public
604
604
  */
605
- linkedWhatsAppBusinessAccountId?: string;
605
+ linkedWhatsAppBusinessAccountId?: string | undefined;
606
606
  }
607
607
  /**
608
608
  * <p>Contains information for the S3 bucket that contains media files.</p>
@@ -661,17 +661,17 @@ export interface GetWhatsAppMessageMediaInput {
661
661
  * <p>Set to <code>True</code> to get only the metadata for the file.</p>
662
662
  * @public
663
663
  */
664
- metadataOnly?: boolean;
664
+ metadataOnly?: boolean | undefined;
665
665
  /**
666
666
  * <p>The presign url of the media file.</p>
667
667
  * @public
668
668
  */
669
- destinationS3PresignedUrl?: S3PresignedUrl;
669
+ destinationS3PresignedUrl?: S3PresignedUrl | undefined;
670
670
  /**
671
671
  * <p>The <code>bucketName</code> and <code>key</code> of the S3 media file.</p>
672
672
  * @public
673
673
  */
674
- destinationS3File?: S3File;
674
+ destinationS3File?: S3File | undefined;
675
675
  }
676
676
  /**
677
677
  * @public
@@ -681,12 +681,12 @@ export interface GetWhatsAppMessageMediaOutput {
681
681
  * <p>The MIME type of the media.</p>
682
682
  * @public
683
683
  */
684
- mimeType?: string;
684
+ mimeType?: string | undefined;
685
685
  /**
686
686
  * <p>The file size of the media, in KB.</p>
687
687
  * @public
688
688
  */
689
- fileSize?: number;
689
+ fileSize?: number | undefined;
690
690
  }
691
691
  /**
692
692
  * @public
@@ -696,12 +696,12 @@ export interface ListLinkedWhatsAppBusinessAccountsInput {
696
696
  * <p>The next token for pagination.</p>
697
697
  * @public
698
698
  */
699
- nextToken?: string;
699
+ nextToken?: string | undefined;
700
700
  /**
701
701
  * <p>The maximum number of results to return.</p>
702
702
  * @public
703
703
  */
704
- maxResults?: number;
704
+ maxResults?: number | undefined;
705
705
  }
706
706
  /**
707
707
  * <p>The details of a linked WhatsApp Business Account.</p>
@@ -752,12 +752,12 @@ export interface ListLinkedWhatsAppBusinessAccountsOutput {
752
752
  * <p>A list of WhatsApp Business Accounts linked to your Amazon Web Services account.</p>
753
753
  * @public
754
754
  */
755
- linkedAccounts?: LinkedWhatsAppBusinessAccountSummary[];
755
+ linkedAccounts?: LinkedWhatsAppBusinessAccountSummary[] | undefined;
756
756
  /**
757
757
  * <p>The next token for pagination.</p>
758
758
  * @public
759
759
  */
760
- nextToken?: string;
760
+ nextToken?: string | undefined;
761
761
  }
762
762
  /**
763
763
  * @public
@@ -797,12 +797,12 @@ export interface PostWhatsAppMessageMediaInput {
797
797
  * <p>The source presign url of the media file.</p>
798
798
  * @public
799
799
  */
800
- sourceS3PresignedUrl?: S3PresignedUrl;
800
+ sourceS3PresignedUrl?: S3PresignedUrl | undefined;
801
801
  /**
802
802
  * <p>The source S3 url for the media file.</p>
803
803
  * @public
804
804
  */
805
- sourceS3File?: S3File;
805
+ sourceS3File?: S3File | undefined;
806
806
  }
807
807
  /**
808
808
  * @public
@@ -812,7 +812,7 @@ export interface PostWhatsAppMessageMediaOutput {
812
812
  * <p>The unique identifier of the posted WhatsApp message.</p>
813
813
  * @public
814
814
  */
815
- mediaId?: string;
815
+ mediaId?: string | undefined;
816
816
  }
817
817
  /**
818
818
  * @public
@@ -850,7 +850,7 @@ export interface SendWhatsAppMessageOutput {
850
850
  * <p>The unique identifier of the message.</p>
851
851
  * @public
852
852
  */
853
- messageId?: string;
853
+ messageId?: string | undefined;
854
854
  }
855
855
  /**
856
856
  * @public
@@ -870,12 +870,12 @@ export interface ListTagsForResourceOutput {
870
870
  * <p>The status code of the response.</p>
871
871
  * @public
872
872
  */
873
- statusCode?: number;
873
+ statusCode?: number | undefined;
874
874
  /**
875
875
  * <p>The tags for the resource.</p>
876
876
  * @public
877
877
  */
878
- tags?: Tag[];
878
+ tags?: Tag[] | undefined;
879
879
  }
880
880
  /**
881
881
  * @public
@@ -900,7 +900,7 @@ export interface TagResourceOutput {
900
900
  * <p>The status code of the tag resource operation.</p>
901
901
  * @public
902
902
  */
903
- statusCode?: number;
903
+ statusCode?: number | undefined;
904
904
  }
905
905
  /**
906
906
  * @public
@@ -925,7 +925,7 @@ export interface UntagResourceOutput {
925
925
  * <p>The status code of the untag resource operation.</p>
926
926
  * @public
927
927
  */
928
- statusCode?: number;
928
+ statusCode?: number | undefined;
929
929
  }
930
930
  /**
931
931
  * @internal
@@ -16,34 +16,34 @@ export declare class AccessDeniedException extends __BaseException {
16
16
  }
17
17
  export interface Tag {
18
18
  key: string | undefined;
19
- value?: string;
19
+ value?: string | undefined;
20
20
  }
21
21
  export interface WabaPhoneNumberSetupFinalization {
22
22
  id: string | undefined;
23
23
  twoFactorPin: string | undefined;
24
- dataLocalizationRegion?: string;
25
- tags?: Tag[];
24
+ dataLocalizationRegion?: string | undefined;
25
+ tags?: Tag[] | undefined;
26
26
  }
27
27
  export interface WhatsAppBusinessAccountEventDestination {
28
28
  eventDestinationArn: string | undefined;
29
29
  }
30
30
  export interface WabaSetupFinalization {
31
- id?: string;
32
- eventDestinations?: WhatsAppBusinessAccountEventDestination[];
33
- tags?: Tag[];
31
+ id?: string | undefined;
32
+ eventDestinations?: WhatsAppBusinessAccountEventDestination[] | undefined;
33
+ tags?: Tag[] | undefined;
34
34
  }
35
35
  export interface WhatsAppSetupFinalization {
36
36
  associateInProgressToken: string | undefined;
37
37
  phoneNumbers: WabaPhoneNumberSetupFinalization[] | undefined;
38
- phoneNumberParent?: string;
39
- waba?: WabaSetupFinalization;
38
+ phoneNumberParent?: string | undefined;
39
+ waba?: WabaSetupFinalization | undefined;
40
40
  }
41
41
  export interface WhatsAppSignupCallback {
42
42
  accessToken: string | undefined;
43
43
  }
44
44
  export interface AssociateWhatsAppBusinessAccountInput {
45
- signupCallback?: WhatsAppSignupCallback;
46
- setupFinalization?: WhatsAppSetupFinalization;
45
+ signupCallback?: WhatsAppSignupCallback | undefined;
46
+ setupFinalization?: WhatsAppSetupFinalization | undefined;
47
47
  }
48
48
  export declare const RegistrationStatus: {
49
49
  readonly COMPLETE: "COMPLETE";
@@ -61,20 +61,19 @@ export interface WhatsAppPhoneNumberDetail {
61
61
  qualityRating: string | undefined;
62
62
  }
63
63
  export interface LinkedWhatsAppBusinessAccountIdMetaData {
64
- accountName?: string;
65
- registrationStatus?: RegistrationStatus;
66
- unregisteredWhatsAppPhoneNumbers?: WhatsAppPhoneNumberDetail[];
64
+ accountName?: string | undefined;
65
+ registrationStatus?: RegistrationStatus | undefined;
66
+ unregisteredWhatsAppPhoneNumbers?: WhatsAppPhoneNumberDetail[] | undefined;
67
67
  }
68
68
  export interface WhatsAppSignupCallbackResult {
69
- associateInProgressToken?: string;
70
- linkedAccountsWithIncompleteSetup?: Record<
71
- string,
72
- LinkedWhatsAppBusinessAccountIdMetaData
73
- >;
69
+ associateInProgressToken?: string | undefined;
70
+ linkedAccountsWithIncompleteSetup?:
71
+ | Record<string, LinkedWhatsAppBusinessAccountIdMetaData>
72
+ | undefined;
74
73
  }
75
74
  export interface AssociateWhatsAppBusinessAccountOutput {
76
- signupCallbackResult?: WhatsAppSignupCallbackResult;
77
- statusCode?: number;
75
+ signupCallbackResult?: WhatsAppSignupCallbackResult | undefined;
76
+ statusCode?: number | undefined;
78
77
  }
79
78
  export declare class DependencyException extends __BaseException {
80
79
  readonly name: "DependencyException";
@@ -111,7 +110,7 @@ export interface DeleteWhatsAppMessageMediaInput {
111
110
  originationPhoneNumberId: string | undefined;
112
111
  }
113
112
  export interface DeleteWhatsAppMessageMediaOutput {
114
- success?: boolean;
113
+ success?: boolean | undefined;
115
114
  }
116
115
  export declare class InternalServiceException extends __BaseException {
117
116
  readonly name: "InternalServiceException";
@@ -155,14 +154,14 @@ export interface LinkedWhatsAppBusinessAccount {
155
154
  phoneNumbers: WhatsAppPhoneNumberSummary[] | undefined;
156
155
  }
157
156
  export interface GetLinkedWhatsAppBusinessAccountOutput {
158
- account?: LinkedWhatsAppBusinessAccount;
157
+ account?: LinkedWhatsAppBusinessAccount | undefined;
159
158
  }
160
159
  export interface GetLinkedWhatsAppBusinessAccountPhoneNumberInput {
161
160
  id: string | undefined;
162
161
  }
163
162
  export interface GetLinkedWhatsAppBusinessAccountPhoneNumberOutput {
164
- phoneNumber?: WhatsAppPhoneNumberDetail;
165
- linkedWhatsAppBusinessAccountId?: string;
163
+ phoneNumber?: WhatsAppPhoneNumberDetail | undefined;
164
+ linkedWhatsAppBusinessAccountId?: string | undefined;
166
165
  }
167
166
  export interface S3File {
168
167
  bucketName: string | undefined;
@@ -175,17 +174,17 @@ export interface S3PresignedUrl {
175
174
  export interface GetWhatsAppMessageMediaInput {
176
175
  mediaId: string | undefined;
177
176
  originationPhoneNumberId: string | undefined;
178
- metadataOnly?: boolean;
179
- destinationS3PresignedUrl?: S3PresignedUrl;
180
- destinationS3File?: S3File;
177
+ metadataOnly?: boolean | undefined;
178
+ destinationS3PresignedUrl?: S3PresignedUrl | undefined;
179
+ destinationS3File?: S3File | undefined;
181
180
  }
182
181
  export interface GetWhatsAppMessageMediaOutput {
183
- mimeType?: string;
184
- fileSize?: number;
182
+ mimeType?: string | undefined;
183
+ fileSize?: number | undefined;
185
184
  }
186
185
  export interface ListLinkedWhatsAppBusinessAccountsInput {
187
- nextToken?: string;
188
- maxResults?: number;
186
+ nextToken?: string | undefined;
187
+ maxResults?: number | undefined;
189
188
  }
190
189
  export interface LinkedWhatsAppBusinessAccountSummary {
191
190
  arn: string | undefined;
@@ -197,8 +196,8 @@ export interface LinkedWhatsAppBusinessAccountSummary {
197
196
  eventDestinations: WhatsAppBusinessAccountEventDestination[] | undefined;
198
197
  }
199
198
  export interface ListLinkedWhatsAppBusinessAccountsOutput {
200
- linkedAccounts?: LinkedWhatsAppBusinessAccountSummary[];
201
- nextToken?: string;
199
+ linkedAccounts?: LinkedWhatsAppBusinessAccountSummary[] | undefined;
200
+ nextToken?: string | undefined;
202
201
  }
203
202
  export interface PutWhatsAppBusinessAccountEventDestinationsInput {
204
203
  id: string | undefined;
@@ -207,11 +206,11 @@ export interface PutWhatsAppBusinessAccountEventDestinationsInput {
207
206
  export interface PutWhatsAppBusinessAccountEventDestinationsOutput {}
208
207
  export interface PostWhatsAppMessageMediaInput {
209
208
  originationPhoneNumberId: string | undefined;
210
- sourceS3PresignedUrl?: S3PresignedUrl;
211
- sourceS3File?: S3File;
209
+ sourceS3PresignedUrl?: S3PresignedUrl | undefined;
210
+ sourceS3File?: S3File | undefined;
212
211
  }
213
212
  export interface PostWhatsAppMessageMediaOutput {
214
- mediaId?: string;
213
+ mediaId?: string | undefined;
215
214
  }
216
215
  export interface SendWhatsAppMessageInput {
217
216
  originationPhoneNumberId: string | undefined;
@@ -219,28 +218,28 @@ export interface SendWhatsAppMessageInput {
219
218
  metaApiVersion: string | undefined;
220
219
  }
221
220
  export interface SendWhatsAppMessageOutput {
222
- messageId?: string;
221
+ messageId?: string | undefined;
223
222
  }
224
223
  export interface ListTagsForResourceInput {
225
224
  resourceArn: string | undefined;
226
225
  }
227
226
  export interface ListTagsForResourceOutput {
228
- statusCode?: number;
229
- tags?: Tag[];
227
+ statusCode?: number | undefined;
228
+ tags?: Tag[] | undefined;
230
229
  }
231
230
  export interface TagResourceInput {
232
231
  resourceArn: string | undefined;
233
232
  tags: Tag[] | undefined;
234
233
  }
235
234
  export interface TagResourceOutput {
236
- statusCode?: number;
235
+ statusCode?: number | undefined;
237
236
  }
238
237
  export interface UntagResourceInput {
239
238
  resourceArn: string | undefined;
240
239
  tagKeys: string[] | undefined;
241
240
  }
242
241
  export interface UntagResourceOutput {
243
- statusCode?: number;
242
+ statusCode?: number | undefined;
244
243
  }
245
244
  export declare const WabaPhoneNumberSetupFinalizationFilterSensitiveLog: (
246
245
  obj: WabaPhoneNumberSetupFinalization
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-socialmessaging",
3
3
  "description": "AWS SDK for JavaScript Socialmessaging Client for Node.js, Browser and React Native",
4
- "version": "3.687.0",
4
+ "version": "3.691.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.687.0",
24
- "@aws-sdk/client-sts": "3.687.0",
25
- "@aws-sdk/core": "3.686.0",
26
- "@aws-sdk/credential-provider-node": "3.687.0",
23
+ "@aws-sdk/client-sso-oidc": "3.691.0",
24
+ "@aws-sdk/client-sts": "3.691.0",
25
+ "@aws-sdk/core": "3.691.0",
26
+ "@aws-sdk/credential-provider-node": "3.691.0",
27
27
  "@aws-sdk/middleware-host-header": "3.686.0",
28
28
  "@aws-sdk/middleware-logger": "3.686.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.686.0",
30
- "@aws-sdk/middleware-user-agent": "3.687.0",
30
+ "@aws-sdk/middleware-user-agent": "3.691.0",
31
31
  "@aws-sdk/region-config-resolver": "3.686.0",
32
32
  "@aws-sdk/types": "3.686.0",
33
33
  "@aws-sdk/util-endpoints": "3.686.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.686.0",
35
- "@aws-sdk/util-user-agent-node": "3.687.0",
35
+ "@aws-sdk/util-user-agent-node": "3.691.0",
36
36
  "@smithy/config-resolver": "^3.0.10",
37
37
  "@smithy/core": "^2.5.1",
38
38
  "@smithy/fetch-http-handler": "^4.0.0",