aws-sdk-socialmessaging 1.29.0 → 1.30.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-socialmessaging/client.rb +92 -1
- data/lib/aws-sdk-socialmessaging/client_api.rb +56 -0
- data/lib/aws-sdk-socialmessaging/types.rb +89 -2
- data/lib/aws-sdk-socialmessaging.rb +1 -1
- data/sig/client.rbs +27 -2
- data/sig/types.rbs +24 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c176d344b1dd1fcba93f62a459477014be6438536934b1bccb7d182db9b1e6a
|
|
4
|
+
data.tar.gz: 9d03f356f94e4d5fcdfe642fba956e0e0da8e1980a4fe938db7762d2e6df5821
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d25d604a97f3397b9057c76c130fdd7bb32881127625ba72200eb054d47ac1565d2bfcd14399d30c187e06fe14fed2a600dc99c8f6ba0de29e68b4caedc592b
|
|
7
|
+
data.tar.gz: c56f1b3adbb1e1cd9b257a4f3da136414be8d8468095b8cd9fc626c93435a8184a7092985798fc02ca57f4bfa7f36c58d76a38e0519a0c89f61a91439453f9c7
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.30.0
|
|
@@ -619,6 +619,14 @@ module Aws::SocialMessaging
|
|
|
619
619
|
# The ID of an existing Flow within the same WhatsApp Business Account
|
|
620
620
|
# to clone.
|
|
621
621
|
#
|
|
622
|
+
# @option params [String] :endpoint_uri
|
|
623
|
+
# Optional HTTPS endpoint for a dynamic Flow, registered with Meta as
|
|
624
|
+
# the Flow's endpoint\_uri and called by Meta directly. When omitted,
|
|
625
|
+
# the Flow has no endpoint (static Flow). Meta only calls the endpoint
|
|
626
|
+
# when the Flow JSON also declares data\_api\_version. To verify that
|
|
627
|
+
# requests originate from Meta, attach your own Meta app via
|
|
628
|
+
# UpdateWhatsAppFlow.
|
|
629
|
+
#
|
|
622
630
|
# @return [Types::CreateWhatsAppFlowOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
623
631
|
#
|
|
624
632
|
# * {Types::CreateWhatsAppFlowOutput#flow_id #flow_id} => String
|
|
@@ -633,6 +641,7 @@ module Aws::SocialMessaging
|
|
|
633
641
|
# flow_json: "data",
|
|
634
642
|
# publish: false,
|
|
635
643
|
# clone_flow_id: "MetaFlowId",
|
|
644
|
+
# endpoint_uri: "MetaFlowEndpointUri",
|
|
636
645
|
# })
|
|
637
646
|
#
|
|
638
647
|
# @example Response structure
|
|
@@ -1059,6 +1068,38 @@ module Aws::SocialMessaging
|
|
|
1059
1068
|
req.send_request(options)
|
|
1060
1069
|
end
|
|
1061
1070
|
|
|
1071
|
+
# Retrieves the business public key for a phone number and its signature
|
|
1072
|
+
# status.
|
|
1073
|
+
#
|
|
1074
|
+
# @option params [required, String] :origination_phone_number_id
|
|
1075
|
+
# The unique identifier of the phone number whose business public key to
|
|
1076
|
+
# retrieve.
|
|
1077
|
+
#
|
|
1078
|
+
# @return [Types::GetWhatsAppBusinessPublicKeyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1079
|
+
#
|
|
1080
|
+
# * {Types::GetWhatsAppBusinessPublicKeyOutput#business_public_key #business_public_key} => String
|
|
1081
|
+
# * {Types::GetWhatsAppBusinessPublicKeyOutput#business_public_key_signature_status #business_public_key_signature_status} => String
|
|
1082
|
+
#
|
|
1083
|
+
# @example Request syntax with placeholder values
|
|
1084
|
+
#
|
|
1085
|
+
# resp = client.get_whats_app_business_public_key({
|
|
1086
|
+
# origination_phone_number_id: "WhatsAppPhoneNumberId", # required
|
|
1087
|
+
# })
|
|
1088
|
+
#
|
|
1089
|
+
# @example Response structure
|
|
1090
|
+
#
|
|
1091
|
+
# resp.business_public_key #=> String
|
|
1092
|
+
# resp.business_public_key_signature_status #=> String
|
|
1093
|
+
#
|
|
1094
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetWhatsAppBusinessPublicKey AWS API Documentation
|
|
1095
|
+
#
|
|
1096
|
+
# @overload get_whats_app_business_public_key(params = {})
|
|
1097
|
+
# @param [Hash] params ({})
|
|
1098
|
+
def get_whats_app_business_public_key(params = {}, options = {})
|
|
1099
|
+
req = build_request(:get_whats_app_business_public_key, params)
|
|
1100
|
+
req.send_request(options)
|
|
1101
|
+
end
|
|
1102
|
+
|
|
1062
1103
|
# Retrieves the metadata and status of a WhatsApp Flow, including
|
|
1063
1104
|
# validation errors, preview information, and health status.
|
|
1064
1105
|
#
|
|
@@ -1704,6 +1745,39 @@ module Aws::SocialMessaging
|
|
|
1704
1745
|
req.send_request(options)
|
|
1705
1746
|
end
|
|
1706
1747
|
|
|
1748
|
+
# Sets the business public key used to encrypt the data exchanged with
|
|
1749
|
+
# the endpoint of a data exchange Flow.
|
|
1750
|
+
#
|
|
1751
|
+
# @option params [required, String] :origination_phone_number_id
|
|
1752
|
+
# The unique identifier of the phone number to associate with the
|
|
1753
|
+
# business public key.
|
|
1754
|
+
#
|
|
1755
|
+
# @option params [String] :business_public_key
|
|
1756
|
+
# PEM-encoded RSA public key. Mutually exclusive with kmsKeyArn.
|
|
1757
|
+
#
|
|
1758
|
+
# @option params [String] :kms_key_arn
|
|
1759
|
+
# Customer-managed KMS asymmetric RSA key ARN. Mutually exclusive with
|
|
1760
|
+
# businessPublicKey.
|
|
1761
|
+
#
|
|
1762
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1763
|
+
#
|
|
1764
|
+
# @example Request syntax with placeholder values
|
|
1765
|
+
#
|
|
1766
|
+
# resp = client.put_whats_app_business_public_key({
|
|
1767
|
+
# origination_phone_number_id: "WhatsAppPhoneNumberId", # required
|
|
1768
|
+
# business_public_key: "BusinessPublicKeyPem",
|
|
1769
|
+
# kms_key_arn: "KmsKeyArn",
|
|
1770
|
+
# })
|
|
1771
|
+
#
|
|
1772
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/PutWhatsAppBusinessPublicKey AWS API Documentation
|
|
1773
|
+
#
|
|
1774
|
+
# @overload put_whats_app_business_public_key(params = {})
|
|
1775
|
+
# @param [Hash] params ({})
|
|
1776
|
+
def put_whats_app_business_public_key(params = {}, options = {})
|
|
1777
|
+
req = build_request(:put_whats_app_business_public_key, params)
|
|
1778
|
+
req.send_request(options)
|
|
1779
|
+
end
|
|
1780
|
+
|
|
1707
1781
|
# Sends a conversion event to Meta's Conversions API for the specified
|
|
1708
1782
|
# WhatsApp Business Account dataset.
|
|
1709
1783
|
#
|
|
@@ -1901,6 +1975,21 @@ module Aws::SocialMessaging
|
|
|
1901
1975
|
# @option params [Array<String>] :categories
|
|
1902
1976
|
# The updated categories for the Flow.
|
|
1903
1977
|
#
|
|
1978
|
+
# @option params [String] :endpoint_uri
|
|
1979
|
+
# Optional HTTPS endpoint for a dynamic Flow, registered with Meta as
|
|
1980
|
+
# the Flow's endpoint\_uri and called by Meta directly. When omitted,
|
|
1981
|
+
# the Flow's endpoint is unchanged.
|
|
1982
|
+
#
|
|
1983
|
+
# @option params [String] :meta_app_id
|
|
1984
|
+
# Optional Meta app ID to attach to the Flow. Meta signs data-exchange
|
|
1985
|
+
# requests with the attached app's secret, so attaching your own app is
|
|
1986
|
+
# what enables X-Hub-Signature-256 and flow\_token\_signature
|
|
1987
|
+
# verification at your endpoint. Meta requires the app to be owned by
|
|
1988
|
+
# the same business that owns the WABA. Attaching your own app is
|
|
1989
|
+
# one-way: the service's app cannot be re-attached afterwards. When
|
|
1990
|
+
# omitted, the attached app is unchanged. (Set via update because Meta
|
|
1991
|
+
# ignores application\_id at creation time.)
|
|
1992
|
+
#
|
|
1904
1993
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1905
1994
|
#
|
|
1906
1995
|
# @example Request syntax with placeholder values
|
|
@@ -1910,6 +1999,8 @@ module Aws::SocialMessaging
|
|
|
1910
1999
|
# flow_id: "MetaFlowId", # required
|
|
1911
2000
|
# flow_name: "MetaFlowName",
|
|
1912
2001
|
# categories: ["SIGN_UP"], # accepts SIGN_UP, SIGN_IN, APPOINTMENT_BOOKING, LEAD_GENERATION, SHOPPING, CONTACT_US, CUSTOMER_SUPPORT, SURVEY, OTHER
|
|
2002
|
+
# endpoint_uri: "MetaFlowEndpointUri",
|
|
2003
|
+
# meta_app_id: "MetaFlowApplicationId",
|
|
1913
2004
|
# })
|
|
1914
2005
|
#
|
|
1915
2006
|
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/UpdateWhatsAppFlow AWS API Documentation
|
|
@@ -2035,7 +2126,7 @@ module Aws::SocialMessaging
|
|
|
2035
2126
|
tracer: tracer
|
|
2036
2127
|
)
|
|
2037
2128
|
context[:gem_name] = 'aws-sdk-socialmessaging'
|
|
2038
|
-
context[:gem_version] = '1.
|
|
2129
|
+
context[:gem_version] = '1.30.0'
|
|
2039
2130
|
Seahorse::Client::Request.new(handlers, context)
|
|
2040
2131
|
end
|
|
2041
2132
|
|
|
@@ -25,6 +25,8 @@ module Aws::SocialMessaging
|
|
|
25
25
|
AssociateWhatsAppBusinessAccountInput = Shapes::StructureShape.new(name: 'AssociateWhatsAppBusinessAccountInput')
|
|
26
26
|
AssociateWhatsAppBusinessAccountOutput = Shapes::StructureShape.new(name: 'AssociateWhatsAppBusinessAccountOutput')
|
|
27
27
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
|
28
|
+
BusinessPublicKeyPem = Shapes::StringShape.new(name: 'BusinessPublicKeyPem')
|
|
29
|
+
BusinessPublicKeySignatureStatus = Shapes::StringShape.new(name: 'BusinessPublicKeySignatureStatus')
|
|
28
30
|
ButtonType = Shapes::StringShape.new(name: 'ButtonType')
|
|
29
31
|
CodeExpirationMinutes = Shapes::IntegerShape.new(name: 'CodeExpirationMinutes')
|
|
30
32
|
CreateWhatsAppDatasetInput = Shapes::StructureShape.new(name: 'CreateWhatsAppDatasetInput')
|
|
@@ -58,6 +60,8 @@ module Aws::SocialMessaging
|
|
|
58
60
|
GetLinkedWhatsAppBusinessAccountOutput = Shapes::StructureShape.new(name: 'GetLinkedWhatsAppBusinessAccountOutput')
|
|
59
61
|
GetLinkedWhatsAppBusinessAccountPhoneNumberInput = Shapes::StructureShape.new(name: 'GetLinkedWhatsAppBusinessAccountPhoneNumberInput')
|
|
60
62
|
GetLinkedWhatsAppBusinessAccountPhoneNumberOutput = Shapes::StructureShape.new(name: 'GetLinkedWhatsAppBusinessAccountPhoneNumberOutput')
|
|
63
|
+
GetWhatsAppBusinessPublicKeyInput = Shapes::StructureShape.new(name: 'GetWhatsAppBusinessPublicKeyInput')
|
|
64
|
+
GetWhatsAppBusinessPublicKeyOutput = Shapes::StructureShape.new(name: 'GetWhatsAppBusinessPublicKeyOutput')
|
|
61
65
|
GetWhatsAppFlowInput = Shapes::StructureShape.new(name: 'GetWhatsAppFlowInput')
|
|
62
66
|
GetWhatsAppFlowOutput = Shapes::StructureShape.new(name: 'GetWhatsAppFlowOutput')
|
|
63
67
|
GetWhatsAppFlowPreviewInput = Shapes::StructureShape.new(name: 'GetWhatsAppFlowPreviewInput')
|
|
@@ -71,6 +75,7 @@ module Aws::SocialMessaging
|
|
|
71
75
|
InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
|
|
72
76
|
InvalidParametersException = Shapes::StructureShape.new(name: 'InvalidParametersException')
|
|
73
77
|
IsoCountryCode = Shapes::StringShape.new(name: 'IsoCountryCode')
|
|
78
|
+
KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
|
|
74
79
|
LibraryTemplateBodyInputs = Shapes::StructureShape.new(name: 'LibraryTemplateBodyInputs')
|
|
75
80
|
LibraryTemplateButtonInput = Shapes::StructureShape.new(name: 'LibraryTemplateButtonInput')
|
|
76
81
|
LibraryTemplateButtonList = Shapes::StructureShape.new(name: 'LibraryTemplateButtonList')
|
|
@@ -167,6 +172,8 @@ module Aws::SocialMessaging
|
|
|
167
172
|
PublishWhatsAppFlowOutput = Shapes::StructureShape.new(name: 'PublishWhatsAppFlowOutput')
|
|
168
173
|
PutWhatsAppBusinessAccountEventDestinationsInput = Shapes::StructureShape.new(name: 'PutWhatsAppBusinessAccountEventDestinationsInput')
|
|
169
174
|
PutWhatsAppBusinessAccountEventDestinationsOutput = Shapes::StructureShape.new(name: 'PutWhatsAppBusinessAccountEventDestinationsOutput')
|
|
175
|
+
PutWhatsAppBusinessPublicKeyInput = Shapes::StructureShape.new(name: 'PutWhatsAppBusinessPublicKeyInput')
|
|
176
|
+
PutWhatsAppBusinessPublicKeyOutput = Shapes::StructureShape.new(name: 'PutWhatsAppBusinessPublicKeyOutput')
|
|
170
177
|
RegistrationStatus = Shapes::StringShape.new(name: 'RegistrationStatus')
|
|
171
178
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
172
179
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
|
@@ -261,6 +268,7 @@ module Aws::SocialMessaging
|
|
|
261
268
|
CreateWhatsAppFlowInput.add_member(:flow_json, Shapes::ShapeRef.new(shape: MetaFlowJsonBlob, location_name: "flowJson"))
|
|
262
269
|
CreateWhatsAppFlowInput.add_member(:publish, Shapes::ShapeRef.new(shape: Boolean, location_name: "publish"))
|
|
263
270
|
CreateWhatsAppFlowInput.add_member(:clone_flow_id, Shapes::ShapeRef.new(shape: MetaFlowId, location_name: "cloneFlowId"))
|
|
271
|
+
CreateWhatsAppFlowInput.add_member(:endpoint_uri, Shapes::ShapeRef.new(shape: MetaFlowEndpointUri, location_name: "endpointUri"))
|
|
264
272
|
CreateWhatsAppFlowInput.struct_class = Types::CreateWhatsAppFlowInput
|
|
265
273
|
|
|
266
274
|
CreateWhatsAppFlowOutput.add_member(:flow_id, Shapes::ShapeRef.new(shape: MetaFlowId, location_name: "flowId"))
|
|
@@ -343,6 +351,13 @@ module Aws::SocialMessaging
|
|
|
343
351
|
GetLinkedWhatsAppBusinessAccountPhoneNumberOutput.add_member(:linked_whats_app_business_account_id, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountId, location_name: "linkedWhatsAppBusinessAccountId"))
|
|
344
352
|
GetLinkedWhatsAppBusinessAccountPhoneNumberOutput.struct_class = Types::GetLinkedWhatsAppBusinessAccountPhoneNumberOutput
|
|
345
353
|
|
|
354
|
+
GetWhatsAppBusinessPublicKeyInput.add_member(:origination_phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberId, required: true, location: "querystring", location_name: "originationPhoneNumberId"))
|
|
355
|
+
GetWhatsAppBusinessPublicKeyInput.struct_class = Types::GetWhatsAppBusinessPublicKeyInput
|
|
356
|
+
|
|
357
|
+
GetWhatsAppBusinessPublicKeyOutput.add_member(:business_public_key, Shapes::ShapeRef.new(shape: BusinessPublicKeyPem, location_name: "businessPublicKey"))
|
|
358
|
+
GetWhatsAppBusinessPublicKeyOutput.add_member(:business_public_key_signature_status, Shapes::ShapeRef.new(shape: BusinessPublicKeySignatureStatus, location_name: "businessPublicKeySignatureStatus"))
|
|
359
|
+
GetWhatsAppBusinessPublicKeyOutput.struct_class = Types::GetWhatsAppBusinessPublicKeyOutput
|
|
360
|
+
|
|
346
361
|
GetWhatsAppFlowInput.add_member(:id, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountId, required: true, location: "querystring", location_name: "id"))
|
|
347
362
|
GetWhatsAppFlowInput.add_member(:flow_id, Shapes::ShapeRef.new(shape: MetaFlowId, required: true, location: "querystring", location_name: "flowId"))
|
|
348
363
|
GetWhatsAppFlowInput.struct_class = Types::GetWhatsAppFlowInput
|
|
@@ -612,6 +627,13 @@ module Aws::SocialMessaging
|
|
|
612
627
|
|
|
613
628
|
PutWhatsAppBusinessAccountEventDestinationsOutput.struct_class = Types::PutWhatsAppBusinessAccountEventDestinationsOutput
|
|
614
629
|
|
|
630
|
+
PutWhatsAppBusinessPublicKeyInput.add_member(:origination_phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberId, required: true, location_name: "originationPhoneNumberId"))
|
|
631
|
+
PutWhatsAppBusinessPublicKeyInput.add_member(:business_public_key, Shapes::ShapeRef.new(shape: BusinessPublicKeyPem, location_name: "businessPublicKey"))
|
|
632
|
+
PutWhatsAppBusinessPublicKeyInput.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "kmsKeyArn"))
|
|
633
|
+
PutWhatsAppBusinessPublicKeyInput.struct_class = Types::PutWhatsAppBusinessPublicKeyInput
|
|
634
|
+
|
|
635
|
+
PutWhatsAppBusinessPublicKeyOutput.struct_class = Types::PutWhatsAppBusinessPublicKeyOutput
|
|
636
|
+
|
|
615
637
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
|
616
638
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
617
639
|
|
|
@@ -691,6 +713,8 @@ module Aws::SocialMessaging
|
|
|
691
713
|
UpdateWhatsAppFlowInput.add_member(:flow_id, Shapes::ShapeRef.new(shape: MetaFlowId, required: true, location_name: "flowId"))
|
|
692
714
|
UpdateWhatsAppFlowInput.add_member(:flow_name, Shapes::ShapeRef.new(shape: MetaFlowName, location_name: "flowName"))
|
|
693
715
|
UpdateWhatsAppFlowInput.add_member(:categories, Shapes::ShapeRef.new(shape: MetaFlowCategoryList, location_name: "categories"))
|
|
716
|
+
UpdateWhatsAppFlowInput.add_member(:endpoint_uri, Shapes::ShapeRef.new(shape: MetaFlowEndpointUri, location_name: "endpointUri"))
|
|
717
|
+
UpdateWhatsAppFlowInput.add_member(:meta_app_id, Shapes::ShapeRef.new(shape: MetaFlowApplicationId, location_name: "metaAppId"))
|
|
694
718
|
UpdateWhatsAppFlowInput.struct_class = Types::UpdateWhatsAppFlowInput
|
|
695
719
|
|
|
696
720
|
UpdateWhatsAppFlowOutput.struct_class = Types::UpdateWhatsAppFlowOutput
|
|
@@ -990,6 +1014,22 @@ module Aws::SocialMessaging
|
|
|
990
1014
|
o.errors << Shapes::ShapeRef.new(shape: DependencyException)
|
|
991
1015
|
end)
|
|
992
1016
|
|
|
1017
|
+
api.add_operation(:get_whats_app_business_public_key, Seahorse::Model::Operation.new.tap do |o|
|
|
1018
|
+
o.name = "GetWhatsAppBusinessPublicKey"
|
|
1019
|
+
o.http_method = "GET"
|
|
1020
|
+
o.http_request_uri = "/v1/whatsapp/business-public-key"
|
|
1021
|
+
o.input = Shapes::ShapeRef.new(shape: GetWhatsAppBusinessPublicKeyInput)
|
|
1022
|
+
o.output = Shapes::ShapeRef.new(shape: GetWhatsAppBusinessPublicKeyOutput)
|
|
1023
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
1024
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
1025
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
1026
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
|
|
1027
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedByMetaException)
|
|
1028
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
|
|
1029
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
|
1030
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyException)
|
|
1031
|
+
end)
|
|
1032
|
+
|
|
993
1033
|
api.add_operation(:get_whats_app_flow, Seahorse::Model::Operation.new.tap do |o|
|
|
994
1034
|
o.name = "GetWhatsAppFlow"
|
|
995
1035
|
o.http_method = "GET"
|
|
@@ -1220,6 +1260,22 @@ module Aws::SocialMessaging
|
|
|
1220
1260
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
|
1221
1261
|
end)
|
|
1222
1262
|
|
|
1263
|
+
api.add_operation(:put_whats_app_business_public_key, Seahorse::Model::Operation.new.tap do |o|
|
|
1264
|
+
o.name = "PutWhatsAppBusinessPublicKey"
|
|
1265
|
+
o.http_method = "PUT"
|
|
1266
|
+
o.http_request_uri = "/v1/whatsapp/business-public-key"
|
|
1267
|
+
o.input = Shapes::ShapeRef.new(shape: PutWhatsAppBusinessPublicKeyInput)
|
|
1268
|
+
o.output = Shapes::ShapeRef.new(shape: PutWhatsAppBusinessPublicKeyOutput)
|
|
1269
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
1270
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
1271
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
1272
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
|
|
1273
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedByMetaException)
|
|
1274
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
|
|
1275
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
|
1276
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyException)
|
|
1277
|
+
end)
|
|
1278
|
+
|
|
1223
1279
|
api.add_operation(:send_whats_app_conversion_event, Seahorse::Model::Operation.new.tap do |o|
|
|
1224
1280
|
o.name = "SendWhatsAppConversionEvent"
|
|
1225
1281
|
o.http_method = "POST"
|
|
@@ -131,6 +131,15 @@ module Aws::SocialMessaging
|
|
|
131
131
|
# to clone.
|
|
132
132
|
# @return [String]
|
|
133
133
|
#
|
|
134
|
+
# @!attribute [rw] endpoint_uri
|
|
135
|
+
# Optional HTTPS endpoint for a dynamic Flow, registered with Meta as
|
|
136
|
+
# the Flow's endpoint\_uri and called by Meta directly. When omitted,
|
|
137
|
+
# the Flow has no endpoint (static Flow). Meta only calls the endpoint
|
|
138
|
+
# when the Flow JSON also declares data\_api\_version. To verify that
|
|
139
|
+
# requests originate from Meta, attach your own Meta app via
|
|
140
|
+
# UpdateWhatsAppFlow.
|
|
141
|
+
# @return [String]
|
|
142
|
+
#
|
|
134
143
|
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/CreateWhatsAppFlowInput AWS API Documentation
|
|
135
144
|
#
|
|
136
145
|
class CreateWhatsAppFlowInput < Struct.new(
|
|
@@ -139,7 +148,8 @@ module Aws::SocialMessaging
|
|
|
139
148
|
:categories,
|
|
140
149
|
:flow_json,
|
|
141
150
|
:publish,
|
|
142
|
-
:clone_flow_id
|
|
151
|
+
:clone_flow_id,
|
|
152
|
+
:endpoint_uri)
|
|
143
153
|
SENSITIVE = []
|
|
144
154
|
include Aws::Structure
|
|
145
155
|
end
|
|
@@ -496,6 +506,36 @@ module Aws::SocialMessaging
|
|
|
496
506
|
include Aws::Structure
|
|
497
507
|
end
|
|
498
508
|
|
|
509
|
+
# @!attribute [rw] origination_phone_number_id
|
|
510
|
+
# The unique identifier of the phone number whose business public key
|
|
511
|
+
# to retrieve.
|
|
512
|
+
# @return [String]
|
|
513
|
+
#
|
|
514
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetWhatsAppBusinessPublicKeyInput AWS API Documentation
|
|
515
|
+
#
|
|
516
|
+
class GetWhatsAppBusinessPublicKeyInput < Struct.new(
|
|
517
|
+
:origination_phone_number_id)
|
|
518
|
+
SENSITIVE = []
|
|
519
|
+
include Aws::Structure
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
# @!attribute [rw] business_public_key
|
|
523
|
+
# The stored RSA business public key (PEM), if present.
|
|
524
|
+
# @return [String]
|
|
525
|
+
#
|
|
526
|
+
# @!attribute [rw] business_public_key_signature_status
|
|
527
|
+
# Meta's signing status: "VALID" \| "MISMATCH".
|
|
528
|
+
# @return [String]
|
|
529
|
+
#
|
|
530
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetWhatsAppBusinessPublicKeyOutput AWS API Documentation
|
|
531
|
+
#
|
|
532
|
+
class GetWhatsAppBusinessPublicKeyOutput < Struct.new(
|
|
533
|
+
:business_public_key,
|
|
534
|
+
:business_public_key_signature_status)
|
|
535
|
+
SENSITIVE = []
|
|
536
|
+
include Aws::Structure
|
|
537
|
+
end
|
|
538
|
+
|
|
499
539
|
# @!attribute [rw] id
|
|
500
540
|
# The ID of the WhatsApp Business Account associated with this Flow.
|
|
501
541
|
# @return [String]
|
|
@@ -1663,6 +1703,34 @@ module Aws::SocialMessaging
|
|
|
1663
1703
|
#
|
|
1664
1704
|
class PutWhatsAppBusinessAccountEventDestinationsOutput < Aws::EmptyStructure; end
|
|
1665
1705
|
|
|
1706
|
+
# @!attribute [rw] origination_phone_number_id
|
|
1707
|
+
# The unique identifier of the phone number to associate with the
|
|
1708
|
+
# business public key.
|
|
1709
|
+
# @return [String]
|
|
1710
|
+
#
|
|
1711
|
+
# @!attribute [rw] business_public_key
|
|
1712
|
+
# PEM-encoded RSA public key. Mutually exclusive with kmsKeyArn.
|
|
1713
|
+
# @return [String]
|
|
1714
|
+
#
|
|
1715
|
+
# @!attribute [rw] kms_key_arn
|
|
1716
|
+
# Customer-managed KMS asymmetric RSA key ARN. Mutually exclusive with
|
|
1717
|
+
# businessPublicKey.
|
|
1718
|
+
# @return [String]
|
|
1719
|
+
#
|
|
1720
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/PutWhatsAppBusinessPublicKeyInput AWS API Documentation
|
|
1721
|
+
#
|
|
1722
|
+
class PutWhatsAppBusinessPublicKeyInput < Struct.new(
|
|
1723
|
+
:origination_phone_number_id,
|
|
1724
|
+
:business_public_key,
|
|
1725
|
+
:kms_key_arn)
|
|
1726
|
+
SENSITIVE = []
|
|
1727
|
+
include Aws::Structure
|
|
1728
|
+
end
|
|
1729
|
+
|
|
1730
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/PutWhatsAppBusinessPublicKeyOutput AWS API Documentation
|
|
1731
|
+
#
|
|
1732
|
+
class PutWhatsAppBusinessPublicKeyOutput < Aws::EmptyStructure; end
|
|
1733
|
+
|
|
1666
1734
|
# The resource was not found.
|
|
1667
1735
|
#
|
|
1668
1736
|
# @!attribute [rw] message
|
|
@@ -2013,13 +2081,32 @@ module Aws::SocialMessaging
|
|
|
2013
2081
|
# The updated categories for the Flow.
|
|
2014
2082
|
# @return [Array<String>]
|
|
2015
2083
|
#
|
|
2084
|
+
# @!attribute [rw] endpoint_uri
|
|
2085
|
+
# Optional HTTPS endpoint for a dynamic Flow, registered with Meta as
|
|
2086
|
+
# the Flow's endpoint\_uri and called by Meta directly. When omitted,
|
|
2087
|
+
# the Flow's endpoint is unchanged.
|
|
2088
|
+
# @return [String]
|
|
2089
|
+
#
|
|
2090
|
+
# @!attribute [rw] meta_app_id
|
|
2091
|
+
# Optional Meta app ID to attach to the Flow. Meta signs data-exchange
|
|
2092
|
+
# requests with the attached app's secret, so attaching your own app
|
|
2093
|
+
# is what enables X-Hub-Signature-256 and flow\_token\_signature
|
|
2094
|
+
# verification at your endpoint. Meta requires the app to be owned by
|
|
2095
|
+
# the same business that owns the WABA. Attaching your own app is
|
|
2096
|
+
# one-way: the service's app cannot be re-attached afterwards. When
|
|
2097
|
+
# omitted, the attached app is unchanged. (Set via update because Meta
|
|
2098
|
+
# ignores application\_id at creation time.)
|
|
2099
|
+
# @return [String]
|
|
2100
|
+
#
|
|
2016
2101
|
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/UpdateWhatsAppFlowInput AWS API Documentation
|
|
2017
2102
|
#
|
|
2018
2103
|
class UpdateWhatsAppFlowInput < Struct.new(
|
|
2019
2104
|
:id,
|
|
2020
2105
|
:flow_id,
|
|
2021
2106
|
:flow_name,
|
|
2022
|
-
:categories
|
|
2107
|
+
:categories,
|
|
2108
|
+
:endpoint_uri,
|
|
2109
|
+
:meta_app_id)
|
|
2023
2110
|
SENSITIVE = []
|
|
2024
2111
|
include Aws::Structure
|
|
2025
2112
|
end
|
data/sig/client.rbs
CHANGED
|
@@ -147,7 +147,8 @@ module Aws
|
|
|
147
147
|
categories: Array[("SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "SHOPPING" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER")],
|
|
148
148
|
?flow_json: ::String,
|
|
149
149
|
?publish: bool,
|
|
150
|
-
?clone_flow_id: ::String
|
|
150
|
+
?clone_flow_id: ::String,
|
|
151
|
+
?endpoint_uri: ::String
|
|
151
152
|
) -> _CreateWhatsAppFlowResponseSuccess
|
|
152
153
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateWhatsAppFlowResponseSuccess
|
|
153
154
|
|
|
@@ -288,6 +289,17 @@ module Aws
|
|
|
288
289
|
) -> _GetLinkedWhatsAppBusinessAccountPhoneNumberResponseSuccess
|
|
289
290
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLinkedWhatsAppBusinessAccountPhoneNumberResponseSuccess
|
|
290
291
|
|
|
292
|
+
interface _GetWhatsAppBusinessPublicKeyResponseSuccess
|
|
293
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetWhatsAppBusinessPublicKeyOutput]
|
|
294
|
+
def business_public_key: () -> ::String
|
|
295
|
+
def business_public_key_signature_status: () -> ::String
|
|
296
|
+
end
|
|
297
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#get_whats_app_business_public_key-instance_method
|
|
298
|
+
def get_whats_app_business_public_key: (
|
|
299
|
+
origination_phone_number_id: ::String
|
|
300
|
+
) -> _GetWhatsAppBusinessPublicKeyResponseSuccess
|
|
301
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetWhatsAppBusinessPublicKeyResponseSuccess
|
|
302
|
+
|
|
291
303
|
interface _GetWhatsAppFlowResponseSuccess
|
|
292
304
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetWhatsAppFlowOutput]
|
|
293
305
|
def flow_id: () -> ::String
|
|
@@ -477,6 +489,17 @@ module Aws
|
|
|
477
489
|
) -> _PutWhatsAppBusinessAccountEventDestinationsResponseSuccess
|
|
478
490
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutWhatsAppBusinessAccountEventDestinationsResponseSuccess
|
|
479
491
|
|
|
492
|
+
interface _PutWhatsAppBusinessPublicKeyResponseSuccess
|
|
493
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutWhatsAppBusinessPublicKeyOutput]
|
|
494
|
+
end
|
|
495
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#put_whats_app_business_public_key-instance_method
|
|
496
|
+
def put_whats_app_business_public_key: (
|
|
497
|
+
origination_phone_number_id: ::String,
|
|
498
|
+
?business_public_key: ::String,
|
|
499
|
+
?kms_key_arn: ::String
|
|
500
|
+
) -> _PutWhatsAppBusinessPublicKeyResponseSuccess
|
|
501
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutWhatsAppBusinessPublicKeyResponseSuccess
|
|
502
|
+
|
|
480
503
|
interface _SendWhatsAppConversionEventResponseSuccess
|
|
481
504
|
include ::Seahorse::Client::_ResponseSuccess[Types::SendWhatsAppConversionEventOutput]
|
|
482
505
|
def request_id: () -> ::String
|
|
@@ -536,7 +559,9 @@ module Aws
|
|
|
536
559
|
id: ::String,
|
|
537
560
|
flow_id: ::String,
|
|
538
561
|
?flow_name: ::String,
|
|
539
|
-
?categories: Array[("SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "SHOPPING" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER")]
|
|
562
|
+
?categories: Array[("SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "SHOPPING" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER")],
|
|
563
|
+
?endpoint_uri: ::String,
|
|
564
|
+
?meta_app_id: ::String
|
|
540
565
|
) -> _UpdateWhatsAppFlowResponseSuccess
|
|
541
566
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateWhatsAppFlowResponseSuccess
|
|
542
567
|
|
data/sig/types.rbs
CHANGED
|
@@ -48,6 +48,7 @@ module Aws::SocialMessaging
|
|
|
48
48
|
attr_accessor flow_json: ::String
|
|
49
49
|
attr_accessor publish: bool
|
|
50
50
|
attr_accessor clone_flow_id: ::String
|
|
51
|
+
attr_accessor endpoint_uri: ::String
|
|
51
52
|
SENSITIVE: []
|
|
52
53
|
end
|
|
53
54
|
|
|
@@ -168,6 +169,17 @@ module Aws::SocialMessaging
|
|
|
168
169
|
SENSITIVE: []
|
|
169
170
|
end
|
|
170
171
|
|
|
172
|
+
class GetWhatsAppBusinessPublicKeyInput
|
|
173
|
+
attr_accessor origination_phone_number_id: ::String
|
|
174
|
+
SENSITIVE: []
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
class GetWhatsAppBusinessPublicKeyOutput
|
|
178
|
+
attr_accessor business_public_key: ::String
|
|
179
|
+
attr_accessor business_public_key_signature_status: ::String
|
|
180
|
+
SENSITIVE: []
|
|
181
|
+
end
|
|
182
|
+
|
|
171
183
|
class GetWhatsAppFlowInput
|
|
172
184
|
attr_accessor id: ::String
|
|
173
185
|
attr_accessor flow_id: ::String
|
|
@@ -494,6 +506,16 @@ module Aws::SocialMessaging
|
|
|
494
506
|
class PutWhatsAppBusinessAccountEventDestinationsOutput < Aws::EmptyStructure
|
|
495
507
|
end
|
|
496
508
|
|
|
509
|
+
class PutWhatsAppBusinessPublicKeyInput
|
|
510
|
+
attr_accessor origination_phone_number_id: ::String
|
|
511
|
+
attr_accessor business_public_key: ::String
|
|
512
|
+
attr_accessor kms_key_arn: ::String
|
|
513
|
+
SENSITIVE: []
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
class PutWhatsAppBusinessPublicKeyOutput < Aws::EmptyStructure
|
|
517
|
+
end
|
|
518
|
+
|
|
497
519
|
class ResourceNotFoundException
|
|
498
520
|
attr_accessor message: ::String
|
|
499
521
|
SENSITIVE: []
|
|
@@ -595,6 +617,8 @@ module Aws::SocialMessaging
|
|
|
595
617
|
attr_accessor flow_id: ::String
|
|
596
618
|
attr_accessor flow_name: ::String
|
|
597
619
|
attr_accessor categories: ::Array[("SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "SHOPPING" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER")]
|
|
620
|
+
attr_accessor endpoint_uri: ::String
|
|
621
|
+
attr_accessor meta_app_id: ::String
|
|
598
622
|
SENSITIVE: []
|
|
599
623
|
end
|
|
600
624
|
|