@avaprotocol/sdk-js 2.7.2 → 2.7.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @avaprotocol/sdk-js
2
2
 
3
+ ## 2.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - b13427a: Added new fields to the Execution and Execution.Step protobuf messages for gas usage: gas_used, gas_price, and total_gas_cost; Introduced a new input_variables map field to the Task and CreateTaskReq protobuf messages, and updated the generated JavaScript code to handle serialization, deserialization, and access to these variables.
8
+ - Updated dependencies [b13427a]
9
+ - @avaprotocol/types@2.5.4
10
+
11
+ ## 2.7.3
12
+
13
+ ### Patch Changes
14
+
15
+ - f0d9b2c: Added status code and fixed test failures
16
+ - Updated dependencies [f0d9b2c]
17
+ - @avaprotocol/types@2.5.3
18
+
3
19
  ## 2.7.2
4
20
 
5
21
  ### Patch Changes
package/dist/auth.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const getKeyRequestMessage: (chainId: number, address: string, issuedAt: Date, expiredAt: Date) => string;
2
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,9 @@
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
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import Step from "./models/step";
7
7
  import NodeFactory from "./models/node/factory";
8
8
  import TriggerFactory from "./models/trigger/factory";
9
9
  import Secret from "./models/secret";
10
- import { type WorkflowProps, type GetKeyResponse, type RequestOptions, type ClientOption, type SmartWallet, type GetWalletRequest, type GetExecutionsOptions, type GetWorkflowsOptions, type GetSignatureFormatResponse, type RunNodeWithInputsRequest, type RunNodeWithInputsResponse, type RunTriggerRequest, type RunTriggerResponse, type SecretProps, type PageInfo, type GetSecretsOptions, type SecretOptions, type TriggerDataProps, type SimulateWorkflowRequest, type ExecutionProps, type GetTokenMetadataRequest, type GetTokenMetadataResponse, type TimeoutConfig, type CreateSecretResponse, type UpdateSecretResponse, type DeleteSecretResponse, type CancelTaskResponse, type DeleteTaskResponse, type GetExecutionStatsResponse, type GetExecutionStatsOptions, ExecutionStatus, type TriggerWorkflowResponse, type WithdrawFundsRequest, type WithdrawFundsResponse } from "@avaprotocol/types";
10
+ import { ErrorCode, type WorkflowProps, type GetKeyResponse, type RequestOptions, type ClientOption, type SmartWallet, type GetWalletRequest, type GetExecutionsOptions, type GetWorkflowsOptions, type GetSignatureFormatResponse, type RunNodeWithInputsRequest, type RunNodeWithInputsResponse, type RunTriggerRequest, type RunTriggerResponse, type SecretProps, type PageInfo, type GetSecretsOptions, type SecretOptions, type TriggerDataProps, type SimulateWorkflowRequest, type ExecutionProps, type GetTokenMetadataRequest, type GetTokenMetadataResponse, type TimeoutConfig, type CreateSecretResponse, type UpdateSecretResponse, type DeleteSecretResponse, type CancelTaskResponse, type DeleteTaskResponse, type GetExecutionStatsResponse, type GetExecutionStatsOptions, ExecutionStatus, type TriggerWorkflowResponse, type WithdrawFundsRequest, type WithdrawFundsResponse } from "@avaprotocol/types";
11
11
  import { cleanGrpcErrorMessage } from "./utils";
