alibabacloud-cams20200606 3.1.0__tar.gz → 3.1.1__tar.gz

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 (17) hide show
  1. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/ChangeLog.md +117 -0
  2. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/PKG-INFO +1 -1
  3. alibabacloud_cams20200606-3.1.1/alibabacloud_cams20200606/__init__.py +1 -0
  4. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/alibabacloud_cams20200606/client.py +120 -100
  5. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/alibabacloud_cams20200606/models.py +78 -233
  6. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/alibabacloud_cams20200606.egg-info/PKG-INFO +1 -1
  7. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/setup.py +1 -1
  8. alibabacloud_cams20200606-3.1.0/alibabacloud_cams20200606/__init__.py +0 -1
  9. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/LICENSE +0 -0
  10. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/MANIFEST.in +0 -0
  11. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/README-CN.md +0 -0
  12. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/README.md +0 -0
  13. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/alibabacloud_cams20200606.egg-info/SOURCES.txt +0 -0
  14. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/alibabacloud_cams20200606.egg-info/dependency_links.txt +0 -0
  15. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/alibabacloud_cams20200606.egg-info/requires.txt +0 -0
  16. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/alibabacloud_cams20200606.egg-info/top_level.txt +0 -0
  17. {alibabacloud_cams20200606-3.1.0 → alibabacloud_cams20200606-3.1.1}/setup.cfg +0 -0
@@ -1,3 +1,120 @@
1
+ 2025-07-21 Version: 3.1.0
2
+ - Support API ListChatappMessage.
3
+ - Support API ListFlowNodePrototypeV2.
4
+ - Update API ChatappEmbedSignUp: add request parameters OwnerId.
5
+ - Update API ChatappEmbedSignUp: add request parameters ResourceOwnerAccount.
6
+ - Update API ChatappEmbedSignUp: add request parameters ResourceOwnerId.
7
+ - Update API ChatappMigrationRegister: add request parameters OwnerId.
8
+ - Update API ChatappMigrationRegister: add request parameters ResourceOwnerAccount.
9
+ - Update API ChatappMigrationRegister: add request parameters ResourceOwnerId.
10
+ - Update API ChatappMigrationVerified: add request parameters OwnerId.
11
+ - Update API ChatappMigrationVerified: add request parameters ResourceOwnerAccount.
12
+ - Update API ChatappMigrationVerified: add request parameters ResourceOwnerId.
13
+ - Update API ChatappPhoneNumberDeregister: add request parameters OwnerId.
14
+ - Update API ChatappPhoneNumberDeregister: add request parameters ResourceOwnerAccount.
15
+ - Update API ChatappPhoneNumberDeregister: add request parameters ResourceOwnerId.
16
+ - Update API CreateChatappMigrationInitiate: add request parameters OwnerId.
17
+ - Update API CreateChatappMigrationInitiate: add request parameters ResourceOwnerAccount.
18
+ - Update API CreateChatappMigrationInitiate: add request parameters ResourceOwnerId.
19
+ - Update API CreateFlow: add request parameters OwnerId.
20
+ - Update API CreateFlow: add request parameters ResourceOwnerAccount.
21
+ - Update API CreateFlow: add request parameters ResourceOwnerId.
22
+ - Update API CreateFlow: add response parameters Body.AccessDeniedDetail.
23
+ - Update API CreatePhoneMessageQrdl: add request parameters OwnerId.
24
+ - Update API CreatePhoneMessageQrdl: add request parameters ResourceOwnerAccount.
25
+ - Update API CreatePhoneMessageQrdl: add request parameters ResourceOwnerId.
26
+ - Update API CreatePhoneMessageQrdl: add response parameters Body.AccessDeniedDetail.
27
+ - Update API DeleteFlow: add request parameters OwnerId.
28
+ - Update API DeleteFlow: add request parameters ResourceOwnerAccount.
29
+ - Update API DeleteFlow: add request parameters ResourceOwnerId.
30
+ - Update API DeleteFlow: add response parameters Body.AccessDeniedDetail.
31
+ - Update API DeletePhoneMessageQrdl: add request parameters OwnerId.
32
+ - Update API DeletePhoneMessageQrdl: add request parameters ResourceOwnerAccount.
33
+ - Update API DeletePhoneMessageQrdl: add request parameters ResourceOwnerId.
34
+ - Update API DeletePhoneMessageQrdl: add response parameters Body.AccessDeniedDetail.
35
+ - Update API DeprecateFlow: add request parameters OwnerId.
36
+ - Update API DeprecateFlow: add request parameters ResourceOwnerAccount.
37
+ - Update API DeprecateFlow: add request parameters ResourceOwnerId.
38
+ - Update API DeprecateFlow: add response parameters Body.AccessDeniedDetail.
39
+ - Update API EnableWhatsappROIMetric: add request parameters OwnerId.
40
+ - Update API EnableWhatsappROIMetric: add request parameters ResourceOwnerAccount.
41
+ - Update API EnableWhatsappROIMetric: add request parameters ResourceOwnerId.
42
+ - Update API GetChatFlowMetric: add request parameters MetricParam.
43
+ - Update API GetChatappPhoneNumberMetric: add request parameters OwnerId.
44
+ - Update API GetChatappPhoneNumberMetric: add request parameters ResourceOwnerAccount.
45
+ - Update API GetChatappPhoneNumberMetric: add request parameters ResourceOwnerId.
46
+ - Update API GetChatappTemplateMetric: add request parameters OwnerId.
47
+ - Update API GetChatappTemplateMetric: add request parameters ResourceOwnerAccount.
48
+ - Update API GetChatappTemplateMetric: add request parameters ResourceOwnerId.
49
+ - Update API GetChatappUploadAuthorization: add request parameters OwnerId.
50
+ - Update API GetChatappUploadAuthorization: add request parameters ResourceOwnerAccount.
51
+ - Update API GetChatappUploadAuthorization: add request parameters ResourceOwnerId.
52
+ - Update API GetFlow: add request parameters OwnerId.
53
+ - Update API GetFlow: add request parameters ResourceOwnerAccount.
54
+ - Update API GetFlow: add request parameters ResourceOwnerId.
55
+ - Update API GetFlow: add response parameters Body.AccessDeniedDetail.
56
+ - Update API GetFlowJSONAssest: add request parameters OwnerId.
57
+ - Update API GetFlowJSONAssest: add request parameters ResourceOwnerAccount.
58
+ - Update API GetFlowJSONAssest: add request parameters ResourceOwnerId.
59
+ - Update API GetFlowJSONAssest: add response parameters Body.AccessDeniedDetail.
60
+ - Update API GetFlowPreviewUrl: add request parameters OwnerId.
61
+ - Update API GetFlowPreviewUrl: add request parameters ResourceOwnerAccount.
62
+ - Update API GetFlowPreviewUrl: add request parameters ResourceOwnerId.
63
+ - Update API GetFlowPreviewUrl: add response parameters Body.AccessDeniedDetail.
64
+ - Update API GetMigrationVerifyCode: add request parameters OwnerId.
65
+ - Update API GetMigrationVerifyCode: add request parameters ResourceOwnerAccount.
66
+ - Update API GetMigrationVerifyCode: add request parameters ResourceOwnerId.
67
+ - Update API GetPermissionByCode: add request parameters OwnerId.
68
+ - Update API GetPermissionByCode: add request parameters ResourceOwnerAccount.
69
+ - Update API GetPermissionByCode: add request parameters ResourceOwnerId.
70
+ - Update API GetPermissionByCode: add response parameters Body.AccessDeniedDetail.
71
+ - Update API GetPhoneEncryptionPublicKey: add request parameters OwnerId.
72
+ - Update API GetPhoneEncryptionPublicKey: add request parameters ResourceOwnerAccount.
73
+ - Update API GetPhoneEncryptionPublicKey: add request parameters ResourceOwnerId.
74
+ - Update API GetPhoneEncryptionPublicKey: add response parameters Body.AccessDeniedDetail.
75
+ - Update API GetPhoneNumberVerificationStatus: add request parameters OwnerId.
76
+ - Update API GetPhoneNumberVerificationStatus: add request parameters ResourceOwnerAccount.
77
+ - Update API GetPhoneNumberVerificationStatus: add request parameters ResourceOwnerId.
78
+ - Update API GetPhoneNumberVerificationStatus: add response parameters Body.AccessDeniedDetail.
79
+ - Update API IsvGetAppId: add request parameters IntlVersion.
80
+ - Update API IsvGetAppId: add request parameters OwnerId.
81
+ - Update API IsvGetAppId: add request parameters ResourceOwnerAccount.
82
+ - Update API IsvGetAppId: add request parameters ResourceOwnerId.
83
+ - Update API ListFlow: add request parameters OwnerId.
84
+ - Update API ListFlow: add request parameters ResourceOwnerAccount.
85
+ - Update API ListFlow: add request parameters ResourceOwnerId.
86
+ - Update API ListFlow: add response parameters Body.AccessDeniedDetail.
87
+ - Update API ModifyFlow: add request parameters OwnerId.
88
+ - Update API ModifyFlow: add request parameters ResourceOwnerAccount.
89
+ - Update API ModifyFlow: add request parameters ResourceOwnerId.
90
+ - Update API ModifyFlow: add response parameters Body.AccessDeniedDetail.
91
+ - Update API PublishFlow: add request parameters OwnerId.
92
+ - Update API PublishFlow: add request parameters ResourceOwnerAccount.
93
+ - Update API PublishFlow: add request parameters ResourceOwnerId.
94
+ - Update API PublishFlow: add response parameters Body.AccessDeniedDetail.
95
+ - Update API SubmitIsvCustomerTerms: add request parameters OwnerId.
96
+ - Update API SubmitIsvCustomerTerms: add request parameters ResourceOwnerAccount.
97
+ - Update API SubmitIsvCustomerTerms: add request parameters ResourceOwnerId.
98
+ - Update API UpdateAccountWebhook: add request parameters OwnerId.
99
+ - Update API UpdateAccountWebhook: add request parameters ResourceOwnerAccount.
100
+ - Update API UpdateAccountWebhook: add request parameters ResourceOwnerId.
101
+ - Update API UpdateFlowJSONAsset: add request parameters OwnerId.
102
+ - Update API UpdateFlowJSONAsset: add request parameters ResourceOwnerAccount.
103
+ - Update API UpdateFlowJSONAsset: add request parameters ResourceOwnerId.
104
+ - Update API UpdateFlowJSONAsset: add response parameters Body.AccessDeniedDetail.
105
+ - Update API UpdatePhoneEncryptionPublicKey: add request parameters OwnerId.
106
+ - Update API UpdatePhoneEncryptionPublicKey: add request parameters ResourceOwnerAccount.
107
+ - Update API UpdatePhoneEncryptionPublicKey: add request parameters ResourceOwnerId.
108
+ - Update API UpdatePhoneEncryptionPublicKey: add response parameters Body.AccessDeniedDetail.
109
+ - Update API UpdatePhoneMessageQrdl: add request parameters OwnerId.
110
+ - Update API UpdatePhoneMessageQrdl: add request parameters ResourceOwnerAccount.
111
+ - Update API UpdatePhoneMessageQrdl: add request parameters ResourceOwnerId.
112
+ - Update API UpdatePhoneMessageQrdl: add response parameters Body.AccessDeniedDetail.
113
+ - Update API UpdatePhoneWebhook: add request parameters OwnerId.
114
+ - Update API UpdatePhoneWebhook: add request parameters ResourceOwnerAccount.
115
+ - Update API UpdatePhoneWebhook: add request parameters ResourceOwnerId.
116
+
117
+
1
118
  2025-07-11 Version: 3.0.0
