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