@avaprotocol/sdk-js 2.6.4-dev.0 → 2.6.5

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.6.5
4
+
5
+ ### Patch Changes
6
+
7
+ - df22279: Update triggerWorkflow response to return the result when isBlocking:true
8
+ - Updated dependencies [df22279]
9
+ - @avaprotocol/types@2.4.5
10
+
11
+ ## 2.6.4
12
+
13
+ ### Patch Changes
14
+
15
+ - 031f401: Update triggerWorkflow for manual trigger and fix template tests
16
+ - Updated dependencies [031f401]
17
+ - @avaprotocol/types@2.4.4
18
+
3
19
  ## 2.6.3
4
20
 
5
21
  ### Patch Changes
@@ -0,0 +1,349 @@
1
+ import { Metadata } from "@grpc/grpc-js";
2
+ import { AggregatorClient } from "@/grpc_codegen/avs_grpc_pb";
3
+ import Workflow from "./models/workflow";
4
+ import Edge from "./models/edge";
5
+ import Execution from "./models/execution";
6
+ import Step from "./models/step";
7
+ import NodeFactory from "./models/node/factory";
8
+ import TriggerFactory from "./models/trigger/factory";
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 } from "@avaprotocol/types";
11
+ import { cleanGrpcErrorMessage } from "./utils";
12
+ declare class BaseClient {
13
+ readonly endpoint: string;
14
+ readonly rpcClient: AggregatorClient;
15
+ protected metadata: Metadata;
16
+ protected factoryAddress?: string;
17
+ protected authKey?: string;
18
+ protected timeoutConfig: TimeoutConfig;
19
+ constructor(opts: ClientOption);
20
+ /**
21
+ * Set default timeout configuration for all requests
22
+ * @param config - The timeout configuration
23
+ */
24
+ setTimeoutConfig(config: TimeoutConfig): void;
25
+ /**
26
+ * Get the current timeout configuration
27
+ * @returns {TimeoutConfig} - The current timeout configuration
28
+ */
29
+ getTimeoutConfig(): TimeoutConfig;
30
+ /**
31
+ * Send a fast gRPC request using FAST preset (5s timeout, 2 retries)
32
+ * @param method - The method name to call
33
+ * @param request - The request object
34
+ * @param options - Request options
35
+ * @returns {Promise<TResponse>} - The response from the server
36
+ */
37
+ protected sendFastRequest<TResponse, TRequest>(method: string, request: TRequest | any, options?: RequestOptions): Promise<TResponse>;
38
+ /**
39
+ * Send a slow gRPC request using SLOW preset (2min timeout, 2 retries)
40
+ * @param method - The method name to call
41
+ * @param request - The request object
42
+ * @param options - Request options
43
+ * @returns {Promise<TResponse>} - The response from the server
44
+ */
45
+ protected sendSlowRequest<TResponse, TRequest>(method: string, request: TRequest | any, options?: RequestOptions): Promise<TResponse>;
46
+ /**
47
+ * Send a no-retry gRPC request using NO_RETRY preset (30s timeout, no retries)
48
+ * @param method - The method name to call
49
+ * @param request - The request object
50
+ * @param options - Request options
51
+ * @returns {Promise<TResponse>} - The response from the server
52
+ */
53
+ protected sendNoRetryRequest<TResponse, TRequest>(method: string, request: TRequest | any, options?: RequestOptions): Promise<TResponse>;
54
+ /**
55
+ * Check if the auth key is valid by decoding the JWT token and checking the expiration
56
+ * @param key - The auth key
57
+ * @returns {boolean} - Whether the auth key is valid
58
+ */
59
+ isAuthKeyValid(key: string): boolean;
60
+ /**
61
+ * Get the signature format from the server
62
+ * @param wallet - The wallet address
63
+ * @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
64
+ */
65
+ getSignatureFormat(wallet: string): Promise<GetSignatureFormatResponse>;
66
+ /**
67
+ * The API key could retrieve a wallet's authKey by skipping its signature verification
68
+ * @param message - The message to sign, obtained from getSignatureFormat
69
+ * @param apiKey - The API key used instead of a signature
70
+ * @returns {Promise<GetKeyResponse>} - The response from the auth call
71
+ */
72
+ authWithAPIKey({ message, apiKey, }: {
73
+ message: string;
74
+ apiKey: string;
75
+ }): Promise<GetKeyResponse>;
76
+ /**
77
+ * Getting an authKey from the server by verifying the signature of an EOA wallet
78
+ * @param message - The message to sign, obtained from getSignatureFormat
79
+ * @param signature - The signature of the message
80
+ * @returns {Promise<GetKeyResponse>} - The response from the auth call
81
+ */
82
+ authWithSignature({ message, signature, }: {
83
+ message: string;
84
+ signature: string;
85
+ }): Promise<GetKeyResponse>;
86
+ /**
87
+ * The client could choose to store the authKey and use it for all requests; setting it to undefined will unset the authKey
88
+ * The authKey can be overridden at the request level by request options
89
+ * @param authKey - The auth key
90
+ */
91
+ setAuthKey(authKey: string | undefined): void;
92
+ /**
93
+ * Get the auth key if it's set in the client
94
+ * @returns {string | undefined} - The auth key
95
+ */
96
+ getAuthKey(): string | undefined;
97
+ /**
98
+ * Set the factory address of smart wallets for the client
99
+ * @param address - The factory address
100
+ */
101
+ setFactoryAddress(address: string): void;
102
+ /**
103
+ * Get the factory address if it's set in the client
104
+ * @returns {string | undefined} - The factory address
105
+ */
106
+ getFactoryAddress(): string | undefined;
107
+ /**
108
+ * Send a gRPC request with authentication, timeout support, and error handling
109
+ * @param method - The method name to call
110
+ * @param request - The request object
111
+ * @param options - Request options including timeout configuration
112
+ * @returns {Promise<TResponse>} - The response from the server
113
+ */
114
+ protected sendGrpcRequest<TResponse, TRequest>(method: string, request: TRequest | any, options?: RequestOptions): Promise<TResponse>;
115
+ }
116
+ declare class Client extends BaseClient {
117
+ constructor(config: ClientOption);
118
+ /**
119
+ * Get the list of smart wallets; new wallets can be added to the list by calling `getWallet`
120
+ * @param {RequestOptions} options - Request options
121
+ * @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
122
+ */
123
+ getWallets(options?: RequestOptions): Promise<SmartWallet[]>;
124
+ /**
125
+ * Add a new smart wallet address to the wallet list
126
+ * @param {string} salt - The salt for the wallet
127
+ * @param {string} factoryAddress - Factory address for the wallet; if not provided, the address stored in the client will be used
128
+ * @param {RequestOptions} options - Request options
129
+ * @returns {Promise<SmartWallet>} - The added SmartWallet object
130
+ */
131
+ getWallet({ salt, factoryAddress }: GetWalletRequest, options?: RequestOptions): Promise<SmartWallet>;
132
+ /**
133
+ * Set wallet properties including hiding/unhiding a wallet
134
+ * @param {GetWalletRequest} walletRequest - The wallet request containing salt and optional factory address
135
+ * @param {object} options - Options for the wallet
136
+ * @param {boolean} options.isHidden - Whether the wallet should be hidden
137
+ * @param {RequestOptions} requestOptions - Request options
138
+ * @returns {Promise<SmartWallet>} - The updated SmartWallet object
139
+ */
140
+ setWallet({ salt, factoryAddress }: GetWalletRequest, { isHidden }: {
141
+ isHidden: boolean;
142
+ }, requestOptions?: RequestOptions): Promise<SmartWallet>;
143
+ /**
144
+ * Submit a workflow to the AVS server; once the workflow is submitted, it cannot be modified
145
+ * @param {Workflow} workflow - Workflow object to submit
146
+ * @param {RequestOptions} options - Request options
147
+ * @returns {Promise<string>} - The Id of the submitted workflow
148
+ */
149
+ submitWorkflow(workflow: Workflow, options?: RequestOptions): Promise<string>;
150
+ createWorkflow(props: WorkflowProps): Workflow;
151
+ /**
152
+ * Get the list of workflows for multiple addresses
153
+ * @param {string[]} addresses - The list of addresses
154
+ * @param {GetWorkflowsOptions} options - Request options
155
+ * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
156
+ * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
157
+ * @param {number} [options.limit] - The page limit of the response; default is 10
158
+ * @param {boolean} [options.includeNodes] - Include task nodes (expensive field)
159
+ * @param {boolean} [options.includeEdges] - Include task edges (expensive field)
160
+ * @param {string} [options.authKey] - The auth key for the request
161
+ * @returns {Promise<{ items: WorkflowProps[]; pageInfo: PageInfo }>} - The list of WorkflowProps objects with nested pagination metadata
162
+ */
163
+ getWorkflows(addresses: string[], options?: GetWorkflowsOptions): Promise<{
164
+ items: WorkflowProps[];
165
+ pageInfo: PageInfo;
166
+ }>;
167
+ /**
168
+ * Get the count of workflows for multiple addresses
169
+ * @param addresses - The list of addresses
170
+ * @param options - Request options
171
+ * @returns {Promise<number>} - The count of workflows
172
+ */
173
+ getWorkflowCount(addresses: string[], options?: RequestOptions): Promise<number>;
174
+ /**
175
+ * Get the list of executions for multiple workflows
176
+ * @param {string[]} workflows - The list of workflow ids to fetch execution for
177
+ * @param {GetExecutionsOptions} options - Request options
178
+ * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
179
+ * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
180
+ * @param {number} [options.limit] - The page limit of the response; default is 10
181
+ * @param {string} [options.authKey] - The auth key for the request
182
+ * @returns {Promise<{ items: ExecutionProps[]; pageInfo: PageInfo }>} - The list of ExecutionProps objects with nested pagination metadata
183
+ */
184
+ getExecutions(workflows: string[], options?: GetExecutionsOptions): Promise<{
185
+ items: ExecutionProps[];
186
+ pageInfo: PageInfo;
187
+ }>;
188
+ /**
189
+ * Get a specific execution by id
190
+ * @param {string} workflowId - The workflow id (taskId)
191
+ * @param {string} executionId - The execution id
192
+ * @param {RequestOptions} options - Request options
193
+ * @returns {Promise<ExecutionProps>} - The ExecutionProps object
194
+ */
195
+ getExecution(workflowId: string, executionId: string, options?: RequestOptions): Promise<ExecutionProps>;
196
+ /**
197
+ * Get the count of executions for multiple workflows
198
+ * @param workflows - The list of workflow ids
199
+ * @param options - Request options
200
+ * @returns {Promise<number>} - The count of executions
201
+ */
202
+ getExecutionCount(workflows: string[], options?: RequestOptions): Promise<number>;
203
+ /**
204
+ * Get execution statistics for a specified time period
205
+ * @param {GetExecutionStatsOptions} options - Request options
206
+ * @param {string[]} [options.workflowIds] - Optional array of workflow IDs
207
+ * @param {number} [options.days] - Number of days to look back (default: 7)
208
+ * @param {string} [options.authKey] - The auth key for the request
209
+ * @returns {Promise<GetExecutionStatsResponse>} - Execution statistics
210
+ */
211
+ getExecutionStats(options?: GetExecutionStatsOptions): Promise<GetExecutionStatsResponse>;
212
+ /**
213
+ * Get the status of an execution
214
+ * @param {string} workflowId - The workflow id (taskId)
215
+ * @param {string} executionId - The execution id
216
+ * @param {RequestOptions} options - Request options
217
+ * @returns {Promise<ExecutionStatus>} - The status of the execution
218
+ */
219
+ getExecutionStatus(workflowId: string, executionId: string, options?: RequestOptions): Promise<ExecutionStatus>;
220
+ /**
221
+ * Get a workflow by id
222
+ * @param {string} id - The workflow id
223
+ * @param {RequestOptions} options - Request options
224
+ * @returns {Promise<Workflow>} - The Workflow object
225
+ */
226
+ getWorkflow(id: string, options?: RequestOptions): Promise<Workflow>;
227
+ /**
228
+ * Trigger a workflow with enhanced response including workflowId and optional execution details
229
+ * @param {Object} params - The trigger parameters
230
+ * @param {string} params.id - The workflow id
231
+ * @param {TriggerDataProps} params.triggerData - The trigger data
232
+ * @param {boolean} params.isBlocking - Whether to block until execution completes
233
+ * @param {RequestOptions} options - Request options
234
+ * @returns {Promise<TriggerWorkflowResponse>} - Enhanced response with workflowId and execution details
235
+ */
236
+ triggerWorkflow({ id, triggerData, isBlocking, }: {
237
+ id: string;
238
+ triggerData: TriggerDataProps;
239
+ isBlocking?: boolean;
240
+ }, options?: RequestOptions): Promise<TriggerWorkflowResponse>;
241
+ /**
242
+ * Cancel a workflow
243
+ * @param {string} id - The workflow id
244
+ * @param {RequestOptions} options - Request options
245
+ * @returns {Promise<CancelTaskResponse>} - The response from canceling the workflow
246
+ */
247
+ cancelWorkflow(id: string, options?: RequestOptions): Promise<CancelTaskResponse>;
248
+ /**
249
+ * Delete a workflow
250
+ * @param {string} id - The workflow id
251
+ * @param {RequestOptions} options - Request options
252
+ * @returns {Promise<DeleteTaskResponse>} - The response from deleting the workflow
253
+ */
254
+ deleteWorkflow(id: string, options?: RequestOptions): Promise<DeleteTaskResponse>;
255
+ /**
256
+ * Create a new secret
257
+ * @param {string} name - The name of the secret
258
+ * @param {string} value - The value of the secret
259
+ * @param {SecretOptions} [options] - Request options
260
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
261
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
262
+ * @param {string} [options.authKey] - The auth key for the request
263
+ * @returns {Promise<CreateSecretResponse>} - Structured response with creation details
264
+ */
265
+ createSecret(name: string, value: string, options?: SecretOptions): Promise<CreateSecretResponse>;
266
+ /**
267
+ * Update a secret
268
+ * @param {string} name - The name of the secret
269
+ * @param {string} value - The value of the secret
270
+ * @param {SecretOptions} [options] - Request options
271
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
272
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
273
+ * @param {string} [options.authKey] - The auth key for the request
274
+ * @returns {Promise<UpdateSecretResponse>} - Structured response with update details
275
+ */
276
+ updateSecret(name: string, value: string, options?: SecretOptions): Promise<UpdateSecretResponse>;
277
+ /**
278
+ * Get the list of secrets
279
+ * @param {GetSecretsOptions} options - Request options
280
+ * @param {string} [options.workflowId] - Filter secrets by workflow ID
281
+ * @param {string} [options.orgId] - Filter secrets by organization ID
282
+ * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
283
+ * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
284
+ * @param {number} [options.limit] - The page limit of the response; default is 10
285
+ * @param {boolean} [options.includeTimestamps] - Include created_at and updated_at fields
286
+ * @param {boolean} [options.includeCreatedBy] - Include created_by field
287
+ * @param {boolean} [options.includeDescription] - Include description field
288
+ * @param {string} [options.authKey] - The auth key for the request
289
+ * @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
290
+ */
291
+ getSecrets(options?: GetSecretsOptions): Promise<{
292
+ items: SecretProps[];
293
+ pageInfo: PageInfo;
294
+ }>;
295
+ /**
296
+ * Delete a secret
297
+ * @param {string} name - The name of the secret
298
+ * @param {SecretOptions} [options] - Request options
299
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
300
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
301
+ * @param {string} [options.authKey] - The auth key for the request
302
+ * @returns {Promise<DeleteSecretResponse>} - Structured response with deletion details
303
+ */
304
+ deleteSecret(name: string, options?: SecretOptions): Promise<DeleteSecretResponse>;
305
+ /**
306
+ * Run a node with inputs for testing purposes
307
+ * @param {RunNodeWithInputsRequest} params - The parameters for running the node
308
+ * @param {string} params.nodeType - The type of the node (restApi, customCode, etc.)
309
+ * @param {Record<string, any>} params.nodeConfig - The configuration for the node
310
+ * @param {Record<string, any>} params.inputVariables - Variables to pass to the node
311
+ * @param {RequestOptions} options - Request options
312
+ * @returns {Promise<RunNodeWithInputsResponse>} - The response from running the node
313
+ */
314
+ runNodeWithInputs({ nodeType, nodeConfig, inputVariables }: RunNodeWithInputsRequest, options?: RequestOptions): Promise<RunNodeWithInputsResponse>;
315
+ /**
316
+ * Run a trigger for testing purposes
317
+ * @param {RunTriggerRequest} params - The parameters for running the trigger
318
+ * @param {string} params.triggerType - The type of the trigger (blockTrigger, cronTrigger, etc.)
319
+ * @param {Record<string, any>} params.triggerConfig - The configuration for the trigger
320
+ * @param {RequestOptions} options - Request options
321
+ * @returns {Promise<RunTriggerResponse>} - The response from running the trigger
322
+ */
323
+ runTrigger({ triggerType, triggerConfig }: RunTriggerRequest, options?: RequestOptions): Promise<RunTriggerResponse>;
324
+ /**
325
+ * Simulate a complete task execution including trigger and all workflow nodes
326
+ * @param {SimulateWorkflowRequest} params - The parameters for simulating the task
327
+ * @param {Record<string, any>} params.trigger - The trigger configuration
328
+ * @param {Array<Record<string, any>>} params.nodes - The workflow nodes
329
+ * @param {Array<Record<string, any>>} params.edges - The workflow edges
330
+ * @param {Record<string, any>} params.inputVariables - Input variables for the simulation
331
+ * @param {RequestOptions} options - Request options
332
+ * @returns {Promise<ExecutionProps>} - The response from simulating the task
333
+ */
334
+ simulateWorkflow({ trigger, nodes, edges, inputVariables }: SimulateWorkflowRequest, options?: RequestOptions): Promise<ExecutionProps>;
335
+ /**
336
+ * Get token metadata by contract address
337
+ * @param {GetTokenMetadataRequest} params - The parameters for getting token metadata
338
+ * @param {string} params.address - The contract address to look up
339
+ * @param {RequestOptions} options - Request options
340
+ * @returns {Promise<GetTokenMetadataResponse>} - The response containing token metadata
341
+ */
342
+ getTokenMetadata({ address }: GetTokenMetadataRequest, options?: RequestOptions): Promise<GetTokenMetadataResponse>;
343
+ }
344
+ export * from "./models/node/factory";
345
+ export * from "./models/trigger/factory";
346
+ export { Client, Workflow, Edge, Execution, Step, NodeFactory, TriggerFactory, Secret, cleanGrpcErrorMessage, };
347
+ export type { TokenMetadata, GetTokenMetadataRequest, GetTokenMetadataResponse, TokenSource, } from "@avaprotocol/types";
348
+ export { TimeoutPresets, type TimeoutConfig, type TimeoutError, } from "@avaprotocol/types";
349
+ //# 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;AAC9D,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,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,oB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