tencentcloud-sdk-nodejs 4.0.645 → 4.0.647
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/CHANGELOG.md +583 -0
- package/SERVICE_CHANGELOG.md +594 -169
- package/package.json +1 -1
- package/products.md +35 -35
- package/src/common/sdk_version.ts +1 -1
- package/src/services/apigateway/v20180808/apigateway_client.ts +1 -1
- package/src/services/apigateway/v20180808/apigateway_models.ts +10 -8
- package/src/services/asr/v20190614/asr_models.ts +3 -0
- package/src/services/cdb/v20170320/cdb_client.ts +0 -14
- package/src/services/cdb/v20170320/cdb_models.ts +1 -29
- package/src/services/cdn/v20180606/cdn_models.ts +3 -3
- package/src/services/cdwch/v20200915/cdwch_models.ts +66 -41
- package/src/services/cloudstudio/v20230508/cloudstudio_client.ts +1 -1
- package/src/services/cloudstudio/v20230508/cloudstudio_models.ts +1 -1
- package/src/services/cls/v20201016/cls_models.ts +11 -11
- package/src/services/cme/v20191029/cme_models.ts +4 -0
- package/src/services/dlc/v20210125/dlc_models.ts +39 -34
- package/src/services/ess/v20201111/ess_models.ts +16 -2
- package/src/services/essbasic/v20210526/essbasic_models.ts +9 -0
- package/src/services/faceid/v20180301/faceid_models.ts +31 -26
- package/src/services/gme/v20180711/gme_models.ts +1 -1
- package/src/services/iai/v20180301/iai_models.ts +20 -20
- package/src/services/iai/v20200303/iai_models.ts +32 -32
- package/src/services/lcic/v20220817/lcic_models.ts +12 -0
- package/src/services/mps/v20190612/mps_models.ts +3 -1
- package/src/services/omics/v20221128/omics_models.ts +4 -0
- package/src/services/partners/v20180321/partners_client.ts +1 -0
- package/src/services/partners/v20180321/partners_models.ts +49 -28
- package/src/services/postgres/v20170312/postgres_client.ts +4 -2
- package/src/services/postgres/v20170312/postgres_models.ts +237 -149
- package/src/services/scf/v20180416/scf_client.ts +6 -2
- package/src/services/scf/v20180416/scf_models.ts +114 -16
- package/src/services/tbaas/v20180416/tbaas_client.ts +103 -220
- package/src/services/tbaas/v20180416/tbaas_models.ts +117 -615
- package/src/services/tcb/v20180608/tcb_models.ts +5 -5
- package/src/services/tdid/v20210519/tdid_client.ts +17 -62
- package/src/services/tdid/v20210519/tdid_models.ts +54 -235
- package/src/services/tiw/v20190919/tiw_models.ts +15 -0
- package/src/services/tke/v20180525/tke_models.ts +2 -2
- package/src/services/trtc/v20190722/trtc_client.ts +96 -22
- package/src/services/vod/v20180717/vod_models.ts +17 -17
- package/src/services/vpc/v20170312/vpc_client.ts +2 -3
- package/src/services/vpc/v20170312/vpc_models.ts +9 -9
- package/src/services/waf/v20180125/waf_models.ts +8 -7
- package/src/services/wedata/v20210820/wedata_client.ts +1516 -385
- package/src/services/wedata/v20210820/wedata_models.ts +15224 -7440
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +10 -8
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +3 -0
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +1 -7
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +0 -8
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +1 -27
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +3 -3
- package/tencentcloud/services/cdwch/v20200915/cdwch_models.d.ts +66 -41
- package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_client.d.ts +1 -1
- package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_client.js +1 -1
- package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_models.d.ts +1 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +11 -11
- package/tencentcloud/services/cme/v20191029/cme_models.d.ts +4 -0
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +39 -34
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +16 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +9 -0
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +31 -26
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +1 -1
- package/tencentcloud/services/iai/v20180301/iai_models.d.ts +20 -20
- package/tencentcloud/services/iai/v20200303/iai_models.d.ts +32 -32
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +12 -0
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +3 -1
- package/tencentcloud/services/omics/v20221128/omics_models.d.ts +4 -0
- package/tencentcloud/services/partners/v20180321/partners_models.d.ts +48 -28
- package/tencentcloud/services/postgres/v20170312/postgres_client.d.ts +2 -0
- package/tencentcloud/services/postgres/v20170312/postgres_client.js +2 -0
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +237 -149
- package/tencentcloud/services/scf/v20180416/scf_client.d.ts +1 -1
- package/tencentcloud/services/scf/v20180416/scf_models.d.ts +110 -16
- package/tencentcloud/services/tbaas/v20180416/tbaas_client.d.ts +35 -83
- package/tencentcloud/services/tbaas/v20180416/tbaas_client.js +51 -115
- package/tencentcloud/services/tbaas/v20180416/tbaas_models.d.ts +107 -584
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +5 -5
- package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +6 -24
- package/tencentcloud/services/tdid/v20210519/tdid_client.js +7 -31
- package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +54 -226
- package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +15 -0
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +2 -2
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +94 -20
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +94 -20
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +17 -17
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +0 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +0 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +9 -9
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +8 -7
- package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +452 -100
- package/tencentcloud/services/wedata/v20210820/wedata_client.js +670 -142
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +13937 -6404
- package/test/cdb.v20170320.test.js +0 -10
- package/test/tbaas.v20180416.test.js +34 -114
- package/test/tdid.v20210519.test.js +4 -34
- package/test/wedata.v20210820.test.js +1220 -340
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
AccessInfo,
|
|
22
22
|
UpdateAliasRequest,
|
|
23
23
|
Trigger,
|
|
24
|
-
|
|
24
|
+
ListTriggersResponse,
|
|
25
25
|
ListAliasesResponse,
|
|
26
26
|
DeleteLayerVersionResponse,
|
|
27
27
|
GetReservedConcurrencyConfigResponse,
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
UpdateFunctionConfigurationResponse,
|
|
36
36
|
PublishLayerVersionResponse,
|
|
37
37
|
UsageInfo,
|
|
38
|
+
NamespaceResourceEnvTKE,
|
|
38
39
|
PublicNetConfigIn,
|
|
39
40
|
DeleteProvisionedConcurrencyConfigRequest,
|
|
40
41
|
DeleteReservedConcurrencyConfigResponse,
|
|
@@ -65,7 +66,7 @@ import {
|
|
|
65
66
|
UpdateFunctionConfigurationRequest,
|
|
66
67
|
DeleteReservedConcurrencyConfigRequest,
|
|
67
68
|
GetFunctionEventInvokeConfigResponse,
|
|
68
|
-
|
|
69
|
+
GetProvisionedConcurrencyConfigRequest,
|
|
69
70
|
TerminateAsyncEventRequest,
|
|
70
71
|
ListLayersRequest,
|
|
71
72
|
CopyFunctionRequest,
|
|
@@ -86,6 +87,7 @@ import {
|
|
|
86
87
|
LogSearchContext,
|
|
87
88
|
TriggerInfo,
|
|
88
89
|
RequestStatus,
|
|
90
|
+
K8SToleration,
|
|
89
91
|
CreateFunctionRequest,
|
|
90
92
|
GetAccountRequest,
|
|
91
93
|
PutTotalConcurrencyConfigResponse,
|
|
@@ -112,6 +114,7 @@ import {
|
|
|
112
114
|
Filter,
|
|
113
115
|
Variable,
|
|
114
116
|
GetFunctionResponse,
|
|
117
|
+
K8SLabel,
|
|
115
118
|
GetFunctionEventInvokeConfigRequest,
|
|
116
119
|
Code,
|
|
117
120
|
PutTotalConcurrencyConfigRequest,
|
|
@@ -156,6 +159,7 @@ import {
|
|
|
156
159
|
ListAsyncEventsResponse,
|
|
157
160
|
ListNamespacesResponse,
|
|
158
161
|
EipConfigOut,
|
|
162
|
+
NamespaceResourceEnv,
|
|
159
163
|
UpdateFunctionCodeResponse,
|
|
160
164
|
} from "./scf_models"
|
|
161
165
|
|
|
@@ -121,21 +121,21 @@ export interface Trigger {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* ListTriggers返回参数结构体
|
|
125
125
|
*/
|
|
126
|
-
export interface
|
|
126
|
+
export interface ListTriggersResponse {
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* 触发器总数
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
TotalCount?: number
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* 触发器列表
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
Triggers?: Array<TriggerInfo>
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
136
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
137
137
|
*/
|
|
138
|
-
|
|
138
|
+
RequestId?: string
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
/**
|
|
@@ -347,6 +347,44 @@ export interface UsageInfo {
|
|
|
347
347
|
UserConcurrencyMemLimit: number
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
+
/**
|
|
351
|
+
* 基于TKE的资源池选项
|
|
352
|
+
*/
|
|
353
|
+
export interface NamespaceResourceEnvTKE {
|
|
354
|
+
/**
|
|
355
|
+
* 集群ID
|
|
356
|
+
*/
|
|
357
|
+
ClusterID: string
|
|
358
|
+
/**
|
|
359
|
+
* 子网ID
|
|
360
|
+
*/
|
|
361
|
+
SubnetID: string
|
|
362
|
+
/**
|
|
363
|
+
* 命名空间
|
|
364
|
+
*/
|
|
365
|
+
Namespace: string
|
|
366
|
+
/**
|
|
367
|
+
* 数据存储地址
|
|
368
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
369
|
+
*/
|
|
370
|
+
DataPath?: string
|
|
371
|
+
/**
|
|
372
|
+
* node选择器
|
|
373
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
374
|
+
*/
|
|
375
|
+
NodeSelector?: Array<K8SLabel>
|
|
376
|
+
/**
|
|
377
|
+
* 污点容忍
|
|
378
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
379
|
+
*/
|
|
380
|
+
Tolerations?: Array<K8SToleration>
|
|
381
|
+
/**
|
|
382
|
+
* scf组件将占用的节点端口起始号
|
|
383
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
384
|
+
*/
|
|
385
|
+
Port?: number
|
|
386
|
+
}
|
|
387
|
+
|
|
350
388
|
/**
|
|
351
389
|
* 公网访问配置
|
|
352
390
|
*/
|
|
@@ -1022,21 +1060,21 @@ export interface GetFunctionEventInvokeConfigResponse {
|
|
|
1022
1060
|
}
|
|
1023
1061
|
|
|
1024
1062
|
/**
|
|
1025
|
-
*
|
|
1063
|
+
* GetProvisionedConcurrencyConfig请求参数结构体
|
|
1026
1064
|
*/
|
|
1027
|
-
export interface
|
|
1065
|
+
export interface GetProvisionedConcurrencyConfigRequest {
|
|
1028
1066
|
/**
|
|
1029
|
-
*
|
|
1067
|
+
* 需要获取预置并发详情的函数名称。
|
|
1030
1068
|
*/
|
|
1031
|
-
|
|
1069
|
+
FunctionName: string
|
|
1032
1070
|
/**
|
|
1033
|
-
*
|
|
1071
|
+
* 函数所在的命名空间,默认为default。
|
|
1034
1072
|
*/
|
|
1035
|
-
|
|
1073
|
+
Namespace?: string
|
|
1036
1074
|
/**
|
|
1037
|
-
*
|
|
1075
|
+
* 函数版本号,不传则返回函数所有版本的预置并发信息。
|
|
1038
1076
|
*/
|
|
1039
|
-
|
|
1077
|
+
Qualifier?: string
|
|
1040
1078
|
}
|
|
1041
1079
|
|
|
1042
1080
|
/**
|
|
@@ -1618,6 +1656,37 @@ export interface RequestStatus {
|
|
|
1618
1656
|
RetryNum: number
|
|
1619
1657
|
}
|
|
1620
1658
|
|
|
1659
|
+
/**
|
|
1660
|
+
* Kubernetes污点容忍,使用时请注意您的Kubernetes版本所支持的字段情况。
|
|
1661
|
+
可参考 https://kubernetes.io/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/
|
|
1662
|
+
*/
|
|
1663
|
+
export interface K8SToleration {
|
|
1664
|
+
/**
|
|
1665
|
+
* 匹配的污点名
|
|
1666
|
+
*/
|
|
1667
|
+
Key: string
|
|
1668
|
+
/**
|
|
1669
|
+
* 匹配方式,默认值为: Equal
|
|
1670
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1671
|
+
*/
|
|
1672
|
+
Operator?: string
|
|
1673
|
+
/**
|
|
1674
|
+
* 执行策略
|
|
1675
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1676
|
+
*/
|
|
1677
|
+
Effect?: string
|
|
1678
|
+
/**
|
|
1679
|
+
* 匹配的污点值,当Operator为Equal时必填
|
|
1680
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1681
|
+
*/
|
|
1682
|
+
Value?: string
|
|
1683
|
+
/**
|
|
1684
|
+
* 当污点不被容忍时,Pod还能在节点上运行多久
|
|
1685
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1686
|
+
*/
|
|
1687
|
+
TolerationSeconds?: number
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1621
1690
|
/**
|
|
1622
1691
|
* CreateFunction请求参数结构体
|
|
1623
1692
|
*/
|
|
@@ -2087,6 +2156,10 @@ export interface CreateNamespaceRequest {
|
|
|
2087
2156
|
* 命名空间描述
|
|
2088
2157
|
*/
|
|
2089
2158
|
Description?: string
|
|
2159
|
+
/**
|
|
2160
|
+
* 资源池配置
|
|
2161
|
+
*/
|
|
2162
|
+
ResourceEnv?: NamespaceResourceEnv
|
|
2090
2163
|
}
|
|
2091
2164
|
|
|
2092
2165
|
/**
|
|
@@ -2361,6 +2434,20 @@ export interface GetFunctionResponse {
|
|
|
2361
2434
|
RequestId?: string
|
|
2362
2435
|
}
|
|
2363
2436
|
|
|
2437
|
+
/**
|
|
2438
|
+
* k8s label
|
|
2439
|
+
*/
|
|
2440
|
+
export interface K8SLabel {
|
|
2441
|
+
/**
|
|
2442
|
+
* label的名称
|
|
2443
|
+
*/
|
|
2444
|
+
Key: string
|
|
2445
|
+
/**
|
|
2446
|
+
* label的值
|
|
2447
|
+
*/
|
|
2448
|
+
Value: string
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2364
2451
|
/**
|
|
2365
2452
|
* GetFunctionEventInvokeConfig请求参数结构体
|
|
2366
2453
|
*/
|
|
@@ -3470,6 +3557,17 @@ export interface EipConfigOut {
|
|
|
3470
3557
|
EipAddress: Array<string>
|
|
3471
3558
|
}
|
|
3472
3559
|
|
|
3560
|
+
/**
|
|
3561
|
+
* 命名空间资源池配置
|
|
3562
|
+
*/
|
|
3563
|
+
export interface NamespaceResourceEnv {
|
|
3564
|
+
/**
|
|
3565
|
+
* 基于TKE集群的资源池
|
|
3566
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3567
|
+
*/
|
|
3568
|
+
TKE?: NamespaceResourceEnvTKE
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3473
3571
|
/**
|
|
3474
3572
|
* UpdateFunctionCode返回参数结构体
|
|
3475
3573
|
*/
|
|
@@ -18,73 +18,52 @@
|
|
|
18
18
|
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
19
|
import { ClientConfig } from "../../../common/interface"
|
|
20
20
|
import {
|
|
21
|
-
PeerDetailForUser,
|
|
22
21
|
QueryChainMakerDemoBlockTransactionResponse,
|
|
23
22
|
QueryChainMakerContractRequest,
|
|
24
23
|
QueryChainMakerBlockTransactionRequest,
|
|
25
|
-
GetClusterListForUserResponse,
|
|
26
24
|
GetBlockTransactionListForUserResponse,
|
|
27
25
|
ApplyChainMakerBatchUserCertResponse,
|
|
28
26
|
ApplyUserCertRequest,
|
|
29
|
-
SrvInvokeResponse,
|
|
30
|
-
GetChaincodeInitializeResultForUserRequest,
|
|
31
|
-
InitializeChaincodeForUserRequest,
|
|
32
27
|
GetTransactionDetailForUserResponse,
|
|
33
28
|
SrvInvokeRequest,
|
|
34
29
|
ApplyUserCertResponse,
|
|
35
|
-
|
|
36
|
-
GetInvokeTxRequest,
|
|
30
|
+
GetLatesdTransactionListRequest,
|
|
37
31
|
InvokeResponse,
|
|
38
32
|
SignCertCsr,
|
|
39
33
|
DownloadUserCertResponse,
|
|
40
|
-
GetChaincodeLogForUserRequest,
|
|
41
|
-
GetLatesdTransactionListRequest,
|
|
42
|
-
LogDetailForUser,
|
|
43
|
-
DownloadUserCertRequest,
|
|
44
34
|
GetTransactionDetailForUserRequest,
|
|
45
35
|
GetBlockListResponse,
|
|
46
36
|
GetBlockTransactionListForUserRequest,
|
|
47
|
-
QueryChainMakerBlockTransactionResponse,
|
|
48
37
|
InvokeChainMakerDemoContractRequest,
|
|
49
|
-
GetClusterSummaryRequest,
|
|
50
38
|
InvokeChainMakerContractResponse,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
GetPeerLogForUserRequest,
|
|
39
|
+
SrvInvokeResponse,
|
|
40
|
+
GetInvokeTxRequest,
|
|
54
41
|
GetLatesdTransactionListResponse,
|
|
55
42
|
QueryChainMakerTransactionResponse,
|
|
56
|
-
|
|
43
|
+
GetLatestTransactionListResponse,
|
|
57
44
|
GetClusterSummaryResponse,
|
|
58
45
|
PeerSet,
|
|
59
46
|
ChainMakerTransactionResult,
|
|
60
|
-
CreateChaincodeAndInstallForUserRequest,
|
|
61
47
|
GetLatestTransactionListRequest,
|
|
62
48
|
QueryChainMakerDemoTransactionResponse,
|
|
63
49
|
ApplyChainMakerBatchUserCertRequest,
|
|
64
|
-
GetChaincodeLogForUserResponse,
|
|
65
50
|
QueryChainMakerDemoTransactionRequest,
|
|
66
|
-
InitializeChaincodeForUserResponse,
|
|
67
|
-
GroupDetailForUser,
|
|
68
51
|
QueryChainMakerDemoContractRequest,
|
|
69
52
|
ChainMakerContractResult,
|
|
70
|
-
|
|
53
|
+
GetClusterSummaryRequest,
|
|
71
54
|
Block,
|
|
72
55
|
QueryChainMakerDemoContractResponse,
|
|
73
56
|
GetBlockListRequest,
|
|
74
|
-
GetPeerLogForUserResponse,
|
|
75
57
|
InvokeRequest,
|
|
76
58
|
GetInvokeTxResponse,
|
|
77
|
-
GetChannelListForUserResponse,
|
|
78
59
|
QueryChainMakerContractResponse,
|
|
79
|
-
|
|
60
|
+
DownloadUserCertRequest,
|
|
80
61
|
InvokeChainMakerContractRequest,
|
|
81
62
|
TransactionItem,
|
|
82
|
-
|
|
63
|
+
QueryChainMakerTransactionRequest,
|
|
83
64
|
QueryChainMakerDemoBlockTransactionRequest,
|
|
84
|
-
ChannelDetailForUser,
|
|
85
65
|
QueryRequest,
|
|
86
|
-
|
|
87
|
-
GetChannelListForUserRequest,
|
|
66
|
+
QueryChainMakerBlockTransactionResponse,
|
|
88
67
|
InvokeChainMakerDemoContractResponse,
|
|
89
68
|
QueryResponse,
|
|
90
69
|
EndorserGroup,
|
|
@@ -109,6 +88,16 @@ export class Client extends AbstractClient {
|
|
|
109
88
|
return this.request("QueryChainMakerTransaction", req, cb)
|
|
110
89
|
}
|
|
111
90
|
|
|
91
|
+
/**
|
|
92
|
+
* 申请用户证书
|
|
93
|
+
*/
|
|
94
|
+
async ApplyUserCert(
|
|
95
|
+
req: ApplyUserCertRequest,
|
|
96
|
+
cb?: (error: string, rep: ApplyUserCertResponse) => void
|
|
97
|
+
): Promise<ApplyUserCertResponse> {
|
|
98
|
+
return this.request("ApplyUserCert", req, cb)
|
|
99
|
+
}
|
|
100
|
+
|
|
112
101
|
/**
|
|
113
102
|
* 批量申请长安链用户签名证书
|
|
114
103
|
*/
|
|
@@ -120,57 +109,13 @@ export class Client extends AbstractClient {
|
|
|
120
109
|
}
|
|
121
110
|
|
|
122
111
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
获取合约容器日志
|
|
126
|
-
*/
|
|
127
|
-
async GetChaincodeLogForUser(
|
|
128
|
-
req: GetChaincodeLogForUserRequest,
|
|
129
|
-
cb?: (error: string, rep: GetChaincodeLogForUserResponse) => void
|
|
130
|
-
): Promise<GetChaincodeLogForUserResponse> {
|
|
131
|
-
return this.request("GetChaincodeLogForUser", req, cb)
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* 通过交易ID查询长安链体验网络交易
|
|
136
|
-
*/
|
|
137
|
-
async QueryChainMakerDemoTransaction(
|
|
138
|
-
req: QueryChainMakerDemoTransactionRequest,
|
|
139
|
-
cb?: (error: string, rep: QueryChainMakerDemoTransactionResponse) => void
|
|
140
|
-
): Promise<QueryChainMakerDemoTransactionResponse> {
|
|
141
|
-
return this.request("QueryChainMakerDemoTransaction", req, cb)
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* 接口已废弃,请通过控制台查询或操作
|
|
146
|
-
|
|
147
|
-
获取该用户的网络列表。网络信息中包含组织信息,但仅包含该用户所在组织的信息。
|
|
148
|
-
*/
|
|
149
|
-
async GetClusterListForUser(
|
|
150
|
-
req: GetClusterListForUserRequest,
|
|
151
|
-
cb?: (error: string, rep: GetClusterListForUserResponse) => void
|
|
152
|
-
): Promise<GetClusterListForUserResponse> {
|
|
153
|
-
return this.request("GetClusterListForUser", req, cb)
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* 调用长安链合约查询
|
|
158
|
-
*/
|
|
159
|
-
async QueryChainMakerContract(
|
|
160
|
-
req: QueryChainMakerContractRequest,
|
|
161
|
-
cb?: (error: string, rep: QueryChainMakerContractResponse) => void
|
|
162
|
-
): Promise<QueryChainMakerContractResponse> {
|
|
163
|
-
return this.request("QueryChainMakerContract", req, cb)
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* 查询长安链体验网络指定高度区块的交易
|
|
112
|
+
* trustsql服务统一接口
|
|
168
113
|
*/
|
|
169
|
-
async
|
|
170
|
-
req:
|
|
171
|
-
cb?: (error: string, rep:
|
|
172
|
-
): Promise<
|
|
173
|
-
return this.request("
|
|
114
|
+
async SrvInvoke(
|
|
115
|
+
req: SrvInvokeRequest,
|
|
116
|
+
cb?: (error: string, rep: SrvInvokeResponse) => void
|
|
117
|
+
): Promise<SrvInvokeResponse> {
|
|
118
|
+
return this.request("SrvInvoke", req, cb)
|
|
174
119
|
}
|
|
175
120
|
|
|
176
121
|
/**
|
|
@@ -193,114 +138,6 @@ export class Client extends AbstractClient {
|
|
|
193
138
|
return this.request("GetClusterSummary", req, cb)
|
|
194
139
|
}
|
|
195
140
|
|
|
196
|
-
/**
|
|
197
|
-
* 接口已废弃,请通过控制台查询或操作
|
|
198
|
-
|
|
199
|
-
获取节点日志
|
|
200
|
-
*/
|
|
201
|
-
async GetPeerLogForUser(
|
|
202
|
-
req: GetPeerLogForUserRequest,
|
|
203
|
-
cb?: (error: string, rep: GetPeerLogForUserResponse) => void
|
|
204
|
-
): Promise<GetPeerLogForUserResponse> {
|
|
205
|
-
return this.request("GetPeerLogForUser", req, cb)
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* 获取fabric最新交易列表
|
|
210
|
-
*/
|
|
211
|
-
async GetLatestTransactionList(
|
|
212
|
-
req: GetLatestTransactionListRequest,
|
|
213
|
-
cb?: (error: string, rep: GetLatestTransactionListResponse) => void
|
|
214
|
-
): Promise<GetLatestTransactionListResponse> {
|
|
215
|
-
return this.request("GetLatestTransactionList", req, cb)
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* 下载用户证书
|
|
220
|
-
*/
|
|
221
|
-
async DownloadUserCert(
|
|
222
|
-
req: DownloadUserCertRequest,
|
|
223
|
-
cb?: (error: string, rep: DownloadUserCertResponse) => void
|
|
224
|
-
): Promise<DownloadUserCertResponse> {
|
|
225
|
-
return this.request("DownloadUserCert", req, cb)
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* 接口已废弃,请通过控制台查询或操作
|
|
230
|
-
|
|
231
|
-
创建并安装合约
|
|
232
|
-
*/
|
|
233
|
-
async CreateChaincodeAndInstallForUser(
|
|
234
|
-
req: CreateChaincodeAndInstallForUserRequest,
|
|
235
|
-
cb?: (error: string, rep: CreateChaincodeAndInstallForUserResponse) => void
|
|
236
|
-
): Promise<CreateChaincodeAndInstallForUserResponse> {
|
|
237
|
-
return this.request("CreateChaincodeAndInstallForUser", req, cb)
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* 获取最新交易列表(已废弃)
|
|
242
|
-
*/
|
|
243
|
-
async GetLatesdTransactionList(
|
|
244
|
-
req: GetLatesdTransactionListRequest,
|
|
245
|
-
cb?: (error: string, rep: GetLatesdTransactionListResponse) => void
|
|
246
|
-
): Promise<GetLatesdTransactionListResponse> {
|
|
247
|
-
return this.request("GetLatesdTransactionList", req, cb)
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* 申请用户证书
|
|
252
|
-
*/
|
|
253
|
-
async ApplyUserCert(
|
|
254
|
-
req: ApplyUserCertRequest,
|
|
255
|
-
cb?: (error: string, rep: ApplyUserCertResponse) => void
|
|
256
|
-
): Promise<ApplyUserCertResponse> {
|
|
257
|
-
return this.request("ApplyUserCert", req, cb)
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* 调用长安链合约执行交易
|
|
262
|
-
*/
|
|
263
|
-
async InvokeChainMakerContract(
|
|
264
|
-
req: InvokeChainMakerContractRequest,
|
|
265
|
-
cb?: (error: string, rep: InvokeChainMakerContractResponse) => void
|
|
266
|
-
): Promise<InvokeChainMakerContractResponse> {
|
|
267
|
-
return this.request("InvokeChainMakerContract", req, cb)
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Invoke异步调用结果查询
|
|
272
|
-
*/
|
|
273
|
-
async GetInvokeTx(
|
|
274
|
-
req: GetInvokeTxRequest,
|
|
275
|
-
cb?: (error: string, rep: GetInvokeTxResponse) => void
|
|
276
|
-
): Promise<GetInvokeTxResponse> {
|
|
277
|
-
return this.request("GetInvokeTx", req, cb)
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* 接口已废弃,请通过控制台查询或操作
|
|
282
|
-
|
|
283
|
-
实例化结果查询
|
|
284
|
-
*/
|
|
285
|
-
async GetChaincodeInitializeResultForUser(
|
|
286
|
-
req: GetChaincodeInitializeResultForUserRequest,
|
|
287
|
-
cb?: (error: string, rep: GetChaincodeInitializeResultForUserResponse) => void
|
|
288
|
-
): Promise<GetChaincodeInitializeResultForUserResponse> {
|
|
289
|
-
return this.request("GetChaincodeInitializeResultForUser", req, cb)
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* 接口已废弃,请通过控制台查询或操作
|
|
294
|
-
|
|
295
|
-
获取通道列表
|
|
296
|
-
*/
|
|
297
|
-
async GetChannelListForUser(
|
|
298
|
-
req: GetChannelListForUserRequest,
|
|
299
|
-
cb?: (error: string, rep: GetChannelListForUserResponse) => void
|
|
300
|
-
): Promise<GetChannelListForUserResponse> {
|
|
301
|
-
return this.request("GetChannelListForUser", req, cb)
|
|
302
|
-
}
|
|
303
|
-
|
|
304
141
|
/**
|
|
305
142
|
* 查询长安链指定高度区块的交易
|
|
306
143
|
*/
|
|
@@ -311,18 +148,6 @@ export class Client extends AbstractClient {
|
|
|
311
148
|
return this.request("QueryChainMakerBlockTransaction", req, cb)
|
|
312
149
|
}
|
|
313
150
|
|
|
314
|
-
/**
|
|
315
|
-
* 接口已废弃,请通过控制台查询或操作
|
|
316
|
-
|
|
317
|
-
实例化合约
|
|
318
|
-
*/
|
|
319
|
-
async InitializeChaincodeForUser(
|
|
320
|
-
req: InitializeChaincodeForUserRequest,
|
|
321
|
-
cb?: (error: string, rep: InitializeChaincodeForUserResponse) => void
|
|
322
|
-
): Promise<InitializeChaincodeForUserResponse> {
|
|
323
|
-
return this.request("InitializeChaincodeForUser", req, cb)
|
|
324
|
-
}
|
|
325
|
-
|
|
326
151
|
/**
|
|
327
152
|
* 调用长安链体验网络合约查询
|
|
328
153
|
*/
|
|
@@ -334,23 +159,33 @@ export class Client extends AbstractClient {
|
|
|
334
159
|
}
|
|
335
160
|
|
|
336
161
|
/**
|
|
337
|
-
*
|
|
162
|
+
* 通过交易ID查询长安链体验网络交易
|
|
338
163
|
*/
|
|
339
|
-
async
|
|
340
|
-
req:
|
|
341
|
-
cb?: (error: string, rep:
|
|
342
|
-
): Promise<
|
|
343
|
-
return this.request("
|
|
164
|
+
async QueryChainMakerDemoTransaction(
|
|
165
|
+
req: QueryChainMakerDemoTransactionRequest,
|
|
166
|
+
cb?: (error: string, rep: QueryChainMakerDemoTransactionResponse) => void
|
|
167
|
+
): Promise<QueryChainMakerDemoTransactionResponse> {
|
|
168
|
+
return this.request("QueryChainMakerDemoTransaction", req, cb)
|
|
344
169
|
}
|
|
345
170
|
|
|
346
171
|
/**
|
|
347
|
-
*
|
|
172
|
+
* Invoke异步调用结果查询
|
|
348
173
|
*/
|
|
349
|
-
async
|
|
350
|
-
req:
|
|
351
|
-
cb?: (error: string, rep:
|
|
352
|
-
): Promise<
|
|
353
|
-
return this.request("
|
|
174
|
+
async GetInvokeTx(
|
|
175
|
+
req: GetInvokeTxRequest,
|
|
176
|
+
cb?: (error: string, rep: GetInvokeTxResponse) => void
|
|
177
|
+
): Promise<GetInvokeTxResponse> {
|
|
178
|
+
return this.request("GetInvokeTx", req, cb)
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 获取fabric最新交易列表
|
|
183
|
+
*/
|
|
184
|
+
async GetLatestTransactionList(
|
|
185
|
+
req: GetLatestTransactionListRequest,
|
|
186
|
+
cb?: (error: string, rep: GetLatestTransactionListResponse) => void
|
|
187
|
+
): Promise<GetLatestTransactionListResponse> {
|
|
188
|
+
return this.request("GetLatestTransactionList", req, cb)
|
|
354
189
|
}
|
|
355
190
|
|
|
356
191
|
/**
|
|
@@ -364,15 +199,13 @@ export class Client extends AbstractClient {
|
|
|
364
199
|
}
|
|
365
200
|
|
|
366
201
|
/**
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
): Promise<GetChaincodeCompileLogForUserResponse> {
|
|
375
|
-
return this.request("GetChaincodeCompileLogForUser", req, cb)
|
|
202
|
+
* 下载用户证书
|
|
203
|
+
*/
|
|
204
|
+
async DownloadUserCert(
|
|
205
|
+
req: DownloadUserCertRequest,
|
|
206
|
+
cb?: (error: string, rep: DownloadUserCertResponse) => void
|
|
207
|
+
): Promise<DownloadUserCertResponse> {
|
|
208
|
+
return this.request("DownloadUserCert", req, cb)
|
|
376
209
|
}
|
|
377
210
|
|
|
378
211
|
/**
|
|
@@ -385,6 +218,16 @@ export class Client extends AbstractClient {
|
|
|
385
218
|
return this.request("GetBlockTransactionListForUser", req, cb)
|
|
386
219
|
}
|
|
387
220
|
|
|
221
|
+
/**
|
|
222
|
+
* 调用长安链合约执行交易
|
|
223
|
+
*/
|
|
224
|
+
async InvokeChainMakerContract(
|
|
225
|
+
req: InvokeChainMakerContractRequest,
|
|
226
|
+
cb?: (error: string, rep: InvokeChainMakerContractResponse) => void
|
|
227
|
+
): Promise<InvokeChainMakerContractResponse> {
|
|
228
|
+
return this.request("InvokeChainMakerContract", req, cb)
|
|
229
|
+
}
|
|
230
|
+
|
|
388
231
|
/**
|
|
389
232
|
* 查看当前网络下的所有区块列表,分页展示
|
|
390
233
|
*/
|
|
@@ -404,4 +247,44 @@ export class Client extends AbstractClient {
|
|
|
404
247
|
): Promise<QueryResponse> {
|
|
405
248
|
return this.request("Query", req, cb)
|
|
406
249
|
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* 获取交易详情
|
|
253
|
+
*/
|
|
254
|
+
async GetTransactionDetailForUser(
|
|
255
|
+
req: GetTransactionDetailForUserRequest,
|
|
256
|
+
cb?: (error: string, rep: GetTransactionDetailForUserResponse) => void
|
|
257
|
+
): Promise<GetTransactionDetailForUserResponse> {
|
|
258
|
+
return this.request("GetTransactionDetailForUser", req, cb)
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* 查询长安链体验网络指定高度区块的交易
|
|
263
|
+
*/
|
|
264
|
+
async QueryChainMakerDemoBlockTransaction(
|
|
265
|
+
req: QueryChainMakerDemoBlockTransactionRequest,
|
|
266
|
+
cb?: (error: string, rep: QueryChainMakerDemoBlockTransactionResponse) => void
|
|
267
|
+
): Promise<QueryChainMakerDemoBlockTransactionResponse> {
|
|
268
|
+
return this.request("QueryChainMakerDemoBlockTransaction", req, cb)
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* 调用长安链合约查询
|
|
273
|
+
*/
|
|
274
|
+
async QueryChainMakerContract(
|
|
275
|
+
req: QueryChainMakerContractRequest,
|
|
276
|
+
cb?: (error: string, rep: QueryChainMakerContractResponse) => void
|
|
277
|
+
): Promise<QueryChainMakerContractResponse> {
|
|
278
|
+
return this.request("QueryChainMakerContract", req, cb)
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* 获取最新交易列表(已废弃)
|
|
283
|
+
*/
|
|
284
|
+
async GetLatesdTransactionList(
|
|
285
|
+
req: GetLatesdTransactionListRequest,
|
|
286
|
+
cb?: (error: string, rep: GetLatesdTransactionListResponse) => void
|
|
287
|
+
): Promise<GetLatesdTransactionListResponse> {
|
|
288
|
+
return this.request("GetLatesdTransactionList", req, cb)
|
|
289
|
+
}
|
|
407
290
|
}
|