2
119
  - Support API CreateChatFlow.
3
120
  - Support API CreateChatFlowByImport.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud_cams20200606
3
- Version: 3.1.0
3
+ Version: 3.1.1
4
4
  Summary: Alibaba Cloud cams (20200606) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -0,0 +1 @@
1
+ __version__ = '3.1.1'
@@ -10149,43 +10149,49 @@ class Client(OpenApiClient):
10149
10149
  OpenApiUtilClient.convert(tmp_req, request)
10150
10150
  if not UtilClient.is_unset(tmp_req.sender_list):
10151
10151
  request.sender_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.sender_list, 'SenderList', 'json')
10152
- body = {}
10152
+ query = {}
10153
10153
  if not UtilClient.is_unset(request.channel_type):
10154
- body['ChannelType'] = request.channel_type
10154
+ query['ChannelType'] = request.channel_type
10155
10155
  if not UtilClient.is_unset(request.cust_space_id):
10156
- body['CustSpaceId'] = request.cust_space_id
10156
+ query['CustSpaceId'] = request.cust_space_id
10157
10157
  if not UtilClient.is_unset(request.cust_waba_id):
10158
- body['CustWabaId'] = request.cust_waba_id
10158
+ query['CustWabaId'] = request.cust_waba_id
10159
10159
  if not UtilClient.is_unset(request.fall_back_content):
10160
- body['FallBackContent'] = request.fall_back_content
10160
+ query['FallBackContent'] = request.fall_back_content
10161
10161
  if not UtilClient.is_unset(request.fall_back_duration):
10162
- body['FallBackDuration'] = request.fall_back_duration
10162
+ query['FallBackDuration'] = request.fall_back_duration
10163
10163
  if not UtilClient.is_unset(request.fall_back_id):
10164
- body['FallBackId'] = request.fall_back_id
10164
+ query['FallBackId'] = request.fall_back_id
10165
10165
  if not UtilClient.is_unset(request.fall_back_rule):
10166
- body['FallBackRule'] = request.fall_back_rule
10166
+ query['FallBackRule'] = request.fall_back_rule
10167
10167
  if not UtilClient.is_unset(request.from_):
10168
- body['From'] = request.from_
10168
+ query['From'] = request.from_
10169
10169
  if not UtilClient.is_unset(request.isv_code):
10170
- body['IsvCode'] = request.isv_code
10170
+ query['IsvCode'] = request.isv_code
10171
10171
  if not UtilClient.is_unset(request.label):
10172
- body['Label'] = request.label
10172
+ query['Label'] = request.label
10173
10173
  if not UtilClient.is_unset(request.language):
10174
- body['Language'] = request.language
10174
+ query['Language'] = request.language
10175
+ if not UtilClient.is_unset(request.owner_id):
10176
+ query['OwnerId'] = request.owner_id
10177
+ if not UtilClient.is_unset(request.resource_owner_account):
10178
+ query['ResourceOwnerAccount'] = request.resource_owner_account
10179
+ if not UtilClient.is_unset(request.resource_owner_id):
10180
+ query['ResourceOwnerId'] = request.resource_owner_id
10175
10181
  if not UtilClient.is_unset(request.sender_list_shrink):
10176
- body['SenderList'] = request.sender_list_shrink
10182
+ query['SenderList'] = request.sender_list_shrink
10177
10183
  if not UtilClient.is_unset(request.tag):
10178
- body['Tag'] = request.tag
10184
+ query['Tag'] = request.tag
10179
10185
  if not UtilClient.is_unset(request.task_id):
10180
- body['TaskId'] = request.task_id
10186
+ query['TaskId'] = request.task_id
10181
10187
  if not UtilClient.is_unset(request.template_code):
10182
- body['TemplateCode'] = request.template_code
10188
+ query['TemplateCode'] = request.template_code
10183
10189
  if not UtilClient.is_unset(request.template_name):
10184
- body['TemplateName'] = request.template_name
10190
+ query['TemplateName'] = request.template_name
10185
10191
  if not UtilClient.is_unset(request.ttl):
10186
- body['Ttl'] = request.ttl
10192
+ query['Ttl'] = request.ttl
10187
10193
  req = open_api_models.OpenApiRequest(
10188
- body=OpenApiUtilClient.parse_to_map(body)
10194
+ query=OpenApiUtilClient.query(query)
10189
10195
  )
10190
10196
  params = open_api_models.Params(
10191
10197
  action='SendChatappMassMessage',
@@ -10223,43 +10229,49 @@ class Client(OpenApiClient):
10223
10229
  OpenApiUtilClient.convert(tmp_req, request)
10224
10230
  if not UtilClient.is_unset(tmp_req.sender_list):
10225
10231
  request.sender_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.sender_list, 'SenderList', 'json')
10226
- body = {}
10232
+ query = {}
10227
10233
  if not UtilClient.is_unset(request.channel_type):
10228
- body['ChannelType'] = request.channel_type
10234
+ query['ChannelType'] = request.channel_type
10229
10235
  if not UtilClient.is_unset(request.cust_space_id):
10230
- body['CustSpaceId'] = request.cust_space_id
10236
+ query['CustSpaceId'] = request.cust_space_id
10231
10237
  if not UtilClient.is_unset(request.cust_waba_id):
