@ucloud-sdks/ucloud-sdk-js 0.2.57 → 0.2.58

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.
@@ -9,6 +9,18 @@ export default class USMSClient extends Client {
9
9
  config: ConfigOptions;
10
10
  credential: CredentialOptions;
11
11
  });
12
+ /**
13
+ * AddBackfill - 用户通过接口发送消息,当消息在终端被消费,调用该接口,进行记录。
14
+ *
15
+ * See also: https://docs.ucloud.cn/api/usms-api/add_backfill
16
+ */
17
+ addBackfill(request?: AddBackfillRequest): Promise<AddBackfillResponse>;
18
+ /**
19
+ * AddUSMSSignatureQualification - 添加短信签名资质申请记录
20
+ *
21
+ * See also: https://docs.ucloud.cn/api/usms-api/add_usms_signature_qualification
22
+ */
23
+ addUSMSSignatureQualification(request?: AddUSMSSignatureQualificationRequest): Promise<AddUSMSSignatureQualificationResponse>;
12
24
  /**
13
25
  * CreateUSMSSignature - 调用接口CreateUSMSSignature申请短信签名
14
26
  *
@@ -27,6 +39,12 @@ export default class USMSClient extends Client {
27
39
  * See also: https://docs.ucloud.cn/api/usms-api/delete_usms_signature
28
40
  */
29
41
  deleteUSMSSignature(request?: DeleteUSMSSignatureRequest): Promise<DeleteUSMSSignatureResponse>;
42
+ /**
43
+ * DeleteUSMSSignatureQualification - 删除短信签名资质申请记录
44
+ *
45
+ * See also: https://docs.ucloud.cn/api/usms-api/delete_usms_signature_qualification
46
+ */
47
+ deleteUSMSSignatureQualification(request?: DeleteUSMSSignatureQualificationRequest): Promise<DeleteUSMSSignatureQualificationResponse>;
30
48
  /**
31
49
  * DeleteUSMSTemplate - 调用接口DeleteUSMSTemplate删除短信模板
32
50
  *
@@ -39,12 +57,36 @@ export default class USMSClient extends Client {
39
57
  * See also: https://docs.ucloud.cn/api/usms-api/get_usms_send_receipt
40
58
  */
41
59
  getUSMSSendReceipt(request?: GetUSMSSendReceiptRequest): Promise<GetUSMSSendReceiptResponse>;
60
+ /**
61
+ * GetUSMSSendStatistics - 获取发送统计数据
62
+ *
63
+ * See also: https://docs.ucloud.cn/api/usms-api/get_usms_send_statistics
64
+ */
65
+ getUSMSSendStatistics(request?: GetUSMSSendStatisticsRequest): Promise<GetUSMSSendStatisticsResponse>;
66
+ /**
67
+ * GetUSMSSignatureQualification - 获取短信签名资质申请记录列表
68
+ *
69
+ * See also: https://docs.ucloud.cn/api/usms-api/get_usms_signature_qualification
70
+ */
71
+ getUSMSSignatureQualification(request?: GetUSMSSignatureQualificationRequest): Promise<GetUSMSSignatureQualificationResponse>;
72
+ /**
73
+ * GetUSMSTemplateSendStatistics - 获取模板发送统计数据
74
+ *
75
+ * See also: https://docs.ucloud.cn/api/usms-api/get_usms_template_send_statistics
76
+ */
77
+ getUSMSTemplateSendStatistics(request?: GetUSMSTemplateSendStatisticsRequest): Promise<GetUSMSTemplateSendStatisticsResponse>;
42
78
  /**
43
79
  * QueryUSMSSignature - 调用接口QueryUSMSSignature查询短信签名申请状态
44
80
  *
45
81
  * See also: https://docs.ucloud.cn/api/usms-api/query_usms_signature
46
82
  */
47
83
  queryUSMSSignature(request?: QueryUSMSSignatureRequest): Promise<QueryUSMSSignatureResponse>;
84
+ /**
85
+ * QueryUSMSSignatureQualification - 获取短信签名资质申请记录详情
86
+ *
87
+ * See also: https://docs.ucloud.cn/api/usms-api/query_usms_signature_qualification
88
+ */
89
+ queryUSMSSignatureQualification(request?: QueryUSMSSignatureQualificationRequest): Promise<QueryUSMSSignatureQualificationResponse>;
48
90
  /**
49
91
  * QueryUSMSTemplate - 调用接口QueryUSMSTemplate查询短信模板申请状态
50
92
  *
@@ -69,12 +111,136 @@ export default class USMSClient extends Client {
69
111
  * See also: https://docs.ucloud.cn/api/usms-api/update_usms_signature
70
112
  */
71
113
  updateUSMSSignature(request?: UpdateUSMSSignatureRequest): Promise<UpdateUSMSSignatureResponse>;
114
+ /**
115
+ * UpdateUSMSSignatureQualification - 修改短信签名资质申请记录
116
+ *
117
+ * See also: https://docs.ucloud.cn/api/usms-api/update_usms_signature_qualification
118
+ */
119
+ updateUSMSSignatureQualification(request?: UpdateUSMSSignatureQualificationRequest): Promise<UpdateUSMSSignatureQualificationResponse>;
72
120
  /**
73
121
  * UpdateUSMSTemplate - 调用接口UpdateUSMSTemplate修改未通过审核的短信模板,并重新提交审核
74
122
  *
75
123
  * See also: https://docs.ucloud.cn/api/usms-api/update_usms_template
76
124
  */
