@avaprotocol/sdk-js 1.6.8 → 1.7.1

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/index.d.ts +13 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +848 -583
  5. package/dist/index.mjs +880 -615
  6. package/dist/models/execution.d.ts.map +1 -1
  7. package/dist/models/execution.js +2 -53
  8. package/dist/models/step.d.ts.map +1 -1
  9. package/dist/models/step.js +48 -15
  10. package/dist/models/trigger/block.d.ts.map +1 -1
  11. package/dist/models/trigger/block.js +1 -0
  12. package/dist/models/trigger/cron.d.ts.map +1 -1
  13. package/dist/models/trigger/cron.js +1 -0
  14. package/dist/models/trigger/event.d.ts.map +1 -1
  15. package/dist/models/trigger/event.js +1 -0
  16. package/dist/models/trigger/fixedTime.d.ts.map +1 -1
  17. package/dist/models/trigger/fixedTime.js +1 -0
  18. package/dist/models/trigger/manual.d.ts.map +1 -1
  19. package/dist/models/trigger/manual.js +1 -0
  20. package/dist/utils.d.ts.map +1 -1
  21. package/dist/utils.js +79 -0
  22. package/package.json +2 -2
  23. package/dist/auth.d.ts +0 -2
  24. package/dist/auth.d.ts.map +0 -1
  25. package/dist/auth.js +0 -10
  26. package/dist/config.d.ts +0 -9
  27. package/dist/grpc_codegen/custom_types.d.ts +0 -45
  28. package/dist/grpc_codegen/custom_types.d.ts.map +0 -1
  29. package/dist/grpc_codegen/custom_types.js +0 -179
  30. package/dist/models/edge.d.ts +0 -12
  31. package/dist/models/execution.d.ts +0 -30
  32. package/dist/models/node/branch.d.ts +0 -15
  33. package/dist/models/node/contractRead.d.ts +0 -15
  34. package/dist/models/node/contractWrite.d.ts +0 -15
  35. package/dist/models/node/customCode.d.ts +0 -15
  36. package/dist/models/node/ethTransfer.d.ts +0 -15
  37. package/dist/models/node/factory.d.ts +0 -23
  38. package/dist/models/node/filter.d.ts +0 -15
  39. package/dist/models/node/graphqlQuery.d.ts +0 -15
  40. package/dist/models/node/interface.d.ts +0 -25
  41. package/dist/models/node/loop.d.ts +0 -14
  42. package/dist/models/node/restApi.d.ts +0 -15
  43. package/dist/models/secret.d.ts +0 -16
  44. package/dist/models/step.d.ts +0 -19
  45. package/dist/models/trigger/block.d.ts +0 -25
  46. package/dist/models/trigger/cron.d.ts +0 -26
  47. package/dist/models/trigger/event.d.ts +0 -25
  48. package/dist/models/trigger/factory.d.ts +0 -26
  49. package/dist/models/trigger/fixedTime.d.ts +0 -26
  50. package/dist/models/trigger/interface.d.ts +0 -25
  51. package/dist/models/trigger/manual.d.ts +0 -26
  52. package/dist/models/trigger/reason.d.ts +0 -33
  53. package/dist/models/trigger/reason.d.ts.map +0 -1
  54. package/dist/models/trigger/reason.js +0 -96
  55. package/dist/models/workflow.d.ts +0 -54
  56. package/dist/utils.d.ts +0 -37
@@ -1 +1 @@
1
- {"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/models/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAwB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;AAEvD,MAAM,MAAM,eAAe,GACvB,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,GACnC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,GACvC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,GAClC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,GACnC,MAAM,CAAC,YAAY,CAAC,iBAAiB,CAAC,QAAQ,GAC9C,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,GACpC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,GACvB;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GACvB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAC3C,SAAS,CAAC;AAEd,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,MAAM,CAAC,SAAS,CAAC,QAAQ,EACvB,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,aAAa,GACb,cAAc,GACd,eAAe,GACf,aAAa,CAChB,GAAG;IACF,SAAS,EAAE,IAAI,EAAE,CAAC;IAClB,aAAa,EAAE,eAAe,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF,cAAM,SAAU,YAAW,cAAc;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,eAAe,CAAC;gBAEnB,KAAK,EAAE,cAAc;IAYjC,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,GAAG,SAAS;CA8D5D;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/models/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;AAEvD,MAAM,MAAM,eAAe,GACvB,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,GACnC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,GACvC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,GAClC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,GACnC,MAAM,CAAC,YAAY,CAAC,iBAAiB,CAAC,QAAQ,GAC9C,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,GACpC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,GACvB;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GACvB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAC3C,SAAS,CAAC;AAEd,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,MAAM,CAAC,SAAS,CAAC,QAAQ,EACvB,WAAW,CACd,GAAG;IACF,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC;AAEF,cAAM,SAAU,YAAW,cAAc;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;gBAEF,KAAK,EAAE,cAAc;IASjC,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,GAAG,SAAS;CAc5D;AAED,eAAe,SAAS,CAAC"}
@@ -1,5 +1,3 @@
1
- import * as avs_pb from "@/grpc_codegen/avs_pb";
2
- import { TriggerTypeConverter } from "@avaprotocol/types";
3
1
  import Step from "./step";