10232
- body['CustWabaId'] = request.cust_waba_id
10238
+ query['CustWabaId'] = request.cust_waba_id
10233
10239
  if not UtilClient.is_unset(request.fall_back_content):
10234
- body['FallBackContent'] = request.fall_back_content
10240
+ query['FallBackContent'] = request.fall_back_content
10235
10241
  if not UtilClient.is_unset(request.fall_back_duration):
10236
- body['FallBackDuration'] = request.fall_back_duration
10242
+ query['FallBackDuration'] = request.fall_back_duration
10237
10243
  if not UtilClient.is_unset(request.fall_back_id):
10238
- body['FallBackId'] = request.fall_back_id
10244
+ query['FallBackId'] = request.fall_back_id
10239
10245
  if not UtilClient.is_unset(request.fall_back_rule):
10240
- body['FallBackRule'] = request.fall_back_rule
10246
+ query['FallBackRule'] = request.fall_back_rule
10241
10247
  if not UtilClient.is_unset(request.from_):
10242
- body['From'] = request.from_
10248
+ query['From'] = request.from_
10243
10249
  if not UtilClient.is_unset(request.isv_code):
10244
- body['IsvCode'] = request.isv_code
10250
+ query['IsvCode'] = request.isv_code
10245
10251
  if not UtilClient.is_unset(request.label):
10246
- body['Label'] = request.label
10252
+ query['Label'] = request.label
10247
10253
  if not UtilClient.is_unset(request.language):
10248
- body['Language'] = request.language
10254
+ query['Language'] = request.language
10255
+ if not UtilClient.is_unset(request.owner_id):
10256
+ query['OwnerId'] = request.owner_id
10257
+ if not UtilClient.is_unset(request.resource_owner_account):
10258
+ query['ResourceOwnerAccount'] = request.resource_owner_account
10259
+ if not UtilClient.is_unset(request.resource_owner_id):
10260
+ query['ResourceOwnerId'] = request.resource_owner_id
10249
10261
  if not UtilClient.is_unset(request.sender_list_shrink):
10250
- body['SenderList'] = request.sender_list_shrink
10262
+ query['SenderList'] = request.sender_list_shrink
10251
10263
  if not UtilClient.is_unset(request.tag):
10252
- body['Tag'] = request.tag
10264
+ query['Tag'] = request.tag
10253
10265
  if not UtilClient.is_unset(request.task_id):
10254
- body['TaskId'] = request.task_id
10266
+ query['TaskId'] = request.task_id
10255
10267
  if not UtilClient.is_unset(request.template_code):
10256
- body['TemplateCode'] = request.template_code
10268
+ query['TemplateCode'] = request.template_code
10257
10269
  if not UtilClient.is_unset(request.template_name):
10258
- body['TemplateName'] = request.template_name
10270
+ query['TemplateName'] = request.template_name
10259
10271
  if not UtilClient.is_unset(request.ttl):
10260
- body['Ttl'] = request.ttl
10272
+ query['Ttl'] = request.ttl
10261
10273
  req = open_api_models.OpenApiRequest(
10262
- body=OpenApiUtilClient.parse_to_map(body)
10274
+ query=OpenApiUtilClient.query(query)
10263
10275
  )
10264
10276
  params = open_api_models.Params(
10265
10277
  action='SendChatappMassMessage',
@@ -10335,64 +10347,68 @@ class Client(OpenApiClient):
10335
10347
  if not UtilClient.is_unset(tmp_req.template_params):
10336
10348
  request.template_params_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.template_params, 'TemplateParams', 'json')
10337
10349
  query = {}
10350
+ if not UtilClient.is_unset(request.channel_type):
10351
+ query['ChannelType'] = request.channel_type
10338
10352
  if not UtilClient.is_unset(request.content):
10339
10353
  query['Content'] = request.content
10340
- if not UtilClient.is_unset(request.payload_shrink):
10341
- query['Payload'] = request.payload_shrink
10342
- body = {}
10343
- if not UtilClient.is_unset(request.channel_type):
10344
- body['ChannelType'] = request.channel_type
10345
10354
  if not UtilClient.is_unset(request.context_message_id):
10346
- body['ContextMessageId'] = request.context_message_id
10355
+ query['ContextMessageId'] = request.context_message_id
10347
10356
  if not UtilClient.is_unset(request.cust_space_id):
10348
- body['CustSpaceId'] = request.cust_space_id
10357
+ query['CustSpaceId'] = request.cust_space_id
10349
10358
  if not UtilClient.is_unset(request.cust_waba_id):
10350
- body['CustWabaId'] = request.cust_waba_id
10359
+ query['CustWabaId'] = request.cust_waba_id
10351
10360
  if not UtilClient.is_unset(request.fall_back_content):
10352
- body['FallBackContent'] = request.fall_back_content
10361
+ query['FallBackContent'] = request.fall_back_content
10353
10362
  if not UtilClient.is_unset(request.fall_back_duration):
10354
- body['FallBackDuration'] = request.fall_back_duration
10363
+ query['FallBackDuration'] = request.fall_back_duration
10355
10364
  if not UtilClient.is_unset(request.fall_back_id):
10356
- body['FallBackId'] = request.fall_back_id
10365
+ query['FallBackId'] = request.fall_back_id
10357
10366
  if not UtilClient.is_unset(request.fall_back_rule):
10358
- body['FallBackRule'] = request.fall_back_rule
10367
+ query['FallBackRule'] = request.fall_back_rule
10359
10368
  if not UtilClient.is_unset(request.flow_action_shrink):
10360
- body['FlowAction'] = request.flow_action_shrink
10369
+ query['FlowAction'] = request.flow_action_shrink
10361
10370
  if not UtilClient.is_unset(request.from_):
10362
- body['From'] = request.from_
10371
+ query['From'] = request.from_
10363
10372
  if not UtilClient.is_unset(request.isv_code):
10364
- body['IsvCode'] = request.isv_code
10373
+ query['IsvCode'] = request.isv_code
10365
10374
  if not UtilClient.is_unset(request.label):
10366
- body['Label'] = request.label
10375
+ query['Label'] = request.label
10367
10376
  if not UtilClient.is_unset(request.language):
10368
- body['Language'] = request.language
10377
+ query['Language'] = request.language
10369
10378
  if not UtilClient.is_unset(request.message_type):
10370
- body['MessageType'] = request.message_type
10379
+ query['MessageType'] = request.message_type
10380
+ if not UtilClient.is_unset(request.owner_id):
10381
+ query['OwnerId'] = request.owner_id
10382
+ if not UtilClient.is_unset(request.payload_shrink):
10383
+ query['Payload'] = request.payload_shrink
10371
10384
  if not UtilClient.is_unset(request.product_action_shrink):
10372
- body['ProductAction'] = request.product_action_shrink
10385
+ query['ProductAction'] = request.product_action_shrink
10373
10386
  if not UtilClient.is_unset(request.recipient_type):
10374
- body['RecipientType'] = request.recipient_type
10387
+ query['RecipientType'] = request.recipient_type
10388
+ if not UtilClient.is_unset(request.resource_owner_account):
10389
+ query['ResourceOwnerAccount'] = request.resource_owner_account
10390
+ if not UtilClient.is_unset(request.resource_owner_id):
10391
+ query['ResourceOwnerId'] = request.resource_owner_id
10375
10392
  if not UtilClient.is_unset(request.tag):
10376
- body['Tag'] = request.tag
10393
+ query['Tag'] = request.tag
10377
10394
  if not UtilClient.is_unset(request.task_id):
10378
- body['TaskId'] = request.task_id
10395
+ query['TaskId'] = request.task_id
10379
10396
  if not UtilClient.is_unset(request.template_code):
10380
- body['TemplateCode'] = request.template_code
10397
+ query['TemplateCode'] = request.template_code
10381
10398
  if not UtilClient.is_unset(request.template_name):
10382
- body['TemplateName'] = request.template_name
10399
+ query['TemplateName'] = request.template_name
10383
10400
  if not UtilClient.is_unset(request.template_params_shrink):
10384
- body['TemplateParams'] = request.template_params_shrink
10401
+ query['TemplateParams'] = request.template_params_shrink
10385
10402
  if not UtilClient.is_unset(request.to):
10386
- body['To'] = request.to
10403
+ query['To'] = request.to
10387
10404
  if not UtilClient.is_unset(request.tracking_data):
10388
- body['TrackingData'] = request.tracking_data
10405
+ query['TrackingData'] = request.tracking_data
10389
10406
  if not UtilClient.is_unset(request.ttl):
