@alicloud/cas20200407 1.0.7 → 1.0.9

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 CHANGED
@@ -224,6 +224,112 @@ export declare class CreateCertificateWithCsrRequestResponse extends $tea.Model
224
224
  [key: string]: any;
225
225
  });
226
226
  }
227
+ export declare class CreateWHClientCertificateRequest extends $tea.Model {
228
+ afterTime?: number;
229
+ algorithm?: string;
230
+ beforeTime?: number;
231
+ commonName?: string;
232
+ country?: string;
233
+ csr?: string;
234
+ days?: number;
235
+ immediately?: number;
236
+ locality?: string;
237
+ months?: number;
238
+ organization?: string;
239
+ organizationUnit?: string;
240
+ parentIdentifier?: string;
241
+ sanType?: number;
242
+ sanValue?: string;
243
+ state?: string;
244
+ years?: number;
245
+ static names(): {
246
+ [key: string]: string;
247
+ };
248
+ static types(): {
249
+ [key: string]: any;
250
+ };
251
+ constructor(map?: {
252
+ [key: string]: any;
253
+ });
254
+ }
255
+ export declare class CreateWHClientCertificateResponseBody extends $tea.Model {
256
+ certificateChain?: string;
257
+ identifier?: string;
258
+ parentX509Certificate?: string;
259
+ requestId?: string;
260
+ rootX509Certificate?: string;
261
+ x509Certificate?: string;
262
+ static names(): {
263
+ [key: string]: string;
264
+ };
265
+ static types(): {
266
+ [key: string]: any;
267
+ };
268
+ constructor(map?: {
269
+ [key: string]: any;
270
+ });
271
+ }
272
+ export declare class CreateWHClientCertificateResponse extends $tea.Model {
273
+ headers: {
274
+ [key: string]: string;
275
+ };
276
+ statusCode: number;
277
+ body: CreateWHClientCertificateResponseBody;
278
+ static names(): {
279
+ [key: string]: string;
280
+ };
281
+ static types(): {
282
+ [key: string]: any;
283
+ };
284
+ constructor(map?: {
285
+ [key: string]: any;
286
+ });
287
+ }
288
+ export declare class DecryptRequest extends $tea.Model {
289
+ algorithm?: string;
290
+ certIdentifier?: string;
291
+ ciphertextBlob?: string;
292
+ messageType?: string;
293
+ static names(): {
294
+ [key: string]: string;
295
+ };
296
+ static types(): {
297
+ [key: string]: any;
298
+ };
299
+ constructor(map?: {
300
+ [key: string]: any;
301
+ });
302
+ }
303
+ export declare class DecryptResponseBody extends $tea.Model {
304
+ certIdentifier?: string;
305
+ plaintext?: string;
306
+ requestId?: string;
307
+ static names(): {
308
+ [key: string]: string;
309
+ };
310
+ static types(): {
311
+ [key: string]: any;
312
+ };
313
+ constructor(map?: {
314
+ [key: string]: any;
315
+ });
316
+ }
317
+ export declare class DecryptResponse extends $tea.Model {
318
+ headers: {
319
+ [key: string]: string;
320
+ };
321
+ statusCode: number;
322
+ body: DecryptResponseBody;
323
+ static names(): {
324
+ [key: string]: string;
325
+ };
326
+ static types(): {
327
+ [key: string]: any;
328
+ };
329
+ constructor(map?: {
330
+ [key: string]: any;
331
+ });
332
+ }
227
333
  export declare class DeleteCertificateRequestRequest extends $tea.Model {
228
334
  orderId?: number;
229
335
  static names(): {
@@ -304,6 +410,46 @@ export declare class DeletePCACertResponse extends $tea.Model {
304
410
  [key: string]: any;
305
411
  });
306
412
  }
