@avaprotocol/sdk-js 1.6.1 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @avaprotocol/sdk-js
2
2
 
3
+ ## 1.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6e9069f: Make type definitions more consistent
8
+ - Updated dependencies [6e9069f]
9
+ - @avaprotocol/types@1.0.3
10
+
11
+ ## 1.6.2
12
+
13
+ ### Patch Changes
14
+
15
+ - b2db42f: Update getSecrets to use general pageInfo
16
+ - Updated dependencies [b2db42f]
17
+ - @avaprotocol/types@1.0.2
18
+
3
19
  ## 1.6.1
4
20
 
5
21
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import Step, { StepProps } from "./models/step";
8
8
  import NodeFactory from "./models/node/factory";
9
9
  import TriggerFactory from "./models/trigger/factory";
10
10
  import Secret from "./models/secret";
11
- import type { GetKeyResponse, ListSecretsResponse, SecretRequestOptions, RequestOptions, ClientOption, SmartWallet, GetWalletRequest, GetExecutionsRequest, GetWorkflowsRequest, GetSignatureFormatResponse, RunNodeWithInputsRequest, RunNodeWithInputsResponse } from "@avaprotocol/types";
11
+ import type { GetKeyResponse, RequestOptions, ClientOption, SmartWallet, GetWalletRequest, GetExecutionsOptions, GetWorkflowsOptions, GetSignatureFormatResponse, RunNodeWithInputsRequest, RunNodeWithInputsResponse, SecretProps, PageInfo, GetSecretsOptions, SecretOptions } from "@avaprotocol/types";
12
12
  import { ExecutionStatus } from "@/grpc_codegen/avs_pb";
13
13
  import TriggerReason, { TriggerReasonProps } from "./models/trigger/reason";
