@aws-sdk/client-socialmessaging 3.1133.0 → 3.1135.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 (34) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +229 -16
  3. package/dist-es/SocialMessaging.js +6 -0
  4. package/dist-es/commands/GetWhatsAppCallPermissionCommand.js +4 -0
  5. package/dist-es/commands/SendWhatsAppCallEventCommand.js +4 -0
  6. package/dist-es/commands/UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +4 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/enums.js +9 -0
  9. package/dist-es/models/errors.js +12 -0
  10. package/dist-es/schemas/schemas_0.js +173 -16
  11. package/dist-types/SocialMessaging.d.ts +21 -0
  12. package/dist-types/SocialMessagingClient.d.ts +5 -2
  13. package/dist-types/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +35 -0
  14. package/dist-types/commands/GetWhatsAppBusinessPublicKeyCommand.d.ts +1 -1
  15. package/dist-types/commands/GetWhatsAppCallPermissionCommand.d.ts +115 -0
  16. package/dist-types/commands/PutWhatsAppBusinessPublicKeyCommand.d.ts +1 -1
  17. package/dist-types/commands/SendWhatsAppCallEventCommand.d.ts +101 -0
  18. package/dist-types/commands/UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +131 -0
  19. package/dist-types/commands/index.d.ts +3 -0
  20. package/dist-types/models/enums.d.ts +17 -0
  21. package/dist-types/models/errors.d.ts +12 -0
  22. package/dist-types/models/models_0.d.ts +279 -24
  23. package/dist-types/schemas/schemas_0.d.ts +18 -0
  24. package/dist-types/ts3.4/SocialMessaging.d.ts +51 -0
  25. package/dist-types/ts3.4/SocialMessagingClient.d.ts +18 -0
  26. package/dist-types/ts3.4/commands/GetWhatsAppCallPermissionCommand.d.ts +42 -0
  27. package/dist-types/ts3.4/commands/SendWhatsAppCallEventCommand.d.ts +39 -0
  28. package/dist-types/ts3.4/commands/UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +42 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  30. package/dist-types/ts3.4/models/enums.d.ts +10 -0
  31. package/dist-types/ts3.4/models/errors.d.ts +5 -0
  32. package/dist-types/ts3.4/models/models_0.d.ts +67 -1
  33. package/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
  34. package/package.json +1 -1