10390
- body['Ttl'] = request.ttl
10407
+ query['Ttl'] = request.ttl
10391
10408
  if not UtilClient.is_unset(request.type):
10392
- body['Type'] = request.type
10409
+ query['Type'] = request.type
10393
10410
  req = open_api_models.OpenApiRequest(
10394
- query=OpenApiUtilClient.query(query),
10395
- body=OpenApiUtilClient.parse_to_map(body)
10411
+ query=OpenApiUtilClient.query(query)
10396
10412
  )
10397
10413
  params = open_api_models.Params(
10398
10414
  action='SendChatappMessage',
@@ -10436,64 +10452,68 @@ class Client(OpenApiClient):
10436
10452
  if not UtilClient.is_unset(tmp_req.template_params):
10437
10453
  request.template_params_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.template_params, 'TemplateParams', 'json')
10438
10454
  query = {}
10455
+ if not UtilClient.is_unset(request.channel_type):
10456
+ query['ChannelType'] = request.channel_type
10439
10457
  if not UtilClient.is_unset(request.content):
10440
10458
  query['Content'] = request.content
10441
- if not UtilClient.is_unset(request.payload_shrink):
10442
- query['Payload'] = request.payload_shrink
10443
- body = {}
10444
- if not UtilClient.is_unset(request.channel_type):
10445
- body['ChannelType'] = request.channel_type
10446
10459
  if not UtilClient.is_unset(request.context_message_id):
10447
- body['ContextMessageId'] = request.context_message_id
10460
+ query['ContextMessageId'] = request.context_message_id
10448
10461
  if not UtilClient.is_unset(request.cust_space_id):
10449
- body['CustSpaceId'] = request.cust_space_id
10462
+ query['CustSpaceId'] = request.cust_space_id
10450
10463
  if not UtilClient.is_unset(request.cust_waba_id):
10451
- body['CustWabaId'] = request.cust_waba_id
10464
+ query['CustWabaId'] = request.cust_waba_id
10452
10465
  if not UtilClient.is_unset(request.fall_back_content):
10453
- body['FallBackContent'] = request.fall_back_content
10466
+ query['FallBackContent'] = request.fall_back_content
10454
10467
  if not UtilClient.is_unset(request.fall_back_duration):
10455
- body['FallBackDuration'] = request.fall_back_duration
10468
+ query['FallBackDuration'] = request.fall_back_duration
10456
10469
  if not UtilClient.is_unset(request.fall_back_id):
10457
- body['FallBackId'] = request.fall_back_id
10470
+ query['FallBackId'] = request.fall_back_id
10458
10471
  if not UtilClient.is_unset(request.fall_back_rule):
10459
- body['FallBackRule'] = request.fall_back_rule
10472
+ query['FallBackRule'] = request.fall_back_rule
10460
10473
  if not UtilClient.is_unset(request.flow_action_shrink):
10461
- body['FlowAction'] = request.flow_action_shrink
10474
+ query['FlowAction'] = request.flow_action_shrink
10462
10475
  if not UtilClient.is_unset(request.from_):
10463
- body['From'] = request.from_
10476
+ query['From'] = request.from_
10464
10477
  if not UtilClient.is_unset(request.isv_code):
10465
- body['IsvCode'] = request.isv_code
10478
+ query['IsvCode'] = request.isv_code
10466
10479
  if not UtilClient.is_unset(request.label):
10467
- body['Label'] = request.label
10480
+ query['Label'] = request.label
10468
10481
  if not UtilClient.is_unset(request.language):
10469
- body['Language'] = request.language
10482
+ query['Language'] = request.language
10470
10483
  if not UtilClient.is_unset(request.message_type):
10471
- body['MessageType'] = request.message_type
10484
+ query['MessageType'] = request.message_type
10485
+ if not UtilClient.is_unset(request.owner_id):
10486
+ query['OwnerId'] = request.owner_id
10487
+ if not UtilClient.is_unset(request.payload_shrink):
10488
+ query['Payload'] = request.payload_shrink
10472
10489
  if not UtilClient.is_unset(request.product_action_shrink):
10473
- body['ProductAction'] = request.product_action_shrink
10490
+ query['ProductAction'] = request.product_action_shrink
10474
10491
  if not UtilClient.is_unset(request.recipient_type):
10475
- body['RecipientType'] = request.recipient_type
10492
+ query['RecipientType'] = request.recipient_type
10493
+ if not UtilClient.is_unset(request.resource_owner_account):
10494
+ query['ResourceOwnerAccount'] = request.resource_owner_account
10495
+ if not UtilClient.is_unset(request.resource_owner_id):
10496
+ query['ResourceOwnerId'] = request.resource_owner_id
10476
10497
  if not UtilClient.is_unset(request.tag):
10477
- body['Tag'] = request.tag
10498
+ query['Tag'] = request.tag
10478
10499
  if not UtilClient.is_unset(request.task_id):
10479
- body['TaskId'] = request.task_id
10500
+ query['TaskId'] = request.task_id
10480
10501
  if not UtilClient.is_unset(request.template_code):
10481
- body['TemplateCode'] = request.template_code
10502
+ query['TemplateCode'] = request.template_code
10482
10503
  if not UtilClient.is_unset(request.template_name):
10483
- body['TemplateName'] = request.template_name
10504
+ query['TemplateName'] = request.template_name
10484
10505
  if not UtilClient.is_unset(request.template_params_shrink):
10485
- body['TemplateParams'] = request.template_params_shrink
10506
+ query['TemplateParams'] = request.template_params_shrink
10486
10507
  if not UtilClient.is_unset(request.to):
10487
- body['To'] = request.to
10508
+ query['To'] = request.to
10488
10509
  if not UtilClient.is_unset(request.tracking_data):
10489
- body['TrackingData'] = request.tracking_data
10510
+ query['TrackingData'] = request.tracking_data
10490
10511
  if not UtilClient.is_unset(request.ttl):
10491
- body['Ttl'] = request.ttl
10512
+ query['Ttl'] = request.ttl
10492
10513
  if not UtilClient.is_unset(request.type):
10493
- body['Type'] = request.type
10514
+ query['Type'] = request.type
10494
10515
  req = open_api_models.OpenApiRequest(
10495
- query=OpenApiUtilClient.query(query),
10496
- body=OpenApiUtilClient.parse_to_map(body)
10516
+ query=OpenApiUtilClient.query(query)
10497
10517
  )
10498
10518
  params = open_api_models.Params(
10499
10519
  action='SendChatappMessage',
@@ -20590,9 +20590,7 @@ class SendChatappMassMessageRequestSenderListFlowAction(TeaModel):
20590
20590
  flow_action_data: Dict[str, Any] = None,
20591
20591
  flow_token: str = None,
20592
20592
  ):
20593
- # The default parameter of the Flow.
20594
20593
  self.flow_action_data = flow_action_data
20595
- # The information about the Flow token.
20596
20594
  self.flow_token = flow_token
20597
20595
 
20598
20596
  def validate(self):
@@ -20624,7 +20622,6 @@ class SendChatappMassMessageRequestSenderListProductActionSectionsProductItems(T
20624
20622
  self,
20625
20623
  product_retailer_id: str = None,
20626
20624
  ):
20627
- # The retailer ID of the product.
20628
20625
  self.product_retailer_id = product_retailer_id
20629
20626
 
20630
20627
  def validate(self):
@@ -20653,9 +20650,7 @@ class SendChatappMassMessageRequestSenderListProductActionSections(TeaModel):
20653
20650
  product_items: List[SendChatappMassMessageRequestSenderListProductActionSectionsProductItems] = None,
20654
20651
  title: str = None,
20655
20652
  ):
20656
- # The products.
20657
20653
  self.product_items = product_items
20658
- # The name of the category.
20659
20654
  self.title = title
20660
20655
 
20661
20656
  def validate(self):
@@ -20696,9 +20691,7 @@ class SendChatappMassMessageRequestSenderListProductAction(TeaModel):
20696
20691
  sections: List[SendChatappMassMessageRequestSenderListProductActionSections] = None,
20697
20692
  thumbnail_product_retailer_id: str = None,
20698
20693
  ):
20699
- # The products. Up to 30 products and 10 categories can be added.
20700
20694
  self.sections = sections
20701
- # The retailer ID of the product.
20702
20695
  self.thumbnail_product_retailer_id = thumbnail_product_retailer_id
20703
20696
 