77
125
  updateUSMSTemplate(request?: UpdateUSMSTemplateRequest): Promise<UpdateUSMSTemplateResponse>;
126
+ /**
127
+ * UploadUSMSFile - 上传文件
128
+ *
129
+ * See also: https://docs.ucloud.cn/api/usms-api/upload_usms_file
130
+ */
131
+ uploadUSMSFile(request?: UploadUSMSFileRequest): Promise<UploadUSMSFileResponse>;
132
+ }
133
+ /**
134
+ * AddBackfill - 用户通过接口发送消息,当消息在终端被消费,调用该接口,进行记录。
135
+ */
136
+ export interface AddBackfillRequest {
137
+ /**
138
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
139
+ */
140
+ Zone?: string;
141
+ /**
142
+ * 发送Number,记录一次发送请求的唯一性
143
+ */
144
+ SendNo: string;
145
+ /**
146
+ * 短信的接收目标,手机号需要添加国家码,比如(1)231xxxx
147
+ */
148
+ Target: string;
149
+ /**
150
+ * 回填时间,秒级别时间戳
151
+ */
152
+ BackfillTime?: number;
153
+ /**
154
+ * 回填内容
155
+ */
156
+ Content?: string;
157
+ /**
158
+ * 发送请求的时间,秒级别时间戳
159
+ */
160
+ SendTime?: number;
161
+ }
162
+ /**
163
+ * AddBackfill - 用户通过接口发送消息,当消息在终端被消费,调用该接口,进行记录。
164
+ */
165
+ export interface AddBackfillResponse {
166
+ }
167
+ /**
168
+ * AddUSMSSignatureQualification - 添加短信签名资质申请记录
169
+ */
170
+ export interface AddUSMSSignatureQualificationRequest {
171
+ /**
172
+ * 资质名称
173
+ */
174
+ Name: string;
175
+ /**
176
+ * 资质属性,0-自用 1-他用
177
+ */
178
+ Attr: number;
179
+ /**
180
+ * 状态:0-草稿,1-提交审核
181
+ */
182
+ Status: number;
183
+ /**
184
+ * 经办人手机号
185
+ */
186
+ HandlerPhone: string;
187
+ /**
188
+ * 公司名称,长度限制100
189
+ */
190
+ CompanyName?: string;
191
+ /**
192
+ * 公司统一社会信用代码
193
+ */
194
+ CompanyCreditCode?: string;
195
+ /**
196
+ * 公司证件文件FileId
197
+ */
198
+ CompanyCertificateFileId?: string;
199
+ /**
200
+ * 公司工作现场照片FileId
201
+ */
202
+ CompanyWorkScenePhotosFileId?: string;
203
+ /**
204
+ * 经办人姓名
205
+ */
206
+ HandlerName?: string;
207
+ /**
208
+ * 经办人身份证号码
209
+ */
210
+ HandlerIDNumber?: string;
211
+ /**
212
+ * 经办人身份证人像面图片FileId
213
+ */
214
+ HandlerIDCardFrontImageFileId?: string;
215
+ /**
216
+ * 经办人身份证国徽面图片FileId
217
+ */
218
+ HandlerIDCardBackImageFileId?: string;
219
+ /**
220
+ * 经办人手持身份证图片FileId
221
+ */
222
+ HandlerHandHeldImageFileId?: string;
223
+ /**
224
+ * 法人姓名
225
+ */
226
+ ManagerName?: string;
227
+ /**
228
+ * 法人手机号
229
+ */
230
+ ManagerPhone?: string;
231
+ /**
232
+ * 法人身份证号码
233
+ */
234
+ ManagerIDNumber?: string;
235
+ }
236
+ /**
237
+ * AddUSMSSignatureQualification - 添加短信签名资质申请记录
238
+ */
239
+ export interface AddUSMSSignatureQualificationResponse {
240
+ /**
241
+ * 资质Id
242
+ */
243
+ QualificationId: string;
78
244
  }
79
245
  /**
80
246
  * CreateUSMSSignature - 调用接口CreateUSMSSignature申请短信签名
@@ -103,7 +269,7 @@ export interface CreateUSMSSignatureRequest {
103
269
  /**
104
270
  * 短信签名的资质证明文件,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB
105
271
  */
106
- File: string;
272
+ File?: string;
107
273
  /**
108
274
  * 国内/国际短信。true:国际短信,false:国内短信,若不传值则默认该值为false
109
275
  */
@@ -112,6 +278,14 @@ export interface CreateUSMSSignatureRequest {
112
278
  * 短信签名授权委托文件,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB;当您是代理并使用第三方的签名时(也即SigPurpose为1-他用),该项为必填项;
113
279
  */
114
280
  ProxyFile?: string;
281
+ /**
282
+ * 资质ID
283
+ */
284
+ QualificationId?: string;
285
+ /**
286
+ * 短信签名对应的场景说明
287
+ */
288
+ SceneDesc?: string;
115
289
  }
