Skip to content

Commit

Permalink
Release v0.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 29, 2024
1 parent 96077af commit fac34d7
Show file tree
Hide file tree
Showing 31 changed files with 608 additions and 51 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superagentai-js",
"version": "v0.2.11",
"version": "v0.2.12",
"private": false,
"repository": "https://github.com/homanp/superagent-js",
"main": "./index.js",
Expand Down
7 changes: 7 additions & 0 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as core from "./core";
import { Agent } from "./api/resources/agent/client/Client";
import { Llm } from "./api/resources/llm/client/Client";
import { ApiUser } from "./api/resources/apiUser/client/Client";
import { ApiKey } from "./api/resources/apiKey/client/Client";
import { Datasource } from "./api/resources/datasource/client/Client";
import { Tool } from "./api/resources/tool/client/Client";
import { Workflow } from "./api/resources/workflow/client/Client";
Expand Down Expand Up @@ -46,6 +47,12 @@ export class SuperAgentClient {
return (this._apiUser ??= new ApiUser(this._options));
}

protected _apiKey: ApiKey | undefined;

public get apiKey(): ApiKey {
return (this._apiKey ??= new ApiKey(this._options));
}

protected _datasource: Datasource | undefined;

public get datasource(): Datasource {
Expand Down
28 changes: 14 additions & 14 deletions src/api/resources/agent/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -131,7 +131,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
body: await serializers.AppModelsRequestAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -202,7 +202,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -269,7 +269,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -335,7 +335,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
body: await serializers.AgentUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -414,7 +414,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
body: await serializers.AppModelsRequestAgentInvoke.jsonOrThrow(request, {
Expand Down Expand Up @@ -490,7 +490,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
body: await serializers.AppModelsRequestAgentLlm.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -558,7 +558,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -620,7 +620,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -693,7 +693,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
body: await serializers.AppModelsRequestAgentTool.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -761,7 +761,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -826,7 +826,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -899,7 +899,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
body: await serializers.AppModelsRequestAgentDatasource.jsonOrThrow(request, {
Expand Down Expand Up @@ -973,7 +973,7 @@ export class Agent {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "superagentai-js",
"X-Fern-SDK-Version": "v0.2.11",
"X-Fern-SDK-Version": "v0.2.12",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
Loading

0 comments on commit fac34d7

Please sign in to comment.