20704
20697
  def validate(self):
@@ -20742,17 +20735,10 @@ class SendChatappMassMessageRequestSenderList(TeaModel):
20742
20735
  template_params: Dict[str, str] = None,
20743
20736
  to: str = None,
20744
20737
  ):
20745
- # The Flow action.
20746
20738
  self.flow_action = flow_action
20747
- # The payload of the button.
20748
20739
  self.payload = payload
20749
- # The information about the product.
20750
20740
  self.product_action = product_action
20751
- # The parameters of the template.
20752
20741
  self.template_params = template_params
20753
- # The mobile phone number of the message receiver.
20754
- #
20755
- # This parameter is required.
20756
20742
  self.to = to
20757
20743
 
20758
20744
  def validate(self):
@@ -20810,6 +20796,9 @@ class SendChatappMassMessageRequest(TeaModel):
20810
20796
  isv_code: str = None,
20811
20797
  label: str = None,
20812
20798
  language: str = None,
20799
+ owner_id: int = None,
20800
+ resource_owner_account: str = None,
20801
+ resource_owner_id: int = None,
20813
20802
  sender_list: List[SendChatappMassMessageRequestSenderList] = None,
20814
20803
  tag: str = None,
20815
20804
  task_id: str = None,
@@ -20817,59 +20806,28 @@ class SendChatappMassMessageRequest(TeaModel):
20817
20806
  template_name: str = None,
20818
20807
  ttl: int = None,
20819
20808
  ):
20820
- # The type of the channel. Valid values:
20821
- #
20822
- # * **whatsapp**\
20823
- # * **viber**\
20824
- # * **line** (under development)
20825
- #
20826
20809
  # This parameter is required.
20827
20810
  self.channel_type = channel_type
20828
- # The space ID of the user.
20829
20811
  self.cust_space_id = cust_space_id
20830
- # The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
20831
- #
20832
- # > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
20833
20812
  self.cust_waba_id = cust_waba_id
20834
- # The content of the fallback message.
20835
20813
  self.fall_back_content = fall_back_content
20836
- # Specifies the period of time after which the fallback message is sent if the message receipt that indicates the message is delivered to clients is not received. If this parameter is left empty, the fallback message is sent only when the message fails to be sent or the message receipt that indicates the message is not delivered to clients is received. Unit: seconds. Valid values: 60 to 43200.
20837
20814
  self.fall_back_duration = fall_back_duration
20838
- # The ID of the fallback policy.
20839
20815
  self.fall_back_id = fall_back_id
20840
- # The fallback rule. Valid values:
20841
- #
20842
- # * **undelivered**: A fallback is triggered if the message is not delivered to clients. When the message is being sent, the template parameters are verified. If the parameters fail to pass the verification, the message fails to be sent. Whether the template and phone number are prohibited is not verified. By default, this value is used when FallBackRule is left empty.
20843
- # * **sentFailed**: A fallback is triggered even if the template parameters including variables fail to pass the verification. If the channelType, type, messageType, to, and from parameters fail to pass the verification, a fallback is not triggered.
20844
20816
  self.fall_back_rule = fall_back_rule
20845
- # The mobile phone number of the message sender.
20846
- #
20847
20817
  # This parameter is required.
20848
20818
  self.from_ = from_
20849
- # The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
20850
20819
  self.isv_code = isv_code
20851
- # The type of the Viber message. Valid values:
20852
- #
20853
- # * **promotion**\
20854
- # * **transaction**\
20855
20820
  self.label = label
20856
- # The language. For more information about language codes, see [Language codes](https://help.aliyun.com/document_detail/463420.html).
20857
- #
20858
20821
  # This parameter is required.
20859
20822
  self.language = language
20860
- # The mobile phone numbers of the message receivers.
20861
- #
20862
- # This parameter is required.
20823
+ self.owner_id = owner_id
20824
+ self.resource_owner_account = resource_owner_account
20825
+ self.resource_owner_id = resource_owner_id
20863
20826
  self.sender_list = sender_list
20864
- # The tag information when the ChannelType parameter is set to viber.
20865
20827
  self.tag = tag
20866
- # The task ID.
20867
20828
  self.task_id = task_id
20868
- # The template code.
20869
20829
  self.template_code = template_code
20870
- # The name of the message template.
20871
20830
  self.template_name = template_name
20872
- # The timeout period for sending messages when the ChannelType parameter is set to viber. Valid values: 30 to 1209600. Unit: seconds.
20873
20831
  self.ttl = ttl
20874
20832
 
20875
20833
  def validate(self):
@@ -20906,6 +20864,12 @@ class SendChatappMassMessageRequest(TeaModel):
20906
20864
  result['Label'] = self.label
20907
20865
  if self.language is not None:
20908
20866
  result['Language'] = self.language
20867
+ if self.owner_id is not None:
20868
+ result['OwnerId'] = self.owner_id
20869
+ if self.resource_owner_account is not None:
20870
+ result['ResourceOwnerAccount'] = self.resource_owner_account
20871
+ if self.resource_owner_id is not None:
20872
+ result['ResourceOwnerId'] = self.resource_owner_id
20909
20873
  result['SenderList'] = []
20910
20874
  if self.sender_list is not None:
20911
20875
  for k in self.sender_list:
@@ -20946,6 +20910,12 @@ class SendChatappMassMessageRequest(TeaModel):
20946
20910
  self.label = m.get('Label')
20947
20911
  if m.get('Language') is not None:
20948
20912
  self.language = m.get('Language')
20913
+ if m.get('OwnerId') is not None:
20914
+ self.owner_id = m.get('OwnerId')
20915
+ if m.get('ResourceOwnerAccount') is not None:
20916
+ self.resource_owner_account = m.get('ResourceOwnerAccount')
20917
+ if m.get('ResourceOwnerId') is not None:
20918
+ self.resource_owner_id = m.get('ResourceOwnerId')
20949
20919
  self.sender_list = []
20950
20920
  if m.get('SenderList') is not None:
20951
20921
  for k in m.get('SenderList'):
@@ -20978,6 +20948,9 @@ class SendChatappMassMessageShrinkRequest(TeaModel):
20978
20948
  isv_code: str = None,
20979
20949
  label: str = None,
20980
20950
  language: str = None,
20951
+ owner_id: int = None,
20952
+ resource_owner_account: str = None,
20953
+ resource_owner_id: int = None,
20981
20954
  sender_list_shrink: str = None,
20982
20955
  tag: str = None,
20983
20956
  task_id: str = None,
@@ -20985,59 +20958,28 @@ class SendChatappMassMessageShrinkRequest(TeaModel):
20985
20958
  template_name: str = None,
20986
20959
  ttl: int = None,
20987
20960
  ):
20988
- # The type of the channel. Valid values:
20989
- #
20990
- # * **whatsapp**\
20991
- # * **viber**\
20992
- # * **line** (under development)
20993
- #
20994
20961
  # This parameter is required.
20995
20962
  self.channel_type = channel_type
20996
- # The space ID of the user.
20997
20963
  self.cust_space_id = cust_space_id
20998
- # The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
20999
- #
21000
- # > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
21001
20964
  self.cust_waba_id = cust_waba_id
21002
- # The content of the fallback message.
21003
20965
  self.fall_back_content = fall_back_content
21004
- # Specifies the period of time after which the fallback message is sent if the message receipt that indicates the message is delivered to clients is not received. If this parameter is left empty, the fallback message is sent only when the message fails to be sent or the message receipt that indicates the message is not delivered to clients is received. Unit: seconds. Valid values: 60 to 43200.
21005
20966
  self.fall_back_duration = fall_back_duration
21006
- # The ID of the fallback policy.
21007
20967
  self.fall_back_id = fall_back_id
21008
- # The fallback rule. Valid values:
21009
- #
21010
- # * **undelivered**: A fallback is triggered if the message is not delivered to clients. When the message is being sent, the template parameters are verified. If the parameters fail to pass the verification, the message fails to be sent. Whether the template and phone number are prohibited is not verified. By default, this value is used when FallBackRule is left empty.
21011
- # * **sentFailed**: A fallback is triggered even if the template parameters including variables fail to pass the verification. If the channelType, type, messageType, to, and from parameters fail to pass the verification, a fallback is not triggered.
21012
20968
  self.fall_back_rule = fall_back_rule
21013
- # The mobile phone number of the message sender.
21014
- #
21015
20969
  # This parameter is required.
21016
20970
  self.from_ = from_
21017
- # The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
21018
20971
  self.isv_code = isv_code