116
290
  /**
117
291
  * CreateUSMSSignature - 调用接口CreateUSMSSignature申请短信签名
@@ -147,7 +321,7 @@ export interface CreateUSMSTemplateRequest {
147
321
  */
148
322
  Remark?: string;
149
323
  /**
150
- * 当Purpose为3时,也即会员推广类短信模板,该项必填。枚举值:TD退订、回T退订、回N退订、回TD退订、退订回T、退订回D、退订回TD、退订回复T、退订回复D、退订回复N、退订回复TD、拒收回T
324
+ * 当Purpose=3并且International=false时,也即国内会员推广类短信模板,该项必填。枚举值:【拒收请回复R】
151
325
  */
152
326
  UnsubscribeInfo?: string;
153
327
  /**
@@ -178,6 +352,20 @@ export interface DeleteUSMSSignatureRequest {
178
352
  */
179
353
  export interface DeleteUSMSSignatureResponse {
180
354
  }
355
+ /**
356
+ * DeleteUSMSSignatureQualification - 删除短信签名资质申请记录
357
+ */
358
+ export interface DeleteUSMSSignatureQualificationRequest {
359
+ /**
360
+ * 签名资质Id,支持以数组的方式,举例,以QualificationIds.0、QualificationIds.1...QualificationIds.N方式传入
361
+ */
362
+ QualificationIds: string[];
363
+ }
364
+ /**
365
+ * DeleteUSMSSignatureQualification - 删除短信签名资质申请记录
366
+ */
367
+ export interface DeleteUSMSSignatureQualificationResponse {
368
+ }
181
369
  /**
182
370
  * DeleteUSMSTemplate - 调用接口DeleteUSMSTemplate删除短信模板
183
371
  */
@@ -252,6 +440,417 @@ export interface GetUSMSSendReceiptResponse {
252
440
  }[];
253
441
  }[];
254
442
  }