4
2
  class Execution {
5
3
  constructor(props) {
@@ -8,65 +6,16 @@ class Execution {
8
6
  this.endAt = props.endAt;
9
7
  this.success = props.success;
10
8
  this.error = props.error;
11
- this.stepsList = props.stepsList;
12
- this.triggerName = props.triggerName;
13
- this.triggerType = props.triggerType;
14
- this.triggerOutput = props.triggerOutput;
9
+ this.steps = props.steps;
15
10
  }
16
11
  static fromResponse(execution) {
17
- const triggerOutputDataType = execution.getOutputDataCase();
18
- let triggerOutputData;
19
- switch (triggerOutputDataType) {
20
- case avs_pb.Execution.OutputDataCase.BLOCK_TRIGGER:
21
- const blockOutput = execution.getBlockTrigger()?.toObject();
22
- // Filter to only return blockNumber for block triggers
23
- triggerOutputData = blockOutput ? { blockNumber: blockOutput.blockNumber } : undefined;
24
- break;
25
- case avs_pb.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
26
- const fixedTimeOutput = execution.getFixedTimeTrigger()?.toObject();
27
- // Updated to use timestamp and timestampIso instead of epoch
28
- triggerOutputData = fixedTimeOutput ? {
29
- timestamp: fixedTimeOutput.timestamp,
30
- timestampIso: fixedTimeOutput.timestampIso
31
- } : undefined;
32
- break;
33
- case avs_pb.Execution.OutputDataCase.CRON_TRIGGER:
34
- const cronOutput = execution.getCronTrigger()?.toObject();
35
- // Updated to use timestamp and timestampIso instead of epoch (removed scheduleMatched as it doesn't exist)
36
- triggerOutputData = cronOutput ? {
37
- timestamp: cronOutput.timestamp,
38
- timestampIso: cronOutput.timestampIso
39
- } : undefined;
40
- break;
41
- case avs_pb.Execution.OutputDataCase.EVENT_TRIGGER:
42
- const eventTrigger = execution.getEventTrigger();
43
- if (eventTrigger) {
44
- if (eventTrigger.hasEvmLog()) {
45
- triggerOutputData = eventTrigger.getEvmLog()?.toObject();
46
- }
47
- else if (eventTrigger.hasTransferLog()) {
48
- triggerOutputData = eventTrigger.getTransferLog()?.toObject();
49
- }
50
- }
51
- break;
52
- case avs_pb.Execution.OutputDataCase.MANUAL_TRIGGER:
53
- const manualOutput = execution.getManualTrigger()?.toObject();
54
- triggerOutputData = manualOutput || undefined;
55
- break;
56
- case avs_pb.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
57
- triggerOutputData = undefined;
58
- break;
59
- }
60
12
  return new Execution({
61
13
  id: execution.getId(),
62
14
  startAt: execution.getStartAt(),
63
15
  endAt: execution.getEndAt(),
64
16
  success: execution.getSuccess(),
65
17
  error: execution.getError(),
66
- triggerName: execution.getTriggerName(),
67
- triggerType: TriggerTypeConverter.fromProtobuf(execution.getTriggerType()), // Convert protobuf enum to SDK enum
68
- triggerOutput: triggerOutputData,
69
- stepsList: execution
18
+ steps: execution
70
19
  .getStepsList()
71
20
  .map((step) => Step.fromResponse(step)),
72
21
  });
@@ -1 +1 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../src/models/step.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAGhD,MAAM,MAAM,SAAS,GAAG,IAAI,CAC1B,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAC5B,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,cAAc,GACd,eAAe,GACf,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,CACT,GAAG;IACF,MAAM,EAAE,GAAG,CAAC;CACb,CAAC;AAKF,cAAM,IAAK,YAAW,SAAS;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,EAAE,GAAG,CAAC;gBAEA,KAAK,EAAE,SAAS;IAW5B,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,GAAG;IAqDlD,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI;CAcvD;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../src/models/step.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAGhD,MAAM,MAAM,SAAS,GAAG,IAAI,CAC1B,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAC5B,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,cAAc,GACd,eAAe,GACf,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,cAAc,GACd,kBAAkB,GAClB,aAAa,GACb,cAAc,GACd,eAAe,CAClB,GAAG;IACF,MAAM,EAAE,GAAG,CAAC;CACb,CAAC;AAKF,cAAM,IAAK,YAAW,SAAS;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;gBAEF,KAAK,EAAE,SAAS;IAa5B,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,GAAG;IAmFlD,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI;CAgBvD;AAED,eAAe,IAAI,CAAC"}
@@ -1,17 +1,19 @@
1
1
  import * as avs_pb from "@/grpc_codegen/avs_pb";
2
- import { convertProtobufValueToJs } from "../utils";
2
+ import { convertProtobufValueToJs, convertProtobufStepTypeToSdk } from "../utils";
3
3
  // OutputDataProps is no longer a union of AsObject, it will be the converted JS type via 'output'
4
4
  // export type OutputDataProps = ... (removed)
5
5
  class Step {
6
6
  constructor(props) {
7
- this.nodeId = props.nodeId;
7
+ this.id = props.id;
8
+ this.type = props.type;
9
+ this.name = props.name;
8
10
  this.success = props.success;
9
- this.log = props.log;
10
11
  this.error = props.error;
11
- this.startAt = props.startAt;
12
- this.endAt = props.endAt;
12
+ this.log = props.log;
13
13
  this.inputsList = props.inputsList;
14
14
  this.output = props.output;
15
+ this.startAt = props.startAt;
16
+ this.endAt = props.endAt;
15
17
  }
16
18
  static getOutput(step) {
17
19
  const outputDataType = step.getOutputDataCase();
@@ -19,24 +21,54 @@ class Step {
19
21
  switch (outputDataType) {
20
22
  case avs_pb.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
21
23
  return null;
24
+ // Trigger outputs
25
+ case avs_pb.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
26
+ const blockOutput = step.getBlockTrigger()?.toObject();
27
+ return blockOutput ? { blockNumber: blockOutput.blockNumber } : undefined;
28
+ case avs_pb.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
29
+ const fixedTimeOutput = step.getFixedTimeTrigger()?.toObject();
30
+ return fixedTimeOutput ? {
31
+ timestamp: fixedTimeOutput.timestamp,
32
+ timestampIso: fixedTimeOutput.timestampIso
33
+ } : undefined;
34
+ case avs_pb.Execution.Step.OutputDataCase.CRON_TRIGGER:
35
+ const cronOutput = step.getCronTrigger()?.toObject();
36
+ return cronOutput ? {
37
+ timestamp: cronOutput.timestamp,
38
+ timestampIso: cronOutput.timestampIso
39
+ } : undefined;
40
+ case avs_pb.Execution.Step.OutputDataCase.EVENT_TRIGGER:
41
+ const eventTrigger = step.getEventTrigger();
42
+ if (eventTrigger) {
43
+ if (eventTrigger.hasEvmLog()) {
44
+ return eventTrigger.getEvmLog()?.toObject();
45
+ }
46
+ else if (eventTrigger.hasTransferLog()) {
47
+ return eventTrigger.getTransferLog()?.toObject();
48
+ }
49
+ }
50
+ return undefined;
51
+ case avs_pb.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
52
+ const manualOutput = step.getManualTrigger()?.toObject();
53
+ return manualOutput || undefined;
54
+ // Node outputs
22
55
  case avs_pb.Execution.Step.OutputDataCase.ETH_TRANSFER:
23
- return step.getEthTransfer()?.toObject(); // Specific structure, not google.protobuf.Value
56
+ return step.getEthTransfer()?.toObject();
24
57
  case avs_pb.Execution.Step.OutputDataCase.GRAPHQL:
25
58
  nodeOutputMessage = step.getGraphql();
26
59
  return nodeOutputMessage && nodeOutputMessage.hasData()
27
60
  ? nodeOutputMessage.getData()
28
61
  : undefined;
29
62
  case avs_pb.Execution.Step.OutputDataCase.CONTRACT_READ:
30
- // ContractReadNode.Output has 'repeated google.protobuf.Value data'
31
63
  nodeOutputMessage = step.getContractRead();
32
64
  if (nodeOutputMessage) {
33
65
  return nodeOutputMessage
34
66
  .getDataList()
35
67
  .map((val) => convertProtobufValueToJs(val));
36
68
  }
37
- return []; // Default to empty array if no data
69
+ return [];
38
70
  case avs_pb.Execution.Step.OutputDataCase.CONTRACT_WRITE:
39
- return step.getContractWrite()?.toObject(); // Specific structure
71
+ return step.getContractWrite()?.toObject();
40
72
  case avs_pb.Execution.Step.OutputDataCase.CUSTOM_CODE:
41
73
  nodeOutputMessage = step.getCustomCode();
42
74
  return nodeOutputMessage && nodeOutputMessage.hasData()
@@ -48,14 +80,13 @@ class Step {
48
80
  ? nodeOutputMessage.getData()
49
81
  : undefined;
50
82
  case avs_pb.Execution.Step.OutputDataCase.BRANCH:
51
- return step.getBranch()?.toObject(); // Specific structure
83
+ return step.getBranch()?.toObject();
52
84
  case avs_pb.Execution.Step.OutputDataCase.FILTER:
53
85
  nodeOutputMessage = step.getFilter();
54
86
  return nodeOutputMessage && nodeOutputMessage.hasData()
55
87
  ? nodeOutputMessage.getData()
56
88
  : undefined;
57
89
  case avs_pb.Execution.Step.OutputDataCase.LOOP:
58
- // LoopNode.Output has 'string data' - handle as plain string for now
59
90
  return step.getLoop()?.getData();
60
91
  default:
61
92
  console.warn(`Unhandled output data type in Step.getOutput: ${outputDataType}`);
@@ -64,14 +95,16 @@ class Step {
64
95
  }
65
96
  static fromResponse(step) {
66
97
  return new Step({
67
- nodeId: step.getNodeId(),
98
+ id: step.getId(),
99
+ type: convertProtobufStepTypeToSdk(step.getType()),
100
+ name: step.getName(),
68
101
  success: step.getSuccess(),
69
- log: step.getLog(),
70
102
  error: step.getError(),
71
- startAt: step.getStartAt(),
72
- endAt: step.getEndAt(),
103
+ log: step.getLog(),
73
104
  inputsList: step.getInputsList(),
74
105
  output: Step.getOutput(step),
106
+ startAt: step.getStartAt(),
107
+ endAt: step.getEndAt(),
75
108
  });
76
109
  }
77
110
  }
@@ -1 +1 @@
1
- {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAe,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAG3F,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAAC;AAE9E,cAAM,YAAa,SAAQ,OAAO;gBACpB,KAAK,EAAE,iBAAiB;IAIpC,SAAS,IAAI,MAAM,CAAC,WAAW;IAmB/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,YAAY;IAuB1D;;;;OAIG;IACH,SAAS,IAAI,kBAAkB,GAAG,SAAS;IAI3C;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAI9D;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAe,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAG3F,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAAC;AAE9E,cAAM,YAAa,SAAQ,OAAO;gBACpB,KAAK,EAAE,iBAAiB;IAIpC,SAAS,IAAI,MAAM,CAAC,WAAW;IAoB/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,YAAY;IAuB1D;;;;OAIG;IACH,SAAS,IAAI,kBAAkB,GAAG,SAAS;IAI3C;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAI9D;AAED,eAAe,YAAY,CAAC"}
@@ -9,6 +9,7 @@ class BlockTrigger extends Trigger {
9
9
  const request = new avs_pb.TaskTrigger();
10
10
  request.setName(this.name);
11
11
  request.setId(this.id);
12
+ request.setType(avs_pb.TriggerType.TRIGGER_TYPE_BLOCK);
12
13
  if (!this.data) {
13
14
  throw new Error(`Trigger data is missing for ${this.type}`);
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/cron.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAe,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGzF,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAE5E,cAAM,WAAY,SAAQ,OAAO;gBACnB,KAAK,EAAE,gBAAgB;IAInC,SAAS,IAAI,MAAM,CAAC,WAAW;IAmB/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,WAAW;IAuBzD;;;;OAIG;IACH,SAAS,IAAI,iBAAiB,GAAG,SAAS;IAI1C;;;;;OAKG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAW9D;AAED,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/cron.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAe,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGzF,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAE5E,cAAM,WAAY,SAAQ,OAAO;gBACnB,KAAK,EAAE,gBAAgB;IAInC,SAAS,IAAI,MAAM,CAAC,WAAW;IAoB/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,WAAW;IAuBzD;;;;OAIG;IACH,SAAS,IAAI,iBAAiB,GAAG,SAAS;IAI1C;;;;;OAKG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAW9D;AAED,eAAe,WAAW,CAAC"}
@@ -9,6 +9,7 @@ class CronTrigger extends Trigger {
9
9
  const request = new avs_pb.TaskTrigger();
10
10
  request.setName(this.name);
11
11
  request.setId(this.id);
12
+ request.setType(avs_pb.TriggerType.TRIGGER_TYPE_CRON);
12
13
  if (!this.data) {
13
14
  throw new Error(`Trigger data is missing for ${this.type}`);
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/event.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAe,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAsB3F,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAAC;AAE9E,cAAM,YAAa,SAAQ,OAAO;gBACpB,KAAK,EAAE,iBAAiB;IAIpC,SAAS,IAAI,MAAM,CAAC,WAAW;IAwC/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,YAAY;IAiC1D;;;;OAIG;IACH,SAAS,IAAI,kBAAkB,GAAG,SAAS;IAI3C;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAI9D;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/event.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAe,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAsB3F,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAAC;AAE9E,cAAM,YAAa,SAAQ,OAAO;gBACpB,KAAK,EAAE,iBAAiB;IAIpC,SAAS,IAAI,MAAM,CAAC,WAAW;IAyC/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,YAAY;IAiC1D;;;;OAIG;IACH,SAAS,IAAI,kBAAkB,GAAG,SAAS;IAI3C;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAI9D;AAED,eAAe,YAAY,CAAC"}
@@ -10,6 +10,7 @@ class EventTrigger extends Trigger {
10
10
  const request = new avs_pb.TaskTrigger();
11
11
  request.setName(this.name);
12
12
  request.setId(this.id);
13
+ request.setType(avs_pb.TriggerType.TRIGGER_TYPE_EVENT);
13
14
  if (!this.data) {
14
15
  throw new Error(`Trigger data is missing for ${this.type}`);
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fixedTime.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/fixedTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAe,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAGnG,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD,IAAI,EAAE,wBAAwB,CAAC;CAChC,CAAC;AAEF,cAAM,gBAAiB,SAAQ,OAAO;gBACxB,KAAK,EAAE,qBAAqB;IAIxC,SAAS,IAAI,MAAM,CAAC,WAAW;IAmB/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,gBAAgB;IAuB9D;;;;OAIG;IACH,SAAS,IAAI,sBAAsB,GAAG,SAAS;IAI/C;;;;;OAKG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAW9D;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"fixedTime.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/fixedTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAe,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAGnG,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD,IAAI,EAAE,wBAAwB,CAAC;CAChC,CAAC;AAEF,cAAM,gBAAiB,SAAQ,OAAO;gBACxB,KAAK,EAAE,qBAAqB;IAIxC,SAAS,IAAI,MAAM,CAAC,WAAW;IAoB/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,gBAAgB;IAuB9D;;;;OAIG;IACH,SAAS,IAAI,sBAAsB,GAAG,SAAS;IAI/C;;;;;OAKG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAW9D;AAED,eAAe,gBAAgB,CAAC"}
@@ -9,6 +9,7 @@ class FixedTimeTrigger extends Trigger {
9
9
  const request = new avs_pb.TaskTrigger();
10
10
  request.setName(this.name);
11
11
  request.setId(this.id);
12
+ request.setType(avs_pb.TriggerType.TRIGGER_TYPE_FIXED_TIME);
12
13
  if (!this.data) {
13
14
  throw new Error(`Trigger data is missing for ${this.type}`);
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"manual.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/manual.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAe,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CAClC,CAAC;AAEF,cAAM,aAAc,SAAQ,OAAO;gBACrB,KAAK,EAAE,kBAAkB;IAIrC,SAAS,IAAI,MAAM,CAAC,WAAW;IAU/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,aAAa;IAU3D,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;IAI/C;;;;OAIG;IACH,SAAS,IAAI,mBAAmB,GAAG,SAAS;IAI5C;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAI9D;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"manual.d.ts","sourceRoot":"","sources":["../../../src/models/trigger/manual.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,OAAO,EAAE,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAe,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CAClC,CAAC;AAEF,cAAM,aAAc,SAAQ,OAAO;gBACrB,KAAK,EAAE,kBAAkB;IAIrC,SAAS,IAAI,MAAM,CAAC,WAAW;IAW/B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,GAAG,aAAa;IAU3D,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;IAI/C;;;;OAIG;IACH,SAAS,IAAI,mBAAmB,GAAG,SAAS;IAI5C;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,GAAG;CAI9D;AAED,eAAe,aAAa,CAAC"}
@@ -9,6 +9,7 @@ class ManualTrigger extends Trigger {
9
9
  const trigger = new avs_pb.TaskTrigger();
10
10
  trigger.setId(this.id);
11
11
  trigger.setName(this.name);
12
+ trigger.setType(avs_pb.TriggerType.TRIGGER_TYPE_MANUAL);
12
13
  trigger.setManual(true);
13
14
  return trigger;
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,aAAa,EAGvB,MAAM,2CAA2C,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,GAAG,CAiCnE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAkDxD;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,GAAG,aAAa,CA6BlE"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,aAAa,EAGvB,MAAM,2CAA2C,CAAC;AAGnD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,GAAG,CAiCnE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAkDxD;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,GAAG,aAAa,CA6BlE;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAkB5E;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CA0BzE;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CASzE"}
package/dist/utils.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Value as ProtobufValue, Struct as ProtobufStruct, ListValue as ProtobufListValue } from "google-protobuf/google/protobuf/struct_pb";
2
+ import { TriggerType, NodeType } from "@avaprotocol/types";
2
3
  /**
3
4
  * Convert a protobuf Value to a JavaScript value
4
5
  *
@@ -149,3 +150,81 @@ export function convertJSValueToProtobuf(value) {
149
150
  }
150
151
  return protobufValue;
151
152
  }
153
+ /**
154
+ * Convert protobuf trigger type string to SDK trigger type string
155
+ *
156
+ * @param protobufType - The protobuf trigger type string (e.g., "TRIGGER_TYPE_MANUAL")
157
+ * @returns The SDK trigger type string (e.g., "manualTrigger")
158
+ */
159
+ export function convertProtobufTriggerTypeToSdk(protobufType) {
160
+ switch (protobufType) {
161
+ case 'TRIGGER_TYPE_MANUAL':
162
+ return TriggerType.Manual; // "manualTrigger"
163
+ case 'TRIGGER_TYPE_FIXED_TIME':
164
+ return TriggerType.FixedTime; // "fixedTimeTrigger"
165
+ case 'TRIGGER_TYPE_CRON':
166
+ return TriggerType.Cron; // "cronTrigger"
167
+ case 'TRIGGER_TYPE_BLOCK':
168
+ return TriggerType.Block; // "blockTrigger"
169
+ case 'TRIGGER_TYPE_EVENT':
170
+ return TriggerType.Event; // "eventTrigger"
171
+ case 'TRIGGER_TYPE_UNSPECIFIED':
172
+ return TriggerType.Unspecified; // "unspecified"
173
+ default:
174
+ console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
175
+ return protobufType; // fallback to raw value
176
+ }
177
+ }
178
+ /**
179
+ * Convert protobuf node type string to SDK node type string
180
+ *
181
+ * @param protobufType - The protobuf node type string (e.g., "NODE_TYPE_CUSTOM_CODE")
182
+ * @returns The SDK node type string (e.g., "customCode")
183
+ */
184
+ export function convertProtobufNodeTypeToSdk(protobufType) {
185
+ switch (protobufType) {
186
+ case 'NODE_TYPE_ETH_TRANSFER':
187
+ return NodeType.ETHTransfer; // "ethTransfer"
188
+ case 'NODE_TYPE_CONTRACT_WRITE':
189
+ return NodeType.ContractWrite; // "contractWrite"
190
+ case 'NODE_TYPE_CONTRACT_READ':
191
+ return NodeType.ContractRead; // "contractRead"
192
+ case 'NODE_TYPE_GRAPHQL_QUERY':
193
+ return NodeType.GraphQLQuery; // "graphql"
194
+ case 'NODE_TYPE_REST_API':
195
+ return NodeType.RestAPI; // "restApi"
196
+ case 'NODE_TYPE_CUSTOM_CODE':
197
+ return NodeType.CustomCode; // "customCode"
198
+ case 'NODE_TYPE_BRANCH':
199
+ return NodeType.Branch; // "branch"
200
+ case 'NODE_TYPE_FILTER':
201
+ return NodeType.Filter; // "filter"
202
+ case 'NODE_TYPE_LOOP':
203
+ return NodeType.Loop; // "loop"
204
+ case 'NODE_TYPE_UNSPECIFIED':
205
+ return NodeType.Unspecified; // "unspecified"
206
+ default:
207
+ console.warn(`Unknown node type: ${protobufType}, using raw value`);
208
+ return protobufType; // fallback to raw value
209
+ }
210
+ }
211
+ /**
212
+ * Convert protobuf step type string to SDK step type string
213
+ *
214
+ * Automatically detects whether the type is a trigger or node type and converts accordingly.
215
+ *
216
+ * @param protobufType - The protobuf type string (e.g., "TRIGGER_TYPE_MANUAL" or "NODE_TYPE_CUSTOM_CODE")
217
+ * @returns The SDK type string (e.g., "manualTrigger" or "customCode")
218
+ */
219
+ export function convertProtobufStepTypeToSdk(protobufType) {
220
+ if (protobufType.startsWith('TRIGGER_TYPE_')) {
221
+ return convertProtobufTriggerTypeToSdk(protobufType);
222
+ }
223
+ else if (protobufType.startsWith('NODE_TYPE_')) {
224
+ return convertProtobufNodeTypeToSdk(protobufType);
225
+ }
226
+ else {
227
+ console.warn(`Unknown step type: ${protobufType}, using raw value`);
228
+ return protobufType; // fallback to raw value
229
+ }
230
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avaprotocol/sdk-js",
3
- "version": "1.6.8",
3
+ "version": "1.7.1",
4
4
  "description": "A JavaScript/TypeScript SDK designed to simplify integration with Ava Protocol's AVS",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "clean": "rm -rf node_modules dist tsconfig.tsbuildinfo"
31
31
  },
32
32
  "dependencies": {
33
- "@avaprotocol/types": "1.0.8",
33
+ "@avaprotocol/types": "1.1.1",
34
34
  "@grpc/grpc-js": "^1.11.3",
35
35
  "@grpc/proto-loader": "^0.7.13",
36
36
  "dotenv": "^16.4.5",
package/dist/auth.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const getKeyRequestMessage: (chainId: number, address: string, issuedAt: Date, expiredAt: Date) => string;
2
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,EAAE,SAAS,MAAM,EAAE,UAAU,IAAI,EAAE,WAAW,IAAI,KAAG,MAUxG,CAAA"}
package/dist/auth.js DELETED
@@ -1,10 +0,0 @@
1
- export const getKeyRequestMessage = (chainId, address, issuedAt, expiredAt) => {
2
- return `Please sign the below text for ownership verification.
3
-
4
- URI: https://app.avaprotocol.org
5
- Chain ID: ${chainId}
6
- Version: 1
7
- Issued At: ${issuedAt.toISOString()}
8
- Expire At: ${expiredAt.toISOString()}
9
- Wallet: ${address}`;
10
- };
package/dist/config.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { Environment } from "@avaprotocol/types";
2
- export declare const DEFAULT_JWT_EXPIRATION: number;
3
- interface Config {
4
- AVS_RPC_URL: string;
5
- }
6
- declare const configs: Record<Environment, Config>;
7
- export declare function getRpcEndpoint(env: Environment): string;
8
- export { configs };
9
- //# sourceMappingURL=config.d.ts.map
@@ -1,45 +0,0 @@
1
- import * as jspb from "google-protobuf";
2
- import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
3
- /**
4
- * Custom implementation of RunNodeWithInputsReq class
5
- * This is needed because the class is not generated from the proto file
6
- */
7
- export declare class RunNodeWithInputsReq extends jspb.Message {
8
- private nodeType_;
9
- private nodeConfig_;
10
- private inputVariables_;
11
- constructor();
12
- getNodeType(): string;
13
- setNodeType(value: string): RunNodeWithInputsReq;
14
- getNodeConfig(): google_protobuf_struct_pb.Struct | undefined;
15
- setNodeConfig(value: google_protobuf_struct_pb.Struct | undefined): RunNodeWithInputsReq;
16
- getInputVariables(): google_protobuf_struct_pb.Struct | undefined;
17
- setInputVariables(value: google_protobuf_struct_pb.Struct | undefined): RunNodeWithInputsReq;
18
- serializeBinary(): Uint8Array;
19
- serializeBinaryToWriter(writer: jspb.BinaryWriter): void;
20
- toObject(includeInstance?: boolean): object;
21
- static deserializeBinary(bytes: Uint8Array): RunNodeWithInputsReq;
22
- static deserializeBinaryFromReader(message: RunNodeWithInputsReq, reader: jspb.BinaryReader): RunNodeWithInputsReq;
23
- }
24
- /**
25
- * Custom implementation of RunNodeWithInputsResp class
26
- * This is needed because the class is not generated from the proto file
27
- */
28
- export declare class RunNodeWithInputsResp extends jspb.Message {
29
- private success_;
30
- private error_;
31
- private result_;
32
- constructor();
33
- getSuccess(): boolean;
34
- setSuccess(value: boolean): RunNodeWithInputsResp;
35
- getError(): string;
36
- setError(value: string): RunNodeWithInputsResp;
37
- getResult(): google_protobuf_struct_pb.Struct | undefined;
38
- setResult(value: google_protobuf_struct_pb.Struct | undefined): RunNodeWithInputsResp;
39
- serializeBinary(): Uint8Array;
40
- serializeBinaryToWriter(writer: jspb.BinaryWriter): void;
41
- toObject(includeInstance?: boolean): object;
42
- static deserializeBinary(bytes: Uint8Array): RunNodeWithInputsResp;
43
- static deserializeBinaryFromReader(message: RunNodeWithInputsResp, reader: jspb.BinaryReader): RunNodeWithInputsResp;
44
- }
45
- //# sourceMappingURL=custom_types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom_types.d.ts","sourceRoot":"","sources":["../../src/grpc_codegen/custom_types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,yBAAyB,MAAM,2CAA2C,CAAC;AAEvF;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,IAAI,CAAC,OAAO;IACpD,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAA+C;IAClE,OAAO,CAAC,eAAe,CAA+C;;IAStE,WAAW,IAAI,MAAM;IAIrB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB;IAKhD,aAAa,IAAI,yBAAyB,CAAC,MAAM,GAAG,SAAS;IAI7D,aAAa,CAAC,KAAK,EAAE,yBAAyB,CAAC,MAAM,GAAG,SAAS,GAAG,oBAAoB;IAKxF,iBAAiB,IAAI,yBAAyB,CAAC,MAAM,GAAG,SAAS;IAIjE,iBAAiB,CAAC,KAAK,EAAE,yBAAyB,CAAC,MAAM,GAAG,SAAS,GAAG,oBAAoB;IAK5F,eAAe,IAAI,UAAU;IAM7B,uBAAuB,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,GAAG,IAAI;IAoBxD,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM;IAU3C,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,oBAAoB;IAMjE,MAAM,CAAC,2BAA2B,CAChC,OAAO,EAAE,oBAAoB,EAC7B,MAAM,EAAE,IAAI,CAAC,YAAY,GACxB,oBAAoB;CAiCxB;AAED;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,IAAI,CAAC,OAAO;IACrD,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAA+C;;IAS9D,UAAU,IAAI,OAAO;IAIrB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB;IAKjD,QAAQ,IAAI,MAAM;IAIlB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB;IAK9C,SAAS,IAAI,yBAAyB,CAAC,MAAM,GAAG,SAAS;IAIzD,SAAS,CAAC,KAAK,EAAE,yBAAyB,CAAC,MAAM,GAAG,SAAS,GAAG,qBAAqB;IAKrF,eAAe,IAAI,UAAU;IAM7B,uBAAuB,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,GAAG,IAAI;IAgBxD,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM;IAS3C,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,qBAAqB;IAMlE,MAAM,CAAC,2BAA2B,CAChC,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,IAAI,CAAC,YAAY,GACxB,qBAAqB;CA4BzB"}