12
12
  declare class BaseClient {
13
13
  readonly endpoint: string;
@@ -354,7 +354,7 @@ declare class Client extends BaseClient {
354
354
  }
355
355
  export * from "./models/node/factory";
356
356
  export * from "./models/trigger/factory";
357
- export { Client, Workflow, Edge, Execution, Step, NodeFactory, TriggerFactory, Secret, cleanGrpcErrorMessage, };
357
+ export { Client, Workflow, Edge, Execution, Step, NodeFactory, TriggerFactory, Secret, ErrorCode, cleanGrpcErrorMessage, };
358
358
  export type { TokenMetadata, GetTokenMetadataRequest, GetTokenMetadataResponse, TokenSource, WithdrawFundsRequest, WithdrawFundsResponse, } from "@avaprotocol/types";
359
359
  export { TimeoutPresets, type TimeoutConfig, type TimeoutError, } from "@avaprotocol/types";
360
360
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,QAAQ,EAAU,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,cAAc,MAAM,0BAA0B,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAOL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAy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,EAClB,KAAK,YAAY,GAClB,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -7011,6 +7011,7 @@ var require_avs_pb = __commonJS({
7011
7011
  status: jspb.Message.getFieldWithDefault(msg, 4, 0),
7012
7012
  error: jspb.Message.getFieldWithDefault(msg, 5, ""),
7013
7013
  index: jspb.Message.getFieldWithDefault(msg, 6, 0),
7014
+ totalGasCost: jspb.Message.getFieldWithDefault(msg, 30, ""),
7014
7015
  stepsList: jspb.Message.toObjectList(
7015
7016
  msg.getStepsList(),
7016
7017
  proto.aggregator.Execution.Step.toObject,
@@ -7077,6 +7078,13 @@ var require_avs_pb = __commonJS({
7077
7078
  );
7078
7079
  msg.setIndex(value);
7079
7080
  break;
7081
+ case 30:
7082
+ var value = (
7083
+ /** @type {string} */
7084
+ reader.readString()
7085
+ );
7086
+ msg.setTotalGasCost(value);
7087
+ break;
7080
7088
  case 8:
7081
7089
  var value = new proto.aggregator.Execution.Step();
7082
7090
  reader.readMessage(value, proto.aggregator.Execution.Step.deserializeBinaryFromReader);
@@ -7138,6 +7146,13 @@ var require_avs_pb = __commonJS({
7138
7146
  f
7139
7147
  );
7140
7148
  }
7149
+ f = message.getTotalGasCost();
7150
+ if (f.length > 0) {
7151
+ writer.writeString(
7152
+ 30,
7153
+ f
7154
+ );
7155
+ }
7141
7156
  f = message.getStepsList();
7142
7157
  if (f.length > 0) {
7143
7158
  writer.writeRepeatedMessage(
@@ -7188,6 +7203,9 @@ var require_avs_pb = __commonJS({
7188
7203
  config: (f = msg.getConfig()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
7189
7204
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
7190
7205
  executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
7206
+ gasUsed: jspb.Message.getFieldWithDefault(msg, 27, ""),
7207
+ gasPrice: jspb.Message.getFieldWithDefault(msg, 28, ""),
7208
+ totalGasCost: jspb.Message.getFieldWithDefault(msg, 29, ""),
7191
7209
  blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
7192
7210
  fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
7193
7211
  cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
@@ -7287,6 +7305,27 @@ var require_avs_pb = __commonJS({
7287
7305
  reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
7288
7306
  msg.setExecutionContext(value);
7289
7307
  break;
7308
+ case 27:
7309
+ var value = (
7310
+ /** @type {string} */
7311
+ reader.readString()
7312
+ );
7313
+ msg.setGasUsed(value);
7314
+ break;
7315
+ case 28:
7316
+ var value = (
7317
+ /** @type {string} */
7318
+ reader.readString()
7319
+ );
7320
+ msg.setGasPrice(value);
7321
+ break;
7322
+ case 29:
7323
+ var value = (
7324
+ /** @type {string} */
7325
+ reader.readString()
7326
+ );
7327
+ msg.setTotalGasCost(value);
7328
+ break;
7290
7329
  case 20:
7291
7330
  var value = new proto.aggregator.BlockTrigger.Output();
7292
7331
  reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
@@ -7458,6 +7497,27 @@ var require_avs_pb = __commonJS({
7458
7497
  google_protobuf_struct_pb5.Value.serializeBinaryToWriter
7459
7498
  );
7460
7499
  }
7500
+ f = message.getGasUsed();
7501
+ if (f.length > 0) {
7502
+ writer.writeString(
7503
+ 27,
7504
+ f
7505
+ );
7506
+ }
7507
+ f = message.getGasPrice();
7508
+ if (f.length > 0) {
7509
+ writer.writeString(
7510
+ 28,
7511
+ f
7512
+ );
7513
+ }
7514
+ f = message.getTotalGasCost();
7515
+ if (f.length > 0) {
7516
+ writer.writeString(
7517
+ 29,
7518
+ f
7519
+ );
7520
+ }
7461
7521
  f = message.getBlockTrigger();
7462
7522
  if (f != null) {
7463
7523
  writer.writeMessage(
@@ -7699,6 +7759,33 @@ var require_avs_pb = __commonJS({
7699
7759
  proto.aggregator.Execution.Step.prototype.hasExecutionContext = function() {
7700
7760
  return jspb.Message.getField(this, 26) != null;
7701
7761
  };
7762
+ proto.aggregator.Execution.Step.prototype.getGasUsed = function() {
7763
+ return (
7764
+ /** @type {string} */
7765
+ jspb.Message.getFieldWithDefault(this, 27, "")
7766
+ );
7767
+ };
7768
+ proto.aggregator.Execution.Step.prototype.setGasUsed = function(value) {
7769
+ return jspb.Message.setProto3StringField(this, 27, value);
7770
+ };
7771
+ proto.aggregator.Execution.Step.prototype.getGasPrice = function() {
7772
+ return (
7773
+ /** @type {string} */
7774
+ jspb.Message.getFieldWithDefault(this, 28, "")
7775
+ );
7776
+ };
7777
+ proto.aggregator.Execution.Step.prototype.setGasPrice = function(value) {
7778
+ return jspb.Message.setProto3StringField(this, 28, value);
7779
+ };
7780
+ proto.aggregator.Execution.Step.prototype.getTotalGasCost = function() {
7781
+ return (
7782
+ /** @type {string} */
7783
+ jspb.Message.getFieldWithDefault(this, 29, "")
7784
+ );
7785
+ };
7786
+ proto.aggregator.Execution.Step.prototype.setTotalGasCost = function(value) {
7787
+ return jspb.Message.setProto3StringField(this, 29, value);
7788
+ };
7702
7789
  proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
7703
7790
  return (
7704
7791
  /** @type{?proto.aggregator.BlockTrigger.Output} */
@@ -7981,6 +8068,15 @@ var require_avs_pb = __commonJS({
7981
8068
  proto.aggregator.Execution.prototype.setIndex = function(value) {
7982
8069
  return jspb.Message.setProto3IntField(this, 6, value);
7983
8070
  };
8071
+ proto.aggregator.Execution.prototype.getTotalGasCost = function() {
8072
+ return (
8073
+ /** @type {string} */
8074
+ jspb.Message.getFieldWithDefault(this, 30, "")
8075
+ );
8076
+ };
8077
+ proto.aggregator.Execution.prototype.setTotalGasCost = function(value) {
8078
+ return jspb.Message.setProto3StringField(this, 30, value);
8079
+ };
7984
8080
  proto.aggregator.Execution.prototype.getStepsList = function() {
7985
8081
  return (
7986
8082
  /** @type{!Array<!proto.aggregator.Execution.Step>} */
@@ -8024,7 +8120,8 @@ var require_avs_pb = __commonJS({
8024
8120
  msg.getEdgesList(),
8025
8121
  proto.aggregator.TaskEdge.toObject,
8026
8122
  includeInstance
8027
- )
8123
+ ),
8124
+ inputVariablesMap: (f = msg.getInputVariablesMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
8028
8125
  };
8029
8126
  if (includeInstance) {
8030
8127
  obj.$jspbMessageInstance = msg;
@@ -8136,6 +8233,12 @@ var require_avs_pb = __commonJS({
8136
8233
  reader.readMessage(value, proto.aggregator.TaskEdge.deserializeBinaryFromReader);
8137
8234
  msg.addEdges(value);
8138
8235
  break;
8236
+ case 15:
8237
+ var value = msg.getInputVariablesMap();
8238
+ reader.readMessage(value, function(message, reader2) {
8239
+ jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
8240
+ });
8241
+ break;
8139
8242
  default:
8140
8243
  reader.skipField();
8141
8244
  break;
@@ -8251,6 +8354,10 @@ var require_avs_pb = __commonJS({
8251
8354
  proto.aggregator.TaskEdge.serializeBinaryToWriter
8252
8355
  );
8253
8356
  }
8357
+ f = message.getInputVariablesMap(true);
8358
+ if (f && f.getLength() > 0) {
8359
+ f.serializeBinary(15, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
8360
+ }
8254
8361
  };
8255
8362
  proto.aggregator.Task.prototype.getId = function() {
8256
8363
  return (
@@ -8396,6 +8503,21 @@ var require_avs_pb = __commonJS({
8396
8503
  proto.aggregator.Task.prototype.clearEdgesList = function() {
8397
8504
  return this.setEdgesList([]);
8398
8505
  };
8506
+ proto.aggregator.Task.prototype.getInputVariablesMap = function(opt_noLazyCreate) {
8507
+ return (
8508
+ /** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
8509
+ jspb.Message.getMapField(
8510
+ this,
8511
+ 15,
8512
+ opt_noLazyCreate,
8513
+ proto.google.protobuf.Value
8514
+ )
8515
+ );
8516
+ };
8517
+ proto.aggregator.Task.prototype.clearInputVariablesMap = function() {
8518
+ this.getInputVariablesMap().clear();
8519
+ return this;
8520
+ };
8399
8521
  proto.aggregator.CreateTaskReq.repeatedFields_ = [7, 8];
8400
8522
  if (jspb.Message.GENERATE_TO_OBJECT) {
8401
8523
  proto.aggregator.CreateTaskReq.prototype.toObject = function(opt_includeInstance) {
@@ -8418,7 +8540,8 @@ var require_avs_pb = __commonJS({
8418
8540
  msg.getEdgesList(),
8419
8541
  proto.aggregator.TaskEdge.toObject,
8420
8542
  includeInstance
8421
- )
8543
+ ),
8544
+ inputVariablesMap: (f = msg.getInputVariablesMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
8422
8545
  };
8423
8546
  if (includeInstance) {
8424
8547
  obj.$jspbMessageInstance = msg;
@@ -8488,6 +8611,12 @@ var require_avs_pb = __commonJS({
8488
8611
  reader.readMessage(value, proto.aggregator.TaskEdge.deserializeBinaryFromReader);
8489
8612
  msg.addEdges(value);
8490
8613
  break;
8614
+ case 9:
8615
+ var value = msg.getInputVariablesMap();
8616
+ reader.readMessage(value, function(message, reader2) {
8617
+ jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
8618
+ });
8619
+ break;
8491
8620
  default:
8492
8621
  reader.skipField();
8493
8622
  break;
@@ -8561,6 +8690,10 @@ var require_avs_pb = __commonJS({
8561
8690
  proto.aggregator.TaskEdge.serializeBinaryToWriter
8562
8691
  );
8563
8692
  }
8693
+ f = message.getInputVariablesMap(true);
8694
+ if (f && f.getLength() > 0) {
8695
+ f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
8696
+ }
8564
8697
  };
8565
8698
  proto.aggregator.CreateTaskReq.prototype.getTrigger = function() {
8566
8699
  return (
@@ -8652,6 +8785,21 @@ var require_avs_pb = __commonJS({
8652
8785
  proto.aggregator.CreateTaskReq.prototype.clearEdgesList = function() {
8653
8786
  return this.setEdgesList([]);
8654
8787
  };
8788
+ proto.aggregator.CreateTaskReq.prototype.getInputVariablesMap = function(opt_noLazyCreate) {
8789
+ return (
8790
+ /** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
8791
+ jspb.Message.getMapField(
8792
+ this,
8793
+ 9,
8794
+ opt_noLazyCreate,
8795
+ proto.google.protobuf.Value
8796
+ )
8797
+ );
8798
+ };
8799
+ proto.aggregator.CreateTaskReq.prototype.clearInputVariablesMap = function() {
8800
+ this.getInputVariablesMap().clear();
8801
+ return this;
8802
+ };
8655
8803
  if (jspb.Message.GENERATE_TO_OBJECT) {
8656
8804
  proto.aggregator.CreateTaskResp.prototype.toObject = function(opt_includeInstance) {
8657
8805
  return proto.aggregator.CreateTaskResp.toObject(opt_includeInstance, this);
@@ -14062,6 +14210,7 @@ var require_avs_pb = __commonJS({
14062
14210
  error: jspb.Message.getFieldWithDefault(msg, 3, ""),
14063
14211
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
14064
14212
  executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
14213
+ errorCode: jspb.Message.getFieldWithDefault(msg, 7, 0),
14065
14214
  ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
14066
14215
  graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
14067
14216
  contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
@@ -14114,6 +14263,13 @@ var require_avs_pb = __commonJS({
14114
14263
  reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
14115
14264
  msg.setExecutionContext(value);
14116
14265
  break;
14266
+ case 7:
14267
+ var value = (
14268
+ /** @type {!proto.aggregator.ErrorCode} */
14269
+ reader.readEnum()
14270
+ );
14271
+ msg.setErrorCode(value);
14272
+ break;
14117
14273
  case 10:
14118
14274
  var value = new proto.aggregator.ETHTransferNode.Output();
14119
14275
  reader.readMessage(value, proto.aggregator.ETHTransferNode.Output.deserializeBinaryFromReader);
@@ -14203,6 +14359,13 @@ var require_avs_pb = __commonJS({
14203
14359
  google_protobuf_struct_pb5.Value.serializeBinaryToWriter
14204
14360
  );
14205
14361
  }
14362
+ f = message.getErrorCode();
14363
+ if (f !== 0) {
14364
+ writer.writeEnum(
14365
+ 7,
14366
+ f
14367
+ );
14368
+ }
14206
14369
  f = message.getEthTransfer();
14207
14370
  if (f != null) {
14208
14371
  writer.writeMessage(
@@ -14324,6 +14487,15 @@ var require_avs_pb = __commonJS({
14324
14487
  proto.aggregator.RunNodeWithInputsResp.prototype.hasExecutionContext = function() {
14325
14488
  return jspb.Message.getField(this, 6) != null;
14326
14489
  };
14490
+ proto.aggregator.RunNodeWithInputsResp.prototype.getErrorCode = function() {
14491
+ return (
14492
+ /** @type {!proto.aggregator.ErrorCode} */
14493
+ jspb.Message.getFieldWithDefault(this, 7, 0)
14494
+ );
14495
+ };
14496
+ proto.aggregator.RunNodeWithInputsResp.prototype.setErrorCode = function(value) {
14497
+ return jspb.Message.setProto3EnumField(this, 7, value);
14498
+ };
14327
14499
  proto.aggregator.RunNodeWithInputsResp.prototype.getEthTransfer = function() {
14328
14500
  return (
14329
14501
  /** @type{?proto.aggregator.ETHTransferNode.Output} */
@@ -14600,6 +14772,7 @@ var require_avs_pb = __commonJS({
14600
14772
  error: jspb.Message.getFieldWithDefault(msg, 2, ""),
14601
14773
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
14602
14774
  executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
14775
+ errorCode: jspb.Message.getFieldWithDefault(msg, 6, 0),
14603
14776
  blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
14604
14777
  fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
14605
14778
  cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
@@ -14648,6 +14821,13 @@ var require_avs_pb = __commonJS({
14648
14821
  reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
14649
14822
  msg.setExecutionContext(value);
14650
14823
  break;
14824
+ case 6:
14825
+ var value = (
14826
+ /** @type {!proto.aggregator.ErrorCode} */
14827
+ reader.readEnum()
14828
+ );
14829
+ msg.setErrorCode(value);
14830
+ break;
14651
14831
  case 10:
14652
14832
  var value = new proto.aggregator.BlockTrigger.Output();
14653
14833
  reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
@@ -14717,6 +14897,13 @@ var require_avs_pb = __commonJS({
14717
14897
  google_protobuf_struct_pb5.Value.serializeBinaryToWriter
14718
14898
  );
14719
14899
  }
14900
+ f = message.getErrorCode();
14901
+ if (f !== 0) {
14902
+ writer.writeEnum(
14903
+ 6,
14904
+ f
14905
+ );
14906
+ }
14720
14907
  f = message.getBlockTrigger();
14721
14908
  if (f != null) {
14722
14909
  writer.writeMessage(
@@ -14806,6 +14993,15 @@ var require_avs_pb = __commonJS({
14806
14993
  proto.aggregator.RunTriggerResp.prototype.hasExecutionContext = function() {
14807
14994
  return jspb.Message.getField(this, 5) != null;
14808
14995
  };
14996
+ proto.aggregator.RunTriggerResp.prototype.getErrorCode = function() {
14997
+ return (
14998
+ /** @type {!proto.aggregator.ErrorCode} */
14999
+ jspb.Message.getFieldWithDefault(this, 6, 0)
15000
+ );
15001
+ };
15002
+ proto.aggregator.RunTriggerResp.prototype.setErrorCode = function(value) {
15003
+ return jspb.Message.setProto3EnumField(this, 6, value);
15004
+ };
14809
15005
  proto.aggregator.RunTriggerResp.prototype.getBlockTrigger = function() {
14810
15006
  return (
14811
15007
  /** @type{?proto.aggregator.BlockTrigger.Output} */
@@ -16048,6 +16244,7 @@ __export(index_exports, {
16048
16244
  CustomCodeNode: () => customCode_default,
16049
16245
  ETHTransferNode: () => ethTransfer_default,
16050
16246
  Edge: () => edge_default,
16247
+ ErrorCode: () => import_types21.ErrorCode,
16051
16248
  EventTrigger: () => event_default,
16052
16249
  Execution: () => execution_default,
16053
16250
  FilterNode: () => filter_default,
@@ -17790,6 +17987,7 @@ var Workflow = class _Workflow {
17790
17987
  this.status = props.status;
17791
17988
  this.completedAt = props.completedAt;
17792
17989
  this.lastRanAt = props.lastRanAt;
17990
+ this.inputVariables = props.inputVariables;
17793
17991
  }
17794
17992
  /**
17795
17993
  * Create an instance of Workflow from AVS getWorkflow response
@@ -17890,6 +18088,12 @@ var Workflow = class _Workflow {
17890
18088
  if (this.name) {
17891
18089
  request.setName(this.name);
17892
18090
  }
18091
+ if (this.inputVariables) {
18092
+ const inputVarsMap = request.getInputVariablesMap();
18093
+ for (const [key, value] of Object.entries(this.inputVariables)) {
18094
+ inputVarsMap.set(key, convertJSValueToProtobuf(value));
18095
+ }
18096
+ }
17893
18097
  return request;
17894
18098
  }
17895
18099
  /**
@@ -17911,7 +18115,8 @@ var Workflow = class _Workflow {
17911
18115
  name: this.name,
17912
18116
  status: this.status,
17913
18117
  completedAt: this.completedAt,
17914
- lastRanAt: this.lastRanAt
18118
+ lastRanAt: this.lastRanAt,
18119
+ inputVariables: this.inputVariables
17915
18120
  };
17916
18121
  }
17917
18122
  };
@@ -17938,6 +18143,9 @@ var Step = class _Step {
17938
18143
  this.endAt = props.endAt;
17939
18144
  this.metadata = props.metadata;
17940
18145
  this.executionContext = props.executionContext;
18146
+ this.gasUsed = props.gasUsed;
18147
+ this.gasPrice = props.gasPrice;
18148
+ this.totalGasCost = props.totalGasCost;
17941
18149
  }
17942
18150
  /**
17943
18151
  * Convert Step instance to plain object (StepProps)
@@ -17957,7 +18165,10 @@ var Step = class _Step {
17957
18165
  startAt: this.startAt,
17958
18166
  endAt: this.endAt,
17959
18167
  metadata: this.metadata,
17960
- executionContext: this.executionContext
18168
+ executionContext: this.executionContext,
18169
+ ...this.gasUsed && { gasUsed: this.gasUsed },
18170
+ ...this.gasPrice && { gasPrice: this.gasPrice },
18171
+ ...this.totalGasCost && { totalGasCost: this.totalGasCost }
17961
18172
  };
17962
18173
  }
17963
18174
  static getOutput(step) {
@@ -18074,6 +18285,9 @@ var Step = class _Step {
18074
18285
  const getInputsList = () => typeof step.getInputsList === "function" ? step.getInputsList() : step.inputsList || [];
18075
18286
  const getStartAt = () => typeof step.getStartAt === "function" ? step.getStartAt() : step.startAt;
18076
18287
  const getEndAt = () => typeof step.getEndAt === "function" ? step.getEndAt() : step.endAt;
18288
+ const getGasUsed = () => typeof step.getGasUsed === "function" ? step.getGasUsed() : step.gasUsed;
18289
+ const getGasPrice = () => typeof step.getGasPrice === "function" ? step.getGasPrice() : step.gasPrice;
18290
+ const getTotalGasCost = () => typeof step.getTotalGasCost === "function" ? step.getTotalGasCost() : step.totalGasCost;
18077
18291
  let stepMetadata = void 0;
18078
18292
  if (typeof step.getMetadata === "function" && step.getMetadata()) {
18079
18293
  try {
@@ -18109,7 +18323,10 @@ var Step = class _Step {
18109
18323
  startAt: getStartAt(),
18110
18324
  endAt: getEndAt(),
18111
18325
  metadata: stepMetadata,
18112
- executionContext
18326
+ executionContext,
18327
+ gasUsed: getGasUsed() || void 0,
18328
+ gasPrice: getGasPrice() || void 0,
18329
+ totalGasCost: getTotalGasCost() || void 0
18113
18330
  });
18114
18331
  }
18115
18332
  // Client side does not generate the step, so there's no toRequest() method
@@ -18141,6 +18358,7 @@ var Execution2 = class _Execution {
18141
18358
  this.error = props.error;
18142
18359
  this.index = props.index;
18143
18360
  this.steps = props.steps.map((s) => new step_default(s));
18361
+ this.totalGasCost = props.totalGasCost;
18144
18362
  }
18145
18363
  /**
18146
18364
  * Convert Execution instance to plain object (ExecutionProps)
@@ -18154,7 +18372,8 @@ var Execution2 = class _Execution {
18154
18372
  status: this.status,
18155
18373
  error: this.error,
18156
18374
  index: this.index,
18157
- steps: this.steps.map((step) => step.toJson())
18375
+ steps: this.steps.map((step) => step.toJson()),
18376
+ ...this.totalGasCost && { totalGasCost: this.totalGasCost }
18158
18377
  };
18159
18378
  }
18160
18379
  static fromResponse(execution) {
@@ -18165,6 +18384,7 @@ var Execution2 = class _Execution {
18165
18384
  status: convertProtobufExecutionStatusToTypes(execution.getStatus()),
18166
18385
  error: execution.getError(),
18167
18386
  index: execution.getIndex(),
18387
+ totalGasCost: execution.getTotalGasCost() || void 0,
18168
18388
  steps: execution.getStepsList().map((step) => step_default.fromResponse(step))
18169
18389
  });
18170
18390
  }
@@ -19118,6 +19338,7 @@ var Client = class extends BaseClient {
19118
19338
  return {
19119
19339
  success: false,
19120
19340
  error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
19341
+ errorCode: import_types21.ErrorCode.INVALID_REQUEST,
19121
19342
  data: null
19122
19343
  };
19123
19344
  }
@@ -19139,6 +19360,7 @@ var Client = class extends BaseClient {
19139
19360
  success: result.getSuccess(),
19140
19361
  data: toCamelCaseKeys(factory_default2.fromOutputData(result)),
19141
19362
  error: result.getError(),
19363
+ errorCode: result.getErrorCode() || void 0,
19142
19364
  metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
19143
19365
  executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
19144
19366
  };
@@ -19174,6 +19396,7 @@ var Client = class extends BaseClient {
19174
19396
  success: result.getSuccess(),
19175
19397
  data: toCamelCaseKeys(factory_default.fromOutputData(result)),
19176
19398
  error: result.getError(),
19399
+ errorCode: result.getErrorCode() || void 0,
19177
19400
  metadata: toCamelCaseKeys(metadata),
19178
19401
  executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
19179
19402
  };
@@ -19245,6 +19468,7 @@ var Client = class extends BaseClient {
19245
19468
  CustomCodeNode,
19246
19469
  ETHTransferNode,
19247
19470
  Edge,
19471
+ ErrorCode,
19248
19472
  EventTrigger,
19249
19473
  Execution,
19250
19474
  FilterNode,