@alicloud/cams20200606 4.1.1 → 4.1.3
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.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +5 -2
- package/dist/client.js.map +1 -1
- package/dist/models/AddCustomAudienceUserRequest.d.ts +2 -2
- package/dist/models/ChatappBindWabaRequest.d.ts +3 -1
- package/dist/models/ChatappBindWabaRequest.js.map +1 -1
- package/dist/models/ChatappPhoneNumberDeregisterRequest.d.ts +6 -2
- package/dist/models/ChatappPhoneNumberDeregisterRequest.js.map +1 -1
- package/dist/models/ChatappPhoneNumberRegisterRequest.d.ts +6 -2
- package/dist/models/ChatappPhoneNumberRegisterRequest.js.map +1 -1
- package/dist/models/ChatappVerifyAndRegisterRequest.d.ts +8 -2
- package/dist/models/ChatappVerifyAndRegisterRequest.js.map +1 -1
- package/dist/models/CreateFlowRequest.d.ts +9 -2
- package/dist/models/CreateFlowRequest.js.map +1 -1
- package/dist/models/CreateFlowShrinkRequest.d.ts +9 -2
- package/dist/models/CreateFlowShrinkRequest.js.map +1 -1
- package/dist/models/CreatePhoneMessageQrdlRequest.d.ts +13 -4
- package/dist/models/CreatePhoneMessageQrdlRequest.js.map +1 -1
- package/dist/models/DeleteFlowRequest.d.ts +7 -2
- package/dist/models/DeleteFlowRequest.js.map +1 -1
- package/dist/models/DeletePhoneMessageQrdlRequest.d.ts +10 -3
- package/dist/models/DeletePhoneMessageQrdlRequest.js.map +1 -1
- package/dist/models/DeprecateFlowRequest.d.ts +7 -2
- package/dist/models/DeprecateFlowRequest.js.map +1 -1
- package/dist/models/GetChatappVerifyCodeRequest.d.ts +16 -3
- package/dist/models/GetChatappVerifyCodeRequest.js.map +1 -1
- package/dist/models/GetFlowJsonassestRequest.d.ts +8 -2
- package/dist/models/GetFlowJsonassestRequest.js.map +1 -1
- package/dist/models/GetFlowPreviewUrlRequest.d.ts +7 -2
- package/dist/models/GetFlowPreviewUrlRequest.js.map +1 -1
- package/dist/models/GetFlowRequest.d.ts +7 -2
- package/dist/models/GetFlowRequest.js.map +1 -1
- package/dist/models/GetPermissionByCodeRequest.d.ts +11 -2
- package/dist/models/GetPermissionByCodeRequest.js.map +1 -1
- package/dist/models/GetPermissionByCodeShrinkRequest.d.ts +11 -2
- package/dist/models/GetPermissionByCodeShrinkRequest.js.map +1 -1
- package/dist/models/GetPhoneEncryptionPublicKeyRequest.d.ts +7 -2
- package/dist/models/GetPhoneEncryptionPublicKeyRequest.js.map +1 -1
- package/dist/models/GetPhoneNumberVerificationStatusRequest.d.ts +6 -2
- package/dist/models/GetPhoneNumberVerificationStatusRequest.js.map +1 -1
- package/dist/models/IsvGetAppIdRequest.d.ts +13 -2
- package/dist/models/IsvGetAppIdRequest.js.map +1 -1
- package/dist/models/ListFlowRequest.d.ts +26 -2
- package/dist/models/ListFlowRequest.js.map +1 -1
- package/dist/models/ListFlowShrinkRequest.d.ts +12 -2
- package/dist/models/ListFlowShrinkRequest.js.map +1 -1
- package/dist/models/ListPhoneMessageQrdlRequest.d.ts +7 -2
- package/dist/models/ListPhoneMessageQrdlRequest.js.map +1 -1
- package/dist/models/ModifyFlowRequest.d.ts +13 -3
- package/dist/models/ModifyFlowRequest.js.map +1 -1
- package/dist/models/ModifyFlowShrinkRequest.d.ts +13 -3
- package/dist/models/ModifyFlowShrinkRequest.js.map +1 -1
- package/dist/models/PublishFlowRequest.d.ts +7 -2
- package/dist/models/PublishFlowRequest.js.map +1 -1
- package/dist/models/SendChatappMassMessageRequest.d.ts +128 -20
- package/dist/models/SendChatappMassMessageRequest.js.map +1 -1
- package/dist/models/SendChatappMassMessageShrinkRequest.d.ts +80 -15
- package/dist/models/SendChatappMassMessageShrinkRequest.js.map +1 -1
- package/dist/models/SendChatappMessageRequest.d.ts +175 -23
- package/dist/models/SendChatappMessageRequest.js +2 -0
- package/dist/models/SendChatappMessageRequest.js.map +1 -1
- package/dist/models/SendChatappMessageShrinkRequest.d.ts +147 -19
- package/dist/models/SendChatappMessageShrinkRequest.js +2 -0
- package/dist/models/SendChatappMessageShrinkRequest.js.map +1 -1
- package/dist/models/UpdateFlowJsonassetRequest.d.ts +10 -3
- package/dist/models/UpdateFlowJsonassetRequest.js.map +1 -1
- package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.d.ts +18 -3
- package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.js.map +1 -1
- package/dist/models/UpdatePhoneMessageQrdlRequest.d.ts +16 -5
- package/dist/models/UpdatePhoneMessageQrdlRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +6 -2
- package/src/models/AddCustomAudienceUserRequest.ts +2 -2
- package/src/models/ChatappBindWabaRequest.ts +3 -1
- package/src/models/ChatappPhoneNumberDeregisterRequest.ts +6 -2
- package/src/models/ChatappPhoneNumberRegisterRequest.ts +6 -2
- package/src/models/ChatappVerifyAndRegisterRequest.ts +8 -2
- package/src/models/CreateFlowRequest.ts +9 -2
- package/src/models/CreateFlowShrinkRequest.ts +9 -2
- package/src/models/CreatePhoneMessageQrdlRequest.ts +13 -4
- package/src/models/DeleteFlowRequest.ts +7 -2
- package/src/models/DeletePhoneMessageQrdlRequest.ts +10 -3
- package/src/models/DeprecateFlowRequest.ts +7 -2
- package/src/models/GetChatappVerifyCodeRequest.ts +16 -3
- package/src/models/GetFlowJsonassestRequest.ts +8 -2
- package/src/models/GetFlowPreviewUrlRequest.ts +7 -2
- package/src/models/GetFlowRequest.ts +7 -2
- package/src/models/GetPermissionByCodeRequest.ts +11 -2
- package/src/models/GetPermissionByCodeShrinkRequest.ts +11 -2
- package/src/models/GetPhoneEncryptionPublicKeyRequest.ts +7 -2
- package/src/models/GetPhoneNumberVerificationStatusRequest.ts +6 -2
- package/src/models/IsvGetAppIdRequest.ts +13 -2
- package/src/models/ListFlowRequest.ts +26 -2
- package/src/models/ListFlowShrinkRequest.ts +12 -2
- package/src/models/ListPhoneMessageQrdlRequest.ts +7 -2
- package/src/models/ModifyFlowRequest.ts +13 -3
- package/src/models/ModifyFlowShrinkRequest.ts +13 -3
- package/src/models/PublishFlowRequest.ts +7 -2
- package/src/models/SendChatappMassMessageRequest.ts +128 -20
- package/src/models/SendChatappMassMessageShrinkRequest.ts +80 -15
- package/src/models/SendChatappMessageRequest.ts +177 -23
- package/src/models/SendChatappMessageShrinkRequest.ts +149 -19
- package/src/models/UpdateFlowJsonassetRequest.ts +10 -3
- package/src/models/UpdatePhoneEncryptionPublicKeyRequest.ts +18 -3
- package/src/models/UpdatePhoneMessageQrdlRequest.ts +16 -5
|
@@ -2,95 +2,160 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class SendChatappMassMessageShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
+
* The type of the channel. Valid values:
|
|
6
|
+
*
|
|
7
|
+
* * **whatsapp**
|
|
8
|
+
* * **viber**
|
|
9
|
+
* * **line** (under development)
|
|
10
|
+
*
|
|
5
11
|
* This parameter is required.
|
|
6
12
|
*
|
|
7
13
|
* @example
|
|
8
|
-
*
|
|
14
|
+
* whatsapp
|
|
9
15
|
*/
|
|
10
16
|
channelType?: string;
|
|
11
17
|
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* The space ID of the user.
|
|
20
|
+
*
|
|
12
21
|
* @example
|
|
13
|
-
*
|
|
22
|
+
* 28251486512358****
|
|
14
23
|
*/
|
|
15
24
|
custSpaceId?: string;
|
|
16
25
|
/**
|
|
26
|
+
* @remarks
|
|
27
|
+
* The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
|
|
28
|
+
*
|
|
29
|
+
* > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
|
|
30
|
+
*
|
|
17
31
|
* @example
|
|
18
|
-
*
|
|
32
|
+
* 65921621816****
|
|
19
33
|
*
|
|
20
34
|
* @deprecated
|
|
21
35
|
*/
|
|
22
36
|
custWabaId?: string;
|
|
23
37
|
/**
|
|
38
|
+
* @remarks
|
|
39
|
+
* The content of the fallback message.
|
|
40
|
+
*
|
|
24
41
|
* @example
|
|
25
|
-
*
|
|
42
|
+
* Fallback message
|
|
26
43
|
*/
|
|
27
44
|
fallBackContent?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @remarks
|
|
47
|
+
* 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.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* 120
|
|
51
|
+
*/
|
|
28
52
|
fallBackDuration?: number;
|
|
29
53
|
/**
|
|
54
|
+
* @remarks
|
|
55
|
+
* The ID of the fallback policy.
|
|
56
|
+
*
|
|
30
57
|
* @example
|
|
31
|
-
*
|
|
58
|
+
* S00001
|
|
32
59
|
*/
|
|
33
60
|
fallBackId?: string;
|
|
34
61
|
/**
|
|
62
|
+
* @remarks
|
|
63
|
+
* The fallback rule. Valid values:
|
|
64
|
+
*
|
|
65
|
+
* * **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.
|
|
66
|
+
* * **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.
|
|
67
|
+
*
|
|
35
68
|
* @example
|
|
36
|
-
*
|
|
69
|
+
* undelivered
|
|
37
70
|
*/
|
|
38
71
|
fallBackRule?: string;
|
|
39
72
|
/**
|
|
40
73
|
* @remarks
|
|
74
|
+
* The mobile phone number of the message sender.
|
|
75
|
+
*
|
|
41
76
|
* This parameter is required.
|
|
42
77
|
*
|
|
43
78
|
* @example
|
|
44
|
-
*
|
|
79
|
+
* 861387777****
|
|
45
80
|
*/
|
|
46
81
|
from?: string;
|
|
47
82
|
/**
|
|
83
|
+
* @remarks
|
|
84
|
+
* The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
|
|
85
|
+
*
|
|
48
86
|
* @example
|
|
49
|
-
*
|
|
87
|
+
* skdi3kksloslikdkkdk
|
|
50
88
|
*
|
|
51
89
|
* @deprecated
|
|
52
90
|
*/
|
|
53
91
|
isvCode?: string;
|
|
54
92
|
/**
|
|
93
|
+
* @remarks
|
|
94
|
+
* The type of the Viber message. Valid values:
|
|
95
|
+
*
|
|
96
|
+
* * **promotion**
|
|
97
|
+
* * **transaction**
|
|
98
|
+
*
|
|
55
99
|
* @example
|
|
56
|
-
*
|
|
100
|
+
* promotion
|
|
57
101
|
*/
|
|
58
102
|
label?: string;
|
|
59
103
|
/**
|
|
60
104
|
* @remarks
|
|
105
|
+
* The language. For more information about language codes, see [Language codes](https://help.aliyun.com/document_detail/463420.html).
|
|
106
|
+
*
|
|
61
107
|
* This parameter is required.
|
|
62
108
|
*
|
|
63
109
|
* @example
|
|
64
|
-
*
|
|
110
|
+
* en
|
|
65
111
|
*/
|
|
66
112
|
language?: string;
|
|
67
113
|
ownerId?: number;
|
|
68
114
|
resourceOwnerAccount?: string;
|
|
69
115
|
resourceOwnerId?: number;
|
|
116
|
+
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The mobile phone numbers of the message receivers.
|
|
119
|
+
*/
|
|
70
120
|
senderListShrink?: string;
|
|
71
121
|
/**
|
|
122
|
+
* @remarks
|
|
123
|
+
* The tag information when the ChannelType parameter is set to viber.
|
|
124
|
+
*
|
|
72
125
|
* @example
|
|
73
|
-
*
|
|
126
|
+
* tag
|
|
74
127
|
*/
|
|
75
128
|
tag?: string;
|
|
76
129
|
/**
|
|
130
|
+
* @remarks
|
|
131
|
+
* The task ID.
|
|
132
|
+
*
|
|
77
133
|
* @example
|
|
78
|
-
*
|
|
134
|
+
* 100000001
|
|
79
135
|
*/
|
|
80
136
|
taskId?: string;
|
|
81
137
|
/**
|
|
138
|
+
* @remarks
|
|
139
|
+
* The template code.
|
|
140
|
+
*
|
|
82
141
|
* @example
|
|
83
|
-
*
|
|
142
|
+
* 744c4b5c79c9432497a075bdfca36bf5
|
|
84
143
|
*/
|
|
85
144
|
templateCode?: string;
|
|
86
145
|
/**
|
|
146
|
+
* @remarks
|
|
147
|
+
* The name of the message template.
|
|
148
|
+
*
|
|
87
149
|
* @example
|
|
88
|
-
*
|
|
150
|
+
* test_name
|
|
89
151
|
*/
|
|
90
152
|
templateName?: string;
|
|
91
153
|
/**
|
|
154
|
+
* @remarks
|
|
155
|
+
* The timeout period for sending messages when the ChannelType parameter is set to viber. Valid values: 30 to 1209600. Unit: seconds.
|
|
156
|
+
*
|
|
92
157
|
* @example
|
|
93
|
-
*
|
|
158
|
+
* 50
|
|
94
159
|
*/
|
|
95
160
|
ttl?: number;
|
|
96
161
|
static names(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendChatappMassMessageShrinkRequest.js","sourceRoot":"","sources":["../../src/models/SendChatappMassMessageShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"SendChatappMassMessageShrinkRequest.js","sourceRoot":"","sources":["../../src/models/SendChatappMassMessageShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IA+JlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,eAAe,EAAE,iBAAiB;YAClC,gBAAgB,EAAE,kBAAkB;YACpC,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,oBAAoB,EAAE,sBAAsB;YAC5C,eAAe,EAAE,iBAAiB;YAClC,gBAAgB,EAAE,YAAY;YAC9B,GAAG,EAAE,KAAK;YACV,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,cAAc;YAC5B,YAAY,EAAE,cAAc;YAC5B,GAAG,EAAE,KAAK;SACX,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,eAAe,EAAE,QAAQ;YACzB,gBAAgB,EAAE,QAAQ;YAC1B,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,oBAAoB,EAAE,QAAQ;YAC9B,eAAe,EAAE,QAAQ;YACzB,gBAAgB,EAAE,QAAQ;YAC1B,GAAG,EAAE,QAAQ;YACb,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,QAAQ;YACtB,YAAY,EAAE,QAAQ;YACtB,GAAG,EAAE,QAAQ;SACd,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxND,kFAwNC"}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class SendChatappMessageRequestFlowAction extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The default parameter of the Flow.
|
|
6
|
+
*/
|
|
3
7
|
flowActionData?: {
|
|
4
8
|
[key: string]: any;
|
|
5
9
|
};
|
|
6
10
|
/**
|
|
11
|
+
* @remarks
|
|
12
|
+
* The Flow token.
|
|
13
|
+
*
|
|
7
14
|
* @example
|
|
8
|
-
*
|
|
15
|
+
* 1122***
|
|
9
16
|
*/
|
|
10
17
|
flowToken?: string;
|
|
11
18
|
static names(): {
|
|
@@ -21,8 +28,11 @@ export declare class SendChatappMessageRequestFlowAction extends $dara.Model {
|
|
|
21
28
|
}
|
|
22
29
|
export declare class SendChatappMessageRequestProductActionSectionsProductItems extends $dara.Model {
|
|
23
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The retailer ID of the product.
|
|
33
|
+
*
|
|
24
34
|
* @example
|
|
25
|
-
*
|
|
35
|
+
* 9I39E9E
|
|
26
36
|
*/
|
|
27
37
|
productRetailerId?: string;
|
|
28
38
|
static names(): {
|
|
@@ -37,10 +47,17 @@ export declare class SendChatappMessageRequestProductActionSectionsProductItems
|
|
|
37
47
|
});
|
|
38
48
|
}
|
|
39
49
|
export declare class SendChatappMessageRequestProductActionSections extends $dara.Model {
|
|
50
|
+
/**
|
|
51
|
+
* @remarks
|
|
52
|
+
* The products.
|
|
53
|
+
*/
|
|
40
54
|
productItems?: SendChatappMessageRequestProductActionSectionsProductItems[];
|
|
41
55
|
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The name of the category.
|
|
58
|
+
*
|
|
42
59
|
* @example
|
|
43
|
-
*
|
|
60
|
+
* Test
|
|
44
61
|
*/
|
|
45
62
|
title?: string;
|
|
46
63
|
static names(): {
|
|
@@ -55,10 +72,17 @@ export declare class SendChatappMessageRequestProductActionSections extends $dar
|
|
|
55
72
|
});
|
|
56
73
|
}
|
|
57
74
|
export declare class SendChatappMessageRequestProductAction extends $dara.Model {
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The products. Up to 30 products and 10 categories can be added.
|
|
78
|
+
*/
|
|
58
79
|
sections?: SendChatappMessageRequestProductActionSections[];
|
|
59
80
|
/**
|
|
81
|
+
* @remarks
|
|
82
|
+
* The retailer ID of the product.
|
|
83
|
+
*
|
|
60
84
|
* @example
|
|
61
|
-
*
|
|
85
|
+
* S238SK
|
|
62
86
|
*/
|
|
63
87
|
thumbnailProductRetailerId?: string;
|
|
64
88
|
static names(): {
|
|
@@ -78,12 +102,23 @@ export declare class SendChatappMessageRequest extends $dara.Model {
|
|
|
78
102
|
* 示例值示例值
|
|
79
103
|
*/
|
|
80
104
|
adAccountId?: string;
|
|
105
|
+
/**
|
|
106
|
+
* @example
|
|
107
|
+
* UTILITY
|
|
108
|
+
*/
|
|
109
|
+
category?: string;
|
|
81
110
|
/**
|
|
82
111
|
* @remarks
|
|
112
|
+
* The channel type. Valid values:
|
|
113
|
+
*
|
|
114
|
+
* * **whatsapp**
|
|
115
|
+
* * **viber**
|
|
116
|
+
* * **line** (under development)
|
|
117
|
+
*
|
|
83
118
|
* This parameter is required.
|
|
84
119
|
*
|
|
85
120
|
* @example
|
|
86
|
-
*
|
|
121
|
+
* whatsapp
|
|
87
122
|
*/
|
|
88
123
|
channelType?: string;
|
|
89
124
|
/**
|
|
@@ -119,62 +154,112 @@ export declare class SendChatappMessageRequest extends $dara.Model {
|
|
|
119
154
|
*/
|
|
120
155
|
content?: string;
|
|
121
156
|
/**
|
|
157
|
+
* @remarks
|
|
158
|
+
* The ID of the reply message.
|
|
159
|
+
*
|
|
122
160
|
* @example
|
|
123
|
-
*
|
|
161
|
+
* 61851ccb2f1365b16aee****
|
|
124
162
|
*/
|
|
125
163
|
contextMessageId?: string;
|
|
126
164
|
/**
|
|
165
|
+
* @remarks
|
|
166
|
+
* The space ID of the user.
|
|
167
|
+
*
|
|
127
168
|
* @example
|
|
128
|
-
*
|
|
169
|
+
* 28251486512358****
|
|
129
170
|
*/
|
|
130
171
|
custSpaceId?: string;
|
|
131
172
|
/**
|
|
173
|
+
* @remarks
|
|
174
|
+
* The WhatsApp Business Account (WABA) ID of the RAM user within the independent software vendor (ISV) account.
|
|
175
|
+
*
|
|
176
|
+
* > CustWabaId is an obsolete parameter. Use CustSpaceId instead.
|
|
177
|
+
*
|
|
132
178
|
* @example
|
|
133
|
-
*
|
|
179
|
+
* 65921621816****
|
|
134
180
|
*
|
|
135
181
|
* @deprecated
|
|
136
182
|
*/
|
|
137
183
|
custWabaId?: string;
|
|
138
184
|
/**
|
|
185
|
+
* @remarks
|
|
186
|
+
* The content of the fallback message.
|
|
187
|
+
*
|
|
139
188
|
* @example
|
|
140
|
-
*
|
|
189
|
+
* This is a fallback message.
|
|
141
190
|
*/
|
|
142
191
|
fallBackContent?: string;
|
|
192
|
+
/**
|
|
193
|
+
* @remarks
|
|
194
|
+
* 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.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* 120
|
|
198
|
+
*/
|
|
143
199
|
fallBackDuration?: number;
|
|
144
200
|
/**
|
|
201
|
+
* @remarks
|
|
202
|
+
* The ID of the fallback policy. You can create a fallback policy and view the information in the Chat App Message Service console.
|
|
203
|
+
*
|
|
145
204
|
* @example
|
|
146
|
-
*
|
|
205
|
+
* S_000001
|
|
147
206
|
*/
|
|
148
207
|
fallBackId?: string;
|
|
149
208
|
/**
|
|
209
|
+
* @remarks
|
|
210
|
+
* The fallback rule. Valid values:
|
|
211
|
+
*
|
|
212
|
+
* * **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.
|
|
213
|
+
* * **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.
|
|
214
|
+
*
|
|
150
215
|
* @example
|
|
151
|
-
*
|
|
216
|
+
* undelivered
|
|
152
217
|
*/
|
|
153
218
|
fallBackRule?: string;
|
|
219
|
+
/**
|
|
220
|
+
* @remarks
|
|
221
|
+
* The Flow action.
|
|
222
|
+
*/
|
|
154
223
|
flowAction?: SendChatappMessageRequestFlowAction;
|
|
155
224
|
/**
|
|
156
225
|
* @remarks
|
|
226
|
+
* The mobile phone number of the message sender.
|
|
227
|
+
*
|
|
228
|
+
* > You can specify a mobile phone number that is registered for a WhatsApp account and is approved in the Chat App Message Service console.
|
|
229
|
+
*
|
|
157
230
|
* This parameter is required.
|
|
158
231
|
*
|
|
159
232
|
* @example
|
|
160
|
-
*
|
|
233
|
+
* 1360000****
|
|
161
234
|
*/
|
|
162
235
|
from?: string;
|
|
163
236
|
/**
|
|
237
|
+
* @remarks
|
|
238
|
+
* The ISV verification code. This parameter is used to verify whether the RAM user is authorized by the ISV account.
|
|
239
|
+
*
|
|
164
240
|
* @example
|
|
165
|
-
*
|
|
241
|
+
* skdi3kksloslikdkkdk
|
|
166
242
|
*
|
|
167
243
|
* @deprecated
|
|
168
244
|
*/
|
|
169
245
|
isvCode?: string;
|
|
170
246
|
/**
|
|
247
|
+
* @remarks
|
|
248
|
+
* The type of the Viber message. This parameter is required if ChannelType is set to viber. Valid values:
|
|
249
|
+
*
|
|
250
|
+
* * **promotion**
|
|
251
|
+
* * **transaction**
|
|
252
|
+
*
|
|
171
253
|
* @example
|
|
172
|
-
*
|
|
254
|
+
* promotion
|
|
173
255
|
*/
|
|
174
256
|
label?: string;
|
|
175
257
|
/**
|
|
258
|
+
* @remarks
|
|
259
|
+
* 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).
|
|
260
|
+
*
|
|
176
261
|
* @example
|
|
177
|
-
*
|
|
262
|
+
* en
|
|
178
263
|
*/
|
|
179
264
|
language?: string;
|
|
180
265
|
/**
|
|
@@ -183,8 +268,38 @@ export declare class SendChatappMessageRequest extends $dara.Model {
|
|
|
183
268
|
*/
|
|
184
269
|
messageCampaignId?: string;
|
|
185
270
|
/**
|
|
271
|
+
* @remarks
|
|
272
|
+
* The specific type of the message. This parameter is required only if you set the Type parameter to **message**.
|
|
273
|
+
*
|
|
274
|
+
* **Valid values of MessageType when you set the ChannelType parameter to whatsapp:**
|
|
275
|
+
*
|
|
276
|
+
* * **text**: a text message.
|
|
277
|
+
* * **image**: an image message.
|
|
278
|
+
* * **video**: a video message.
|
|
279
|
+
* * **audio**: an audio message.
|
|
280
|
+
* * **document**: a document message.
|
|
281
|
+
* * **interactive**: an interactive message.
|
|
282
|
+
* * **contacts**: a contact message.
|
|
283
|
+
* * **location**: a location message.
|
|
284
|
+
* * **sticker**: a sticker message.
|
|
285
|
+
* * **reaction**: a reaction message.
|
|
286
|
+
*
|
|
287
|
+
* **Valid values of MessageType when you set the ChannelType parameter to viber:**
|
|
288
|
+
*
|
|
289
|
+
* * **text**: a text message.
|
|
290
|
+
* * **image**: an image message.
|
|
291
|
+
* * **video**: a video message.
|
|
292
|
+
* * **document**: a document message.
|
|
293
|
+
* * **text_button**: a message that contains the text and button media objects.
|
|
294
|
+
* * **text_image_button**: a message that contains multiple media objects, including the text, image, and button.
|
|
295
|
+
* * **text_video**: a message that contains the text and video media objects.
|
|
296
|
+
* * **text_video_button**: a message that contains multiple media objects, including text, video, and button.
|
|
297
|
+
* * **text_image**: a message that contains the text and image media objects.
|
|
298
|
+
*
|
|
299
|
+
* > For more information, see [Parameters of a message template](https://help.aliyun.com/document_detail/454530.html).
|
|
300
|
+
*
|
|
186
301
|
* @example
|
|
187
|
-
*
|
|
302
|
+
* text
|
|
188
303
|
*/
|
|
189
304
|
messageType?: string;
|
|
190
305
|
ownerId?: number;
|
|
@@ -196,6 +311,10 @@ export declare class SendChatappMessageRequest extends $dara.Model {
|
|
|
196
311
|
* payloadtext1,payloadtext2,payloadtext3
|
|
197
312
|
*/
|
|
198
313
|
payload?: string[];
|
|
314
|
+
/**
|
|
315
|
+
* @remarks
|
|
316
|
+
* The information about the products included in the WhatsApp catalog message or multi-product message (MPM).
|
|
317
|
+
*/
|
|
199
318
|
productAction?: SendChatappMessageRequestProductAction;
|
|
200
319
|
/**
|
|
201
320
|
* @example
|
|
@@ -205,34 +324,52 @@ export declare class SendChatappMessageRequest extends $dara.Model {
|
|
|
205
324
|
resourceOwnerAccount?: string;
|
|
206
325
|
resourceOwnerId?: number;
|
|
207
326
|
/**
|
|
327
|
+
* @remarks
|
|
328
|
+
* The tag information of the Viber message.
|
|
329
|
+
*
|
|
208
330
|
* @example
|
|
209
|
-
*
|
|
331
|
+
* tag
|
|
210
332
|
*/
|
|
211
333
|
tag?: string;
|
|
212
334
|
/**
|
|
335
|
+
* @remarks
|
|
336
|
+
* The task ID.
|
|
337
|
+
*
|
|
213
338
|
* @example
|
|
214
|
-
*
|
|
339
|
+
* 100000001
|
|
215
340
|
*/
|
|
216
341
|
taskId?: string;
|
|
217
342
|
/**
|
|
343
|
+
* @remarks
|
|
344
|
+
* The code of the message template. This parameter is required only if you set the Type parameter to **template**.
|
|
345
|
+
*
|
|
218
346
|
* @example
|
|
219
|
-
*
|
|
347
|
+
* 744c4b5c79c9432497a075bdfca3****
|
|
220
348
|
*/
|
|
221
349
|
templateCode?: string;
|
|
222
350
|
/**
|
|
351
|
+
* @remarks
|
|
352
|
+
* The name of the message template.
|
|
353
|
+
*
|
|
223
354
|
* @example
|
|
224
|
-
*
|
|
355
|
+
* test_name
|
|
225
356
|
*/
|
|
226
357
|
templateName?: string;
|
|
358
|
+
/**
|
|
359
|
+
* @remarks
|
|
360
|
+
* The variables of the message template.
|
|
361
|
+
*/
|
|
227
362
|
templateParams?: {
|
|
228
363
|
[key: string]: string;
|
|
229
364
|
};
|
|
230
365
|
/**
|
|
231
366
|
* @remarks
|
|
367
|
+
* The mobile phone number of the message receiver.
|
|
368
|
+
*
|
|
232
369
|
* This parameter is required.
|
|
233
370
|
*
|
|
234
371
|
* @example
|
|
235
|
-
*
|
|
372
|
+
* 1390000****
|
|
236
373
|
*/
|
|
237
374
|
to?: string;
|
|
238
375
|
/**
|
|
@@ -241,17 +378,32 @@ export declare class SendChatappMessageRequest extends $dara.Model {
|
|
|
241
378
|
*/
|
|
242
379
|
tokenType?: string;
|
|
243
380
|
/**
|
|
381
|
+
* @remarks
|
|
382
|
+
* The tracking data of the Viber message.
|
|
383
|
+
*
|
|
244
384
|
* @example
|
|
245
|
-
*
|
|
385
|
+
* tracking_id:123456
|
|
246
386
|
*/
|
|
247
387
|
trackingData?: string;
|
|
388
|
+
/**
|
|
389
|
+
* @remarks
|
|
390
|
+
* The timeout period for sending the Viber message. Valid values: 30 to 1209600. Unit: seconds.
|
|
391
|
+
*
|
|
392
|
+
* @example
|
|
393
|
+
* 50
|
|
394
|
+
*/
|
|
248
395
|
ttl?: number;
|
|
249
396
|
/**
|
|
250
397
|
* @remarks
|
|
398
|
+
* The message type. Valid values:
|
|
399
|
+
*
|
|
400
|
+
* * **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.
|
|
401
|
+
* * **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.
|
|
402
|
+
*
|
|
251
403
|
* This parameter is required.
|
|
252
404
|
*
|
|
253
405
|
* @example
|
|
254
|
-
*
|
|
406
|
+
* template
|
|
255
407
|
*/
|
|
256
408
|
type?: string;
|
|
257
409
|
static names(): {
|
|
@@ -131,6 +131,7 @@ class SendChatappMessageRequest extends $dara.Model {
|
|
|
131
131
|
static names() {
|
|
132
132
|
return {
|
|
133
133
|
adAccountId: 'AdAccountId',
|
|
134
|
+
category: 'Category',
|
|
134
135
|
channelType: 'ChannelType',
|
|
135
136
|
content: 'Content',
|
|
136
137
|
contextMessageId: 'ContextMessageId',
|
|
@@ -168,6 +169,7 @@ class SendChatappMessageRequest extends $dara.Model {
|
|
|
168
169
|
static types() {
|
|
169
170
|
return {
|
|
170
171
|
adAccountId: 'string',
|
|
172
|
+
category: 'string',
|
|
171
173
|
channelType: 'string',
|
|
172
174
|
content: 'string',
|
|
173
175
|
contextMessageId: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendChatappMessageRequest.js","sourceRoot":"","sources":["../../src/models/SendChatappMessageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"SendChatappMessageRequest.js","sourceRoot":"","sources":["../../src/models/SendChatappMessageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAclE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE;YAC1E,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,kFAsCC;AAED,MAAa,0DAA2D,SAAQ,KAAK,CAAC,KAAK;IASzF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,iBAAiB,EAAE,m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