aws-sdk-socialmessaging 1.10.0 → 1.11.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.
data/sig/client.rbs CHANGED
@@ -86,7 +86,8 @@ module Aws
86
86
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#associate_whats_app_business_account-instance_method
87
87
  def associate_whats_app_business_account: (
88
88
  ?signup_callback: {
89
- access_token: ::String
89
+ access_token: ::String,
90
+ callback_url: ::String?
90
91
  },
91
92
  ?setup_finalization: {
92
93
  associate_in_progress_token: ::String,
@@ -123,6 +124,70 @@ module Aws
123
124
  ) -> _AssociateWhatsAppBusinessAccountResponseSuccess
124
125
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociateWhatsAppBusinessAccountResponseSuccess
125
126
 
127
+ interface _CreateWhatsAppMessageTemplateResponseSuccess
128
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateWhatsAppMessageTemplateOutput]
129
+ def meta_template_id: () -> ::String
130
+ def template_status: () -> ::String
131
+ def category: () -> ::String
132
+ end
133
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#create_whats_app_message_template-instance_method
134
+ def create_whats_app_message_template: (
135
+ template_definition: ::String,
136
+ id: ::String
137
+ ) -> _CreateWhatsAppMessageTemplateResponseSuccess
138
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateWhatsAppMessageTemplateResponseSuccess
139
+
140
+ interface _CreateWhatsAppMessageTemplateFromLibraryResponseSuccess
141
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateWhatsAppMessageTemplateFromLibraryOutput]
142
+ def meta_template_id: () -> ::String
143
+ def template_status: () -> ::String
144
+ def category: () -> ::String
145
+ end
146
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#create_whats_app_message_template_from_library-instance_method
147
+ def create_whats_app_message_template_from_library: (
148
+ meta_library_template: {
149
+ template_name: ::String,
150
+ library_template_name: ::String,
151
+ template_category: ::String,
152
+ template_language: ::String,
153
+ library_template_button_inputs: Array[
154
+ {
155
+ type: ::String?,
156
+ phone_number: ::String?,
157
+ url: Hash[::String, ::String]?,
158
+ otp_type: ::String?,
159
+ zero_tap_terms_accepted: bool?,
160
+ supported_apps: Array[
161
+ Hash[::String, ::String],
162
+ ]?
163
+ },
164
+ ]?,
165
+ library_template_body_inputs: {
166
+ add_contact_number: bool?,
167
+ add_learn_more_link: bool?,
168
+ add_security_recommendation: bool?,
169
+ add_track_package_link: bool?,
170
+ code_expiration_minutes: ::Integer?
171
+ }?
172
+ },
173
+ id: ::String
174
+ ) -> _CreateWhatsAppMessageTemplateFromLibraryResponseSuccess
175
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateWhatsAppMessageTemplateFromLibraryResponseSuccess
176
+
177
+ interface _CreateWhatsAppMessageTemplateMediaResponseSuccess
178
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateWhatsAppMessageTemplateMediaOutput]
179
+ def meta_header_handle: () -> ::String
180
+ end
181
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#create_whats_app_message_template_media-instance_method
182
+ def create_whats_app_message_template_media: (
183
+ id: ::String,
184
+ ?source_s3_file: {
185
+ bucket_name: ::String,
186
+ key: ::String
187
+ }
188
+ ) -> _CreateWhatsAppMessageTemplateMediaResponseSuccess
189
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateWhatsAppMessageTemplateMediaResponseSuccess
190
+
126
191
  interface _DeleteWhatsAppMessageMediaResponseSuccess
127
192
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteWhatsAppMessageMediaOutput]
128
193
  def success: () -> bool
@@ -134,6 +199,18 @@ module Aws
134
199
  ) -> _DeleteWhatsAppMessageMediaResponseSuccess
135
200
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteWhatsAppMessageMediaResponseSuccess
136
201
 
202
+ interface _DeleteWhatsAppMessageTemplateResponseSuccess
203
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteWhatsAppMessageTemplateOutput]
204
+ end
205
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#delete_whats_app_message_template-instance_method
206
+ def delete_whats_app_message_template: (
207
+ ?meta_template_id: ::String,
208
+ ?delete_all_languages: bool,
209
+ id: ::String,
210
+ template_name: ::String
211
+ ) -> _DeleteWhatsAppMessageTemplateResponseSuccess
212
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteWhatsAppMessageTemplateResponseSuccess
213
+
137
214
  interface _DisassociateWhatsAppBusinessAccountResponseSuccess
138
215
  include ::Seahorse::Client::_ResponseSuccess[Types::DisassociateWhatsAppBusinessAccountOutput]