413
+ export declare class DeleteUserCertificateRequest extends $tea.Model {
414
+ certId?: number;
415
+ static names(): {
416
+ [key: string]: string;
417
+ };
418
+ static types(): {
419
+ [key: string]: any;
420
+ };
421
+ constructor(map?: {
422
+ [key: string]: any;
423
+ });
424
+ }
425
+ export declare class DeleteUserCertificateResponseBody extends $tea.Model {
426
+ requestId?: string;
427
+ static names(): {
428
+ [key: string]: string;
429
+ };
430
+ static types(): {
431
+ [key: string]: any;
432
+ };
433
+ constructor(map?: {
434
+ [key: string]: any;
435
+ });
436
+ }
437
+ export declare class DeleteUserCertificateResponse extends $tea.Model {
438
+ headers: {
439
+ [key: string]: string;
440
+ };
441
+ statusCode: number;
442
+ body: DeleteUserCertificateResponseBody;
443
+ static names(): {
444
+ [key: string]: string;
445
+ };
446
+ static types(): {
447
+ [key: string]: any;
448
+ };
449
+ constructor(map?: {
450
+ [key: string]: any;
451
+ });
452
+ }
307
453
  export declare class DescribeCertificateStateRequest extends $tea.Model {
308
454
  orderId?: number;
309
455
  static names(): {
@@ -398,10 +544,148 @@ export declare class DescribePackageStateResponse extends $tea.Model {
398
544
  [key: string]: any;
399
545
  });
400
546
  }
