@airtop/sdk 1.0.0-alpha2.23 → 1.0.0-alpha2.24
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.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -12
- package/dist/index.d.ts +19 -12
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
@@ -9,7 +9,7 @@ var require_package = __commonJS({
|
|
9
9
|
module.exports = {
|
10
10
|
name: "@airtop/sdk",
|
11
11
|
description: "Airtop SDK for TypeScript",
|
12
|
-
version: "1.0.0-alpha2.
|
12
|
+
version: "1.0.0-alpha2.24",
|
13
13
|
type: "module",
|
14
14
|
main: "./dist/index.cjs",
|
15
15
|
module: "./dist/index.js",
|
@@ -48,7 +48,7 @@ var require_package = __commonJS({
|
|
48
48
|
},
|
49
49
|
dependencies: {
|
50
50
|
"@airtop/json-schema-adapter": "workspace:*",
|
51
|
-
"@airtop/core": "0.1.0-alpha.
|
51
|
+
"@airtop/core": "0.1.0-alpha.40",
|
52
52
|
"date-fns": "4.1.0",
|
53
53
|
loglayer: "6.6.0",
|
54
54
|
"serialize-error": "12.0.0",
|
@@ -1709,9 +1709,9 @@ var AirtopAgentClient = class extends AirtopBase {
|
|
1709
1709
|
* @param requestOptions - Request options.
|
1710
1710
|
* @returns The agent data.
|
1711
1711
|
*/
|
1712
|
-
async getAgent(agentId, requestOptions = {}) {
|
1712
|
+
async getAgent(agentId, params = {}, requestOptions = {}) {
|
1713
1713
|
this.log.withMetadata({ agentId }).info("Retrieving agent");
|
1714
|
-
return this.client.agents.getAgent(agentId, this.resolveRequestOptions(requestOptions));
|
1714
|
+
return this.client.agents.getAgent(agentId, params, this.resolveRequestOptions(requestOptions));
|
1715
1715
|
}
|
1716
1716
|
/**
|
1717
1717
|
* Lists agents.
|
@@ -1738,9 +1738,9 @@ var AirtopAgentClient = class extends AirtopBase {
|
|
1738
1738
|
* @param agentId - The ID of the agent to publish.
|
1739
1739
|
* @returns The published version data
|
1740
1740
|
*/
|
1741
|
-
async publishNewAgentVersion(agentId) {
|
1741
|
+
async publishNewAgentVersion(agentId, params = {}, requestOptions = {}) {
|
1742
1742
|
this.log.withMetadata({ agentId }).info("Publishing new version of agent");
|
1743
|
-
return this.client.agents.publishAgent(agentId, this.resolveRequestOptions());
|
1743
|
+
return this.client.agents.publishAgent(agentId, params, this.resolveRequestOptions(requestOptions));
|
1744
1744
|
}
|
1745
1745
|
/**
|
1746
1746
|
* Retrieves the data for a specific version of an agent.
|