139
216
  end
@@ -185,6 +262,17 @@ module Aws
185
262
  ) -> _GetWhatsAppMessageMediaResponseSuccess
186
263
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetWhatsAppMessageMediaResponseSuccess
187
264
 
265
+ interface _GetWhatsAppMessageTemplateResponseSuccess
266
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetWhatsAppMessageTemplateOutput]
267
+ def template: () -> ::String
268
+ end
269
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#get_whats_app_message_template-instance_method
270
+ def get_whats_app_message_template: (
271
+ meta_template_id: ::String,
272
+ id: ::String
273
+ ) -> _GetWhatsAppMessageTemplateResponseSuccess
274
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetWhatsAppMessageTemplateResponseSuccess
275
+
188
276
  interface _ListLinkedWhatsAppBusinessAccountsResponseSuccess
189
277
  include ::Seahorse::Client::_ResponseSuccess[Types::ListLinkedWhatsAppBusinessAccountsOutput]
190
278
  def linked_accounts: () -> ::Array[Types::LinkedWhatsAppBusinessAccountSummary]
@@ -208,6 +296,33 @@ module Aws
208
296
  ) -> _ListTagsForResourceResponseSuccess
209
297
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
210
298
 
299
+ interface _ListWhatsAppMessageTemplatesResponseSuccess
300
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListWhatsAppMessageTemplatesOutput]
301
+ def templates: () -> ::Array[Types::TemplateSummary]
302
+ def next_token: () -> ::String
303
+ end
304
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#list_whats_app_message_templates-instance_method
305
+ def list_whats_app_message_templates: (
306
+ id: ::String,
307
+ ?next_token: ::String,
308
+ ?max_results: ::Integer
309
+ ) -> _ListWhatsAppMessageTemplatesResponseSuccess
310
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListWhatsAppMessageTemplatesResponseSuccess
311
+
312
+ interface _ListWhatsAppTemplateLibraryResponseSuccess
313
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListWhatsAppTemplateLibraryOutput]
314
+ def meta_library_templates: () -> ::Array[Types::MetaLibraryTemplateDefinition]
315
+ def next_token: () -> ::String
316
+ end
317
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#list_whats_app_template_library-instance_method
318
+ def list_whats_app_template_library: (
319
+ ?next_token: ::String,
320
+ ?max_results: ::Integer,
321
+ id: ::String,
322
+ ?filters: Hash[::String, ::String]
323
+ ) -> _ListWhatsAppTemplateLibraryResponseSuccess
324
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListWhatsAppTemplateLibraryResponseSuccess
325
+
211
326
  interface _PostWhatsAppMessageMediaResponseSuccess
212
327
  include ::Seahorse::Client::_ResponseSuccess[Types::PostWhatsAppMessageMediaOutput]
213
328
  def media_id: () -> ::String
@@ -279,6 +394,18 @@ module Aws
279
394
  tag_keys: Array[::String]
280
395
  ) -> _UntagResourceResponseSuccess
281
396
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
397
+
398
+ interface _UpdateWhatsAppMessageTemplateResponseSuccess
399
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateWhatsAppMessageTemplateOutput]
400
+ end
401
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SocialMessaging/Client.html#update_whats_app_message_template-instance_method
402
+ def update_whats_app_message_template: (
403
+ id: ::String,
404
+ meta_template_id: ::String,
405
+ ?template_category: ::String,
406
+ ?template_components: ::String
407
+ ) -> _UpdateWhatsAppMessageTemplateResponseSuccess
408
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateWhatsAppMessageTemplateResponseSuccess
282
409
  end
283
410
  end
284
411
  end
data/sig/errors.rbs CHANGED
@@ -26,6 +26,9 @@ module Aws
26
26
  class InvalidParametersException < ::Aws::Errors::ServiceError
27
27
  def message: () -> ::String
28
28
  end
29
+ class LimitExceededException < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ end
29
32
  class ResourceNotFoundException < ::Aws::Errors::ServiceError
30
33
  def message: () -> ::String
31
34
  end
data/sig/types.rbs CHANGED
@@ -30,6 +30,43 @@ module Aws::SocialMessaging
30
30
  SENSITIVE: []
31
31
  end
32
32
 
