@alicloud/cams20200606 1.0.4

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/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ English | [简体中文](README-CN.md)
2
+ ![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
3
+
4
+ # Alibaba Cloud cams SDK for NodeJS
5
+
6
+ ## Installation
7
+ If you use `npm` to manage your dependence, you can use the following command:
8
+
9
+ ```sh
10
+ npm install @alicloud/cams20200606 -S
11
+ ```
12
+
13
+ ## Issues
14
+ [Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
15
+
16
+ ## Usage
17
+ [Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
18
+
19
+ ## References
20
+ * [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
21
+
22
+ ## License
23
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
24
+
25
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
@@ -0,0 +1,359 @@
1
+ /**
2
+ *
3
+ */
4
+ import * as $Util from '@alicloud/tea-util';
5
+ import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
+ import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class CheckContactsRequest extends $tea.Model {
8
+ channelType?: string;
9
+ contacts?: string;
10
+ from?: string;
11
+ ownerId?: number;
12
+ resourceOwnerAccount?: string;
13
+ resourceOwnerId?: number;
14
+ static names(): {
15
+ [key: string]: string;
16
+ };
17
+ static types(): {
18
+ [key: string]: any;
19
+ };
20
+ constructor(map?: {
21
+ [key: string]: any;
22
+ });
23
+ }
24
+ export declare class CheckContactsResponseBody extends $tea.Model {
25
+ contacts?: CheckContactsResponseBodyContacts[];
26
+ requestId?: string;
27
+ resultCode?: string;
28
+ resultMessage?: string;
29
+ static names(): {
30
+ [key: string]: string;
31
+ };
32
+ static types(): {
33
+ [key: string]: any;
34
+ };
35
+ constructor(map?: {
36
+ [key: string]: any;
37
+ });
38
+ }
39
+ export declare class CheckContactsResponse extends $tea.Model {
40
+ headers: {
41
+ [key: string]: string;
42
+ };
43
+ body: CheckContactsResponseBody;
44
+ static names(): {
45
+ [key: string]: string;
46
+ };
47
+ static types(): {
48
+ [key: string]: any;
49
+ };
50
+ constructor(map?: {
51
+ [key: string]: any;
52
+ });
53
+ }
54
+ export declare class CreateChatappTemplateRequest extends $tea.Model {
55
+ category?: string;
56
+ components?: string;
57
+ example?: string;
58
+ language?: string;
59
+ name?: string;
60
+ ownerId?: number;
61
+ resourceOwnerAccount?: string;
62
+ resourceOwnerId?: number;
63
+ templateType?: string;
64
+ static names(): {
65
+ [key: string]: string;
66
+ };
67
+ static types(): {
68
+ [key: string]: any;
69
+ };
70
+ constructor(map?: {
71
+ [key: string]: any;
72
+ });
73
+ }
74
+ export declare class CreateChatappTemplateResponseBody extends $tea.Model {
75
+ code?: string;
76
+ data?: string;
77
+ message?: string;
78
+ requestId?: string;
79
+ static names(): {
80
+ [key: string]: string;
81
+ };
82
+ static types(): {
83
+ [key: string]: any;
84
+ };
85
+ constructor(map?: {
86
+ [key: string]: any;
87
+ });
88
+ }
89
+ export declare class CreateChatappTemplateResponse extends $tea.Model {
90
+ headers: {
91
+ [key: string]: string;
92
+ };
93
+ body: CreateChatappTemplateResponseBody;
94
+ static names(): {
95
+ [key: string]: string;
96
+ };
97
+ static types(): {
98
+ [key: string]: any;
99
+ };
100
+ constructor(map?: {
101
+ [key: string]: any;
102
+ });
103
+ }
104
+ export declare class DeleteChatappTemplateRequest extends $tea.Model {
105
+ ownerId?: number;
106
+ resourceOwnerAccount?: string;
107
+ resourceOwnerId?: number;
108
+ templateCode?: string;
109
+ static names(): {
110
+ [key: string]: string;
111
+ };
112
+ static types(): {
113
+ [key: string]: any;
114
+ };
115
+ constructor(map?: {
116
+ [key: string]: any;
117
+ });
118
+ }
119
+ export declare class DeleteChatappTemplateResponseBody extends $tea.Model {
120
+ code?: string;
121
+ message?: string;
122
+ requestId?: string;
123
+ static names(): {
124
+ [key: string]: string;
125
+ };
126
+ static types(): {
127
+ [key: string]: any;
128
+ };
129
+ constructor(map?: {
130
+ [key: string]: any;
131
+ });
132
+ }
133
+ export declare class DeleteChatappTemplateResponse extends $tea.Model {
134
+ headers: {
135
+ [key: string]: string;
136
+ };
137
+ body: DeleteChatappTemplateResponseBody;
138
+ static names(): {
139
+ [key: string]: string;
140
+ };
141
+ static types(): {
142
+ [key: string]: any;
143
+ };
144
+ constructor(map?: {
145
+ [key: string]: any;
146
+ });
147
+ }
148
+ export declare class GetChatappTemplateDetailRequest extends $tea.Model {
149
+ language?: string;
150
+ ownerId?: number;
151
+ resourceOwnerAccount?: string;
152
+ resourceOwnerId?: number;
153
+ templateCode?: string;
154
+ static names(): {
155
+ [key: string]: string;
156
+ };
157
+ static types(): {
158
+ [key: string]: any;
159
+ };
160
+ constructor(map?: {
161
+ [key: string]: any;
162
+ });
163
+ }
164
+ export declare class GetChatappTemplateDetailResponseBody extends $tea.Model {
165
+ code?: string;
166
+ data?: string;
167
+ message?: string;
168
+ requestId?: string;
169
+ static names(): {
170
+ [key: string]: string;
171
+ };
172
+ static types(): {
173
+ [key: string]: any;
174
+ };
175
+ constructor(map?: {
176
+ [key: string]: any;
177
+ });
178
+ }
179
+ export declare class GetChatappTemplateDetailResponse extends $tea.Model {
180
+ headers: {
181
+ [key: string]: string;
182
+ };
183
+ body: GetChatappTemplateDetailResponseBody;
184
+ static names(): {
185
+ [key: string]: string;
186
+ };
187
+ static types(): {
188
+ [key: string]: any;
189
+ };
190
+ constructor(map?: {
191
+ [key: string]: any;
192
+ });
193
+ }
194
+ export declare class ListChatappTemplateRequest extends $tea.Model {
195
+ auditStatus?: string;
196
+ language?: string;
197
+ name?: string;
198
+ ownerId?: number;
199
+ page?: string;
200
+ resourceOwnerAccount?: string;
201
+ resourceOwnerId?: number;
202
+ static names(): {
203
+ [key: string]: string;
204
+ };
205
+ static types(): {
206
+ [key: string]: any;
207
+ };
208
+ constructor(map?: {
209
+ [key: string]: any;
210
+ });
211
+ }
212
+ export declare class ListChatappTemplateResponseBody extends $tea.Model {
213
+ code?: string;
214
+ listTemplate?: ListChatappTemplateResponseBodyListTemplate[];
215
+ message?: string;
216
+ requestId?: string;
217
+ static names(): {
218
+ [key: string]: string;
219
+ };
220
+ static types(): {
221
+ [key: string]: any;
222
+ };
223
+ constructor(map?: {
224
+ [key: string]: any;
225
+ });
226
+ }
227
+ export declare class ListChatappTemplateResponse extends $tea.Model {
228
+ headers: {
229
+ [key: string]: string;
230
+ };
231
+ body: ListChatappTemplateResponseBody;
232
+ static names(): {
233
+ [key: string]: string;
234
+ };
235
+ static types(): {
236
+ [key: string]: any;
237
+ };
238
+ constructor(map?: {
239
+ [key: string]: any;
240
+ });
241
+ }
242
+ export declare class SendMessageRequest extends $tea.Model {
243
+ caption?: string;
244
+ channelType?: string;
245
+ fileName?: string;
246
+ from?: string;
247
+ link?: string;
248
+ messageType?: string;
249
+ ownerId?: number;
250
+ resourceOwnerAccount?: string;
251
+ resourceOwnerId?: number;
252
+ templateBodyParams?: string;
253
+ templateButtonParams?: string;
254
+ templateCode?: string;
255
+ templateHeaderParams?: string;
256
+ text?: string;
257
+ to?: string;
258
+ type?: string;
259
+ static names(): {
260
+ [key: string]: string;
261
+ };
262
+ static types(): {
263
+ [key: string]: any;
264
+ };
265
+ constructor(map?: {
266
+ [key: string]: any;
267
+ });
268
+ }
269
+ export declare class SendMessageResponseBody extends $tea.Model {
270
+ module?: SendMessageResponseBodyModule;
271
+ requestId?: string;
272
+ resultCode?: string;
273
+ resultMessage?: string;
274
+ static names(): {
275
+ [key: string]: string;
276
+ };
277
+ static types(): {
278
+ [key: string]: any;
279
+ };
280
+ constructor(map?: {
281
+ [key: string]: any;
282
+ });
283
+ }
284
+ export declare class SendMessageResponse extends $tea.Model {
285
+ headers: {
286
+ [key: string]: string;
287
+ };
288
+ body: SendMessageResponseBody;
289
+ static names(): {
290
+ [key: string]: string;
291
+ };
292
+ static types(): {
293
+ [key: string]: any;
294
+ };
295
+ constructor(map?: {
296
+ [key: string]: any;
297
+ });
298
+ }
299
+ export declare class CheckContactsResponseBodyContacts extends $tea.Model {
300
+ phoneNumber?: string;
301
+ status?: string;
302
+ static names(): {
303
+ [key: string]: string;
304
+ };
305
+ static types(): {
306
+ [key: string]: any;
307
+ };
308
+ constructor(map?: {
309
+ [key: string]: any;
310
+ });
311
+ }
312
+ export declare class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
313
+ auditStatus?: string;
314
+ category?: string;
315
+ language?: string;
316
+ templateCode?: string;
317
+ templateName?: string;
318
+ static names(): {
319
+ [key: string]: string;
320
+ };
321
+ static types(): {
322
+ [key: string]: any;
323
+ };
324
+ constructor(map?: {
325
+ [key: string]: any;
326
+ });
327
+ }
328
+ export declare class SendMessageResponseBodyModule extends $tea.Model {
329
+ fromId?: string;
330
+ messageId?: string;
331
+ toId?: string;
332
+ static names(): {
333
+ [key: string]: string;
334
+ };
335
+ static types(): {
336
+ [key: string]: any;
337
+ };
338
+ constructor(map?: {
339
+ [key: string]: any;
340
+ });
341
+ }
342
+ export default class Client extends OpenApi {
343
+ constructor(config: $OpenApi.Config);
344
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
345
+ [key: string]: string;
346
+ }, endpoint: string): string;
347
+ checkContactsWithOptions(request: CheckContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckContactsResponse>;
348
+ checkContacts(request: CheckContactsRequest): Promise<CheckContactsResponse>;
349
+ createChatappTemplateWithOptions(request: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse>;
350
+ createChatappTemplate(request: CreateChatappTemplateRequest): Promise<CreateChatappTemplateResponse>;
351
+ deleteChatappTemplateWithOptions(request: DeleteChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteChatappTemplateResponse>;
352
+ deleteChatappTemplate(request: DeleteChatappTemplateRequest): Promise<DeleteChatappTemplateResponse>;
353
+ getChatappTemplateDetailWithOptions(request: GetChatappTemplateDetailRequest, runtime: $Util.RuntimeOptions): Promise<GetChatappTemplateDetailResponse>;
354
+ getChatappTemplateDetail(request: GetChatappTemplateDetailRequest): Promise<GetChatappTemplateDetailResponse>;
355
+ listChatappTemplateWithOptions(request: ListChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ListChatappTemplateResponse>;
356
+ listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
357
+ sendMessageWithOptions(request: SendMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendMessageResponse>;
358
+ sendMessage(request: SendMessageRequest): Promise<SendMessageResponse>;
359
+ }