@avaprotocol/sdk-js 1.3.5 → 1.3.6

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.
@@ -0,0 +1,2195 @@
1
+ import * as grpc from '@grpc/grpc-js';
2
+ import { Metadata } from '@grpc/grpc-js';
3
+ import * as jspb from 'google-protobuf';
4
+ import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
5
+ import * as google_protobuf_wrappers_pb from 'google-protobuf/google/protobuf/wrappers_pb';
6
+ import { NodeType, GetKeyRequestApiKey, GetKeyResponse, GetKeyRequestSignature } from '@avaprotocol/types';
7
+
8
+ // package: aggregator
9
+ // file: avs.proto
10
+
11
+
12
+
13
+ declare class IdReq extends jspb.Message {
14
+ getId(): string;
15
+ setId(value: string): IdReq;
16
+
17
+ serializeBinary(): Uint8Array;
18
+ toObject(includeInstance?: boolean): IdReq.AsObject;
19
+ static toObject(includeInstance: boolean, msg: IdReq): IdReq.AsObject;
20
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
21
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
22
+ static serializeBinaryToWriter(message: IdReq, writer: jspb.BinaryWriter): void;
23
+ static deserializeBinary(bytes: Uint8Array): IdReq;
24
+ static deserializeBinaryFromReader(message: IdReq, reader: jspb.BinaryReader): IdReq;
25
+ }
26
+
27
+ declare namespace IdReq {
28
+ export type AsObject = {
29
+ id: string,
30
+ }
31
+ }
32
+
33
+ declare class FixedTimeCondition extends jspb.Message {
34
+ clearEpochsList(): void;
35
+ getEpochsList(): Array<number>;
36
+ setEpochsList(value: Array<number>): FixedTimeCondition;
37
+ addEpochs(value: number, index?: number): number;
38
+
39
+ serializeBinary(): Uint8Array;
40
+ toObject(includeInstance?: boolean): FixedTimeCondition.AsObject;
41
+ static toObject(includeInstance: boolean, msg: FixedTimeCondition): FixedTimeCondition.AsObject;
42
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
43
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
44
+ static serializeBinaryToWriter(message: FixedTimeCondition, writer: jspb.BinaryWriter): void;
45
+ static deserializeBinary(bytes: Uint8Array): FixedTimeCondition;
46
+ static deserializeBinaryFromReader(message: FixedTimeCondition, reader: jspb.BinaryReader): FixedTimeCondition;
47
+ }
48
+
49
+ declare namespace FixedTimeCondition {
50
+ export type AsObject = {
51
+ epochsList: Array<number>,
52
+ }
53
+ }
54
+
55
+ declare class CronCondition extends jspb.Message {
56
+ clearScheduleList(): void;
57
+ getScheduleList(): Array<string>;
58
+ setScheduleList(value: Array<string>): CronCondition;
59
+ addSchedule(value: string, index?: number): string;
60
+
61
+ serializeBinary(): Uint8Array;
62
+ toObject(includeInstance?: boolean): CronCondition.AsObject;
63
+ static toObject(includeInstance: boolean, msg: CronCondition): CronCondition.AsObject;
64
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
65
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
66
+ static serializeBinaryToWriter(message: CronCondition, writer: jspb.BinaryWriter): void;
67
+ static deserializeBinary(bytes: Uint8Array): CronCondition;
68
+ static deserializeBinaryFromReader(message: CronCondition, reader: jspb.BinaryReader): CronCondition;
69
+ }
70
+
71
+ declare namespace CronCondition {
72
+ export type AsObject = {
73
+ scheduleList: Array<string>,
74
+ }
75
+ }
76
+
77
+ declare class BlockCondition extends jspb.Message {
78
+ getInterval(): number;
79
+ setInterval(value: number): BlockCondition;
80
+
81
+ serializeBinary(): Uint8Array;
82
+ toObject(includeInstance?: boolean): BlockCondition.AsObject;
83
+ static toObject(includeInstance: boolean, msg: BlockCondition): BlockCondition.AsObject;
84
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
85
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
86
+ static serializeBinaryToWriter(message: BlockCondition, writer: jspb.BinaryWriter): void;
87
+ static deserializeBinary(bytes: Uint8Array): BlockCondition;
88
+ static deserializeBinaryFromReader(message: BlockCondition, reader: jspb.BinaryReader): BlockCondition;
89
+ }
90
+
91
+ declare namespace BlockCondition {
92
+ export type AsObject = {
93
+ interval: number,
94
+ }
95
+ }
96
+
97
+ declare class EventCondition extends jspb.Message {
98
+ clearMatcherList(): void;
99
+ getMatcherList(): Array<EventCondition.Matcher>;
100
+ setMatcherList(value: Array<EventCondition.Matcher>): EventCondition;
101
+ addMatcher(value?: EventCondition.Matcher, index?: number): EventCondition.Matcher;
102
+ getExpression(): string;
103
+ setExpression(value: string): EventCondition;
104
+
105
+ serializeBinary(): Uint8Array;
106
+ toObject(includeInstance?: boolean): EventCondition.AsObject;
107
+ static toObject(includeInstance: boolean, msg: EventCondition): EventCondition.AsObject;
108
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
109
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
110
+ static serializeBinaryToWriter(message: EventCondition, writer: jspb.BinaryWriter): void;
111
+ static deserializeBinary(bytes: Uint8Array): EventCondition;
112
+ static deserializeBinaryFromReader(message: EventCondition, reader: jspb.BinaryReader): EventCondition;
113
+ }
114
+
115
+ declare namespace EventCondition {
116
+ export type AsObject = {
117
+ matcherList: Array<EventCondition.Matcher.AsObject>,
118
+ expression: string,
119
+ }
120
+
121
+
122
+ export class Matcher extends jspb.Message {
123
+ getType(): string;
124
+ setType(value: string): Matcher;
125
+ clearValueList(): void;
126
+ getValueList(): Array<string>;
127
+ setValueList(value: Array<string>): Matcher;
128
+ addValue(value: string, index?: number): string;
129
+
130
+ serializeBinary(): Uint8Array;
131
+ toObject(includeInstance?: boolean): Matcher.AsObject;
132
+ static toObject(includeInstance: boolean, msg: Matcher): Matcher.AsObject;
133
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
134
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
135
+ static serializeBinaryToWriter(message: Matcher, writer: jspb.BinaryWriter): void;
136
+ static deserializeBinary(bytes: Uint8Array): Matcher;
137
+ static deserializeBinaryFromReader(message: Matcher, reader: jspb.BinaryReader): Matcher;
138
+ }
139
+
140
+ export namespace Matcher {
141
+ export type AsObject = {
142
+ type: string,
143
+ valueList: Array<string>,
144
+ }
145
+ }
146
+
147
+ }
148
+
149
+ declare class TaskTrigger extends jspb.Message {
150
+ getName(): string;
151
+ setName(value: string): TaskTrigger;
152
+
153
+ hasManual(): boolean;
154
+ clearManual(): void;
155
+ getManual(): boolean;
156
+ setManual(value: boolean): TaskTrigger;
157
+
158
+ hasFixedTime(): boolean;
159
+ clearFixedTime(): void;
160
+ getFixedTime(): FixedTimeCondition | undefined;
161
+ setFixedTime(value?: FixedTimeCondition): TaskTrigger;
162
+
163
+ hasCron(): boolean;
164
+ clearCron(): void;
165
+ getCron(): CronCondition | undefined;
166
+ setCron(value?: CronCondition): TaskTrigger;
167
+
168
+ hasBlock(): boolean;
169
+ clearBlock(): void;
170
+ getBlock(): BlockCondition | undefined;
171
+ setBlock(value?: BlockCondition): TaskTrigger;
172
+
173
+ hasEvent(): boolean;
174
+ clearEvent(): void;
175
+ getEvent(): EventCondition | undefined;
176
+ setEvent(value?: EventCondition): TaskTrigger;
177
+ getId(): string;
178
+ setId(value: string): TaskTrigger;
179
+
180
+ getTriggerTypeCase(): TaskTrigger.TriggerTypeCase;
181
+
182
+ serializeBinary(): Uint8Array;
183
+ toObject(includeInstance?: boolean): TaskTrigger.AsObject;
184
+ static toObject(includeInstance: boolean, msg: TaskTrigger): TaskTrigger.AsObject;
185
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
186
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
187
+ static serializeBinaryToWriter(message: TaskTrigger, writer: jspb.BinaryWriter): void;
188
+ static deserializeBinary(bytes: Uint8Array): TaskTrigger;
189
+ static deserializeBinaryFromReader(message: TaskTrigger, reader: jspb.BinaryReader): TaskTrigger;
190
+ }
191
+
192
+ declare namespace TaskTrigger {
193
+ export type AsObject = {
194
+ name: string,
195
+ manual: boolean,
196
+ fixedTime?: FixedTimeCondition.AsObject,
197
+ cron?: CronCondition.AsObject,
198
+ block?: BlockCondition.AsObject,
199
+ event?: EventCondition.AsObject,
200
+ id: string,
201
+ }
202
+
203
+ export enum TriggerTypeCase {
204
+ TRIGGER_TYPE_NOT_SET = 0,
205
+ MANUAL = 2,
206
+ FIXED_TIME = 3,
207
+ CRON = 4,
208
+ BLOCK = 5,
209
+ EVENT = 6,
210
+ }
211
+
212
+ }
213
+
214
+ declare class ETHTransferNode$1 extends jspb.Message {
215
+ getDestination(): string;
216
+ setDestination(value: string): ETHTransferNode$1;
217
+ getAmount(): string;
218
+ setAmount(value: string): ETHTransferNode$1;
219
+
220
+ serializeBinary(): Uint8Array;
221
+ toObject(includeInstance?: boolean): ETHTransferNode$1.AsObject;
222
+ static toObject(includeInstance: boolean, msg: ETHTransferNode$1): ETHTransferNode$1.AsObject;
223
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
224
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
225
+ static serializeBinaryToWriter(message: ETHTransferNode$1, writer: jspb.BinaryWriter): void;
226
+ static deserializeBinary(bytes: Uint8Array): ETHTransferNode$1;
227
+ static deserializeBinaryFromReader(message: ETHTransferNode$1, reader: jspb.BinaryReader): ETHTransferNode$1;
228
+ }
229
+
230
+ declare namespace ETHTransferNode$1 {
231
+ export type AsObject = {
232
+ destination: string,
233
+ amount: string,
234
+ }
235
+ }
236
+
237
+ declare class ContractWriteNode$1 extends jspb.Message {
238
+ getContractAddress(): string;
239
+ setContractAddress(value: string): ContractWriteNode$1;
240
+ getCallData(): string;
241
+ setCallData(value: string): ContractWriteNode$1;
242
+ getContractAbi(): string;
243
+ setContractAbi(value: string): ContractWriteNode$1;
244
+
245
+ serializeBinary(): Uint8Array;
246
+ toObject(includeInstance?: boolean): ContractWriteNode$1.AsObject;
247
+ static toObject(includeInstance: boolean, msg: ContractWriteNode$1): ContractWriteNode$1.AsObject;
248
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
249
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
250
+ static serializeBinaryToWriter(message: ContractWriteNode$1, writer: jspb.BinaryWriter): void;
251
+ static deserializeBinary(bytes: Uint8Array): ContractWriteNode$1;
252
+ static deserializeBinaryFromReader(message: ContractWriteNode$1, reader: jspb.BinaryReader): ContractWriteNode$1;
253
+ }
254
+
255
+ declare namespace ContractWriteNode$1 {
256
+ export type AsObject = {
257
+ contractAddress: string,
258
+ callData: string,
259
+ contractAbi: string,
260
+ }
261
+ }
262
+
263
+ declare class ContractReadNode$1 extends jspb.Message {
264
+ getContractAddress(): string;
265
+ setContractAddress(value: string): ContractReadNode$1;
266
+ getCallData(): string;
267
+ setCallData(value: string): ContractReadNode$1;
268
+ getContractAbi(): string;
269
+ setContractAbi(value: string): ContractReadNode$1;
270
+
271
+ serializeBinary(): Uint8Array;
272
+ toObject(includeInstance?: boolean): ContractReadNode$1.AsObject;
273
+ static toObject(includeInstance: boolean, msg: ContractReadNode$1): ContractReadNode$1.AsObject;
274
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
275
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
276
+ static serializeBinaryToWriter(message: ContractReadNode$1, writer: jspb.BinaryWriter): void;
277
+ static deserializeBinary(bytes: Uint8Array): ContractReadNode$1;
278
+ static deserializeBinaryFromReader(message: ContractReadNode$1, reader: jspb.BinaryReader): ContractReadNode$1;
279
+ }
280
+
281
+ declare namespace ContractReadNode$1 {
282
+ export type AsObject = {
283
+ contractAddress: string,
284
+ callData: string,
285
+ contractAbi: string,
286
+ }
287
+ }
288
+
289
+ declare class GraphQLQueryNode$1 extends jspb.Message {
290
+ getUrl(): string;
291
+ setUrl(value: string): GraphQLQueryNode$1;
292
+ getQuery(): string;
293
+ setQuery(value: string): GraphQLQueryNode$1;
294
+
295
+ getVariablesMap(): jspb.Map<string, string>;
296
+ clearVariablesMap(): void;
297
+
298
+ serializeBinary(): Uint8Array;
299
+ toObject(includeInstance?: boolean): GraphQLQueryNode$1.AsObject;
300
+ static toObject(includeInstance: boolean, msg: GraphQLQueryNode$1): GraphQLQueryNode$1.AsObject;
301
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
302
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
303
+ static serializeBinaryToWriter(message: GraphQLQueryNode$1, writer: jspb.BinaryWriter): void;
304
+ static deserializeBinary(bytes: Uint8Array): GraphQLQueryNode$1;
305
+ static deserializeBinaryFromReader(message: GraphQLQueryNode$1, reader: jspb.BinaryReader): GraphQLQueryNode$1;
306
+ }
307
+
308
+ declare namespace GraphQLQueryNode$1 {
309
+ export type AsObject = {
310
+ url: string,
311
+ query: string,
312
+
313
+ variablesMap: Array<[string, string]>,
314
+ }
315
+ }
316
+
317
+ declare class RestAPINode$1 extends jspb.Message {
318
+ getUrl(): string;
319
+ setUrl(value: string): RestAPINode$1;
320
+
321
+ getHeadersMap(): jspb.Map<string, string>;
322
+ clearHeadersMap(): void;
323
+ getBody(): string;
324
+ setBody(value: string): RestAPINode$1;
325
+ getMethod(): string;
326
+ setMethod(value: string): RestAPINode$1;
327
+
328
+ serializeBinary(): Uint8Array;
329
+ toObject(includeInstance?: boolean): RestAPINode$1.AsObject;
330
+ static toObject(includeInstance: boolean, msg: RestAPINode$1): RestAPINode$1.AsObject;
331
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
332
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
333
+ static serializeBinaryToWriter(message: RestAPINode$1, writer: jspb.BinaryWriter): void;
334
+ static deserializeBinary(bytes: Uint8Array): RestAPINode$1;
335
+ static deserializeBinaryFromReader(message: RestAPINode$1, reader: jspb.BinaryReader): RestAPINode$1;
336
+ }
337
+
338
+ declare namespace RestAPINode$1 {
339
+ export type AsObject = {
340
+ url: string,
341
+
342
+ headersMap: Array<[string, string]>,
343
+ body: string,
344
+ method: string,
345
+ }
346
+ }
347
+
348
+ declare class CustomCodeNode$1 extends jspb.Message {
349
+ getLang(): CustomCodeLang;
350
+ setLang(value: CustomCodeLang): CustomCodeNode$1;
351
+ getSource(): string;
352
+ setSource(value: string): CustomCodeNode$1;
353
+
354
+ serializeBinary(): Uint8Array;
355
+ toObject(includeInstance?: boolean): CustomCodeNode$1.AsObject;
356
+ static toObject(includeInstance: boolean, msg: CustomCodeNode$1): CustomCodeNode$1.AsObject;
357
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
358
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
359
+ static serializeBinaryToWriter(message: CustomCodeNode$1, writer: jspb.BinaryWriter): void;
360
+ static deserializeBinary(bytes: Uint8Array): CustomCodeNode$1;
361
+ static deserializeBinaryFromReader(message: CustomCodeNode$1, reader: jspb.BinaryReader): CustomCodeNode$1;
362
+ }
363
+
364
+ declare namespace CustomCodeNode$1 {
365
+ export type AsObject = {
366
+ lang: CustomCodeLang,
367
+ source: string,
368
+ }
369
+ }
370
+
371
+ declare class Condition extends jspb.Message {
372
+ getId(): string;
373
+ setId(value: string): Condition;
374
+ getType(): string;
375
+ setType(value: string): Condition;
376
+ getExpression(): string;
377
+ setExpression(value: string): Condition;
378
+
379
+ serializeBinary(): Uint8Array;
380
+ toObject(includeInstance?: boolean): Condition.AsObject;
381
+ static toObject(includeInstance: boolean, msg: Condition): Condition.AsObject;
382
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
383
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
384
+ static serializeBinaryToWriter(message: Condition, writer: jspb.BinaryWriter): void;
385
+ static deserializeBinary(bytes: Uint8Array): Condition;
386
+ static deserializeBinaryFromReader(message: Condition, reader: jspb.BinaryReader): Condition;
387
+ }
388
+
389
+ declare namespace Condition {
390
+ export type AsObject = {
391
+ id: string,
392
+ type: string,
393
+ expression: string,
394
+ }
395
+ }
396
+
397
+ declare class BranchNode$1 extends jspb.Message {
398
+ clearConditionsList(): void;
399
+ getConditionsList(): Array<Condition>;
400
+ setConditionsList(value: Array<Condition>): BranchNode$1;
401
+ addConditions(value?: Condition, index?: number): Condition;
402
+
403
+ serializeBinary(): Uint8Array;
404
+ toObject(includeInstance?: boolean): BranchNode$1.AsObject;
405
+ static toObject(includeInstance: boolean, msg: BranchNode$1): BranchNode$1.AsObject;
406
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
407
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
408
+ static serializeBinaryToWriter(message: BranchNode$1, writer: jspb.BinaryWriter): void;
409
+ static deserializeBinary(bytes: Uint8Array): BranchNode$1;
410
+ static deserializeBinaryFromReader(message: BranchNode$1, reader: jspb.BinaryReader): BranchNode$1;
411
+ }
412
+
413
+ declare namespace BranchNode$1 {
414
+ export type AsObject = {
415
+ conditionsList: Array<Condition.AsObject>,
416
+ }
417
+ }
418
+
419
+ declare class FilterNode$1 extends jspb.Message {
420
+ getExpression(): string;
421
+ setExpression(value: string): FilterNode$1;
422
+ getInput(): string;
423
+ setInput(value: string): FilterNode$1;
424
+
425
+ serializeBinary(): Uint8Array;
426
+ toObject(includeInstance?: boolean): FilterNode$1.AsObject;
427
+ static toObject(includeInstance: boolean, msg: FilterNode$1): FilterNode$1.AsObject;
428
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
429
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
430
+ static serializeBinaryToWriter(message: FilterNode$1, writer: jspb.BinaryWriter): void;
431
+ static deserializeBinary(bytes: Uint8Array): FilterNode$1;
432
+ static deserializeBinaryFromReader(message: FilterNode$1, reader: jspb.BinaryReader): FilterNode$1;
433
+ }
434
+
435
+ declare namespace FilterNode$1 {
436
+ export type AsObject = {
437
+ expression: string,
438
+ input: string,
439
+ }
440
+ }
441
+
442
+ declare class LoopNode extends jspb.Message {
443
+ getInput(): string;
444
+ setInput(value: string): LoopNode;
445
+ getIterVal(): string;
446
+ setIterVal(value: string): LoopNode;
447
+ getIterKey(): string;
448
+ setIterKey(value: string): LoopNode;
449
+
450
+ hasEthTransfer(): boolean;
451
+ clearEthTransfer(): void;
452
+ getEthTransfer(): ETHTransferNode$1 | undefined;
453
+ setEthTransfer(value?: ETHTransferNode$1): LoopNode;
454
+
455
+ hasContractWrite(): boolean;
456
+ clearContractWrite(): void;
457
+ getContractWrite(): ContractWriteNode$1 | undefined;
458
+ setContractWrite(value?: ContractWriteNode$1): LoopNode;
459
+
460
+ hasContractRead(): boolean;
461
+ clearContractRead(): void;
462
+ getContractRead(): ContractReadNode$1 | undefined;
463
+ setContractRead(value?: ContractReadNode$1): LoopNode;
464
+
465
+ hasGraphqlDataQuery(): boolean;
466
+ clearGraphqlDataQuery(): void;
467
+ getGraphqlDataQuery(): GraphQLQueryNode$1 | undefined;
468
+ setGraphqlDataQuery(value?: GraphQLQueryNode$1): LoopNode;
469
+
470
+ hasRestApi(): boolean;
471
+ clearRestApi(): void;
472
+ getRestApi(): RestAPINode$1 | undefined;
473
+ setRestApi(value?: RestAPINode$1): LoopNode;
474
+
475
+ hasCustomCode(): boolean;
476
+ clearCustomCode(): void;
477
+ getCustomCode(): CustomCodeNode$1 | undefined;
478
+ setCustomCode(value?: CustomCodeNode$1): LoopNode;
479
+
480
+ getRunnerCase(): LoopNode.RunnerCase;
481
+
482
+ serializeBinary(): Uint8Array;
483
+ toObject(includeInstance?: boolean): LoopNode.AsObject;
484
+ static toObject(includeInstance: boolean, msg: LoopNode): LoopNode.AsObject;
485
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
486
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
487
+ static serializeBinaryToWriter(message: LoopNode, writer: jspb.BinaryWriter): void;
488
+ static deserializeBinary(bytes: Uint8Array): LoopNode;
489
+ static deserializeBinaryFromReader(message: LoopNode, reader: jspb.BinaryReader): LoopNode;
490
+ }
491
+
492
+ declare namespace LoopNode {
493
+ export type AsObject = {
494
+ input: string,
495
+ iterVal: string,
496
+ iterKey: string,
497
+ ethTransfer?: ETHTransferNode$1.AsObject,
498
+ contractWrite?: ContractWriteNode$1.AsObject,
499
+ contractRead?: ContractReadNode$1.AsObject,
500
+ graphqlDataQuery?: GraphQLQueryNode$1.AsObject,
501
+ restApi?: RestAPINode$1.AsObject,
502
+ customCode?: CustomCodeNode$1.AsObject,
503
+ }
504
+
505
+ export enum RunnerCase {
506
+ RUNNER_NOT_SET = 0,
507
+ ETH_TRANSFER = 10,
508
+ CONTRACT_WRITE = 11,
509
+ CONTRACT_READ = 12,
510
+ GRAPHQL_DATA_QUERY = 13,
511
+ REST_API = 14,
512
+ CUSTOM_CODE = 15,
513
+ }
514
+
515
+ }
516
+
517
+ declare class TaskEdge extends jspb.Message {
518
+ getId(): string;
519
+ setId(value: string): TaskEdge;
520
+ getSource(): string;
521
+ setSource(value: string): TaskEdge;
522
+ getTarget(): string;
523
+ setTarget(value: string): TaskEdge;
524
+
525
+ serializeBinary(): Uint8Array;
526
+ toObject(includeInstance?: boolean): TaskEdge.AsObject;
527
+ static toObject(includeInstance: boolean, msg: TaskEdge): TaskEdge.AsObject;
528
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
529
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
530
+ static serializeBinaryToWriter(message: TaskEdge, writer: jspb.BinaryWriter): void;
531
+ static deserializeBinary(bytes: Uint8Array): TaskEdge;
532
+ static deserializeBinaryFromReader(message: TaskEdge, reader: jspb.BinaryReader): TaskEdge;
533
+ }
534
+
535
+ declare namespace TaskEdge {
536
+ export type AsObject = {
537
+ id: string,
538
+ source: string,
539
+ target: string,
540
+ }
541
+ }
542
+
543
+ declare class TaskNode extends jspb.Message {
544
+ getId(): string;
545
+ setId(value: string): TaskNode;
546
+ getName(): string;
547
+ setName(value: string): TaskNode;
548
+
549
+ hasEthTransfer(): boolean;
550
+ clearEthTransfer(): void;
551
+ getEthTransfer(): ETHTransferNode$1 | undefined;
552
+ setEthTransfer(value?: ETHTransferNode$1): TaskNode;
553
+
554
+ hasContractWrite(): boolean;
555
+ clearContractWrite(): void;
556
+ getContractWrite(): ContractWriteNode$1 | undefined;
557
+ setContractWrite(value?: ContractWriteNode$1): TaskNode;
558
+
559
+ hasContractRead(): boolean;
560
+ clearContractRead(): void;
561
+ getContractRead(): ContractReadNode$1 | undefined;
562
+ setContractRead(value?: ContractReadNode$1): TaskNode;
563
+
564
+ hasGraphqlQuery(): boolean;
565
+ clearGraphqlQuery(): void;
566
+ getGraphqlQuery(): GraphQLQueryNode$1 | undefined;
567
+ setGraphqlQuery(value?: GraphQLQueryNode$1): TaskNode;
568
+
569
+ hasRestApi(): boolean;
570
+ clearRestApi(): void;
571
+ getRestApi(): RestAPINode$1 | undefined;
572
+ setRestApi(value?: RestAPINode$1): TaskNode;
573
+
574
+ hasBranch(): boolean;
575
+ clearBranch(): void;
576
+ getBranch(): BranchNode$1 | undefined;
577
+ setBranch(value?: BranchNode$1): TaskNode;
578
+
579
+ hasFilter(): boolean;
580
+ clearFilter(): void;
581
+ getFilter(): FilterNode$1 | undefined;
582
+ setFilter(value?: FilterNode$1): TaskNode;
583
+
584
+ hasLoop(): boolean;
585
+ clearLoop(): void;
586
+ getLoop(): LoopNode | undefined;
587
+ setLoop(value?: LoopNode): TaskNode;
588
+
589
+ hasCustomCode(): boolean;
590
+ clearCustomCode(): void;
591
+ getCustomCode(): CustomCodeNode$1 | undefined;
592
+ setCustomCode(value?: CustomCodeNode$1): TaskNode;
593
+
594
+ getTaskTypeCase(): TaskNode.TaskTypeCase;
595
+
596
+ serializeBinary(): Uint8Array;
597
+ toObject(includeInstance?: boolean): TaskNode.AsObject;
598
+ static toObject(includeInstance: boolean, msg: TaskNode): TaskNode.AsObject;
599
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
600
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
601
+ static serializeBinaryToWriter(message: TaskNode, writer: jspb.BinaryWriter): void;
602
+ static deserializeBinary(bytes: Uint8Array): TaskNode;
603
+ static deserializeBinaryFromReader(message: TaskNode, reader: jspb.BinaryReader): TaskNode;
604
+ }
605
+
606
+ declare namespace TaskNode {
607
+ export type AsObject = {
608
+ id: string,
609
+ name: string,
610
+ ethTransfer?: ETHTransferNode$1.AsObject,
611
+ contractWrite?: ContractWriteNode$1.AsObject,
612
+ contractRead?: ContractReadNode$1.AsObject,
613
+ graphqlQuery?: GraphQLQueryNode$1.AsObject,
614
+ restApi?: RestAPINode$1.AsObject,
615
+ branch?: BranchNode$1.AsObject,
616
+ filter?: FilterNode$1.AsObject,
617
+ loop?: LoopNode.AsObject,
618
+ customCode?: CustomCodeNode$1.AsObject,
619
+ }
620
+
621
+ export enum TaskTypeCase {
622
+ TASK_TYPE_NOT_SET = 0,
623
+ ETH_TRANSFER = 10,
624
+ CONTRACT_WRITE = 11,
625
+ CONTRACT_READ = 12,
626
+ GRAPHQL_QUERY = 13,
627
+ REST_API = 14,
628
+ BRANCH = 15,
629
+ FILTER = 16,
630
+ LOOP = 17,
631
+ CUSTOM_CODE = 18,
632
+ }
633
+
634
+ }
635
+
636
+ declare class Execution$1 extends jspb.Message {
637
+ getId(): string;
638
+ setId(value: string): Execution$1;
639
+ getStartAt(): number;
640
+ setStartAt(value: number): Execution$1;
641
+ getEndAt(): number;
642
+ setEndAt(value: number): Execution$1;
643
+ getSuccess(): boolean;
644
+ setSuccess(value: boolean): Execution$1;
645
+ getError(): string;
646
+ setError(value: string): Execution$1;
647
+
648
+ hasTriggerMetadata(): boolean;
649
+ clearTriggerMetadata(): void;
650
+ getTriggerMetadata(): TriggerMetadata$1 | undefined;
651
+ setTriggerMetadata(value?: TriggerMetadata$1): Execution$1;
652
+ getResult(): string;
653
+ setResult(value: string): Execution$1;
654
+ clearStepsList(): void;
655
+ getStepsList(): Array<Execution$1.Step>;
656
+ setStepsList(value: Array<Execution$1.Step>): Execution$1;
657
+ addSteps(value?: Execution$1.Step, index?: number): Execution$1.Step;
658
+
659
+ serializeBinary(): Uint8Array;
660
+ toObject(includeInstance?: boolean): Execution$1.AsObject;
661
+ static toObject(includeInstance: boolean, msg: Execution$1): Execution$1.AsObject;
662
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
663
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
664
+ static serializeBinaryToWriter(message: Execution$1, writer: jspb.BinaryWriter): void;
665
+ static deserializeBinary(bytes: Uint8Array): Execution$1;
666
+ static deserializeBinaryFromReader(message: Execution$1, reader: jspb.BinaryReader): Execution$1;
667
+ }
668
+
669
+ declare namespace Execution$1 {
670
+ export type AsObject = {
671
+ id: string,
672
+ startAt: number,
673
+ endAt: number,
674
+ success: boolean,
675
+ error: string,
676
+ triggerMetadata?: TriggerMetadata$1.AsObject,
677
+ result: string,
678
+ stepsList: Array<Execution$1.Step.AsObject>,
679
+ }
680
+
681
+
682
+ export class Step extends jspb.Message {
683
+ getNodeId(): string;
684
+ setNodeId(value: string): Step;
685
+ getSuccess(): boolean;
686
+ setSuccess(value: boolean): Step;
687
+ getOutputData(): string;
688
+ setOutputData(value: string): Step;
689
+ getLog(): string;
690
+ setLog(value: string): Step;
691
+ getError(): string;
692
+ setError(value: string): Step;
693
+ getStartAt(): number;
694
+ setStartAt(value: number): Step;
695
+ getEndAt(): number;
696
+ setEndAt(value: number): Step;
697
+
698
+ serializeBinary(): Uint8Array;
699
+ toObject(includeInstance?: boolean): Step.AsObject;
700
+ static toObject(includeInstance: boolean, msg: Step): Step.AsObject;
701
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
702
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
703
+ static serializeBinaryToWriter(message: Step, writer: jspb.BinaryWriter): void;
704
+ static deserializeBinary(bytes: Uint8Array): Step;
705
+ static deserializeBinaryFromReader(message: Step, reader: jspb.BinaryReader): Step;
706
+ }
707
+
708
+ export namespace Step {
709
+ export type AsObject = {
710
+ nodeId: string,
711
+ success: boolean,
712
+ outputData: string,
713
+ log: string,
714
+ error: string,
715
+ startAt: number,
716
+ endAt: number,
717
+ }
718
+ }
719
+
720
+ }
721
+
722
+ declare class Task extends jspb.Message {
723
+ getId(): string;
724
+ setId(value: string): Task;
725
+ getOwner(): string;
726
+ setOwner(value: string): Task;
727
+ getSmartWalletAddress(): string;
728
+ setSmartWalletAddress(value: string): Task;
729
+ getStartAt(): number;
730
+ setStartAt(value: number): Task;
731
+ getExpiredAt(): number;
732
+ setExpiredAt(value: number): Task;
733
+ getName(): string;
734
+ setName(value: string): Task;
735
+ getCompletedAt(): number;
736
+ setCompletedAt(value: number): Task;
737
+ getMaxExecution(): number;
738
+ setMaxExecution(value: number): Task;
739
+ getTotalExecution(): number;
740
+ setTotalExecution(value: number): Task;
741
+ getLastRanAt(): number;
742
+ setLastRanAt(value: number): Task;
743
+ getStatus(): TaskStatus;
744
+ setStatus(value: TaskStatus): Task;
745
+
746
+ hasTrigger(): boolean;
747
+ clearTrigger(): void;
748
+ getTrigger(): TaskTrigger | undefined;
749
+ setTrigger(value?: TaskTrigger): Task;
750
+ clearNodesList(): void;
751
+ getNodesList(): Array<TaskNode>;
752
+ setNodesList(value: Array<TaskNode>): Task;
753
+ addNodes(value?: TaskNode, index?: number): TaskNode;
754
+ clearEdgesList(): void;
755
+ getEdgesList(): Array<TaskEdge>;
756
+ setEdgesList(value: Array<TaskEdge>): Task;
757
+ addEdges(value?: TaskEdge, index?: number): TaskEdge;
758
+
759
+ serializeBinary(): Uint8Array;
760
+ toObject(includeInstance?: boolean): Task.AsObject;
761
+ static toObject(includeInstance: boolean, msg: Task): Task.AsObject;
762
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
763
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
764
+ static serializeBinaryToWriter(message: Task, writer: jspb.BinaryWriter): void;
765
+ static deserializeBinary(bytes: Uint8Array): Task;
766
+ static deserializeBinaryFromReader(message: Task, reader: jspb.BinaryReader): Task;
767
+ }
768
+
769
+ declare namespace Task {
770
+ export type AsObject = {
771
+ id: string,
772
+ owner: string,
773
+ smartWalletAddress: string,
774
+ startAt: number,
775
+ expiredAt: number,
776
+ name: string,
777
+ completedAt: number,
778
+ maxExecution: number,
779
+ totalExecution: number,
780
+ lastRanAt: number,
781
+ status: TaskStatus,
782
+ trigger?: TaskTrigger.AsObject,
783
+ nodesList: Array<TaskNode.AsObject>,
784
+ edgesList: Array<TaskEdge.AsObject>,
785
+ }
786
+ }
787
+
788
+ declare class CreateTaskReq extends jspb.Message {
789
+
790
+ hasTrigger(): boolean;
791
+ clearTrigger(): void;
792
+ getTrigger(): TaskTrigger | undefined;
793
+ setTrigger(value?: TaskTrigger): CreateTaskReq;
794
+ getStartAt(): number;
795
+ setStartAt(value: number): CreateTaskReq;
796
+ getExpiredAt(): number;
797
+ setExpiredAt(value: number): CreateTaskReq;
798
+ getMaxExecution(): number;
799
+ setMaxExecution(value: number): CreateTaskReq;
800
+ getSmartWalletAddress(): string;
801
+ setSmartWalletAddress(value: string): CreateTaskReq;
802
+ getName(): string;
803
+ setName(value: string): CreateTaskReq;
804
+ clearNodesList(): void;
805
+ getNodesList(): Array<TaskNode>;
806
+ setNodesList(value: Array<TaskNode>): CreateTaskReq;
807
+ addNodes(value?: TaskNode, index?: number): TaskNode;
808
+ clearEdgesList(): void;
809
+ getEdgesList(): Array<TaskEdge>;
810
+ setEdgesList(value: Array<TaskEdge>): CreateTaskReq;
811
+ addEdges(value?: TaskEdge, index?: number): TaskEdge;
812
+
813
+ serializeBinary(): Uint8Array;
814
+ toObject(includeInstance?: boolean): CreateTaskReq.AsObject;
815
+ static toObject(includeInstance: boolean, msg: CreateTaskReq): CreateTaskReq.AsObject;
816
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
817
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
818
+ static serializeBinaryToWriter(message: CreateTaskReq, writer: jspb.BinaryWriter): void;
819
+ static deserializeBinary(bytes: Uint8Array): CreateTaskReq;
820
+ static deserializeBinaryFromReader(message: CreateTaskReq, reader: jspb.BinaryReader): CreateTaskReq;
821
+ }
822
+
823
+ declare namespace CreateTaskReq {
824
+ export type AsObject = {
825
+ trigger?: TaskTrigger.AsObject,
826
+ startAt: number,
827
+ expiredAt: number,
828
+ maxExecution: number,
829
+ smartWalletAddress: string,
830
+ name: string,
831
+ nodesList: Array<TaskNode.AsObject>,
832
+ edgesList: Array<TaskEdge.AsObject>,
833
+ }
834
+ }
835
+
836
+ declare class CreateTaskResp extends jspb.Message {
837
+ getId(): string;
838
+ setId(value: string): CreateTaskResp;
839
+
840
+ serializeBinary(): Uint8Array;
841
+ toObject(includeInstance?: boolean): CreateTaskResp.AsObject;
842
+ static toObject(includeInstance: boolean, msg: CreateTaskResp): CreateTaskResp.AsObject;
843
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
844
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
845
+ static serializeBinaryToWriter(message: CreateTaskResp, writer: jspb.BinaryWriter): void;
846
+ static deserializeBinary(bytes: Uint8Array): CreateTaskResp;
847
+ static deserializeBinaryFromReader(message: CreateTaskResp, reader: jspb.BinaryReader): CreateTaskResp;
848
+ }
849
+
850
+ declare namespace CreateTaskResp {
851
+ export type AsObject = {
852
+ id: string,
853
+ }
854
+ }
855
+
856
+ declare class NonceRequest extends jspb.Message {
857
+ getOwner(): string;
858
+ setOwner(value: string): NonceRequest;
859
+
860
+ serializeBinary(): Uint8Array;
861
+ toObject(includeInstance?: boolean): NonceRequest.AsObject;
862
+ static toObject(includeInstance: boolean, msg: NonceRequest): NonceRequest.AsObject;
863
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
864
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
865
+ static serializeBinaryToWriter(message: NonceRequest, writer: jspb.BinaryWriter): void;
866
+ static deserializeBinary(bytes: Uint8Array): NonceRequest;
867
+ static deserializeBinaryFromReader(message: NonceRequest, reader: jspb.BinaryReader): NonceRequest;
868
+ }
869
+
870
+ declare namespace NonceRequest {
871
+ export type AsObject = {
872
+ owner: string,
873
+ }
874
+ }
875
+
876
+ declare class NonceResp extends jspb.Message {
877
+ getNonce(): string;
878
+ setNonce(value: string): NonceResp;
879
+
880
+ serializeBinary(): Uint8Array;
881
+ toObject(includeInstance?: boolean): NonceResp.AsObject;
882
+ static toObject(includeInstance: boolean, msg: NonceResp): NonceResp.AsObject;
883
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
884
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
885
+ static serializeBinaryToWriter(message: NonceResp, writer: jspb.BinaryWriter): void;
886
+ static deserializeBinary(bytes: Uint8Array): NonceResp;
887
+ static deserializeBinaryFromReader(message: NonceResp, reader: jspb.BinaryReader): NonceResp;
888
+ }
889
+
890
+ declare namespace NonceResp {
891
+ export type AsObject = {
892
+ nonce: string,
893
+ }
894
+ }
895
+
896
+ declare class ListWalletReq extends jspb.Message {
897
+ getFactoryAddress(): string;
898
+ setFactoryAddress(value: string): ListWalletReq;
899
+ getSalt(): string;
900
+ setSalt(value: string): ListWalletReq;
901
+
902
+ serializeBinary(): Uint8Array;
903
+ toObject(includeInstance?: boolean): ListWalletReq.AsObject;
904
+ static toObject(includeInstance: boolean, msg: ListWalletReq): ListWalletReq.AsObject;
905
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
906
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
907
+ static serializeBinaryToWriter(message: ListWalletReq, writer: jspb.BinaryWriter): void;
908
+ static deserializeBinary(bytes: Uint8Array): ListWalletReq;
909
+ static deserializeBinaryFromReader(message: ListWalletReq, reader: jspb.BinaryReader): ListWalletReq;
910
+ }
911
+
912
+ declare namespace ListWalletReq {
913
+ export type AsObject = {
914
+ factoryAddress: string,
915
+ salt: string,
916
+ }
917
+ }
918
+
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;
926
+
927
+ serializeBinary(): Uint8Array;
928
+ toObject(includeInstance?: boolean): SmartWallet$1.AsObject;
929
+ static toObject(includeInstance: boolean, msg: SmartWallet$1): SmartWallet$1.AsObject;
930
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
931
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
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;
935
+ }
936
+
937
+ declare namespace SmartWallet$1 {
938
+ export type AsObject = {
939
+ address: string,
940
+ salt: string,
941
+ factory: string,
942
+ }
943
+ }
944
+
945
+ declare class ListWalletResp extends jspb.Message {
946
+ clearItemsList(): void;
947
+ getItemsList(): Array<SmartWallet$1>;
948
+ setItemsList(value: Array<SmartWallet$1>): ListWalletResp;
949
+ addItems(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
+ itemsList: Array<SmartWallet$1.AsObject>,
964
+ }
965
+ }
966
+
967
+ declare class ListTasksReq extends jspb.Message {
968
+ clearSmartWalletAddressList(): void;
969
+ getSmartWalletAddressList(): Array<string>;
970
+ setSmartWalletAddressList(value: Array<string>): ListTasksReq;
971
+ addSmartWalletAddress(value: string, index?: number): string;
972
+ getCursor(): string;
973
+ setCursor(value: string): ListTasksReq;
974
+ getItemPerPage(): number;
975
+ setItemPerPage(value: number): ListTasksReq;
976
+
977
+ serializeBinary(): Uint8Array;
978
+ toObject(includeInstance?: boolean): ListTasksReq.AsObject;
979
+ static toObject(includeInstance: boolean, msg: ListTasksReq): ListTasksReq.AsObject;
980
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
981
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
982
+ static serializeBinaryToWriter(message: ListTasksReq, writer: jspb.BinaryWriter): void;
983
+ static deserializeBinary(bytes: Uint8Array): ListTasksReq;
984
+ static deserializeBinaryFromReader(message: ListTasksReq, reader: jspb.BinaryReader): ListTasksReq;
985
+ }
986
+
987
+ declare namespace ListTasksReq {
988
+ export type AsObject = {
989
+ smartWalletAddressList: Array<string>,
990
+ cursor: string,
991
+ itemPerPage: number,
992
+ }
993
+ }
994
+
995
+ declare class ListTasksResp extends jspb.Message {
996
+ clearItemsList(): void;
997
+ getItemsList(): Array<ListTasksResp.Item>;
998
+ setItemsList(value: Array<ListTasksResp.Item>): ListTasksResp;
999
+ addItems(value?: ListTasksResp.Item, index?: number): ListTasksResp.Item;
1000
+ getCursor(): string;
1001
+ setCursor(value: string): ListTasksResp;
1002
+ getHasMore(): boolean;
1003
+ setHasMore(value: boolean): ListTasksResp;
1004
+
1005
+ serializeBinary(): Uint8Array;
1006
+ toObject(includeInstance?: boolean): ListTasksResp.AsObject;
1007
+ static toObject(includeInstance: boolean, msg: ListTasksResp): ListTasksResp.AsObject;
1008
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1009
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1010
+ static serializeBinaryToWriter(message: ListTasksResp, writer: jspb.BinaryWriter): void;
1011
+ static deserializeBinary(bytes: Uint8Array): ListTasksResp;
1012
+ static deserializeBinaryFromReader(message: ListTasksResp, reader: jspb.BinaryReader): ListTasksResp;
1013
+ }
1014
+
1015
+ declare namespace ListTasksResp {
1016
+ export type AsObject = {
1017
+ itemsList: Array<ListTasksResp.Item.AsObject>,
1018
+ cursor: string,
1019
+ hasMore: boolean,
1020
+ }
1021
+
1022
+
1023
+ export class Item extends jspb.Message {
1024
+ getId(): string;
1025
+ setId(value: string): Item;
1026
+ getOwner(): string;
1027
+ setOwner(value: string): Item;
1028
+ getSmartWalletAddress(): string;
1029
+ setSmartWalletAddress(value: string): Item;
1030
+ getStartAt(): number;
1031
+ setStartAt(value: number): Item;
1032
+ getExpiredAt(): number;
1033
+ setExpiredAt(value: number): Item;
1034
+ getName(): string;
1035
+ setName(value: string): Item;
1036
+ getCompletedAt(): number;
1037
+ setCompletedAt(value: number): Item;
1038
+ getMaxExecution(): number;
1039
+ setMaxExecution(value: number): Item;
1040
+ getTotalExecution(): number;
1041
+ setTotalExecution(value: number): Item;
1042
+ getLastRanAt(): number;
1043
+ setLastRanAt(value: number): Item;
1044
+ getStatus(): TaskStatus;
1045
+ setStatus(value: TaskStatus): Item;
1046
+
1047
+ hasTrigger(): boolean;
1048
+ clearTrigger(): void;
1049
+ getTrigger(): TaskTrigger | undefined;
1050
+ setTrigger(value?: TaskTrigger): Item;
1051
+
1052
+ serializeBinary(): Uint8Array;
1053
+ toObject(includeInstance?: boolean): Item.AsObject;
1054
+ static toObject(includeInstance: boolean, msg: Item): Item.AsObject;
1055
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1056
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1057
+ static serializeBinaryToWriter(message: Item, writer: jspb.BinaryWriter): void;
1058
+ static deserializeBinary(bytes: Uint8Array): Item;
1059
+ static deserializeBinaryFromReader(message: Item, reader: jspb.BinaryReader): Item;
1060
+ }
1061
+
1062
+ export namespace Item {
1063
+ export type AsObject = {
1064
+ id: string,
1065
+ owner: string,
1066
+ smartWalletAddress: string,
1067
+ startAt: number,
1068
+ expiredAt: number,
1069
+ name: string,
1070
+ completedAt: number,
1071
+ maxExecution: number,
1072
+ totalExecution: number,
1073
+ lastRanAt: number,
1074
+ status: TaskStatus,
1075
+ trigger?: TaskTrigger.AsObject,
1076
+ }
1077
+ }
1078
+
1079
+ }
1080
+
1081
+ declare class ListExecutionsReq extends jspb.Message {
1082
+ clearTaskIdsList(): void;
1083
+ getTaskIdsList(): Array<string>;
1084
+ setTaskIdsList(value: Array<string>): ListExecutionsReq;
1085
+ addTaskIds(value: string, index?: number): string;
1086
+ getCursor(): string;
1087
+ setCursor(value: string): ListExecutionsReq;
1088
+ getItemPerPage(): number;
1089
+ setItemPerPage(value: number): ListExecutionsReq;
1090
+
1091
+ serializeBinary(): Uint8Array;
1092
+ toObject(includeInstance?: boolean): ListExecutionsReq.AsObject;
1093
+ static toObject(includeInstance: boolean, msg: ListExecutionsReq): ListExecutionsReq.AsObject;
1094
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1095
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1096
+ static serializeBinaryToWriter(message: ListExecutionsReq, writer: jspb.BinaryWriter): void;
1097
+ static deserializeBinary(bytes: Uint8Array): ListExecutionsReq;
1098
+ static deserializeBinaryFromReader(message: ListExecutionsReq, reader: jspb.BinaryReader): ListExecutionsReq;
1099
+ }
1100
+
1101
+ declare namespace ListExecutionsReq {
1102
+ export type AsObject = {
1103
+ taskIdsList: Array<string>,
1104
+ cursor: string,
1105
+ itemPerPage: number,
1106
+ }
1107
+ }
1108
+
1109
+ declare class ListExecutionsResp extends jspb.Message {
1110
+ clearItemsList(): void;
1111
+ getItemsList(): Array<Execution$1>;
1112
+ setItemsList(value: Array<Execution$1>): ListExecutionsResp;
1113
+ addItems(value?: Execution$1, index?: number): Execution$1;
1114
+ getCursor(): string;
1115
+ setCursor(value: string): ListExecutionsResp;
1116
+ getHasMore(): boolean;
1117
+ setHasMore(value: boolean): ListExecutionsResp;
1118
+
1119
+ serializeBinary(): Uint8Array;
1120
+ toObject(includeInstance?: boolean): ListExecutionsResp.AsObject;
1121
+ static toObject(includeInstance: boolean, msg: ListExecutionsResp): ListExecutionsResp.AsObject;
1122
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1123
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1124
+ static serializeBinaryToWriter(message: ListExecutionsResp, writer: jspb.BinaryWriter): void;
1125
+ static deserializeBinary(bytes: Uint8Array): ListExecutionsResp;
1126
+ static deserializeBinaryFromReader(message: ListExecutionsResp, reader: jspb.BinaryReader): ListExecutionsResp;
1127
+ }
1128
+
1129
+ declare namespace ListExecutionsResp {
1130
+ export type AsObject = {
1131
+ itemsList: Array<Execution$1.AsObject>,
1132
+ cursor: string,
1133
+ hasMore: boolean,
1134
+ }
1135
+ }
1136
+
1137
+ declare class ExecutionReq extends jspb.Message {
1138
+ getTaskId(): string;
1139
+ setTaskId(value: string): ExecutionReq;
1140
+ getExecutionId(): string;
1141
+ setExecutionId(value: string): ExecutionReq;
1142
+
1143
+ serializeBinary(): Uint8Array;
1144
+ toObject(includeInstance?: boolean): ExecutionReq.AsObject;
1145
+ static toObject(includeInstance: boolean, msg: ExecutionReq): ExecutionReq.AsObject;
1146
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1147
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1148
+ static serializeBinaryToWriter(message: ExecutionReq, writer: jspb.BinaryWriter): void;
1149
+ static deserializeBinary(bytes: Uint8Array): ExecutionReq;
1150
+ static deserializeBinaryFromReader(message: ExecutionReq, reader: jspb.BinaryReader): ExecutionReq;
1151
+ }
1152
+
1153
+ declare namespace ExecutionReq {
1154
+ export type AsObject = {
1155
+ taskId: string,
1156
+ executionId: string,
1157
+ }
1158
+ }
1159
+
1160
+ declare class ExecutionStatusResp extends jspb.Message {
1161
+ getStatus(): ExecutionStatus$1;
1162
+ setStatus(value: ExecutionStatus$1): ExecutionStatusResp;
1163
+
1164
+ serializeBinary(): Uint8Array;
1165
+ toObject(includeInstance?: boolean): ExecutionStatusResp.AsObject;
1166
+ static toObject(includeInstance: boolean, msg: ExecutionStatusResp): ExecutionStatusResp.AsObject;
1167
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1168
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1169
+ static serializeBinaryToWriter(message: ExecutionStatusResp, writer: jspb.BinaryWriter): void;
1170
+ static deserializeBinary(bytes: Uint8Array): ExecutionStatusResp;
1171
+ static deserializeBinaryFromReader(message: ExecutionStatusResp, reader: jspb.BinaryReader): ExecutionStatusResp;
1172
+ }
1173
+
1174
+ declare namespace ExecutionStatusResp {
1175
+ export type AsObject = {
1176
+ status: ExecutionStatus$1,
1177
+ }
1178
+ }
1179
+
1180
+ declare class GetKeyReq extends jspb.Message {
1181
+ getOwner(): string;
1182
+ setOwner(value: string): GetKeyReq;
1183
+ getChainId(): number;
1184
+ setChainId(value: number): GetKeyReq;
1185
+
1186
+ hasIssuedAt(): boolean;
1187
+ clearIssuedAt(): void;
1188
+ getIssuedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
1189
+ setIssuedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetKeyReq;
1190
+
1191
+ hasExpiredAt(): boolean;
1192
+ clearExpiredAt(): void;
1193
+ getExpiredAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
1194
+ setExpiredAt(value?: google_protobuf_timestamp_pb.Timestamp): GetKeyReq;
1195
+ getSignature(): string;
1196
+ setSignature(value: string): GetKeyReq;
1197
+
1198
+ serializeBinary(): Uint8Array;
1199
+ toObject(includeInstance?: boolean): GetKeyReq.AsObject;
1200
+ static toObject(includeInstance: boolean, msg: GetKeyReq): GetKeyReq.AsObject;
1201
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1202
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1203
+ static serializeBinaryToWriter(message: GetKeyReq, writer: jspb.BinaryWriter): void;
1204
+ static deserializeBinary(bytes: Uint8Array): GetKeyReq;
1205
+ static deserializeBinaryFromReader(message: GetKeyReq, reader: jspb.BinaryReader): GetKeyReq;
1206
+ }
1207
+
1208
+ declare namespace GetKeyReq {
1209
+ export type AsObject = {
1210
+ owner: string,
1211
+ chainId: number,
1212
+ issuedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
1213
+ expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
1214
+ signature: string,
1215
+ }
1216
+ }
1217
+
1218
+ declare class KeyResp extends jspb.Message {
1219
+ getKey(): string;
1220
+ setKey(value: string): KeyResp;
1221
+
1222
+ serializeBinary(): Uint8Array;
1223
+ toObject(includeInstance?: boolean): KeyResp.AsObject;
1224
+ static toObject(includeInstance: boolean, msg: KeyResp): KeyResp.AsObject;
1225
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1226
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1227
+ static serializeBinaryToWriter(message: KeyResp, writer: jspb.BinaryWriter): void;
1228
+ static deserializeBinary(bytes: Uint8Array): KeyResp;
1229
+ static deserializeBinaryFromReader(message: KeyResp, reader: jspb.BinaryReader): KeyResp;
1230
+ }
1231
+
1232
+ declare namespace KeyResp {
1233
+ export type AsObject = {
1234
+ key: string,
1235
+ }
1236
+ }
1237
+
1238
+ declare class TriggerMetadata$1 extends jspb.Message {
1239
+ getBlockNumber(): number;
1240
+ setBlockNumber(value: number): TriggerMetadata$1;
1241
+ getLogIndex(): number;
1242
+ setLogIndex(value: number): TriggerMetadata$1;
1243
+ getTxHash(): string;
1244
+ setTxHash(value: string): TriggerMetadata$1;
1245
+ getEpoch(): number;
1246
+ setEpoch(value: number): TriggerMetadata$1;
1247
+ getType(): TriggerMetadata$1.TriggerType;
1248
+ setType(value: TriggerMetadata$1.TriggerType): TriggerMetadata$1;
1249
+
1250
+ serializeBinary(): Uint8Array;
1251
+ toObject(includeInstance?: boolean): TriggerMetadata$1.AsObject;
1252
+ static toObject(includeInstance: boolean, msg: TriggerMetadata$1): TriggerMetadata$1.AsObject;
1253
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1254
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1255
+ static serializeBinaryToWriter(message: TriggerMetadata$1, writer: jspb.BinaryWriter): void;
1256
+ static deserializeBinary(bytes: Uint8Array): TriggerMetadata$1;
1257
+ static deserializeBinaryFromReader(message: TriggerMetadata$1, reader: jspb.BinaryReader): TriggerMetadata$1;
1258
+ }
1259
+
1260
+ declare namespace TriggerMetadata$1 {
1261
+ export type AsObject = {
1262
+ blockNumber: number,
1263
+ logIndex: number,
1264
+ txHash: string,
1265
+ epoch: number,
1266
+ type: TriggerMetadata$1.TriggerType,
1267
+ }
1268
+
1269
+ export enum TriggerType {
1270
+ UNSET = 0,
1271
+ MANUAL = 2,
1272
+ FIXEDTIME = 3,
1273
+ CRON = 4,
1274
+ BLOCK = 5,
1275
+ EVENT = 6,
1276
+ }
1277
+
1278
+ }
1279
+
1280
+ declare class GetWalletReq extends jspb.Message {
1281
+ getSalt(): string;
1282
+ setSalt(value: string): GetWalletReq;
1283
+ getFactoryAddress(): string;
1284
+ setFactoryAddress(value: string): GetWalletReq;
1285
+
1286
+ serializeBinary(): Uint8Array;
1287
+ toObject(includeInstance?: boolean): GetWalletReq.AsObject;
1288
+ static toObject(includeInstance: boolean, msg: GetWalletReq): GetWalletReq.AsObject;
1289
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1290
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1291
+ static serializeBinaryToWriter(message: GetWalletReq, writer: jspb.BinaryWriter): void;
1292
+ static deserializeBinary(bytes: Uint8Array): GetWalletReq;
1293
+ static deserializeBinaryFromReader(message: GetWalletReq, reader: jspb.BinaryReader): GetWalletReq;
1294
+ }
1295
+
1296
+ declare namespace GetWalletReq {
1297
+ export type AsObject = {
1298
+ salt: string,
1299
+ factoryAddress: string,
1300
+ }
1301
+ }
1302
+
1303
+ declare class GetWalletResp extends jspb.Message {
1304
+ getAddress(): string;
1305
+ setAddress(value: string): GetWalletResp;
1306
+ getSalt(): string;
1307
+ setSalt(value: string): GetWalletResp;
1308
+ getFactoryAddress(): string;
1309
+ setFactoryAddress(value: string): GetWalletResp;
1310
+ getTotalTaskCount(): number;
1311
+ setTotalTaskCount(value: number): GetWalletResp;
1312
+ getActiveTaskCount(): number;
1313
+ setActiveTaskCount(value: number): GetWalletResp;
1314
+ getCompletedTaskCount(): number;
1315
+ setCompletedTaskCount(value: number): GetWalletResp;
1316
+ getFailedTaskCount(): number;
1317
+ setFailedTaskCount(value: number): GetWalletResp;
1318
+ getCanceledTaskCount(): number;
1319
+ setCanceledTaskCount(value: number): GetWalletResp;
1320
+
1321
+ serializeBinary(): Uint8Array;
1322
+ toObject(includeInstance?: boolean): GetWalletResp.AsObject;
1323
+ static toObject(includeInstance: boolean, msg: GetWalletResp): GetWalletResp.AsObject;
1324
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1325
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1326
+ static serializeBinaryToWriter(message: GetWalletResp, writer: jspb.BinaryWriter): void;
1327
+ static deserializeBinary(bytes: Uint8Array): GetWalletResp;
1328
+ static deserializeBinaryFromReader(message: GetWalletResp, reader: jspb.BinaryReader): GetWalletResp;
1329
+ }
1330
+
1331
+ declare namespace GetWalletResp {
1332
+ export type AsObject = {
1333
+ address: string,
1334
+ salt: string,
1335
+ factoryAddress: string,
1336
+ totalTaskCount: number,
1337
+ activeTaskCount: number,
1338
+ completedTaskCount: number,
1339
+ failedTaskCount: number,
1340
+ canceledTaskCount: number,
1341
+ }
1342
+ }
1343
+
1344
+ declare class UserTriggerTaskReq extends jspb.Message {
1345
+ getTaskId(): string;
1346
+ setTaskId(value: string): UserTriggerTaskReq;
1347
+
1348
+ hasTriggerMetadata(): boolean;
1349
+ clearTriggerMetadata(): void;
1350
+ getTriggerMetadata(): TriggerMetadata$1 | undefined;
1351
+ setTriggerMetadata(value?: TriggerMetadata$1): UserTriggerTaskReq;
1352
+ getIsBlocking(): boolean;
1353
+ setIsBlocking(value: boolean): UserTriggerTaskReq;
1354
+
1355
+ serializeBinary(): Uint8Array;
1356
+ toObject(includeInstance?: boolean): UserTriggerTaskReq.AsObject;
1357
+ static toObject(includeInstance: boolean, msg: UserTriggerTaskReq): UserTriggerTaskReq.AsObject;
1358
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1359
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1360
+ static serializeBinaryToWriter(message: UserTriggerTaskReq, writer: jspb.BinaryWriter): void;
1361
+ static deserializeBinary(bytes: Uint8Array): UserTriggerTaskReq;
1362
+ static deserializeBinaryFromReader(message: UserTriggerTaskReq, reader: jspb.BinaryReader): UserTriggerTaskReq;
1363
+ }
1364
+
1365
+ declare namespace UserTriggerTaskReq {
1366
+ export type AsObject = {
1367
+ taskId: string,
1368
+ triggerMetadata?: TriggerMetadata$1.AsObject,
1369
+ isBlocking: boolean,
1370
+ }
1371
+ }
1372
+
1373
+ declare class UserTriggerTaskResp extends jspb.Message {
1374
+ getExecutionId(): string;
1375
+ setExecutionId(value: string): UserTriggerTaskResp;
1376
+ getStatus(): ExecutionStatus$1;
1377
+ setStatus(value: ExecutionStatus$1): UserTriggerTaskResp;
1378
+
1379
+ serializeBinary(): Uint8Array;
1380
+ toObject(includeInstance?: boolean): UserTriggerTaskResp.AsObject;
1381
+ static toObject(includeInstance: boolean, msg: UserTriggerTaskResp): UserTriggerTaskResp.AsObject;
1382
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1383
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1384
+ static serializeBinaryToWriter(message: UserTriggerTaskResp, writer: jspb.BinaryWriter): void;
1385
+ static deserializeBinary(bytes: Uint8Array): UserTriggerTaskResp;
1386
+ static deserializeBinaryFromReader(message: UserTriggerTaskResp, reader: jspb.BinaryReader): UserTriggerTaskResp;
1387
+ }
1388
+
1389
+ declare namespace UserTriggerTaskResp {
1390
+ export type AsObject = {
1391
+ executionId: string,
1392
+ status: ExecutionStatus$1,
1393
+ }
1394
+ }
1395
+
1396
+ declare class CreateOrUpdateSecretReq extends jspb.Message {
1397
+ getName(): string;
1398
+ setName(value: string): CreateOrUpdateSecretReq;
1399
+ getSecret(): string;
1400
+ setSecret(value: string): CreateOrUpdateSecretReq;
1401
+ getWorkflowId(): string;
1402
+ setWorkflowId(value: string): CreateOrUpdateSecretReq;
1403
+ getOrgId(): string;
1404
+ setOrgId(value: string): CreateOrUpdateSecretReq;
1405
+
1406
+ serializeBinary(): Uint8Array;
1407
+ toObject(includeInstance?: boolean): CreateOrUpdateSecretReq.AsObject;
1408
+ static toObject(includeInstance: boolean, msg: CreateOrUpdateSecretReq): CreateOrUpdateSecretReq.AsObject;
1409
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1410
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1411
+ static serializeBinaryToWriter(message: CreateOrUpdateSecretReq, writer: jspb.BinaryWriter): void;
1412
+ static deserializeBinary(bytes: Uint8Array): CreateOrUpdateSecretReq;
1413
+ static deserializeBinaryFromReader(message: CreateOrUpdateSecretReq, reader: jspb.BinaryReader): CreateOrUpdateSecretReq;
1414
+ }
1415
+
1416
+ declare namespace CreateOrUpdateSecretReq {
1417
+ export type AsObject = {
1418
+ name: string,
1419
+ secret: string,
1420
+ workflowId: string,
1421
+ orgId: string,
1422
+ }
1423
+ }
1424
+
1425
+ declare class ListSecretsReq extends jspb.Message {
1426
+ getWorkflowId(): string;
1427
+ setWorkflowId(value: string): ListSecretsReq;
1428
+
1429
+ serializeBinary(): Uint8Array;
1430
+ toObject(includeInstance?: boolean): ListSecretsReq.AsObject;
1431
+ static toObject(includeInstance: boolean, msg: ListSecretsReq): ListSecretsReq.AsObject;
1432
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1433
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1434
+ static serializeBinaryToWriter(message: ListSecretsReq, writer: jspb.BinaryWriter): void;
1435
+ static deserializeBinary(bytes: Uint8Array): ListSecretsReq;
1436
+ static deserializeBinaryFromReader(message: ListSecretsReq, reader: jspb.BinaryReader): ListSecretsReq;
1437
+ }
1438
+
1439
+ declare namespace ListSecretsReq {
1440
+ export type AsObject = {
1441
+ workflowId: string,
1442
+ }
1443
+ }
1444
+
1445
+ declare class ListSecretsResp extends jspb.Message {
1446
+ clearItemsList(): void;
1447
+ getItemsList(): Array<ListSecretsResp.ResponseSecret>;
1448
+ setItemsList(value: Array<ListSecretsResp.ResponseSecret>): ListSecretsResp;
1449
+ addItems(value?: ListSecretsResp.ResponseSecret, index?: number): ListSecretsResp.ResponseSecret;
1450
+
1451
+ serializeBinary(): Uint8Array;
1452
+ toObject(includeInstance?: boolean): ListSecretsResp.AsObject;
1453
+ static toObject(includeInstance: boolean, msg: ListSecretsResp): ListSecretsResp.AsObject;
1454
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1455
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1456
+ static serializeBinaryToWriter(message: ListSecretsResp, writer: jspb.BinaryWriter): void;
1457
+ static deserializeBinary(bytes: Uint8Array): ListSecretsResp;
1458
+ static deserializeBinaryFromReader(message: ListSecretsResp, reader: jspb.BinaryReader): ListSecretsResp;
1459
+ }
1460
+
1461
+ declare namespace ListSecretsResp {
1462
+ export type AsObject = {
1463
+ itemsList: Array<ListSecretsResp.ResponseSecret.AsObject>,
1464
+ }
1465
+
1466
+
1467
+ export class ResponseSecret extends jspb.Message {
1468
+ getName(): string;
1469
+ setName(value: string): ResponseSecret;
1470
+ getScope(): string;
1471
+ setScope(value: string): ResponseSecret;
1472
+ getWorkflowId(): string;
1473
+ setWorkflowId(value: string): ResponseSecret;
1474
+ getOrgId(): string;
1475
+ setOrgId(value: string): ResponseSecret;
1476
+
1477
+ serializeBinary(): Uint8Array;
1478
+ toObject(includeInstance?: boolean): ResponseSecret.AsObject;
1479
+ static toObject(includeInstance: boolean, msg: ResponseSecret): ResponseSecret.AsObject;
1480
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1481
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1482
+ static serializeBinaryToWriter(message: ResponseSecret, writer: jspb.BinaryWriter): void;
1483
+ static deserializeBinary(bytes: Uint8Array): ResponseSecret;
1484
+ static deserializeBinaryFromReader(message: ResponseSecret, reader: jspb.BinaryReader): ResponseSecret;
1485
+ }
1486
+
1487
+ export namespace ResponseSecret {
1488
+ export type AsObject = {
1489
+ name: string,
1490
+ scope: string,
1491
+ workflowId: string,
1492
+ orgId: string,
1493
+ }
1494
+ }
1495
+
1496
+ }
1497
+
1498
+ declare class DeleteSecretReq extends jspb.Message {
1499
+ getName(): string;
1500
+ setName(value: string): DeleteSecretReq;
1501
+ getWorkflowId(): string;
1502
+ setWorkflowId(value: string): DeleteSecretReq;
1503
+ getOrgId(): string;
1504
+ setOrgId(value: string): DeleteSecretReq;
1505
+
1506
+ serializeBinary(): Uint8Array;
1507
+ toObject(includeInstance?: boolean): DeleteSecretReq.AsObject;
1508
+ static toObject(includeInstance: boolean, msg: DeleteSecretReq): DeleteSecretReq.AsObject;
1509
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1510
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1511
+ static serializeBinaryToWriter(message: DeleteSecretReq, writer: jspb.BinaryWriter): void;
1512
+ static deserializeBinary(bytes: Uint8Array): DeleteSecretReq;
1513
+ static deserializeBinaryFromReader(message: DeleteSecretReq, reader: jspb.BinaryReader): DeleteSecretReq;
1514
+ }
1515
+
1516
+ declare namespace DeleteSecretReq {
1517
+ export type AsObject = {
1518
+ name: string,
1519
+ workflowId: string,
1520
+ orgId: string,
1521
+ }
1522
+ }
1523
+
1524
+ declare enum TaskStatus {
1525
+ ACTIVE = 0,
1526
+ COMPLETED = 1,
1527
+ FAILED = 2,
1528
+ CANCELED = 3,
1529
+ EXECUTING = 4,
1530
+ }
1531
+
1532
+ declare enum ExecutionStatus$1 {
1533
+ QUEUED = 0,
1534
+ FINISHED = 2,
1535
+ }
1536
+
1537
+ declare enum CustomCodeLang {
1538
+ JAVASCRIPT = 0,
1539
+ }
1540
+
1541
+ // package: aggregator
1542
+ // file: avs.proto
1543
+
1544
+
1545
+
1546
+ interface IAggregatorClient {
1547
+ getKey(request: GetKeyReq, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1548
+ getKey(request: GetKeyReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1549
+ getKey(request: GetKeyReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1550
+ getNonce(request: NonceRequest, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1551
+ getNonce(request: NonceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1552
+ getNonce(request: NonceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1553
+ getWallet(request: GetWalletReq, callback: (error: grpc.ServiceError | null, response: GetWalletResp) => void): grpc.ClientUnaryCall;
1554
+ getWallet(request: GetWalletReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: GetWalletResp) => void): grpc.ClientUnaryCall;
1555
+ getWallet(request: GetWalletReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: GetWalletResp) => void): grpc.ClientUnaryCall;
1556
+ listWallets(request: ListWalletReq, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1557
+ listWallets(request: ListWalletReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1558
+ listWallets(request: ListWalletReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1559
+ createTask(request: CreateTaskReq, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1560
+ createTask(request: CreateTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1561
+ createTask(request: CreateTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1562
+ listTasks(request: ListTasksReq, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1563
+ listTasks(request: ListTasksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1564
+ listTasks(request: ListTasksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1565
+ getTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
1566
+ getTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
1567
+ getTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
1568
+ listExecutions(request: ListExecutionsReq, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
1569
+ listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
1570
+ listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
1571
+ getExecution(request: ExecutionReq, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
1572
+ getExecution(request: ExecutionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
1573
+ getExecution(request: ExecutionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
1574
+ getExecutionStatus(request: ExecutionReq, callback: (error: grpc.ServiceError | null, response: ExecutionStatusResp) => void): grpc.ClientUnaryCall;
1575
+ getExecutionStatus(request: ExecutionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ExecutionStatusResp) => void): grpc.ClientUnaryCall;
1576
+ getExecutionStatus(request: ExecutionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ExecutionStatusResp) => void): grpc.ClientUnaryCall;
1577
+ cancelTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1578
+ cancelTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1579
+ cancelTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1580
+ deleteTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1581
+ deleteTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1582
+ deleteTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1583
+ triggerTask(request: UserTriggerTaskReq, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
1584
+ triggerTask(request: UserTriggerTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
1585
+ triggerTask(request: UserTriggerTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
1586
+ createSecret(request: CreateOrUpdateSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1587
+ createSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1588
+ createSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1589
+ deleteSecret(request: DeleteSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1590
+ deleteSecret(request: DeleteSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1591
+ deleteSecret(request: DeleteSecretReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1592
+ listSecrets(request: ListSecretsReq, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
1593
+ listSecrets(request: ListSecretsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
1594
+ listSecrets(request: ListSecretsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
1595
+ updateSecret(request: CreateOrUpdateSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1596
+ updateSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1597
+ updateSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1598
+ }
1599
+
1600
+ declare class AggregatorClient extends grpc.Client implements IAggregatorClient {
1601
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
1602
+ public getKey(request: GetKeyReq, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1603
+ public getKey(request: GetKeyReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1604
+ public getKey(request: GetKeyReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: KeyResp) => void): grpc.ClientUnaryCall;
1605
+ public getNonce(request: NonceRequest, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1606
+ public getNonce(request: NonceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1607
+ public getNonce(request: NonceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: NonceResp) => void): grpc.ClientUnaryCall;
1608
+ public getWallet(request: GetWalletReq, callback: (error: grpc.ServiceError | null, response: GetWalletResp) => void): grpc.ClientUnaryCall;
1609
+ public getWallet(request: GetWalletReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: GetWalletResp) => void): grpc.ClientUnaryCall;
1610
+ public getWallet(request: GetWalletReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: GetWalletResp) => void): grpc.ClientUnaryCall;
1611
+ public listWallets(request: ListWalletReq, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1612
+ public listWallets(request: ListWalletReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1613
+ public listWallets(request: ListWalletReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListWalletResp) => void): grpc.ClientUnaryCall;
1614
+ public createTask(request: CreateTaskReq, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1615
+ public createTask(request: CreateTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1616
+ public createTask(request: CreateTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: CreateTaskResp) => void): grpc.ClientUnaryCall;
1617
+ public listTasks(request: ListTasksReq, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1618
+ public listTasks(request: ListTasksReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1619
+ public listTasks(request: ListTasksReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListTasksResp) => void): grpc.ClientUnaryCall;
1620
+ public getTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
1621
+ public getTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
1622
+ public getTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Task) => void): grpc.ClientUnaryCall;
1623
+ public listExecutions(request: ListExecutionsReq, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
1624
+ public listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
1625
+ public listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
1626
+ public getExecution(request: ExecutionReq, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
1627
+ public getExecution(request: ExecutionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
1628
+ public getExecution(request: ExecutionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
1629
+ public getExecutionStatus(request: ExecutionReq, callback: (error: grpc.ServiceError | null, response: ExecutionStatusResp) => void): grpc.ClientUnaryCall;
1630
+ public getExecutionStatus(request: ExecutionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ExecutionStatusResp) => void): grpc.ClientUnaryCall;
1631
+ public getExecutionStatus(request: ExecutionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ExecutionStatusResp) => void): grpc.ClientUnaryCall;
1632
+ public cancelTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1633
+ public cancelTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1634
+ 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;
1635
+ public deleteTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1636
+ public deleteTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1637
+ 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;
1638
+ public triggerTask(request: UserTriggerTaskReq, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
1639
+ public triggerTask(request: UserTriggerTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
1640
+ public triggerTask(request: UserTriggerTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
1641
+ public createSecret(request: CreateOrUpdateSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1642
+ public createSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1643
+ public createSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1644
+ public deleteSecret(request: DeleteSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1645
+ public deleteSecret(request: DeleteSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1646
+ public deleteSecret(request: DeleteSecretReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1647
+ public listSecrets(request: ListSecretsReq, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
1648
+ public listSecrets(request: ListSecretsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
1649
+ public listSecrets(request: ListSecretsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
1650
+ public updateSecret(request: CreateOrUpdateSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1651
+ public updateSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1652
+ public updateSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
1653
+ }
1654
+
1655
+ type NodeData = ETHTransferNode$1.AsObject | ContractWriteNode$1.AsObject | ContractReadNode$1.AsObject | GraphQLQueryNode$1.AsObject | RestAPINode$1.AsObject | BranchNode$1.AsObject | FilterNode$1.AsObject | LoopNode.AsObject | CustomCodeNode$1.AsObject;
1656
+ type NodeProps = Omit<TaskNode.AsObject, "ethTransfer" | "contractWrite" | "contractRead" | "graphqlDataQuery" | "restApi" | "branch" | "filter" | "loop" | "customCode"> & {
1657
+ type: NodeType;
1658
+ data: NodeData;
1659
+ };
1660
+ declare class Node implements NodeProps {
1661
+ id: string;
1662
+ name: string;
1663
+ type: NodeType;
1664
+ data: NodeData;
1665
+ constructor(props: NodeProps);
1666
+ toRequest(): TaskNode;
1667
+ }
1668
+
1669
+ type EdgeProps = TaskEdge.AsObject;
1670
+ declare class Edge implements EdgeProps {
1671
+ id: string;
1672
+ source: string;
1673
+ target: string;
1674
+ constructor(edge: EdgeProps);
1675
+ static fromResponse(edge: TaskEdge): Edge;
1676
+ toRequest(): TaskEdge;
1677
+ }
1678
+
1679
+ type Environment = "production" | "development" | "staging";
1680
+ declare const AUTH_KEY_HEADER = "authkey";
1681
+ declare const DEFAULT_LIMIT = 10;
1682
+ interface RequestOptions {
1683
+ authKey?: string;
1684
+ }
1685
+ interface GetExecutionsRequest extends RequestOptions {
1686
+ cursor?: string;
1687
+ limit?: number;
1688
+ }
1689
+ interface GetWorkflowsRequest extends RequestOptions {
1690
+ cursor?: string;
1691
+ limit?: number;
1692
+ }
1693
+ interface GetWalletRequest {
1694
+ salt: string;
1695
+ factoryAddress?: string;
1696
+ }
1697
+ interface ClientOption {
1698
+ endpoint: string;
1699
+ factoryAddress?: string;
1700
+ }
1701
+ declare enum WorkflowStatus {
1702
+ Active = "active",
1703
+ Completed = "completed",
1704
+ Failed = "failed",
1705
+ Canceled = "canceled",
1706
+ Executing = "executing"
1707
+ }
1708
+ declare enum TriggerType {
1709
+ Manual = "manual",
1710
+ FixedTime = "fixed_time",
1711
+ Cron = "cron",
1712
+ Block = "block",
1713
+ Event = "event",
1714
+ Unset = "unset"
1715
+ }
1716
+ type SmartWallet = SmartWallet$1.AsObject & {
1717
+ totalTaskCount?: number;
1718
+ activeTaskCount?: number;
1719
+ completedTaskCount?: number;
1720
+ failedTaskCount?: number;
1721
+ canceledTaskCount?: number;
1722
+ };
1723
+ declare const ExecutionStatus: typeof ExecutionStatus$1;
1724
+ interface ListSecretResponse {
1725
+ name: string;
1726
+ workflowId?: string;
1727
+ orgId?: string;
1728
+ }
1729
+ interface SecretRequestOptions extends RequestOptions {
1730
+ workflowId?: string;
1731
+ orgId?: string;
1732
+ }
1733
+
1734
+ type TriggerData = FixedTimeCondition.AsObject | CronCondition.AsObject | BlockCondition.AsObject | EventCondition.AsObject | null;
1735
+ type TriggerProps = Omit<TaskTrigger.AsObject, "manual" | "fixedTime" | "cron" | "block" | "event"> & {
1736
+ type: TriggerType;
1737
+ data: TriggerData;
1738
+ };
1739
+ declare class Trigger implements TriggerProps {
1740
+ id: string;
1741
+ name: string;
1742
+ type: TriggerType;
1743
+ data: TriggerData;
1744
+ /**
1745
+ * Create an instance of Trigger from user inputs
1746
+ * @param props
1747
+ */
1748
+ constructor(props: TriggerProps);
1749
+ toRequest(): TaskTrigger;
1750
+ }
1751
+
1752
+ type WorkflowProps = Omit<Task.AsObject, "id" | "owner" | "completedAt" | "status" | "executionsList" | "name" | "trigger" | "nodesList" | "edgesList" | "totalExecution" | "lastRanAt"> & {
1753
+ id?: string;
1754
+ owner?: string;
1755
+ completedAt?: number;
1756
+ status?: WorkflowStatus;
1757
+ name?: string;
1758
+ trigger: Trigger;
1759
+ nodes: Node[];
1760
+ edges: Edge[];
1761
+ totalExecution?: number;
1762
+ lastRanAt?: number;
1763
+ };
1764
+ declare class Workflow implements WorkflowProps {
1765
+ smartWalletAddress: string;
1766
+ trigger: Trigger;
1767
+ nodes: Node[];
1768
+ edges: Edge[];
1769
+ startAt: number;
1770
+ expiredAt: number;
1771
+ maxExecution: number;
1772
+ id?: string;
1773
+ owner?: string;
1774
+ name?: string;
1775
+ completedAt?: number;
1776
+ status?: WorkflowStatus;
1777
+ totalExecution?: number;
1778
+ lastRanAt?: number;
1779
+ /**
1780
+ * Create an instance of Workflow from user inputs
1781
+ * @param props
1782
+ */
1783
+ constructor(props: WorkflowProps);
1784
+ /**
1785
+ * Create an instance of Workflow from AVS getWorkflow response
1786
+ * @param res
1787
+ * @returns
1788
+ */
1789
+ static fromResponse(obj: Task): Workflow;
1790
+ /**
1791
+ * Create an instance of Workflow with only selected fields
1792
+ * @param obj
1793
+ */
1794
+ static fromListResponse(obj: ListTasksResp.Item): Workflow;
1795
+ toRequest(): CreateTaskReq;
1796
+ }
1797
+
1798
+ type TriggerMetadataProps = {
1799
+ type: TriggerType.FixedTime;
1800
+ epoch: number;
1801
+ } | {
1802
+ type: TriggerType.Cron;
1803
+ epoch: number;
1804
+ } | {
1805
+ type: TriggerType.Block;
1806
+ blockNumber: number;
1807
+ } | {
1808
+ type: TriggerType.Event;
1809
+ blockNumber: number;
1810
+ logIndex: number;
1811
+ txHash: string;
1812
+ } | {
1813
+ type: TriggerType.Manual;
1814
+ } | {
1815
+ type: TriggerType.Unset;
1816
+ };
1817
+ declare class TriggerMetadata {
1818
+ type: TriggerType;
1819
+ blockNumber?: number;
1820
+ epoch?: number;
1821
+ logIndex?: number;
1822
+ txHash?: string;
1823
+ constructor(props: TriggerMetadataProps);
1824
+ static fromResponse(data: TriggerMetadata$1 | undefined): TriggerMetadata | undefined;
1825
+ toRequest(): TriggerMetadata$1;
1826
+ }
1827
+
1828
+ type StepProps = Execution$1.Step.AsObject;
1829
+ declare class Step implements StepProps {
1830
+ nodeId: string;
1831
+ success: boolean;
1832
+ outputData: string;
1833
+ log: string;
1834
+ error: string;
1835
+ startAt: number;
1836
+ endAt: number;
1837
+ constructor(props: StepProps);
1838
+ static fromResponse(step: Execution$1.Step): Step;
1839
+ toRequest(): Execution$1.Step;
1840
+ }
1841
+
1842
+ type ExecutionProps = Omit<Execution$1.AsObject, "stepsList" | "triggerMetadata"> & {
1843
+ stepsList: Step[];
1844
+ triggerMetadata: TriggerMetadata | undefined;
1845
+ };
1846
+ declare class Execution implements ExecutionProps {
1847
+ id: string;
1848
+ startAt: number;
1849
+ endAt: number;
1850
+ success: boolean;
1851
+ error: string;
1852
+ triggerMetadata: TriggerMetadata | undefined;
1853
+ result: string;
1854
+ stepsList: Step[];
1855
+ constructor(props: ExecutionProps);
1856
+ static fromResponse(execution: Execution$1): Execution;
1857
+ toRequest(): Execution$1;
1858
+ }
1859
+
1860
+ type ContractWriteNodeData = ContractWriteNode$1.AsObject;
1861
+ type ContractWriteNodeProps = NodeProps & {
1862
+ data: ContractWriteNodeData;
1863
+ };
1864
+ declare class ContractWriteNode extends Node {
1865
+ constructor(props: ContractWriteNodeProps);
1866
+ static fromResponse(raw: TaskNode): ContractWriteNode;
1867
+ toRequest(): TaskNode;
1868
+ }
1869
+
1870
+ type CustomCodeNodeData = CustomCodeNode$1.AsObject;
1871
+ declare const CustomCodeLangs: typeof CustomCodeLang;
1872
+ type CustomCodeNodeProps = NodeProps & {
1873
+ data: CustomCodeNodeData;
1874
+ };
1875
+ declare class CustomCodeNode extends Node {
1876
+ constructor(props: CustomCodeNodeProps);
1877
+ static fromResponse(raw: TaskNode): CustomCodeNode;
1878
+ toRequest(): TaskNode;
1879
+ }
1880
+
1881
+ type GraphQLQueryNodeData = GraphQLQueryNode$1.AsObject;
1882
+ type GraphQLQueryNodeProps = NodeProps & {
1883
+ data: GraphQLQueryNodeData;
1884
+ };
1885
+ declare class GraphQLQueryNode extends Node {
1886
+ constructor(props: GraphQLQueryNodeProps);
1887
+ static fromResponse(raw: TaskNode): GraphQLQueryNode;
1888
+ toRequest(): TaskNode;
1889
+ }
1890
+
1891
+ type RestAPINodeData = RestAPINode$1.AsObject;
1892
+ type RestAPINodeProps = NodeProps & {
1893
+ data: RestAPINodeData;
1894
+ };
1895
+ declare class RestAPINode extends Node {
1896
+ constructor(props: RestAPINodeProps);
1897
+ static fromResponse(raw: TaskNode): RestAPINode;
1898
+ toRequest(): TaskNode;
1899
+ }
1900
+
1901
+ type ContractReadNodeData = ContractReadNode$1.AsObject;
1902
+ type ContractReadNodeProps = NodeProps & {
1903
+ data: ContractReadNodeData;
1904
+ };
1905
+ declare class ContractReadNode extends Node {
1906
+ constructor(props: ContractReadNodeProps);
1907
+ static fromResponse(raw: TaskNode): ContractReadNode;
1908
+ toRequest(): TaskNode;
1909
+ }
1910
+
1911
+ type ETHTransferNodeData = ETHTransferNode$1.AsObject;
1912
+ type ETHTransferNodeProps = NodeProps & {
1913
+ data: ETHTransferNodeData;
1914
+ };
1915
+ declare class ETHTransferNode extends Node {
1916
+ constructor(props: ETHTransferNodeProps);
1917
+ static fromResponse(raw: TaskNode): ETHTransferNode;
1918
+ toRequest(): TaskNode;
1919
+ }
1920
+
1921
+ type BranchNodeData = BranchNode$1.AsObject;
1922
+ type BranchNodeProps = NodeProps & {
1923
+ data: BranchNodeData;
1924
+ };
1925
+ declare class BranchNode extends Node {
1926
+ constructor(props: BranchNodeProps);
1927
+ static fromResponse(raw: TaskNode): BranchNode;
1928
+ toRequest(): TaskNode;
1929
+ }
1930
+
1931
+ type FilterNodeData = FilterNode$1.AsObject;
1932
+ type FilterNodeProps = NodeProps & {
1933
+ data: FilterNodeData;
1934
+ };
1935
+ declare class FilterNode extends Node {
1936
+ constructor(props: FilterNodeProps);
1937
+ static fromResponse(raw: TaskNode): FilterNode;
1938
+ toRequest(): TaskNode;
1939
+ }
1940
+
1941
+ declare class NodeFactory {
1942
+ static create(props: NodeProps): Node;
1943
+ static createNodes(props: NodeProps[]): Node[];
1944
+ static fromResponse(raw: TaskNode): Node;
1945
+ }
1946
+
1947
+ type BlockTriggerDataType = BlockCondition.AsObject;
1948
+ type BlockTriggerProps = TriggerProps & {
1949
+ data: BlockTriggerDataType;
1950
+ };
1951
+ declare class BlockTrigger extends Trigger {
1952
+ constructor(props: BlockTriggerProps);
1953
+ toRequest(): TaskTrigger;
1954
+ static fromResponse(raw: TaskTrigger): BlockTrigger;
1955
+ }
1956
+
1957
+ type CronTriggerDataType = CronCondition.AsObject;
1958
+ type CronTriggerProps = TriggerProps & {
1959
+ data: CronTriggerDataType;
1960
+ };
1961
+ declare class CronTrigger extends Trigger {
1962
+ constructor(props: CronTriggerProps);
1963
+ toRequest(): TaskTrigger;
1964
+ static fromResponse(raw: TaskTrigger): CronTrigger;
1965
+ }
1966
+
1967
+ type EventTriggerDataType = EventCondition.AsObject;
1968
+ type EventTriggerProps = TriggerProps & {
1969
+ data: EventTriggerDataType;
1970
+ };
1971
+ declare class EventTrigger extends Trigger {
1972
+ constructor(props: EventTriggerProps);
1973
+ toRequest(): TaskTrigger;
1974
+ static fromResponse(raw: TaskTrigger): EventTrigger;
1975
+ }
1976
+
1977
+ type FixedTimeTriggerDataType = FixedTimeCondition.AsObject;
1978
+ type FixedTimeTriggerProps = TriggerProps & {
1979
+ data: FixedTimeTriggerDataType;
1980
+ };
1981
+ declare class FixedTimeTrigger extends Trigger {
1982
+ constructor(props: FixedTimeTriggerProps);
1983
+ toRequest(): TaskTrigger;
1984
+ static fromResponse(raw: TaskTrigger): FixedTimeTrigger;
1985
+ }
1986
+
1987
+ declare class TriggerFactory {
1988
+ /**
1989
+ * Static factory method to create Trigger instances
1990
+ * @param props
1991
+ * @returns
1992
+ */
1993
+ static create(props: TriggerProps): Trigger;
1994
+ /**
1995
+ * Create an instance of Trigger from AVS getWorkflow or getWorkflows response
1996
+ * @param trigger
1997
+ * @returns
1998
+ */
1999
+ static fromResponse(raw: TaskTrigger): Trigger;
2000
+ }
2001
+
2002
+ declare class BaseClient {
2003
+ readonly endpoint: string;
2004
+ readonly rpcClient: AggregatorClient;
2005
+ protected metadata: Metadata;
2006
+ protected factoryAddress?: string;
2007
+ protected authKey?: string;
2008
+ constructor(opts: ClientOption);
2009
+ /**
2010
+ * Check if the auth key is valid by decoding the JWT token and checking the expiration
2011
+ * @param key - The auth key
2012
+ * @returns {boolean} - Whether the auth key is valid
2013
+ */
2014
+ isAuthKeyValid(key: string): boolean;
2015
+ /**
2016
+ * The API key could retrieve a wallet's authKey by skipping its signature verification
2017
+ * @param chainId - The chain id
2018
+ * @param address - The address of the EOA wallet
2019
+ * @param issuedAt - The issued at timestamp
2020
+ * @param expiredAt - The expiration timestamp
2021
+ * @param apiKey - The API key
2022
+ * @returns {Promise<GetKeyResponse>} - The response from the auth call
2023
+ */
2024
+ authWithAPIKey({ chainId, address, issuedAt, expiredAt, apiKey, }: GetKeyRequestApiKey): Promise<GetKeyResponse>;
2025
+ /**
2026
+ * Getting an authKey from the server by verifying the signature of an EOA wallet
2027
+ * @param chainId - The chain id
2028
+ * @param address - The address of the EOA wallet
2029
+ * @param issuedAt - The issued at timestamp
2030
+ * @param expiredAt - The expiration timestamp
2031
+ * @param signature - The signature of the EOA wallet
2032
+ * @returns {Promise<GetKeyResponse>} - The response from the auth call
2033
+ */
2034
+ authWithSignature({ chainId, address, issuedAt, expiredAt, signature, }: GetKeyRequestSignature): Promise<GetKeyResponse>;
2035
+ /**
2036
+ * The client could choose to store the authKey and use it for all requests; setting it to undefined will unset the authKey
2037
+ * The authKey can be overridden at the request level by request options
2038
+ * @param authKey - The auth key
2039
+ */
2040
+ setAuthKey(authKey: string | undefined): void;
2041
+ /**
2042
+ * Get the auth key if it's set in the client
2043
+ * @returns {string | undefined} - The auth key
2044
+ */
2045
+ getAuthKey(): string | undefined;
2046
+ /**
2047
+ * Set the factory address of smart wallets for the client
2048
+ * @param address - The factory address
2049
+ */
2050
+ setFactoryAddress(address: string): void;
2051
+ /**
2052
+ * Get the factory address if it's set in the client
2053
+ * @returns {string | undefined} - The factory address
2054
+ */
2055
+ getFactoryAddress(): string | undefined;
2056
+ /**
2057
+ * Send a gRPC request with an auth key
2058
+ * @param method - The method name
2059
+ * @param request - The request message
2060
+ * @param options - The request options
2061
+ * @returns {Promise<TResponse>} - The response from the gRPC call
2062
+ */
2063
+ protected sendGrpcRequest<TResponse, TRequest>(method: string, request: TRequest | any, options?: RequestOptions): Promise<TResponse>;
2064
+ }
2065
+ declare class Client extends BaseClient {
2066
+ constructor(config: ClientOption);
2067
+ /**
2068
+ * Get the list of smart wallets; new wallets can be added to the list by calling `getWallet`
2069
+ * @param {RequestOptions} options - Request options
2070
+ * @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
2071
+ */
2072
+ getWallets(options?: RequestOptions): Promise<SmartWallet[]>;
2073
+ /**
2074
+ * Add a new smart wallet address to the wallet list
2075
+ * @param {string} salt - The salt for the wallet
2076
+ * @param {string} factoryAddress - Factory address for the wallet; if not provided, the address stored in the client will be used
2077
+ * @param {RequestOptions} options - Request options
2078
+ * @returns {Promise<SmartWallet>} - The added SmartWallet object
2079
+ */
2080
+ getWallet({ salt, factoryAddress }: GetWalletRequest, options?: RequestOptions): Promise<SmartWallet>;
2081
+ /**
2082
+ * Submit a workflow to the AVS server; once the workflow is submitted, it cannot be modified
2083
+ * @param {Workflow} workflow - Workflow object to submit
2084
+ * @param {RequestOptions} options - Request options
2085
+ * @returns {Promise<string>} - The Id of the submitted workflow
2086
+ */
2087
+ submitWorkflow(workflow: Workflow, options?: RequestOptions): Promise<string>;
2088
+ createWorkflow(props: WorkflowProps): Workflow;
2089
+ /**
2090
+ * Get the list of workflows; new workflows can be created by calling `submitWorkflow`
2091
+ * @param {string} address - The address of the smart wallet
2092
+ * @param {string} cursor - The cursor for the list
2093
+ * @param {number} limit - The limit for the list
2094
+ * @param {RequestOptions} options - Request options
2095
+ * @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
2096
+ */
2097
+ getWorkflows(addresses: string[], options?: GetWorkflowsRequest): Promise<{
2098
+ cursor: string;
2099
+ result: Workflow[];
2100
+ hasMore: boolean;
2101
+ }>;
2102
+ /**
2103
+ * Get the list of executions for multiple workflow given in the workflows argument.
2104
+ * @param {string[]} workflows - The list of workflow ids to fetch execution for
2105
+ * @param {GetExecutionsRequest} options - Request options
2106
+ * @param {string} [options.cursor] - The cursor for pagination
2107
+ * @param {number} [options.limit] - The page limit of the response; default is 10
2108
+ * @param {string} [options.authKey] - The auth key for the request
2109
+ * @returns {Promise<{ cursor: string; result: Execution[] }>} - The list of Executions
2110
+ */
2111
+ getExecutions(workflows: string[], options?: GetExecutionsRequest): Promise<{
2112
+ cursor: string;
2113
+ result: Execution[];
2114
+ hasMore: boolean;
2115
+ }>;
2116
+ /**
2117
+ * Get a single execution for given workflow and execution id
2118
+ * @param {string} workflowId - The workflow id
2119
+ * @param {string} executionId - The exectuion id
2120
+ * @param {GetExecutionsRequest} options - Request options
2121
+ * @returns {Promise<Execution>} - The result execution if it is existed
2122
+ */
2123
+ getExecution(taskId: string, executionId: string, options?: RequestOptions): Promise<Execution>;
2124
+ /**
2125
+ * Get status of an execution.
2126
+ *
2127
+ * When a task is trigger in async manner, it has not run yet, so the data isn't available to return in GetExecution. Calling GetExecution will return in execution not found. We can instad call getExecutionStatus to check whether the execution is finished or not.
2128
+ *
2129
+ * @param {string} workflowId - The workflow id
2130
+ * @param {string} executionId - The exectuion id
2131
+ * @param {GetExecutionsRequest} options - Request options
2132
+ * @returns {Promise<ExecutionStatus>} - The result execution if it is existed
2133
+ */
2134
+ getExecutionStatus(taskId: string, executionId: string, options?: RequestOptions): Promise<ExecutionStatus$1>;
2135
+ /**
2136
+ * Get a workflow by its Id
2137
+ * @param {string} id - The Id of the workflow
2138
+ * @param {RequestOptions} options - Request options
2139
+ * @returns {Promise<Workflow>} - The Workflow object
2140
+ */
2141
+ getWorkflow(id: string, options?: RequestOptions): Promise<Workflow>;
2142
+ /**
2143
+ * Manually trigger a workflow by its Id, and manual trigger data input
2144
+ * @param id - The Id of the workflow
2145
+ * @param triggerData - The data of the trigger
2146
+ * @param isBlocking - Whether the trigger is blocking
2147
+ * @param options - Request options
2148
+ * @returns {Promise<avs_pb.UserTriggerTaskResp>} - The response from the trigger workflow call
2149
+ */
2150
+ triggerWorkflow({ id, data, isBlocking, }: {
2151
+ id: string;
2152
+ data: TriggerMetadataProps;
2153
+ isBlocking: boolean;
2154
+ }, options?: RequestOptions): Promise<UserTriggerTaskResp.AsObject>;
2155
+ /**
2156
+ * Cancel a workflow by its Id
2157
+ * @param {string} id - The Id of the workflow
2158
+ * @param {RequestOptions} options - Request options
2159
+ * @returns {Promise<boolean>} - Whether the workflow was successfully canceled
2160
+ */
2161
+ cancelWorkflow(id: string, options?: RequestOptions): Promise<boolean>;
2162
+ /**
2163
+ * Delete a workflow by its Id
2164
+ * @param {string} id - The Id of the workflow
2165
+ * @param {RequestOptions} options - Request options
2166
+ * @returns {Promise<boolean>} - Whether the workflow was successfully deleted
2167
+ */
2168
+ deleteWorkflow(id: string, options?: RequestOptions): Promise<boolean>;
2169
+ createSecret(name: string, value: string, options?: SecretRequestOptions): Promise<boolean>;
2170
+ /**
2171
+ * Update an existing secret; the secret is updated in the user scope by default, derived from the auth key.
2172
+ * @param secret - The secret object containing updated information
2173
+ * @param options - Request options, including workflowId and orgId for scoping
2174
+ * @returns {Promise<boolean>} - Whether the secret was successfully updated
2175
+ */
2176
+ updateSecret(name: string, value: string, options?: SecretRequestOptions): Promise<boolean>;
2177
+ /**
2178
+ * Retrieve a list of secrets; secrets can be filtered by workflowId or orgId.
2179
+ * @param params - Parameters for listing secrets
2180
+ * @param options - Request options, including workflowId and orgId for filtering
2181
+ * @returns {Promise<ListSecretResponse[]>} - The list of secrets
2182
+ */
2183
+ listSecrets(options?: SecretRequestOptions): Promise<ListSecretResponse[]>;
2184
+ /**
2185
+ * Delete a secret by its name; by default, the secret is deleted from the user scope, derived from the auth key
2186
+ * @param name - The name of the secret
2187
+ * @param options - Request options
2188
+ * @param options.workflowId - The workflow id; if specified, the secret will be deleted from the workflow scope
2189
+ * @param options.orgId - The organization id; if specified, the secret will be deleted from the organization scope
2190
+ * @returns {Promise<boolean>} - Whether the secret was successfully deleted
2191
+ */
2192
+ deleteSecret(name: string, options?: SecretRequestOptions): Promise<boolean>;
2193
+ }
2194
+
2195
+ export { AUTH_KEY_HEADER, BlockTrigger, type BlockTriggerDataType, type BlockTriggerProps, BranchNode, type BranchNodeData, type BranchNodeProps, type ClientOption, ContractReadNode, type ContractReadNodeData, type ContractReadNodeProps, ContractWriteNode, type ContractWriteNodeData, type ContractWriteNodeProps, CronTrigger, type CronTriggerDataType, type CronTriggerProps, CustomCodeLangs, CustomCodeNode, type CustomCodeNodeData, type CustomCodeNodeProps, DEFAULT_LIMIT, ETHTransferNode, type ETHTransferNodeData, type ETHTransferNodeProps, Edge, type EdgeProps, type Environment, EventTrigger, type EventTriggerDataType, type EventTriggerProps, Execution, type ExecutionProps, ExecutionStatus, FilterNode, type FilterNodeData, type FilterNodeProps, FixedTimeTrigger, type FixedTimeTriggerDataType, type FixedTimeTriggerProps, type GetExecutionsRequest, type GetWalletRequest, type GetWorkflowsRequest, GraphQLQueryNode, type GraphQLQueryNodeData, type GraphQLQueryNodeProps, type ListSecretResponse, Node, NodeFactory, type NodeProps, type RequestOptions, RestAPINode, type RestAPINodeData, type RestAPINodeProps, type SecretRequestOptions, type SmartWallet, Step, type StepProps, Trigger, TriggerFactory, TriggerMetadata, type TriggerProps, TriggerType, Workflow, type WorkflowProps, WorkflowStatus, Client as default };