33
+ class CreateWhatsAppMessageTemplateFromLibraryInput
34
+ attr_accessor meta_library_template: Types::MetaLibraryTemplate
35
+ attr_accessor id: ::String
36
+ SENSITIVE: []
37
+ end
38
+
39
+ class CreateWhatsAppMessageTemplateFromLibraryOutput
40
+ attr_accessor meta_template_id: ::String
41
+ attr_accessor template_status: ::String
42
+ attr_accessor category: ::String
43
+ SENSITIVE: []
44
+ end
45
+
46
+ class CreateWhatsAppMessageTemplateInput
47
+ attr_accessor template_definition: ::String
48
+ attr_accessor id: ::String
49
+ SENSITIVE: []
50
+ end
51
+
52
+ class CreateWhatsAppMessageTemplateMediaInput
53
+ attr_accessor id: ::String
54
+ attr_accessor source_s3_file: Types::S3File
55
+ SENSITIVE: [:source_s3_file]
56
+ end
57
+
58
+ class CreateWhatsAppMessageTemplateMediaOutput
59
+ attr_accessor meta_header_handle: ::String
60
+ SENSITIVE: []
61
+ end
62
+
63
+ class CreateWhatsAppMessageTemplateOutput
64
+ attr_accessor meta_template_id: ::String
65
+ attr_accessor template_status: ::String
66
+ attr_accessor category: ::String
67
+ SENSITIVE: []
68
+ end
69
+
33
70
  class DeleteWhatsAppMessageMediaInput
34
71
  attr_accessor media_id: ::String
35
72
  attr_accessor origination_phone_number_id: ::String
@@ -41,6 +78,17 @@ module Aws::SocialMessaging
41
78
  SENSITIVE: []
42
79
  end
43
80
 
81
+ class DeleteWhatsAppMessageTemplateInput
82
+ attr_accessor meta_template_id: ::String
83
+ attr_accessor delete_all_languages: bool
84
+ attr_accessor id: ::String
85
+ attr_accessor template_name: ::String
86
+ SENSITIVE: []
87
+ end
88
+
89
+ class DeleteWhatsAppMessageTemplateOutput < Aws::EmptyStructure
90
+ end
91
+
44
92
  class DependencyException
45
93
  attr_accessor message: ::String
46
94
  SENSITIVE: []
@@ -90,6 +138,17 @@ module Aws::SocialMessaging
90
138
  SENSITIVE: []
91
139
  end
92
140
 
141
+ class GetWhatsAppMessageTemplateInput
142
+ attr_accessor meta_template_id: ::String
143
+ attr_accessor id: ::String
144
+ SENSITIVE: []
145
+ end
146
+
147
+ class GetWhatsAppMessageTemplateOutput
148
+ attr_accessor template: ::String
149
+ SENSITIVE: []
150
+ end
151
+
93
152
  class InternalServiceException
94
153
  attr_accessor message: ::String
95
154
  SENSITIVE: []
@@ -100,6 +159,41 @@ module Aws::SocialMessaging
100
159
  SENSITIVE: []
101
160
  end
102
161
 
162
+ class LibraryTemplateBodyInputs
163
+ attr_accessor add_contact_number: bool
164
+ attr_accessor add_learn_more_link: bool
165
+ attr_accessor add_security_recommendation: bool
166
+ attr_accessor add_track_package_link: bool
167
+ attr_accessor code_expiration_minutes: ::Integer
168
+ SENSITIVE: []
169
+ end
170
+
171
+ class LibraryTemplateButtonInput
172
+ attr_accessor type: ::String
173
+ attr_accessor phone_number: ::String
174
+ attr_accessor url: ::Hash[::String, ::String]
175
+ attr_accessor otp_type: ::String
176
+ attr_accessor zero_tap_terms_accepted: bool
177
+ attr_accessor supported_apps: ::Array[::Hash[::String, ::String]]
178
+ SENSITIVE: []
179
+ end
180
+
181
+ class LibraryTemplateButtonList
182
+ attr_accessor type: ::String
183
+ attr_accessor text: ::String
184
+ attr_accessor phone_number: ::String
185
+ attr_accessor url: ::String
186
+ attr_accessor otp_type: ::String
187
+ attr_accessor zero_tap_terms_accepted: bool
188
+ attr_accessor supported_apps: ::Array[::Hash[::String, ::String]]
189
+ SENSITIVE: []
190
+ end
191
+
192
+ class LimitExceededException
193
+ attr_accessor message: ::String
194
+ SENSITIVE: []
195
+ end
196
+
103
197
  class LinkedWhatsAppBusinessAccount
104
198
  attr_accessor arn: ::String
105
199
  attr_accessor id: ::String
@@ -154,6 +248,57 @@ module Aws::SocialMessaging
154
248
  SENSITIVE: []
155
249
  end
156
250
 
