@dashevo/dapi-grpc 3.1.0-dev.8 → 4.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.
@@ -93,6 +93,21 @@ class PlatformPromiseClient {
93
93
  );
94
94
  }
95
95
 
96
+ /**
97
+ *
98
+ * @param {!GetDocumentHistoryRequest} getDocumentHistoryRequest
99
+ * @param {?Object<string, string>} metadata
100
+ * @returns {Promise<!GetDocumentHistoryResponse>}
101
+ */
102
+ getDocumentHistory(getDocumentHistoryRequest, metadata = {}) {
103
+ return promisify(
104
+ this.client.getDocumentHistory.bind(this.client),
105
+ )(
106
+ getDocumentHistoryRequest,
107
+ metadata,
108
+ );
109
+ }
110
+
96
111
  /**
97
112
  *
98
113
  * @param {!GetDocumentsRequest} getDocumentsRequest
@@ -3307,6 +3307,203 @@ export namespace GetDocumentsResponse {
3307
3307
  }
3308
3308
  }
3309
3309
 
3310
+ export class GetDocumentHistoryRequest extends jspb.Message {
3311
+ hasV0(): boolean;
3312
+ clearV0(): void;
3313
+ getV0(): GetDocumentHistoryRequest.GetDocumentHistoryRequestV0 | undefined;
3314
+ setV0(value?: GetDocumentHistoryRequest.GetDocumentHistoryRequestV0): void;
3315
+
3316
+ getVersionCase(): GetDocumentHistoryRequest.VersionCase;
3317
+ serializeBinary(): Uint8Array;
3318
+ toObject(includeInstance?: boolean): GetDocumentHistoryRequest.AsObject;
3319
+ static toObject(includeInstance: boolean, msg: GetDocumentHistoryRequest): GetDocumentHistoryRequest.AsObject;
3320
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
3321
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
3322
+ static serializeBinaryToWriter(message: GetDocumentHistoryRequest, writer: jspb.BinaryWriter): void;
3323
+ static deserializeBinary(bytes: Uint8Array): GetDocumentHistoryRequest;
3324
+ static deserializeBinaryFromReader(message: GetDocumentHistoryRequest, reader: jspb.BinaryReader): GetDocumentHistoryRequest;
3325
+ }
3326
+
3327
+ export namespace GetDocumentHistoryRequest {
3328
+ export type AsObject = {
3329
+ v0?: GetDocumentHistoryRequest.GetDocumentHistoryRequestV0.AsObject,
3330
+ }
3331
+
3332
+ export class GetDocumentHistoryRequestV0 extends jspb.Message {
3333
+ getDataContractId(): Uint8Array | string;
3334
+ getDataContractId_asU8(): Uint8Array;
3335
+ getDataContractId_asB64(): string;
3336
+ setDataContractId(value: Uint8Array | string): void;
3337
+
3338
+ getDocumentTypeName(): string;
3339
+ setDocumentTypeName(value: string): void;
3340
+
3341
+ getDocumentId(): Uint8Array | string;
3342
+ getDocumentId_asU8(): Uint8Array;
3343
+ getDocumentId_asB64(): string;
3344
+ setDocumentId(value: Uint8Array | string): void;
3345
+
3346
+ hasLimit(): boolean;
3347
+ clearLimit(): void;
3348
+ getLimit(): google_protobuf_wrappers_pb.UInt32Value | undefined;
3349
+ setLimit(value?: google_protobuf_wrappers_pb.UInt32Value): void;
3350
+
3351
+ hasOffset(): boolean;
3352
+ clearOffset(): void;
3353
+ getOffset(): google_protobuf_wrappers_pb.UInt32Value | undefined;
3354
+ setOffset(value?: google_protobuf_wrappers_pb.UInt32Value): void;
3355
+
3356
+ getStartAtMs(): string;
3357
+ setStartAtMs(value: string): void;
3358
+
3359
+ getProve(): boolean;
3360
+ setProve(value: boolean): void;
3361
+
3362
+ serializeBinary(): Uint8Array;
3363
+ toObject(includeInstance?: boolean): GetDocumentHistoryRequestV0.AsObject;
3364
+ static toObject(includeInstance: boolean, msg: GetDocumentHistoryRequestV0): GetDocumentHistoryRequestV0.AsObject;
3365
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
3366
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
3367
+ static serializeBinaryToWriter(message: GetDocumentHistoryRequestV0, writer: jspb.BinaryWriter): void;
3368
+ static deserializeBinary(bytes: Uint8Array): GetDocumentHistoryRequestV0;
3369
+ static deserializeBinaryFromReader(message: GetDocumentHistoryRequestV0, reader: jspb.BinaryReader): GetDocumentHistoryRequestV0;
3370
+ }
3371
+
3372
+ export namespace GetDocumentHistoryRequestV0 {
3373
+ export type AsObject = {
3374
+ dataContractId: Uint8Array | string,
3375
+ documentTypeName: string,
3376
+ documentId: Uint8Array | string,
3377
+ limit?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
3378
+ offset?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
3379
+ startAtMs: string,
3380
+ prove: boolean,
3381
+ }
3382
+ }
3383
+
3384
+ export enum VersionCase {
3385
+ VERSION_NOT_SET = 0,
3386
+ V0 = 1,
3387
+ }
3388
+ }
3389
+
3390
+ export class GetDocumentHistoryResponse extends jspb.Message {
3391
+ hasV0(): boolean;
3392
+ clearV0(): void;
3393
+ getV0(): GetDocumentHistoryResponse.GetDocumentHistoryResponseV0 | undefined;
3394
+ setV0(value?: GetDocumentHistoryResponse.GetDocumentHistoryResponseV0): void;
3395
+
3396
+ getVersionCase(): GetDocumentHistoryResponse.VersionCase;
3397
+ serializeBinary(): Uint8Array;
3398
+ toObject(includeInstance?: boolean): GetDocumentHistoryResponse.AsObject;
3399
+ static toObject(includeInstance: boolean, msg: GetDocumentHistoryResponse): GetDocumentHistoryResponse.AsObject;
3400
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
3401
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
3402
+ static serializeBinaryToWriter(message: GetDocumentHistoryResponse, writer: jspb.BinaryWriter): void;
3403
+ static deserializeBinary(bytes: Uint8Array): GetDocumentHistoryResponse;
3404
+ static deserializeBinaryFromReader(message: GetDocumentHistoryResponse, reader: jspb.BinaryReader): GetDocumentHistoryResponse;
3405
+ }
3406
+
3407
+ export namespace GetDocumentHistoryResponse {
3408
+ export type AsObject = {
3409
+ v0?: GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.AsObject,
3410
+ }
3411
+
3412
+ export class GetDocumentHistoryResponseV0 extends jspb.Message {
3413
+ hasDocumentHistory(): boolean;
3414
+ clearDocumentHistory(): void;
3415
+ getDocumentHistory(): GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistory | undefined;
3416
+ setDocumentHistory(value?: GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistory): void;
3417
+
3418
+ hasProof(): boolean;
3419
+ clearProof(): void;
3420
+ getProof(): Proof | undefined;
3421
+ setProof(value?: Proof): void;
3422
+
3423
+ hasMetadata(): boolean;
3424
+ clearMetadata(): void;
3425
+ getMetadata(): ResponseMetadata | undefined;
3426
+ setMetadata(value?: ResponseMetadata): void;
3427
+
3428
+ getResultCase(): GetDocumentHistoryResponseV0.ResultCase;
3429
+ serializeBinary(): Uint8Array;
3430
+ toObject(includeInstance?: boolean): GetDocumentHistoryResponseV0.AsObject;
3431
+ static toObject(includeInstance: boolean, msg: GetDocumentHistoryResponseV0): GetDocumentHistoryResponseV0.AsObject;
3432
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
3433
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
3434
+ static serializeBinaryToWriter(message: GetDocumentHistoryResponseV0, writer: jspb.BinaryWriter): void;
3435
+ static deserializeBinary(bytes: Uint8Array): GetDocumentHistoryResponseV0;
3436
+ static deserializeBinaryFromReader(message: GetDocumentHistoryResponseV0, reader: jspb.BinaryReader): GetDocumentHistoryResponseV0;
3437
+ }
3438
+
3439
+ export namespace GetDocumentHistoryResponseV0 {
3440
+ export type AsObject = {
3441
+ documentHistory?: GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistory.AsObject,
3442
+ proof?: Proof.AsObject,
3443
+ metadata?: ResponseMetadata.AsObject,
3444
+ }
3445
+
3446
+ export class DocumentHistoryEntry extends jspb.Message {
3447
+ getDate(): string;
3448
+ setDate(value: string): void;
3449
+
3450
+ getValue(): Uint8Array | string;
3451
+ getValue_asU8(): Uint8Array;
3452
+ getValue_asB64(): string;
3453
+ setValue(value: Uint8Array | string): void;
3454
+
3455
+ serializeBinary(): Uint8Array;
3456
+ toObject(includeInstance?: boolean): DocumentHistoryEntry.AsObject;
3457
+ static toObject(includeInstance: boolean, msg: DocumentHistoryEntry): DocumentHistoryEntry.AsObject;
3458
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
3459
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
3460
+ static serializeBinaryToWriter(message: DocumentHistoryEntry, writer: jspb.BinaryWriter): void;
3461
+ static deserializeBinary(bytes: Uint8Array): DocumentHistoryEntry;
3462
+ static deserializeBinaryFromReader(message: DocumentHistoryEntry, reader: jspb.BinaryReader): DocumentHistoryEntry;
3463
+ }
3464
+
3465
+ export namespace DocumentHistoryEntry {
3466
+ export type AsObject = {
3467
+ date: string,
3468
+ value: Uint8Array | string,
3469
+ }
3470
+ }
3471
+
3472
+ export class DocumentHistory extends jspb.Message {
3473
+ clearDocumentEntriesList(): void;
3474
+ getDocumentEntriesList(): Array<GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistoryEntry>;
3475
+ setDocumentEntriesList(value: Array<GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistoryEntry>): void;
3476
+ addDocumentEntries(value?: GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistoryEntry, index?: number): GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistoryEntry;
3477
+
3478
+ serializeBinary(): Uint8Array;
3479
+ toObject(includeInstance?: boolean): DocumentHistory.AsObject;
3480
+ static toObject(includeInstance: boolean, msg: DocumentHistory): DocumentHistory.AsObject;
3481
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
3482
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
3483
+ static serializeBinaryToWriter(message: DocumentHistory, writer: jspb.BinaryWriter): void;
3484
+ static deserializeBinary(bytes: Uint8Array): DocumentHistory;
3485
+ static deserializeBinaryFromReader(message: DocumentHistory, reader: jspb.BinaryReader): DocumentHistory;
3486
+ }
3487
+
3488
+ export namespace DocumentHistory {
3489
+ export type AsObject = {
3490
+ documentEntriesList: Array<GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistoryEntry.AsObject>,
3491
+ }
3492
+ }
3493
+
3494
+ export enum ResultCase {
3495
+ RESULT_NOT_SET = 0,
3496
+ DOCUMENT_HISTORY = 1,
3497
+ PROOF = 2,
3498
+ }
3499
+ }
3500
+
3501
+ export enum VersionCase {
3502
+ VERSION_NOT_SET = 0,
3503
+ V0 = 1,
3504
+ }
3505
+ }
3506
+
3310
3507
  export class GetIdentityByPublicKeyHashRequest extends jspb.Message {
3311
3508
  hasV0(): boolean;
3312
3509
  clearV0(): void;
@@ -11937,6 +12134,123 @@ export namespace GetShieldedPoolStateResponse {
11937
12134
  }
11938
12135
  }
11939
12136
 
12137
+ export class GetShieldedNotesCountRequest extends jspb.Message {
12138
+ hasV0(): boolean;
12139
+ clearV0(): void;
12140
+ getV0(): GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0 | undefined;
12141
+ setV0(value?: GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0): void;
12142
+
12143
+ getVersionCase(): GetShieldedNotesCountRequest.VersionCase;
12144
+ serializeBinary(): Uint8Array;
12145
+ toObject(includeInstance?: boolean): GetShieldedNotesCountRequest.AsObject;
12146
+ static toObject(includeInstance: boolean, msg: GetShieldedNotesCountRequest): GetShieldedNotesCountRequest.AsObject;
12147
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
12148
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
12149
+ static serializeBinaryToWriter(message: GetShieldedNotesCountRequest, writer: jspb.BinaryWriter): void;
12150
+ static deserializeBinary(bytes: Uint8Array): GetShieldedNotesCountRequest;
12151
+ static deserializeBinaryFromReader(message: GetShieldedNotesCountRequest, reader: jspb.BinaryReader): GetShieldedNotesCountRequest;
12152
+ }
12153
+
12154
+ export namespace GetShieldedNotesCountRequest {
12155
+ export type AsObject = {
12156
+ v0?: GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0.AsObject,
12157
+ }
12158
+
12159
+ export class GetShieldedNotesCountRequestV0 extends jspb.Message {
12160
+ getProve(): boolean;
12161
+ setProve(value: boolean): void;
12162
+
12163
+ serializeBinary(): Uint8Array;
12164
+ toObject(includeInstance?: boolean): GetShieldedNotesCountRequestV0.AsObject;
12165
+ static toObject(includeInstance: boolean, msg: GetShieldedNotesCountRequestV0): GetShieldedNotesCountRequestV0.AsObject;
12166
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
12167
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
12168
+ static serializeBinaryToWriter(message: GetShieldedNotesCountRequestV0, writer: jspb.BinaryWriter): void;
12169
+ static deserializeBinary(bytes: Uint8Array): GetShieldedNotesCountRequestV0;
12170
+ static deserializeBinaryFromReader(message: GetShieldedNotesCountRequestV0, reader: jspb.BinaryReader): GetShieldedNotesCountRequestV0;
12171
+ }
12172
+
12173
+ export namespace GetShieldedNotesCountRequestV0 {
12174
+ export type AsObject = {
12175
+ prove: boolean,
12176
+ }
12177
+ }
12178
+
12179
+ export enum VersionCase {
12180
+ VERSION_NOT_SET = 0,
12181
+ V0 = 1,
12182
+ }
12183
+ }
12184
+
12185
+ export class GetShieldedNotesCountResponse extends jspb.Message {
12186
+ hasV0(): boolean;
12187
+ clearV0(): void;
12188
+ getV0(): GetShieldedNotesCountResponse.GetShieldedNotesCountResponseV0 | undefined;
12189
+ setV0(value?: GetShieldedNotesCountResponse.GetShieldedNotesCountResponseV0): void;
12190
+
12191
+ getVersionCase(): GetShieldedNotesCountResponse.VersionCase;
12192
+ serializeBinary(): Uint8Array;
12193
+ toObject(includeInstance?: boolean): GetShieldedNotesCountResponse.AsObject;
12194
+ static toObject(includeInstance: boolean, msg: GetShieldedNotesCountResponse): GetShieldedNotesCountResponse.AsObject;
12195
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
12196
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
12197
+ static serializeBinaryToWriter(message: GetShieldedNotesCountResponse, writer: jspb.BinaryWriter): void;
12198
+ static deserializeBinary(bytes: Uint8Array): GetShieldedNotesCountResponse;
12199
+ static deserializeBinaryFromReader(message: GetShieldedNotesCountResponse, reader: jspb.BinaryReader): GetShieldedNotesCountResponse;
12200
+ }
12201
+
12202
+ export namespace GetShieldedNotesCountResponse {
12203
+ export type AsObject = {
12204
+ v0?: GetShieldedNotesCountResponse.GetShieldedNotesCountResponseV0.AsObject,
12205
+ }
12206
+
12207
+ export class GetShieldedNotesCountResponseV0 extends jspb.Message {
12208
+ hasTotalNotesCount(): boolean;
12209
+ clearTotalNotesCount(): void;
12210
+ getTotalNotesCount(): string;
12211
+ setTotalNotesCount(value: string): void;
12212
+
12213
+ hasProof(): boolean;
12214
+ clearProof(): void;
12215
+ getProof(): Proof | undefined;
12216
+ setProof(value?: Proof): void;
12217
+
12218
+ hasMetadata(): boolean;
12219
+ clearMetadata(): void;
12220
+ getMetadata(): ResponseMetadata | undefined;
12221
+ setMetadata(value?: ResponseMetadata): void;
12222
+
12223
+ getResultCase(): GetShieldedNotesCountResponseV0.ResultCase;
12224
+ serializeBinary(): Uint8Array;
12225
+ toObject(includeInstance?: boolean): GetShieldedNotesCountResponseV0.AsObject;
12226
+ static toObject(includeInstance: boolean, msg: GetShieldedNotesCountResponseV0): GetShieldedNotesCountResponseV0.AsObject;
12227
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
12228
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
12229
+ static serializeBinaryToWriter(message: GetShieldedNotesCountResponseV0, writer: jspb.BinaryWriter): void;
12230
+ static deserializeBinary(bytes: Uint8Array): GetShieldedNotesCountResponseV0;
12231
+ static deserializeBinaryFromReader(message: GetShieldedNotesCountResponseV0, reader: jspb.BinaryReader): GetShieldedNotesCountResponseV0;
12232
+ }
12233
+
12234
+ export namespace GetShieldedNotesCountResponseV0 {
12235
+ export type AsObject = {
12236
+ totalNotesCount: string,
12237
+ proof?: Proof.AsObject,
12238
+ metadata?: ResponseMetadata.AsObject,
12239
+ }
12240
+
12241
+ export enum ResultCase {
12242
+ RESULT_NOT_SET = 0,
12243
+ TOTAL_NOTES_COUNT = 1,
12244
+ PROOF = 2,
12245
+ }
12246
+ }
12247
+
12248
+ export enum VersionCase {
12249
+ VERSION_NOT_SET = 0,
12250
+ V0 = 1,
12251
+ }
12252
+ }
12253
+
11940
12254
  export class GetShieldedNullifiersRequest extends jspb.Message {
11941
12255
  hasV0(): boolean;
11942
12256
  clearV0(): void;