@dashevo/dapi-grpc 4.2.0-dev.9 → 5.0.0-beta.2
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/Cargo.toml +1 -1
- package/README.md +32 -0
- package/build.rs +31 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +30374 -7055
- package/clients/platform/v0/nodejs/platform_pbjs.js +30374 -7055
- package/clients/platform/v0/nodejs/platform_protoc.js +29961 -6464
- package/clients/platform/v0/web/platform_pb.d.ts +3106 -49
- package/clients/platform/v0/web/platform_pb.js +29961 -6464
- package/clients/platform/v0/web/platform_pb_service.d.ts +247 -0
- package/clients/platform/v0/web/platform_pb_service.js +520 -0
- package/codegen.json +31 -0
- package/package.json +4 -3
- package/protos/platform/v0/platform.proto +769 -3
- package/scripts/build.sh +61 -247
- package/scripts/check-packed-clients.py +32 -0
- package/scripts/patch-protobuf-js.sh +11 -6
- package/scripts/setup-codegen.py +74 -0
- package/test/unit/shielded-requests.spec.js +51 -0
|
@@ -58,6 +58,15 @@ type PlatformgetIdentityContractNonce = {
|
|
|
58
58
|
readonly responseType: typeof platform_pb.GetIdentityContractNonceResponse;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
type PlatformgetIdentityKeysRemainingBudgets = {
|
|
62
|
+
readonly methodName: string;
|
|
63
|
+
readonly service: typeof Platform;
|
|
64
|
+
readonly requestStream: false;
|
|
65
|
+
readonly responseStream: false;
|
|
66
|
+
readonly requestType: typeof platform_pb.GetIdentityKeysRemainingBudgetsRequest;
|
|
67
|
+
readonly responseType: typeof platform_pb.GetIdentityKeysRemainingBudgetsResponse;
|
|
68
|
+
};
|
|
69
|
+
|
|
61
70
|
type PlatformgetIdentityBalance = {
|
|
62
71
|
readonly methodName: string;
|
|
63
72
|
readonly service: typeof Platform;
|
|
@@ -121,6 +130,15 @@ type PlatformgetDataContractHistory = {
|
|
|
121
130
|
readonly responseType: typeof platform_pb.GetDataContractHistoryResponse;
|
|
122
131
|
};
|
|
123
132
|
|
|
133
|
+
type PlatformgetDataContractsLatestVersions = {
|
|
134
|
+
readonly methodName: string;
|
|
135
|
+
readonly service: typeof Platform;
|
|
136
|
+
readonly requestStream: false;
|
|
137
|
+
readonly responseStream: false;
|
|
138
|
+
readonly requestType: typeof platform_pb.GetDataContractsLatestVersionsRequest;
|
|
139
|
+
readonly responseType: typeof platform_pb.GetDataContractsLatestVersionsResponse;
|
|
140
|
+
};
|
|
141
|
+
|
|
124
142
|
type PlatformgetDataContracts = {
|
|
125
143
|
readonly methodName: string;
|
|
126
144
|
readonly service: typeof Platform;
|
|
@@ -130,6 +148,105 @@ type PlatformgetDataContracts = {
|
|
|
130
148
|
readonly responseType: typeof platform_pb.GetDataContractsResponse;
|
|
131
149
|
};
|
|
132
150
|
|
|
151
|
+
type PlatformgetDataContractsByRange = {
|
|
152
|
+
readonly methodName: string;
|
|
153
|
+
readonly service: typeof Platform;
|
|
154
|
+
readonly requestStream: false;
|
|
155
|
+
readonly responseStream: false;
|
|
156
|
+
readonly requestType: typeof platform_pb.GetDataContractsByRangeRequest;
|
|
157
|
+
readonly responseType: typeof platform_pb.GetDataContractsResponse;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
type PlatformgetContractGroupInfo = {
|
|
161
|
+
readonly methodName: string;
|
|
162
|
+
readonly service: typeof Platform;
|
|
163
|
+
readonly requestStream: false;
|
|
164
|
+
readonly responseStream: false;
|
|
165
|
+
readonly requestType: typeof platform_pb.GetContractGroupInfoRequest;
|
|
166
|
+
readonly responseType: typeof platform_pb.GetContractGroupInfoResponse;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
type PlatformgetContractGroupMembers = {
|
|
170
|
+
readonly methodName: string;
|
|
171
|
+
readonly service: typeof Platform;
|
|
172
|
+
readonly requestStream: false;
|
|
173
|
+
readonly responseStream: false;
|
|
174
|
+
readonly requestType: typeof platform_pb.GetContractGroupMembersRequest;
|
|
175
|
+
readonly responseType: typeof platform_pb.GetContractGroupMembersResponse;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
type PlatformgetContractGroupsForContract = {
|
|
179
|
+
readonly methodName: string;
|
|
180
|
+
readonly service: typeof Platform;
|
|
181
|
+
readonly requestStream: false;
|
|
182
|
+
readonly responseStream: false;
|
|
183
|
+
readonly requestType: typeof platform_pb.GetContractGroupsForContractRequest;
|
|
184
|
+
readonly responseType: typeof platform_pb.GetContractGroupsForContractResponse;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
type PlatformgetContractModerationStatus = {
|
|
188
|
+
readonly methodName: string;
|
|
189
|
+
readonly service: typeof Platform;
|
|
190
|
+
readonly requestStream: false;
|
|
191
|
+
readonly responseStream: false;
|
|
192
|
+
readonly requestType: typeof platform_pb.GetContractModerationStatusRequest;
|
|
193
|
+
readonly responseType: typeof platform_pb.GetContractModerationStatusResponse;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
type PlatformgetContractModerationEntries = {
|
|
197
|
+
readonly methodName: string;
|
|
198
|
+
readonly service: typeof Platform;
|
|
199
|
+
readonly requestStream: false;
|
|
200
|
+
readonly responseStream: false;
|
|
201
|
+
readonly requestType: typeof platform_pb.GetContractModerationEntriesRequest;
|
|
202
|
+
readonly responseType: typeof platform_pb.GetContractModerationEntriesResponse;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
type PlatformgetContractDocumentRemovals = {
|
|
206
|
+
readonly methodName: string;
|
|
207
|
+
readonly service: typeof Platform;
|
|
208
|
+
readonly requestStream: false;
|
|
209
|
+
readonly responseStream: false;
|
|
210
|
+
readonly requestType: typeof platform_pb.GetContractDocumentRemovalsRequest;
|
|
211
|
+
readonly responseType: typeof platform_pb.GetContractDocumentRemovalsResponse;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
type PlatformgetContractTeamActions = {
|
|
215
|
+
readonly methodName: string;
|
|
216
|
+
readonly service: typeof Platform;
|
|
217
|
+
readonly requestStream: false;
|
|
218
|
+
readonly responseStream: false;
|
|
219
|
+
readonly requestType: typeof platform_pb.GetContractTeamActionsRequest;
|
|
220
|
+
readonly responseType: typeof platform_pb.GetContractTeamActionsResponse;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
type PlatformgetContractTeamActionSigners = {
|
|
224
|
+
readonly methodName: string;
|
|
225
|
+
readonly service: typeof Platform;
|
|
226
|
+
readonly requestStream: false;
|
|
227
|
+
readonly responseStream: false;
|
|
228
|
+
readonly requestType: typeof platform_pb.GetContractTeamActionSignersRequest;
|
|
229
|
+
readonly responseType: typeof platform_pb.GetContractTeamActionSignersResponse;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
type PlatformgetContractModerationActionCounts = {
|
|
233
|
+
readonly methodName: string;
|
|
234
|
+
readonly service: typeof Platform;
|
|
235
|
+
readonly requestStream: false;
|
|
236
|
+
readonly responseStream: false;
|
|
237
|
+
readonly requestType: typeof platform_pb.GetContractModerationActionCountsRequest;
|
|
238
|
+
readonly responseType: typeof platform_pb.GetContractModerationActionCountsResponse;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
type PlatformgetContractFeePots = {
|
|
242
|
+
readonly methodName: string;
|
|
243
|
+
readonly service: typeof Platform;
|
|
244
|
+
readonly requestStream: false;
|
|
245
|
+
readonly responseStream: false;
|
|
246
|
+
readonly requestType: typeof platform_pb.GetContractFeePotsRequest;
|
|
247
|
+
readonly responseType: typeof platform_pb.GetContractFeePotsResponse;
|
|
248
|
+
};
|
|
249
|
+
|
|
133
250
|
type PlatformgetDocumentHistory = {
|
|
134
251
|
readonly methodName: string;
|
|
135
252
|
readonly service: typeof Platform;
|
|
@@ -552,6 +669,7 @@ export class Platform {
|
|
|
552
669
|
static readonly getIdentitiesContractKeys: PlatformgetIdentitiesContractKeys;
|
|
553
670
|
static readonly getIdentityNonce: PlatformgetIdentityNonce;
|
|
554
671
|
static readonly getIdentityContractNonce: PlatformgetIdentityContractNonce;
|
|
672
|
+
static readonly getIdentityKeysRemainingBudgets: PlatformgetIdentityKeysRemainingBudgets;
|
|
555
673
|
static readonly getIdentityBalance: PlatformgetIdentityBalance;
|
|
556
674
|
static readonly getIdentitiesBalances: PlatformgetIdentitiesBalances;
|
|
557
675
|
static readonly getIdentityBalanceAndRevision: PlatformgetIdentityBalanceAndRevision;
|
|
@@ -559,7 +677,19 @@ export class Platform {
|
|
|
559
677
|
static readonly getEvonodesProposedEpochBlocksByRange: PlatformgetEvonodesProposedEpochBlocksByRange;
|
|
560
678
|
static readonly getDataContract: PlatformgetDataContract;
|
|
561
679
|
static readonly getDataContractHistory: PlatformgetDataContractHistory;
|
|
680
|
+
static readonly getDataContractsLatestVersions: PlatformgetDataContractsLatestVersions;
|
|
562
681
|
static readonly getDataContracts: PlatformgetDataContracts;
|
|
682
|
+
static readonly getDataContractsByRange: PlatformgetDataContractsByRange;
|
|
683
|
+
static readonly getContractGroupInfo: PlatformgetContractGroupInfo;
|
|
684
|
+
static readonly getContractGroupMembers: PlatformgetContractGroupMembers;
|
|
685
|
+
static readonly getContractGroupsForContract: PlatformgetContractGroupsForContract;
|
|
686
|
+
static readonly getContractModerationStatus: PlatformgetContractModerationStatus;
|
|
687
|
+
static readonly getContractModerationEntries: PlatformgetContractModerationEntries;
|
|
688
|
+
static readonly getContractDocumentRemovals: PlatformgetContractDocumentRemovals;
|
|
689
|
+
static readonly getContractTeamActions: PlatformgetContractTeamActions;
|
|
690
|
+
static readonly getContractTeamActionSigners: PlatformgetContractTeamActionSigners;
|
|
691
|
+
static readonly getContractModerationActionCounts: PlatformgetContractModerationActionCounts;
|
|
692
|
+
static readonly getContractFeePots: PlatformgetContractFeePots;
|
|
563
693
|
static readonly getDocumentHistory: PlatformgetDocumentHistory;
|
|
564
694
|
static readonly getDocuments: PlatformgetDocuments;
|
|
565
695
|
static readonly getIdentityByPublicKeyHash: PlatformgetIdentityByPublicKeyHash;
|
|
@@ -694,6 +824,15 @@ export class PlatformClient {
|
|
|
694
824
|
requestMessage: platform_pb.GetIdentityContractNonceRequest,
|
|
695
825
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityContractNonceResponse|null) => void
|
|
696
826
|
): UnaryResponse;
|
|
827
|
+
getIdentityKeysRemainingBudgets(
|
|
828
|
+
requestMessage: platform_pb.GetIdentityKeysRemainingBudgetsRequest,
|
|
829
|
+
metadata: grpc.Metadata,
|
|
830
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityKeysRemainingBudgetsResponse|null) => void
|
|
831
|
+
): UnaryResponse;
|
|
832
|
+
getIdentityKeysRemainingBudgets(
|
|
833
|
+
requestMessage: platform_pb.GetIdentityKeysRemainingBudgetsRequest,
|
|
834
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityKeysRemainingBudgetsResponse|null) => void
|
|
835
|
+
): UnaryResponse;
|
|
697
836
|
getIdentityBalance(
|
|
698
837
|
requestMessage: platform_pb.GetIdentityBalanceRequest,
|
|
699
838
|
metadata: grpc.Metadata,
|
|
@@ -757,6 +896,15 @@ export class PlatformClient {
|
|
|
757
896
|
requestMessage: platform_pb.GetDataContractHistoryRequest,
|
|
758
897
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractHistoryResponse|null) => void
|
|
759
898
|
): UnaryResponse;
|
|
899
|
+
getDataContractsLatestVersions(
|
|
900
|
+
requestMessage: platform_pb.GetDataContractsLatestVersionsRequest,
|
|
901
|
+
metadata: grpc.Metadata,
|
|
902
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsLatestVersionsResponse|null) => void
|
|
903
|
+
): UnaryResponse;
|
|
904
|
+
getDataContractsLatestVersions(
|
|
905
|
+
requestMessage: platform_pb.GetDataContractsLatestVersionsRequest,
|
|
906
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsLatestVersionsResponse|null) => void
|
|
907
|
+
): UnaryResponse;
|
|
760
908
|
getDataContracts(
|
|
761
909
|
requestMessage: platform_pb.GetDataContractsRequest,
|
|
762
910
|
metadata: grpc.Metadata,
|
|
@@ -766,6 +914,105 @@ export class PlatformClient {
|
|
|
766
914
|
requestMessage: platform_pb.GetDataContractsRequest,
|
|
767
915
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsResponse|null) => void
|
|
768
916
|
): UnaryResponse;
|
|
917
|
+
getDataContractsByRange(
|
|
918
|
+
requestMessage: platform_pb.GetDataContractsByRangeRequest,
|
|
919
|
+
metadata: grpc.Metadata,
|
|
920
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsResponse|null) => void
|
|
921
|
+
): UnaryResponse;
|
|
922
|
+
getDataContractsByRange(
|
|
923
|
+
requestMessage: platform_pb.GetDataContractsByRangeRequest,
|
|
924
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsResponse|null) => void
|
|
925
|
+
): UnaryResponse;
|
|
926
|
+
getContractGroupInfo(
|
|
927
|
+
requestMessage: platform_pb.GetContractGroupInfoRequest,
|
|
928
|
+
metadata: grpc.Metadata,
|
|
929
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupInfoResponse|null) => void
|
|
930
|
+
): UnaryResponse;
|
|
931
|
+
getContractGroupInfo(
|
|
932
|
+
requestMessage: platform_pb.GetContractGroupInfoRequest,
|
|
933
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupInfoResponse|null) => void
|
|
934
|
+
): UnaryResponse;
|
|
935
|
+
getContractGroupMembers(
|
|
936
|
+
requestMessage: platform_pb.GetContractGroupMembersRequest,
|
|
937
|
+
metadata: grpc.Metadata,
|
|
938
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupMembersResponse|null) => void
|
|
939
|
+
): UnaryResponse;
|
|
940
|
+
getContractGroupMembers(
|
|
941
|
+
requestMessage: platform_pb.GetContractGroupMembersRequest,
|
|
942
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupMembersResponse|null) => void
|
|
943
|
+
): UnaryResponse;
|
|
944
|
+
getContractGroupsForContract(
|
|
945
|
+
requestMessage: platform_pb.GetContractGroupsForContractRequest,
|
|
946
|
+
metadata: grpc.Metadata,
|
|
947
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupsForContractResponse|null) => void
|
|
948
|
+
): UnaryResponse;
|
|
949
|
+
getContractGroupsForContract(
|
|
950
|
+
requestMessage: platform_pb.GetContractGroupsForContractRequest,
|
|
951
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupsForContractResponse|null) => void
|
|
952
|
+
): UnaryResponse;
|
|
953
|
+
getContractModerationStatus(
|
|
954
|
+
requestMessage: platform_pb.GetContractModerationStatusRequest,
|
|
955
|
+
metadata: grpc.Metadata,
|
|
956
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractModerationStatusResponse|null) => void
|
|
957
|
+
): UnaryResponse;
|
|
958
|
+
getContractModerationStatus(
|
|
959
|
+
requestMessage: platform_pb.GetContractModerationStatusRequest,
|
|
960
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractModerationStatusResponse|null) => void
|
|
961
|
+
): UnaryResponse;
|
|
962
|
+
getContractModerationEntries(
|
|
963
|
+
requestMessage: platform_pb.GetContractModerationEntriesRequest,
|
|
964
|
+
metadata: grpc.Metadata,
|
|
965
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractModerationEntriesResponse|null) => void
|
|
966
|
+
): UnaryResponse;
|
|
967
|
+
getContractModerationEntries(
|
|
968
|
+
requestMessage: platform_pb.GetContractModerationEntriesRequest,
|
|
969
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractModerationEntriesResponse|null) => void
|
|
970
|
+
): UnaryResponse;
|
|
971
|
+
getContractDocumentRemovals(
|
|
972
|
+
requestMessage: platform_pb.GetContractDocumentRemovalsRequest,
|
|
973
|
+
metadata: grpc.Metadata,
|
|
974
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractDocumentRemovalsResponse|null) => void
|
|
975
|
+
): UnaryResponse;
|
|
976
|
+
getContractDocumentRemovals(
|
|
977
|
+
requestMessage: platform_pb.GetContractDocumentRemovalsRequest,
|
|
978
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractDocumentRemovalsResponse|null) => void
|
|
979
|
+
): UnaryResponse;
|
|
980
|
+
getContractTeamActions(
|
|
981
|
+
requestMessage: platform_pb.GetContractTeamActionsRequest,
|
|
982
|
+
metadata: grpc.Metadata,
|
|
983
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractTeamActionsResponse|null) => void
|
|
984
|
+
): UnaryResponse;
|
|
985
|
+
getContractTeamActions(
|
|
986
|
+
requestMessage: platform_pb.GetContractTeamActionsRequest,
|
|
987
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractTeamActionsResponse|null) => void
|
|
988
|
+
): UnaryResponse;
|
|
989
|
+
getContractTeamActionSigners(
|
|
990
|
+
requestMessage: platform_pb.GetContractTeamActionSignersRequest,
|
|
991
|
+
metadata: grpc.Metadata,
|
|
992
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractTeamActionSignersResponse|null) => void
|
|
993
|
+
): UnaryResponse;
|
|
994
|
+
getContractTeamActionSigners(
|
|
995
|
+
requestMessage: platform_pb.GetContractTeamActionSignersRequest,
|
|
996
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractTeamActionSignersResponse|null) => void
|
|
997
|
+
): UnaryResponse;
|
|
998
|
+
getContractModerationActionCounts(
|
|
999
|
+
requestMessage: platform_pb.GetContractModerationActionCountsRequest,
|
|
1000
|
+
metadata: grpc.Metadata,
|
|
1001
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractModerationActionCountsResponse|null) => void
|
|
1002
|
+
): UnaryResponse;
|
|
1003
|
+
getContractModerationActionCounts(
|
|
1004
|
+
requestMessage: platform_pb.GetContractModerationActionCountsRequest,
|
|
1005
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractModerationActionCountsResponse|null) => void
|
|
1006
|
+
): UnaryResponse;
|
|
1007
|
+
getContractFeePots(
|
|
1008
|
+
requestMessage: platform_pb.GetContractFeePotsRequest,
|
|
1009
|
+
metadata: grpc.Metadata,
|
|
1010
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractFeePotsResponse|null) => void
|
|
1011
|
+
): UnaryResponse;
|
|
1012
|
+
getContractFeePots(
|
|
1013
|
+
requestMessage: platform_pb.GetContractFeePotsRequest,
|
|
1014
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractFeePotsResponse|null) => void
|
|
1015
|
+
): UnaryResponse;
|
|
769
1016
|
getDocumentHistory(
|
|
770
1017
|
requestMessage: platform_pb.GetDocumentHistoryRequest,
|
|
771
1018
|
metadata: grpc.Metadata,
|