@virtuals-protocol/acp-node 0.3.0-beta.27 → 0.3.0-beta.29

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/dist/index.d.mts CHANGED
@@ -599,6 +599,8 @@ interface IAcpBrowseAgentsOptions {
599
599
  cluster?: string;
600
600
  sortBy?: AcpAgentSort[];
601
601
  topK?: number;
602
+ sort_by?: AcpAgentSort[];
603
+ top_k?: number;
602
604
  graduationStatus?: AcpGraduationStatus;
603
605
  onlineStatus?: AcpOnlineStatus;
604
606
  showHiddenOfferings?: boolean;
@@ -627,7 +629,7 @@ declare class AcpClient {
627
629
  private _hydrateJob;
628
630
  private _hydrateJobs;
629
631
  private _hydrateAgent;
630
- browseAgents(keyword: string, options?: IAcpBrowseAgentsOptions): Promise<AcpAgent[] | undefined>;
632
+ browseAgents(keyword: string, options?: IAcpBrowseAgentsOptions): Promise<AcpAgent[]>;
631
633
  initiateJob(providerAddress: Address, serviceRequirement: Object | string, fareAmount: FareAmountBase, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
632
634
  getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
633
635
  getPendingMemoJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
package/dist/index.d.ts CHANGED
@@ -599,6 +599,8 @@ interface IAcpBrowseAgentsOptions {
599
599
  cluster?: string;
600
600
  sortBy?: AcpAgentSort[];
601
601
  topK?: number;
602
+ sort_by?: AcpAgentSort[];
603
+ top_k?: number;
602
604
  graduationStatus?: AcpGraduationStatus;
603
605
  onlineStatus?: AcpOnlineStatus;
604
606
  showHiddenOfferings?: boolean;
@@ -627,7 +629,7 @@ declare class AcpClient {
627
629
  private _hydrateJob;
628
630
  private _hydrateJobs;
629
631
  private _hydrateAgent;
630
- browseAgents(keyword: string, options?: IAcpBrowseAgentsOptions): Promise<AcpAgent[] | undefined>;
632
+ browseAgents(keyword: string, options?: IAcpBrowseAgentsOptions): Promise<AcpAgent[]>;
631
633
  initiateJob(providerAddress: Address, serviceRequirement: Object | string, fareAmount: FareAmountBase, evaluatorAddress?: Address, expiredAt?: Date): Promise<number>;
632
634
  getActiveJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
633
635
  getPendingMemoJobs(page?: number, pageSize?: number): Promise<AcpJob[]>;
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ var require_package = __commonJS({
35
35
  "package.json"(exports2, module2) {
36
36
  module2.exports = {
37
37
  name: "@virtuals-protocol/acp-node",
38
- version: "0.3.0-beta.27",
38
+ version: "0.3.0-beta.29",
39
39
  main: "./dist/index.js",
40
40
  module: "./dist/index.mjs",
41
41
  types: "./dist/index.d.ts",
@@ -5112,6 +5112,8 @@ var AcpClient = class {
5112
5112
  cluster,
5113
5113
  sortBy,
5114
5114
  topK = 5,
5115
+ sort_by,
5116
+ top_k = 5,
5115
5117
  graduationStatus,
5116
5118
  onlineStatus,
5117
5119
  showHiddenOfferings
@@ -5119,10 +5121,11 @@ var AcpClient = class {
5119
5121
  const params = {
5120
5122
  search: keyword
5121
5123
  };
5122
- params.top_k = topK;
5124
+ params.top_k = topK || top_k;
5123
5125
  params.walletAddressesToExclude = this.walletAddress;
5124
- if (sortBy && sortBy.length > 0) {
5125
- params.sortBy = sortBy.join(",");
5126
+ const sortByArray = sortBy || sort_by;
5127
+ if (sortByArray && sortByArray.length > 0) {
5128
+ params.sortBy = sortByArray.join(",");
5126
5129
  }
5127
5130
  if (cluster) {
5128
5131
  params.cluster = cluster;
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@virtuals-protocol/acp-node",
11
- version: "0.3.0-beta.27",
11
+ version: "0.3.0-beta.29",
12
12
  main: "./dist/index.js",
13
13
  module: "./dist/index.mjs",
14
14
  types: "./dist/index.d.ts",
@@ -5089,6 +5089,8 @@ var AcpClient = class {
5089
5089
  cluster,
5090
5090
  sortBy,
5091
5091
  topK = 5,
5092
+ sort_by,
5093
+ top_k = 5,
5092
5094
  graduationStatus,
5093
5095
  onlineStatus,
5094
5096
  showHiddenOfferings
@@ -5096,10 +5098,11 @@ var AcpClient = class {
5096
5098
  const params = {
5097
5099
  search: keyword
5098
5100
  };
5099
- params.top_k = topK;
5101
+ params.top_k = topK || top_k;
5100
5102
  params.walletAddressesToExclude = this.walletAddress;
5101
- if (sortBy && sortBy.length > 0) {
5102
- params.sortBy = sortBy.join(",");
5103
+ const sortByArray = sortBy || sort_by;
5104
+ if (sortByArray && sortByArray.length > 0) {
5105
+ params.sortBy = sortByArray.join(",");
5103
5106
  }
5104
5107
  if (cluster) {
5105
5108
  params.cluster = cluster;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virtuals-protocol/acp-node",
3
- "version": "0.3.0-beta.27",
3
+ "version": "0.3.0-beta.29",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",