diff --git a/package.json b/package.json index 19f74d6..8b09b68 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/Client.ts b/src/Client.ts index 0819c81..3a191f9 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -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"; @@ -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 { diff --git a/src/api/resources/agent/client/Client.ts b/src/api/resources/agent/client/Client.ts index c0333ac..ae8ccf8 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, contentType: "application/json", queryParameters: _queryParams, @@ -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" }), @@ -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, @@ -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, @@ -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" }), @@ -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, { @@ -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" }), @@ -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, @@ -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, @@ -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" }), @@ -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, @@ -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, @@ -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, { @@ -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, diff --git a/src/api/resources/apiKey/client/Client.ts b/src/api/resources/apiKey/client/Client.ts new file mode 100644 index 0000000..31f18ba --- /dev/null +++ b/src/api/resources/apiKey/client/Client.ts @@ -0,0 +1,306 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as SuperAgent from "../../.."; +import urlJoin from "url-join"; +import * as serializers from "../../../../serialization"; +import * as errors from "../../../../errors"; + +export declare namespace ApiKey { + interface Options { + environment?: core.Supplier; + token?: core.Supplier; + } + + interface RequestOptions { + timeoutInSeconds?: number; + maxRetries?: number; + } +} + +export class ApiKey { + constructor(protected readonly _options: ApiKey.Options = {}) {} + + /** + * List API keys + * + * @example + * await superAgent.apiKey.list() + */ + public async list(requestOptions?: ApiKey.RequestOptions): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.SuperAgentEnvironment.Default, + "api/v1/api-keys" + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "superagentai-js", + "X-Fern-SDK-Version": "v0.2.12", + }, + contentType: "application/json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.ApiKeyList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + throw new errors.SuperAgentError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.SuperAgentError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.SuperAgentTimeoutError(); + case "unknown": + throw new errors.SuperAgentError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Create a new API key + * @throws {@link SuperAgent.UnprocessableEntityError} + * + * @example + * await superAgent.apiKey.create({ + * name: "string" + * }) + */ + public async create( + request: SuperAgent.AppModelsRequestApiKey, + requestOptions?: ApiKey.RequestOptions + ): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.SuperAgentEnvironment.Default, + "api/v1/api-keys" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "superagentai-js", + "X-Fern-SDK-Version": "v0.2.12", + }, + contentType: "application/json", + body: await serializers.AppModelsRequestApiKey.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.ApiKeyCreate.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new SuperAgent.UnprocessableEntityError( + await serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.SuperAgentError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.SuperAgentError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.SuperAgentTimeoutError(); + case "unknown": + throw new errors.SuperAgentError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Delete an API key + * @throws {@link SuperAgent.UnprocessableEntityError} + * + * @example + * await superAgent.apiKey.delete("string") + */ + public async delete( + id: string, + requestOptions?: ApiKey.RequestOptions + ): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.SuperAgentEnvironment.Default, + `api/v1/api-keys/${id}` + ), + method: "DELETE", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "superagentai-js", + "X-Fern-SDK-Version": "v0.2.12", + }, + contentType: "application/json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.AppModelsResponseApiKey.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new SuperAgent.UnprocessableEntityError( + await serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.SuperAgentError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.SuperAgentError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.SuperAgentTimeoutError(); + case "unknown": + throw new errors.SuperAgentError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Update an API key + * @throws {@link SuperAgent.UnprocessableEntityError} + * + * @example + * await superAgent.apiKey.update("string", { + * name: "string" + * }) + */ + public async update( + id: string, + request: SuperAgent.AppModelsRequestApiKey, + requestOptions?: ApiKey.RequestOptions + ): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.SuperAgentEnvironment.Default, + `api/v1/api-keys/${id}` + ), + method: "PATCH", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "superagentai-js", + "X-Fern-SDK-Version": "v0.2.12", + }, + contentType: "application/json", + body: await serializers.AppModelsRequestApiKey.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.AppModelsResponseApiKey.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new SuperAgent.UnprocessableEntityError( + await serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.SuperAgentError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.SuperAgentError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.SuperAgentTimeoutError(); + case "unknown": + throw new errors.SuperAgentError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader() { + const bearer = await core.Supplier.get(this._options.token); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; + } +} diff --git a/src/api/resources/apiKey/client/index.ts b/src/api/resources/apiKey/client/index.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/src/api/resources/apiKey/client/index.ts @@ -0,0 +1 @@ +export {}; diff --git a/src/api/resources/apiKey/index.ts b/src/api/resources/apiKey/index.ts new file mode 100644 index 0000000..5ec7692 --- /dev/null +++ b/src/api/resources/apiKey/index.ts @@ -0,0 +1 @@ +export * from "./client"; diff --git a/src/api/resources/apiUser/client/Client.ts b/src/api/resources/apiUser/client/Client.ts index fb9529a..b9b1cd7 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -223,7 +223,7 @@ export class ApiUser { 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.AppModelsRequestApiUser.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/datasource/client/Client.ts b/src/api/resources/datasource/client/Client.ts index ae81eda..03ce88c 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, contentType: "application/json", queryParameters: _queryParams, @@ -129,7 +129,7 @@ export class Datasource { 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.AppModelsRequestDatasource.jsonOrThrow(request, { @@ -202,7 +202,7 @@ export class Datasource { 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, @@ -269,7 +269,7 @@ export class Datasource { 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, @@ -338,7 +338,7 @@ export class Datasource { 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.AppModelsRequestDatasource.jsonOrThrow(request, { diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 1c28015..b175188 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,6 +1,7 @@ export * as agent from "./agent"; export * as llm from "./llm"; export * as apiUser from "./apiUser"; +export * as apiKey from "./apiKey"; export * as datasource from "./datasource"; export * as tool from "./tool"; export * as workflow from "./workflow"; diff --git a/src/api/resources/llm/client/Client.ts b/src/api/resources/llm/client/Client.ts index 6055f0c..d09a1bb 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, contentType: "application/json", body: await serializers.AppModelsRequestLlm.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/tool/client/Client.ts b/src/api/resources/tool/client/Client.ts index bccab88..edcf4db 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -330,7 +330,7 @@ export class Tool { 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.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/vectorDatabase/client/Client.ts b/src/api/resources/vectorDatabase/client/Client.ts index 4a9eb7a..f9f3ebe 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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 2056753..5aaa050 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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.2.11", + "X-Fern-SDK-Version": "v0.2.12", }, 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 ac38d83..309430a 100644 --- a/src/api/resources/workflowConfig/client/Client.ts +++ b/src/api/resources/workflowConfig/client/Client.ts @@ -35,7 +35,7 @@ export class WorkflowConfig { 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, @@ -84,7 +84,7 @@ export class WorkflowConfig { 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, diff --git a/src/api/types/ApiKeyCreate.ts b/src/api/types/ApiKeyCreate.ts new file mode 100644 index 0000000..2c3162f --- /dev/null +++ b/src/api/types/ApiKeyCreate.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as SuperAgent from ".."; + +export interface ApiKeyCreate { + success: boolean; + data?: SuperAgent.ApiKeyCreateModel; +} diff --git a/src/api/types/ApiKeyCreateModel.ts b/src/api/types/ApiKeyCreateModel.ts new file mode 100644 index 0000000..ee7d6ca --- /dev/null +++ b/src/api/types/ApiKeyCreateModel.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as SuperAgent from ".."; + +/** + * Represents a ApiKey record + */ +export interface ApiKeyCreateModel { + id: string; + name: string; + displayApiKey: string; + createdAt: Date; + updatedAt: Date; + apiUserId: string; + apiUser?: SuperAgent.PrismaModelsApiUser; + apiKey: string; +} diff --git a/src/api/types/ApiKeyList.ts b/src/api/types/ApiKeyList.ts new file mode 100644 index 0000000..e538ca9 --- /dev/null +++ b/src/api/types/ApiKeyList.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as SuperAgent from ".."; + +export interface ApiKeyList { + success: boolean; + data?: SuperAgent.PrismaModelsApiKey[]; +} diff --git a/src/api/types/AppModelsRequestApiKey.ts b/src/api/types/AppModelsRequestApiKey.ts new file mode 100644 index 0000000..80327fe --- /dev/null +++ b/src/api/types/AppModelsRequestApiKey.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface AppModelsRequestApiKey { + name: string; +} diff --git a/src/api/types/AppModelsResponseApiKey.ts b/src/api/types/AppModelsResponseApiKey.ts new file mode 100644 index 0000000..79c3d35 --- /dev/null +++ b/src/api/types/AppModelsResponseApiKey.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as SuperAgent from ".."; + +export interface AppModelsResponseApiKey { + success: boolean; + data?: SuperAgent.PrismaModelsApiKey; +} diff --git a/src/api/types/PrismaModelsApiKey.ts b/src/api/types/PrismaModelsApiKey.ts new file mode 100644 index 0000000..e98f6f4 --- /dev/null +++ b/src/api/types/PrismaModelsApiKey.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as SuperAgent from ".."; + +/** + * Represents a ApiKey record + */ +export interface PrismaModelsApiKey { + id: string; + name: string; + displayApiKey: string; + createdAt: Date; + updatedAt: Date; + apiUserId: string; + apiUser?: SuperAgent.PrismaModelsApiUser; +} diff --git a/src/api/types/PrismaModelsApiUser.ts b/src/api/types/PrismaModelsApiUser.ts index 0f662c1..f2e261b 100644 --- a/src/api/types/PrismaModelsApiUser.ts +++ b/src/api/types/PrismaModelsApiUser.ts @@ -20,4 +20,5 @@ export interface PrismaModelsApiUser { workflows?: SuperAgent.PrismaModelsWorkflow[]; vectorDb?: SuperAgent.PrismaModelsVectorDb[]; workflowConfigs?: SuperAgent.WorkflowConfig[]; + apiKeys?: SuperAgent.PrismaModelsApiKey[]; } diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 108c849..b647da8 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -2,6 +2,8 @@ export * from "./AgentDatasosurceList"; export * from "./AgentList"; export * from "./AgentToolList"; export * from "./AgentType"; +export * from "./ApiKeyCreate"; +export * from "./ApiKeyList"; export * from "./DatasourceList"; export * from "./DatasourceStatus"; export * from "./DatasourceType"; @@ -25,6 +27,8 @@ export * from "./VectorDbProvider"; export * from "./WorkflowConfig"; export * from "./WorkflowList"; export * from "./WorkflowStepList"; +export * from "./ApiKeyCreateModel"; +export * from "./AppModelsRequestApiKey"; export * from "./AppModelsRequestApiUser"; export * from "./AppModelsRequestDatasource"; export * from "./AppModelsRequestLlm"; @@ -33,6 +37,7 @@ export * from "./AppModelsRequestWorkflow"; export * from "./AppModelsRequestWorkflowStep"; export * from "./AppModelsResponseAgent"; export * from "./AppModelsResponseAgentInvoke"; +export * from "./AppModelsResponseApiKey"; export * from "./AppModelsResponseApiUser"; export * from "./AppModelsResponseDatasource"; export * from "./AppModelsResponseLlm"; @@ -44,6 +49,7 @@ export * from "./PrismaModelsAgent"; export * from "./PrismaModelsAgentDatasource"; export * from "./PrismaModelsAgentLlm"; export * from "./PrismaModelsAgentTool"; +export * from "./PrismaModelsApiKey"; export * from "./PrismaModelsApiUser"; export * from "./PrismaModelsDatasource"; export * from "./PrismaModelsLlm"; diff --git a/src/serialization/types/ApiKeyCreate.ts b/src/serialization/types/ApiKeyCreate.ts new file mode 100644 index 0000000..66806b3 --- /dev/null +++ b/src/serialization/types/ApiKeyCreate.ts @@ -0,0 +1,20 @@ +/** + * 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 ApiKeyCreate: core.serialization.ObjectSchema = + core.serialization.object({ + success: core.serialization.boolean(), + data: core.serialization.lazyObject(async () => (await import("..")).ApiKeyCreateModel).optional(), + }); + +export declare namespace ApiKeyCreate { + interface Raw { + success: boolean; + data?: serializers.ApiKeyCreateModel.Raw | null; + } +} diff --git a/src/serialization/types/ApiKeyCreateModel.ts b/src/serialization/types/ApiKeyCreateModel.ts new file mode 100644 index 0000000..dd56b44 --- /dev/null +++ b/src/serialization/types/ApiKeyCreateModel.ts @@ -0,0 +1,34 @@ +/** + * 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 ApiKeyCreateModel: core.serialization.ObjectSchema< + serializers.ApiKeyCreateModel.Raw, + SuperAgent.ApiKeyCreateModel +> = core.serialization.object({ + id: core.serialization.string(), + name: core.serialization.string(), + displayApiKey: core.serialization.string(), + createdAt: core.serialization.date(), + updatedAt: core.serialization.date(), + apiUserId: core.serialization.string(), + apiUser: core.serialization.lazyObject(async () => (await import("..")).PrismaModelsApiUser).optional(), + apiKey: core.serialization.string(), +}); + +export declare namespace ApiKeyCreateModel { + interface Raw { + id: string; + name: string; + displayApiKey: string; + createdAt: string; + updatedAt: string; + apiUserId: string; + apiUser?: serializers.PrismaModelsApiUser.Raw | null; + apiKey: string; + } +} diff --git a/src/serialization/types/ApiKeyList.ts b/src/serialization/types/ApiKeyList.ts new file mode 100644 index 0000000..7009526 --- /dev/null +++ b/src/serialization/types/ApiKeyList.ts @@ -0,0 +1,22 @@ +/** + * 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 ApiKeyList: core.serialization.ObjectSchema = + core.serialization.object({ + success: core.serialization.boolean(), + data: core.serialization + .list(core.serialization.lazyObject(async () => (await import("..")).PrismaModelsApiKey)) + .optional(), + }); + +export declare namespace ApiKeyList { + interface Raw { + success: boolean; + data?: serializers.PrismaModelsApiKey.Raw[] | null; + } +} diff --git a/src/serialization/types/AppModelsRequestApiKey.ts b/src/serialization/types/AppModelsRequestApiKey.ts new file mode 100644 index 0000000..48c7fa3 --- /dev/null +++ b/src/serialization/types/AppModelsRequestApiKey.ts @@ -0,0 +1,20 @@ +/** + * 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 AppModelsRequestApiKey: core.serialization.ObjectSchema< + serializers.AppModelsRequestApiKey.Raw, + SuperAgent.AppModelsRequestApiKey +> = core.serialization.object({ + name: core.serialization.string(), +}); + +export declare namespace AppModelsRequestApiKey { + interface Raw { + name: string; + } +} diff --git a/src/serialization/types/AppModelsResponseApiKey.ts b/src/serialization/types/AppModelsResponseApiKey.ts new file mode 100644 index 0000000..718fc2f --- /dev/null +++ b/src/serialization/types/AppModelsResponseApiKey.ts @@ -0,0 +1,22 @@ +/** + * 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 AppModelsResponseApiKey: core.serialization.ObjectSchema< + serializers.AppModelsResponseApiKey.Raw, + SuperAgent.AppModelsResponseApiKey +> = core.serialization.object({ + success: core.serialization.boolean(), + data: core.serialization.lazyObject(async () => (await import("..")).PrismaModelsApiKey).optional(), +}); + +export declare namespace AppModelsResponseApiKey { + interface Raw { + success: boolean; + data?: serializers.PrismaModelsApiKey.Raw | null; + } +} diff --git a/src/serialization/types/PrismaModelsApiKey.ts b/src/serialization/types/PrismaModelsApiKey.ts new file mode 100644 index 0000000..ecb1170 --- /dev/null +++ b/src/serialization/types/PrismaModelsApiKey.ts @@ -0,0 +1,32 @@ +/** + * 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 PrismaModelsApiKey: core.serialization.ObjectSchema< + serializers.PrismaModelsApiKey.Raw, + SuperAgent.PrismaModelsApiKey +> = core.serialization.object({ + id: core.serialization.string(), + name: core.serialization.string(), + displayApiKey: core.serialization.string(), + createdAt: core.serialization.date(), + updatedAt: core.serialization.date(), + apiUserId: core.serialization.string(), + apiUser: core.serialization.lazyObject(async () => (await import("..")).PrismaModelsApiUser).optional(), +}); + +export declare namespace PrismaModelsApiKey { + interface Raw { + id: string; + name: string; + displayApiKey: string; + createdAt: string; + updatedAt: string; + apiUserId: string; + apiUser?: serializers.PrismaModelsApiUser.Raw | null; + } +} diff --git a/src/serialization/types/PrismaModelsApiUser.ts b/src/serialization/types/PrismaModelsApiUser.ts index 64e3ee1..e12ae9e 100644 --- a/src/serialization/types/PrismaModelsApiUser.ts +++ b/src/serialization/types/PrismaModelsApiUser.ts @@ -36,6 +36,9 @@ export const PrismaModelsApiUser: core.serialization.ObjectSchema< workflowConfigs: core.serialization .list(core.serialization.lazyObject(async () => (await import("..")).WorkflowConfig)) .optional(), + apiKeys: core.serialization + .list(core.serialization.lazyObject(async () => (await import("..")).PrismaModelsApiKey)) + .optional(), }); export declare namespace PrismaModelsApiUser { @@ -52,5 +55,6 @@ export declare namespace PrismaModelsApiUser { workflows?: serializers.PrismaModelsWorkflow.Raw[] | null; vectorDb?: serializers.PrismaModelsVectorDb.Raw[] | null; workflowConfigs?: serializers.WorkflowConfig.Raw[] | null; + apiKeys?: serializers.PrismaModelsApiKey.Raw[] | null; } } diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 108c849..b647da8 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -2,6 +2,8 @@ export * from "./AgentDatasosurceList"; export * from "./AgentList"; export * from "./AgentToolList"; export * from "./AgentType"; +export * from "./ApiKeyCreate"; +export * from "./ApiKeyList"; export * from "./DatasourceList"; export * from "./DatasourceStatus"; export * from "./DatasourceType"; @@ -25,6 +27,8 @@ export * from "./VectorDbProvider"; export * from "./WorkflowConfig"; export * from "./WorkflowList"; export * from "./WorkflowStepList"; +export * from "./ApiKeyCreateModel"; +export * from "./AppModelsRequestApiKey"; export * from "./AppModelsRequestApiUser"; export * from "./AppModelsRequestDatasource"; export * from "./AppModelsRequestLlm"; @@ -33,6 +37,7 @@ export * from "./AppModelsRequestWorkflow"; export * from "./AppModelsRequestWorkflowStep"; export * from "./AppModelsResponseAgent"; export * from "./AppModelsResponseAgentInvoke"; +export * from "./AppModelsResponseApiKey"; export * from "./AppModelsResponseApiUser"; export * from "./AppModelsResponseDatasource"; export * from "./AppModelsResponseLlm"; @@ -44,6 +49,7 @@ export * from "./PrismaModelsAgent"; export * from "./PrismaModelsAgentDatasource"; export * from "./PrismaModelsAgentLlm"; export * from "./PrismaModelsAgentTool"; +export * from "./PrismaModelsApiKey"; export * from "./PrismaModelsApiUser"; export * from "./PrismaModelsDatasource"; export * from "./PrismaModelsLlm"; diff --git a/yarn.lock b/yarn.lock index 5d79c3f..ae1d45e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11,9 +11,9 @@ form-data "^4.0.0" "@types/node@*": - version "20.11.20" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.20.tgz#f0a2aee575215149a62784210ad88b3a34843659" - integrity sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg== + version "20.11.22" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.22.tgz#9a192c3d7e7e71fa3a4b15032654f64643815cd6" + integrity sha512-/G+IxWxma6V3E+pqK1tSl2Fo1kl41pK1yeCyDsgkF9WlVAme4j5ISYM2zR11bgLFJGLN5sVK40T4RJNuiZbEjA== dependencies: undici-types "~5.26.4"