547
+ export declare class EncryptRequest extends $tea.Model {
548
+ algorithm?: string;
549
+ certIdentifier?: string;
550
+ messageType?: string;
551
+ plaintext?: string;
552
+ static names(): {
553
+ [key: string]: string;
554
+ };
555
+ static types(): {
556
+ [key: string]: any;
557
+ };
558
+ constructor(map?: {
559
+ [key: string]: any;
560
+ });
561
+ }
562
+ export declare class EncryptResponseBody extends $tea.Model {
563
+ certIdentifier?: string;
564
+ ciphertextBlob?: string;
565
+ requestId?: string;
566
+ static names(): {
567
+ [key: string]: string;
568
+ };
569
+ static types(): {
570
+ [key: string]: any;
571
+ };
572
+ constructor(map?: {
573
+ [key: string]: any;
574
+ });
575
+ }
576
+ export declare class EncryptResponse extends $tea.Model {
577
+ headers: {
578
+ [key: string]: string;
579
+ };
580
+ statusCode: number;
581
+ body: EncryptResponseBody;
582
+ static names(): {
583
+ [key: string]: string;
584
+ };
585
+ static types(): {
586
+ [key: string]: any;
587
+ };
588
+ constructor(map?: {
589
+ [key: string]: any;
590
+ });
591
+ }
592
+ export declare class GetCertWarehouseQuotaResponseBody extends $tea.Model {
593
+ requestId?: string;
594
+ totalQuota?: number;
595
+ useCount?: number;
596
+ static names(): {
597
+ [key: string]: string;
598
+ };
599
+ static types(): {
600
+ [key: string]: any;
601
+ };
602
+ constructor(map?: {
603
+ [key: string]: any;
604
+ });
605
+ }
606
+ export declare class GetCertWarehouseQuotaResponse extends $tea.Model {
607
+ headers: {
608
+ [key: string]: string;
609
+ };
610
+ statusCode: number;
611
+ body: GetCertWarehouseQuotaResponseBody;
612
+ static names(): {
613
+ [key: string]: string;
614
+ };
615
+ static types(): {
616
+ [key: string]: any;
617
+ };
618
+ constructor(map?: {
619
+ [key: string]: any;
620
+ });
621
+ }
622
+ export declare class GetUserCertificateDetailRequest extends $tea.Model {
623
+ certId?: number;
624
+ static names(): {
625
+ [key: string]: string;
626
+ };
627
+ static types(): {
628
+ [key: string]: any;
629
+ };
630
+ constructor(map?: {
631
+ [key: string]: any;
632
+ });
633
+ }
634
+ export declare class GetUserCertificateDetailResponseBody extends $tea.Model {
635
+ buyInAliyun?: boolean;
636
+ cert?: string;
637
+ city?: string;
638
+ common?: string;
639
+ country?: string;
640
+ encryptCert?: string;
641
+ encryptPrivateKey?: string;
642
+ endDate?: string;
643
+ expired?: boolean;
644
+ fingerprint?: string;
645
+ id?: number;
646
+ issuer?: string;
647
+ key?: string;
648
+ name?: string;
649
+ orderId?: number;
650
+ orgName?: string;
651
+ province?: string;
652
+ requestId?: string;
653
+ resourceGroupId?: string;
654
+ sans?: string;
655
+ signCert?: string;
656
+ signPrivateKey?: string;
657
+ startDate?: string;
658
+ static names(): {
659
+ [key: string]: string;
660
+ };
661
+ static types(): {
662
+ [key: string]: any;
663
+ };
664
+ constructor(map?: {
665
+ [key: string]: any;
666
+ });
667
+ }
668
+ export declare class GetUserCertificateDetailResponse extends $tea.Model {
669
+ headers: {
670
+ [key: string]: string;
671
+ };
672
+ statusCode: number;
673
+ body: GetUserCertificateDetailResponseBody;
674
+ static names(): {
675
+ [key: string]: string;
676
+ };
677
+ static types(): {
678
+ [key: string]: any;
679
+ };
680
+ constructor(map?: {
681
+ [key: string]: any;
682
+ });
683
+ }
401
684
  export declare class ListCertRequest extends $tea.Model {
402
685
  currentPage?: number;
403
686
  keyWord?: string;
404
687
  showSize?: number;
688
+ sourceType?: string;
405
689
  status?: string;
406
690
  warehouseId?: number;
407
691
  static names(): {
@@ -498,6 +782,7 @@ export declare class ListUserCertificateOrderRequest extends $tea.Model {
498
782
  currentPage?: number;
499
783
  keyword?: string;
500
784
  orderType?: string;
785
+ resourceGroupId?: string;
501
786
  showSize?: number;
502
787
  status?: string;
503
788
  static names(): {
@@ -584,6 +869,46 @@ export declare class RenewCertificateOrderForPackageRequestResponse extends $tea
584
869
  [key: string]: any;
585
870
  });
586
871
  }
872
+ export declare class RevokeWHClientCertificateRequest extends $tea.Model {
873
+ identifier?: string;
874
+ static names(): {
875
+ [key: string]: string;
876
+ };
877
+ static types(): {
878
+ [key: string]: any;
879
+ };
880
+ constructor(map?: {
881
+ [key: string]: any;
882
+ });
883
+ }
884
+ export declare class RevokeWHClientCertificateResponseBody extends $tea.Model {
885
+ requestId?: string;
886
+ static names(): {
887
+ [key: string]: string;
888
+ };
889
+ static types(): {
890
+ [key: string]: any;
891
+ };
892
+ constructor(map?: {
893
+ [key: string]: any;
894
+ });
895
+ }
896
+ export declare class RevokeWHClientCertificateResponse extends $tea.Model {
897
+ headers: {
898
+ [key: string]: string;
899
+ };
900
+ statusCode: number;
901
+ body: RevokeWHClientCertificateResponseBody;
902
+ static names(): {
903
+ [key: string]: string;
904
+ };
905
+ static types(): {
906
+ [key: string]: any;
907
+ };
908
+ constructor(map?: {
909
+ [key: string]: any;
910
+ });
911
+ }
587
912
  export declare class SignRequest extends $tea.Model {
588
913
  certIdentifier?: string;
589
914
  message?: string;
@@ -644,6 +969,7 @@ export declare class UploadPCACertRequest extends $tea.Model {
644
969
  });
645
970
  }
646
971
  export declare class UploadPCACertResponseBody extends $tea.Model {
972
+ identifier?: string;
647
973
  requestId?: string;
648
974
  static names(): {
649
975
  [key: string]: string;
@@ -671,6 +997,54 @@ export declare class UploadPCACertResponse extends $tea.Model {
671
997
  [key: string]: any;
672
998
  });
673
999
  }