@@ -0,0 +1,39 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { SendWhatsAppCallEventInput, SendWhatsAppCallEventOutput } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface SendWhatsAppCallEventCommandInput extends SendWhatsAppCallEventInput {}
5
+ export interface SendWhatsAppCallEventCommandOutput
6
+ extends SendWhatsAppCallEventOutput, __MetadataBearer {}
7
+ declare const SendWhatsAppCallEventCommand_base: {
8
+ new (
9
+ input: SendWhatsAppCallEventCommandInput,
10
+ ): import("@smithy/core/client").CommandImpl<
11
+ SendWhatsAppCallEventCommandInput,
12
+ SendWhatsAppCallEventCommandOutput,
13
+ import("..").SocialMessagingClientResolvedConfig,
14
+ import("..").ServiceInputTypes,
15
+ import("..").ServiceOutputTypes
16
+ >;
17
+ new (
18
+ input: SendWhatsAppCallEventCommandInput,
19
+ ): import("@smithy/core/client").CommandImpl<
20
+ SendWhatsAppCallEventCommandInput,
21
+ SendWhatsAppCallEventCommandOutput,
22
+ import("..").SocialMessagingClientResolvedConfig,
23
+ import("..").ServiceInputTypes,
24
+ import("..").ServiceOutputTypes
25
+ >;
26
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
27
+ };
28
+ export declare class SendWhatsAppCallEventCommand extends SendWhatsAppCallEventCommand_base {
29
+ protected static __types: {
30
+ api: {
31
+ input: SendWhatsAppCallEventInput;
32
+ output: SendWhatsAppCallEventOutput;
33
+ };
34
+ sdk: {
35
+ input: SendWhatsAppCallEventCommandInput;
36
+ output: SendWhatsAppCallEventCommandOutput;
37
+ };
38
+ };
39
+ }
@@ -0,0 +1,42 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ UpdateLinkedWhatsAppBusinessAccountPhoneNumberInput,
4
+ UpdateLinkedWhatsAppBusinessAccountPhoneNumberOutput,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput extends UpdateLinkedWhatsAppBusinessAccountPhoneNumberInput {}
8
+ export interface UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput
9
+ extends UpdateLinkedWhatsAppBusinessAccountPhoneNumberOutput, __MetadataBearer {}
10
+ declare const UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand_base: {
11
+ new (
12
+ input: UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput,
13
+ ): import("@smithy/core/client").CommandImpl<
14
+ UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput,
15
+ UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput,
16
+ import("..").SocialMessagingClientResolvedConfig,
17
+ import("..").ServiceInputTypes,
18
+ import("..").ServiceOutputTypes
19
+ >;
20
+ new (
21
+ input: UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput,
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput,
24
+ UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput,
25
+ import("..").SocialMessagingClientResolvedConfig,
26
+ import("..").ServiceInputTypes,
27
+ import("..").ServiceOutputTypes
28
+ >;
29
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
+ };
31
+ export declare class UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand extends UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand_base {
32
+ protected static __types: {
33
+ api: {
34
+ input: UpdateLinkedWhatsAppBusinessAccountPhoneNumberInput;
35
+ output: UpdateLinkedWhatsAppBusinessAccountPhoneNumberOutput;
36
+ };
37
+ sdk: {
38
+ input: UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandInput;
39
+ output: UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput;
40
+ };
41
+ };
42
+ }
@@ -12,6 +12,7 @@ export * from "./DisassociateWhatsAppBusinessAccountCommand";
12
12
  export * from "./GetLinkedWhatsAppBusinessAccountCommand";
13
13
  export * from "./GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
14
14
  export * from "./GetWhatsAppBusinessPublicKeyCommand";
15
+ export * from "./GetWhatsAppCallPermissionCommand";
15
16
  export * from "./GetWhatsAppFlowCommand";
16
17
  export * from "./GetWhatsAppFlowPreviewCommand";
17
18
  export * from "./GetWhatsAppMessageMediaCommand";
@@ -26,10 +27,12 @@ export * from "./PostWhatsAppMessageMediaCommand";
26
27
  export * from "./PublishWhatsAppFlowCommand";
27
28
  export * from "./PutWhatsAppBusinessAccountEventDestinationsCommand";
28
29
  export * from "./PutWhatsAppBusinessPublicKeyCommand";
30
+ export * from "./SendWhatsAppCallEventCommand";
29
31
  export * from "./SendWhatsAppConversionEventCommand";
30
32
  export * from "./SendWhatsAppMessageCommand";
31
33
  export * from "./TagResourceCommand";
32
34
  export * from "./UntagResourceCommand";
35
+ export * from "./UpdateLinkedWhatsAppBusinessAccountPhoneNumberCommand";
33
36
  export * from "./UpdateWhatsAppFlowAssetsCommand";
34
37
  export * from "./UpdateWhatsAppFlowCommand";
35
38
  export * from "./UpdateWhatsAppMessageTemplateCommand";
@@ -15,3 +15,13 @@ export declare const MetaFlowCategory: {
15
15
  readonly SURVEY: "SURVEY";
16
16
  };
17
17
  export type MetaFlowCategory = (typeof MetaFlowCategory)[keyof typeof MetaFlowCategory];
18
+ export declare const WhatsAppDayOfWeek: {
19
+ readonly FRIDAY: "FRIDAY";
20
+ readonly MONDAY: "MONDAY";
21
+ readonly SATURDAY: "SATURDAY";
22
+ readonly SUNDAY: "SUNDAY";
23
+ readonly THURSDAY: "THURSDAY";
24
+ readonly TUESDAY: "TUESDAY";
25
+ readonly WEDNESDAY: "WEDNESDAY";
26
+ };
27
+ export type WhatsAppDayOfWeek = (typeof WhatsAppDayOfWeek)[keyof typeof WhatsAppDayOfWeek];
@@ -37,6 +37,11 @@ export declare class ValidationException extends __BaseException {
37
37
  readonly $fault: "client";
38
38
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
39
39
  }
40
+ export declare class ConflictException extends __BaseException {
41
+ readonly name: "ConflictException";
42
+ readonly $fault: "client";
43
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
44
+ }
40
45
  export declare class InternalServiceException extends __BaseException {
41
46
  readonly name: "InternalServiceException";
42
47
  readonly $fault: "server";
@@ -1,4 +1,4 @@
1
- import { MetaFlowCategory, RegistrationStatus } from "./enums";
1
+ import { MetaFlowCategory, RegistrationStatus, WhatsAppDayOfWeek } from "./enums";
2
2
  export interface Tag {
3
3
  key: string | undefined;
4
4
  value?: string | undefined;
@@ -189,9 +189,36 @@ export interface GetLinkedWhatsAppBusinessAccountOutput {
189
189
  export interface GetLinkedWhatsAppBusinessAccountPhoneNumberInput {
190
190
  id: string | undefined;
191
191
  }
192
+ export interface WhatsAppTimeOfDay {
193
+ hours: number | undefined;
194
+ minutes: number | undefined;
195
+ }
196
+ export interface WhatsAppHolidayScheduleEntry {
197
+ date: string | undefined;
198
+ startTime: WhatsAppTimeOfDay | undefined;
199
+ endTime: WhatsAppTimeOfDay | undefined;
200
+ }
201
+ export interface WhatsAppWeeklyOperatingHoursEntry {
202
+ dayOfWeek: WhatsAppDayOfWeek | undefined;
203
+ openTime: WhatsAppTimeOfDay | undefined;
204
+ closeTime: WhatsAppTimeOfDay | undefined;
205
+ }
206
+ export interface WhatsAppCallHours {
207
+ enabled: boolean | undefined;
208
+ timezone: string | undefined;
209
+ weeklyOperatingHours: WhatsAppWeeklyOperatingHoursEntry[] | undefined;
210
+ holidaySchedule?: WhatsAppHolidayScheduleEntry[] | undefined;
211
+ }
212
+ export interface WhatsAppCallSettings {
213
+ callEnabled: boolean | undefined;
214
+ callHours?: WhatsAppCallHours | undefined;
215
+ callIconVisibility?: string | undefined;
216
+ callbackPermissionStatus?: string | undefined;
217
+ }
192
218
  export interface GetLinkedWhatsAppBusinessAccountPhoneNumberOutput {
193
219
  phoneNumber?: WhatsAppPhoneNumberDetail | undefined;
194
220
  linkedWhatsAppBusinessAccountId?: string | undefined;
221
+ callSettings?: WhatsAppCallSettings | undefined;
195
222
  }
196
223
  export interface GetWhatsAppBusinessPublicKeyInput {
197
224
  originationPhoneNumberId: string | undefined;
@@ -200,6 +227,30 @@ export interface GetWhatsAppBusinessPublicKeyOutput {
200
227
  businessPublicKey?: string | undefined;
201
228
  businessPublicKeySignatureStatus?: string | undefined;
202
229
  }
230
+ export interface GetWhatsAppCallPermissionInput {
231
+ originationPhoneNumberId: string | undefined;
232
+ destinationPhoneNumber?: string | undefined;
233
+ endUserBsuid?: string | undefined;
234
+ }
235
+ export interface WhatsAppCallPermissionLimit {
236
+ timePeriod: string | undefined;
237
+ maxAllowed: number | undefined;
238
+ currentUsage: number | undefined;
239
+ limitExpirationTime?: Date | undefined;
240
+ }
241
+ export interface WhatsAppCallPermissionAction {
242
+ actionName: string | undefined;
243
+ canPerformAction: boolean | undefined;
244
+ limits: WhatsAppCallPermissionLimit[] | undefined;
245
+ }
246
+ export interface WhatsAppCallPermission {
247
+ status: string | undefined;
248
+ expirationTime?: Date | undefined;
249
+ }
250
+ export interface GetWhatsAppCallPermissionOutput {
251
+ permission: WhatsAppCallPermission | undefined;
252
+ actions: WhatsAppCallPermissionAction[] | undefined;
253
+ }
203
254
  export interface GetWhatsAppFlowInput {
204
255
  id: string | undefined;
205
256
  flowId: string | undefined;
@@ -435,6 +486,14 @@ export interface PutWhatsAppBusinessPublicKeyInput {
435
486
  kmsKeyArn?: string | undefined;
436
487
  }
437
488
  export interface PutWhatsAppBusinessPublicKeyOutput {}
489
+ export interface SendWhatsAppCallEventInput {
490
+ originationPhoneNumberId: string | undefined;
491
+ metaApiVersion: string | undefined;
492
+ callEvent: Uint8Array | undefined;
493
+ }
494
+ export interface SendWhatsAppCallEventOutput {
495
+ callId: string | undefined;
496
+ }
438
497
  export interface SendWhatsAppMessageInput {
439
498
  originationPhoneNumberId: string | undefined;
440
499
  message: Uint8Array | undefined;
@@ -443,6 +502,13 @@ export interface SendWhatsAppMessageInput {
443
502
  export interface SendWhatsAppMessageOutput {
444
503
  messageId?: string | undefined;
445
504
  }
505
+ export interface UpdateLinkedWhatsAppBusinessAccountPhoneNumberInput {
506
+ id: string | undefined;
507
+ callSettings: WhatsAppCallSettings | undefined;
508
+ }
509
+ export interface UpdateLinkedWhatsAppBusinessAccountPhoneNumberOutput {
510
+ phoneNumberId: string | undefined;
511
+ }
446
512
  export interface ListTagsForResourceInput {
447
513
  resourceArn: string | undefined;
448
514
  }
@@ -3,6 +3,7 @@ import { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from
3
3
  export declare var SocialMessagingServiceException$: StaticErrorSchema;
4
4
  export declare var AccessDeniedByMetaException$: StaticErrorSchema;
5
5
  export declare var AccessDeniedException$: StaticErrorSchema;
6
+ export declare var ConflictException$: StaticErrorSchema;
6
7
  export declare var DependencyException$: StaticErrorSchema;
7
8
  export declare var InternalServiceException$: StaticErrorSchema;
8
9
  export declare var InvalidParametersException$: StaticErrorSchema;
@@ -39,6 +40,8 @@ export declare var GetLinkedWhatsAppBusinessAccountPhoneNumberInput$: StaticStru
39
40
  export declare var GetLinkedWhatsAppBusinessAccountPhoneNumberOutput$: StaticStructureSchema;
40
41
  export declare var GetWhatsAppBusinessPublicKeyInput$: StaticStructureSchema;
41
42
  export declare var GetWhatsAppBusinessPublicKeyOutput$: StaticStructureSchema;
43
+ export declare var GetWhatsAppCallPermissionInput$: StaticStructureSchema;
44
+ export declare var GetWhatsAppCallPermissionOutput$: StaticStructureSchema;
42
45
  export declare var GetWhatsAppFlowInput$: StaticStructureSchema;
43
46
  export declare var GetWhatsAppFlowOutput$: StaticStructureSchema;
44
47
  export declare var GetWhatsAppFlowPreviewInput$: StaticStructureSchema;
@@ -84,6 +87,8 @@ export declare var PutWhatsAppBusinessPublicKeyInput$: StaticStructureSchema;
84
87
  export declare var PutWhatsAppBusinessPublicKeyOutput$: StaticStructureSchema;
85
88
  export declare var S3File$: StaticStructureSchema;
86
89
  export declare var S3PresignedUrl$: StaticStructureSchema;
90
+ export declare var SendWhatsAppCallEventInput$: StaticStructureSchema;
91
+ export declare var SendWhatsAppCallEventOutput$: StaticStructureSchema;
87
92
  export declare var SendWhatsAppConversionEventInput$: StaticStructureSchema;
88
93
  export declare var SendWhatsAppConversionEventOutput$: StaticStructureSchema;
89
94
  export declare var SendWhatsAppMessageInput$: StaticStructureSchema;
@@ -94,6 +99,8 @@ export declare var TagResourceOutput$: StaticStructureSchema;
94
99
  export declare var TemplateSummary$: StaticStructureSchema;
95
100
  export declare var UntagResourceInput$: StaticStructureSchema;
96
101
  export declare var UntagResourceOutput$: StaticStructureSchema;
102
+ export declare var UpdateLinkedWhatsAppBusinessAccountPhoneNumberInput$: StaticStructureSchema;
103
+ export declare var UpdateLinkedWhatsAppBusinessAccountPhoneNumberOutput$: StaticStructureSchema;
97
104
  export declare var UpdateWhatsAppFlowAssetsInput$: StaticStructureSchema;
98
105
  export declare var UpdateWhatsAppFlowAssetsOutput$: StaticStructureSchema;
99
106
  export declare var UpdateWhatsAppFlowInput$: StaticStructureSchema;
@@ -103,11 +110,19 @@ export declare var UpdateWhatsAppMessageTemplateOutput$: StaticStructureSchema;
103
110
  export declare var WabaPhoneNumberSetupFinalization$: StaticStructureSchema;
104
111
  export declare var WabaSetupFinalization$: StaticStructureSchema;
105
112
  export declare var WhatsAppBusinessAccountEventDestination$: StaticStructureSchema;
113
+ export declare var WhatsAppCallHours$: StaticStructureSchema;
114
+ export declare var WhatsAppCallPermission$: StaticStructureSchema;
115
+ export declare var WhatsAppCallPermissionAction$: StaticStructureSchema;
116
+ export declare var WhatsAppCallPermissionLimit$: StaticStructureSchema;
117
+ export declare var WhatsAppCallSettings$: StaticStructureSchema;
118
+ export declare var WhatsAppHolidayScheduleEntry$: StaticStructureSchema;
106
119
  export declare var WhatsAppPhoneNumberDetail$: StaticStructureSchema;
107
120
  export declare var WhatsAppPhoneNumberSummary$: StaticStructureSchema;
108
121
  export declare var WhatsAppSetupFinalization$: StaticStructureSchema;
109
122
  export declare var WhatsAppSignupCallback$: StaticStructureSchema;
110
123
  export declare var WhatsAppSignupCallbackResult$: StaticStructureSchema;
124
+ export declare var WhatsAppTimeOfDay$: StaticStructureSchema;
125
+ export declare var WhatsAppWeeklyOperatingHoursEntry$: StaticStructureSchema;
111
126
  export declare var AssociateWhatsAppBusinessAccount$: StaticOperationSchema;
112
127
  export declare var CreateWhatsAppDataset$: StaticOperationSchema;
113
128
  export declare var CreateWhatsAppFlow$: StaticOperationSchema;
@@ -122,6 +137,7 @@ export declare var DisassociateWhatsAppBusinessAccount$: StaticOperationSchema;
122
137
  export declare var GetLinkedWhatsAppBusinessAccount$: StaticOperationSchema;
123
138
  export declare var GetLinkedWhatsAppBusinessAccountPhoneNumber$: StaticOperationSchema;
124
139
  export declare var GetWhatsAppBusinessPublicKey$: StaticOperationSchema;
140
+ export declare var GetWhatsAppCallPermission$: StaticOperationSchema;
125
141
  export declare var GetWhatsAppFlow$: StaticOperationSchema;
126
142
  export declare var GetWhatsAppFlowPreview$: StaticOperationSchema;
127
143
  export declare var GetWhatsAppMessageMedia$: StaticOperationSchema;
@@ -136,10 +152,12 @@ export declare var PostWhatsAppMessageMedia$: StaticOperationSchema;
136
152
  export declare var PublishWhatsAppFlow$: StaticOperationSchema;
137
153
  export declare var PutWhatsAppBusinessAccountEventDestinations$: StaticOperationSchema;
138
154
  export declare var PutWhatsAppBusinessPublicKey$: StaticOperationSchema;
155
+ export declare var SendWhatsAppCallEvent$: StaticOperationSchema;
139
156
  export declare var SendWhatsAppConversionEvent$: StaticOperationSchema;
140
157
  export declare var SendWhatsAppMessage$: StaticOperationSchema;
141
158
  export declare var TagResource$: StaticOperationSchema;
142
159
  export declare var UntagResource$: StaticOperationSchema;
160
+ export declare var UpdateLinkedWhatsAppBusinessAccountPhoneNumber$: StaticOperationSchema;
143
161
  export declare var UpdateWhatsAppFlow$: StaticOperationSchema;
144
162
  export declare var UpdateWhatsAppFlowAssets$: StaticOperationSchema;
145
163
  export declare var UpdateWhatsAppMessageTemplate$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-socialmessaging",
3
- "version": "3.1133.0",
3
+ "version": "3.1135.0",
4
4
  "description": "AWS SDK for JavaScript Socialmessaging Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-socialmessaging",
6
6
  "license": "Apache-2.0",