443
+ /**
444
+ * GetUSMSSendStatistics - 获取发送统计数据
445
+ */
446
+ export interface GetUSMSSendStatisticsRequest {
447
+ /**
448
+ * 页编号,从0开始
449
+ */
450
+ Page: number;
451
+ /**
452
+ * 每页记录个数
453
+ */
454
+ NumPerPage: number;
455
+ /**
456
+ * 排序字段,如BrevityCode表示按照BrevityCode排列,配合OrderType使用。目前支持SendDate、BrevityCode
457
+ */
458
+ OrderBy: string;
459
+ /**
460
+ * 排序方式,asc-正序 desc-倒序
461
+ */
462
+ OrderType: string;
463
+ /**
464
+ * 开始日期,格式为YYYY-MM-DD
465
+ */
466
+ StartDate: string;
467
+ /**
468
+ * 结束日期,格式为YYYY-MM-DD
469
+ */
470
+ EndDate: string;
471
+ /**
472
+ * 国内标记,0-国际短信 1-国内短信
473
+ */
474
+ Domestic: number;
475
+ /**
476
+ * 国际简码,如CN表示中国,当需要查询多个国家时,使用-分割,如CN-ID。
477
+ */
478
+ BrevityCode?: string;
479
+ /**
480
+ * 短信类型,1-验证码 2-通知类 3-营销类
481
+ */
482
+ Purpose?: number;
483
+ }
484
+ /**
485
+ * GetUSMSSendStatistics - 获取发送统计数据
486
+ */
487
+ export interface GetUSMSSendStatisticsResponse {
488
+ /**
489
+ * 返回记录数
490
+ */
491
+ Total?: number;
492
+ /**
493
+ * 符合查询条件的发送数据统计求和集,具体字段信息见StatisticsData模型
494
+ */
495
+ StatisticsData?: {
496
+ /**
497
+ * 状态未知数(提交条数)
498
+ */
499
+ UnknownCount: number;
500
+ /**
501
+ * 发送成功数(提交条数)
502
+ */
503
+ SuccessCount: number;
504
+ /**
505
+ * 发送总数(拆分条数)
506
+ */
507
+ SendCostCount: number;
508
+ /**
509
+ * 发送失败数(提交条数)
510
+ */
511
+ FailCount: number;
512
+ /**
513
+ * 发送总数(提交条数)
514
+ */
515
+ SendCount: number;
516
+ /**
517
+ * 发送成功数(拆分条数)
518
+ */
519
+ SuccessCostCount: number;
520
+ /**
521
+ * 发送失败数(拆分条数)
522
+ */
523
+ FailCostCount: number;
524
+ /**
525
+ * 状态未知数(拆分条数)
526
+ */
527
+ UnknownCostCount: number;
528
+ /**
529
+ * 提交失败数(提交条数)
530
+ */
531
+ SubmitFailCount: number;
532
+ /**
533
+ * 提交失败数(拆分条数)
534
+ */
535
+ SubmitFailCostCount: number;
536
+ };
537
+ /**
538
+ * 以天为统计维度的发送数据统计集合,每天的统计数据字段详见StatisticsDataInfo模型
539
+ */
540
+ Data?: {
541
+ /**
542
+ * 发送总数(提交条数)
543
+ */
544
+ Count: number;
545
+ /**
546
+ * 发送失败数(拆分条数)
547
+ */
548
+ FailedCostCount: number;
549
+ /**
550
+ * 国际/地区标识码
551
+ */
552
+ BrevityCode: string;
553
+ /**
554
+ * 发送总数(拆分条数)
555
+ */
556
+ CostCount: number;
557
+ /**
558
+ * 发送时间
559
+ */
560
+ SendDate: string;
561
+ /**
562
+ * 发送失败数(提交条数)
563
+ */
564
+ FailedCount: number;
565
+ /**
566
+ * 发送成功率
567
+ */
568
+ SuccessRate: number;
569
+ /**
570
+ * 发送成功数(提交条数)
571
+ */
572
+ SuccessCount: number;
573
+ /**
574
+ * 状态未知数(提交条数)
575
+ */
576
+ UnknownCount: number;
577
+ /**
578
+ * 发送成功数(拆分条数)
579
+ */
580
+ SuccessCostCount: number;
581
+ /**
582
+ * 状态未知数(拆分条数)
583
+ */
584
+ UnknownCostCount: number;
585
+ /**
586
+ * UserId
587
+ */
588
+ UserId: string;
589
+ /**
590
+ * 提交失败数(提交条数)
591
+ */
592
+ SubmitFailedCount: number;
593
+ /**
594
+ * 提交失败数(拆分条数)
595
+ */
596
+ SubmitFailedCostCount: number;
597
+ }[];
598
+ }
599
+ /**
600
+ * GetUSMSSignatureQualification - 获取短信签名资质申请记录列表
601
+ */
602
+ export interface GetUSMSSignatureQualificationRequest {
603
+ /**
604
+ * 页索引
605
+ */
606
+ Page: number;
607
+ /**
608
+ * 每页个数
609
+ */
610
+ NumPerPage: number;
611
+ /**
612
+ * 排序字段,QualificationId/CreateTime
613
+ */
614
+ OrderBy: string;
615
+ /**
616
+ * 排序类型: desc、asc
617
+ */
618
+ OrderType: string;
619
+ /**
620
+ * 签名资质属性: 0-自用,1-他用
621
+ */
622
+ QualificationAttr?: number;
623
+ /**
624
+ * 签名资质状态: 0-草稿 1-审核中 2-审核通过 3-审核未通过 4-人工禁用
625
+ */
626
+ Status?: number;
627
+ /**
628
+ * 项目ID列表
629
+ */
630
+ InAccountIds?: string[];
631
+ }
632
+ /**
633
+ * GetUSMSSignatureQualification - 获取短信签名资质申请记录列表
634
+ */
635
+ export interface GetUSMSSignatureQualificationResponse {
636
+ /**
637
+ * 签名资质总个数
638
+ */
639
+ Total?: number;
640
+ /**
641
+ * 签名资质结果集合
642
+ */
643
+ Data?: {
644
+ /**
645
+ * 资质Id
646
+ */
647
+ QualificationId?: string;
648
+ /**
649
+ * 项目Id
650
+ */
651
+ AccountId?: number;
652
+ /**
653
+ * 资质名称
654
+ */
655
+ Name?: string;
656
+ /**
657
+ * 资质属性: 0-自用 1-他用
658
+ */
659
+ Attr?: number;
660
+ /**
661
+ * 公司名称
662
+ */
663
+ CompanyName?: string;
664
+ /**
665
+ * 负责人姓名
666
+ */
667
+ ManagerName?: string;
668
+ /**
669
+ * 经办人姓名
670
+ */
671
+ HandlerName?: string;
672
+ /**
673
+ * 状态:0-草稿 1-审核中 2-审核通过 3-审核未通过 4-人工禁用
674
+ */
675
+ Status?: number;
676
+ /**
677
+ * 审核未通过错误码
678
+ */
679
+ ErrCode?: number;
680
+ /**
681
+ * 审核未通过错误原因
682
+ */
683
+ ErrDesc?: string;
684
+ /**
685
+ * 创建时间戳
686
+ */
687
+ CreateTime?: number;
688
+ /**
689
+ * 修改时间戳
690
+ */
691
+ ModifyTime?: number;
692
+ /**
693
+ * 审核开始时间戳
694
+ */
695
+ ReviewStartTime?: number;
696
+ /**
697
+ * 审核完成时间戳
698
+ */
699
+ ReviewEndTime?: number;
700
+ }[];
701
+ }
702
+ /**
703
+ * GetUSMSTemplateSendStatistics - 获取模板发送统计数据
704
+ */
705
+ export interface GetUSMSTemplateSendStatisticsRequest {
706
+ /**
707
+ * 页编号,从0开始
708
+ */
709
+ Page: number;
710
+ /**
711
+ * 每页记录个数
712
+ */
713
+ NumPerPage: number;
714
+ /**
715
+ * 排序字段,如BrevityCode表示按照BrevityCode排列,配合OrderType使用。目前支持SendDate、BrevityCode
716
+ */
717
+ OrderBy: string;
718
+ /**
719
+ * 排序方式,asc-正序 desc-倒序
720
+ */
721
+ OrderType: string;
722
+ /**
723
+ * 开始日期,格式为YYYY-MM-DD
724
+ */
725
+ StartDate: string;
726
+ /**
727
+ * 结束日期,格式为YYYY-MM-DD
728
+ */
729
+ EndDate: string;
730
+ /**
731
+ * 国内标记,0-国际短信 1-国内短信
732
+ */
733
+ Domestic: number;
734
+ /**
735
+ * 国际简码,如CN表示中国,当需要查询多个国家时,使用-分割,如CN-ID。
736
+ */
737
+ BrevityCode?: string;
738
+ /**
739
+ * 短信模板ID
740
+ */
741
+ TemplateId?: string;
742
+ }
743
+ /**
744
+ * GetUSMSTemplateSendStatistics - 获取模板发送统计数据
745
+ */
746
+ export interface GetUSMSTemplateSendStatisticsResponse {
747
+ /**
748
+ * 返回记录数
749
+ */
750
+ Total: number;
751
+ /**
752
+ * 符合查询条件的发送数据统计求和集,具体字段信息见StatisticsData模型
753
+ */
754
+ StatisticsData: {
755
+ /**
756
+ * 状态未知数(提交条数)
757
+ */
758
+ UnknownCount: number;
759
+ /**
760
+ * 发送成功数(提交条数)
761
+ */
762
+ SuccessCount: number;
763
+ /**
764
+ * 发送总数(拆分条数)
765
+ */
766
+ SendCostCount: number;
767
+ /**
768
+ * 发送失败数(提交条数)
769
+ */
770
+ FailCount: number;
771
+ /**
772
+ * 发送总数(提交条数)
773
+ */
774
+ SendCount: number;
775
+ /**
776
+ * 发送成功数(拆分条数)
777
+ */
778
+ SuccessCostCount: number;
779
+ /**
780
+ * 发送失败数(拆分条数)
781
+ */
782
+ FailCostCount: number;
783
+ /**
784
+ * 状态未知数(拆分条数)
785
+ */
786
+ UnknownCostCount: number;
787
+ /**
788
+ * 提交失败数(提交条数)
789
+ */
790
+ SubmitFailCount: number;
791
+ /**
792
+ * 提交失败数(拆分条数)
793
+ */
794
+ SubmitFailCostCount: number;
795
+ };
796
+ /**
797
+ * 以天为统计维度的发送数据统计集合,每天的统计数据字段详见TemplateStatisticsDataInfo模型
798
+ */
799
+ Data?: {
800
+ /**
801
+ * 发送时间
802
+ */
803
+ SendDate: string;
804
+ /**
805
+ * 国际/地区标识码
806
+ */
807
+ BrevityCode: string;
808
+ /**
809
+ * 短信模板ID
810
+ */
811
+ TemplateId: string;
812
+ /**
813
+ * 发送总数(提交条数)
814
+ */
815
+ Count: number;
816
+ /**
817
+ * 发送总数(拆分条数)
818
+ */
819
+ CostCount: number;
820
+ /**
821
+ * 发送成功数(提交条数)
822
+ */
823
+ SuccessCount: number;
824
+ /**
825
+ * 发送成功数(拆分条数)
826
+ */
827
+ SuccessCostCount: number;
828
+ /**
829
+ * 发送失败数(提交条数)
830
+ */
831
+ FailedCount: number;
832
+ /**
833
+ * 发送失败数(拆分条数)
834
+ */
835
+ FailedCostCount: number;
836
+ /**
837
+ * 状态未知数(提交条数)
838
+ */
839
+ UnknownCount: number;
840
+ /**
841
+ * 状态未知数(拆分条数)
842
+ */
843
+ UnknownCostCount: number;
844
+ /**
845
+ * 提交失败数(提交条数)
846
+ */
847
+ SubmitFailedCount: number;
848
+ /**
849
+ * 提交失败数(拆分条数)
850
+ */
851
+ SubmitFailedCostCount: number;
852
+ }[];
853
+ }
255
854
  /**
256
855
  * QueryUSMSSignature - 调用接口QueryUSMSSignature查询短信签名申请状态
257
856
  */