251
+ class ListWhatsAppMessageTemplatesInput
252
+ attr_accessor id: ::String
253
+ attr_accessor next_token: ::String
254
+ attr_accessor max_results: ::Integer
255
+ SENSITIVE: []
256
+ end
257
+
258
+ class ListWhatsAppMessageTemplatesOutput
259
+ attr_accessor templates: ::Array[Types::TemplateSummary]
260
+ attr_accessor next_token: ::String
261
+ SENSITIVE: []
262
+ end
263
+
264
+ class ListWhatsAppTemplateLibraryInput
265
+ attr_accessor next_token: ::String
266
+ attr_accessor max_results: ::Integer
267
+ attr_accessor id: ::String
268
+ attr_accessor filters: ::Hash[::String, ::String]
269
+ SENSITIVE: []
270
+ end
271
+
272
+ class ListWhatsAppTemplateLibraryOutput
273
+ attr_accessor meta_library_templates: ::Array[Types::MetaLibraryTemplateDefinition]
274
+ attr_accessor next_token: ::String
275
+ SENSITIVE: []
276
+ end
277
+
278
+ class MetaLibraryTemplate
279
+ attr_accessor template_name: ::String
280
+ attr_accessor library_template_name: ::String
281
+ attr_accessor template_category: ::String
282
+ attr_accessor template_language: ::String
283
+ attr_accessor library_template_button_inputs: ::Array[Types::LibraryTemplateButtonInput]
284
+ attr_accessor library_template_body_inputs: Types::LibraryTemplateBodyInputs
285
+ SENSITIVE: []
286
+ end
287
+
288
+ class MetaLibraryTemplateDefinition
289
+ attr_accessor template_name: ::String
290
+ attr_accessor template_language: ::String
291
+ attr_accessor template_category: ::String
292
+ attr_accessor template_topic: ::String
293
+ attr_accessor template_use_case: ::String
294
+ attr_accessor template_industry: ::Array[::String]
295
+ attr_accessor template_header: ::String
296
+ attr_accessor template_body: ::String
297
+ attr_accessor template_buttons: ::Array[Types::LibraryTemplateButtonList]
298
+ attr_accessor template_id: ::String
299
+ SENSITIVE: []
300
+ end
301
+
157
302
  class PostWhatsAppMessageMediaInput
158
303
  attr_accessor origination_phone_number_id: ::String
159
304
  attr_accessor source_s3_presigned_url: Types::S3PresignedUrl
@@ -221,6 +366,16 @@ module Aws::SocialMessaging
221
366
  SENSITIVE: []
222
367
  end
223
368
 
369
+ class TemplateSummary
370
+ attr_accessor template_name: ::String
371
+ attr_accessor meta_template_id: ::String
372
+ attr_accessor template_status: ::String
373
+ attr_accessor template_quality_score: ::String
374
+ attr_accessor template_language: ::String
375
+ attr_accessor template_category: ::String
376
+ SENSITIVE: []
377
+ end
378
+
224
379
  class ThrottledRequestException
225
380
  attr_accessor message: ::String
226
381
  SENSITIVE: []
@@ -237,6 +392,17 @@ module Aws::SocialMessaging
237
392
  SENSITIVE: []
238
393
  end
239
394
 
395
+ class UpdateWhatsAppMessageTemplateInput
396
+ attr_accessor id: ::String
397
+ attr_accessor meta_template_id: ::String
398
+ attr_accessor template_category: ::String
399
+ attr_accessor template_components: ::String
400
+ SENSITIVE: []
401
+ end
402
+
403
+ class UpdateWhatsAppMessageTemplateOutput < Aws::EmptyStructure
404
+ end
405
+
240
406
  class ValidationException
241
407
  attr_accessor message: ::String
242
408
  SENSITIVE: []
@@ -271,6 +437,7 @@ module Aws::SocialMessaging
271
437
  attr_accessor display_phone_number_name: ::String
272
438
  attr_accessor display_phone_number: ::String
273
439
  attr_accessor quality_rating: ::String
440
+ attr_accessor data_localization_region: ::String
274
441
  SENSITIVE: []
275
442
  end
276
443
 
@@ -282,6 +449,7 @@ module Aws::SocialMessaging
282
449
  attr_accessor display_phone_number_name: ::String
283
450
  attr_accessor display_phone_number: ::String
284
451
  attr_accessor quality_rating: ::String
452
+ attr_accessor data_localization_region: ::String
285
453
  SENSITIVE: []
286
454
  end
287
455
 
@@ -295,6 +463,7 @@ module Aws::SocialMessaging
295
463
 
296
464
  class WhatsAppSignupCallback
297
465
  attr_accessor access_token: ::String
466
+ attr_accessor callback_url: ::String
298
467
  SENSITIVE: []
299
468
  end
300
469
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-socialmessaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services