14
14
  declare class BaseClient {
@@ -127,30 +127,21 @@ declare class Client extends BaseClient {
127
127
  */
128
128
  submitWorkflow(workflow: Workflow, options?: RequestOptions): Promise<string>;
129
129
  createWorkflow(props: WorkflowProps): Workflow;
130
- /**
131
- * Get the list of workflows; new workflows can be created by calling `submitWorkflow`
132
- * @param {string} address - The address of the smart wallet
133
- * @param {string} cursor - The cursor for the list
134
- * @param {number} limit - The limit for the list
135
- * @param {RequestOptions} options - Request options
136
- * @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
137
- */
138
130
  /**
139
131
  * Get the list of workflows for multiple addresses
140
132
  * @param {string[]} addresses - The list of addresses
141
- * @param {GetWorkflowsRequest} options - Request options
133
+ * @param {GetWorkflowsOptions} options - Request options
142
134
  * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
143
135
  * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
144
136
  * @param {number} [options.limit] - The page limit of the response; default is 10
137
+ * @param {boolean} [options.includeNodes] - Include task nodes (expensive field)
138
+ * @param {boolean} [options.includeEdges] - Include task edges (expensive field)
145
139
  * @param {string} [options.authKey] - The auth key for the request
146
- * @returns {Promise<{ cursor: string; result: Workflow[]; hasMore: boolean }>} - The list of Workflow objects with pagination metadata
140
+ * @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
147
141
  */
148
- getWorkflows(addresses: string[], options?: GetWorkflowsRequest): Promise<{
142
+ getWorkflows(addresses: string[], options?: GetWorkflowsOptions): Promise<{
149
143
  items: Workflow[];
150
- startCursor: string;
151
- endCursor: string;
152
- hasPreviousPage: boolean;
153
- hasNextPage: boolean;
144
+ pageInfo: PageInfo;
154
145
  }>;
155
146
  /**
156
147
  * Get the count of workflows for multiple addresses
@@ -160,21 +151,18 @@ declare class Client extends BaseClient {
160
151
  */
161
152
  getWorkflowCount(addresses: string[], options?: RequestOptions): Promise<number>;
162
153
  /**
163
- * Get the list of executions for multiple workflow given in the workflows argument.
154
+ * Get the list of executions for multiple workflows
164
155
  * @param {string[]} workflows - The list of workflow ids to fetch execution for
165
- * @param {GetExecutionsRequest} options - Request options
156
+ * @param {GetExecutionsOptions} options - Request options
166
157
  * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
167
158
  * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
168
159
  * @param {number} [options.limit] - The page limit of the response; default is 10
169
160
  * @param {string} [options.authKey] - The auth key for the request
170
- * @returns {Promise<{ cursor: string; result: Execution[]; hasMore: boolean }>} - The list of Execution objects with pagination metadata
161
+ * @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
171
162
  */
172
- getExecutions(workflows: string[], options?: GetExecutionsRequest): Promise<{
163
+ getExecutions(workflows: string[], options?: GetExecutionsOptions): Promise<{
173
164
  items: Execution[];
174
- startCursor: string;
175
- endCursor: string;
176
- hasPreviousPage: boolean;
177
- hasNextPage: boolean;
165
+ pageInfo: PageInfo;
178
166
  }>;
179
167
  /**
180
168
  * Get a specific execution by id
@@ -238,31 +226,52 @@ declare class Client extends BaseClient {
238
226
  * Create a new secret
239
227
  * @param {string} name - The name of the secret
240
228
  * @param {string} value - The value of the secret
241
- * @param {SecretRequestOptions} options - Request options
229
+ * @param {SecretOptions} [options] - Request options
230
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
231
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
232
+ * @param {string} [options.authKey] - The auth key for the request
242
233
  * @returns {Promise<boolean>} - True if the secret was created successfully
243
234
  */
244
- createSecret(name: string, value: string, options?: SecretRequestOptions): Promise<boolean>;
235
+ createSecret(name: string, value: string, options?: SecretOptions): Promise<boolean>;
245
236
  /**
246
237
  * Update a secret
247
238
  * @param {string} name - The name of the secret
248
239
  * @param {string} value - The value of the secret
249
- * @param {SecretRequestOptions} options - Request options
240
+ * @param {SecretOptions} [options] - Request options
241
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
242
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
243
+ * @param {string} [options.authKey] - The auth key for the request
250
244
  * @returns {Promise<boolean>} - True if the secret was updated successfully
251
245
  */
252
- updateSecret(name: string, value: string, options?: SecretRequestOptions): Promise<boolean>;
246
+ updateSecret(name: string, value: string, options?: SecretOptions): Promise<boolean>;
253
247
  /**
254
248
  * Get the list of secrets
255
- * @param {SecretRequestOptions} options - Request options
256
- * @returns {Promise<{ cursor: string; result: Secret[]; hasMore: boolean }>} - The list of Secret objects with pagination metadata
249
+ * @param {GetSecretsOptions} options - Request options
250
+ * @param {string} [options.workflowId] - Filter secrets by workflow ID
251
+ * @param {string} [options.orgId] - Filter secrets by organization ID
252
+ * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
253
+ * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
254
+ * @param {number} [options.limit] - The page limit of the response; default is 10
255
+ * @param {boolean} [options.includeTimestamps] - Include created_at and updated_at fields
256
+ * @param {boolean} [options.includeCreatedBy] - Include created_by field
257
+ * @param {boolean} [options.includeDescription] - Include description field
258
+ * @param {string} [options.authKey] - The auth key for the request
259
+ * @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
257
260
  */
258
- getSecrets(options?: SecretRequestOptions): Promise<ListSecretsResponse>;
261
+ getSecrets(options?: GetSecretsOptions): Promise<{
262
+ items: SecretProps[];
263
+ pageInfo: PageInfo;
264
+ }>;
259
265
  /**
260
266
  * Delete a secret
261
267
  * @param {string} name - The name of the secret
262
- * @param {SecretRequestOptions} options - Request options
268
+ * @param {SecretOptions} [options] - Request options
269
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
270
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
271
+ * @param {string} [options.authKey] - The auth key for the request
263
272
  * @returns {Promise<boolean>} - True if the secret was deleted successfully
264
273
  */
265
- deleteSecret(name: string, options?: SecretRequestOptions): Promise<boolean>;
274
+ deleteSecret(name: string, options?: SecretOptions): Promise<boolean>;
266
275
  /**
267
276
  * Run a node with inputs
268
277
  * @param {RunNodeWithInputsRequest} params - The parameters for running the node
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,QA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AAI,EACJ,WAAW,EACX,cAAc,EACd,aAAa,EACb,MAAM,GACP,CAAC;AAEF,YAAY,EACV,aAAa,EACb,SAAS,EACT,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,yBAAyB,GAC1B,CAAC"}
package/dist/index.js CHANGED
@@ -14765,23 +14765,17 @@ var Client = class extends BaseClient {
14765
14765
  createWorkflow(props) {
14766
14766
  return new workflow_default(props);
14767
14767
  }
14768
- /**
14769
- * Get the list of workflows; new workflows can be created by calling `submitWorkflow`
14770
- * @param {string} address - The address of the smart wallet
14771
- * @param {string} cursor - The cursor for the list
14772
- * @param {number} limit - The limit for the list
14773
- * @param {RequestOptions} options - Request options
14774
- * @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
14775
- */
14776
14768
  /**
14777
14769
  * Get the list of workflows for multiple addresses
14778
14770
  * @param {string[]} addresses - The list of addresses
14779
- * @param {GetWorkflowsRequest} options - Request options
14771
+ * @param {GetWorkflowsOptions} options - Request options
14780
14772
  * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
14781
14773
  * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
14782
14774
  * @param {number} [options.limit] - The page limit of the response; default is 10
14775
+ * @param {boolean} [options.includeNodes] - Include task nodes (expensive field)
14776
+ * @param {boolean} [options.includeEdges] - Include task edges (expensive field)
14783
14777
  * @param {string} [options.authKey] - The auth key for the request
14784
- * @returns {Promise<{ cursor: string; result: Workflow[]; hasMore: boolean }>} - The list of Workflow objects with pagination metadata
14778
+ * @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
14785
14779
  */
14786
14780
  async getWorkflows(addresses, options) {
14787
14781
  const request = new avs_pb22.ListTasksReq();
@@ -14802,9 +14796,18 @@ var Client = class extends BaseClient {
14802
14796
  request.setIncludeEdges(options.includeEdges);
14803
14797
  }
14804
14798
  const result = await this.sendGrpcRequest("listTasks", request, options);
14799
+ const pageInfo = result.getPageInfo();
14800
+ if (!pageInfo) {
14801
+ throw new Error("Server response missing pagination info.");
14802
+ }
14805
14803
  return {
14806
14804
  items: result.getItemsList().map((item) => workflow_default.fromListResponse(item)),
14807
- ...result.getPageInfo().toObject()
14805
+ pageInfo: {
14806
+ startCursor: pageInfo.getStartCursor(),
14807
+ endCursor: pageInfo.getEndCursor(),
14808
+ hasPreviousPage: pageInfo.getHasPreviousPage(),
14809
+ hasNextPage: pageInfo.getHasNextPage()
14810
+ }
14808
14811
  };
14809
14812
  }
14810
14813
  /**
@@ -14820,14 +14823,14 @@ var Client = class extends BaseClient {
14820
14823
  return result.getTotal();
14821
14824
  }
14822
14825
  /**
14823
- * Get the list of executions for multiple workflow given in the workflows argument.
14826
+ * Get the list of executions for multiple workflows
14824
14827
  * @param {string[]} workflows - The list of workflow ids to fetch execution for
14825
- * @param {GetExecutionsRequest} options - Request options
14828
+ * @param {GetExecutionsOptions} options - Request options
14826
14829
  * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
14827
14830
  * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
14828
14831
  * @param {number} [options.limit] - The page limit of the response; default is 10
14829
14832
  * @param {string} [options.authKey] - The auth key for the request
14830
- * @returns {Promise<{ cursor: string; result: Execution[]; hasMore: boolean }>} - The list of Execution objects with pagination metadata
14833
+ * @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
14831
14834
  */
14832
14835
  async getExecutions(workflows, options) {
14833
14836
  const request = new avs_pb22.ListExecutionsReq();
@@ -14842,9 +14845,18 @@ var Client = class extends BaseClient {
14842
14845
  }
14843
14846
  request.setLimit(options?.limit || import_types21.DEFAULT_LIMIT);
14844
14847
  const result = await this.sendGrpcRequest("listExecutions", request, options);
14848
+ const pageInfo = result.getPageInfo();
14849
+ if (!pageInfo) {
14850
+ throw new Error("Server response missing pagination info.");
14851
+ }
14845
14852
  return {
14846
14853
  items: result.getItemsList().map((item) => execution_default.fromResponse(item)),
14847
- ...result.getPageInfo().toObject()
14854
+ pageInfo: {
14855
+ startCursor: pageInfo.getStartCursor(),
14856
+ endCursor: pageInfo.getEndCursor(),
14857
+ hasPreviousPage: pageInfo.getHasPreviousPage(),
14858
+ hasNextPage: pageInfo.getHasNextPage()
14859
+ }
14848
14860
  };
14849
14861
  }
14850
14862
  /**
@@ -14960,7 +14972,10 @@ var Client = class extends BaseClient {
14960
14972
  * Create a new secret
14961
14973
  * @param {string} name - The name of the secret
14962
14974
  * @param {string} value - The value of the secret
14963
- * @param {SecretRequestOptions} options - Request options
14975
+ * @param {SecretOptions} [options] - Request options
14976
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
14977
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
14978
+ * @param {string} [options.authKey] - The auth key for the request
14964
14979
  * @returns {Promise<boolean>} - True if the secret was created successfully
14965
14980
  */
14966
14981
  async createSecret(name, value, options) {
@@ -14980,7 +14995,10 @@ var Client = class extends BaseClient {
14980
14995
  * Update a secret
14981
14996
  * @param {string} name - The name of the secret
14982
14997
  * @param {string} value - The value of the secret
14983
- * @param {SecretRequestOptions} options - Request options
14998
+ * @param {SecretOptions} [options] - Request options
14999
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
15000
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
15001
+ * @param {string} [options.authKey] - The auth key for the request
14984
15002
  * @returns {Promise<boolean>} - True if the secret was updated successfully
14985
15003
  */
14986
15004
  async updateSecret(name, value, options) {
@@ -14998,8 +15016,17 @@ var Client = class extends BaseClient {
14998
15016
  }
14999
15017
  /**
15000
15018
  * Get the list of secrets
15001
- * @param {SecretRequestOptions} options - Request options
15002
- * @returns {Promise<{ cursor: string; result: Secret[]; hasMore: boolean }>} - The list of Secret objects with pagination metadata
15019
+ * @param {GetSecretsOptions} options - Request options
15020
+ * @param {string} [options.workflowId] - Filter secrets by workflow ID
15021
+ * @param {string} [options.orgId] - Filter secrets by organization ID
15022
+ * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
15023
+ * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
15024
+ * @param {number} [options.limit] - The page limit of the response; default is 10
15025
+ * @param {boolean} [options.includeTimestamps] - Include created_at and updated_at fields
15026
+ * @param {boolean} [options.includeCreatedBy] - Include created_by field
15027
+ * @param {boolean} [options.includeDescription] - Include description field
15028
+ * @param {string} [options.authKey] - The auth key for the request
15029
+ * @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
15003
15030
  */
15004
15031
  async getSecrets(options) {
15005
15032
  const request = new avs_pb22.ListSecretsReq();
@@ -15039,16 +15066,21 @@ var Client = class extends BaseClient {
15039
15066
  description: item.getDescription() || void 0
15040
15067
  })
15041
15068
  ),
15042
- startCursor: pageInfo.getStartCursor(),
15043
- endCursor: pageInfo.getEndCursor(),
15044
- hasPreviousPage: pageInfo.getHasPreviousPage(),
15045
- hasNextPage: pageInfo.getHasNextPage()
15069
+ pageInfo: {
15070
+ startCursor: pageInfo.getStartCursor(),
15071
+ endCursor: pageInfo.getEndCursor(),
15072
+ hasPreviousPage: pageInfo.getHasPreviousPage(),
15073
+ hasNextPage: pageInfo.getHasNextPage()
15074
+ }
15046
15075
  };
15047
15076
  }
15048
15077
  /**
15049
15078
  * Delete a secret
15050
15079
  * @param {string} name - The name of the secret
15051
- * @param {SecretRequestOptions} options - Request options
15080
+ * @param {SecretOptions} [options] - Request options
15081
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
15082
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
15083
+ * @param {string} [options.authKey] - The auth key for the request
15052
15084
  * @returns {Promise<boolean>} - True if the secret was deleted successfully
15053
15085
  */
15054
15086
  async deleteSecret(name, options) {
package/dist/index.mjs CHANGED
@@ -14735,23 +14735,17 @@ var Client = class extends BaseClient {
14735
14735
  createWorkflow(props) {
14736
14736
  return new workflow_default(props);
14737
14737
  }
14738
- /**
14739
- * Get the list of workflows; new workflows can be created by calling `submitWorkflow`
14740
- * @param {string} address - The address of the smart wallet
14741
- * @param {string} cursor - The cursor for the list
14742
- * @param {number} limit - The limit for the list
14743
- * @param {RequestOptions} options - Request options
14744
- * @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
14745
- */
14746
14738
  /**
14747
14739
  * Get the list of workflows for multiple addresses
14748
14740
  * @param {string[]} addresses - The list of addresses
14749
- * @param {GetWorkflowsRequest} options - Request options
14741
+ * @param {GetWorkflowsOptions} options - Request options
14750
14742
  * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
14751
14743
  * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
14752
14744
  * @param {number} [options.limit] - The page limit of the response; default is 10
14745
+ * @param {boolean} [options.includeNodes] - Include task nodes (expensive field)
14746
+ * @param {boolean} [options.includeEdges] - Include task edges (expensive field)
14753
14747
  * @param {string} [options.authKey] - The auth key for the request
14754
- * @returns {Promise<{ cursor: string; result: Workflow[]; hasMore: boolean }>} - The list of Workflow objects with pagination metadata
14748
+ * @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
14755
14749
  */
14756
14750
  async getWorkflows(addresses, options) {
14757
14751
  const request = new avs_pb22.ListTasksReq();
@@ -14772,9 +14766,18 @@ var Client = class extends BaseClient {
14772
14766
  request.setIncludeEdges(options.includeEdges);
14773
14767
  }
14774
14768
  const result = await this.sendGrpcRequest("listTasks", request, options);
14769
+ const pageInfo = result.getPageInfo();
14770
+ if (!pageInfo) {
14771
+ throw new Error("Server response missing pagination info.");
14772
+ }
14775
14773
  return {
14776
14774
  items: result.getItemsList().map((item) => workflow_default.fromListResponse(item)),
14777
- ...result.getPageInfo().toObject()
14775
+ pageInfo: {
14776
+ startCursor: pageInfo.getStartCursor(),
14777
+ endCursor: pageInfo.getEndCursor(),
14778
+ hasPreviousPage: pageInfo.getHasPreviousPage(),
14779
+ hasNextPage: pageInfo.getHasNextPage()
14780
+ }
14778
14781
  };
14779
14782
  }
14780
14783
  /**
@@ -14790,14 +14793,14 @@ var Client = class extends BaseClient {
14790
14793
  return result.getTotal();
14791
14794
  }
14792
14795
  /**
14793
- * Get the list of executions for multiple workflow given in the workflows argument.
14796
+ * Get the list of executions for multiple workflows
14794
14797
  * @param {string[]} workflows - The list of workflow ids to fetch execution for
14795
- * @param {GetExecutionsRequest} options - Request options
14798
+ * @param {GetExecutionsOptions} options - Request options
14796
14799
  * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
14797
14800
  * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
14798
14801
  * @param {number} [options.limit] - The page limit of the response; default is 10
14799
14802
  * @param {string} [options.authKey] - The auth key for the request
14800
- * @returns {Promise<{ cursor: string; result: Execution[]; hasMore: boolean }>} - The list of Execution objects with pagination metadata
14803
+ * @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
14801
14804
  */
14802
14805
  async getExecutions(workflows, options) {
14803
14806
  const request = new avs_pb22.ListExecutionsReq();
@@ -14812,9 +14815,18 @@ var Client = class extends BaseClient {
14812
14815
  }
14813
14816
  request.setLimit(options?.limit || DEFAULT_LIMIT);
14814
14817
  const result = await this.sendGrpcRequest("listExecutions", request, options);
14818
+ const pageInfo = result.getPageInfo();
14819
+ if (!pageInfo) {
14820
+ throw new Error("Server response missing pagination info.");
14821
+ }
14815
14822
  return {
14816
14823
  items: result.getItemsList().map((item) => execution_default.fromResponse(item)),
14817
- ...result.getPageInfo().toObject()
14824
+ pageInfo: {
14825
+ startCursor: pageInfo.getStartCursor(),
14826
+ endCursor: pageInfo.getEndCursor(),
14827
+ hasPreviousPage: pageInfo.getHasPreviousPage(),
14828
+ hasNextPage: pageInfo.getHasNextPage()
14829
+ }
14818
14830
  };
14819
14831
  }
14820
14832
  /**
@@ -14930,7 +14942,10 @@ var Client = class extends BaseClient {
14930
14942
  * Create a new secret
14931
14943
  * @param {string} name - The name of the secret
14932
14944
  * @param {string} value - The value of the secret
14933
- * @param {SecretRequestOptions} options - Request options
14945
+ * @param {SecretOptions} [options] - Request options
14946
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
14947
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
14948
+ * @param {string} [options.authKey] - The auth key for the request
14934
14949
  * @returns {Promise<boolean>} - True if the secret was created successfully
14935
14950
  */
14936
14951
  async createSecret(name, value, options) {
@@ -14950,7 +14965,10 @@ var Client = class extends BaseClient {
14950
14965
  * Update a secret
14951
14966
  * @param {string} name - The name of the secret
14952
14967
  * @param {string} value - The value of the secret
14953
- * @param {SecretRequestOptions} options - Request options
14968
+ * @param {SecretOptions} [options] - Request options
14969
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
14970
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
14971
+ * @param {string} [options.authKey] - The auth key for the request
14954
14972
  * @returns {Promise<boolean>} - True if the secret was updated successfully
14955
14973
  */
14956
14974
  async updateSecret(name, value, options) {
@@ -14968,8 +14986,17 @@ var Client = class extends BaseClient {
14968
14986
  }
14969
14987
  /**
14970
14988
  * Get the list of secrets
14971
- * @param {SecretRequestOptions} options - Request options
14972
- * @returns {Promise<{ cursor: string; result: Secret[]; hasMore: boolean }>} - The list of Secret objects with pagination metadata
14989
+ * @param {GetSecretsOptions} options - Request options
14990
+ * @param {string} [options.workflowId] - Filter secrets by workflow ID
14991
+ * @param {string} [options.orgId] - Filter secrets by organization ID
14992
+ * @param {string} [options.before] - Get items before this cursor value (for backward pagination)
14993
+ * @param {string} [options.after] - Get items after this cursor value (for forward pagination)
14994
+ * @param {number} [options.limit] - The page limit of the response; default is 10
14995
+ * @param {boolean} [options.includeTimestamps] - Include created_at and updated_at fields
14996
+ * @param {boolean} [options.includeCreatedBy] - Include created_by field
14997
+ * @param {boolean} [options.includeDescription] - Include description field
14998
+ * @param {string} [options.authKey] - The auth key for the request
14999
+ * @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
14973
15000
  */
14974
15001
  async getSecrets(options) {
14975
15002
  const request = new avs_pb22.ListSecretsReq();
@@ -15009,16 +15036,21 @@ var Client = class extends BaseClient {
15009
15036
  description: item.getDescription() || void 0
15010
15037
  })
15011
15038
  ),
15012
- startCursor: pageInfo.getStartCursor(),
15013
- endCursor: pageInfo.getEndCursor(),
15014
- hasPreviousPage: pageInfo.getHasPreviousPage(),
15015
- hasNextPage: pageInfo.getHasNextPage()
15039
+ pageInfo: {
15040
+ startCursor: pageInfo.getStartCursor(),
15041
+ endCursor: pageInfo.getEndCursor(),
15042
+ hasPreviousPage: pageInfo.getHasPreviousPage(),
15043
+ hasNextPage: pageInfo.getHasNextPage()
15044
+ }
15016
15045
  };
15017
15046
  }
15018
15047
  /**
15019
15048
  * Delete a secret
15020
15049
  * @param {string} name - The name of the secret
15021
- * @param {SecretRequestOptions} options - Request options
15050
+ * @param {SecretOptions} [options] - Request options
15051
+ * @param {string} [options.workflowId] - The workflow ID to associate the secret with
15052
+ * @param {string} [options.orgId] - The organization ID to associate the secret with
15053
+ * @param {string} [options.authKey] - The auth key for the request
15022
15054
  * @returns {Promise<boolean>} - True if the secret was deleted successfully
15023
15055
  */
15024
15056
  async deleteSecret(name, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avaprotocol/sdk-js",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
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.1",
33
+ "@avaprotocol/types": "1.0.3",
34
34
  "@grpc/grpc-js": "^1.11.3",
35
35
  "@grpc/proto-loader": "^0.7.13",
36
36
  "dotenv": "^16.4.5",