From 95271f1e3e299d6b993af91d1668a4569620b9a9 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 1 Feb 2024 23:01:32 +0000 Subject: [PATCH] Release v0.1.73 --- package.json | 2 +- src/api/resources/agent/client/Client.ts | 28 +++++++++---------- src/api/resources/apiUser/client/Client.ts | 6 ++-- src/api/resources/datasource/client/Client.ts | 10 +++---- src/api/resources/llm/client/Client.ts | 8 +++--- src/api/resources/telemetry/client/Client.ts | 2 +- src/api/resources/tool/client/Client.ts | 10 +++---- .../resources/vectorDatabase/client/Client.ts | 8 +++--- src/api/resources/workflow/client/Client.ts | 18 ++++++------ .../resources/workflowConfig/client/Client.ts | 2 +- src/api/types/AgentType.ts | 13 +++++++++ src/api/types/PrismaModelsAgent.ts | 1 + src/api/types/index.ts | 1 + src/serialization/types/AgentType.ts | 14 ++++++++++ src/serialization/types/PrismaModelsAgent.ts | 2 ++ src/serialization/types/index.ts | 1 + 16 files changed, 79 insertions(+), 47 deletions(-) create mode 100644 src/api/types/AgentType.ts create mode 100644 src/serialization/types/AgentType.ts diff --git a/package.json b/package.json index 22884d3..c987947 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "superagentai-js", - "version": "v0.1.72", + "version": "v0.1.73", "private": false, "repository": "https://github.com/homanp/superagent-js", "main": "./index.js", diff --git a/src/api/resources/agent/client/Client.ts b/src/api/resources/agent/client/Client.ts index 60bc08c..f767232 100644 --- a/src/api/resources/agent/client/Client.ts +++ b/src/api/resources/agent/client/Client.ts @@ -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.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", queryParameters: _queryParams, @@ -129,7 +129,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -200,7 +200,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -267,7 +267,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -333,7 +333,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AgentUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -412,7 +412,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestAgentInvoke.jsonOrThrow(request, { @@ -488,7 +488,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestAgentLlm.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -556,7 +556,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -618,7 +618,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -691,7 +691,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestAgentTool.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -759,7 +759,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -824,7 +824,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -897,7 +897,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestAgentDatasource.jsonOrThrow(request, { @@ -971,7 +971,7 @@ export class Agent { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/apiUser/client/Client.ts b/src/api/resources/apiUser/client/Client.ts index 73a604e..bc15157 100644 --- a/src/api/resources/apiUser/client/Client.ts +++ b/src/api/resources/apiUser/client/Client.ts @@ -47,7 +47,7 @@ export class ApiUser { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestApiUser.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -114,7 +114,7 @@ export class ApiUser { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -168,7 +168,7 @@ export class ApiUser { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/datasource/client/Client.ts b/src/api/resources/datasource/client/Client.ts index 96d2bc0..9dd0a67 100644 --- a/src/api/resources/datasource/client/Client.ts +++ b/src/api/resources/datasource/client/Client.ts @@ -55,7 +55,7 @@ export class Datasource { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", queryParameters: _queryParams, @@ -130,7 +130,7 @@ export class Datasource { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestDatasource.jsonOrThrow(request, { @@ -203,7 +203,7 @@ export class Datasource { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -270,7 +270,7 @@ export class Datasource { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -340,7 +340,7 @@ export class Datasource { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestDatasource.jsonOrThrow(request, { diff --git a/src/api/resources/llm/client/Client.ts b/src/api/resources/llm/client/Client.ts index 0695b6f..e99be46 100644 --- a/src/api/resources/llm/client/Client.ts +++ b/src/api/resources/llm/client/Client.ts @@ -41,7 +41,7 @@ export class Llm { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -102,7 +102,7 @@ export class Llm { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestLlm.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -170,7 +170,7 @@ export class Llm { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -244,7 +244,7 @@ export class Llm { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestLlm.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/telemetry/client/Client.ts b/src/api/resources/telemetry/client/Client.ts index b487f70..6794d9a 100644 --- a/src/api/resources/telemetry/client/Client.ts +++ b/src/api/resources/telemetry/client/Client.ts @@ -51,7 +51,7 @@ export class Telemetry { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/tool/client/Client.ts b/src/api/resources/tool/client/Client.ts index 5deda41..178c327 100644 --- a/src/api/resources/tool/client/Client.ts +++ b/src/api/resources/tool/client/Client.ts @@ -55,7 +55,7 @@ export class Tool { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", queryParameters: _queryParams, @@ -129,7 +129,7 @@ export class Tool { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestTool.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -197,7 +197,7 @@ export class Tool { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -264,7 +264,7 @@ export class Tool { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -333,7 +333,7 @@ export class Tool { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestTool.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/vectorDatabase/client/Client.ts b/src/api/resources/vectorDatabase/client/Client.ts index d0b9b7f..d459eb0 100644 --- a/src/api/resources/vectorDatabase/client/Client.ts +++ b/src/api/resources/vectorDatabase/client/Client.ts @@ -50,7 +50,7 @@ export class VectorDatabase { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestVectorDb.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -117,7 +117,7 @@ export class VectorDatabase { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -175,7 +175,7 @@ export class VectorDatabase { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -251,7 +251,7 @@ export class VectorDatabase { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestVectorDb.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/workflow/client/Client.ts b/src/api/resources/workflow/client/Client.ts index 30d02d1..d965f9f 100644 --- a/src/api/resources/workflow/client/Client.ts +++ b/src/api/resources/workflow/client/Client.ts @@ -55,7 +55,7 @@ export class Workflow { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", queryParameters: _queryParams, @@ -129,7 +129,7 @@ export class Workflow { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestWorkflow.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -200,7 +200,7 @@ export class Workflow { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -267,7 +267,7 @@ export class Workflow { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -337,7 +337,7 @@ export class Workflow { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestWorkflowStep.jsonOrThrow(request, { @@ -414,7 +414,7 @@ export class Workflow { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.WorkflowInvoke.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -480,7 +480,7 @@ export class Workflow { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -554,7 +554,7 @@ export class Workflow { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", body: await serializers.AppModelsRequestWorkflowStep.jsonOrThrow(request, { @@ -628,7 +628,7 @@ export class Workflow { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/workflowConfig/client/Client.ts b/src/api/resources/workflowConfig/client/Client.ts index ca0cdf3..58cf2d4 100644 --- a/src/api/resources/workflowConfig/client/Client.ts +++ b/src/api/resources/workflowConfig/client/Client.ts @@ -41,7 +41,7 @@ export class WorkflowConfig { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "superagentai-js", - "X-Fern-SDK-Version": "v0.1.72", + "X-Fern-SDK-Version": "v0.1.73", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/types/AgentType.ts b/src/api/types/AgentType.ts new file mode 100644 index 0000000..f150d28 --- /dev/null +++ b/src/api/types/AgentType.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * An enumeration. + */ +export type AgentType = "SUPERAGENT" | "OPENAI_ASSISTANT"; + +export const AgentType = { + Superagent: "SUPERAGENT", + OpenaiAssistant: "OPENAI_ASSISTANT", +} as const; diff --git a/src/api/types/PrismaModelsAgent.ts b/src/api/types/PrismaModelsAgent.ts index 6fdb678..667135d 100644 --- a/src/api/types/PrismaModelsAgent.ts +++ b/src/api/types/PrismaModelsAgent.ts @@ -9,6 +9,7 @@ import * as SuperAgent from ".."; */ export interface PrismaModelsAgent { id: string; + type: SuperAgent.AgentType; name: string; avatar?: string; initialMessage?: string; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 1afacea..ed5a24a 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -2,6 +2,7 @@ export * from "./AgentDatasosurceList"; export * from "./AgentList"; export * from "./AgentRunList"; export * from "./AgentToolList"; +export * from "./AgentType"; export * from "./DatasourceList"; export * from "./DatasourceStatus"; export * from "./DatasourceType"; diff --git a/src/serialization/types/AgentType.ts b/src/serialization/types/AgentType.ts new file mode 100644 index 0000000..5c6a6ac --- /dev/null +++ b/src/serialization/types/AgentType.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from ".."; +import * as SuperAgent from "../../api"; +import * as core from "../../core"; + +export const AgentType: core.serialization.Schema = + core.serialization.enum_(["SUPERAGENT", "OPENAI_ASSISTANT"]); + +export declare namespace AgentType { + type Raw = "SUPERAGENT" | "OPENAI_ASSISTANT"; +} diff --git a/src/serialization/types/PrismaModelsAgent.ts b/src/serialization/types/PrismaModelsAgent.ts index bf2100c..686c372 100644 --- a/src/serialization/types/PrismaModelsAgent.ts +++ b/src/serialization/types/PrismaModelsAgent.ts @@ -11,6 +11,7 @@ export const PrismaModelsAgent: core.serialization.ObjectSchema< SuperAgent.PrismaModelsAgent > = core.serialization.object({ id: core.serialization.string(), + type: core.serialization.lazy(async () => (await import("..")).AgentType), name: core.serialization.string(), avatar: core.serialization.string().optional(), initialMessage: core.serialization.string().optional(), @@ -39,6 +40,7 @@ export const PrismaModelsAgent: core.serialization.ObjectSchema< export declare namespace PrismaModelsAgent { interface Raw { id: string; + type: serializers.AgentType.Raw; name: string; avatar?: string | null; initialMessage?: string | null; diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 1afacea..ed5a24a 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -2,6 +2,7 @@ export * from "./AgentDatasosurceList"; export * from "./AgentList"; export * from "./AgentRunList"; export * from "./AgentToolList"; +export * from "./AgentType"; export * from "./DatasourceList"; export * from "./DatasourceStatus"; export * from "./DatasourceType";