21019
- # The type of the Viber message. Valid values:
21020
- #
21021
- # * **promotion**\
21022
- # * **transaction**\
21023
20972
  self.label = label
21024
- # The language. For more information about language codes, see [Language codes](https://help.aliyun.com/document_detail/463420.html).
21025
- #
21026
20973
  # This parameter is required.
21027
20974
  self.language = language
21028
- # The mobile phone numbers of the message receivers.
21029
- #
21030
- # This parameter is required.
20975
+ self.owner_id = owner_id
20976
+ self.resource_owner_account = resource_owner_account
20977
+ self.resource_owner_id = resource_owner_id
21031
20978
  self.sender_list_shrink = sender_list_shrink
21032
- # The tag information when the ChannelType parameter is set to viber.
21033
20979
  self.tag = tag
21034
- # The task ID.
21035
20980
  self.task_id = task_id
21036
- # The template code.
21037
20981
  self.template_code = template_code
21038
- # The name of the message template.
21039
20982
  self.template_name = template_name
21040
- # The timeout period for sending messages when the ChannelType parameter is set to viber. Valid values: 30 to 1209600. Unit: seconds.
21041
20983
  self.ttl = ttl
21042
20984
 
21043
20985
  def validate(self):
@@ -21071,6 +21013,12 @@ class SendChatappMassMessageShrinkRequest(TeaModel):
21071
21013
  result['Label'] = self.label
21072
21014
  if self.language is not None:
21073
21015
  result['Language'] = self.language
21016
+ if self.owner_id is not None:
21017
+ result['OwnerId'] = self.owner_id
21018
+ if self.resource_owner_account is not None:
21019
+ result['ResourceOwnerAccount'] = self.resource_owner_account
21020
+ if self.resource_owner_id is not None:
21021
+ result['ResourceOwnerId'] = self.resource_owner_id
21074
21022
  if self.sender_list_shrink is not None:
21075
21023
  result['SenderList'] = self.sender_list_shrink
21076
21024
  if self.tag is not None:
@@ -21109,6 +21057,12 @@ class SendChatappMassMessageShrinkRequest(TeaModel):
21109
21057
  self.label = m.get('Label')
21110
21058
  if m.get('Language') is not None:
21111
21059
  self.language = m.get('Language')
21060
+ if m.get('OwnerId') is not None:
21061
+ self.owner_id = m.get('OwnerId')
21062
+ if m.get('ResourceOwnerAccount') is not None:
21063
+ self.resource_owner_account = m.get('ResourceOwnerAccount')
21064
+ if m.get('ResourceOwnerId') is not None:
21065
+ self.resource_owner_id = m.get('ResourceOwnerId')
21112
21066
  if m.get('SenderList') is not None:
21113
21067
  self.sender_list_shrink = m.get('SenderList')
21114
21068
  if m.get('Tag') is not None:
@@ -21230,9 +21184,7 @@ class SendChatappMessageRequestFlowAction(TeaModel):
21230
21184
  flow_action_data: Dict[str, Any] = None,
21231
21185
  flow_token: str = None,
21232
21186
  ):
21233
- # The default parameter of the Flow.
21234
21187
  self.flow_action_data = flow_action_data
21235
- # The Flow token.
21236
21188
  self.flow_token = flow_token
21237
21189
 
21238
21190
  def validate(self):
@@ -21264,7 +21216,6 @@ class SendChatappMessageRequestProductActionSectionsProductItems(TeaModel):
21264
21216
  self,
21265
21217
  product_retailer_id: str = None,
21266
21218
  ):
21267
- # The retailer ID of the product.
21268
21219
  self.product_retailer_id = product_retailer_id
21269
21220
 
21270
21221
  def validate(self):
@@ -21293,9 +21244,7 @@ class SendChatappMessageRequestProductActionSections(TeaModel):
21293
21244
  product_items: List[SendChatappMessageRequestProductActionSectionsProductItems] = None,
21294
21245
  title: str = None,
21295
21246
  ):
21296
- # The products.
21297
21247
  self.product_items = product_items
21298
- # The name of the category.
21299
21248
  self.title = title
21300
21249
 
21301
21250
  def validate(self):
@@ -21336,9 +21285,7 @@ class SendChatappMessageRequestProductAction(TeaModel):
21336
21285
  sections: List[SendChatappMessageRequestProductActionSections] = None,
21337
21286
  thumbnail_product_retailer_id: str = None,
21338
21287
  ):
21339
- # The products. Up to 30 products and 10 categories can be added.
21340
21288
  self.sections = sections
21341
- # The retailer ID of the product.
21342
21289
  self.thumbnail_product_retailer_id = thumbnail_product_retailer_id
21343
21290
 
21344
21291
  def validate(self):
@@ -21391,9 +21338,12 @@ class SendChatappMessageRequest(TeaModel):
21391
21338
  label: str = None,
21392
21339
  language: str = None,
21393
21340
  message_type: str = None,
21341
+ owner_id: int = None,
21394
21342
  payload: List[str] = None,
21395
21343
  product_action: SendChatappMessageRequestProductAction = None,
21396
21344
  recipient_type: str = None,
21345
+ resource_owner_account: str = None,
21346
+ resource_owner_id: int = None,
21397
21347
  tag: str = None,
21398
21348
  task_id: str = None,
21399
21349
  template_code: str = None,
@@ -21404,12 +21354,6 @@ class SendChatappMessageRequest(TeaModel):
21404
21354
  ttl: int = None,
21405
21355
  type: str = None,
21406
21356
  ):
21407
- # The channel type. Valid values:
21408
- #
21409
- # * **whatsapp**\
21410
- # * **viber**\
21411
- # * **line** (under development)
21412
- #
21413
21357
  # This parameter is required.
21414
21358
  self.channel_type = channel_type
21415
21359
  # The message content.
@@ -21438,99 +21382,36 @@ class SendChatappMessageRequest(TeaModel):
21438
21382
  # * If you set **messageType** to **text_video**, you must specify **text**, **link**, **thumbnail**, **fileSize**, and **duration**.
21439
21383
  # * If you set **messageType** to **text_video_button**, you must specify **text**, **link**, **thumbnail**, **fileSize**, **duration**, and **caption**. In addition, you must not specify **action**.
21440
21384
  self.content = content
21441
- # The ID of the reply message.
21442
21385
  self.context_message_id = context_message_id
21443
- # The space ID of the user.
21444
21386
  self.cust_space_id = cust_space_id
21445
- # The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
21446
- #
21447
- # > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
21448
21387
  self.cust_waba_id = cust_waba_id
21449
- # The content of the fallback message.
21450
21388
  self.fall_back_content = fall_back_content
21451
- # Specifies the period of time after which the fallback message is sent if the message receipt that indicates the message is delivered to clients is not received. If this parameter is left empty, the fallback message is sent only when the **message fails to be sent** or **the message receipt that indicates the message is not delivered to clients** is received. Unit: seconds. Valid values: 60 to 43200.
21452
21389
  self.fall_back_duration = fall_back_duration
21453
- # The ID of the fallback policy. You can create a fallback policy and view the information in the Chat App Message Service console.
21454
21390
  self.fall_back_id = fall_back_id
21455
- # The fallback rule. Valid values:
21456
- #
21457
- # * **undelivered**: A fallback is triggered if the message is not delivered to clients. When the message is being sent, the template parameters are verified. If the parameters fail to pass the verification, the message fails to be sent. Whether the template and phone number are prohibited is not verified. By default, this value is used when FallBackRule is left empty.
21458
- # * **sentFailed**: A fallback is triggered even if the template parameters including variables fail to pass the verification. If the channelType, type, messageType, to, and from parameters fail to pass the verification, a fallback is not triggered.
21459
21391
  self.fall_back_rule = fall_back_rule
21460
- # The Flow action.
21461
21392
  self.flow_action = flow_action
21462
- # The mobile phone number of the message sender.
21463
- #
21464
- # > You can specify a mobile phone number that is registered for a WhatsApp account and is approved in the Chat App Message Service console.
21465
- #
21466
21393
  # This parameter is required.
21467
21394
  self.from_ = from_
21468
- # The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
21469
21395
  self.isv_code = isv_code
21470
- # The type of the Viber message. This parameter is required if ChannelType is set to viber. Valid values:
21471
- #
21472
- # * **promotion**\
21473
- # * **transaction**\
21474
21396
  self.label = label