@@ -274,23 +873,138 @@ export interface QueryUSMSSignatureResponse {
274
873
  */
275
874
  Data: {
276
875
  /**
277
- * 短信签名ID
876
+ * 签名ID
278
877
  */
279
878
  SigId: string;
280
879
  /**
281
- * 短信签名内容
880
+ * 签名内容
282
881
  */
283
882
  SigContent: string;
284
883
  /**
285
- * 签名状态,0-待审核 1-审核中 2-审核通过 3-审核未通过 4-被禁用
884
+ * 签名状态。0-待审核 1-审核中 2-审核通过 3-审核未通过 4-被禁用
286
885
  */
287
886
  Status: number;
288
887
  /**
289
- * 短信签名未通过审核原因
888
+ * 签名审核失败原因
290
889
  */
291
890
  ErrDesc: string;
292
891
  };
293
892
  }
893
+ /**
894
+ * QueryUSMSSignatureQualification - 获取短信签名资质申请记录详情
895
+ */
896
+ export interface QueryUSMSSignatureQualificationRequest {
897
+ /**
898
+ * 签名资质Id
899
+ */
900
+ QualificationId: string;
901
+ }
902
+ /**
903
+ * QueryUSMSSignatureQualification - 获取短信签名资质申请记录详情
904
+ */
905
+ export interface QueryUSMSSignatureQualificationResponse {
906
+ /**
907
+ * 签名资质详细信息
908
+ */
909
+ Data: {
910
+ /**
911
+ * 资质Id
912
+ */
913
+ QualificationId?: string;
914
+ /**
915
+ * 资质名称
916
+ */
917
+ Name?: string;
918
+ /**
919
+ * 资质属性:0-自用,1-他用
920
+ */
921
+ Attr?: number;
922
+ /**
923
+ * 公司名称
924
+ */
925
+ CompanyName?: string;
926
+ /**
927
+ * 统一社会信用代码
928
+ */
929
+ CompanyCreditCode?: string;
930
+ /**
931
+ * 公司证件文件链接
932
+ */
933
+ CompanyCertificateFile?: string;
934
+ /**
935
+ * 负责人姓名
936
+ */
937
+ ManagerName?: string;
938
+ /**
939
+ * 负责人手机号
940
+ */
941
+ ManagerPhone?: string;
942
+ /**
943
+ * 负责人证件号码
944
+ */
945
+ ManagerIDNumber?: string;
946
+ /**
947
+ * 经办人姓名
948
+ */
949
+ HandlerName?: string;
950
+ /**
951
+ * 经办人手机号
952
+ */
953
+ HandlerPhone?: string;
954
+ /**
955
+ * 经办人证件号码
956
+ */
957
+ HandlerIDNumber?: string;
958
+ /**
959
+ * 经办人身份证人像面图片链接
960
+ */
961
+ HandlerIDCardFrontImage?: string;
962
+ /**
963
+ * 经办人身份证国徽面图片链接
964
+ */
965
+ HandlerIDCardBackImage?: string;
966
+ /**
967
+ * 经办人手持身份证图片链接
968
+ */
969
+ HandlerHandHeldImage?: string;
970
+ /**
971
+ * 工作现场照片链接
972
+ */
973
+ CompanyWorkScenePhotos?: string;
974
+ /**
975
+ * 授权委托书文件链接
976
+ */
977
+ PowerOfAttorney?: string;
978
+ /**
979
+ * 状态:0-草稿 1-审核中 2-审核通过 3-审核未通过 4-人工禁用
980
+ */
981
+ Status?: number;
982
+ /**
983
+ * 审核未通过错误码
984
+ */
985
+ ErrCode?: number;
986
+ /**
987
+ * 审核未通过错误原因
988
+ */
989
+ ErrDesc?: string;
990
+ /**
991
+ * 创建时间戳
992
+ */
993
+ CreateTime?: number;
994
+ /**
995
+ * 修改时间戳
996
+ */
997
+ ModifyTime?: number;
998
+ /**
999
+ * 审核开始时间戳
1000
+ */
1001
+ ReviewStartTime?: number;
1002
+ /**
1003
+ * 审核完成时间戳
1004
+ */
1005
+ ReviewEndTime?: number;
1006
+ };
1007
+ }
294
1008
  /**
295
1009
  * QueryUSMSTemplate - 调用接口QueryUSMSTemplate查询短信模板申请状态
296
1010
  */
