@avaprotocol/sdk-js 0.6.3 → 0.6.5
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/.env.example +7 -0
- package/grpc_codegen/avs.proto +297 -0
- package/grpc_codegen/avs.ts +3720 -0
- package/grpc_codegen/avs_grpc_pb.d.ts +211 -0
- package/grpc_codegen/avs_grpc_pb.js +347 -0
- package/{dist/index.d.cts → grpc_codegen/avs_pb.d.ts} +71 -182
- package/grpc_codegen/avs_pb.js +7543 -0
- package/jest.config.cjs +18 -0
- package/package.json +5 -8
- package/scripts/signMessage.js +27 -0
- package/src/__tests__/Client.e2e.test.ts +172 -0
- package/src/auth.js +7 -0
- package/src/auth.ts +3 -0
- package/src/config.js +22 -0
- package/src/config.ts +27 -0
- package/src/index.ts +136 -0
- package/src/rpc-client.ts +7 -0
- package/src/types.js +2 -0
- package/src/types.ts +47 -0
- package/tsconfig.json +19 -0
- package/dist/index.cjs +0 -4545
- package/dist/index.d.ts +0 -1069
- package/dist/index.js +0 -4528
package/dist/index.d.ts
DELETED
|
@@ -1,1069 +0,0 @@
|
|
|
1
|
-
import * as grpc from '@grpc/grpc-js';
|
|
2
|
-
import * as jspb from 'google-protobuf';
|
|
3
|
-
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
|
|
4
|
-
import * as google_protobuf_wrappers_pb from 'google-protobuf/google/protobuf/wrappers_pb';
|
|
5
|
-
|
|
6
|
-
declare const getKeyRequestMessage: (address: string, expiredAt: number) => string;
|
|
7
|
-
|
|
8
|
-
// package: aggregator
|
|
9
|
-
// file: avs.proto
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
declare class UUID extends jspb.Message {
|
|
14
|
-
getBytes(): string;
|
|
15
|
-
setBytes(value: string): UUID;
|
|
16
|
-
|
|
17
|
-
serializeBinary(): Uint8Array;
|
|
18
|
-
toObject(includeInstance?: boolean): UUID.AsObject;
|
|
19
|
-
static toObject(includeInstance: boolean, msg: UUID): UUID.AsObject;
|
|
20
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
21
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
22
|
-
static serializeBinaryToWriter(message: UUID, writer: jspb.BinaryWriter): void;
|
|
23
|
-
static deserializeBinary(bytes: Uint8Array): UUID;
|
|
24
|
-
static deserializeBinaryFromReader(message: UUID, reader: jspb.BinaryReader): UUID;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare namespace UUID {
|
|
28
|
-
export type AsObject = {
|
|
29
|
-
bytes: string,
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
declare class Checkin extends jspb.Message {
|
|
34
|
-
getId(): string;
|
|
35
|
-
setId(value: string): Checkin;
|
|
36
|
-
getAddress(): string;
|
|
37
|
-
setAddress(value: string): Checkin;
|
|
38
|
-
getSignature(): string;
|
|
39
|
-
setSignature(value: string): Checkin;
|
|
40
|
-
|
|
41
|
-
hasStatus(): boolean;
|
|
42
|
-
clearStatus(): void;
|
|
43
|
-
getStatus(): Checkin.Status | undefined;
|
|
44
|
-
setStatus(value?: Checkin.Status): Checkin;
|
|
45
|
-
getVersion(): string;
|
|
46
|
-
setVersion(value: string): Checkin;
|
|
47
|
-
getMetricsport(): number;
|
|
48
|
-
setMetricsport(value: number): Checkin;
|
|
49
|
-
getRemoteip(): string;
|
|
50
|
-
setRemoteip(value: string): Checkin;
|
|
51
|
-
|
|
52
|
-
serializeBinary(): Uint8Array;
|
|
53
|
-
toObject(includeInstance?: boolean): Checkin.AsObject;
|
|
54
|
-
static toObject(includeInstance: boolean, msg: Checkin): Checkin.AsObject;
|
|
55
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
56
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
57
|
-
static serializeBinaryToWriter(message: Checkin, writer: jspb.BinaryWriter): void;
|
|
58
|
-
static deserializeBinary(bytes: Uint8Array): Checkin;
|
|
59
|
-
static deserializeBinaryFromReader(message: Checkin, reader: jspb.BinaryReader): Checkin;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
declare namespace Checkin {
|
|
63
|
-
export type AsObject = {
|
|
64
|
-
id: string,
|
|
65
|
-
address: string,
|
|
66
|
-
signature: string,
|
|
67
|
-
status?: Checkin.Status.AsObject,
|
|
68
|
-
version: string,
|
|
69
|
-
metricsport: number,
|
|
70
|
-
remoteip: string,
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
export class Status extends jspb.Message {
|
|
75
|
-
getUptime(): number;
|
|
76
|
-
setUptime(value: number): Status;
|
|
77
|
-
getQueuedepth(): number;
|
|
78
|
-
setQueuedepth(value: number): Status;
|
|
79
|
-
|
|
80
|
-
hasLastHeartbeat(): boolean;
|
|
81
|
-
clearLastHeartbeat(): void;
|
|
82
|
-
getLastHeartbeat(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
83
|
-
setLastHeartbeat(value?: google_protobuf_timestamp_pb.Timestamp): Status;
|
|
84
|
-
|
|
85
|
-
serializeBinary(): Uint8Array;
|
|
86
|
-
toObject(includeInstance?: boolean): Status.AsObject;
|
|
87
|
-
static toObject(includeInstance: boolean, msg: Status): Status.AsObject;
|
|
88
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
89
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
90
|
-
static serializeBinaryToWriter(message: Status, writer: jspb.BinaryWriter): void;
|
|
91
|
-
static deserializeBinary(bytes: Uint8Array): Status;
|
|
92
|
-
static deserializeBinaryFromReader(message: Status, reader: jspb.BinaryReader): Status;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export namespace Status {
|
|
96
|
-
export type AsObject = {
|
|
97
|
-
uptime: number,
|
|
98
|
-
queuedepth: number,
|
|
99
|
-
lastHeartbeat?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
declare class CheckinResp extends jspb.Message {
|
|
106
|
-
|
|
107
|
-
hasUpdatedAt(): boolean;
|
|
108
|
-
clearUpdatedAt(): void;
|
|
109
|
-
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
110
|
-
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): CheckinResp;
|
|
111
|
-
|
|
112
|
-
serializeBinary(): Uint8Array;
|
|
113
|
-
toObject(includeInstance?: boolean): CheckinResp.AsObject;
|
|
114
|
-
static toObject(includeInstance: boolean, msg: CheckinResp): CheckinResp.AsObject;
|
|
115
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
116
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
117
|
-
static serializeBinaryToWriter(message: CheckinResp, writer: jspb.BinaryWriter): void;
|
|
118
|
-
static deserializeBinary(bytes: Uint8Array): CheckinResp;
|
|
119
|
-
static deserializeBinaryFromReader(message: CheckinResp, reader: jspb.BinaryReader): CheckinResp;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
declare namespace CheckinResp {
|
|
123
|
-
export type AsObject = {
|
|
124
|
-
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
declare class SyncTasksReq extends jspb.Message {
|
|
129
|
-
getId(): string;
|
|
130
|
-
setId(value: string): SyncTasksReq;
|
|
131
|
-
getAddress(): string;
|
|
132
|
-
setAddress(value: string): SyncTasksReq;
|
|
133
|
-
getSignature(): string;
|
|
134
|
-
setSignature(value: string): SyncTasksReq;
|
|
135
|
-
getMonotonicClock(): number;
|
|
136
|
-
setMonotonicClock(value: number): SyncTasksReq;
|
|
137
|
-
|
|
138
|
-
serializeBinary(): Uint8Array;
|
|
139
|
-
toObject(includeInstance?: boolean): SyncTasksReq.AsObject;
|
|
140
|
-
static toObject(includeInstance: boolean, msg: SyncTasksReq): SyncTasksReq.AsObject;
|
|
141
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
142
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
143
|
-
static serializeBinaryToWriter(message: SyncTasksReq, writer: jspb.BinaryWriter): void;
|
|
144
|
-
static deserializeBinary(bytes: Uint8Array): SyncTasksReq;
|
|
145
|
-
static deserializeBinaryFromReader(message: SyncTasksReq, reader: jspb.BinaryReader): SyncTasksReq;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
declare namespace SyncTasksReq {
|
|
149
|
-
export type AsObject = {
|
|
150
|
-
id: string,
|
|
151
|
-
address: string,
|
|
152
|
-
signature: string,
|
|
153
|
-
monotonicClock: number,
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
declare class TaskTrigger extends jspb.Message {
|
|
158
|
-
getTriggerType(): TriggerType;
|
|
159
|
-
setTriggerType(value: TriggerType): TaskTrigger;
|
|
160
|
-
|
|
161
|
-
hasSchedule(): boolean;
|
|
162
|
-
clearSchedule(): void;
|
|
163
|
-
getSchedule(): TimeCondition | undefined;
|
|
164
|
-
setSchedule(value?: TimeCondition): TaskTrigger;
|
|
165
|
-
|
|
166
|
-
hasContractQuery(): boolean;
|
|
167
|
-
clearContractQuery(): void;
|
|
168
|
-
getContractQuery(): ContractQueryCondition | undefined;
|
|
169
|
-
setContractQuery(value?: ContractQueryCondition): TaskTrigger;
|
|
170
|
-
|
|
171
|
-
hasExpression(): boolean;
|
|
172
|
-
clearExpression(): void;
|
|
173
|
-
getExpression(): ExpressionCondition | undefined;
|
|
174
|
-
setExpression(value?: ExpressionCondition): TaskTrigger;
|
|
175
|
-
|
|
176
|
-
serializeBinary(): Uint8Array;
|
|
177
|
-
toObject(includeInstance?: boolean): TaskTrigger.AsObject;
|
|
178
|
-
static toObject(includeInstance: boolean, msg: TaskTrigger): TaskTrigger.AsObject;
|
|
179
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
180
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
181
|
-
static serializeBinaryToWriter(message: TaskTrigger, writer: jspb.BinaryWriter): void;
|
|
182
|
-
static deserializeBinary(bytes: Uint8Array): TaskTrigger;
|
|
183
|
-
static deserializeBinaryFromReader(message: TaskTrigger, reader: jspb.BinaryReader): TaskTrigger;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
declare namespace TaskTrigger {
|
|
187
|
-
export type AsObject = {
|
|
188
|
-
triggerType: TriggerType,
|
|
189
|
-
schedule?: TimeCondition.AsObject,
|
|
190
|
-
contractQuery?: ContractQueryCondition.AsObject,
|
|
191
|
-
expression?: ExpressionCondition.AsObject,
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
declare class TimeCondition extends jspb.Message {
|
|
196
|
-
clearFixedList(): void;
|
|
197
|
-
getFixedList(): Array<number>;
|
|
198
|
-
setFixedList(value: Array<number>): TimeCondition;
|
|
199
|
-
addFixed(value: number, index?: number): number;
|
|
200
|
-
getCron(): string;
|
|
201
|
-
setCron(value: string): TimeCondition;
|
|
202
|
-
|
|
203
|
-
serializeBinary(): Uint8Array;
|
|
204
|
-
toObject(includeInstance?: boolean): TimeCondition.AsObject;
|
|
205
|
-
static toObject(includeInstance: boolean, msg: TimeCondition): TimeCondition.AsObject;
|
|
206
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
207
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
208
|
-
static serializeBinaryToWriter(message: TimeCondition, writer: jspb.BinaryWriter): void;
|
|
209
|
-
static deserializeBinary(bytes: Uint8Array): TimeCondition;
|
|
210
|
-
static deserializeBinaryFromReader(message: TimeCondition, reader: jspb.BinaryReader): TimeCondition;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
declare namespace TimeCondition {
|
|
214
|
-
export type AsObject = {
|
|
215
|
-
fixedList: Array<number>,
|
|
216
|
-
cron: string,
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
declare class ContractQueryCondition extends jspb.Message {
|
|
221
|
-
getContractAddress(): string;
|
|
222
|
-
setContractAddress(value: string): ContractQueryCondition;
|
|
223
|
-
getCallmsg(): string;
|
|
224
|
-
setCallmsg(value: string): ContractQueryCondition;
|
|
225
|
-
|
|
226
|
-
serializeBinary(): Uint8Array;
|
|
227
|
-
toObject(includeInstance?: boolean): ContractQueryCondition.AsObject;
|
|
228
|
-
static toObject(includeInstance: boolean, msg: ContractQueryCondition): ContractQueryCondition.AsObject;
|
|
229
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
230
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
231
|
-
static serializeBinaryToWriter(message: ContractQueryCondition, writer: jspb.BinaryWriter): void;
|
|
232
|
-
static deserializeBinary(bytes: Uint8Array): ContractQueryCondition;
|
|
233
|
-
static deserializeBinaryFromReader(message: ContractQueryCondition, reader: jspb.BinaryReader): ContractQueryCondition;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
declare namespace ContractQueryCondition {
|
|
237
|
-
export type AsObject = {
|
|
238
|
-
contractAddress: string,
|
|
239
|
-
callmsg: string,
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
declare class ExpressionCondition extends jspb.Message {
|
|
244
|
-
getExpression(): string;
|
|
245
|
-
setExpression(value: string): ExpressionCondition;
|
|
246
|
-
|
|
247
|
-
serializeBinary(): Uint8Array;
|
|
248
|
-
toObject(includeInstance?: boolean): ExpressionCondition.AsObject;
|
|
249
|
-
static toObject(includeInstance: boolean, msg: ExpressionCondition): ExpressionCondition.AsObject;
|
|
250
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
251
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
252
|
-
static serializeBinaryToWriter(message: ExpressionCondition, writer: jspb.BinaryWriter): void;
|
|
253
|
-
static deserializeBinary(bytes: Uint8Array): ExpressionCondition;
|
|
254
|
-
static deserializeBinaryFromReader(message: ExpressionCondition, reader: jspb.BinaryReader): ExpressionCondition;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
declare namespace ExpressionCondition {
|
|
258
|
-
export type AsObject = {
|
|
259
|
-
expression: string,
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
declare class SyncTasksResp extends jspb.Message {
|
|
264
|
-
getId(): string;
|
|
265
|
-
setId(value: string): SyncTasksResp;
|
|
266
|
-
getChecktype(): string;
|
|
267
|
-
setChecktype(value: string): SyncTasksResp;
|
|
268
|
-
|
|
269
|
-
hasTrigger(): boolean;
|
|
270
|
-
clearTrigger(): void;
|
|
271
|
-
getTrigger(): TaskTrigger | undefined;
|
|
272
|
-
setTrigger(value?: TaskTrigger): SyncTasksResp;
|
|
273
|
-
|
|
274
|
-
serializeBinary(): Uint8Array;
|
|
275
|
-
toObject(includeInstance?: boolean): SyncTasksResp.AsObject;
|
|
276
|
-
static toObject(includeInstance: boolean, msg: SyncTasksResp): SyncTasksResp.AsObject;
|
|
277
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
278
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
279
|
-
static serializeBinaryToWriter(message: SyncTasksResp, writer: jspb.BinaryWriter): void;
|
|
280
|
-
static deserializeBinary(bytes: Uint8Array): SyncTasksResp;
|
|
281
|
-
static deserializeBinaryFromReader(message: SyncTasksResp, reader: jspb.BinaryReader): SyncTasksResp;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
declare namespace SyncTasksResp {
|
|
285
|
-
export type AsObject = {
|
|
286
|
-
id: string,
|
|
287
|
-
checktype: string,
|
|
288
|
-
trigger?: TaskTrigger.AsObject,
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
declare class ETHTransfer extends jspb.Message {
|
|
293
|
-
getDestination(): string;
|
|
294
|
-
setDestination(value: string): ETHTransfer;
|
|
295
|
-
getAmount(): string;
|
|
296
|
-
setAmount(value: string): ETHTransfer;
|
|
297
|
-
|
|
298
|
-
serializeBinary(): Uint8Array;
|
|
299
|
-
toObject(includeInstance?: boolean): ETHTransfer.AsObject;
|
|
300
|
-
static toObject(includeInstance: boolean, msg: ETHTransfer): ETHTransfer.AsObject;
|
|
301
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
302
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
303
|
-
static serializeBinaryToWriter(message: ETHTransfer, writer: jspb.BinaryWriter): void;
|
|
304
|
-
static deserializeBinary(bytes: Uint8Array): ETHTransfer;
|
|
305
|
-
static deserializeBinaryFromReader(message: ETHTransfer, reader: jspb.BinaryReader): ETHTransfer;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
declare namespace ETHTransfer {
|
|
309
|
-
export type AsObject = {
|
|
310
|
-
destination: string,
|
|
311
|
-
amount: string,
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
declare class ContractExecution extends jspb.Message {
|
|
316
|
-
getContractAddress(): string;
|
|
317
|
-
setContractAddress(value: string): ContractExecution;
|
|
318
|
-
getCallData(): string;
|
|
319
|
-
setCallData(value: string): ContractExecution;
|
|
320
|
-
getMethod(): string;
|
|
321
|
-
setMethod(value: string): ContractExecution;
|
|
322
|
-
getEncodedParams(): string;
|
|
323
|
-
setEncodedParams(value: string): ContractExecution;
|
|
324
|
-
|
|
325
|
-
serializeBinary(): Uint8Array;
|
|
326
|
-
toObject(includeInstance?: boolean): ContractExecution.AsObject;
|
|
327
|
-
static toObject(includeInstance: boolean, msg: ContractExecution): ContractExecution.AsObject;
|
|
328
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
329
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
330
|
-
static serializeBinaryToWriter(message: ContractExecution, writer: jspb.BinaryWriter): void;
|
|
331
|
-
static deserializeBinary(bytes: Uint8Array): ContractExecution;
|
|
332
|
-
static deserializeBinaryFromReader(message: ContractExecution, reader: jspb.BinaryReader): ContractExecution;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
declare namespace ContractExecution {
|
|
336
|
-
export type AsObject = {
|
|
337
|
-
contractAddress: string,
|
|
338
|
-
callData: string,
|
|
339
|
-
method: string,
|
|
340
|
-
encodedParams: string,
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
declare class GraphQLDataQuery extends jspb.Message {
|
|
345
|
-
getUrl(): string;
|
|
346
|
-
setUrl(value: string): GraphQLDataQuery;
|
|
347
|
-
getQuery(): string;
|
|
348
|
-
setQuery(value: string): GraphQLDataQuery;
|
|
349
|
-
|
|
350
|
-
serializeBinary(): Uint8Array;
|
|
351
|
-
toObject(includeInstance?: boolean): GraphQLDataQuery.AsObject;
|
|
352
|
-
static toObject(includeInstance: boolean, msg: GraphQLDataQuery): GraphQLDataQuery.AsObject;
|
|
353
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
354
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
355
|
-
static serializeBinaryToWriter(message: GraphQLDataQuery, writer: jspb.BinaryWriter): void;
|
|
356
|
-
static deserializeBinary(bytes: Uint8Array): GraphQLDataQuery;
|
|
357
|
-
static deserializeBinaryFromReader(message: GraphQLDataQuery, reader: jspb.BinaryReader): GraphQLDataQuery;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
declare namespace GraphQLDataQuery {
|
|
361
|
-
export type AsObject = {
|
|
362
|
-
url: string,
|
|
363
|
-
query: string,
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
declare class HTTPAPICall extends jspb.Message {
|
|
368
|
-
getUrl(): string;
|
|
369
|
-
setUrl(value: string): HTTPAPICall;
|
|
370
|
-
|
|
371
|
-
getHeadersMap(): jspb.Map<string, string>;
|
|
372
|
-
clearHeadersMap(): void;
|
|
373
|
-
getBody(): string;
|
|
374
|
-
setBody(value: string): HTTPAPICall;
|
|
375
|
-
|
|
376
|
-
serializeBinary(): Uint8Array;
|
|
377
|
-
toObject(includeInstance?: boolean): HTTPAPICall.AsObject;
|
|
378
|
-
static toObject(includeInstance: boolean, msg: HTTPAPICall): HTTPAPICall.AsObject;
|
|
379
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
380
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
381
|
-
static serializeBinaryToWriter(message: HTTPAPICall, writer: jspb.BinaryWriter): void;
|
|
382
|
-
static deserializeBinary(bytes: Uint8Array): HTTPAPICall;
|
|
383
|
-
static deserializeBinaryFromReader(message: HTTPAPICall, reader: jspb.BinaryReader): HTTPAPICall;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
declare namespace HTTPAPICall {
|
|
387
|
-
export type AsObject = {
|
|
388
|
-
url: string,
|
|
389
|
-
|
|
390
|
-
headersMap: Array<[string, string]>,
|
|
391
|
-
body: string,
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
declare class CustomCode extends jspb.Message {
|
|
396
|
-
getType(): CustomCodeType;
|
|
397
|
-
setType(value: CustomCodeType): CustomCode;
|
|
398
|
-
getBody(): string;
|
|
399
|
-
setBody(value: string): CustomCode;
|
|
400
|
-
|
|
401
|
-
serializeBinary(): Uint8Array;
|
|
402
|
-
toObject(includeInstance?: boolean): CustomCode.AsObject;
|
|
403
|
-
static toObject(includeInstance: boolean, msg: CustomCode): CustomCode.AsObject;
|
|
404
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
405
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
406
|
-
static serializeBinaryToWriter(message: CustomCode, writer: jspb.BinaryWriter): void;
|
|
407
|
-
static deserializeBinary(bytes: Uint8Array): CustomCode;
|
|
408
|
-
static deserializeBinaryFromReader(message: CustomCode, reader: jspb.BinaryReader): CustomCode;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
declare namespace CustomCode {
|
|
412
|
-
export type AsObject = {
|
|
413
|
-
type: CustomCodeType,
|
|
414
|
-
body: string,
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
declare class ConditionJump extends jspb.Message {
|
|
419
|
-
getExpression(): string;
|
|
420
|
-
setExpression(value: string): ConditionJump;
|
|
421
|
-
getNext(): string;
|
|
422
|
-
setNext(value: string): ConditionJump;
|
|
423
|
-
|
|
424
|
-
serializeBinary(): Uint8Array;
|
|
425
|
-
toObject(includeInstance?: boolean): ConditionJump.AsObject;
|
|
426
|
-
static toObject(includeInstance: boolean, msg: ConditionJump): ConditionJump.AsObject;
|
|
427
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
428
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
429
|
-
static serializeBinaryToWriter(message: ConditionJump, writer: jspb.BinaryWriter): void;
|
|
430
|
-
static deserializeBinary(bytes: Uint8Array): ConditionJump;
|
|
431
|
-
static deserializeBinaryFromReader(message: ConditionJump, reader: jspb.BinaryReader): ConditionJump;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
declare namespace ConditionJump {
|
|
435
|
-
export type AsObject = {
|
|
436
|
-
expression: string,
|
|
437
|
-
next: string,
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
declare class BranchAction extends jspb.Message {
|
|
442
|
-
|
|
443
|
-
hasIf(): boolean;
|
|
444
|
-
clearIf(): void;
|
|
445
|
-
getIf(): ConditionJump | undefined;
|
|
446
|
-
setIf(value?: ConditionJump): BranchAction;
|
|
447
|
-
clearElseifsList(): void;
|
|
448
|
-
getElseifsList(): Array<ConditionJump>;
|
|
449
|
-
setElseifsList(value: Array<ConditionJump>): BranchAction;
|
|
450
|
-
addElseifs(value?: ConditionJump, index?: number): ConditionJump;
|
|
451
|
-
|
|
452
|
-
hasElse(): boolean;
|
|
453
|
-
clearElse(): void;
|
|
454
|
-
getElse(): ConditionJump | undefined;
|
|
455
|
-
setElse(value?: ConditionJump): BranchAction;
|
|
456
|
-
|
|
457
|
-
serializeBinary(): Uint8Array;
|
|
458
|
-
toObject(includeInstance?: boolean): BranchAction.AsObject;
|
|
459
|
-
static toObject(includeInstance: boolean, msg: BranchAction): BranchAction.AsObject;
|
|
460
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
461
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
462
|
-
static serializeBinaryToWriter(message: BranchAction, writer: jspb.BinaryWriter): void;
|
|
463
|
-
static deserializeBinary(bytes: Uint8Array): BranchAction;
|
|
464
|
-
static deserializeBinaryFromReader(message: BranchAction, reader: jspb.BinaryReader): BranchAction;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
declare namespace BranchAction {
|
|
468
|
-
export type AsObject = {
|
|
469
|
-
pb_if?: ConditionJump.AsObject,
|
|
470
|
-
elseifsList: Array<ConditionJump.AsObject>,
|
|
471
|
-
pb_else?: ConditionJump.AsObject,
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
declare class TaskAction extends jspb.Message {
|
|
476
|
-
getTaskType(): TaskType;
|
|
477
|
-
setTaskType(value: TaskType): TaskAction;
|
|
478
|
-
getId(): string;
|
|
479
|
-
setId(value: string): TaskAction;
|
|
480
|
-
getName(): string;
|
|
481
|
-
setName(value: string): TaskAction;
|
|
482
|
-
clearNextList(): void;
|
|
483
|
-
getNextList(): Array<string>;
|
|
484
|
-
setNextList(value: Array<string>): TaskAction;
|
|
485
|
-
addNext(value: string, index?: number): string;
|
|
486
|
-
|
|
487
|
-
hasEthTransfer(): boolean;
|
|
488
|
-
clearEthTransfer(): void;
|
|
489
|
-
getEthTransfer(): ETHTransfer | undefined;
|
|
490
|
-
setEthTransfer(value?: ETHTransfer): TaskAction;
|
|
491
|
-
|
|
492
|
-
hasContractExecution(): boolean;
|
|
493
|
-
clearContractExecution(): void;
|
|
494
|
-
getContractExecution(): ContractExecution | undefined;
|
|
495
|
-
setContractExecution(value?: ContractExecution): TaskAction;
|
|
496
|
-
|
|
497
|
-
hasGraphqlDataQuery(): boolean;
|
|
498
|
-
clearGraphqlDataQuery(): void;
|
|
499
|
-
getGraphqlDataQuery(): GraphQLDataQuery | undefined;
|
|
500
|
-
setGraphqlDataQuery(value?: GraphQLDataQuery): TaskAction;
|
|
501
|
-
|
|
502
|
-
hasHttpDataQuery(): boolean;
|
|
503
|
-
clearHttpDataQuery(): void;
|
|
504
|
-
getHttpDataQuery(): HTTPAPICall | undefined;
|
|
505
|
-
setHttpDataQuery(value?: HTTPAPICall): TaskAction;
|
|
506
|
-
|
|
507
|
-
hasCustomCode(): boolean;
|
|
508
|
-
clearCustomCode(): void;
|
|
509
|
-
getCustomCode(): CustomCode | undefined;
|
|
510
|
-
setCustomCode(value?: CustomCode): TaskAction;
|
|
511
|
-
|
|
512
|
-
hasBranch(): boolean;
|
|
513
|
-
clearBranch(): void;
|
|
514
|
-
getBranch(): BranchAction | undefined;
|
|
515
|
-
setBranch(value?: BranchAction): TaskAction;
|
|
516
|
-
|
|
517
|
-
serializeBinary(): Uint8Array;
|
|
518
|
-
toObject(includeInstance?: boolean): TaskAction.AsObject;
|
|
519
|
-
static toObject(includeInstance: boolean, msg: TaskAction): TaskAction.AsObject;
|
|
520
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
521
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
522
|
-
static serializeBinaryToWriter(message: TaskAction, writer: jspb.BinaryWriter): void;
|
|
523
|
-
static deserializeBinary(bytes: Uint8Array): TaskAction;
|
|
524
|
-
static deserializeBinaryFromReader(message: TaskAction, reader: jspb.BinaryReader): TaskAction;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
declare namespace TaskAction {
|
|
528
|
-
export type AsObject = {
|
|
529
|
-
taskType: TaskType,
|
|
530
|
-
id: string,
|
|
531
|
-
name: string,
|
|
532
|
-
nextList: Array<string>,
|
|
533
|
-
ethTransfer?: ETHTransfer.AsObject,
|
|
534
|
-
contractExecution?: ContractExecution.AsObject,
|
|
535
|
-
graphqlDataQuery?: GraphQLDataQuery.AsObject,
|
|
536
|
-
httpDataQuery?: HTTPAPICall.AsObject,
|
|
537
|
-
customCode?: CustomCode.AsObject,
|
|
538
|
-
branch?: BranchAction.AsObject,
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
declare class Execution extends jspb.Message {
|
|
543
|
-
getEpoch(): number;
|
|
544
|
-
setEpoch(value: number): Execution;
|
|
545
|
-
getUserOpHash(): string;
|
|
546
|
-
setUserOpHash(value: string): Execution;
|
|
547
|
-
getError(): string;
|
|
548
|
-
setError(value: string): Execution;
|
|
549
|
-
|
|
550
|
-
serializeBinary(): Uint8Array;
|
|
551
|
-
toObject(includeInstance?: boolean): Execution.AsObject;
|
|
552
|
-
static toObject(includeInstance: boolean, msg: Execution): Execution.AsObject;
|
|
553
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
554
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
555
|
-
static serializeBinaryToWriter(message: Execution, writer: jspb.BinaryWriter): void;
|
|
556
|
-
static deserializeBinary(bytes: Uint8Array): Execution;
|
|
557
|
-
static deserializeBinaryFromReader(message: Execution, reader: jspb.BinaryReader): Execution;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
declare namespace Execution {
|
|
561
|
-
export type AsObject = {
|
|
562
|
-
epoch: number,
|
|
563
|
-
userOpHash: string,
|
|
564
|
-
error: string,
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
declare class Task extends jspb.Message {
|
|
569
|
-
|
|
570
|
-
hasId(): boolean;
|
|
571
|
-
clearId(): void;
|
|
572
|
-
getId(): UUID | undefined;
|
|
573
|
-
setId(value?: UUID): Task;
|
|
574
|
-
getOwner(): string;
|
|
575
|
-
setOwner(value: string): Task;
|
|
576
|
-
getSmartAccountAddress(): string;
|
|
577
|
-
setSmartAccountAddress(value: string): Task;
|
|
578
|
-
|
|
579
|
-
hasTrigger(): boolean;
|
|
580
|
-
clearTrigger(): void;
|
|
581
|
-
getTrigger(): TaskTrigger | undefined;
|
|
582
|
-
setTrigger(value?: TaskTrigger): Task;
|
|
583
|
-
clearNodesList(): void;
|
|
584
|
-
getNodesList(): Array<TaskAction>;
|
|
585
|
-
setNodesList(value: Array<TaskAction>): Task;
|
|
586
|
-
addNodes(value?: TaskAction, index?: number): TaskAction;
|
|
587
|
-
getStartAt(): number;
|
|
588
|
-
setStartAt(value: number): Task;
|
|
589
|
-
getExpiredAt(): number;
|
|
590
|
-
setExpiredAt(value: number): Task;
|
|
591
|
-
getMemo(): string;
|
|
592
|
-
setMemo(value: string): Task;
|
|
593
|
-
getCompletedAt(): number;
|
|
594
|
-
setCompletedAt(value: number): Task;
|
|
595
|
-
getStatus(): TaskStatus;
|
|
596
|
-
setStatus(value: TaskStatus): Task;
|
|
597
|
-
getRepeatable(): boolean;
|
|
598
|
-
setRepeatable(value: boolean): Task;
|
|
599
|
-
clearExecutionsList(): void;
|
|
600
|
-
getExecutionsList(): Array<Execution>;
|
|
601
|
-
setExecutionsList(value: Array<Execution>): Task;
|
|
602
|
-
addExecutions(value?: Execution, index?: number): Execution;
|
|
603
|
-
|
|
604
|
-
serializeBinary(): Uint8Array;
|
|
605
|
-
toObject(includeInstance?: boolean): Task.AsObject;
|
|
606
|
-
static toObject(includeInstance: boolean, msg: Task): Task.AsObject;
|
|
607
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
608
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
609
|
-
static serializeBinaryToWriter(message: Task, writer: jspb.BinaryWriter): void;
|
|
610
|
-
static deserializeBinary(bytes: Uint8Array): Task;
|
|
611
|
-
static deserializeBinaryFromReader(message: Task, reader: jspb.BinaryReader): Task;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
declare namespace Task {
|
|
615
|
-
export type AsObject = {
|
|
616
|
-
id?: UUID.AsObject,
|
|
617
|
-
owner: string,
|
|
618
|
-
smartAccountAddress: string,
|
|
619
|
-
trigger?: TaskTrigger.AsObject,
|
|
620
|
-
nodesList: Array<TaskAction.AsObject>,
|
|
621
|
-
startAt: number,
|
|
622
|
-
expiredAt: number,
|
|
623
|
-
memo: string,
|
|
624
|
-
completedAt: number,
|
|
625
|
-
status: TaskStatus,
|
|
626
|
-
repeatable: boolean,
|
|
627
|
-
executionsList: Array<Execution.AsObject>,
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
declare class CreateTaskReq extends jspb.Message {
|
|
632
|
-
|
|
633
|
-
hasTrigger(): boolean;
|
|
634
|
-
clearTrigger(): void;
|
|
635
|
-
getTrigger(): TaskTrigger | undefined;
|
|
636
|
-
setTrigger(value?: TaskTrigger): CreateTaskReq;
|
|
637
|
-
clearActionsList(): void;
|
|
638
|
-
getActionsList(): Array<TaskAction>;
|
|
639
|
-
setActionsList(value: Array<TaskAction>): CreateTaskReq;
|
|
640
|
-
addActions(value?: TaskAction, index?: number): TaskAction;
|
|
641
|
-
getStartAt(): number;
|
|
642
|
-
setStartAt(value: number): CreateTaskReq;
|
|
643
|
-
getExpiredAt(): number;
|
|
644
|
-
setExpiredAt(value: number): CreateTaskReq;
|
|
645
|
-
getMemo(): string;
|
|
646
|
-
setMemo(value: string): CreateTaskReq;
|
|
647
|
-
getRepeatable(): boolean;
|
|
648
|
-
setRepeatable(value: boolean): CreateTaskReq;
|
|
649
|
-
|
|
650
|
-
serializeBinary(): Uint8Array;
|
|
651
|
-
toObject(includeInstance?: boolean): CreateTaskReq.AsObject;
|
|
652
|
-
static toObject(includeInstance: boolean, msg: CreateTaskReq): CreateTaskReq.AsObject;
|
|
653
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
654
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
655
|
-
static serializeBinaryToWriter(message: CreateTaskReq, writer: jspb.BinaryWriter): void;
|
|
656
|
-
static deserializeBinary(bytes: Uint8Array): CreateTaskReq;
|
|
657
|
-
static deserializeBinaryFromReader(message: CreateTaskReq, reader: jspb.BinaryReader): CreateTaskReq;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
declare namespace CreateTaskReq {
|
|
661
|
-
export type AsObject = {
|
|
662
|
-
trigger?: TaskTrigger.AsObject,
|
|
663
|
-
actionsList: Array<TaskAction.AsObject>,
|
|
664
|
-
startAt: number,
|
|
665
|
-
expiredAt: number,
|
|
666
|
-
memo: string,
|
|
667
|
-
repeatable: boolean,
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
declare class CreateTaskResp extends jspb.Message {
|
|
672
|
-
getId(): string;
|
|
673
|
-
setId(value: string): CreateTaskResp;
|
|
674
|
-
|
|
675
|
-
serializeBinary(): Uint8Array;
|
|
676
|
-
toObject(includeInstance?: boolean): CreateTaskResp.AsObject;
|
|
677
|
-
static toObject(includeInstance: boolean, msg: CreateTaskResp): CreateTaskResp.AsObject;
|
|
678
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
679
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
680
|
-
static serializeBinaryToWriter(message: CreateTaskResp, writer: jspb.BinaryWriter): void;
|
|
681
|
-
static deserializeBinary(bytes: Uint8Array): CreateTaskResp;
|
|
682
|
-
static deserializeBinaryFromReader(message: CreateTaskResp, reader: jspb.BinaryReader): CreateTaskResp;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
declare namespace CreateTaskResp {
|
|
686
|
-
export type AsObject = {
|
|
687
|
-
id: string,
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
declare class NonceRequest extends jspb.Message {
|
|
692
|
-
getOwner(): string;
|
|
693
|
-
setOwner(value: string): NonceRequest;
|
|
694
|
-
|
|
695
|
-
serializeBinary(): Uint8Array;
|
|
696
|
-
toObject(includeInstance?: boolean): NonceRequest.AsObject;
|
|
697
|
-
static toObject(includeInstance: boolean, msg: NonceRequest): NonceRequest.AsObject;
|
|
698
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
699
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
700
|
-
static serializeBinaryToWriter(message: NonceRequest, writer: jspb.BinaryWriter): void;
|
|
701
|
-
static deserializeBinary(bytes: Uint8Array): NonceRequest;
|
|
702
|
-
static deserializeBinaryFromReader(message: NonceRequest, reader: jspb.BinaryReader): NonceRequest;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
declare namespace NonceRequest {
|
|
706
|
-
export type AsObject = {
|
|
707
|
-
owner: string,
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
declare class NonceResp extends jspb.Message {
|
|
712
|
-
getNonce(): string;
|
|
713
|
-
setNonce(value: string): NonceResp;
|
|
714
|
-
|
|
715
|
-
serializeBinary(): Uint8Array;
|
|
716
|
-
toObject(includeInstance?: boolean): NonceResp.AsObject;
|
|
717
|
-
static toObject(includeInstance: boolean, msg: NonceResp): NonceResp.AsObject;
|
|
718
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
719
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
720
|
-
static serializeBinaryToWriter(message: NonceResp, writer: jspb.BinaryWriter): void;
|
|
721
|
-
static deserializeBinary(bytes: Uint8Array): NonceResp;
|
|
722
|
-
static deserializeBinaryFromReader(message: NonceResp, reader: jspb.BinaryReader): NonceResp;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
declare namespace NonceResp {
|
|
726
|
-
export type AsObject = {
|
|
727
|
-
nonce: string,
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
declare class AddressRequest extends jspb.Message {
|
|
732
|
-
getOwner(): string;
|
|
733
|
-
setOwner(value: string): AddressRequest;
|
|
734
|
-
|
|
735
|
-
serializeBinary(): Uint8Array;
|
|
736
|
-
toObject(includeInstance?: boolean): AddressRequest.AsObject;
|
|
737
|
-
static toObject(includeInstance: boolean, msg: AddressRequest): AddressRequest.AsObject;
|
|
738
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
739
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
740
|
-
static serializeBinaryToWriter(message: AddressRequest, writer: jspb.BinaryWriter): void;
|
|
741
|
-
static deserializeBinary(bytes: Uint8Array): AddressRequest;
|
|
742
|
-
static deserializeBinaryFromReader(message: AddressRequest, reader: jspb.BinaryReader): AddressRequest;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
declare namespace AddressRequest {
|
|
746
|
-
export type AsObject = {
|
|
747
|
-
owner: string,
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
declare class AddressResp extends jspb.Message {
|
|
752
|
-
getSmartAccountAddress(): string;
|
|
753
|
-
setSmartAccountAddress(value: string): AddressResp;
|
|
754
|
-
getNonce(): string;
|
|
755
|
-
setNonce(value: string): AddressResp;
|
|
756
|
-
|
|
757
|
-
serializeBinary(): Uint8Array;
|
|
758
|
-
toObject(includeInstance?: boolean): AddressResp.AsObject;
|
|
759
|
-
static toObject(includeInstance: boolean, msg: AddressResp): AddressResp.AsObject;
|
|
760
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
761
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
762
|
-
static serializeBinaryToWriter(message: AddressResp, writer: jspb.BinaryWriter): void;
|
|
763
|
-
static deserializeBinary(bytes: Uint8Array): AddressResp;
|
|
764
|
-
static deserializeBinaryFromReader(message: AddressResp, reader: jspb.BinaryReader): AddressResp;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
declare namespace AddressResp {
|
|
768
|
-
export type AsObject = {
|
|
769
|
-
smartAccountAddress: string,
|
|
770
|
-
nonce: string,
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
declare class ListTasksReq extends jspb.Message {
|
|
775
|
-
|
|
776
|
-
serializeBinary(): Uint8Array;
|
|
777
|
-
toObject(includeInstance?: boolean): ListTasksReq.AsObject;
|
|
778
|
-
static toObject(includeInstance: boolean, msg: ListTasksReq): ListTasksReq.AsObject;
|
|
779
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
780
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
781
|
-
static serializeBinaryToWriter(message: ListTasksReq, writer: jspb.BinaryWriter): void;
|
|
782
|
-
static deserializeBinary(bytes: Uint8Array): ListTasksReq;
|
|
783
|
-
static deserializeBinaryFromReader(message: ListTasksReq, reader: jspb.BinaryReader): ListTasksReq;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
declare namespace ListTasksReq {
|
|
787
|
-
export type AsObject = {
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
declare class ListTasksResp extends jspb.Message {
|
|
792
|
-
clearTasksList(): void;
|
|
793
|
-
getTasksList(): Array<ListTasksResp.TaskItemResp>;
|
|
794
|
-
setTasksList(value: Array<ListTasksResp.TaskItemResp>): ListTasksResp;
|
|
795
|
-
addTasks(value?: ListTasksResp.TaskItemResp, index?: number): ListTasksResp.TaskItemResp;
|
|
796
|
-
|
|
797
|
-
serializeBinary(): Uint8Array;
|
|
798
|
-
toObject(includeInstance?: boolean): ListTasksResp.AsObject;
|
|
799
|
-
static toObject(includeInstance: boolean, msg: ListTasksResp): ListTasksResp.AsObject;
|
|
800
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
801
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
802
|
-
static serializeBinaryToWriter(message: ListTasksResp, writer: jspb.BinaryWriter): void;
|
|
803
|
-
static deserializeBinary(bytes: Uint8Array): ListTasksResp;
|
|
804
|
-
static deserializeBinaryFromReader(message: ListTasksResp, reader: jspb.BinaryReader): ListTasksResp;
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
declare namespace ListTasksResp {
|
|
808
|
-
export type AsObject = {
|
|
809
|
-
tasksList: Array<ListTasksResp.TaskItemResp.AsObject>,
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
export class TaskItemResp extends jspb.Message {
|
|
814
|
-
getId(): string;
|
|
815
|
-
setId(value: string): TaskItemResp;
|
|
816
|
-
getStatus(): TaskStatus;
|
|
817
|
-
setStatus(value: TaskStatus): TaskItemResp;
|
|
818
|
-
|
|
819
|
-
serializeBinary(): Uint8Array;
|
|
820
|
-
toObject(includeInstance?: boolean): TaskItemResp.AsObject;
|
|
821
|
-
static toObject(includeInstance: boolean, msg: TaskItemResp): TaskItemResp.AsObject;
|
|
822
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
823
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
824
|
-
static serializeBinaryToWriter(message: TaskItemResp, writer: jspb.BinaryWriter): void;
|
|
825
|
-
static deserializeBinary(bytes: Uint8Array): TaskItemResp;
|
|
826
|
-
static deserializeBinaryFromReader(message: TaskItemResp, reader: jspb.BinaryReader): TaskItemResp;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
export namespace TaskItemResp {
|
|
830
|
-
export type AsObject = {
|
|
831
|
-
id: string,
|
|
832
|
-
status: TaskStatus,
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
declare class GetKeyReq extends jspb.Message {
|
|
839
|
-
getOwner(): string;
|
|
840
|
-
setOwner(value: string): GetKeyReq;
|
|
841
|
-
getExpiredAt(): number;
|
|
842
|
-
setExpiredAt(value: number): GetKeyReq;
|
|
843
|
-
getSignature(): string;
|
|
844
|
-
setSignature(value: string): GetKeyReq;
|
|
845
|
-
|
|
846
|
-
serializeBinary(): Uint8Array;
|
|
847
|
-
toObject(includeInstance?: boolean): GetKeyReq.AsObject;
|
|
848
|
-
static toObject(includeInstance: boolean, msg: GetKeyReq): GetKeyReq.AsObject;
|
|
849
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
850
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
851
|
-
static serializeBinaryToWriter(message: GetKeyReq, writer: jspb.BinaryWriter): void;
|
|
852
|
-
static deserializeBinary(bytes: Uint8Array): GetKeyReq;
|
|
853
|
-
static deserializeBinaryFromReader(message: GetKeyReq, reader: jspb.BinaryReader): GetKeyReq;
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
declare namespace GetKeyReq {
|
|
857
|
-
export type AsObject = {
|
|
858
|
-
owner: string,
|
|
859
|
-
expiredAt: number,
|
|
860
|
-
signature: string,
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
declare class KeyResp extends jspb.Message {
|
|
865
|
-
getKey(): string;
|
|
866
|
-
setKey(value: string): KeyResp;
|
|
867
|
-
|
|
868
|
-
serializeBinary(): Uint8Array;
|
|
869
|
-
toObject(includeInstance?: boolean): KeyResp.AsObject;
|
|
870
|
-
static toObject(includeInstance: boolean, msg: KeyResp): KeyResp.AsObject;
|
|
871
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
872
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
873
|
-
static serializeBinaryToWriter(message: KeyResp, writer: jspb.BinaryWriter): void;
|
|
874
|
-
static deserializeBinary(bytes: Uint8Array): KeyResp;
|
|
875
|
-
static deserializeBinaryFromReader(message: KeyResp, reader: jspb.BinaryReader): KeyResp;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
declare namespace KeyResp {
|
|
879
|
-
export type AsObject = {
|
|
880
|
-
key: string,
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
declare class UpdateChecksReq extends jspb.Message {
|
|
885
|
-
getAddress(): string;
|
|
886
|
-
setAddress(value: string): UpdateChecksReq;
|
|
887
|
-
getSignature(): string;
|
|
888
|
-
setSignature(value: string): UpdateChecksReq;
|
|
889
|
-
clearIdList(): void;
|
|
890
|
-
getIdList(): Array<string>;
|
|
891
|
-
setIdList(value: Array<string>): UpdateChecksReq;
|
|
892
|
-
addId(value: string, index?: number): string;
|
|
893
|
-
|
|
894
|
-
serializeBinary(): Uint8Array;
|
|
895
|
-
toObject(includeInstance?: boolean): UpdateChecksReq.AsObject;
|
|
896
|
-
static toObject(includeInstance: boolean, msg: UpdateChecksReq): UpdateChecksReq.AsObject;
|
|
897
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
898
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
899
|
-
static serializeBinaryToWriter(message: UpdateChecksReq, writer: jspb.BinaryWriter): void;
|
|
900
|
-
static deserializeBinary(bytes: Uint8Array): UpdateChecksReq;
|
|
901
|
-
static deserializeBinaryFromReader(message: UpdateChecksReq, reader: jspb.BinaryReader): UpdateChecksReq;
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
declare namespace UpdateChecksReq {
|
|
905
|
-
export type AsObject = {
|
|
906
|
-
address: string,
|
|
907
|
-
signature: string,
|
|
908
|
-
idList: Array<string>,
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
declare class UpdateChecksResp extends jspb.Message {
|
|
913
|
-
|
|
914
|
-
hasUpdatedAt(): boolean;
|
|
915
|
-
clearUpdatedAt(): void;
|
|
916
|
-
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
917
|
-
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UpdateChecksResp;
|
|
918
|
-
|
|
919
|
-
serializeBinary(): Uint8Array;
|
|
920
|
-
toObject(includeInstance?: boolean): UpdateChecksResp.AsObject;
|
|
921
|
-
static toObject(includeInstance: boolean, msg: UpdateChecksResp): UpdateChecksResp.AsObject;
|
|
922
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
923
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
924
|
-
static serializeBinaryToWriter(message: UpdateChecksResp, writer: jspb.BinaryWriter): void;
|
|
925
|
-
static deserializeBinary(bytes: Uint8Array): UpdateChecksResp;
|
|
926
|
-
static deserializeBinaryFromReader(message: UpdateChecksResp, reader: jspb.BinaryReader): UpdateChecksResp;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
declare namespace UpdateChecksResp {
|
|
930
|
-
export type AsObject = {
|
|
931
|
-
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
declare enum TriggerType {
|
|
936
|
-
TIMETRIGGER = 0,
|
|
937
|
-
CONTRACTQUERYTRIGGER = 1,
|
|
938
|
-
EXPRESSIONTRIGGER = 2,
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
declare enum TaskType {
|
|
942
|
-
ETHTRANSFERTASK = 0,
|
|
943
|
-
CONTRACTEXECUTIONTASK = 1,
|
|
944
|
-
GRAPHQLDATAQUERYTASK = 2,
|
|
945
|
-
HTTPAPICALLTASK = 3,
|
|
946
|
-
CUSTOMCODETASK = 4,
|
|
947
|
-
BRANCHACTIONTASK = 5,
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
declare enum TaskStatus {
|
|
951
|
-
ACTIVE = 0,
|
|
952
|
-
COMPLETED = 1,
|
|
953
|
-
FAILED = 2,
|
|
954
|
-
CANCELED = 3,
|
|
955
|
-
EXECUTING = 4,
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
declare enum CustomCodeType {
|
|
959
|
-
JAVASCRIPT = 0,
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
// package: aggregator
|
|
963
|
-
// file: avs.proto
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
interface IAggregatorClient {
|
|
968
|
-
getKey(request: GetKeyReq, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
|
|
969
|
-
getKey(request: GetKeyReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
|
|
970
|
-
getKey(request: GetKeyReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
|
|
971
|
-
getNonce(request: NonceRequest, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
|
|
972
|
-
getNonce(request: NonceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
|
|
973
|
-
getNonce(request: NonceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
|
|
974
|
-
getSmartAccountAddress(request: AddressRequest, callback: (error: grpc.ServiceError | null, response: AddressResp) => void): grpc.ClientUnaryCall;
|
|
975
|
-
getSmartAccountAddress(request: AddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: AddressResp) => void): grpc.ClientUnaryCall;
|
|
976
|
-
getSmartAccountAddress(request: AddressRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: AddressResp) => void): grpc.ClientUnaryCall;
|
|
977
|
-
createTask(request: CreateTaskReq, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
|
|
978
|
-
createTask(request: CreateTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
|
|
979
|
-
createTask(request: CreateTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
|
|
980
|
-
listTasks(request: ListTasksReq, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
|
|
981
|
-
listTasks(request: ListTasksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
|
|
982
|
-
listTasks(request: ListTasksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
|
|
983
|
-
getTask(request: UUID, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
|
|
984
|
-
getTask(request: UUID, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
|
|
985
|
-
getTask(request: UUID, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
|
|
986
|
-
cancelTask(request: UUID, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
987
|
-
cancelTask(request: UUID, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
988
|
-
cancelTask(request: UUID, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
989
|
-
deleteTask(request: UUID, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
990
|
-
deleteTask(request: UUID, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
991
|
-
deleteTask(request: UUID, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
992
|
-
ping(request: Checkin, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
|
|
993
|
-
ping(request: Checkin, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
|
|
994
|
-
ping(request: Checkin, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
|
|
995
|
-
syncTasks(request: SyncTasksReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<SyncTasksResp>;
|
|
996
|
-
syncTasks(request: SyncTasksReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<SyncTasksResp>;
|
|
997
|
-
updateChecks(request: UpdateChecksReq, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
|
|
998
|
-
updateChecks(request: UpdateChecksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
|
|
999
|
-
updateChecks(request: UpdateChecksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
declare class AggregatorClient extends grpc.Client implements IAggregatorClient {
|
|
1003
|
-
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
1004
|
-
public getKey(request: GetKeyReq, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
|
|
1005
|
-
public getKey(request: GetKeyReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
|
|
1006
|
-
public getKey(request: GetKeyReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
|
|
1007
|
-
public getNonce(request: NonceRequest, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
|
|
1008
|
-
public getNonce(request: NonceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
|
|
1009
|
-
public getNonce(request: NonceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
|
|
1010
|
-
public getSmartAccountAddress(request: AddressRequest, callback: (error: grpc.ServiceError | null, response: AddressResp) => void): grpc.ClientUnaryCall;
|
|
1011
|
-
public getSmartAccountAddress(request: AddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: AddressResp) => void): grpc.ClientUnaryCall;
|
|
1012
|
-
public getSmartAccountAddress(request: AddressRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: AddressResp) => void): grpc.ClientUnaryCall;
|
|
1013
|
-
public createTask(request: CreateTaskReq, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
|
|
1014
|
-
public createTask(request: CreateTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
|
|
1015
|
-
public createTask(request: CreateTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
|
|
1016
|
-
public listTasks(request: ListTasksReq, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
|
|
1017
|
-
public listTasks(request: ListTasksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
|
|
1018
|
-
public listTasks(request: ListTasksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
|
|
1019
|
-
public getTask(request: UUID, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
|
|
1020
|
-
public getTask(request: UUID, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
|
|
1021
|
-
public getTask(request: UUID, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
|
|
1022
|
-
public cancelTask(request: UUID, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1023
|
-
public cancelTask(request: UUID, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1024
|
-
public cancelTask(request: UUID, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1025
|
-
public deleteTask(request: UUID, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1026
|
-
public deleteTask(request: UUID, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1027
|
-
public deleteTask(request: UUID, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1028
|
-
public ping(request: Checkin, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
|
|
1029
|
-
public ping(request: Checkin, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
|
|
1030
|
-
public ping(request: Checkin, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
|
|
1031
|
-
public syncTasks(request: SyncTasksReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<SyncTasksResp>;
|
|
1032
|
-
public syncTasks(request: SyncTasksReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<SyncTasksResp>;
|
|
1033
|
-
public updateChecks(request: UpdateChecksReq, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
|
|
1034
|
-
public updateChecks(request: UpdateChecksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
|
|
1035
|
-
public updateChecks(request: UpdateChecksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
type Environment = "production" | "development" | "staging";
|
|
1039
|
-
interface KeyExchangeResp {
|
|
1040
|
-
key: string;
|
|
1041
|
-
}
|
|
1042
|
-
interface ClientParams {
|
|
1043
|
-
adminToken?: string;
|
|
1044
|
-
endpoint: string;
|
|
1045
|
-
}
|
|
1046
|
-
interface TransactionResp {
|
|
1047
|
-
hash: string;
|
|
1048
|
-
}
|
|
1049
|
-
interface BalanceResp {
|
|
1050
|
-
balance: string;
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
declare class BaseClient {
|
|
1054
|
-
readonly endpoint: string;
|
|
1055
|
-
readonly rpcClient: AggregatorClient;
|
|
1056
|
-
protected adminToken?: string;
|
|
1057
|
-
constructor(config: ClientParams);
|
|
1058
|
-
authWithSignature(address: string, signature: string, expiredAtEpoch: number): Promise<KeyExchangeResp>;
|
|
1059
|
-
isAuthenticated(): boolean;
|
|
1060
|
-
protected _callRPC<TResponse, TRequest extends object = {}>(methodName: string, request: TRequest): Promise<TResponse>;
|
|
1061
|
-
}
|
|
1062
|
-
declare class Client extends BaseClient {
|
|
1063
|
-
constructor(config: ClientParams);
|
|
1064
|
-
listTask(): Promise<ListTasksResp>;
|
|
1065
|
-
getSmartWalletAddress(address: string): Promise<AddressResp>;
|
|
1066
|
-
getTask(taskId: string): Promise<any>;
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
export { type BalanceResp, BaseClient, Client, type ClientParams, type Environment, type KeyExchangeResp, type TransactionResp, getKeyRequestMessage };
|