21475
- # The language that is used in the message template. This parameter is required only if you set the Type parameter to **template**. For more information about language codes, see [Language codes](https://help.aliyun.com/document_detail/463420.html).
21476
21397
  self.language = language
21477
- # The specific type of the message. This parameter is required only if you set the Type parameter to **message**.
21478
- #
21479
- # **Valid values of MessageType when you set the ChannelType parameter to whatsapp:**\
21480
- #
21481
- # * **text**: a text message.
21482
- # * **image**: an image message.
21483
- # * **video**: a video message.
21484
- # * **audio**: an audio message.
21485
- # * **document**: a document message.
21486
- # * **interactive**: an interactive message.
21487
- # * **contacts**: a contact message.
21488
- # * **location**: a location message.
21489
- # * **sticker**: a sticker message.
21490
- # * **reaction**: a reaction message.
21491
- #
21492
- # **Valid values of MessageType when you set the ChannelType parameter to viber:**\
21493
- #
21494
- # * **text**: a text message.
21495
- # * **image**: an image message.
21496
- # * **video**: a video message.
21497
- # * **document**: a document message.
21498
- # * **text_button**: a message that contains the text and button media objects.
21499
- # * **text_image_button**: a message that contains multiple media objects, including the text, image, and button.
21500
- # * **text_video**: a message that contains the text and video media objects.
21501
- # * **text_video_button**: a message that contains multiple media objects, including text, video, and button.
21502
- # * **text_image**: a message that contains the text and image media objects.
21503
- #
21504
- # > For more information, see [Parameters of a message template](https://help.aliyun.com/document_detail/454530.html).
21505
21398
  self.message_type = message_type
21399
+ self.owner_id = owner_id
21506
21400
  # The payload of the button.
21507
21401
  self.payload = payload
21508
- # The information about the products included in the WhatsApp catalog message or multi-product message (MPM).
21509
21402
  self.product_action = product_action
21510
21403
  self.recipient_type = recipient_type
21511
- # The tag information of the Viber message.
21404
+ self.resource_owner_account = resource_owner_account
21405
+ self.resource_owner_id = resource_owner_id
21512
21406
  self.tag = tag
21513
- # The task ID.
21514
21407
  self.task_id = task_id
21515
- # The code of the message template. This parameter is required only if you set the Type parameter to **template**.
21516
21408
  self.template_code = template_code
21517
- # The name of the message template.
21518
21409
  self.template_name = template_name
21519
- # The variables of the message template.
21520
21410
  self.template_params = template_params
21521
- # The mobile phone number of the message receiver.
21522
- #
21523
21411
  # This parameter is required.
21524
21412
  self.to = to
21525
- # The tracking data of the Viber message.
21526
21413
  self.tracking_data = tracking_data
21527
- # The timeout period for sending the Viber message. Valid values: 30 to 1209600. Unit: seconds.
21528
21414
  self.ttl = ttl
21529
- # The message type. Valid values:
21530
- #
21531
- # * **template**: the template message. A template message is sent based on a template that is created and approved in the Chat App Message Service console. You can send template messages based on your business requirements.
21532
- # * **message**: the custom message. You can send a custom WhatsApp message to a user only within 24 hours after you receive the last message from the user. This limit does not apply to custom Viber messages.
21533
- #
21534
21415
  # This parameter is required.
21535
21416
  self.type = type
21536
21417
 
@@ -21576,12 +21457,18 @@ class SendChatappMessageRequest(TeaModel):
21576
21457
  result['Language'] = self.language
21577
21458
  if self.message_type is not None:
21578
21459
  result['MessageType'] = self.message_type
21460
+ if self.owner_id is not None:
21461
+ result['OwnerId'] = self.owner_id
21579
21462
  if self.payload is not None:
21580
21463
  result['Payload'] = self.payload
21581
21464
  if self.product_action is not None:
21582
21465
  result['ProductAction'] = self.product_action.to_map()
21583
21466
  if self.recipient_type is not None:
21584
21467
  result['RecipientType'] = self.recipient_type
21468
+ if self.resource_owner_account is not None:
21469
+ result['ResourceOwnerAccount'] = self.resource_owner_account
21470
+ if self.resource_owner_id is not None:
21471
+ result['ResourceOwnerId'] = self.resource_owner_id
21585
21472
  if self.tag is not None:
21586
21473
  result['Tag'] = self.tag
21587
21474
  if self.task_id is not None:
@@ -21635,6 +21522,8 @@ class SendChatappMessageRequest(TeaModel):
21635
21522
  self.language = m.get('Language')
21636
21523
  if m.get('MessageType') is not None:
21637
21524
  self.message_type = m.get('MessageType')
21525
+ if m.get('OwnerId') is not None:
21526
+ self.owner_id = m.get('OwnerId')
21638
21527
  if m.get('Payload') is not None:
21639
21528
  self.payload = m.get('Payload')
21640
21529
  if m.get('ProductAction') is not None:
@@ -21642,6 +21531,10 @@ class SendChatappMessageRequest(TeaModel):
21642
21531
  self.product_action = temp_model.from_map(m['ProductAction'])
21643
21532
  if m.get('RecipientType') is not None:
21644
21533
  self.recipient_type = m.get('RecipientType')
21534
+ if m.get('ResourceOwnerAccount') is not None:
21535
+ self.resource_owner_account = m.get('ResourceOwnerAccount')
21536
+ if m.get('ResourceOwnerId') is not None:
21537
+ self.resource_owner_id = m.get('ResourceOwnerId')
21645
21538
  if m.get('Tag') is not None:
21646
21539
  self.tag = m.get('Tag')
21647
21540
  if m.get('TaskId') is not None:
@@ -21681,9 +21574,12 @@ class SendChatappMessageShrinkRequest(TeaModel):
21681
21574
  label: str = None,
21682
21575
  language: str = None,
21683
21576
  message_type: str = None,
21577
+ owner_id: int = None,
21684
21578
  payload_shrink: str = None,
21685
21579
  product_action_shrink: str = None,
21686
21580
  recipient_type: str = None,
21581
+ resource_owner_account: str = None,
21582
+ resource_owner_id: int = None,
21687
21583
  tag: str = None,
21688
21584
  task_id: str = None,
21689
21585
  template_code: str = None,
@@ -21694,12 +21590,6 @@ class SendChatappMessageShrinkRequest(TeaModel):
21694
21590
  ttl: int = None,
21695
21591
  type: str = None,
21696
21592
  ):
21697
- # The channel type. Valid values:
21698
- #
21699
- # * **whatsapp**\
21700
- # * **viber**\
21701
- # * **line** (under development)
21702
- #
21703
21593
  # This parameter is required.
21704
21594
  self.channel_type = channel_type
21705
21595
  # The message content.
@@ -21728,99 +21618,36 @@ class SendChatappMessageShrinkRequest(TeaModel):
21728
21618
  # * If you set **messageType** to **text_video**, you must specify **text**, **link**, **thumbnail**, **fileSize**, and **duration**.
21729
21619
  # * If you set **messageType** to **text_video_button**, you must specify **text**, **link**, **thumbnail**, **fileSize**, **duration**, and **caption**. In addition, you must not specify **action**.
21730
21620
  self.content = content
21731
- # The ID of the reply message.
21732
21621
  self.context_message_id = context_message_id
21733
- # The space ID of the user.
21734
21622
  self.cust_space_id = cust_space_id
21735
- # The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
21736
- #
21737
- # > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
21738
21623
  self.cust_waba_id = cust_waba_id
21739
- # The content of the fallback message.
21740
21624
  self.fall_back_content = fall_back_content
21741
- # Specifies the period of time after which the fallback message is sent if the message receipt that indicates the message is delivered to clients is not received. If this parameter is left empty, the fallback message is sent only when the **message fails to be sent** or **the message receipt that indicates the message is not delivered to clients** is received. Unit: seconds. Valid values: 60 to 43200.
21742
21625
  self.fall_back_duration = fall_back_duration
21743
- # The ID of the fallback policy. You can create a fallback policy and view the information in the Chat App Message Service console.
21744
21626
  self.fall_back_id = fall_back_id
21745
- # The fallback rule. Valid values:
21746
- #
21747
- # * **undelivered**: A fallback is triggered if the message is not delivered to clients. When the message is being sent, the template parameters are verified. If the parameters fail to pass the verification, the message fails to be sent. Whether the template and phone number are prohibited is not verified. By default, this value is used when FallBackRule is left empty.
21748
- # * **sentFailed**: A fallback is triggered even if the template parameters including variables fail to pass the verification. If the channelType, type, messageType, to, and from parameters fail to pass the verification, a fallback is not triggered.
21749
21627
  self.fall_back_rule = fall_back_rule
