@avaprotocol/sdk-js 1.3.4-dev.1 → 1.3.4-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +231 -18
- package/dist/index.d.ts +231 -18
- package/dist/index.js +1060 -173
- package/dist/index.mjs +1059 -174
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/t
|
|
|
5
5
|
import * as google_protobuf_wrappers_pb from 'google-protobuf/google/protobuf/wrappers_pb';
|
|
6
6
|
import { NodeType } from '@avaprotocol/types';
|
|
7
7
|
|
|
8
|
-
declare const getKeyRequestMessage: (chainId: number, address: string, issuedAt:
|
|
8
|
+
declare const getKeyRequestMessage: (chainId: number, address: string, issuedAt: string, expiredAt: string) => string;
|
|
9
9
|
|
|
10
10
|
// package: aggregator
|
|
11
11
|
// file: avs.proto
|
|
@@ -238,6 +238,8 @@ declare class ContractWriteNode$1 extends jspb.Message {
|
|
|
238
238
|
setCallData(value: string): ContractWriteNode$1;
|
|
239
239
|
getContractAbi(): string;
|
|
240
240
|
setContractAbi(value: string): ContractWriteNode$1;
|
|
241
|
+
getMethod(): string;
|
|
242
|
+
setMethod(value: string): ContractWriteNode$1;
|
|
241
243
|
|
|
242
244
|
serializeBinary(): Uint8Array;
|
|
243
245
|
toObject(includeInstance?: boolean): ContractWriteNode$1.AsObject;
|
|
@@ -254,6 +256,7 @@ declare namespace ContractWriteNode$1 {
|
|
|
254
256
|
contractAddress: string,
|
|
255
257
|
callData: string,
|
|
256
258
|
contractAbi: string,
|
|
259
|
+
method: string,
|
|
257
260
|
}
|
|
258
261
|
}
|
|
259
262
|
|
|
@@ -416,23 +419,23 @@ declare namespace BranchNode$1 {
|
|
|
416
419
|
}
|
|
417
420
|
}
|
|
418
421
|
|
|
419
|
-
declare class FilterNode extends jspb.Message {
|
|
422
|
+
declare class FilterNode$1 extends jspb.Message {
|
|
420
423
|
getExpression(): string;
|
|
421
|
-
setExpression(value: string): FilterNode;
|
|
424
|
+
setExpression(value: string): FilterNode$1;
|
|
422
425
|
getInput(): string;
|
|
423
|
-
setInput(value: string): FilterNode;
|
|
426
|
+
setInput(value: string): FilterNode$1;
|
|
424
427
|
|
|
425
428
|
serializeBinary(): Uint8Array;
|
|
426
|
-
toObject(includeInstance?: boolean): FilterNode.AsObject;
|
|
427
|
-
static toObject(includeInstance: boolean, msg: FilterNode): FilterNode.AsObject;
|
|
429
|
+
toObject(includeInstance?: boolean): FilterNode$1.AsObject;
|
|
430
|
+
static toObject(includeInstance: boolean, msg: FilterNode$1): FilterNode$1.AsObject;
|
|
428
431
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
429
432
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
430
|
-
static serializeBinaryToWriter(message: FilterNode, writer: jspb.BinaryWriter): void;
|
|
431
|
-
static deserializeBinary(bytes: Uint8Array): FilterNode;
|
|
432
|
-
static deserializeBinaryFromReader(message: FilterNode, reader: jspb.BinaryReader): FilterNode;
|
|
433
|
+
static serializeBinaryToWriter(message: FilterNode$1, writer: jspb.BinaryWriter): void;
|
|
434
|
+
static deserializeBinary(bytes: Uint8Array): FilterNode$1;
|
|
435
|
+
static deserializeBinaryFromReader(message: FilterNode$1, reader: jspb.BinaryReader): FilterNode$1;
|
|
433
436
|
}
|
|
434
437
|
|
|
435
|
-
declare namespace FilterNode {
|
|
438
|
+
declare namespace FilterNode$1 {
|
|
436
439
|
export type AsObject = {
|
|
437
440
|
expression: string,
|
|
438
441
|
input: string,
|
|
@@ -578,8 +581,8 @@ declare class TaskNode extends jspb.Message {
|
|
|
578
581
|
|
|
579
582
|
hasFilter(): boolean;
|
|
580
583
|
clearFilter(): void;
|
|
581
|
-
getFilter(): FilterNode | undefined;
|
|
582
|
-
setFilter(value?: FilterNode): TaskNode;
|
|
584
|
+
getFilter(): FilterNode$1 | undefined;
|
|
585
|
+
setFilter(value?: FilterNode$1): TaskNode;
|
|
583
586
|
|
|
584
587
|
hasLoop(): boolean;
|
|
585
588
|
clearLoop(): void;
|
|
@@ -613,7 +616,7 @@ declare namespace TaskNode {
|
|
|
613
616
|
graphqlQuery?: GraphQLQueryNode$1.AsObject,
|
|
614
617
|
restApi?: RestAPINode$1.AsObject,
|
|
615
618
|
branch?: BranchNode$1.AsObject,
|
|
616
|
-
filter?: FilterNode.AsObject,
|
|
619
|
+
filter?: FilterNode$1.AsObject,
|
|
617
620
|
loop?: LoopNode.AsObject,
|
|
618
621
|
customCode?: CustomCodeNode$1.AsObject,
|
|
619
622
|
}
|
|
@@ -1307,6 +1310,16 @@ declare class GetWalletResp extends jspb.Message {
|
|
|
1307
1310
|
setSalt(value: string): GetWalletResp;
|
|
1308
1311
|
getFactoryAddress(): string;
|
|
1309
1312
|
setFactoryAddress(value: string): GetWalletResp;
|
|
1313
|
+
getTotalTaskCount(): number;
|
|
1314
|
+
setTotalTaskCount(value: number): GetWalletResp;
|
|
1315
|
+
getActiveTaskCount(): number;
|
|
1316
|
+
setActiveTaskCount(value: number): GetWalletResp;
|
|
1317
|
+
getCompletedTaskCount(): number;
|
|
1318
|
+
setCompletedTaskCount(value: number): GetWalletResp;
|
|
1319
|
+
getFailedTaskCount(): number;
|
|
1320
|
+
setFailedTaskCount(value: number): GetWalletResp;
|
|
1321
|
+
getCanceledTaskCount(): number;
|
|
1322
|
+
setCanceledTaskCount(value: number): GetWalletResp;
|
|
1310
1323
|
|
|
1311
1324
|
serializeBinary(): Uint8Array;
|
|
1312
1325
|
toObject(includeInstance?: boolean): GetWalletResp.AsObject;
|
|
@@ -1323,6 +1336,11 @@ declare namespace GetWalletResp {
|
|
|
1323
1336
|
address: string,
|
|
1324
1337
|
salt: string,
|
|
1325
1338
|
factoryAddress: string,
|
|
1339
|
+
totalTaskCount: number,
|
|
1340
|
+
activeTaskCount: number,
|
|
1341
|
+
completedTaskCount: number,
|
|
1342
|
+
failedTaskCount: number,
|
|
1343
|
+
canceledTaskCount: number,
|
|
1326
1344
|
}
|
|
1327
1345
|
}
|
|
1328
1346
|
|
|
@@ -1378,6 +1396,134 @@ declare namespace UserTriggerTaskResp {
|
|
|
1378
1396
|
}
|
|
1379
1397
|
}
|
|
1380
1398
|
|
|
1399
|
+
declare class CreateOrUpdateSecretReq extends jspb.Message {
|
|
1400
|
+
getName(): string;
|
|
1401
|
+
setName(value: string): CreateOrUpdateSecretReq;
|
|
1402
|
+
getSecret(): string;
|
|
1403
|
+
setSecret(value: string): CreateOrUpdateSecretReq;
|
|
1404
|
+
getWorkflowId(): string;
|
|
1405
|
+
setWorkflowId(value: string): CreateOrUpdateSecretReq;
|
|
1406
|
+
getOrgId(): string;
|
|
1407
|
+
setOrgId(value: string): CreateOrUpdateSecretReq;
|
|
1408
|
+
|
|
1409
|
+
serializeBinary(): Uint8Array;
|
|
1410
|
+
toObject(includeInstance?: boolean): CreateOrUpdateSecretReq.AsObject;
|
|
1411
|
+
static toObject(includeInstance: boolean, msg: CreateOrUpdateSecretReq): CreateOrUpdateSecretReq.AsObject;
|
|
1412
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1413
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1414
|
+
static serializeBinaryToWriter(message: CreateOrUpdateSecretReq, writer: jspb.BinaryWriter): void;
|
|
1415
|
+
static deserializeBinary(bytes: Uint8Array): CreateOrUpdateSecretReq;
|
|
1416
|
+
static deserializeBinaryFromReader(message: CreateOrUpdateSecretReq, reader: jspb.BinaryReader): CreateOrUpdateSecretReq;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
declare namespace CreateOrUpdateSecretReq {
|
|
1420
|
+
export type AsObject = {
|
|
1421
|
+
name: string,
|
|
1422
|
+
secret: string,
|
|
1423
|
+
workflowId: string,
|
|
1424
|
+
orgId: string,
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
declare class ListSecretsReq extends jspb.Message {
|
|
1429
|
+
getWorkflowId(): string;
|
|
1430
|
+
setWorkflowId(value: string): ListSecretsReq;
|
|
1431
|
+
|
|
1432
|
+
serializeBinary(): Uint8Array;
|
|
1433
|
+
toObject(includeInstance?: boolean): ListSecretsReq.AsObject;
|
|
1434
|
+
static toObject(includeInstance: boolean, msg: ListSecretsReq): ListSecretsReq.AsObject;
|
|
1435
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1436
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1437
|
+
static serializeBinaryToWriter(message: ListSecretsReq, writer: jspb.BinaryWriter): void;
|
|
1438
|
+
static deserializeBinary(bytes: Uint8Array): ListSecretsReq;
|
|
1439
|
+
static deserializeBinaryFromReader(message: ListSecretsReq, reader: jspb.BinaryReader): ListSecretsReq;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
declare namespace ListSecretsReq {
|
|
1443
|
+
export type AsObject = {
|
|
1444
|
+
workflowId: string,
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
declare class ListSecretsResp extends jspb.Message {
|
|
1449
|
+
clearItemsList(): void;
|
|
1450
|
+
getItemsList(): Array<ListSecretsResp.ResponseSecret>;
|
|
1451
|
+
setItemsList(value: Array<ListSecretsResp.ResponseSecret>): ListSecretsResp;
|
|
1452
|
+
addItems(value?: ListSecretsResp.ResponseSecret, index?: number): ListSecretsResp.ResponseSecret;
|
|
1453
|
+
|
|
1454
|
+
serializeBinary(): Uint8Array;
|
|
1455
|
+
toObject(includeInstance?: boolean): ListSecretsResp.AsObject;
|
|
1456
|
+
static toObject(includeInstance: boolean, msg: ListSecretsResp): ListSecretsResp.AsObject;
|
|
1457
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1458
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1459
|
+
static serializeBinaryToWriter(message: ListSecretsResp, writer: jspb.BinaryWriter): void;
|
|
1460
|
+
static deserializeBinary(bytes: Uint8Array): ListSecretsResp;
|
|
1461
|
+
static deserializeBinaryFromReader(message: ListSecretsResp, reader: jspb.BinaryReader): ListSecretsResp;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
declare namespace ListSecretsResp {
|
|
1465
|
+
export type AsObject = {
|
|
1466
|
+
itemsList: Array<ListSecretsResp.ResponseSecret.AsObject>,
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
export class ResponseSecret extends jspb.Message {
|
|
1471
|
+
getName(): string;
|
|
1472
|
+
setName(value: string): ResponseSecret;
|
|
1473
|
+
getScope(): string;
|
|
1474
|
+
setScope(value: string): ResponseSecret;
|
|
1475
|
+
getWorkflowId(): string;
|
|
1476
|
+
setWorkflowId(value: string): ResponseSecret;
|
|
1477
|
+
getOrgId(): string;
|
|
1478
|
+
setOrgId(value: string): ResponseSecret;
|
|
1479
|
+
|
|
1480
|
+
serializeBinary(): Uint8Array;
|
|
1481
|
+
toObject(includeInstance?: boolean): ResponseSecret.AsObject;
|
|
1482
|
+
static toObject(includeInstance: boolean, msg: ResponseSecret): ResponseSecret.AsObject;
|
|
1483
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1484
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1485
|
+
static serializeBinaryToWriter(message: ResponseSecret, writer: jspb.BinaryWriter): void;
|
|
1486
|
+
static deserializeBinary(bytes: Uint8Array): ResponseSecret;
|
|
1487
|
+
static deserializeBinaryFromReader(message: ResponseSecret, reader: jspb.BinaryReader): ResponseSecret;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
export namespace ResponseSecret {
|
|
1491
|
+
export type AsObject = {
|
|
1492
|
+
name: string,
|
|
1493
|
+
scope: string,
|
|
1494
|
+
workflowId: string,
|
|
1495
|
+
orgId: string,
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
declare class DeleteSecretReq extends jspb.Message {
|
|
1502
|
+
getName(): string;
|
|
1503
|
+
setName(value: string): DeleteSecretReq;
|
|
1504
|
+
getWorkflowId(): string;
|
|
1505
|
+
setWorkflowId(value: string): DeleteSecretReq;
|
|
1506
|
+
getOrgId(): string;
|
|
1507
|
+
setOrgId(value: string): DeleteSecretReq;
|
|
1508
|
+
|
|
1509
|
+
serializeBinary(): Uint8Array;
|
|
1510
|
+
toObject(includeInstance?: boolean): DeleteSecretReq.AsObject;
|
|
1511
|
+
static toObject(includeInstance: boolean, msg: DeleteSecretReq): DeleteSecretReq.AsObject;
|
|
1512
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1513
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1514
|
+
static serializeBinaryToWriter(message: DeleteSecretReq, writer: jspb.BinaryWriter): void;
|
|
1515
|
+
static deserializeBinary(bytes: Uint8Array): DeleteSecretReq;
|
|
1516
|
+
static deserializeBinaryFromReader(message: DeleteSecretReq, reader: jspb.BinaryReader): DeleteSecretReq;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
declare namespace DeleteSecretReq {
|
|
1520
|
+
export type AsObject = {
|
|
1521
|
+
name: string,
|
|
1522
|
+
workflowId: string,
|
|
1523
|
+
orgId: string,
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1381
1527
|
declare enum TaskStatus {
|
|
1382
1528
|
ACTIVE = 0,
|
|
1383
1529
|
COMPLETED = 1,
|
|
@@ -1440,6 +1586,18 @@ interface IAggregatorClient {
|
|
|
1440
1586
|
triggerTask(request: UserTriggerTaskReq, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
|
|
1441
1587
|
triggerTask(request: UserTriggerTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
|
|
1442
1588
|
triggerTask(request: UserTriggerTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
|
|
1589
|
+
createSecret(request: CreateOrUpdateSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1590
|
+
createSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1591
|
+
createSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1592
|
+
deleteSecret(request: DeleteSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1593
|
+
deleteSecret(request: DeleteSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1594
|
+
deleteSecret(request: DeleteSecretReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1595
|
+
listSecrets(request: ListSecretsReq, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
|
|
1596
|
+
listSecrets(request: ListSecretsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
|
|
1597
|
+
listSecrets(request: ListSecretsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
|
|
1598
|
+
updateSecret(request: CreateOrUpdateSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1599
|
+
updateSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1600
|
+
updateSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1443
1601
|
}
|
|
1444
1602
|
|
|
1445
1603
|
declare class AggregatorClient extends grpc.Client implements IAggregatorClient {
|
|
@@ -1483,9 +1641,21 @@ declare class AggregatorClient extends grpc.Client implements IAggregatorClient
|
|
|
1483
1641
|
public triggerTask(request: UserTriggerTaskReq, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
|
|
1484
1642
|
public triggerTask(request: UserTriggerTaskReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
|
|
1485
1643
|
public triggerTask(request: UserTriggerTaskReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: UserTriggerTaskResp) => void): grpc.ClientUnaryCall;
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1644
|
+
public createSecret(request: CreateOrUpdateSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1645
|
+
public createSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1646
|
+
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;
|
|
1647
|
+
public deleteSecret(request: DeleteSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1648
|
+
public deleteSecret(request: DeleteSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1649
|
+
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;
|
|
1650
|
+
public listSecrets(request: ListSecretsReq, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
|
|
1651
|
+
public listSecrets(request: ListSecretsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
|
|
1652
|
+
public listSecrets(request: ListSecretsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListSecretsResp) => void): grpc.ClientUnaryCall;
|
|
1653
|
+
public updateSecret(request: CreateOrUpdateSecretReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1654
|
+
public updateSecret(request: CreateOrUpdateSecretReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1655
|
+
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;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
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;
|
|
1489
1659
|
type NodeProps = Omit<TaskNode.AsObject, "ethTransfer" | "contractWrite" | "contractRead" | "graphqlDataQuery" | "restApi" | "branch" | "filter" | "loop" | "customCode"> & {
|
|
1490
1660
|
type: NodeType;
|
|
1491
1661
|
data: NodeData;
|
|
@@ -1551,8 +1721,27 @@ declare enum TriggerType {
|
|
|
1551
1721
|
Event = "event",
|
|
1552
1722
|
Unset = "unset"
|
|
1553
1723
|
}
|
|
1554
|
-
type SmartWallet = SmartWallet$1.AsObject
|
|
1724
|
+
type SmartWallet = SmartWallet$1.AsObject & {
|
|
1725
|
+
totalTaskCount?: number;
|
|
1726
|
+
activeTaskCount?: number;
|
|
1727
|
+
completedTaskCount?: number;
|
|
1728
|
+
failedTaskCount?: number;
|
|
1729
|
+
canceledTaskCount?: number;
|
|
1730
|
+
};
|
|
1555
1731
|
declare const ExecutionStatus: typeof ExecutionStatus$1;
|
|
1732
|
+
interface ListSecretResponse {
|
|
1733
|
+
name: string;
|
|
1734
|
+
workflowId: string;
|
|
1735
|
+
orgId: string;
|
|
1736
|
+
}
|
|
1737
|
+
interface ListSecretRequest {
|
|
1738
|
+
workflowId?: string;
|
|
1739
|
+
}
|
|
1740
|
+
interface DeleteSecretRequest {
|
|
1741
|
+
name: string;
|
|
1742
|
+
workflowId: string;
|
|
1743
|
+
orgId: string;
|
|
1744
|
+
}
|
|
1556
1745
|
|
|
1557
1746
|
type TriggerData = FixedTimeCondition.AsObject | CronCondition.AsObject | BlockCondition.AsObject | EventCondition.AsObject;
|
|
1558
1747
|
type TriggerProps = Omit<TaskTrigger.AsObject, "manual" | "fixedTime" | "cron" | "block" | "event"> & {
|
|
@@ -1752,6 +1941,16 @@ declare class BranchNode extends Node {
|
|
|
1752
1941
|
toRequest(): TaskNode;
|
|
1753
1942
|
}
|
|
1754
1943
|
|
|
1944
|
+
type FilterNodeData = FilterNode$1.AsObject;
|
|
1945
|
+
type FilterNodeProps = NodeProps & {
|
|
1946
|
+
data: FilterNodeData;
|
|
1947
|
+
};
|
|
1948
|
+
declare class FilterNode extends Node {
|
|
1949
|
+
constructor(props: FilterNodeProps);
|
|
1950
|
+
static fromResponse(raw: TaskNode): FilterNode;
|
|
1951
|
+
toRequest(): TaskNode;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1755
1954
|
declare class NodeFactory {
|
|
1756
1955
|
static create(props: NodeProps): Node;
|
|
1757
1956
|
static createNodes(props: NodeProps[]): Node[];
|
|
@@ -1813,6 +2012,16 @@ declare class TriggerFactory {
|
|
|
1813
2012
|
static fromResponse(raw: TaskTrigger): Trigger;
|
|
1814
2013
|
}
|
|
1815
2014
|
|
|
2015
|
+
type SecretProps = CreateOrUpdateSecretReq.AsObject;
|
|
2016
|
+
declare class Secret implements SecretProps {
|
|
2017
|
+
name: string;
|
|
2018
|
+
secret: string;
|
|
2019
|
+
workflowId: string;
|
|
2020
|
+
orgId: string;
|
|
2021
|
+
constructor(props: SecretProps);
|
|
2022
|
+
toRequest(): CreateOrUpdateSecretReq;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
1816
2025
|
declare class BaseClient {
|
|
1817
2026
|
readonly endpoint: string;
|
|
1818
2027
|
readonly rpcClient: AggregatorClient;
|
|
@@ -1988,6 +2197,10 @@ declare class Client extends BaseClient {
|
|
|
1988
2197
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
1989
2198
|
*/
|
|
1990
2199
|
deleteWorkflow(id: string, options?: RequestOptions): Promise<boolean>;
|
|
2200
|
+
createSecret(secret: Secret, options?: RequestOptions): Promise<boolean>;
|
|
2201
|
+
listSecrets(params: ListSecretRequest, options?: RequestOptions): Promise<ListSecretResponse[]>;
|
|
2202
|
+
deleteSecret(params: DeleteSecretRequest, options?: RequestOptions): Promise<boolean>;
|
|
2203
|
+
updateSecret(secret: Secret, options?: RequestOptions): Promise<boolean>;
|
|
1991
2204
|
}
|
|
1992
2205
|
|
|
1993
|
-
export { AUTH_KEY_HEADER, BlockTrigger, type BlockTriggerProps, BranchNode, type BranchNodeData, type BranchNodeProps, type ClientOption, ContractReadNode, type ContractReadNodeProps, ContractWriteNode, type ContractWriteNodeProps, CronTrigger, type CronTriggerProps, CustomCodeLangs, CustomCodeNode, type CustomCodeNodeProps, DEFAULT_LIMIT, ETHTransferNode, type ETHTransferNodeProps, Edge, type EdgeProps, type Environment, EventTrigger, type EventTriggerProps, Execution, ExecutionStatus, FixedTimeTrigger, type FixedTimeTriggerProps, type GetExecutionsRequest, type GetKeyResponse, type GetWalletRequest, type GetWorkflowsRequest, GraphQLQueryNode, type GraphQLQueryNodeProps, Node, NodeFactory, type NodeProps, type RequestOptions, RestAPINode, type RestAPINodeProps, type SmartWallet, Trigger, TriggerFactory, type TriggerProps, TriggerType, Workflow, type WorkflowProps, WorkflowStatus, Client as default, getKeyRequestMessage };
|
|
2206
|
+
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, type DeleteSecretRequest, ETHTransferNode, type ETHTransferNodeData, type ETHTransferNodeProps, Edge, type EdgeProps, type Environment, EventTrigger, type EventTriggerDataType, type EventTriggerProps, Execution, ExecutionStatus, FilterNode, type FilterNodeData, type FilterNodeProps, FixedTimeTrigger, type FixedTimeTriggerDataType, type FixedTimeTriggerProps, type GetExecutionsRequest, type GetKeyResponse, type GetWalletRequest, type GetWorkflowsRequest, GraphQLQueryNode, type GraphQLQueryNodeData, type GraphQLQueryNodeProps, type ListSecretRequest, type ListSecretResponse, Node, NodeFactory, type NodeProps, type RequestOptions, RestAPINode, type RestAPINodeData, type RestAPINodeProps, Secret, type SmartWallet, Trigger, TriggerFactory, type TriggerProps, TriggerType, Workflow, type WorkflowProps, WorkflowStatus, Client as default, getKeyRequestMessage };
|