@virtuals-protocol/acp-node 0.3.0-beta.24 → 0.3.0-beta.25
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.js +6 -5
- package/dist/index.mjs +6 -5
- package/package.json +1 -1
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.
|
|
38
|
+
version: "0.3.0-beta.25",
|
|
39
39
|
main: "./dist/index.js",
|
|
40
40
|
module: "./dist/index.mjs",
|
|
41
41
|
types: "./dist/index.d.ts",
|
|
@@ -4907,12 +4907,13 @@ var AcpClient = class {
|
|
|
4907
4907
|
if (showHiddenOfferings) {
|
|
4908
4908
|
params.showHiddenOfferings = true;
|
|
4909
4909
|
}
|
|
4910
|
-
const
|
|
4911
|
-
|
|
4910
|
+
const agentsResponse = await this.noAuthAcpClient.get("/agents", {
|
|
4911
|
+
params
|
|
4912
|
+
});
|
|
4913
|
+
if (!agentsResponse.data) {
|
|
4912
4914
|
return null;
|
|
4913
4915
|
}
|
|
4914
|
-
|
|
4915
|
-
return this._hydrateAgent(agent);
|
|
4916
|
+
return this._hydrateAgent(agentsResponse.data.data[0]);
|
|
4916
4917
|
}
|
|
4917
4918
|
async getAccountByJobId(jobId, acpContractClient) {
|
|
4918
4919
|
const account = await this._fetch(`/accounts/job/${jobId}`);
|
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.
|
|
11
|
+
version: "0.3.0-beta.25",
|
|
12
12
|
main: "./dist/index.js",
|
|
13
13
|
module: "./dist/index.mjs",
|
|
14
14
|
types: "./dist/index.d.ts",
|
|
@@ -4861,12 +4861,13 @@ var AcpClient = class {
|
|
|
4861
4861
|
if (showHiddenOfferings) {
|
|
4862
4862
|
params.showHiddenOfferings = true;
|
|
4863
4863
|
}
|
|
4864
|
-
const
|
|
4865
|
-
|
|
4864
|
+
const agentsResponse = await this.noAuthAcpClient.get("/agents", {
|
|
4865
|
+
params
|
|
4866
|
+
});
|
|
4867
|
+
if (!agentsResponse.data) {
|
|
4866
4868
|
return null;
|
|
4867
4869
|
}
|
|
4868
|
-
|
|
4869
|
-
return this._hydrateAgent(agent);
|
|
4870
|
+
return this._hydrateAgent(agentsResponse.data.data[0]);
|
|
4870
4871
|
}
|
|
4871
4872
|
async getAccountByJobId(jobId, acpContractClient) {
|
|
4872
4873
|
const account = await this._fetch(`/accounts/job/${jobId}`);
|