@avaprotocol/sdk-js 0.7.3 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -11,23 +11,23 @@ declare const getKeyRequestMessage: (address: string, expiredAt: number) => stri
11
11
 
12
12
 
13
13
 
14
- declare class UUID extends jspb.Message {
15
- getBytes(): string;
16
- setBytes(value: string): UUID;
14
+ declare class IdReq extends jspb.Message {
15
+ getId(): string;
16
+ setId(value: string): IdReq;
17
17
 
18
18
  serializeBinary(): Uint8Array;
19
- toObject(includeInstance?: boolean): UUID.AsObject;
20
- static toObject(includeInstance: boolean, msg: UUID): UUID.AsObject;
19
+ toObject(includeInstance?: boolean): IdReq.AsObject;
20
+ static toObject(includeInstance: boolean, msg: IdReq): IdReq.AsObject;
21
21
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
22
22
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
23
- static serializeBinaryToWriter(message: UUID, writer: jspb.BinaryWriter): void;
24
- static deserializeBinary(bytes: Uint8Array): UUID;
25
- static deserializeBinaryFromReader(message: UUID, reader: jspb.BinaryReader): UUID;
23
+ static serializeBinaryToWriter(message: IdReq, writer: jspb.BinaryWriter): void;
24
+ static deserializeBinary(bytes: Uint8Array): IdReq;
25
+ static deserializeBinaryFromReader(message: IdReq, reader: jspb.BinaryReader): IdReq;
26
26
  }
27
27
 
28
- declare namespace UUID {
28
+ declare namespace IdReq {
29
29
  export type AsObject = {
30
- bytes: string,
30
+ id: string,
31
31
  }
32
32
  }
33
33
 
@@ -155,110 +155,147 @@ declare namespace SyncTasksReq {
155
155
  }
156
156
  }
157
157
 
158
- declare class TaskTrigger extends jspb.Message {
159
- getTriggerType(): TriggerType;
160
- setTriggerType(value: TriggerType): TaskTrigger;
158
+ declare class FixedEpochCondition extends jspb.Message {
159
+ clearEpochsList(): void;
160
+ getEpochsList(): Array<number>;
161
+ setEpochsList(value: Array<number>): FixedEpochCondition;
162
+ addEpochs(value: number, index?: number): number;
161
163
 
162
- hasSchedule(): boolean;
163
- clearSchedule(): void;
164
- getSchedule(): TimeCondition | undefined;
165
- setSchedule(value?: TimeCondition): TaskTrigger;
164
+ serializeBinary(): Uint8Array;
165
+ toObject(includeInstance?: boolean): FixedEpochCondition.AsObject;
166
+ static toObject(includeInstance: boolean, msg: FixedEpochCondition): FixedEpochCondition.AsObject;
167
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
168
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
169
+ static serializeBinaryToWriter(message: FixedEpochCondition, writer: jspb.BinaryWriter): void;
170
+ static deserializeBinary(bytes: Uint8Array): FixedEpochCondition;
171
+ static deserializeBinaryFromReader(message: FixedEpochCondition, reader: jspb.BinaryReader): FixedEpochCondition;
172
+ }
166
173
 
167
- hasContractQuery(): boolean;
168
- clearContractQuery(): void;
169
- getContractQuery(): ContractQueryCondition | undefined;
170
- setContractQuery(value?: ContractQueryCondition): TaskTrigger;
174
+ declare namespace FixedEpochCondition {
175
+ export type AsObject = {
176
+ epochsList: Array<number>,
177
+ }
178
+ }
171
179
 
172
- hasExpression(): boolean;
173
- clearExpression(): void;
174
- getExpression(): ExpressionCondition | undefined;
175
- setExpression(value?: ExpressionCondition): TaskTrigger;
180
+ declare class CronCondition extends jspb.Message {
181
+ clearScheduleList(): void;
182
+ getScheduleList(): Array<string>;
183
+ setScheduleList(value: Array<string>): CronCondition;
184
+ addSchedule(value: string, index?: number): string;
176
185
 
177
186
  serializeBinary(): Uint8Array;
178
- toObject(includeInstance?: boolean): TaskTrigger.AsObject;
179
- static toObject(includeInstance: boolean, msg: TaskTrigger): TaskTrigger.AsObject;
187
+ toObject(includeInstance?: boolean): CronCondition.AsObject;
188
+ static toObject(includeInstance: boolean, msg: CronCondition): CronCondition.AsObject;
180
189
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
181
190
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
182
- static serializeBinaryToWriter(message: TaskTrigger, writer: jspb.BinaryWriter): void;
183
- static deserializeBinary(bytes: Uint8Array): TaskTrigger;
184
- static deserializeBinaryFromReader(message: TaskTrigger, reader: jspb.BinaryReader): TaskTrigger;
191
+ static serializeBinaryToWriter(message: CronCondition, writer: jspb.BinaryWriter): void;
192
+ static deserializeBinary(bytes: Uint8Array): CronCondition;
193
+ static deserializeBinaryFromReader(message: CronCondition, reader: jspb.BinaryReader): CronCondition;
185
194
  }
186
195
 
187
- declare namespace TaskTrigger {
196
+ declare namespace CronCondition {
188
197
  export type AsObject = {
189
- triggerType: TriggerType,
190
- schedule?: TimeCondition.AsObject,
191
- contractQuery?: ContractQueryCondition.AsObject,
192
- expression?: ExpressionCondition.AsObject,
198
+ scheduleList: Array<string>,
193
199
  }
194
200
  }
195
201
 
196
- declare class TimeCondition extends jspb.Message {
197
- clearFixedList(): void;
198
- getFixedList(): Array<number>;
199
- setFixedList(value: Array<number>): TimeCondition;
200
- addFixed(value: number, index?: number): number;
201
- getCron(): string;
202
- setCron(value: string): TimeCondition;
202
+ declare class BlockCondition extends jspb.Message {
203
+ getInterval(): number;
204
+ setInterval(value: number): BlockCondition;
203
205
 
204
206
  serializeBinary(): Uint8Array;
205
- toObject(includeInstance?: boolean): TimeCondition.AsObject;
206
- static toObject(includeInstance: boolean, msg: TimeCondition): TimeCondition.AsObject;
207
+ toObject(includeInstance?: boolean): BlockCondition.AsObject;
208
+ static toObject(includeInstance: boolean, msg: BlockCondition): BlockCondition.AsObject;
207
209
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
208
210
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
209
- static serializeBinaryToWriter(message: TimeCondition, writer: jspb.BinaryWriter): void;
210
- static deserializeBinary(bytes: Uint8Array): TimeCondition;
211
- static deserializeBinaryFromReader(message: TimeCondition, reader: jspb.BinaryReader): TimeCondition;
211
+ static serializeBinaryToWriter(message: BlockCondition, writer: jspb.BinaryWriter): void;
212
+ static deserializeBinary(bytes: Uint8Array): BlockCondition;
213
+ static deserializeBinaryFromReader(message: BlockCondition, reader: jspb.BinaryReader): BlockCondition;
212
214
  }
213
215
 
214
- declare namespace TimeCondition {
216
+ declare namespace BlockCondition {
215
217
  export type AsObject = {
216
- fixedList: Array<number>,
217
- cron: string,
218
+ interval: number,
218
219
  }
219
220
  }
220
221
 
221
- declare class ContractQueryCondition extends jspb.Message {
222
- getContractAddress(): string;
223
- setContractAddress(value: string): ContractQueryCondition;
224
- getCallmsg(): string;
225
- setCallmsg(value: string): ContractQueryCondition;
222
+ declare class EventCondition extends jspb.Message {
223
+ getExpression(): string;
224
+ setExpression(value: string): EventCondition;
226
225
 
227
226
  serializeBinary(): Uint8Array;
228
- toObject(includeInstance?: boolean): ContractQueryCondition.AsObject;
229
- static toObject(includeInstance: boolean, msg: ContractQueryCondition): ContractQueryCondition.AsObject;
227
+ toObject(includeInstance?: boolean): EventCondition.AsObject;
228
+ static toObject(includeInstance: boolean, msg: EventCondition): EventCondition.AsObject;
230
229
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
231
230
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
232
- static serializeBinaryToWriter(message: ContractQueryCondition, writer: jspb.BinaryWriter): void;
233
- static deserializeBinary(bytes: Uint8Array): ContractQueryCondition;
234
- static deserializeBinaryFromReader(message: ContractQueryCondition, reader: jspb.BinaryReader): ContractQueryCondition;
231
+ static serializeBinaryToWriter(message: EventCondition, writer: jspb.BinaryWriter): void;
232
+ static deserializeBinary(bytes: Uint8Array): EventCondition;
233
+ static deserializeBinaryFromReader(message: EventCondition, reader: jspb.BinaryReader): EventCondition;
235
234
  }
236
235
 
237
- declare namespace ContractQueryCondition {
236
+ declare namespace EventCondition {
238
237
  export type AsObject = {
239
- contractAddress: string,
240
- callmsg: string,
238
+ expression: string,
241
239
  }
242
240
  }
243
241
 
244
- declare class ExpressionCondition extends jspb.Message {
245
- getExpression(): string;
246
- setExpression(value: string): ExpressionCondition;
242
+ declare class TaskTrigger$1 extends jspb.Message {
243
+
244
+ hasManual(): boolean;
245
+ clearManual(): void;
246
+ getManual(): boolean;
247
+ setManual(value: boolean): TaskTrigger$1;
248
+
249
+ hasFixedTime(): boolean;
250
+ clearFixedTime(): void;
251
+ getFixedTime(): FixedEpochCondition | undefined;
252
+ setFixedTime(value?: FixedEpochCondition): TaskTrigger$1;
253
+
254
+ hasCron(): boolean;
255
+ clearCron(): void;
256
+ getCron(): CronCondition | undefined;
257
+ setCron(value?: CronCondition): TaskTrigger$1;
258
+
259
+ hasBlock(): boolean;
260
+ clearBlock(): void;
261
+ getBlock(): BlockCondition | undefined;
262
+ setBlock(value?: BlockCondition): TaskTrigger$1;
263
+
264
+ hasEvent(): boolean;
265
+ clearEvent(): void;
266
+ getEvent(): EventCondition | undefined;
267
+ setEvent(value?: EventCondition): TaskTrigger$1;
268
+
269
+ getTriggerTypeCase(): TaskTrigger$1.TriggerTypeCase;
247
270
 
248
271
  serializeBinary(): Uint8Array;
249
- toObject(includeInstance?: boolean): ExpressionCondition.AsObject;
250
- static toObject(includeInstance: boolean, msg: ExpressionCondition): ExpressionCondition.AsObject;
272
+ toObject(includeInstance?: boolean): TaskTrigger$1.AsObject;
273
+ static toObject(includeInstance: boolean, msg: TaskTrigger$1): TaskTrigger$1.AsObject;
251
274
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
252
275
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
253
- static serializeBinaryToWriter(message: ExpressionCondition, writer: jspb.BinaryWriter): void;
254
- static deserializeBinary(bytes: Uint8Array): ExpressionCondition;
255
- static deserializeBinaryFromReader(message: ExpressionCondition, reader: jspb.BinaryReader): ExpressionCondition;
276
+ static serializeBinaryToWriter(message: TaskTrigger$1, writer: jspb.BinaryWriter): void;
277
+ static deserializeBinary(bytes: Uint8Array): TaskTrigger$1;
278
+ static deserializeBinaryFromReader(message: TaskTrigger$1, reader: jspb.BinaryReader): TaskTrigger$1;
256
279
  }
257
280
 
258
- declare namespace ExpressionCondition {
281
+ declare namespace TaskTrigger$1 {
259
282
  export type AsObject = {
260
- expression: string,
283
+ manual: boolean,
284
+ fixedTime?: FixedEpochCondition.AsObject,
285
+ cron?: CronCondition.AsObject,
286
+ block?: BlockCondition.AsObject,
287
+ event?: EventCondition.AsObject,
261
288
  }
289
+
290
+ export enum TriggerTypeCase {
291
+ TRIGGER_TYPE_NOT_SET = 0,
292
+ MANUAL = 1,
293
+ FIXED_TIME = 2,
294
+ CRON = 3,
295
+ BLOCK = 4,
296
+ EVENT = 5,
297
+ }
298
+
262
299
  }
263
300
 
264
301
  declare class SyncTasksResp extends jspb.Message {
@@ -269,8 +306,8 @@ declare class SyncTasksResp extends jspb.Message {
269
306
 
270
307
  hasTrigger(): boolean;
271
308
  clearTrigger(): void;
272
- getTrigger(): TaskTrigger | undefined;
273
- setTrigger(value?: TaskTrigger): SyncTasksResp;
309
+ getTrigger(): TaskTrigger$1 | undefined;
310
+ setTrigger(value?: TaskTrigger$1): SyncTasksResp;
274
311
 
275
312
  serializeBinary(): Uint8Array;
276
313
  toObject(includeInstance?: boolean): SyncTasksResp.AsObject;
@@ -286,279 +323,396 @@ declare namespace SyncTasksResp {
286
323
  export type AsObject = {
287
324
  id: string,
288
325
  checktype: string,
289
- trigger?: TaskTrigger.AsObject,
326
+ trigger?: TaskTrigger$1.AsObject,
290
327
  }
291
328
  }
292
329
 
293
- declare class ETHTransfer extends jspb.Message {
330
+ declare class ETHTransferNode extends jspb.Message {
294
331
  getDestination(): string;
295
- setDestination(value: string): ETHTransfer;
332
+ setDestination(value: string): ETHTransferNode;
296
333
  getAmount(): string;
297
- setAmount(value: string): ETHTransfer;
334
+ setAmount(value: string): ETHTransferNode;
298
335
 
299
336
  serializeBinary(): Uint8Array;
300
- toObject(includeInstance?: boolean): ETHTransfer.AsObject;
301
- static toObject(includeInstance: boolean, msg: ETHTransfer): ETHTransfer.AsObject;
337
+ toObject(includeInstance?: boolean): ETHTransferNode.AsObject;
338
+ static toObject(includeInstance: boolean, msg: ETHTransferNode): ETHTransferNode.AsObject;
302
339
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
303
340
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
304
- static serializeBinaryToWriter(message: ETHTransfer, writer: jspb.BinaryWriter): void;
305
- static deserializeBinary(bytes: Uint8Array): ETHTransfer;
306
- static deserializeBinaryFromReader(message: ETHTransfer, reader: jspb.BinaryReader): ETHTransfer;
341
+ static serializeBinaryToWriter(message: ETHTransferNode, writer: jspb.BinaryWriter): void;
342
+ static deserializeBinary(bytes: Uint8Array): ETHTransferNode;
343
+ static deserializeBinaryFromReader(message: ETHTransferNode, reader: jspb.BinaryReader): ETHTransferNode;
307
344
  }
308
345
 
309
- declare namespace ETHTransfer {
346
+ declare namespace ETHTransferNode {
310
347
  export type AsObject = {
311
348
  destination: string,
312
349
  amount: string,
313
350
  }
314
351
  }
315
352
 
316
- declare class ContractExecution extends jspb.Message {
353
+ declare class ContractWriteNode extends jspb.Message {
317
354
  getContractAddress(): string;
318
- setContractAddress(value: string): ContractExecution;
355
+ setContractAddress(value: string): ContractWriteNode;
319
356
  getCallData(): string;
320
- setCallData(value: string): ContractExecution;
321
- getMethod(): string;
322
- setMethod(value: string): ContractExecution;
323
- getEncodedParams(): string;
324
- setEncodedParams(value: string): ContractExecution;
357
+ setCallData(value: string): ContractWriteNode;
358
+ getContractAbi(): string;
359
+ setContractAbi(value: string): ContractWriteNode;
325
360
 
326
361
  serializeBinary(): Uint8Array;
327
- toObject(includeInstance?: boolean): ContractExecution.AsObject;
328
- static toObject(includeInstance: boolean, msg: ContractExecution): ContractExecution.AsObject;
362
+ toObject(includeInstance?: boolean): ContractWriteNode.AsObject;
363
+ static toObject(includeInstance: boolean, msg: ContractWriteNode): ContractWriteNode.AsObject;
329
364
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
330
365
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
331
- static serializeBinaryToWriter(message: ContractExecution, writer: jspb.BinaryWriter): void;
332
- static deserializeBinary(bytes: Uint8Array): ContractExecution;
333
- static deserializeBinaryFromReader(message: ContractExecution, reader: jspb.BinaryReader): ContractExecution;
366
+ static serializeBinaryToWriter(message: ContractWriteNode, writer: jspb.BinaryWriter): void;
367
+ static deserializeBinary(bytes: Uint8Array): ContractWriteNode;
368
+ static deserializeBinaryFromReader(message: ContractWriteNode, reader: jspb.BinaryReader): ContractWriteNode;
334
369
  }
335
370
 
336
- declare namespace ContractExecution {
371
+ declare namespace ContractWriteNode {
337
372
  export type AsObject = {
338
373
  contractAddress: string,
339
374
  callData: string,
340
- method: string,
341
- encodedParams: string,
375
+ contractAbi: string,
342
376
  }
343
377
  }
344
378
 
345
- declare class GraphQLDataQuery extends jspb.Message {
379
+ declare class ContractReadNode extends jspb.Message {
380
+ getContractAddress(): string;
381
+ setContractAddress(value: string): ContractReadNode;
382
+ getCallData(): string;
383
+ setCallData(value: string): ContractReadNode;
384
+ getContractAbi(): string;
385
+ setContractAbi(value: string): ContractReadNode;
386
+
387
+ serializeBinary(): Uint8Array;
388
+ toObject(includeInstance?: boolean): ContractReadNode.AsObject;
389
+ static toObject(includeInstance: boolean, msg: ContractReadNode): ContractReadNode.AsObject;
390
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
391
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
392
+ static serializeBinaryToWriter(message: ContractReadNode, writer: jspb.BinaryWriter): void;
393
+ static deserializeBinary(bytes: Uint8Array): ContractReadNode;
394
+ static deserializeBinaryFromReader(message: ContractReadNode, reader: jspb.BinaryReader): ContractReadNode;
395
+ }
396
+
397
+ declare namespace ContractReadNode {
398
+ export type AsObject = {
399
+ contractAddress: string,
400
+ callData: string,
401
+ contractAbi: string,
402
+ }
403
+ }
404
+
405
+ declare class GraphQLQueryNode extends jspb.Message {
346
406
  getUrl(): string;
347
- setUrl(value: string): GraphQLDataQuery;
407
+ setUrl(value: string): GraphQLQueryNode;
348
408
  getQuery(): string;
349
- setQuery(value: string): GraphQLDataQuery;
409
+ setQuery(value: string): GraphQLQueryNode;
410
+
411
+ getVariablesMap(): jspb.Map<string, string>;
412
+ clearVariablesMap(): void;
350
413
 
351
414
  serializeBinary(): Uint8Array;
352
- toObject(includeInstance?: boolean): GraphQLDataQuery.AsObject;
353
- static toObject(includeInstance: boolean, msg: GraphQLDataQuery): GraphQLDataQuery.AsObject;
415
+ toObject(includeInstance?: boolean): GraphQLQueryNode.AsObject;
416
+ static toObject(includeInstance: boolean, msg: GraphQLQueryNode): GraphQLQueryNode.AsObject;
354
417
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
355
418
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
356
- static serializeBinaryToWriter(message: GraphQLDataQuery, writer: jspb.BinaryWriter): void;
357
- static deserializeBinary(bytes: Uint8Array): GraphQLDataQuery;
358
- static deserializeBinaryFromReader(message: GraphQLDataQuery, reader: jspb.BinaryReader): GraphQLDataQuery;
419
+ static serializeBinaryToWriter(message: GraphQLQueryNode, writer: jspb.BinaryWriter): void;
420
+ static deserializeBinary(bytes: Uint8Array): GraphQLQueryNode;
421
+ static deserializeBinaryFromReader(message: GraphQLQueryNode, reader: jspb.BinaryReader): GraphQLQueryNode;
359
422
  }
360
423
 
361
- declare namespace GraphQLDataQuery {
424
+ declare namespace GraphQLQueryNode {
362
425
  export type AsObject = {
363
426
  url: string,
364
427
  query: string,
428
+
429
+ variablesMap: Array<[string, string]>,
365
430
  }
366
431
  }
367
432
 
368
- declare class HTTPAPICall extends jspb.Message {
433
+ declare class RestAPINode extends jspb.Message {
369
434
  getUrl(): string;
370
- setUrl(value: string): HTTPAPICall;
435
+ setUrl(value: string): RestAPINode;
371
436
 
372
437
  getHeadersMap(): jspb.Map<string, string>;
373
438
  clearHeadersMap(): void;
374
439
  getBody(): string;
375
- setBody(value: string): HTTPAPICall;
440
+ setBody(value: string): RestAPINode;
441
+ getMethod(): string;
442
+ setMethod(value: string): RestAPINode;
376
443
 
377
444
  serializeBinary(): Uint8Array;
378
- toObject(includeInstance?: boolean): HTTPAPICall.AsObject;
379
- static toObject(includeInstance: boolean, msg: HTTPAPICall): HTTPAPICall.AsObject;
445
+ toObject(includeInstance?: boolean): RestAPINode.AsObject;
446
+ static toObject(includeInstance: boolean, msg: RestAPINode): RestAPINode.AsObject;
380
447
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
381
448
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
382
- static serializeBinaryToWriter(message: HTTPAPICall, writer: jspb.BinaryWriter): void;
383
- static deserializeBinary(bytes: Uint8Array): HTTPAPICall;
384
- static deserializeBinaryFromReader(message: HTTPAPICall, reader: jspb.BinaryReader): HTTPAPICall;
449
+ static serializeBinaryToWriter(message: RestAPINode, writer: jspb.BinaryWriter): void;
450
+ static deserializeBinary(bytes: Uint8Array): RestAPINode;
451
+ static deserializeBinaryFromReader(message: RestAPINode, reader: jspb.BinaryReader): RestAPINode;
385
452
  }
386
453
 
387
- declare namespace HTTPAPICall {
454
+ declare namespace RestAPINode {
388
455
  export type AsObject = {
389
456
  url: string,
390
457
 
391
458
  headersMap: Array<[string, string]>,
392
459
  body: string,
460
+ method: string,
393
461
  }
394
462
  }
395
463
 
396
- declare class CustomCode extends jspb.Message {
464
+ declare class CustomCodeNode extends jspb.Message {
397
465
  getType(): CustomCodeType;
398
- setType(value: CustomCodeType): CustomCode;
399
- getBody(): string;
400
- setBody(value: string): CustomCode;
466
+ setType(value: CustomCodeType): CustomCodeNode;
467
+ getSource(): string;
468
+ setSource(value: string): CustomCodeNode;
401
469
 
402
470
  serializeBinary(): Uint8Array;
403
- toObject(includeInstance?: boolean): CustomCode.AsObject;
404
- static toObject(includeInstance: boolean, msg: CustomCode): CustomCode.AsObject;
471
+ toObject(includeInstance?: boolean): CustomCodeNode.AsObject;
472
+ static toObject(includeInstance: boolean, msg: CustomCodeNode): CustomCodeNode.AsObject;
405
473
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
406
474
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
407
- static serializeBinaryToWriter(message: CustomCode, writer: jspb.BinaryWriter): void;
408
- static deserializeBinary(bytes: Uint8Array): CustomCode;
409
- static deserializeBinaryFromReader(message: CustomCode, reader: jspb.BinaryReader): CustomCode;
475
+ static serializeBinaryToWriter(message: CustomCodeNode, writer: jspb.BinaryWriter): void;
476
+ static deserializeBinary(bytes: Uint8Array): CustomCodeNode;
477
+ static deserializeBinaryFromReader(message: CustomCodeNode, reader: jspb.BinaryReader): CustomCodeNode;
410
478
  }
411
479
 
412
- declare namespace CustomCode {
480
+ declare namespace CustomCodeNode {
413
481
  export type AsObject = {
414
482
  type: CustomCodeType,
415
- body: string,
483
+ source: string,
416
484
  }
417
485
  }
418
486
 
419
- declare class ConditionJump extends jspb.Message {
487
+ declare class Condition extends jspb.Message {
488
+ getId(): string;
489
+ setId(value: string): Condition;
490
+ getType(): string;
491
+ setType(value: string): Condition;
420
492
  getExpression(): string;
421
- setExpression(value: string): ConditionJump;
422
- getNext(): string;
423
- setNext(value: string): ConditionJump;
493
+ setExpression(value: string): Condition;
424
494
 
425
495
  serializeBinary(): Uint8Array;
426
- toObject(includeInstance?: boolean): ConditionJump.AsObject;
427
- static toObject(includeInstance: boolean, msg: ConditionJump): ConditionJump.AsObject;
496
+ toObject(includeInstance?: boolean): Condition.AsObject;
497
+ static toObject(includeInstance: boolean, msg: Condition): Condition.AsObject;
428
498
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
429
499
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
430
- static serializeBinaryToWriter(message: ConditionJump, writer: jspb.BinaryWriter): void;
431
- static deserializeBinary(bytes: Uint8Array): ConditionJump;
432
- static deserializeBinaryFromReader(message: ConditionJump, reader: jspb.BinaryReader): ConditionJump;
500
+ static serializeBinaryToWriter(message: Condition, writer: jspb.BinaryWriter): void;
501
+ static deserializeBinary(bytes: Uint8Array): Condition;
502
+ static deserializeBinaryFromReader(message: Condition, reader: jspb.BinaryReader): Condition;
433
503
  }
434
504
 
435
- declare namespace ConditionJump {
505
+ declare namespace Condition {
436
506
  export type AsObject = {
507
+ id: string,
508
+ type: string,
437
509
  expression: string,
438
- next: string,
439
510
  }
440
511
  }
441
512
 
442
- declare class BranchAction extends jspb.Message {
513
+ declare class BranchNode extends jspb.Message {
514
+ clearConditionsList(): void;
515
+ getConditionsList(): Array<Condition>;
516
+ setConditionsList(value: Array<Condition>): BranchNode;
517
+ addConditions(value?: Condition, index?: number): Condition;
443
518
 
444
- hasIf(): boolean;
445
- clearIf(): void;
446
- getIf(): ConditionJump | undefined;
447
- setIf(value?: ConditionJump): BranchAction;
448
- clearElseifsList(): void;
449
- getElseifsList(): Array<ConditionJump>;
450
- setElseifsList(value: Array<ConditionJump>): BranchAction;
451
- addElseifs(value?: ConditionJump, index?: number): ConditionJump;
519
+ serializeBinary(): Uint8Array;
520
+ toObject(includeInstance?: boolean): BranchNode.AsObject;
521
+ static toObject(includeInstance: boolean, msg: BranchNode): BranchNode.AsObject;
522
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
523
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
524
+ static serializeBinaryToWriter(message: BranchNode, writer: jspb.BinaryWriter): void;
525
+ static deserializeBinary(bytes: Uint8Array): BranchNode;
526
+ static deserializeBinaryFromReader(message: BranchNode, reader: jspb.BinaryReader): BranchNode;
527
+ }
528
+
529
+ declare namespace BranchNode {
530
+ export type AsObject = {
531
+ conditionsList: Array<Condition.AsObject>,
532
+ }
533
+ }
452
534
 
453
- hasElse(): boolean;
454
- clearElse(): void;
455
- getElse(): ConditionJump | undefined;
456
- setElse(value?: ConditionJump): BranchAction;
535
+ declare class FilterNode extends jspb.Message {
536
+ getExpression(): string;
537
+ setExpression(value: string): FilterNode;
457
538
 
458
539
  serializeBinary(): Uint8Array;
459
- toObject(includeInstance?: boolean): BranchAction.AsObject;
460
- static toObject(includeInstance: boolean, msg: BranchAction): BranchAction.AsObject;
540
+ toObject(includeInstance?: boolean): FilterNode.AsObject;
541
+ static toObject(includeInstance: boolean, msg: FilterNode): FilterNode.AsObject;
461
542
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
462
543
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
463
- static serializeBinaryToWriter(message: BranchAction, writer: jspb.BinaryWriter): void;
464
- static deserializeBinary(bytes: Uint8Array): BranchAction;
465
- static deserializeBinaryFromReader(message: BranchAction, reader: jspb.BinaryReader): BranchAction;
544
+ static serializeBinaryToWriter(message: FilterNode, writer: jspb.BinaryWriter): void;
545
+ static deserializeBinary(bytes: Uint8Array): FilterNode;
546
+ static deserializeBinaryFromReader(message: FilterNode, reader: jspb.BinaryReader): FilterNode;
466
547
  }
467
548
 
468
- declare namespace BranchAction {
549
+ declare namespace FilterNode {
469
550
  export type AsObject = {
470
- pb_if?: ConditionJump.AsObject,
471
- elseifsList: Array<ConditionJump.AsObject>,
472
- pb_else?: ConditionJump.AsObject,
551
+ expression: string,
473
552
  }
474
553
  }
475
554
 
476
- declare class TaskAction extends jspb.Message {
477
- getTaskType(): TaskType$1;
478
- setTaskType(value: TaskType$1): TaskAction;
555
+ declare class LoopNode extends jspb.Message {
556
+ getIterVar(): string;
557
+ setIterVar(value: string): LoopNode;
558
+ getIterKey(): string;
559
+ setIterKey(value: string): LoopNode;
560
+
561
+ serializeBinary(): Uint8Array;
562
+ toObject(includeInstance?: boolean): LoopNode.AsObject;
563
+ static toObject(includeInstance: boolean, msg: LoopNode): LoopNode.AsObject;
564
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
565
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
566
+ static serializeBinaryToWriter(message: LoopNode, writer: jspb.BinaryWriter): void;
567
+ static deserializeBinary(bytes: Uint8Array): LoopNode;
568
+ static deserializeBinaryFromReader(message: LoopNode, reader: jspb.BinaryReader): LoopNode;
569
+ }
570
+
571
+ declare namespace LoopNode {
572
+ export type AsObject = {
573
+ iterVar: string,
574
+ iterKey: string,
575
+ }
576
+ }
577
+
578
+ declare class TaskEdge$1 extends jspb.Message {
479
579
  getId(): string;
480
- setId(value: string): TaskAction;
580
+ setId(value: string): TaskEdge$1;
581
+ getSource(): string;
582
+ setSource(value: string): TaskEdge$1;
583
+ getTarget(): string;
584
+ setTarget(value: string): TaskEdge$1;
585
+
586
+ serializeBinary(): Uint8Array;
587
+ toObject(includeInstance?: boolean): TaskEdge$1.AsObject;
588
+ static toObject(includeInstance: boolean, msg: TaskEdge$1): TaskEdge$1.AsObject;
589
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
590
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
591
+ static serializeBinaryToWriter(message: TaskEdge$1, writer: jspb.BinaryWriter): void;
592
+ static deserializeBinary(bytes: Uint8Array): TaskEdge$1;
593
+ static deserializeBinaryFromReader(message: TaskEdge$1, reader: jspb.BinaryReader): TaskEdge$1;
594
+ }
595
+
596
+ declare namespace TaskEdge$1 {
597
+ export type AsObject = {
598
+ id: string,
599
+ source: string,
600
+ target: string,
601
+ }
602
+ }
603
+
604
+ declare class TaskNode$1 extends jspb.Message {
605
+ getId(): string;
606
+ setId(value: string): TaskNode$1;
481
607
  getName(): string;
482
- setName(value: string): TaskAction;
483
- clearNextList(): void;
484
- getNextList(): Array<string>;
485
- setNextList(value: Array<string>): TaskAction;
486
- addNext(value: string, index?: number): string;
608
+ setName(value: string): TaskNode$1;
487
609
 
488
610
  hasEthTransfer(): boolean;
489
611
  clearEthTransfer(): void;
490
- getEthTransfer(): ETHTransfer | undefined;
491
- setEthTransfer(value?: ETHTransfer): TaskAction;
612
+ getEthTransfer(): ETHTransferNode | undefined;
613
+ setEthTransfer(value?: ETHTransferNode): TaskNode$1;
614
+
615
+ hasContractWrite(): boolean;
616
+ clearContractWrite(): void;
617
+ getContractWrite(): ContractWriteNode | undefined;
618
+ setContractWrite(value?: ContractWriteNode): TaskNode$1;
492
619
 
493
- hasContractExecution(): boolean;
494
- clearContractExecution(): void;
495
- getContractExecution(): ContractExecution | undefined;
496
- setContractExecution(value?: ContractExecution): TaskAction;
620
+ hasContractRead(): boolean;
621
+ clearContractRead(): void;
622
+ getContractRead(): ContractReadNode | undefined;
623
+ setContractRead(value?: ContractReadNode): TaskNode$1;
497
624
 
498
625
  hasGraphqlDataQuery(): boolean;
499
626
  clearGraphqlDataQuery(): void;
500
- getGraphqlDataQuery(): GraphQLDataQuery | undefined;
501
- setGraphqlDataQuery(value?: GraphQLDataQuery): TaskAction;
627
+ getGraphqlDataQuery(): GraphQLQueryNode | undefined;
628
+ setGraphqlDataQuery(value?: GraphQLQueryNode): TaskNode$1;
629
+
630
+ hasRestApi(): boolean;
631
+ clearRestApi(): void;
632
+ getRestApi(): RestAPINode | undefined;
633
+ setRestApi(value?: RestAPINode): TaskNode$1;
634
+
635
+ hasBranch(): boolean;
636
+ clearBranch(): void;
637
+ getBranch(): BranchNode | undefined;
638
+ setBranch(value?: BranchNode): TaskNode$1;
639
+
640
+ hasFilter(): boolean;
641
+ clearFilter(): void;
642
+ getFilter(): FilterNode | undefined;
643
+ setFilter(value?: FilterNode): TaskNode$1;
502
644
 
503
- hasHttpDataQuery(): boolean;
504
- clearHttpDataQuery(): void;
505
- getHttpDataQuery(): HTTPAPICall | undefined;
506
- setHttpDataQuery(value?: HTTPAPICall): TaskAction;
645
+ hasLoop(): boolean;
646
+ clearLoop(): void;
647
+ getLoop(): LoopNode | undefined;
648
+ setLoop(value?: LoopNode): TaskNode$1;
507
649
 
508
650
  hasCustomCode(): boolean;
509
651
  clearCustomCode(): void;
510
- getCustomCode(): CustomCode | undefined;
511
- setCustomCode(value?: CustomCode): TaskAction;
652
+ getCustomCode(): CustomCodeNode | undefined;
653
+ setCustomCode(value?: CustomCodeNode): TaskNode$1;
512
654
 
513
- hasBranch(): boolean;
514
- clearBranch(): void;
515
- getBranch(): BranchAction | undefined;
516
- setBranch(value?: BranchAction): TaskAction;
655
+ getTaskTypeCase(): TaskNode$1.TaskTypeCase;
517
656
 
518
657
  serializeBinary(): Uint8Array;
519
- toObject(includeInstance?: boolean): TaskAction.AsObject;
520
- static toObject(includeInstance: boolean, msg: TaskAction): TaskAction.AsObject;
658
+ toObject(includeInstance?: boolean): TaskNode$1.AsObject;
659
+ static toObject(includeInstance: boolean, msg: TaskNode$1): TaskNode$1.AsObject;
521
660
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
522
661
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
523
- static serializeBinaryToWriter(message: TaskAction, writer: jspb.BinaryWriter): void;
524
- static deserializeBinary(bytes: Uint8Array): TaskAction;
525
- static deserializeBinaryFromReader(message: TaskAction, reader: jspb.BinaryReader): TaskAction;
662
+ static serializeBinaryToWriter(message: TaskNode$1, writer: jspb.BinaryWriter): void;
663
+ static deserializeBinary(bytes: Uint8Array): TaskNode$1;
664
+ static deserializeBinaryFromReader(message: TaskNode$1, reader: jspb.BinaryReader): TaskNode$1;
526
665
  }
527
666
 
528
- declare namespace TaskAction {
667
+ declare namespace TaskNode$1 {
529
668
  export type AsObject = {
530
- taskType: TaskType$1,
531
669
  id: string,
532
670
  name: string,
533
- nextList: Array<string>,
534
- ethTransfer?: ETHTransfer.AsObject,
535
- contractExecution?: ContractExecution.AsObject,
536
- graphqlDataQuery?: GraphQLDataQuery.AsObject,
537
- httpDataQuery?: HTTPAPICall.AsObject,
538
- customCode?: CustomCode.AsObject,
539
- branch?: BranchAction.AsObject,
671
+ ethTransfer?: ETHTransferNode.AsObject,
672
+ contractWrite?: ContractWriteNode.AsObject,
673
+ contractRead?: ContractReadNode.AsObject,
674
+ graphqlDataQuery?: GraphQLQueryNode.AsObject,
675
+ restApi?: RestAPINode.AsObject,
676
+ branch?: BranchNode.AsObject,
677
+ filter?: FilterNode.AsObject,
678
+ loop?: LoopNode.AsObject,
679
+ customCode?: CustomCodeNode.AsObject,
680
+ }
681
+
682
+ export enum TaskTypeCase {
683
+ TASK_TYPE_NOT_SET = 0,
684
+ ETH_TRANSFER = 10,
685
+ CONTRACT_WRITE = 11,
686
+ CONTRACT_READ = 12,
687
+ GRAPHQL_DATA_QUERY = 13,
688
+ REST_API = 14,
689
+ BRANCH = 15,
690
+ FILTER = 16,
691
+ LOOP = 17,
692
+ CUSTOM_CODE = 18,
540
693
  }
694
+
541
695
  }
542
696
 
543
- declare class Execution extends jspb.Message {
697
+ declare class Execution$1 extends jspb.Message {
544
698
  getEpoch(): number;
545
- setEpoch(value: number): Execution;
699
+ setEpoch(value: number): Execution$1;
546
700
  getUserOpHash(): string;
547
- setUserOpHash(value: string): Execution;
701
+ setUserOpHash(value: string): Execution$1;
548
702
  getError(): string;
549
- setError(value: string): Execution;
703
+ setError(value: string): Execution$1;
550
704
 
551
705
  serializeBinary(): Uint8Array;
552
- toObject(includeInstance?: boolean): Execution.AsObject;
553
- static toObject(includeInstance: boolean, msg: Execution): Execution.AsObject;
706
+ toObject(includeInstance?: boolean): Execution$1.AsObject;
707
+ static toObject(includeInstance: boolean, msg: Execution$1): Execution$1.AsObject;
554
708
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
555
709
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
556
- static serializeBinaryToWriter(message: Execution, writer: jspb.BinaryWriter): void;
557
- static deserializeBinary(bytes: Uint8Array): Execution;
558
- static deserializeBinaryFromReader(message: Execution, reader: jspb.BinaryReader): Execution;
710
+ static serializeBinaryToWriter(message: Execution$1, writer: jspb.BinaryWriter): void;
711
+ static deserializeBinary(bytes: Uint8Array): Execution$1;
712
+ static deserializeBinaryFromReader(message: Execution$1, reader: jspb.BinaryReader): Execution$1;
559
713
  }
560
714
 
561
- declare namespace Execution {
715
+ declare namespace Execution$1 {
562
716
  export type AsObject = {
563
717
  epoch: number,
564
718
  userOpHash: string,
@@ -566,66 +720,68 @@ declare namespace Execution {
566
720
  }
567
721
  }
568
722
 
569
- declare class Task extends jspb.Message {
570
-
571
- hasId(): boolean;
572
- clearId(): void;
573
- getId(): UUID | undefined;
574
- setId(value?: UUID): Task;
723
+ declare class Task$1 extends jspb.Message {
724
+ getId(): string;
725
+ setId(value: string): Task$1;
575
726
  getOwner(): string;
576
- setOwner(value: string): Task;
577
- getSmartAccountAddress(): string;
578
- setSmartAccountAddress(value: string): Task;
579
-
580
- hasTrigger(): boolean;
581
- clearTrigger(): void;
582
- getTrigger(): TaskTrigger | undefined;
583
- setTrigger(value?: TaskTrigger): Task;
584
- clearNodesList(): void;
585
- getNodesList(): Array<TaskAction>;
586
- setNodesList(value: Array<TaskAction>): Task;
587
- addNodes(value?: TaskAction, index?: number): TaskAction;
727
+ setOwner(value: string): Task$1;
728
+ getSmartWalletAddress(): string;
729
+ setSmartWalletAddress(value: string): Task$1;
588
730
  getStartAt(): number;
589
- setStartAt(value: number): Task;
731
+ setStartAt(value: number): Task$1;
590
732
  getExpiredAt(): number;
591
- setExpiredAt(value: number): Task;
733
+ setExpiredAt(value: number): Task$1;
592
734
  getMemo(): string;
593
- setMemo(value: string): Task;
735
+ setMemo(value: string): Task$1;
594
736
  getCompletedAt(): number;
595
- setCompletedAt(value: number): Task;
737
+ setCompletedAt(value: number): Task$1;
738
+ getMaxExecution(): number;
739
+ setMaxExecution(value: number): Task$1;
596
740
  getStatus(): TaskStatus;
597
- setStatus(value: TaskStatus): Task;
598
- getRepeatable(): boolean;
599
- setRepeatable(value: boolean): Task;
741
+ setStatus(value: TaskStatus): Task$1;
742
+
743
+ hasTrigger(): boolean;
744
+ clearTrigger(): void;
745
+ getTrigger(): TaskTrigger$1 | undefined;
746
+ setTrigger(value?: TaskTrigger$1): Task$1;
747
+ clearNodesList(): void;
748
+ getNodesList(): Array<TaskNode$1>;
749
+ setNodesList(value: Array<TaskNode$1>): Task$1;
750
+ addNodes(value?: TaskNode$1, index?: number): TaskNode$1;
751
+ clearEdgesList(): void;
752
+ getEdgesList(): Array<TaskEdge$1>;
753
+ setEdgesList(value: Array<TaskEdge$1>): Task$1;
754
+ addEdges(value?: TaskEdge$1, index?: number): TaskEdge$1;
600
755
  clearExecutionsList(): void;
601
- getExecutionsList(): Array<Execution>;
602
- setExecutionsList(value: Array<Execution>): Task;
603
- addExecutions(value?: Execution, index?: number): Execution;
756
+ getExecutionsList(): Array<Execution$1>;
757
+ setExecutionsList(value: Array<Execution$1>): Task$1;
758
+ addExecutions(value?: Execution$1, index?: number): Execution$1;
604
759
 
605
760
  serializeBinary(): Uint8Array;
606
- toObject(includeInstance?: boolean): Task.AsObject;
607
- static toObject(includeInstance: boolean, msg: Task): Task.AsObject;
761
+ toObject(includeInstance?: boolean): Task$1.AsObject;
762
+ static toObject(includeInstance: boolean, msg: Task$1): Task$1.AsObject;
608
763
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
609
764
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
610
- static serializeBinaryToWriter(message: Task, writer: jspb.BinaryWriter): void;
611
- static deserializeBinary(bytes: Uint8Array): Task;
612
- static deserializeBinaryFromReader(message: Task, reader: jspb.BinaryReader): Task;
765
+ static serializeBinaryToWriter(message: Task$1, writer: jspb.BinaryWriter): void;
766
+ static deserializeBinary(bytes: Uint8Array): Task$1;
767
+ static deserializeBinaryFromReader(message: Task$1, reader: jspb.BinaryReader): Task$1;
613
768
  }
614
769
 
615
- declare namespace Task {
770
+ declare namespace Task$1 {
616
771
  export type AsObject = {
617
- id?: UUID.AsObject,
772
+ id: string,
618
773
  owner: string,
619
- smartAccountAddress: string,
620
- trigger?: TaskTrigger.AsObject,
621
- nodesList: Array<TaskAction.AsObject>,
774
+ smartWalletAddress: string,
622
775
  startAt: number,
623
776
  expiredAt: number,
624
777
  memo: string,
625
778
  completedAt: number,
779
+ maxExecution: number,
626
780
  status: TaskStatus,
627
- repeatable: boolean,
628
- executionsList: Array<Execution.AsObject>,
781
+ trigger?: TaskTrigger$1.AsObject,
782
+ nodesList: Array<TaskNode$1.AsObject>,
783
+ edgesList: Array<TaskEdge$1.AsObject>,
784
+ executionsList: Array<Execution$1.AsObject>,
629
785
  }
630
786
  }
631
787
 
@@ -633,20 +789,26 @@ declare class CreateTaskReq extends jspb.Message {
633
789
 
634
790
  hasTrigger(): boolean;
635
791
  clearTrigger(): void;
636
- getTrigger(): TaskTrigger | undefined;
637
- setTrigger(value?: TaskTrigger): CreateTaskReq;
638
- clearActionsList(): void;
639
- getActionsList(): Array<TaskAction>;
640
- setActionsList(value: Array<TaskAction>): CreateTaskReq;
641
- addActions(value?: TaskAction, index?: number): TaskAction;
792
+ getTrigger(): TaskTrigger$1 | undefined;
793
+ setTrigger(value?: TaskTrigger$1): CreateTaskReq;
642
794
  getStartAt(): number;
643
795
  setStartAt(value: number): CreateTaskReq;
644
796
  getExpiredAt(): number;
645
797
  setExpiredAt(value: number): CreateTaskReq;
798
+ getMaxExecution(): number;
799
+ setMaxExecution(value: number): CreateTaskReq;
800
+ getSmartWalletAddress(): string;
801
+ setSmartWalletAddress(value: string): CreateTaskReq;
646
802
  getMemo(): string;
647
803
  setMemo(value: string): CreateTaskReq;
648
- getRepeatable(): boolean;
649
- setRepeatable(value: boolean): CreateTaskReq;
804
+ clearNodesList(): void;
805
+ getNodesList(): Array<TaskNode$1>;
806
+ setNodesList(value: Array<TaskNode$1>): CreateTaskReq;
807
+ addNodes(value?: TaskNode$1, index?: number): TaskNode$1;
808
+ clearEdgesList(): void;
809
+ getEdgesList(): Array<TaskEdge$1>;
810
+ setEdgesList(value: Array<TaskEdge$1>): CreateTaskReq;
811
+ addEdges(value?: TaskEdge$1, index?: number): TaskEdge$1;
650
812
 
651
813
  serializeBinary(): Uint8Array;
652
814
  toObject(includeInstance?: boolean): CreateTaskReq.AsObject;
@@ -660,12 +822,14 @@ declare class CreateTaskReq extends jspb.Message {
660
822
 
661
823
  declare namespace CreateTaskReq {
662
824
  export type AsObject = {
663
- trigger?: TaskTrigger.AsObject,
664
- actionsList: Array<TaskAction.AsObject>,
825
+ trigger?: TaskTrigger$1.AsObject,
665
826
  startAt: number,
666
827
  expiredAt: number,
828
+ maxExecution: number,
829
+ smartWalletAddress: string,
667
830
  memo: string,
668
- repeatable: boolean,
831
+ nodesList: Array<TaskNode$1.AsObject>,
832
+ edgesList: Array<TaskEdge$1.AsObject>,
669
833
  }
670
834
  }
671
835
 
@@ -729,50 +893,80 @@ declare namespace NonceResp {
729
893
  }
730
894
  }
731
895
 
732
- declare class AddressRequest extends jspb.Message {
733
- getOwner(): string;
734
- setOwner(value: string): AddressRequest;
896
+ declare class ListWalletReq extends jspb.Message {
897
+ getFactory(): string;
898
+ setFactory(value: string): ListWalletReq;
899
+ getSalt(): string;
900
+ setSalt(value: string): ListWalletReq;
735
901
 
736
902
  serializeBinary(): Uint8Array;
737
- toObject(includeInstance?: boolean): AddressRequest.AsObject;
738
- static toObject(includeInstance: boolean, msg: AddressRequest): AddressRequest.AsObject;
903
+ toObject(includeInstance?: boolean): ListWalletReq.AsObject;
904
+ static toObject(includeInstance: boolean, msg: ListWalletReq): ListWalletReq.AsObject;
739
905
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
740
906
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
741
- static serializeBinaryToWriter(message: AddressRequest, writer: jspb.BinaryWriter): void;
742
- static deserializeBinary(bytes: Uint8Array): AddressRequest;
743
- static deserializeBinaryFromReader(message: AddressRequest, reader: jspb.BinaryReader): AddressRequest;
907
+ static serializeBinaryToWriter(message: ListWalletReq, writer: jspb.BinaryWriter): void;
908
+ static deserializeBinary(bytes: Uint8Array): ListWalletReq;
909
+ static deserializeBinaryFromReader(message: ListWalletReq, reader: jspb.BinaryReader): ListWalletReq;
744
910
  }
745
911
 
746
- declare namespace AddressRequest {
912
+ declare namespace ListWalletReq {
747
913
  export type AsObject = {
748
- owner: string,
914
+ factory: string,
915
+ salt: string,
749
916
  }
750
917
  }
751
918
 
752
- declare class AddressResp extends jspb.Message {
753
- getSmartAccountAddress(): string;
754
- setSmartAccountAddress(value: string): AddressResp;
755
- getNonce(): string;
756
- setNonce(value: string): AddressResp;
919
+ declare class SmartWallet$1 extends jspb.Message {
920
+ getAddress(): string;
921
+ setAddress(value: string): SmartWallet$1;
922
+ getSalt(): string;
923
+ setSalt(value: string): SmartWallet$1;
924
+ getFactory(): string;
925
+ setFactory(value: string): SmartWallet$1;
757
926
 
758
927
  serializeBinary(): Uint8Array;
759
- toObject(includeInstance?: boolean): AddressResp.AsObject;
760
- static toObject(includeInstance: boolean, msg: AddressResp): AddressResp.AsObject;
928
+ toObject(includeInstance?: boolean): SmartWallet$1.AsObject;
929
+ static toObject(includeInstance: boolean, msg: SmartWallet$1): SmartWallet$1.AsObject;
761
930
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
762
931
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
763
- static serializeBinaryToWriter(message: AddressResp, writer: jspb.BinaryWriter): void;
764
- static deserializeBinary(bytes: Uint8Array): AddressResp;
765
- static deserializeBinaryFromReader(message: AddressResp, reader: jspb.BinaryReader): AddressResp;
932
+ static serializeBinaryToWriter(message: SmartWallet$1, writer: jspb.BinaryWriter): void;
933
+ static deserializeBinary(bytes: Uint8Array): SmartWallet$1;
934
+ static deserializeBinaryFromReader(message: SmartWallet$1, reader: jspb.BinaryReader): SmartWallet$1;
766
935
  }
767
936
 
768
- declare namespace AddressResp {
937
+ declare namespace SmartWallet$1 {
769
938
  export type AsObject = {
770
- smartAccountAddress: string,
771
- nonce: string,
939
+ address: string,
940
+ salt: string,
941
+ factory: string,
942
+ }
943
+ }
944
+
945
+ declare class ListWalletResp extends jspb.Message {
946
+ clearWalletsList(): void;
947
+ getWalletsList(): Array<SmartWallet$1>;
948
+ setWalletsList(value: Array<SmartWallet$1>): ListWalletResp;
949
+ addWallets(value?: SmartWallet$1, index?: number): SmartWallet$1;
950
+
951
+ serializeBinary(): Uint8Array;
952
+ toObject(includeInstance?: boolean): ListWalletResp.AsObject;
953
+ static toObject(includeInstance: boolean, msg: ListWalletResp): ListWalletResp.AsObject;
954
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
955
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
956
+ static serializeBinaryToWriter(message: ListWalletResp, writer: jspb.BinaryWriter): void;
957
+ static deserializeBinary(bytes: Uint8Array): ListWalletResp;
958
+ static deserializeBinaryFromReader(message: ListWalletResp, reader: jspb.BinaryReader): ListWalletResp;
959
+ }
960
+
961
+ declare namespace ListWalletResp {
962
+ export type AsObject = {
963
+ walletsList: Array<SmartWallet$1.AsObject>,
772
964
  }
773
965
  }
774
966
 
775
967
  declare class ListTasksReq extends jspb.Message {
968
+ getSmartWalletAddress(): string;
969
+ setSmartWalletAddress(value: string): ListTasksReq;
776
970
 
777
971
  serializeBinary(): Uint8Array;
778
972
  toObject(includeInstance?: boolean): ListTasksReq.AsObject;
@@ -786,14 +980,15 @@ declare class ListTasksReq extends jspb.Message {
786
980
 
787
981
  declare namespace ListTasksReq {
788
982
  export type AsObject = {
983
+ smartWalletAddress: string,
789
984
  }
790
985
  }
791
986
 
792
987
  declare class ListTasksResp extends jspb.Message {
793
988
  clearTasksList(): void;
794
- getTasksList(): Array<ListTasksResp.TaskItemResp>;
795
- setTasksList(value: Array<ListTasksResp.TaskItemResp>): ListTasksResp;
796
- addTasks(value?: ListTasksResp.TaskItemResp, index?: number): ListTasksResp.TaskItemResp;
989
+ getTasksList(): Array<Task$1>;
990
+ setTasksList(value: Array<Task$1>): ListTasksResp;
991
+ addTasks(value?: Task$1, index?: number): Task$1;
797
992
 
798
993
  serializeBinary(): Uint8Array;
799
994
  toObject(includeInstance?: boolean): ListTasksResp.AsObject;
@@ -807,33 +1002,8 @@ declare class ListTasksResp extends jspb.Message {
807
1002
 
808
1003
  declare namespace ListTasksResp {
809
1004
  export type AsObject = {
810
- tasksList: Array<ListTasksResp.TaskItemResp.AsObject>,
811
- }
812
-
813
-
814
- export class TaskItemResp extends jspb.Message {
815
- getId(): string;
816
- setId(value: string): TaskItemResp;
817
- getStatus(): TaskStatus;
818
- setStatus(value: TaskStatus): TaskItemResp;
819
-
820
- serializeBinary(): Uint8Array;
821
- toObject(includeInstance?: boolean): TaskItemResp.AsObject;
822
- static toObject(includeInstance: boolean, msg: TaskItemResp): TaskItemResp.AsObject;
823
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
824
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
825
- static serializeBinaryToWriter(message: TaskItemResp, writer: jspb.BinaryWriter): void;
826
- static deserializeBinary(bytes: Uint8Array): TaskItemResp;
827
- static deserializeBinaryFromReader(message: TaskItemResp, reader: jspb.BinaryReader): TaskItemResp;
828
- }
829
-
830
- export namespace TaskItemResp {
831
- export type AsObject = {
832
- id: string,
833
- status: TaskStatus,
834
- }
1005
+ tasksList: Array<Task$1.AsObject>,
835
1006
  }
836
-
837
1007
  }
838
1008
 
839
1009
  declare class GetKeyReq extends jspb.Message {
@@ -933,19 +1103,53 @@ declare namespace UpdateChecksResp {
933
1103
  }
934
1104
  }
935
1105
 
936
- declare enum TriggerType {
937
- TIMETRIGGER = 0,
938
- CONTRACTQUERYTRIGGER = 1,
939
- EXPRESSIONTRIGGER = 2,
1106
+ declare class CreateWalletReq$1 extends jspb.Message {
1107
+ getSalt(): string;
1108
+ setSalt(value: string): CreateWalletReq$1;
1109
+ getFactoryAddress(): string;
1110
+ setFactoryAddress(value: string): CreateWalletReq$1;
1111
+
1112
+ serializeBinary(): Uint8Array;
1113
+ toObject(includeInstance?: boolean): CreateWalletReq$1.AsObject;
1114
+ static toObject(includeInstance: boolean, msg: CreateWalletReq$1): CreateWalletReq$1.AsObject;
1115
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1116
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1117
+ static serializeBinaryToWriter(message: CreateWalletReq$1, writer: jspb.BinaryWriter): void;
1118
+ static deserializeBinary(bytes: Uint8Array): CreateWalletReq$1;
1119
+ static deserializeBinaryFromReader(message: CreateWalletReq$1, reader: jspb.BinaryReader): CreateWalletReq$1;
1120
+ }
1121
+
1122
+ declare namespace CreateWalletReq$1 {
1123
+ export type AsObject = {
1124
+ salt: string,
1125
+ factoryAddress: string,
1126
+ }
1127
+ }
1128
+
1129
+ declare class CreateWalletResp extends jspb.Message {
1130
+ getAddress(): string;
1131
+ setAddress(value: string): CreateWalletResp;
1132
+ getSalt(): string;
1133
+ setSalt(value: string): CreateWalletResp;
1134
+ getFactoryAddress(): string;
1135
+ setFactoryAddress(value: string): CreateWalletResp;
1136
+
1137
+ serializeBinary(): Uint8Array;
1138
+ toObject(includeInstance?: boolean): CreateWalletResp.AsObject;
1139
+ static toObject(includeInstance: boolean, msg: CreateWalletResp): CreateWalletResp.AsObject;
1140
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1141
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1142
+ static serializeBinaryToWriter(message: CreateWalletResp, writer: jspb.BinaryWriter): void;
1143
+ static deserializeBinary(bytes: Uint8Array): CreateWalletResp;
1144
+ static deserializeBinaryFromReader(message: CreateWalletResp, reader: jspb.BinaryReader): CreateWalletResp;
940
1145
  }
941
1146
 
942
- declare enum TaskType$1 {
943
- ETHTRANSFERTASK = 0,
944
- CONTRACTEXECUTIONTASK = 1,
945
- GRAPHQLDATAQUERYTASK = 2,
946
- HTTPAPICALLTASK = 3,
947
- CUSTOMCODETASK = 4,
948
- BRANCHACTIONTASK = 5,
1147
+ declare namespace CreateWalletResp {
1148
+ export type AsObject = {
1149
+ address: string,
1150
+ salt: string,
1151
+ factoryAddress: string,
1152
+ }
949
1153
  }
950
1154
 
951
1155
  declare enum TaskStatus {
@@ -966,498 +1170,84 @@ declare enum CustomCodeType {
966
1170
 
967
1171
 
968
1172
  interface IAggregatorClient {
969
- getKey(
970
- request: GetKeyReq,
971
- callback: (
972
- error: grpc.ServiceError | null,
973
- response: KeyResp
974
- ) => void
975
- ): grpc.ClientUnaryCall;
976
- getKey(
977
- request: GetKeyReq,
978
- metadata: grpc.Metadata,
979
- callback: (
980
- error: grpc.ServiceError | null,
981
- response: KeyResp
982
- ) => void
983
- ): grpc.ClientUnaryCall;
984
- getKey(
985
- request: GetKeyReq,
986
- metadata: grpc.Metadata,
987
- options: Partial<grpc.CallOptions>,
988
- callback: (
989
- error: grpc.ServiceError | null,
990
- response: KeyResp
991
- ) => void
992
- ): grpc.ClientUnaryCall;
993
- getNonce(
994
- request: NonceRequest,
995
- callback: (
996
- error: grpc.ServiceError | null,
997
- response: NonceResp
998
- ) => void
999
- ): grpc.ClientUnaryCall;
1000
- getNonce(
1001
- request: NonceRequest,
1002
- metadata: grpc.Metadata,
1003
- callback: (
1004
- error: grpc.ServiceError | null,
1005
- response: NonceResp
1006
- ) => void
1007
- ): grpc.ClientUnaryCall;
1008
- getNonce(
1009
- request: NonceRequest,
1010
- metadata: grpc.Metadata,
1011
- options: Partial<grpc.CallOptions>,
1012
- callback: (
1013
- error: grpc.ServiceError | null,
1014
- response: NonceResp
1015
- ) => void
1016
- ): grpc.ClientUnaryCall;
1017
- getSmartAccountAddress(
1018
- request: AddressRequest,
1019
- callback: (
1020
- error: grpc.ServiceError | null,
1021
- response: AddressResp
1022
- ) => void
1023
- ): grpc.ClientUnaryCall;
1024
- getSmartAccountAddress(
1025
- request: AddressRequest,
1026
- metadata: grpc.Metadata,
1027
- callback: (
1028
- error: grpc.ServiceError | null,
1029
- response: AddressResp
1030
- ) => void
1031
- ): grpc.ClientUnaryCall;
1032
- getSmartAccountAddress(
1033
- request: AddressRequest,
1034
- metadata: grpc.Metadata,
1035
- options: Partial<grpc.CallOptions>,
1036
- callback: (
1037
- error: grpc.ServiceError | null,
1038
- response: AddressResp
1039
- ) => void
1040
- ): grpc.ClientUnaryCall;
1041
- createTask(
1042
- request: CreateTaskReq,
1043
- callback: (
1044
- error: grpc.ServiceError | null,
1045
- response: CreateTaskResp
1046
- ) => void
1047
- ): grpc.ClientUnaryCall;
1048
- createTask(
1049
- request: CreateTaskReq,
1050
- metadata: grpc.Metadata,
1051
- callback: (
1052
- error: grpc.ServiceError | null,
1053
- response: CreateTaskResp
1054
- ) => void
1055
- ): grpc.ClientUnaryCall;
1056
- createTask(
1057
- request: CreateTaskReq,
1058
- metadata: grpc.Metadata,
1059
- options: Partial<grpc.CallOptions>,
1060
- callback: (
1061
- error: grpc.ServiceError | null,
1062
- response: CreateTaskResp
1063
- ) => void
1064
- ): grpc.ClientUnaryCall;
1065
- listTasks(
1066
- request: ListTasksReq,
1067
- callback: (
1068
- error: grpc.ServiceError | null,
1069
- response: ListTasksResp
1070
- ) => void
1071
- ): grpc.ClientUnaryCall;
1072
- listTasks(
1073
- request: ListTasksReq,
1074
- metadata: grpc.Metadata,
1075
- callback: (
1076
- error: grpc.ServiceError | null,
1077
- response: ListTasksResp
1078
- ) => void
1079
- ): grpc.ClientUnaryCall;
1080
- listTasks(
1081
- request: ListTasksReq,
1082
- metadata: grpc.Metadata,
1083
- options: Partial<grpc.CallOptions>,
1084
- callback: (
1085
- error: grpc.ServiceError | null,
1086
- response: ListTasksResp
1087
- ) => void
1088
- ): grpc.ClientUnaryCall;
1089
- getTask(
1090
- request: UUID,
1091
- callback: (error: grpc.ServiceError | null, response: Task) => void
1092
- ): grpc.ClientUnaryCall;
1093
- getTask(
1094
- request: UUID,
1095
- metadata: grpc.Metadata,
1096
- callback: (error: grpc.ServiceError | null, response: Task) => void
1097
- ): grpc.ClientUnaryCall;
1098
- getTask(
1099
- request: UUID,
1100
- metadata: grpc.Metadata,
1101
- options: Partial<grpc.CallOptions>,
1102
- callback: (error: grpc.ServiceError | null, response: Task) => void
1103
- ): grpc.ClientUnaryCall;
1104
- cancelTask(
1105
- request: UUID,
1106
- callback: (
1107
- error: grpc.ServiceError | null,
1108
- response: google_protobuf_wrappers_pb.BoolValue
1109
- ) => void
1110
- ): grpc.ClientUnaryCall;
1111
- cancelTask(
1112
- request: UUID,
1113
- metadata: grpc.Metadata,
1114
- callback: (
1115
- error: grpc.ServiceError | null,
1116
- response: google_protobuf_wrappers_pb.BoolValue
1117
- ) => void
1118
- ): grpc.ClientUnaryCall;
1119
- cancelTask(
1120
- request: UUID,
1121
- metadata: grpc.Metadata,
1122
- options: Partial<grpc.CallOptions>,
1123
- callback: (
1124
- error: grpc.ServiceError | null,
1125
- response: google_protobuf_wrappers_pb.BoolValue
1126
- ) => void
1127
- ): grpc.ClientUnaryCall;
1128
- deleteTask(
1129
- request: UUID,
1130
- callback: (
1131
- error: grpc.ServiceError | null,
1132
- response: google_protobuf_wrappers_pb.BoolValue
1133
- ) => void
1134
- ): grpc.ClientUnaryCall;
1135
- deleteTask(
1136
- request: UUID,
1137
- metadata: grpc.Metadata,
1138
- callback: (
1139
- error: grpc.ServiceError | null,
1140
- response: google_protobuf_wrappers_pb.BoolValue
1141
- ) => void
1142
- ): grpc.ClientUnaryCall;
1143
- deleteTask(
1144
- request: UUID,
1145
- metadata: grpc.Metadata,
1146
- options: Partial<grpc.CallOptions>,
1147
- callback: (
1148
- error: grpc.ServiceError | null,
1149
- response: google_protobuf_wrappers_pb.BoolValue
1150
- ) => void
1151
- ): grpc.ClientUnaryCall;
1152
- ping(
1153
- request: Checkin,
1154
- callback: (
1155
- error: grpc.ServiceError | null,
1156
- response: CheckinResp
1157
- ) => void
1158
- ): grpc.ClientUnaryCall;
1159
- ping(
1160
- request: Checkin,
1161
- metadata: grpc.Metadata,
1162
- callback: (
1163
- error: grpc.ServiceError | null,
1164
- response: CheckinResp
1165
- ) => void
1166
- ): grpc.ClientUnaryCall;
1167
- ping(
1168
- request: Checkin,
1169
- metadata: grpc.Metadata,
1170
- options: Partial<grpc.CallOptions>,
1171
- callback: (
1172
- error: grpc.ServiceError | null,
1173
- response: CheckinResp
1174
- ) => void
1175
- ): grpc.ClientUnaryCall;
1176
- syncTasks(
1177
- request: SyncTasksReq,
1178
- options?: Partial<grpc.CallOptions>
1179
- ): grpc.ClientReadableStream<SyncTasksResp>;
1180
- syncTasks(
1181
- request: SyncTasksReq,
1182
- metadata?: grpc.Metadata,
1183
- options?: Partial<grpc.CallOptions>
1184
- ): grpc.ClientReadableStream<SyncTasksResp>;
1185
- updateChecks(
1186
- request: UpdateChecksReq,
1187
- callback: (
1188
- error: grpc.ServiceError | null,
1189
- response: UpdateChecksResp
1190
- ) => void
1191
- ): grpc.ClientUnaryCall;
1192
- updateChecks(
1193
- request: UpdateChecksReq,
1194
- metadata: grpc.Metadata,
1195
- callback: (
1196
- error: grpc.ServiceError | null,
1197
- response: UpdateChecksResp
1198
- ) => void
1199
- ): grpc.ClientUnaryCall;
1200
- updateChecks(
1201
- request: UpdateChecksReq,
1202
- metadata: grpc.Metadata,
1203
- options: Partial<grpc.CallOptions>,
1204
- callback: (
1205
- error: grpc.ServiceError | null,
1206
- response: UpdateChecksResp
1207
- ) => void
1208
- ): grpc.ClientUnaryCall;
1173
+ getKey(request: GetKeyReq, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1174
+ getKey(request: GetKeyReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1175
+ getKey(request: GetKeyReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1176
+ getNonce(request: NonceRequest, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1177
+ getNonce(request: NonceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1178
+ getNonce(request: NonceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1179
+ createWallet(request: CreateWalletReq$1, callback: (error: grpc.ServiceError | null, response: CreateWalletResp) => void): grpc.ClientUnaryCall;
1180
+ createWallet(request: CreateWalletReq$1, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CreateWalletResp) => void): grpc.ClientUnaryCall;
1181
+ createWallet(request: CreateWalletReq$1, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CreateWalletResp) => void): grpc.ClientUnaryCall;
1182
+ listWallets(request: ListWalletReq, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1183
+ listWallets(request: ListWalletReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1184
+ listWallets(request: ListWalletReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1185
+ createTask(request: CreateTaskReq, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1186
+ createTask(request: CreateTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1187
+ createTask(request: CreateTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1188
+ listTasks(request: ListTasksReq, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1189
+ listTasks(request: ListTasksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1190
+ listTasks(request: ListTasksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1191
+ getTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: Task$1) => void): grpc.ClientUnaryCall;
1192
+ getTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Task$1) => void): grpc.ClientUnaryCall;
1193
+ getTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Task$1) => void): grpc.ClientUnaryCall;
1194
+ cancelTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1195
+ cancelTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1196
+ cancelTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1197
+ deleteTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1198
+ deleteTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1199
+ deleteTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1200
+ ping(request: Checkin, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
1201
+ ping(request: Checkin, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
1202
+ ping(request: Checkin, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
1203
+ syncTasks(request: SyncTasksReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<SyncTasksResp>;
1204
+ syncTasks(request: SyncTasksReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<SyncTasksResp>;
1205
+ updateChecks(request: UpdateChecksReq, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
1206
+ updateChecks(request: UpdateChecksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
1207
+ updateChecks(request: UpdateChecksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
1209
1208
  }
1210
1209
 
1211
1210
  declare class AggregatorClient extends grpc.Client implements IAggregatorClient {
1212
- constructor(
1213
- address: string,
1214
- credentials: grpc.ChannelCredentials,
1215
- options?: Partial<grpc.ClientOptions>
1216
- );
1217
- public getKey(
1218
- request: GetKeyReq,
1219
- callback: (
1220
- error: grpc.ServiceError | null,
1221
- response: KeyResp
1222
- ) => void
1223
- ): grpc.ClientUnaryCall;
1224
- public getKey(
1225
- request: GetKeyReq,
1226
- metadata: grpc.Metadata,
1227
- callback: (
1228
- error: grpc.ServiceError | null,
1229
- response: KeyResp
1230
- ) => void
1231
- ): grpc.ClientUnaryCall;
1232
- public getKey(
1233
- request: GetKeyReq,
1234
- metadata: grpc.Metadata,
1235
- options: Partial<grpc.CallOptions>,
1236
- callback: (
1237
- error: grpc.ServiceError | null,
1238
- response: KeyResp
1239
- ) => void
1240
- ): grpc.ClientUnaryCall;
1241
- public getNonce(
1242
- request: NonceRequest,
1243
- callback: (
1244
- error: grpc.ServiceError | null,
1245
- response: NonceResp
1246
- ) => void
1247
- ): grpc.ClientUnaryCall;
1248
- public getNonce(
1249
- request: NonceRequest,
1250
- metadata: grpc.Metadata,
1251
- callback: (
1252
- error: grpc.ServiceError | null,
1253
- response: NonceResp
1254
- ) => void
1255
- ): grpc.ClientUnaryCall;
1256
- public getNonce(
1257
- request: NonceRequest,
1258
- metadata: grpc.Metadata,
1259
- options: Partial<grpc.CallOptions>,
1260
- callback: (
1261
- error: grpc.ServiceError | null,
1262
- response: NonceResp
1263
- ) => void
1264
- ): grpc.ClientUnaryCall;
1265
- public getSmartAccountAddress(
1266
- request: AddressRequest,
1267
- callback: (
1268
- error: grpc.ServiceError | null,
1269
- response: AddressResp
1270
- ) => void
1271
- ): grpc.ClientUnaryCall;
1272
- public getSmartAccountAddress(
1273
- request: AddressRequest,
1274
- metadata: grpc.Metadata,
1275
- callback: (
1276
- error: grpc.ServiceError | null,
1277
- response: AddressResp
1278
- ) => void
1279
- ): grpc.ClientUnaryCall;
1280
- public getSmartAccountAddress(
1281
- request: AddressRequest,
1282
- metadata: grpc.Metadata,
1283
- options: Partial<grpc.CallOptions>,
1284
- callback: (
1285
- error: grpc.ServiceError | null,
1286
- response: AddressResp
1287
- ) => void
1288
- ): grpc.ClientUnaryCall;
1289
- public createTask(
1290
- request: CreateTaskReq,
1291
- callback: (
1292
- error: grpc.ServiceError | null,
1293
- response: CreateTaskResp
1294
- ) => void
1295
- ): grpc.ClientUnaryCall;
1296
- public createTask(
1297
- request: CreateTaskReq,
1298
- metadata: grpc.Metadata,
1299
- callback: (
1300
- error: grpc.ServiceError | null,
1301
- response: CreateTaskResp
1302
- ) => void
1303
- ): grpc.ClientUnaryCall;
1304
- public createTask(
1305
- request: CreateTaskReq,
1306
- metadata: grpc.Metadata,
1307
- options: Partial<grpc.CallOptions>,
1308
- callback: (
1309
- error: grpc.ServiceError | null,
1310
- response: CreateTaskResp
1311
- ) => void
1312
- ): grpc.ClientUnaryCall;
1313
- public listTasks(
1314
- request: ListTasksReq,
1315
- callback: (
1316
- error: grpc.ServiceError | null,
1317
- response: ListTasksResp
1318
- ) => void
1319
- ): grpc.ClientUnaryCall;
1320
- public listTasks(
1321
- request: ListTasksReq,
1322
- metadata: grpc.Metadata,
1323
- callback: (
1324
- error: grpc.ServiceError | null,
1325
- response: ListTasksResp
1326
- ) => void
1327
- ): grpc.ClientUnaryCall;
1328
- public listTasks(
1329
- request: ListTasksReq,
1330
- metadata: grpc.Metadata,
1331
- options: Partial<grpc.CallOptions>,
1332
- callback: (
1333
- error: grpc.ServiceError | null,
1334
- response: ListTasksResp
1335
- ) => void
1336
- ): grpc.ClientUnaryCall;
1337
- public getTask(
1338
- request: UUID,
1339
- callback: (error: grpc.ServiceError | null, response: Task) => void
1340
- ): grpc.ClientUnaryCall;
1341
- public getTask(
1342
- request: UUID,
1343
- metadata: grpc.Metadata,
1344
- callback: (error: grpc.ServiceError | null, response: Task) => void
1345
- ): grpc.ClientUnaryCall;
1346
- public getTask(
1347
- request: UUID,
1348
- metadata: grpc.Metadata,
1349
- options: Partial<grpc.CallOptions>,
1350
- callback: (error: grpc.ServiceError | null, response: Task) => void
1351
- ): grpc.ClientUnaryCall;
1352
- public cancelTask(
1353
- request: UUID,
1354
- callback: (
1355
- error: grpc.ServiceError | null,
1356
- response: google_protobuf_wrappers_pb.BoolValue
1357
- ) => void
1358
- ): grpc.ClientUnaryCall;
1359
- public cancelTask(
1360
- request: UUID,
1361
- metadata: grpc.Metadata,
1362
- callback: (
1363
- error: grpc.ServiceError | null,
1364
- response: google_protobuf_wrappers_pb.BoolValue
1365
- ) => void
1366
- ): grpc.ClientUnaryCall;
1367
- public cancelTask(
1368
- request: UUID,
1369
- metadata: grpc.Metadata,
1370
- options: Partial<grpc.CallOptions>,
1371
- callback: (
1372
- error: grpc.ServiceError | null,
1373
- response: google_protobuf_wrappers_pb.BoolValue
1374
- ) => void
1375
- ): grpc.ClientUnaryCall;
1376
- public deleteTask(
1377
- request: UUID,
1378
- callback: (
1379
- error: grpc.ServiceError | null,
1380
- response: google_protobuf_wrappers_pb.BoolValue
1381
- ) => void
1382
- ): grpc.ClientUnaryCall;
1383
- public deleteTask(
1384
- request: UUID,
1385
- metadata: grpc.Metadata,
1386
- callback: (
1387
- error: grpc.ServiceError | null,
1388
- response: google_protobuf_wrappers_pb.BoolValue
1389
- ) => void
1390
- ): grpc.ClientUnaryCall;
1391
- public deleteTask(
1392
- request: UUID,
1393
- metadata: grpc.Metadata,
1394
- options: Partial<grpc.CallOptions>,
1395
- callback: (
1396
- error: grpc.ServiceError | null,
1397
- response: google_protobuf_wrappers_pb.BoolValue
1398
- ) => void
1399
- ): grpc.ClientUnaryCall;
1400
- public ping(
1401
- request: Checkin,
1402
- callback: (
1403
- error: grpc.ServiceError | null,
1404
- response: CheckinResp
1405
- ) => void
1406
- ): grpc.ClientUnaryCall;
1407
- public ping(
1408
- request: Checkin,
1409
- metadata: grpc.Metadata,
1410
- callback: (
1411
- error: grpc.ServiceError | null,
1412
- response: CheckinResp
1413
- ) => void
1414
- ): grpc.ClientUnaryCall;
1415
- public ping(
1416
- request: Checkin,
1417
- metadata: grpc.Metadata,
1418
- options: Partial<grpc.CallOptions>,
1419
- callback: (
1420
- error: grpc.ServiceError | null,
1421
- response: CheckinResp
1422
- ) => void
1423
- ): grpc.ClientUnaryCall;
1424
- public syncTasks(
1425
- request: SyncTasksReq,
1426
- options?: Partial<grpc.CallOptions>
1427
- ): grpc.ClientReadableStream<SyncTasksResp>;
1428
- public syncTasks(
1429
- request: SyncTasksReq,
1430
- metadata?: grpc.Metadata,
1431
- options?: Partial<grpc.CallOptions>
1432
- ): grpc.ClientReadableStream<SyncTasksResp>;
1433
- public updateChecks(
1434
- request: UpdateChecksReq,
1435
- callback: (
1436
- error: grpc.ServiceError | null,
1437
- response: UpdateChecksResp
1438
- ) => void
1439
- ): grpc.ClientUnaryCall;
1440
- public updateChecks(
1441
- request: UpdateChecksReq,
1442
- metadata: grpc.Metadata,
1443
- callback: (
1444
- error: grpc.ServiceError | null,
1445
- response: UpdateChecksResp
1446
- ) => void
1447
- ): grpc.ClientUnaryCall;
1448
- public updateChecks(
1449
- request: UpdateChecksReq,
1450
- metadata: grpc.Metadata,
1451
- options: Partial<grpc.CallOptions>,
1452
- callback: (
1453
- error: grpc.ServiceError | null,
1454
- response: UpdateChecksResp
1455
- ) => void
1456
- ): grpc.ClientUnaryCall;
1211
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
1212
+ public getKey(request: GetKeyReq, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1213
+ public getKey(request: GetKeyReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1214
+ public getKey(request: GetKeyReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1215
+ public getNonce(request: NonceRequest, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1216
+ public getNonce(request: NonceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1217
+ public getNonce(request: NonceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1218
+ public createWallet(request: CreateWalletReq$1, callback: (error: grpc.ServiceError | null, response: CreateWalletResp) => void): grpc.ClientUnaryCall;
1219
+ public createWallet(request: CreateWalletReq$1, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CreateWalletResp) => void): grpc.ClientUnaryCall;
1220
+ public createWallet(request: CreateWalletReq$1, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CreateWalletResp) => void): grpc.ClientUnaryCall;
1221
+ public listWallets(request: ListWalletReq, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1222
+ public listWallets(request: ListWalletReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1223
+ public listWallets(request: ListWalletReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1224
+ public createTask(request: CreateTaskReq, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1225
+ public createTask(request: CreateTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1226
+ public createTask(request: CreateTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1227
+ public listTasks(request: ListTasksReq, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1228
+ public listTasks(request: ListTasksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1229
+ public listTasks(request: ListTasksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1230
+ public getTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: Task$1) => void): grpc.ClientUnaryCall;
1231
+ public getTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Task$1) => void): grpc.ClientUnaryCall;
1232
+ public getTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Task$1) => void): grpc.ClientUnaryCall;
1233
+ public cancelTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1234
+ public cancelTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1235
+ public cancelTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1236
+ public deleteTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1237
+ public deleteTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1238
+ public deleteTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1239
+ public ping(request: Checkin, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
1240
+ public ping(request: Checkin, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
1241
+ public ping(request: Checkin, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CheckinResp) => void): grpc.ClientUnaryCall;
1242
+ public syncTasks(request: SyncTasksReq, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<SyncTasksResp>;
1243
+ public syncTasks(request: SyncTasksReq, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<SyncTasksResp>;
1244
+ public updateChecks(request: UpdateChecksReq, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
1245
+ public updateChecks(request: UpdateChecksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
1246
+ public updateChecks(request: UpdateChecksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: UpdateChecksResp) => void): grpc.ClientUnaryCall;
1457
1247
  }
1458
1248
 
1459
1249
  type Environment = "production" | "development" | "staging";
1460
- declare const AUTH_KEY_HEADER = "authKey";
1250
+ declare const AUTH_KEY_HEADER = "authkey";
1461
1251
  interface RequestOptions {
1462
1252
  authKey: string;
1463
1253
  }
@@ -1467,37 +1257,48 @@ interface GetKeyResponse {
1467
1257
  interface ClientOption {
1468
1258
  endpoint: string;
1469
1259
  }
1260
+ interface TaskTrigger {
1261
+ triggerType: number;
1262
+ manual?: boolean;
1263
+ cron?: {
1264
+ schedule: string[];
1265
+ };
1266
+ event?: {
1267
+ expression: string;
1268
+ };
1269
+ fixedTime?: {
1270
+ epochs: number[];
1271
+ };
1272
+ block?: {
1273
+ interval: number;
1274
+ };
1275
+ }
1276
+ interface TaskNode {
1277
+ taskType: number;
1278
+ id: string;
1279
+ name: string;
1280
+ ethTransfer?: any;
1281
+ contractWrite?: any;
1282
+ contractRead?: any;
1283
+ restApi?: any;
1284
+ customCode?: any;
1285
+ branch?: any;
1286
+ filter?: any;
1287
+ }
1470
1288
  interface TaskType {
1471
1289
  id: string;
1472
1290
  owner: string;
1473
- smartAccountAddress: string;
1474
- trigger: {
1475
- triggerType: number;
1476
- schedule?: any;
1477
- contractQuery?: any;
1478
- expression: {
1479
- expression: string;
1480
- };
1481
- };
1482
- nodesList: Array<{
1483
- taskType: number;
1484
- id: string;
1485
- name: string;
1486
- nextList: any[];
1487
- ethTransfer?: any;
1488
- contractExecution: any;
1489
- graphqlDataQuery?: any;
1490
- httpDataQuery?: any;
1491
- customCode?: any;
1492
- branch?: any;
1493
- }>;
1291
+ smartWalletAddress: string;
1292
+ trigger: TaskTrigger;
1293
+ nodes: TaskNode[];
1294
+ edges: TaskEdge[];
1494
1295
  startAt: number;
1495
1296
  expiredAt: number;
1496
1297
  memo: string;
1497
1298
  completedAt: number;
1498
1299
  status: number;
1499
- repeatable: boolean;
1500
- executionsList: any[];
1300
+ maxExecution: number;
1301
+ executions: Execution[];
1501
1302
  }
1502
1303
  interface CreateTaskResponse {
1503
1304
  id: string;
@@ -1514,9 +1315,41 @@ interface CancelTaskResponse {
1514
1315
  interface DeleteTaskResponse {
1515
1316
  value: boolean;
1516
1317
  }
1517
- interface GetAddressesResponse {
1318
+ interface SmartWallet {
1319
+ address: string;
1320
+ salt: string;
1321
+ factory: string;
1322
+ }
1323
+ interface CreateWalletReq {
1324
+ salt: string;
1325
+ factoryAddress?: string;
1326
+ }
1327
+ interface Execution {
1328
+ epoch: number;
1329
+ userOpHash: string;
1330
+ error: string;
1331
+ }
1332
+ interface TaskEdge {
1333
+ id: string;
1334
+ source: string;
1335
+ target: string;
1336
+ }
1337
+
1338
+ declare class Task implements TaskType {
1339
+ id: string;
1340
+ status: number;
1518
1341
  owner: string;
1519
- smart_account_address: string;
1342
+ smartWalletAddress: string;
1343
+ trigger: TaskTrigger;
1344
+ nodes: TaskNode[];
1345
+ edges: TaskEdge[];
1346
+ startAt: number;
1347
+ expiredAt: number;
1348
+ memo: string;
1349
+ completedAt: number;
1350
+ maxExecution: number;
1351
+ executions: Execution[];
1352
+ constructor(task: Task$1);
1520
1353
  }
1521
1354
 
1522
1355
  declare class BaseClient {
@@ -1525,34 +1358,20 @@ declare class BaseClient {
1525
1358
  protected metadata: Metadata;
1526
1359
  constructor(opts: ClientOption);
1527
1360
  isAuthKeyValid(key: string): boolean;
1528
- authWithAPIKey(apiKey: string, expiredAtEpoch: number): Promise<GetKeyResponse>;
1361
+ authWithAPIKey(address: string, apiKey: string, expiredAtEpoch: number): Promise<GetKeyResponse>;
1529
1362
  authWithSignature(address: string, signature: string, expiredAtEpoch: number): Promise<GetKeyResponse>;
1530
1363
  protected _callRPC<TResponse, TRequest>(method: string, request: TRequest | any, options?: RequestOptions): Promise<TResponse>;
1364
+ protected _callAnonRPC<TResponse, TRequest>(method: string, request: TRequest | any, options?: RequestOptions): Promise<TResponse>;
1531
1365
  }
1532
1366
  declare class Client extends BaseClient {
1533
1367
  constructor(config: ClientOption);
1534
- getAddresses(address: string, { authKey }: {
1535
- authKey: string;
1536
- }): Promise<GetAddressesResponse>;
1537
- createTask({ address, oracleContract, tokenContract, }: {
1538
- address: string;
1539
- tokenContract: string;
1540
- oracleContract: string;
1541
- }, { authKey }: {
1542
- authKey: string;
1543
- }): Promise<CreateTaskResponse>;
1544
- listTasks(address: string, { authKey }: {
1545
- authKey: string;
1546
- }): Promise<ListTasksResponse>;
1547
- getTask(id: string, { authKey }: {
1548
- authKey: string;
1549
- }): Promise<TaskType>;
1550
- cancelTask(id: string, { authKey }: {
1551
- authKey: string;
1552
- }): Promise<CancelTaskResponse>;
1553
- deleteTask(id: string, { authKey }: {
1554
- authKey: string;
1555
- }): Promise<DeleteTaskResponse>;
1556
- }
1557
-
1558
- export { AUTH_KEY_HEADER, type CancelTaskResponse, type ClientOption, type CreateTaskResponse, type DeleteTaskResponse, type Environment, type GetAddressesResponse, type GetKeyResponse, type ListTasksResponse, type RequestOptions, type TaskType, Client as default, getKeyRequestMessage };
1368
+ listSmartWallets(options: RequestOptions): Promise<SmartWallet[]>;
1369
+ createWallet({ salt, factoryAddress }: CreateWalletReq, options: RequestOptions): Promise<SmartWallet>;
1370
+ createTask(payload: any, options: RequestOptions): Promise<string>;
1371
+ listTasks(address: string, options: RequestOptions): Promise<Task[]>;
1372
+ getTask(id: string, options: RequestOptions): Promise<TaskType>;
1373
+ cancelTask(id: string, options: RequestOptions): Promise<boolean>;
1374
+ deleteTask(id: string, options: RequestOptions): Promise<boolean>;
1375
+ }
1376
+
1377
+ export { AUTH_KEY_HEADER, type CancelTaskResponse, type ClientOption, type CreateTaskResponse, type CreateWalletReq, type DeleteTaskResponse, type Environment, type Execution, type GetKeyResponse, type ListTasksResponse, type RequestOptions, type SmartWallet, type TaskEdge, type TaskNode, type TaskTrigger, type TaskType, Client as default, getKeyRequestMessage };