1000
+ export declare class UploadUserCertificateRequest extends $tea.Model {
1001
+ cert?: string;
1002
+ encryptCert?: string;
1003
+ encryptPrivateKey?: string;
1004
+ key?: string;
1005
+ name?: string;
1006
+ resourceGroupId?: string;
1007
+ signCert?: string;
1008
+ signPrivateKey?: string;
1009
+ static names(): {
1010
+ [key: string]: string;
1011
+ };
1012
+ static types(): {
1013
+ [key: string]: any;
1014
+ };
1015
+ constructor(map?: {
1016
+ [key: string]: any;
1017
+ });
1018
+ }
1019
+ export declare class UploadUserCertificateResponseBody extends $tea.Model {
1020
+ certId?: number;
1021
+ requestId?: string;
1022
+ static names(): {
1023
+ [key: string]: string;
1024
+ };
1025
+ static types(): {
1026
+ [key: string]: any;
1027
+ };
1028
+ constructor(map?: {
1029
+ [key: string]: any;
1030
+ });
1031
+ }
1032
+ export declare class UploadUserCertificateResponse extends $tea.Model {
1033
+ headers: {
1034
+ [key: string]: string;
1035
+ };
1036
+ statusCode: number;
1037
+ body: UploadUserCertificateResponseBody;
1038
+ static names(): {
1039
+ [key: string]: string;
1040
+ };
1041
+ static types(): {
1042
+ [key: string]: any;
1043
+ };
1044
+ constructor(map?: {
1045
+ [key: string]: any;
1046
+ });
1047
+ }
674
1048
  export declare class VerifyRequest extends $tea.Model {
675
1049
  certIdentifier?: string;
676
1050
  message?: string;
@@ -764,18 +1138,35 @@ export declare class ListUserCertificateOrderResponseBodyCertificateOrderList ex
764
1138
  certEndTime?: number;
765
1139
  certStartTime?: number;
766
1140
  certType?: string;
1141
+ certificateId?: number;
1142
+ city?: string;
1143
+ commonName?: string;
1144
+ country?: string;
767
1145
  domain?: string;
768
1146
  domainCount?: number;
769
1147
  domainType?: string;
1148
+ endDate?: string;
1149
+ expired?: boolean;
1150
+ fingerprint?: string;
770
1151
  instanceId?: string;
1152
+ issuer?: string;
1153
+ name?: string;
771
1154
  orderId?: number;
1155
+ orgName?: string;
772
1156
  partnerOrderId?: string;
773
1157
  productCode?: string;
774
1158
  productName?: string;
1159
+ province?: string;
1160
+ resourceGroupId?: string;
775
1161
  rootBrand?: string;
1162
+ sans?: string;
1163
+ serialNo?: string;
1164
+ sha2?: string;
776
1165
  sourceType?: string;
1166
+ startDate?: string;
777
1167
  status?: string;
778
1168
  trusteeStatus?: string;
1169
+ upload?: boolean;
779
1170
  wildDomainCount?: number;
780
1171
  static names(): {
781
1172
  [key: string]: string;
@@ -802,14 +1193,26 @@ export default class Client extends OpenApi {
802
1193
  createCertificateRequest(request: CreateCertificateRequestRequest): Promise<CreateCertificateRequestResponse>;
803
1194
  createCertificateWithCsrRequestWithOptions(request: CreateCertificateWithCsrRequestRequest, runtime: $Util.RuntimeOptions): Promise<CreateCertificateWithCsrRequestResponse>;
804
1195
  createCertificateWithCsrRequest(request: CreateCertificateWithCsrRequestRequest): Promise<CreateCertificateWithCsrRequestResponse>;
1196
+ createWHClientCertificateWithOptions(request: CreateWHClientCertificateRequest, runtime: $Util.RuntimeOptions): Promise<CreateWHClientCertificateResponse>;
1197
+ createWHClientCertificate(request: CreateWHClientCertificateRequest): Promise<CreateWHClientCertificateResponse>;
1198
+ decryptWithOptions(request: DecryptRequest, runtime: $Util.RuntimeOptions): Promise<DecryptResponse>;
1199
+ decrypt(request: DecryptRequest): Promise<DecryptResponse>;
805
1200
  deleteCertificateRequestWithOptions(request: DeleteCertificateRequestRequest, runtime: $Util.RuntimeOptions): Promise<DeleteCertificateRequestResponse>;
806
1201
  deleteCertificateRequest(request: DeleteCertificateRequestRequest): Promise<DeleteCertificateRequestResponse>;
807
1202
  deletePCACertWithOptions(request: DeletePCACertRequest, runtime: $Util.RuntimeOptions): Promise<DeletePCACertResponse>;
808
1203
  deletePCACert(request: DeletePCACertRequest): Promise<DeletePCACertResponse>;
1204
+ deleteUserCertificateWithOptions(request: DeleteUserCertificateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteUserCertificateResponse>;
1205
+ deleteUserCertificate(request: DeleteUserCertificateRequest): Promise<DeleteUserCertificateResponse>;
809
1206
  describeCertificateStateWithOptions(request: DescribeCertificateStateRequest, runtime: $Util.RuntimeOptions): Promise<DescribeCertificateStateResponse>;
810
1207
  describeCertificateState(request: DescribeCertificateStateRequest): Promise<DescribeCertificateStateResponse>;
811
1208
  describePackageStateWithOptions(request: DescribePackageStateRequest, runtime: $Util.RuntimeOptions): Promise<DescribePackageStateResponse>;
812
1209
  describePackageState(request: DescribePackageStateRequest): Promise<DescribePackageStateResponse>;
1210
+ encryptWithOptions(request: EncryptRequest, runtime: $Util.RuntimeOptions): Promise<EncryptResponse>;
1211
+ encrypt(request: EncryptRequest): Promise<EncryptResponse>;
1212
+ getCertWarehouseQuotaWithOptions(runtime: $Util.RuntimeOptions): Promise<GetCertWarehouseQuotaResponse>;
1213
+ getCertWarehouseQuota(): Promise<GetCertWarehouseQuotaResponse>;
1214
+ getUserCertificateDetailWithOptions(request: GetUserCertificateDetailRequest, runtime: $Util.RuntimeOptions): Promise<GetUserCertificateDetailResponse>;
1215
+ getUserCertificateDetail(request: GetUserCertificateDetailRequest): Promise<GetUserCertificateDetailResponse>;
813
1216
  listCertWithOptions(request: ListCertRequest, runtime: $Util.RuntimeOptions): Promise<ListCertResponse>;
814
1217
  listCert(request: ListCertRequest): Promise<ListCertResponse>;
815
1218
  listCertWarehouseWithOptions(request: ListCertWarehouseRequest, runtime: $Util.RuntimeOptions): Promise<ListCertWarehouseResponse>;
@@ -818,10 +1221,14 @@ export default class Client extends OpenApi {
818
1221
  listUserCertificateOrder(request: ListUserCertificateOrderRequest): Promise<ListUserCertificateOrderResponse>;
819
1222
  renewCertificateOrderForPackageRequestWithOptions(request: RenewCertificateOrderForPackageRequestRequest, runtime: $Util.RuntimeOptions): Promise<RenewCertificateOrderForPackageRequestResponse>;
820
1223
  renewCertificateOrderForPackageRequest(request: RenewCertificateOrderForPackageRequestRequest): Promise<RenewCertificateOrderForPackageRequestResponse>;
1224
+ revokeWHClientCertificateWithOptions(request: RevokeWHClientCertificateRequest, runtime: $Util.RuntimeOptions): Promise<RevokeWHClientCertificateResponse>;
1225
+ revokeWHClientCertificate(request: RevokeWHClientCertificateRequest): Promise<RevokeWHClientCertificateResponse>;
821
1226
  signWithOptions(request: SignRequest, runtime: $Util.RuntimeOptions): Promise<SignResponse>;
822
1227
  sign(request: SignRequest): Promise<SignResponse>;
823
1228
  uploadPCACertWithOptions(request: UploadPCACertRequest, runtime: $Util.RuntimeOptions): Promise<UploadPCACertResponse>;
824
1229
  uploadPCACert(request: UploadPCACertRequest): Promise<UploadPCACertResponse>;
1230
+ uploadUserCertificateWithOptions(request: UploadUserCertificateRequest, runtime: $Util.RuntimeOptions): Promise<UploadUserCertificateResponse>;
1231
+ uploadUserCertificate(request: UploadUserCertificateRequest): Promise<UploadUserCertificateResponse>;
825
1232
  verifyWithOptions(request: VerifyRequest, runtime: $Util.RuntimeOptions): Promise<VerifyResponse>;
826
1233
  verify(request: VerifyRequest): Promise<VerifyResponse>;
827
1234
  }