@@ -426,14 +1140,14 @@ export interface SendUSMSMessageRequest {
426
1140
  * 电话号码数组,电话号码格式为(60)1xxxxxxxx,()中为国际长途区号(如中国为86或0086,两种格式都支持),后面为电话号码.若不传入国际区号,如1851623xxxx,则默认为国内手机号
427
1141
  */
428
1142
  PhoneNumbers: string[];
429
- /**
430
- * 短信签名内容,请到[USMS控制台](https://console.ucloud.cn/usms)的签名管理页面查看;使用的短信签名必须是已申请并且通过审核;
431
- */
432
- SigContent: string;
433
1143
  /**
434
1144
  * 模板ID(也即短信模板申请时的工单ID),请到[USMS控制台](https://console.ucloud.cn/usms)的模板管理页面查看;使用的短信模板必须是已申请并通过审核;
435
1145
  */
436
1146
  TemplateId: string;
1147
+ /**
1148
+ * 短信签名内容,请到[USMS控制台](https://console.ucloud.cn/usms)的签名管理页面查看;使用的短信签名必须是已申请并且通过审核;(注:国内短信为必选参数、国际短信为可选参数)
1149
+ */
1150
+ SigContent?: string;
437
1151
  /**
438
1152
  * 模板可变参数,以数组的方式填写,举例,TemplateParams.0,TemplateParams.1,... 若模板中无可变参数,则该项可不填写;若模板中有可变参数,则该项为必填项,参数个数需与变量个数保持一致,否则无法发送;
439
1153
  */
@@ -500,12 +1214,98 @@ export interface UpdateUSMSSignatureRequest {
500
1214
  * 短信签名授权委托文件URL,若未更改授权委托文件,则该处填写已上传的授权委托文件的URL链接,否则使用ProxyFile参数
501
1215
  */
502
1216
  ProxyDoc?: string;
1217
+ /**
1218
+ * 短信签名对应的场景说明
1219
+ */
1220
+ SceneDesc?: string;
503
1221
  }
504
1222
  /**
505
1223
  * UpdateUSMSSignature - 调用接口UpdateUSMSSignature修改未通过审核的短信签名,并重新提交审核
506
1224
  */
507
1225
  export interface UpdateUSMSSignatureResponse {
508
1226
  }
1227
+ /**
1228
+ * UpdateUSMSSignatureQualification - 修改短信签名资质申请记录
1229
+ */
1230
+ export interface UpdateUSMSSignatureQualificationRequest {
1231
+ /**
1232
+ * 资质Id
1233
+ */
1234
+ QualificationId: string;
1235
+ /**
1236
+ * 状态:0-草稿,1-提交审核
1237
+ */
1238
+ Status: number;
1239
+ /**
1240
+ * 资质名称
1241
+ */
1242
+ Name?: string;
1243
+ /**
1244
+ * 资质属性,0-自用 1-他用
1245
+ */
1246
+ Attr?: number;
1247
+ /**
1248
+ * 公司名称,长度限制100
1249
+ */
1250
+ CompanyName?: string;
1251
+ /**
1252
+ * 公司统一社会信用代码
1253
+ */
1254
+ CompanyCreditCode?: string;
1255
+ /**
1256
+ * 公司证件文件FileId
1257
+ */
1258
+ CompanyCertificateFileId?: string;
1259
+ /**
1260
+ * 公司工作现场照片FileId
1261
+ */
1262
+ CompanyWorkScenePhotosFileId?: string;
1263
+ /**
1264
+ * 经办人姓名
1265
+ */
1266
+ HandlerName?: string;
1267
+ /**
1268
+ * 经办人手机号
1269
+ */
1270
+ HandlerPhone?: string;
1271
+ /**
1272
+ * 经办人身份证号码
1273
+ */
1274
+ HandlerIDNumber?: string;
1275
+ /**
1276
+ * 经办人身份证人像面图片FileId
1277
+ */
1278
+ HandlerIDCardFrontImageFileId?: string;
1279
+ /**
1280
+ * 经办人身份证国徽面图片FileId
1281
+ */
1282
+ HandlerIDCardBackImageFileId?: string;
1283
+ /**
1284
+ * 经办人手持身份证图片FileId
1285
+ */
1286
+ HandlerHandHeldImageFileId?: string;
1287
+ /**
1288
+ * 法人姓名
1289
+ */
1290
+ ManagerName?: string;
1291
+ /**
1292
+ * 法人手机号
1293
+ */
1294
+ ManagerPhone?: string;
1295
+ /**
1296
+ * 法人身份证号码
1297
+ */
1298
+ ManagerIDNumber?: string;
1299
+ }
1300
+ /**
1301
+ * UpdateUSMSSignatureQualification - 修改短信签名资质申请记录
1302
+ */
1303
+ export interface UpdateUSMSSignatureQualificationResponse {
1304
+ /**
1305
+ * 资质Id
1306
+ */
1307
+ QualificationId?: string;
1308
+ }
509
1309
  /**
510
1310
  * UpdateUSMSTemplate - 调用接口UpdateUSMSTemplate修改未通过审核的短信模板,并重新提交审核
511
1311
  */
@@ -536,3 +1336,33 @@ export interface UpdateUSMSTemplateRequest {
536
1336
  */
537
1337
  export interface UpdateUSMSTemplateResponse {
538
1338
  }
1339
+ /**
1340
+ * UploadUSMSFile - 上传文件
1341
+ */
1342
+ export interface UploadUSMSFileRequest {
1343
+ /**
1344
+ * 文件名称,携带文件后缀
1345
+ */
1346
+ FileName: string;
1347
+ /**
1348
+ * 文件内容,base64编码
1349
+ */
1350
+ FileContent: string;
1351
+ /**
1352
+ * 文件来源,0-签名资质
1353
+ */
1354
+ Source: number;
1355
+ /**
1356
+ * 文件类型,mime格式
1357
+ */
1358
+ FileType?: string;
1359
+ }
1360
+ /**
1361
+ * UploadUSMSFile - 上传文件
1362
+ */
1363
+ export interface UploadUSMSFileResponse {
1364
+ /**
1365
+ * 文件FileId
1366
+ */
1367
+ FileId: string;
1368
+ }
@@ -12,6 +12,24 @@ class USMSClient extends client_1.default {
12
12
  constructor({ config, credential, }) {
13
13
  super({ config, credential });
14
14
  }
15
+ /**
16
+ * AddBackfill - 用户通过接口发送消息,当消息在终端被消费,调用该接口,进行记录。
17
+ *
18
+ * See also: https://docs.ucloud.cn/api/usms-api/add_backfill
19
+ */
20
+ addBackfill(request) {
21
+ const args = Object.assign({ Action: 'AddBackfill' }, (request || {}));
22
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
23
+ }
24
+ /**
25
+ * AddUSMSSignatureQualification - 添加短信签名资质申请记录
26
+ *
27
+ * See also: https://docs.ucloud.cn/api/usms-api/add_usms_signature_qualification
28
+ */
29
+ addUSMSSignatureQualification(request) {
30
+ const args = Object.assign({ Action: 'AddUSMSSignatureQualification' }, (request || {}));
31
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
32
+ }
15
33
  /**
16
34
  * CreateUSMSSignature - 调用接口CreateUSMSSignature申请短信签名
17
35
  *
@@ -39,6 +57,15 @@ class USMSClient extends client_1.default {
39
57
  const args = Object.assign({ Action: 'DeleteUSMSSignature' }, (request || {}));
40
58
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
41
59
  }
60
+ /**
61
+ * DeleteUSMSSignatureQualification - 删除短信签名资质申请记录
62
+ *
63
+ * See also: https://docs.ucloud.cn/api/usms-api/delete_usms_signature_qualification
64
+ */
65
+ deleteUSMSSignatureQualification(request) {
66
+ const args = Object.assign({ Action: 'DeleteUSMSSignatureQualification' }, (request || {}));
67
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
68
+ }
42
69
  /**
43
70
  * DeleteUSMSTemplate - 调用接口DeleteUSMSTemplate删除短信模板
44
71
  *
@@ -57,6 +84,33 @@ class USMSClient extends client_1.default {
57
84
  const args = Object.assign({ Action: 'GetUSMSSendReceipt' }, (request || {}));
58
85
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
59
86
  }
87
+ /**
88
+ * GetUSMSSendStatistics - 获取发送统计数据
89
+ *
90
+ * See also: https://docs.ucloud.cn/api/usms-api/get_usms_send_statistics
91
+ */
92
+ getUSMSSendStatistics(request) {
93
+ const args = Object.assign({ Action: 'GetUSMSSendStatistics' }, (request || {}));
94
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
95
+ }
96
+ /**
97
+ * GetUSMSSignatureQualification - 获取短信签名资质申请记录列表
98
+ *
99
+ * See also: https://docs.ucloud.cn/api/usms-api/get_usms_signature_qualification
100
+ */
101
+ getUSMSSignatureQualification(request) {
102
+ const args = Object.assign({ Action: 'GetUSMSSignatureQualification' }, (request || {}));
103
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
104
+ }
105
+ /**
106
+ * GetUSMSTemplateSendStatistics - 获取模板发送统计数据
107
+ *
108
+ * See also: https://docs.ucloud.cn/api/usms-api/get_usms_template_send_statistics
109
+ */
110
+ getUSMSTemplateSendStatistics(request) {
111
+ const args = Object.assign({ Action: 'GetUSMSTemplateSendStatistics' }, (request || {}));
112
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
113
+ }
60
114
  /**
61
115
  * QueryUSMSSignature - 调用接口QueryUSMSSignature查询短信签名申请状态
62
116
  *
@@ -66,6 +120,15 @@ class USMSClient extends client_1.default {
66
120
  const args = Object.assign({ Action: 'QueryUSMSSignature' }, (request || {}));
67
121
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
68
122
  }
123
+ /**
124
+ * QueryUSMSSignatureQualification - 获取短信签名资质申请记录详情
125
+ *
126
+ * See also: https://docs.ucloud.cn/api/usms-api/query_usms_signature_qualification
127
+ */
128
+ queryUSMSSignatureQualification(request) {
129
+ const args = Object.assign({ Action: 'QueryUSMSSignatureQualification' }, (request || {}));
130
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
131
+ }
69
132
  /**
70
133
  * QueryUSMSTemplate - 调用接口QueryUSMSTemplate查询短信模板申请状态
71
134
  *
@@ -102,6 +165,15 @@ class USMSClient extends client_1.default {
102
165
  const args = Object.assign({ Action: 'UpdateUSMSSignature' }, (request || {}));
103
166
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
104
167
  }
168
+ /**
169
+ * UpdateUSMSSignatureQualification - 修改短信签名资质申请记录
170
+ *
171
+ * See also: https://docs.ucloud.cn/api/usms-api/update_usms_signature_qualification
172
+ */
173
+ updateUSMSSignatureQualification(request) {
174
+ const args = Object.assign({ Action: 'UpdateUSMSSignatureQualification' }, (request || {}));
175
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
176
+ }
105
177
  /**
106
178
  * UpdateUSMSTemplate - 调用接口UpdateUSMSTemplate修改未通过审核的短信模板,并重新提交审核
107
179
  *
@@ -111,5 +183,14 @@ class USMSClient extends client_1.default {
111
183
  const args = Object.assign({ Action: 'UpdateUSMSTemplate' }, (request || {}));
112
184
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
113
185
  }
186
+ /**
187
+ * UploadUSMSFile - 上传文件
188
+ *
189
+ * See also: https://docs.ucloud.cn/api/usms-api/upload_usms_file
190
+ */
191
+ uploadUSMSFile(request) {
192
+ const args = Object.assign({ Action: 'UploadUSMSFile' }, (request || {}));
193
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
194
+ }
114
195
  }
115
196
  exports.default = USMSClient;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.57",
4
+ "version": "0.2.58",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,