21750
- # The Flow action.
21751
21628
  self.flow_action_shrink = flow_action_shrink
21752
- # The mobile phone number of the message sender.
21753
- #
21754
- # > You can specify a mobile phone number that is registered for a WhatsApp account and is approved in the Chat App Message Service console.
21755
- #
21756
21629
  # This parameter is required.
21757
21630
  self.from_ = from_
21758
- # The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
21759
21631
  self.isv_code = isv_code
21760
- # The type of the Viber message. This parameter is required if ChannelType is set to viber. Valid values:
21761
- #
21762
- # * **promotion**\
21763
- # * **transaction**\
21764
21632
  self.label = label
21765
- # The language that is used in the message template. This parameter is required only if you set the Type parameter to **template**. For more information about language codes, see [Language codes](https://help.aliyun.com/document_detail/463420.html).
21766
21633
  self.language = language
21767
- # The specific type of the message. This parameter is required only if you set the Type parameter to **message**.
21768
- #
21769
- # **Valid values of MessageType when you set the ChannelType parameter to whatsapp:**\
21770
- #
21771
- # * **text**: a text message.
21772
- # * **image**: an image message.
21773
- # * **video**: a video message.
21774
- # * **audio**: an audio message.
21775
- # * **document**: a document message.
21776
- # * **interactive**: an interactive message.
21777
- # * **contacts**: a contact message.
21778
- # * **location**: a location message.
21779
- # * **sticker**: a sticker message.
21780
- # * **reaction**: a reaction message.
21781
- #
21782
- # **Valid values of MessageType when you set the ChannelType parameter to viber:**\
21783
- #
21784
- # * **text**: a text message.
21785
- # * **image**: an image message.
21786
- # * **video**: a video message.
21787
- # * **document**: a document message.
21788
- # * **text_button**: a message that contains the text and button media objects.
21789
- # * **text_image_button**: a message that contains multiple media objects, including the text, image, and button.
21790
- # * **text_video**: a message that contains the text and video media objects.
21791
- # * **text_video_button**: a message that contains multiple media objects, including text, video, and button.
21792
- # * **text_image**: a message that contains the text and image media objects.
21793
- #
21794
- # > For more information, see [Parameters of a message template](https://help.aliyun.com/document_detail/454530.html).
21795
21634
  self.message_type = message_type
21635
+ self.owner_id = owner_id
21796
21636
  # The payload of the button.
21797
21637
  self.payload_shrink = payload_shrink
21798
- # The information about the products included in the WhatsApp catalog message or multi-product message (MPM).
21799
21638
  self.product_action_shrink = product_action_shrink
21800
21639
  self.recipient_type = recipient_type
21801
- # The tag information of the Viber message.
21640
+ self.resource_owner_account = resource_owner_account
21641
+ self.resource_owner_id = resource_owner_id
21802
21642
  self.tag = tag
21803
- # The task ID.
21804
21643
  self.task_id = task_id
21805
- # The code of the message template. This parameter is required only if you set the Type parameter to **template**.
21806
21644
  self.template_code = template_code
21807
- # The name of the message template.
21808
21645
  self.template_name = template_name
21809
- # The variables of the message template.
21810
21646
  self.template_params_shrink = template_params_shrink
21811
- # The mobile phone number of the message receiver.
21812
- #
21813
21647
  # This parameter is required.
21814
21648
  self.to = to
21815
- # The tracking data of the Viber message.
21816
21649
  self.tracking_data = tracking_data
21817
- # The timeout period for sending the Viber message. Valid values: 30 to 1209600. Unit: seconds.
21818
21650
  self.ttl = ttl
21819
- # The message type. Valid values:
21820
- #
21821
- # * **template**: the template message. A template message is sent based on a template that is created and approved in the Chat App Message Service console. You can send template messages based on your business requirements.
21822
- # * **message**: the custom message. You can send a custom WhatsApp message to a user only within 24 hours after you receive the last message from the user. This limit does not apply to custom Viber messages.
21823
- #
21824
21651
  # This parameter is required.
21825
21652
  self.type = type
21826
21653
 
@@ -21863,12 +21690,18 @@ class SendChatappMessageShrinkRequest(TeaModel):
21863
21690
  result['Language'] = self.language
21864
21691
  if self.message_type is not None:
21865
21692
  result['MessageType'] = self.message_type
21693
+ if self.owner_id is not None:
21694
+ result['OwnerId'] = self.owner_id
21866
21695
  if self.payload_shrink is not None:
21867
21696
  result['Payload'] = self.payload_shrink
21868
21697
  if self.product_action_shrink is not None:
21869
21698
  result['ProductAction'] = self.product_action_shrink
21870
21699
  if self.recipient_type is not None:
21871
21700
  result['RecipientType'] = self.recipient_type
21701
+ if self.resource_owner_account is not None:
21702
+ result['ResourceOwnerAccount'] = self.resource_owner_account
21703
+ if self.resource_owner_id is not None:
21704
+ result['ResourceOwnerId'] = self.resource_owner_id
21872
21705
  if self.tag is not None:
21873
21706
  result['Tag'] = self.tag
21874
21707
  if self.task_id is not None:
@@ -21921,12 +21754,18 @@ class SendChatappMessageShrinkRequest(TeaModel):
21921
21754
  self.language = m.get('Language')
21922
21755
  if m.get('MessageType') is not None:
21923
21756
  self.message_type = m.get('MessageType')
21757
+ if m.get('OwnerId') is not None:
21758
+ self.owner_id = m.get('OwnerId')
21924
21759
  if m.get('Payload') is not None:
21925
21760
  self.payload_shrink = m.get('Payload')
21926
21761
  if m.get('ProductAction') is not None:
21927
21762
  self.product_action_shrink = m.get('ProductAction')
21928
21763
  if m.get('RecipientType') is not None:
21929
21764
  self.recipient_type = m.get('RecipientType')
21765
+ if m.get('ResourceOwnerAccount') is not None:
21766
+ self.resource_owner_account = m.get('ResourceOwnerAccount')
21767
+ if m.get('ResourceOwnerId') is not None:
21768
+ self.resource_owner_id = m.get('ResourceOwnerId')
21930
21769
  if m.get('Tag') is not None:
21931
21770
  self.tag = m.get('Tag')
21932
21771
  if m.get('TaskId') is not None:
@@ -21951,11 +21790,13 @@ class SendChatappMessageShrinkRequest(TeaModel):
21951
21790
  class SendChatappMessageResponseBody(TeaModel):
21952
21791
  def __init__(
21953
21792
  self,
21793
+ access_denied_detail: str = None,
21954
21794
  code: str = None,
21955
21795
  message: str = None,
21956
21796
  message_id: str = None,
21957
21797
  request_id: str = None,
21958
21798
  ):
21799
+ self.access_denied_detail = access_denied_detail
21959
21800
  # The HTTP status code returned.
21960
21801
  #
21961
21802
  # * A value of OK indicates that the call is successful.
@@ -21977,6 +21818,8 @@ class SendChatappMessageResponseBody(TeaModel):
21977
21818
  return _map
21978
21819
 
21979
21820
  result = dict()
21821
+ if self.access_denied_detail is not None:
21822
+ result['AccessDeniedDetail'] = self.access_denied_detail
21980
21823
  if self.code is not None:
21981
21824
  result['Code'] = self.code
21982
21825
  if self.message is not None:
@@ -21989,6 +21832,8 @@ class SendChatappMessageResponseBody(TeaModel):
21989
21832
 
21990
21833
  def from_map(self, m: dict = None):
21991
21834
  m = m or dict()
21835
+ if m.get('AccessDeniedDetail') is not None:
21836
+ self.access_denied_detail = m.get('AccessDeniedDetail')
21992
21837
  if m.get('Code') is not None:
21993
21838
  self.code = m.get('Code')
21994
21839
  if m.get('Message') is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-cams20200606
3
- Version: 3.1.0
3
+ Version: 3.1.1
4
4
  Summary: Alibaba Cloud cams (20200606) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
24
24
  """
25
25
  setup module for alibabacloud_cams20200606.
26
26
 
27
- Created on 21/07/2025
27
+ Created on 31/07/2025
28
28
 
29
29
  @author: Alibaba Cloud SDK
30
30
  """
@@ -1 +0,0 @@
1
- __version__ = '3.1.0'