diff --git a/jest.config.mjs b/jest.config.mjs index 9eb4a4af..c7248211 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -3,6 +3,6 @@ export default { preset: "ts-jest", testEnvironment: "node", moduleNameMapper: { - "^(?!.*node_modules)(.+)\\.js$": "$1", + "(.+)\.js$": "$1", }, }; diff --git a/package.json b/package.json index ceeadcf3..ed2af786 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "humanloop", - "version": "0.8.21-beta1", + "version": "0.8.21-beta2", "private": false, "repository": "https://github.com/humanloop/humanloop-node", "main": "./index.js", diff --git a/reference.md b/reference.md index afc2e70e..848dd1a8 100644 --- a/reference.md +++ b/reference.md @@ -1342,7 +1342,7 @@ await client.prompts.updateMonitoring("pr_30gco7dx6JDq4200GVOHa", { -
client.prompts.serialize(id, { ...params }) -> void +
client.prompts.serialize(id, { ...params }) -> string
@@ -4794,9 +4794,6 @@ Log to a Flow. You can use query parameters `version_id`, or `environment`, to target an existing version of the Flow. Otherwise, the default deployed version will be chosen. -If you create the Flow Log with a `log_status` of `incomplete`, you should later update it to `complete` -in order to trigger Evaluators. -
@@ -7313,7 +7310,7 @@ await client.agents.updateMonitoring("ag_1234567890", {
-
client.agents.serialize(id, { ...params }) -> void +
client.agents.serialize(id, { ...params }) -> string
diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts index 842af06d..681f4017 100644 --- a/src/api/resources/agents/client/Client.ts +++ b/src/api/resources/agents/client/Client.ts @@ -49,7 +49,49 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.log() + * await client.agents.log({ + * path: "Banking/Teller Agent", + * agent: { + * provider: "anthropic", + * endpoint: "chat", + * model: "claude-3-7-sonnet-latest", + * reasoningEffort: 1024, + * template: [{ + * role: "system", + * content: "You are a helpful digital assistant, helping users navigate our digital banking platform." + * }], + * maxIterations: 3, + * tools: [{ + * type: "file", + * link: { + * fileId: "pr_1234567890", + * versionId: "prv_1234567890" + * }, + * onAgentCall: "continue" + * }, { + * type: "inline", + * jsonSchema: { + * name: "stop", + * description: "Call this tool when you have finished your task.", + * parameters: { + * "type": "object", + * "properties": { + * "output": { + * "type": "string", + * "description": "The final output to return to the user." + * } + * }, + * "additionalProperties": false, + * "required": [ + * "output" + * ] + * }, + * strict: true + * }, + * onAgentCall: "stop" + * }] + * } + * }) */ public async log( request: Humanloop.AgentLogRequest = {}, @@ -76,8 +118,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -149,14 +191,27 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.updateLog("id", "log_id") + * await client.agents.updateLog("ag_1234567890", "log_1234567890", { + * messages: [{ + * role: "user", + * content: "I need to withdraw $1000" + * }, { + * role: "assistant", + * content: "Of course! Would you like to use your savings or checking account?" + * }], + * outputMessage: { + * role: "assistant", + * content: "I'm sorry, I can't help with that." + * }, + * logStatus: "complete" + * }) */ public async updateLog( id: string, logId: string, request: Humanloop.UpdateAgentLogRequest = {}, requestOptions?: Agents.RequestOptions, - ): Promise { + ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -168,8 +223,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -183,7 +238,7 @@ export class Agents { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.LogResponse.parseOrThrow(_response.body, { + return serializers.AgentLogResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -230,23 +285,26 @@ export class Agents { } /** - * Call an Agent. + * Call an Agent. The Agent will run on the Humanloop runtime and return a completed Agent Log. + * + * If the Agent requires a tool call that cannot be ran by Humanloop, execution will halt. To continue, + * pass the ID of the incomplete Log and the required tool call to the /agents/continue endpoint. * - * Calling an Agent calls the model provider before logging - * the request, responses and metadata to Humanloop. + * The agent will run for the maximum number of iterations, or until it encounters a stop condition, + * according to its configuration. * * You can use query parameters `version_id`, or `environment`, to target * an existing version of the Agent. Otherwise the default deployed version will be chosen. * * Instead of targeting an existing version explicitly, you can instead pass in - * Agent details in the request body. In this case, we will check if the details correspond - * to an existing version of the Agent. If they do not, we will create a new version. This is helpful - * in the case where you are storing or deriving your Agent details in code. + * Agent details in the request body. A new version is created if it does not match + * any existing ones. This is helpful in the case where you are storing or deriving + * your Agent details in code. */ public async callStream( request: Humanloop.AgentsCallStreamRequest, requestOptions?: Agents.RequestOptions, - ): Promise> { + ): Promise> { const { versionId, environment, ..._body } = request; const _queryParams: Record = {}; if (versionId != null) { @@ -268,8 +326,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -291,7 +349,7 @@ export class Agents { return new core.Stream({ stream: _response.body, parse: async (data) => { - return serializers.AgentContinueCallStreamResponse.parseOrThrow(data, { + return serializers.AgentCallStreamResponse.parseOrThrow(data, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -343,18 +401,21 @@ export class Agents { } /** - * Call an Agent. + * Call an Agent. The Agent will run on the Humanloop runtime and return a completed Agent Log. + * + * If the Agent requires a tool call that cannot be ran by Humanloop, execution will halt. To continue, + * pass the ID of the incomplete Log and the required tool call to the /agents/continue endpoint. * - * Calling an Agent calls the model provider before logging - * the request, responses and metadata to Humanloop. + * The agent will run for the maximum number of iterations, or until it encounters a stop condition, + * according to its configuration. * * You can use query parameters `version_id`, or `environment`, to target * an existing version of the Agent. Otherwise the default deployed version will be chosen. * * Instead of targeting an existing version explicitly, you can instead pass in - * Agent details in the request body. In this case, we will check if the details correspond - * to an existing version of the Agent. If they do not, we will create a new version. This is helpful - * in the case where you are storing or deriving your Agent details in code. + * Agent details in the request body. A new version is created if it does not match + * any existing ones. This is helpful in the case where you are storing or deriving + * your Agent details in code. * * @param {Humanloop.AgentsCallRequest} request * @param {Agents.RequestOptions} requestOptions - Request-specific configuration. @@ -362,12 +423,18 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.call({}) + * await client.agents.call({ + * path: "Banking/Teller Agent", + * messages: [{ + * role: "user", + * content: "I'd like to deposit $1000 to my savings account from my checking account." + * }] + * }) */ public async call( request: Humanloop.AgentsCallRequest, requestOptions?: Agents.RequestOptions, - ): Promise { + ): Promise { const { versionId, environment, ..._body } = request; const _queryParams: Record = {}; if (versionId != null) { @@ -389,8 +456,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -408,7 +475,7 @@ export class Agents { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AgentContinueCallResponse.parseOrThrow(_response.body, { + return serializers.AgentCallResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -455,15 +522,15 @@ export class Agents { /** * Continue an incomplete Agent call. * - * This endpoint allows continuing an existing incomplete Agent call, using the context - * from the previous interaction. The Agent will resume processing from where it left off. + * This endpoint allows continuing an existing incomplete Agent call, by passing the tool call + * requested by the Agent. The Agent will resume processing from where it left off. * - * The original log must be in an incomplete state to be continued. + * The messages in the request will be appended to the original messages in the Log. You do not + * have to provide the previous conversation history. * - * The messages in the request will be appended - * to the original messages in the log. + * The original log must be in an incomplete state to be continued. */ - public async continueStream( + public async continueCallStream( request: Humanloop.AgentsContinueCallStreamRequest, requestOptions?: Agents.RequestOptions, ): Promise> { @@ -478,8 +545,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -488,7 +555,9 @@ export class Agents { contentType: "application/json", requestType: "json", body: { - ...serializers.AgentsContinueCallStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + ...serializers.AgentsContinueCallStreamRequest.jsonOrThrow(request, { + unrecognizedObjectKeys: "strip", + }), stream: true, }, responseType: "sse", @@ -554,28 +623,30 @@ export class Agents { /** * Continue an incomplete Agent call. * - * This endpoint allows continuing an existing incomplete Agent call, using the context - * from the previous interaction. The Agent will resume processing from where it left off. + * This endpoint allows continuing an existing incomplete Agent call, by passing the tool call + * requested by the Agent. The Agent will resume processing from where it left off. * - * The original log must be in an incomplete state to be continued. + * The messages in the request will be appended to the original messages in the Log. You do not + * have to provide the previous conversation history. * - * The messages in the request will be appended - * to the original messages in the log. + * The original log must be in an incomplete state to be continued. * - * @param {Humanloop.AgentsContinueRequest} request + * @param {Humanloop.AgentsContinueCallRequest} request * @param {Agents.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.continue({ - * logId: "log_id", + * await client.agents.continueCall({ + * logId: "log_1234567890", * messages: [{ - * role: "user" + * role: "tool", + * content: "{\"type\": \"checking\", \"balance\": 5200}", + * toolCallId: "tc_1234567890" * }] * }) */ - public async continue( + public async continueCall( request: Humanloop.AgentsContinueCallRequest, requestOptions?: Agents.RequestOptions, ): Promise { @@ -590,8 +661,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -661,108 +732,114 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.list() + * await client.agents.list({ + * size: 1 + * }) */ public async list( request: Humanloop.ListAgentsGetRequest = {}, requestOptions?: Agents.RequestOptions, - ): Promise { - const { page, size, name, userFilter, sortBy, order } = request; - const _queryParams: Record = {}; - if (page != null) { - _queryParams["page"] = page.toString(); - } - - if (size != null) { - _queryParams["size"] = size.toString(); - } - - if (name != null) { - _queryParams["name"] = name; - } - - if (userFilter != null) { - _queryParams["user_filter"] = userFilter; - } - - if (sortBy != null) { - _queryParams["sort_by"] = serializers.ProjectSortBy.jsonOrThrow(sortBy, { - unrecognizedObjectKeys: "strip", - }); - } - - if (order != null) { - _queryParams["order"] = serializers.SortOrder.jsonOrThrow(order, { unrecognizedObjectKeys: "strip" }); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.HumanloopEnvironment.Default, - "agents", - ), - method: "GET", - headers: { - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - ...(await this._getCustomAuthorizationHeaders()), - ...requestOptions?.headers, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.PaginatedDataAgentResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], + ): Promise> { + const list = async (request: Humanloop.ListAgentsGetRequest): Promise => { + const { page, size, name, userFilter, sortBy, order } = request; + const _queryParams: Record = {}; + if (page != null) { + _queryParams["page"] = page.toString(); + } + if (size != null) { + _queryParams["size"] = size.toString(); + } + if (name != null) { + _queryParams["name"] = name; + } + if (userFilter != null) { + _queryParams["user_filter"] = userFilter; + } + if (sortBy != null) { + _queryParams["sort_by"] = serializers.FileSortBy.jsonOrThrow(sortBy, { + unrecognizedObjectKeys: "strip", + }); + } + if (order != null) { + _queryParams["order"] = serializers.SortOrder.jsonOrThrow(order, { unrecognizedObjectKeys: "strip" }); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.HumanloopEnvironment.Default, + "agents", + ), + method: "GET", + headers: { + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "humanloop", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ...(await this._getCustomAuthorizationHeaders()), + ...requestOptions?.headers, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 422: - throw new Humanloop.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - ); - default: + if (_response.ok) { + return serializers.PaginatedDataAgentResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Humanloop.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + ); + default: + throw new errors.HumanloopError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + switch (_response.error.reason) { + case "non-json": throw new errors.HumanloopError({ statusCode: _response.error.statusCode, - body: _response.error.body, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.HumanloopTimeoutError("Timeout exceeded when calling GET /agents."); + case "unknown": + throw new errors.HumanloopError({ + message: _response.error.errorMessage, }); } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.HumanloopError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.HumanloopTimeoutError("Timeout exceeded when calling GET /agents."); - case "unknown": - throw new errors.HumanloopError({ - message: _response.error.errorMessage, - }); - } + }; + let _offset = request?.page != null ? request?.page : 1; + return new core.Pageable({ + response: await list(request), + hasNextPage: (response) => (response?.records ?? []).length > 0, + getItems: (response) => response?.records ?? [], + loadPage: (_response) => { + _offset += 1; + return list(core.setObjectProperty(request, "page", _offset)); + }, + }); } /** @@ -782,7 +859,40 @@ export class Agents { * * @example * await client.agents.upsert({ - * model: "model" + * path: "Banking/Teller Agent", + * provider: "anthropic", + * endpoint: "chat", + * model: "claude-3-7-sonnet-latest", + * reasoningEffort: 1024, + * template: [{ + * role: "system", + * content: "You are a helpful digital assistant, helping users navigate our digital banking platform." + * }], + * maxIterations: 3, + * tools: [{ + * type: "inline", + * jsonSchema: { + * name: "stop", + * description: "Call this tool when you have finished your task.", + * parameters: { + * "type": "object", + * "properties": { + * "output": { + * "type": "string", + * "description": "The final output to return to the user." + * } + * }, + * "additionalProperties": false, + * "required": [ + * "output" + * ] + * }, + * strict: true + * }, + * onAgentCall: "stop" + * }], + * versionName: "teller-agent-v1", + * versionDescription: "Initial version" * }) */ public async upsert( @@ -800,8 +910,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -869,7 +979,7 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.deleteAgentVersion("id", "version_id") + * await client.agents.deleteAgentVersion("ag_1234567890", "agv_1234567890") */ public async deleteAgentVersion( id: string, @@ -887,8 +997,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -952,7 +1062,10 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.patchAgentVersion("id", "version_id", {}) + * await client.agents.patchAgentVersion("ag_1234567890", "agv_1234567890", { + * name: "teller-agent-v2", + * description: "Updated version" + * }) */ public async patchAgentVersion( id: string, @@ -971,8 +1084,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1045,7 +1158,7 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.get("id") + * await client.agents.get("ag_1234567890") */ public async get( id: string, @@ -1073,8 +1186,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1141,7 +1254,7 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.delete("id") + * await client.agents.delete("ag_1234567890") */ public async delete(id: string, requestOptions?: Agents.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -1155,8 +1268,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1217,7 +1330,9 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.move("id") + * await client.agents.move("ag_1234567890", { + * path: "new directory/new name" + * }) */ public async move( id: string, @@ -1235,8 +1350,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1304,7 +1419,7 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.listVersions("id") + * await client.agents.listVersions("ag_1234567890") */ public async listVersions( id: string, @@ -1328,8 +1443,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1425,8 +1540,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1517,8 +1632,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1580,7 +1695,7 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.listEnvironments("id") + * await client.agents.listEnvironments("ag_1234567890") */ public async listEnvironments( id: string, @@ -1597,8 +1712,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1668,7 +1783,17 @@ export class Agents { * @throws {@link Humanloop.UnprocessableEntityError} * * @example - * await client.agents.updateMonitoring("id", {}) + * await client.agents.updateMonitoring("ag_1234567890", { + * activate: [{ + * evaluatorVersionId: "ev_1234567890" + * }, { + * evaluatorId: "ev_2345678901", + * environmentId: "env_1234567890" + * }], + * deactivate: [{ + * evaluatorVersionId: "ev_0987654321" + * }] + * }) */ public async updateMonitoring( id: string, @@ -1686,8 +1811,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1769,7 +1894,7 @@ export class Agents { id: string, request: Humanloop.SerializeAgentsIdSerializeGetRequest = {}, requestOptions?: Agents.RequestOptions, - ): Promise { + ): Promise { const { versionId, environment } = request; const _queryParams: Record = {}; if (versionId != null) { @@ -1791,8 +1916,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1801,12 +1926,13 @@ export class Agents { contentType: "application/json", queryParameters: _queryParams, requestType: "json", + responseType: "text", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return _response.body; + return _response.body as string; } if (_response.error.reason === "status-code") { @@ -1875,8 +2001,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/client/requests/AgentLogRequest.ts b/src/api/resources/agents/client/requests/AgentLogRequest.ts index 5852bf02..eb502943 100644 --- a/src/api/resources/agents/client/requests/AgentLogRequest.ts +++ b/src/api/resources/agents/client/requests/AgentLogRequest.ts @@ -89,8 +89,13 @@ export interface AgentLogRequest { * - `{'type': 'function', 'function': {name': }}` forces the model to use the named function. */ toolChoice?: Humanloop.AgentLogRequestToolChoice; - /** Details of your Agent. A new Agent version will be created if the provided details are new. */ - agent?: Humanloop.AgentKernelRequest; + /** + * The Agent configuration to use. Two formats are supported: + * - An object representing the details of the Agent configuration + * - A string representing the raw contents of a .agent file + * A new Agent version will be created if the provided details do not match any existing version. + */ + agent?: Humanloop.AgentLogRequestAgent; /** When the logged event started. */ startTime?: Date; /** When the logged event ended. */ @@ -115,8 +120,6 @@ export interface AgentLogRequest { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/resources/agents/client/requests/AgentsCallRequest.ts b/src/api/resources/agents/client/requests/AgentsCallRequest.ts index 1f554921..176b374e 100644 --- a/src/api/resources/agents/client/requests/AgentsCallRequest.ts +++ b/src/api/resources/agents/client/requests/AgentsCallRequest.ts @@ -37,8 +37,13 @@ export interface AgentsCallRequest { * - `{'type': 'function', 'function': {name': }}` forces the model to use the named function. */ toolChoice?: Humanloop.AgentsCallRequestToolChoice; - /** Details of your Agent. A new Agent version will be created if the provided details are new. */ - agent?: Humanloop.AgentKernelRequest; + /** + * The Agent configuration to use. Two formats are supported: + * - An object representing the details of the Agent configuration + * - A string representing the raw contents of a .agent file + * A new Agent version will be created if the provided details do not match any existing version. + */ + agent?: Humanloop.AgentsCallRequestAgent; /** The inputs passed to the prompt template. */ inputs?: Record; /** Identifies where the model was called from. */ @@ -49,8 +54,6 @@ export interface AgentsCallRequest { startTime?: Date; /** When the logged event ended. */ endTime?: Date; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/resources/agents/client/requests/AgentsCallStreamRequest.ts b/src/api/resources/agents/client/requests/AgentsCallStreamRequest.ts index 46ef71f9..50c6b4bb 100644 --- a/src/api/resources/agents/client/requests/AgentsCallStreamRequest.ts +++ b/src/api/resources/agents/client/requests/AgentsCallStreamRequest.ts @@ -31,8 +31,13 @@ export interface AgentsCallStreamRequest { * - `{'type': 'function', 'function': {name': }}` forces the model to use the named function. */ toolChoice?: Humanloop.AgentsCallStreamRequestToolChoice; - /** Details of your Agent. A new Agent version will be created if the provided details are new. */ - agent?: Humanloop.AgentKernelRequest; + /** + * The Agent configuration to use. Two formats are supported: + * - An object representing the details of the Agent configuration + * - A string representing the raw contents of a .agent file + * A new Agent version will be created if the provided details do not match any existing version. + */ + agent?: Humanloop.AgentsCallStreamRequestAgent; /** The inputs passed to the prompt template. */ inputs?: Record; /** Identifies where the model was called from. */ @@ -43,8 +48,6 @@ export interface AgentsCallStreamRequest { startTime?: Date; /** When the logged event ended. */ endTime?: Date; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/resources/agents/client/requests/AgentsContinueRequest.ts b/src/api/resources/agents/client/requests/AgentsContinueRequest.ts deleted file mode 100644 index eb9aee76..00000000 --- a/src/api/resources/agents/client/requests/AgentsContinueRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Humanloop from "../../../../index"; - -/** - * @example - * { - * logId: "log_id", - * messages: [{ - * role: "user" - * }] - * } - */ -export interface AgentsContinueCallRequest { - /** This identifies the Agent Log to continue. */ - logId: string; - /** The additional messages with which to continue the Agent Log. Often, these should start with the Tool messages with results for the previous Assistant message's tool calls. */ - messages: Humanloop.ChatMessage[]; - /** API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization. */ - providerApiKeys?: Humanloop.ProviderApiKeys; - /** If true, populate `trace_children` for the returned Agent Log. Defaults to false. */ - includeTraceChildren?: boolean; -} diff --git a/src/api/resources/agents/client/requests/AgentsContinueStreamRequest.ts b/src/api/resources/agents/client/requests/AgentsContinueStreamRequest.ts deleted file mode 100644 index f5648052..00000000 --- a/src/api/resources/agents/client/requests/AgentsContinueStreamRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Humanloop from "../../../../index"; - -/** - * @example - * { - * logId: "log_id", - * messages: [{ - * role: "user" - * }] - * } - */ -export interface AgentsContinueStreamRequest { - /** This identifies the Agent Log to continue. */ - logId: string; - /** The additional messages with which to continue the Agent Log. Often, these should start with the Tool messages with results for the previous Assistant message's tool calls. */ - messages: Humanloop.ChatMessage[]; - /** API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization. */ - providerApiKeys?: Humanloop.ProviderApiKeys; - /** If true, populate `trace_children` for the returned Agent Log. Defaults to false. */ - includeTraceChildren?: boolean; -} diff --git a/src/api/resources/agents/client/requests/ListAgentsGetRequest.ts b/src/api/resources/agents/client/requests/ListAgentsGetRequest.ts index 2a81c3f7..fb166857 100644 --- a/src/api/resources/agents/client/requests/ListAgentsGetRequest.ts +++ b/src/api/resources/agents/client/requests/ListAgentsGetRequest.ts @@ -30,7 +30,7 @@ export interface ListAgentsGetRequest { /** * Field to sort Agents by */ - sortBy?: Humanloop.ProjectSortBy; + sortBy?: Humanloop.FileSortBy; /** * Direction to sort by. */ diff --git a/src/api/resources/agents/client/requests/UpdateAgentLogRequest.ts b/src/api/resources/agents/client/requests/UpdateAgentLogRequest.ts index d55a2289..d89cd73b 100644 --- a/src/api/resources/agents/client/requests/UpdateAgentLogRequest.ts +++ b/src/api/resources/agents/client/requests/UpdateAgentLogRequest.ts @@ -32,6 +32,6 @@ export interface UpdateAgentLogRequest { output?: string; /** The error message of the Flow Log. Provide None to unset existing `error` value. Provide either this, `output_message` or `output`. */ error?: string; - /** Status of the Flow Log. When a Flow Log is updated to `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Flow Logs. */ + /** Status of the Flow Log. When a Flow Log is updated to `complete`, no more Logs can be added to it. You cannot update a Flow Log's status from `complete` to `incomplete`. */ logStatus?: Humanloop.LogStatus; } diff --git a/src/api/resources/agents/types/AgentLogRequestAgent.ts b/src/api/resources/agents/types/AgentLogRequestAgent.ts new file mode 100644 index 00000000..05013da2 --- /dev/null +++ b/src/api/resources/agents/types/AgentLogRequestAgent.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Humanloop from "../../../index"; + +/** + * The Agent configuration to use. Two formats are supported: + * - An object representing the details of the Agent configuration + * - A string representing the raw contents of a .agent file + * A new Agent version will be created if the provided details do not match any existing version. + */ +export type AgentLogRequestAgent = Humanloop.AgentKernelRequest | string; diff --git a/src/api/resources/agents/types/AgentsCallRequestAgent.ts b/src/api/resources/agents/types/AgentsCallRequestAgent.ts new file mode 100644 index 00000000..164f1814 --- /dev/null +++ b/src/api/resources/agents/types/AgentsCallRequestAgent.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Humanloop from "../../../index"; + +/** + * The Agent configuration to use. Two formats are supported: + * - An object representing the details of the Agent configuration + * - A string representing the raw contents of a .agent file + * A new Agent version will be created if the provided details do not match any existing version. + */ +export type AgentsCallRequestAgent = Humanloop.AgentKernelRequest | string; diff --git a/src/api/resources/agents/types/AgentsCallStreamRequestAgent.ts b/src/api/resources/agents/types/AgentsCallStreamRequestAgent.ts new file mode 100644 index 00000000..86ffc4fc --- /dev/null +++ b/src/api/resources/agents/types/AgentsCallStreamRequestAgent.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Humanloop from "../../../index"; + +/** + * The Agent configuration to use. Two formats are supported: + * - An object representing the details of the Agent configuration + * - A string representing the raw contents of a .agent file + * A new Agent version will be created if the provided details do not match any existing version. + */ +export type AgentsCallStreamRequestAgent = Humanloop.AgentKernelRequest | string; diff --git a/src/api/resources/agents/types/index.ts b/src/api/resources/agents/types/index.ts index 8a8a004f..1a1043c1 100644 --- a/src/api/resources/agents/types/index.ts +++ b/src/api/resources/agents/types/index.ts @@ -1,6 +1,9 @@ export * from "./AgentLogRequestToolChoice"; +export * from "./AgentLogRequestAgent"; export * from "./AgentsCallStreamRequestToolChoice"; +export * from "./AgentsCallStreamRequestAgent"; export * from "./AgentsCallRequestToolChoice"; +export * from "./AgentsCallRequestAgent"; export * from "./AgentRequestTemplate"; export * from "./AgentRequestStop"; export * from "./AgentRequestReasoningEffort"; diff --git a/src/api/resources/datasets/client/Client.ts b/src/api/resources/datasets/client/Client.ts index cd17b306..a830030f 100644 --- a/src/api/resources/datasets/client/Client.ts +++ b/src/api/resources/datasets/client/Client.ts @@ -89,7 +89,7 @@ export class Datasets { _queryParams["user_filter"] = userFilter; } if (sortBy != null) { - _queryParams["sort_by"] = serializers.ProjectSortBy.jsonOrThrow(sortBy, { + _queryParams["sort_by"] = serializers.FileSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip", }); } @@ -107,8 +107,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -275,8 +275,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -388,8 +388,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -470,8 +470,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -550,8 +550,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -656,8 +656,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -763,8 +763,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -850,8 +850,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -934,8 +934,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1055,8 +1055,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1155,8 +1155,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1246,8 +1246,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1326,8 +1326,8 @@ export class Datasets { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/datasets/client/requests/ListDatasetsGetRequest.ts b/src/api/resources/datasets/client/requests/ListDatasetsGetRequest.ts index c51ad97c..b171bf20 100644 --- a/src/api/resources/datasets/client/requests/ListDatasetsGetRequest.ts +++ b/src/api/resources/datasets/client/requests/ListDatasetsGetRequest.ts @@ -30,7 +30,7 @@ export interface ListDatasetsGetRequest { /** * Field to sort Datasets by */ - sortBy?: Humanloop.ProjectSortBy; + sortBy?: Humanloop.FileSortBy; /** * Direction to sort by. */ diff --git a/src/api/resources/directories/client/Client.ts b/src/api/resources/directories/client/Client.ts index a9e2a6e9..15d70ea8 100644 --- a/src/api/resources/directories/client/Client.ts +++ b/src/api/resources/directories/client/Client.ts @@ -55,8 +55,8 @@ export class Directories { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -139,8 +139,8 @@ export class Directories { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -224,8 +224,8 @@ export class Directories { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -307,8 +307,8 @@ export class Directories { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -387,8 +387,8 @@ export class Directories { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/evaluations/client/Client.ts b/src/api/resources/evaluations/client/Client.ts index 93e1d4e1..8571a54d 100644 --- a/src/api/resources/evaluations/client/Client.ts +++ b/src/api/resources/evaluations/client/Client.ts @@ -88,8 +88,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -190,8 +190,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -283,8 +283,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -374,8 +374,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -463,8 +463,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -546,8 +546,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -624,8 +624,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -723,8 +723,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -813,8 +813,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -894,8 +894,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -981,8 +981,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1074,8 +1074,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1161,8 +1161,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1267,8 +1267,8 @@ export class Evaluations { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/evaluators/client/Client.ts b/src/api/resources/evaluators/client/Client.ts index c39703a9..b5c79fcf 100644 --- a/src/api/resources/evaluators/client/Client.ts +++ b/src/api/resources/evaluators/client/Client.ts @@ -73,8 +73,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -168,7 +168,7 @@ export class Evaluators { _queryParams["user_filter"] = userFilter; } if (sortBy != null) { - _queryParams["sort_by"] = serializers.ProjectSortBy.jsonOrThrow(sortBy, { + _queryParams["sort_by"] = serializers.FileSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip", }); } @@ -186,8 +186,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -296,8 +296,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -396,8 +396,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -478,8 +478,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -560,8 +560,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -653,8 +653,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -740,8 +740,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -824,8 +824,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -923,8 +923,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1015,8 +1015,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1095,8 +1095,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1186,8 +1186,8 @@ export class Evaluators { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts b/src/api/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts index b6f3c64f..e6b1873d 100644 --- a/src/api/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts +++ b/src/api/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts @@ -47,8 +47,6 @@ export interface CreateEvaluatorLogRequest { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Identifier of the evaluated Log. The newly created Log will have this one set as parent. */ parentId: string; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ diff --git a/src/api/resources/evaluators/client/requests/ListEvaluatorsGetRequest.ts b/src/api/resources/evaluators/client/requests/ListEvaluatorsGetRequest.ts index 676ff433..67c8497e 100644 --- a/src/api/resources/evaluators/client/requests/ListEvaluatorsGetRequest.ts +++ b/src/api/resources/evaluators/client/requests/ListEvaluatorsGetRequest.ts @@ -30,7 +30,7 @@ export interface ListEvaluatorsGetRequest { /** * Field to sort Evaluators by */ - sortBy?: Humanloop.ProjectSortBy; + sortBy?: Humanloop.FileSortBy; /** * Direction to sort by. */ diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts index 83aa8ff1..0619e213 100644 --- a/src/api/resources/files/client/Client.ts +++ b/src/api/resources/files/client/Client.ts @@ -48,7 +48,18 @@ export class Files { request: Humanloop.ListFilesFilesGetRequest = {}, requestOptions?: Files.RequestOptions, ): Promise { - const { page, size, name, template, type: type_, environment, sortBy, order } = request; + const { + page, + size, + name, + path, + template, + type: type_, + environment, + sortBy, + order, + includeRawFileContent, + } = request; const _queryParams: Record = {}; if (page != null) { _queryParams["page"] = page.toString(); @@ -62,6 +73,10 @@ export class Files { _queryParams["name"] = name; } + if (path != null) { + _queryParams["path"] = path; + } + if (template != null) { _queryParams["template"] = template.toString(); } @@ -81,15 +96,17 @@ export class Files { } if (sortBy != null) { - _queryParams["sort_by"] = serializers.ProjectSortBy.jsonOrThrow(sortBy, { - unrecognizedObjectKeys: "strip", - }); + _queryParams["sort_by"] = serializers.FileSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip" }); } if (order != null) { _queryParams["order"] = serializers.SortOrder.jsonOrThrow(order, { unrecognizedObjectKeys: "strip" }); } + if (includeRawFileContent != null) { + _queryParams["include_raw_file_content"] = includeRawFileContent.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -101,8 +118,8 @@ export class Files { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -180,12 +197,16 @@ export class Files { request: Humanloop.BodyRetrieveByPathFilesRetrieveByPathPost, requestOptions?: Files.RequestOptions, ): Promise { - const { environment, ..._body } = request; + const { environment, includeRawFileContent, ..._body } = request; const _queryParams: Record = {}; if (environment != null) { _queryParams["environment"] = environment; } + if (includeRawFileContent != null) { + _queryParams["include_raw_file_content"] = includeRawFileContent.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -197,8 +218,8 @@ export class Files { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/files/client/requests/BodyRetrieveByPathFilesRetrieveByPathPost.ts b/src/api/resources/files/client/requests/BodyRetrieveByPathFilesRetrieveByPathPost.ts index 7c5c0012..756e769c 100644 --- a/src/api/resources/files/client/requests/BodyRetrieveByPathFilesRetrieveByPathPost.ts +++ b/src/api/resources/files/client/requests/BodyRetrieveByPathFilesRetrieveByPathPost.ts @@ -13,6 +13,10 @@ export interface BodyRetrieveByPathFilesRetrieveByPathPost { * Name of the Environment to retrieve a deployed Version from. */ environment?: string; + /** + * Whether to include the raw file content in the response. Currently only supported for Agents and Prompts. + */ + includeRawFileContent?: boolean; /** Path of the File to retrieve. */ path: string; } diff --git a/src/api/resources/files/client/requests/ListFilesFilesGetRequest.ts b/src/api/resources/files/client/requests/ListFilesFilesGetRequest.ts index 592e4e8b..4fc50bd5 100644 --- a/src/api/resources/files/client/requests/ListFilesFilesGetRequest.ts +++ b/src/api/resources/files/client/requests/ListFilesFilesGetRequest.ts @@ -21,6 +21,10 @@ export interface ListFilesFilesGetRequest { * Case-insensitive filter for file name. */ name?: string; + /** + * Path of the directory to filter for. Returns files in this directory and all its subdirectories. + */ + path?: string; /** * Filter to include only template files. */ @@ -36,9 +40,13 @@ export interface ListFilesFilesGetRequest { /** * Field to sort files by */ - sortBy?: Humanloop.ProjectSortBy; + sortBy?: Humanloop.FileSortBy; /** * Direction to sort by. */ order?: Humanloop.SortOrder; + /** + * Whether to include the raw file content in the response. Currently only supported for Agents and Prompts. + */ + includeRawFileContent?: boolean; } diff --git a/src/api/resources/flows/client/Client.ts b/src/api/resources/flows/client/Client.ts index e548186e..81f5c5aa 100644 --- a/src/api/resources/flows/client/Client.ts +++ b/src/api/resources/flows/client/Client.ts @@ -39,9 +39,6 @@ export class Flows { * You can use query parameters `version_id`, or `environment`, to target * an existing version of the Flow. Otherwise, the default deployed version will be chosen. * - * If you create the Flow Log with a `log_status` of `incomplete`, you should later update it to `complete` - * in order to trigger Evaluators. - * * @param {Humanloop.FlowLogRequest} request * @param {Flows.RequestOptions} requestOptions - Request-specific configuration. * @@ -98,8 +95,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -198,8 +195,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -298,8 +295,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -380,8 +377,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -462,8 +459,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -554,7 +551,7 @@ export class Flows { _queryParams["user_filter"] = userFilter; } if (sortBy != null) { - _queryParams["sort_by"] = serializers.ProjectSortBy.jsonOrThrow(sortBy, { + _queryParams["sort_by"] = serializers.FileSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip", }); } @@ -572,8 +569,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -688,8 +685,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -781,8 +778,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -868,8 +865,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -952,8 +949,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1051,8 +1048,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1143,8 +1140,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1223,8 +1220,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1316,8 +1313,8 @@ export class Flows { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/flows/client/requests/FlowLogRequest.ts b/src/api/resources/flows/client/requests/FlowLogRequest.ts index 0f01d4ce..8a400f06 100644 --- a/src/api/resources/flows/client/requests/FlowLogRequest.ts +++ b/src/api/resources/flows/client/requests/FlowLogRequest.ts @@ -74,7 +74,7 @@ export interface FlowLogRequest { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of the Flow Log. When a Log is updated from `incomplete` to `complete`, it becomes available to Monitoring Evaluators. Flow Logs cannot have an unspecified status: they must start as `incomplete` to allow children to be added. Provide `complete` if you don't intend to add children to the trace. */ + /** Status of the Flow Log. When a Log is updated from `incomplete` to `complete`, no more Logs can be added to it. */ logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; diff --git a/src/api/resources/flows/client/requests/ListFlowsGetRequest.ts b/src/api/resources/flows/client/requests/ListFlowsGetRequest.ts index e7a219a6..3f93e86e 100644 --- a/src/api/resources/flows/client/requests/ListFlowsGetRequest.ts +++ b/src/api/resources/flows/client/requests/ListFlowsGetRequest.ts @@ -30,7 +30,7 @@ export interface ListFlowsGetRequest { /** * Field to sort Flows by */ - sortBy?: Humanloop.ProjectSortBy; + sortBy?: Humanloop.FileSortBy; /** * Direction to sort by. */ diff --git a/src/api/resources/flows/client/requests/UpdateFlowLogRequest.ts b/src/api/resources/flows/client/requests/UpdateFlowLogRequest.ts index 7308b779..02da672b 100644 --- a/src/api/resources/flows/client/requests/UpdateFlowLogRequest.ts +++ b/src/api/resources/flows/client/requests/UpdateFlowLogRequest.ts @@ -26,6 +26,6 @@ export interface UpdateFlowLogRequest { output?: string; /** The error message of the Flow Log. Provide None to unset existing `error` value. Provide either this, `output_message` or `output`. */ error?: string; - /** Status of the Flow Log. When a Flow Log is updated to `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Flow Logs. */ + /** Status of the Flow Log. When a Flow Log is updated to `complete`, no more Logs can be added to it. You cannot update a Flow Log's status from `complete` to `incomplete`. */ logStatus?: Humanloop.LogStatus; } diff --git a/src/api/resources/logs/client/Client.ts b/src/api/resources/logs/client/Client.ts index e8e0dcb3..3f02dbc3 100644 --- a/src/api/resources/logs/client/Client.ts +++ b/src/api/resources/logs/client/Client.ts @@ -136,8 +136,8 @@ export class Logs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -242,8 +242,8 @@ export class Logs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -318,8 +318,8 @@ export class Logs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/prompts/client/Client.ts b/src/api/resources/prompts/client/Client.ts index 9541f43a..9b5d87b3 100644 --- a/src/api/resources/prompts/client/Client.ts +++ b/src/api/resources/prompts/client/Client.ts @@ -129,8 +129,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -221,8 +221,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -321,8 +321,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -502,8 +502,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -600,7 +600,7 @@ export class Prompts { _queryParams["user_filter"] = userFilter; } if (sortBy != null) { - _queryParams["sort_by"] = serializers.ProjectSortBy.jsonOrThrow(sortBy, { + _queryParams["sort_by"] = serializers.FileSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip", }); } @@ -618,8 +618,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -731,8 +731,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -831,8 +831,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -913,8 +913,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -995,8 +995,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1099,8 +1099,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1193,8 +1193,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1280,8 +1280,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1364,8 +1364,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1463,8 +1463,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1555,8 +1555,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1635,8 +1635,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1728,8 +1728,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1811,7 +1811,7 @@ export class Prompts { id: string, request: Humanloop.SerializePromptsIdSerializeGetRequest = {}, requestOptions?: Prompts.RequestOptions, - ): Promise { + ): Promise { const { versionId, environment } = request; const _queryParams: Record = {}; if (versionId != null) { @@ -1833,8 +1833,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1843,12 +1843,13 @@ export class Prompts { contentType: "application/json", queryParameters: _queryParams, requestType: "json", + responseType: "text", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return _response.body; + return _response.body as string; } if (_response.error.reason === "status-code") { @@ -1917,8 +1918,8 @@ export class Prompts { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/prompts/client/requests/ListPromptsGetRequest.ts b/src/api/resources/prompts/client/requests/ListPromptsGetRequest.ts index 0344a789..f681b09d 100644 --- a/src/api/resources/prompts/client/requests/ListPromptsGetRequest.ts +++ b/src/api/resources/prompts/client/requests/ListPromptsGetRequest.ts @@ -30,7 +30,7 @@ export interface ListPromptsGetRequest { /** * Field to sort Prompts by */ - sortBy?: Humanloop.ProjectSortBy; + sortBy?: Humanloop.FileSortBy; /** * Direction to sort by. */ diff --git a/src/api/resources/prompts/client/requests/PromptLogRequest.ts b/src/api/resources/prompts/client/requests/PromptLogRequest.ts index 45a47afd..eb52657b 100644 --- a/src/api/resources/prompts/client/requests/PromptLogRequest.ts +++ b/src/api/resources/prompts/client/requests/PromptLogRequest.ts @@ -75,8 +75,13 @@ export interface PromptLogRequest { * - `{'type': 'function', 'function': {name': }}` forces the model to use the named function. */ toolChoice?: Humanloop.PromptLogRequestToolChoice; - /** Details of your Prompt. A new Prompt version will be created if the provided details are new. */ - prompt?: Humanloop.PromptKernelRequest; + /** + * The Prompt configuration to use. Two formats are supported: + * - An object representing the details of the Prompt configuration + * - A string representing the raw contents of a .prompt file + * A new Prompt version will be created if the provided details do not match any existing version. + */ + prompt?: Humanloop.PromptLogRequestPrompt; /** When the logged event started. */ startTime?: Date; /** When the logged event ended. */ @@ -101,8 +106,6 @@ export interface PromptLogRequest { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/resources/prompts/client/requests/PromptLogUpdateRequest.ts b/src/api/resources/prompts/client/requests/PromptLogUpdateRequest.ts index 32035be7..4b55f9a5 100644 --- a/src/api/resources/prompts/client/requests/PromptLogUpdateRequest.ts +++ b/src/api/resources/prompts/client/requests/PromptLogUpdateRequest.ts @@ -57,6 +57,4 @@ export interface PromptLogUpdateRequest { startTime?: Date; /** When the logged event ended. */ endTime?: Date; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; } diff --git a/src/api/resources/prompts/client/requests/PromptsCallRequest.ts b/src/api/resources/prompts/client/requests/PromptsCallRequest.ts index 4e1595fc..57ad264b 100644 --- a/src/api/resources/prompts/client/requests/PromptsCallRequest.ts +++ b/src/api/resources/prompts/client/requests/PromptsCallRequest.ts @@ -91,8 +91,13 @@ export interface PromptsCallRequest { * - `{'type': 'function', 'function': {name': }}` forces the model to use the named function. */ toolChoice?: Humanloop.PromptsCallRequestToolChoice; - /** Details of your Prompt. A new Prompt version will be created if the provided details are new. */ - prompt?: Humanloop.PromptKernelRequest; + /** + * The Prompt configuration to use. Two formats are supported: + * - An object representing the details of the Prompt configuration + * - A string representing the raw contents of a .prompt file + * A new Prompt version will be created if the provided details do not match any existing version. + */ + prompt?: Humanloop.PromptsCallRequestPrompt; /** The inputs passed to the prompt template. */ inputs?: Record; /** Identifies where the model was called from. */ @@ -103,8 +108,6 @@ export interface PromptsCallRequest { startTime?: Date; /** When the logged event ended. */ endTime?: Date; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/resources/prompts/client/requests/PromptsCallStreamRequest.ts b/src/api/resources/prompts/client/requests/PromptsCallStreamRequest.ts index b444e68c..5faeb33f 100644 --- a/src/api/resources/prompts/client/requests/PromptsCallStreamRequest.ts +++ b/src/api/resources/prompts/client/requests/PromptsCallStreamRequest.ts @@ -31,8 +31,13 @@ export interface PromptsCallStreamRequest { * - `{'type': 'function', 'function': {name': }}` forces the model to use the named function. */ toolChoice?: Humanloop.PromptsCallStreamRequestToolChoice; - /** Details of your Prompt. A new Prompt version will be created if the provided details are new. */ - prompt?: Humanloop.PromptKernelRequest; + /** + * The Prompt configuration to use. Two formats are supported: + * - An object representing the details of the Prompt configuration + * - A string representing the raw contents of a .prompt file + * A new Prompt version will be created if the provided details do not match any existing version. + */ + prompt?: Humanloop.PromptsCallStreamRequestPrompt; /** The inputs passed to the prompt template. */ inputs?: Record; /** Identifies where the model was called from. */ @@ -43,8 +48,6 @@ export interface PromptsCallStreamRequest { startTime?: Date; /** When the logged event ended. */ endTime?: Date; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/resources/prompts/types/PromptLogRequestPrompt.ts b/src/api/resources/prompts/types/PromptLogRequestPrompt.ts new file mode 100644 index 00000000..5c8fe6a8 --- /dev/null +++ b/src/api/resources/prompts/types/PromptLogRequestPrompt.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Humanloop from "../../../index"; + +/** + * The Prompt configuration to use. Two formats are supported: + * - An object representing the details of the Prompt configuration + * - A string representing the raw contents of a .prompt file + * A new Prompt version will be created if the provided details do not match any existing version. + */ +export type PromptLogRequestPrompt = Humanloop.PromptKernelRequest | string; diff --git a/src/api/resources/prompts/types/PromptsCallRequestPrompt.ts b/src/api/resources/prompts/types/PromptsCallRequestPrompt.ts new file mode 100644 index 00000000..c94ade87 --- /dev/null +++ b/src/api/resources/prompts/types/PromptsCallRequestPrompt.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Humanloop from "../../../index"; + +/** + * The Prompt configuration to use. Two formats are supported: + * - An object representing the details of the Prompt configuration + * - A string representing the raw contents of a .prompt file + * A new Prompt version will be created if the provided details do not match any existing version. + */ +export type PromptsCallRequestPrompt = Humanloop.PromptKernelRequest | string; diff --git a/src/api/resources/prompts/types/PromptsCallStreamRequestPrompt.ts b/src/api/resources/prompts/types/PromptsCallStreamRequestPrompt.ts new file mode 100644 index 00000000..1dee1331 --- /dev/null +++ b/src/api/resources/prompts/types/PromptsCallStreamRequestPrompt.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Humanloop from "../../../index"; + +/** + * The Prompt configuration to use. Two formats are supported: + * - An object representing the details of the Prompt configuration + * - A string representing the raw contents of a .prompt file + * A new Prompt version will be created if the provided details do not match any existing version. + */ +export type PromptsCallStreamRequestPrompt = Humanloop.PromptKernelRequest | string; diff --git a/src/api/resources/prompts/types/index.ts b/src/api/resources/prompts/types/index.ts index 8265b2f3..f8045c03 100644 --- a/src/api/resources/prompts/types/index.ts +++ b/src/api/resources/prompts/types/index.ts @@ -1,7 +1,10 @@ export * from "./PromptLogRequestToolChoice"; +export * from "./PromptLogRequestPrompt"; export * from "./PromptLogUpdateRequestToolChoice"; export * from "./PromptsCallStreamRequestToolChoice"; +export * from "./PromptsCallStreamRequestPrompt"; export * from "./PromptsCallRequestToolChoice"; +export * from "./PromptsCallRequestPrompt"; export * from "./PromptRequestTemplate"; export * from "./PromptRequestStop"; export * from "./PromptRequestReasoningEffort"; diff --git a/src/api/resources/tools/client/Client.ts b/src/api/resources/tools/client/Client.ts index c5a81fb5..2c57ea9b 100644 --- a/src/api/resources/tools/client/Client.ts +++ b/src/api/resources/tools/client/Client.ts @@ -79,8 +79,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -211,8 +211,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -303,8 +303,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -395,7 +395,7 @@ export class Tools { _queryParams["user_filter"] = userFilter; } if (sortBy != null) { - _queryParams["sort_by"] = serializers.ProjectSortBy.jsonOrThrow(sortBy, { + _queryParams["sort_by"] = serializers.FileSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip", }); } @@ -413,8 +413,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -536,8 +536,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -636,8 +636,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -718,8 +718,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -800,8 +800,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -893,8 +893,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -980,8 +980,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1064,8 +1064,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1163,8 +1163,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1255,8 +1255,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1335,8 +1335,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1428,8 +1428,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1513,8 +1513,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1604,8 +1604,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1693,8 +1693,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "humanloop", - "X-Fern-SDK-Version": "0.8.21-beta1", - "User-Agent": "humanloop/0.8.21-beta1", + "X-Fern-SDK-Version": "0.8.21-beta2", + "User-Agent": "humanloop/0.8.21-beta2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/tools/client/requests/ListToolsGetRequest.ts b/src/api/resources/tools/client/requests/ListToolsGetRequest.ts index 2e5884d5..95c01c87 100644 --- a/src/api/resources/tools/client/requests/ListToolsGetRequest.ts +++ b/src/api/resources/tools/client/requests/ListToolsGetRequest.ts @@ -30,7 +30,7 @@ export interface ListToolsGetRequest { /** * Field to sort Tools by */ - sortBy?: Humanloop.ProjectSortBy; + sortBy?: Humanloop.FileSortBy; /** * Direction to sort by. */ diff --git a/src/api/resources/tools/client/requests/ToolCallRequest.ts b/src/api/resources/tools/client/requests/ToolCallRequest.ts index e8705964..e636ddc0 100644 --- a/src/api/resources/tools/client/requests/ToolCallRequest.ts +++ b/src/api/resources/tools/client/requests/ToolCallRequest.ts @@ -33,8 +33,6 @@ export interface ToolCallRequest { startTime?: Date; /** When the logged event ended. */ endTime?: Date; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/resources/tools/client/requests/ToolLogRequest.ts b/src/api/resources/tools/client/requests/ToolLogRequest.ts index 3992c004..390fbb6e 100644 --- a/src/api/resources/tools/client/requests/ToolLogRequest.ts +++ b/src/api/resources/tools/client/requests/ToolLogRequest.ts @@ -75,8 +75,6 @@ export interface ToolLogRequest { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/resources/tools/client/requests/ToolLogUpdateRequest.ts b/src/api/resources/tools/client/requests/ToolLogUpdateRequest.ts index 918bdfda..dfe9d5ca 100644 --- a/src/api/resources/tools/client/requests/ToolLogUpdateRequest.ts +++ b/src/api/resources/tools/client/requests/ToolLogUpdateRequest.ts @@ -2,8 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Humanloop from "../../../../index"; - /** * @example * {} @@ -33,6 +31,4 @@ export interface ToolLogUpdateRequest { startTime?: Date; /** When the logged event ended. */ endTime?: Date; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; } diff --git a/src/api/types/AgentLogResponse.ts b/src/api/types/AgentLogResponse.ts index 6349e664..83eaad11 100644 --- a/src/api/types/AgentLogResponse.ts +++ b/src/api/types/AgentLogResponse.ts @@ -58,8 +58,6 @@ export interface AgentLogResponse { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/types/AgentResponse.ts b/src/api/types/AgentResponse.ts index b9251aac..beebd2ed 100644 --- a/src/api/types/AgentResponse.ts +++ b/src/api/types/AgentResponse.ts @@ -100,4 +100,6 @@ export interface AgentResponse { evaluators?: Humanloop.MonitoringEvaluatorResponse[]; /** Aggregation of Evaluator results for the Agent Version. */ evaluatorAggregates?: Humanloop.EvaluatorAggregate[]; + /** The raw content of the Agent. Corresponds to the .agent file. */ + rawFileContent?: string; } diff --git a/src/api/types/CreateAgentLogResponse.ts b/src/api/types/CreateAgentLogResponse.ts index fc111b43..1ecb50d3 100644 --- a/src/api/types/CreateAgentLogResponse.ts +++ b/src/api/types/CreateAgentLogResponse.ts @@ -14,6 +14,6 @@ export interface CreateAgentLogResponse { agentId: string; /** Unique identifier for the Agent Version. */ versionId: string; - /** Status of the Agent Log. When a Agent Log is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Agent Logs. */ + /** Status of the Agent Log. When a Agent Log is marked as `complete`, no more Logs can be added to it. */ logStatus?: Humanloop.LogStatus; } diff --git a/src/api/types/CreateFlowLogResponse.ts b/src/api/types/CreateFlowLogResponse.ts index 5dcd0a6c..eed1de96 100644 --- a/src/api/types/CreateFlowLogResponse.ts +++ b/src/api/types/CreateFlowLogResponse.ts @@ -14,6 +14,6 @@ export interface CreateFlowLogResponse { flowId: string; /** Unique identifier for the Flow Version. */ versionId: string; - /** Status of the Flow Log. When a Flow Log is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Flow Logs. */ + /** Status of the Flow Log. When a Flow Log is marked as `complete`, no more Logs can be added to it. */ logStatus?: Humanloop.LogStatus; } diff --git a/src/api/types/EvaluatorLogResponse.ts b/src/api/types/EvaluatorLogResponse.ts index 4d494d32..0c6deecd 100644 --- a/src/api/types/EvaluatorLogResponse.ts +++ b/src/api/types/EvaluatorLogResponse.ts @@ -32,8 +32,6 @@ export interface EvaluatorLogResponse { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Identifier of the evaluated Log. The newly created Log will have this one set as parent. */ parentId?: string; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ diff --git a/src/api/types/EventType.ts b/src/api/types/EventType.ts index cba1c9f1..5d287d29 100644 --- a/src/api/types/EventType.ts +++ b/src/api/types/EventType.ts @@ -10,19 +10,20 @@ export type EventType = | "agent_turn_suspend" | "agent_turn_continue" | "agent_turn_end" + | "agent_turn_error" | "agent_start" | "agent_update" | "agent_end" | "tool_start" | "tool_update" | "tool_end" - | "error" - | "agent_generation_error"; + | "error"; export const EventType = { AgentTurnStart: "agent_turn_start", AgentTurnSuspend: "agent_turn_suspend", AgentTurnContinue: "agent_turn_continue", AgentTurnEnd: "agent_turn_end", + AgentTurnError: "agent_turn_error", AgentStart: "agent_start", AgentUpdate: "agent_update", AgentEnd: "agent_end", @@ -30,5 +31,4 @@ export const EventType = { ToolUpdate: "tool_update", ToolEnd: "tool_end", Error: "error", - AgentGenerationError: "agent_generation_error", } as const; diff --git a/src/api/types/ProjectSortBy.ts b/src/api/types/FileSortBy.ts similarity index 66% rename from src/api/types/ProjectSortBy.ts rename to src/api/types/FileSortBy.ts index 9b3ed0cb..df2b6d4e 100644 --- a/src/api/types/ProjectSortBy.ts +++ b/src/api/types/FileSortBy.ts @@ -5,8 +5,8 @@ /** * An enumeration. */ -export type ProjectSortBy = "created_at" | "updated_at" | "name"; -export const ProjectSortBy = { +export type FileSortBy = "created_at" | "updated_at" | "name"; +export const FileSortBy = { CreatedAt: "created_at", UpdatedAt: "updated_at", Name: "name", diff --git a/src/api/types/FlowLogResponse.ts b/src/api/types/FlowLogResponse.ts index ee268ba9..8372c54e 100644 --- a/src/api/types/FlowLogResponse.ts +++ b/src/api/types/FlowLogResponse.ts @@ -36,7 +36,7 @@ export interface FlowLogResponse { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ + /** Status of the Flow Log. When a Flow Log is updated to `complete`, no more Logs can be added to it. You cannot update a Flow Log's status from `complete` to `incomplete`. */ logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; diff --git a/src/api/types/PopulateTemplateResponse.ts b/src/api/types/PopulateTemplateResponse.ts index c92b9621..f268d97f 100644 --- a/src/api/types/PopulateTemplateResponse.ts +++ b/src/api/types/PopulateTemplateResponse.ts @@ -94,6 +94,8 @@ export interface PopulateTemplateResponse { evaluators?: Humanloop.MonitoringEvaluatorResponse[]; /** Aggregation of Evaluator results for the Prompt Version. */ evaluatorAggregates?: Humanloop.EvaluatorAggregate[]; + /** The raw content of the Prompt. Corresponds to the .prompt file. */ + rawFileContent?: string; /** The template populated with the input values you provided in the request. Returns None if no template exists. */ populatedTemplate?: Humanloop.PopulateTemplateResponsePopulatedTemplate; } diff --git a/src/api/types/PromptCallResponse.ts b/src/api/types/PromptCallResponse.ts index 2708447f..4b592d2e 100644 --- a/src/api/types/PromptCallResponse.ts +++ b/src/api/types/PromptCallResponse.ts @@ -30,8 +30,6 @@ export interface PromptCallResponse { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/types/PromptLogResponse.ts b/src/api/types/PromptLogResponse.ts index cf938b1a..7894bb55 100644 --- a/src/api/types/PromptLogResponse.ts +++ b/src/api/types/PromptLogResponse.ts @@ -58,8 +58,6 @@ export interface PromptLogResponse { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/types/PromptResponse.ts b/src/api/types/PromptResponse.ts index beb732f6..bd177e9d 100644 --- a/src/api/types/PromptResponse.ts +++ b/src/api/types/PromptResponse.ts @@ -94,4 +94,6 @@ export interface PromptResponse { evaluators?: Humanloop.MonitoringEvaluatorResponse[]; /** Aggregation of Evaluator results for the Prompt Version. */ evaluatorAggregates?: Humanloop.EvaluatorAggregate[]; + /** The raw content of the Prompt. Corresponds to the .prompt file. */ + rawFileContent?: string; } diff --git a/src/api/types/ProviderApiKeys.ts b/src/api/types/ProviderApiKeys.ts index c9b461f8..ef662578 100644 --- a/src/api/types/ProviderApiKeys.ts +++ b/src/api/types/ProviderApiKeys.ts @@ -4,7 +4,6 @@ export interface ProviderApiKeys { openai?: string; - ai21?: string; mock?: string; anthropic?: string; deepseek?: string; @@ -12,4 +11,5 @@ export interface ProviderApiKeys { cohere?: string; openaiAzure?: string; openaiAzureEndpoint?: string; + google?: string; } diff --git a/src/api/types/ToolCallResponse.ts b/src/api/types/ToolCallResponse.ts index 49cdd630..54cb673b 100644 --- a/src/api/types/ToolCallResponse.ts +++ b/src/api/types/ToolCallResponse.ts @@ -34,8 +34,6 @@ export interface ToolCallResponse { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/types/ToolLogResponse.ts b/src/api/types/ToolLogResponse.ts index 9da362a8..6abb0309 100644 --- a/src/api/types/ToolLogResponse.ts +++ b/src/api/types/ToolLogResponse.ts @@ -32,8 +32,6 @@ export interface ToolLogResponse { source?: string; /** Any additional metadata to record. */ metadata?: Record; - /** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */ - logStatus?: Humanloop.LogStatus; /** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */ sourceDatapointId?: string; /** The ID of the parent Log to nest this Log under in a Trace. */ diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 50b0fe8b..11a2bba7 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -80,6 +80,7 @@ export * from "./FileEnvironmentVariableRequest"; export * from "./FileId"; export * from "./FilePath"; export * from "./FileRequest"; +export * from "./FileSortBy"; export * from "./FileType"; export * from "./FlowKernelRequest"; export * from "./FlowLogResponse"; @@ -134,7 +135,6 @@ export * from "./PopulateTemplateResponseStop"; export * from "./PopulateTemplateResponseReasoningEffort"; export * from "./PopulateTemplateResponsePopulatedTemplate"; export * from "./PopulateTemplateResponse"; -export * from "./ProjectSortBy"; export * from "./PromptCallLogResponse"; export * from "./PromptCallResponseToolChoice"; export * from "./PromptCallResponse"; diff --git a/src/serialization/resources/agents/client/requests/AgentLogRequest.ts b/src/serialization/resources/agents/client/requests/AgentLogRequest.ts index 84babd7f..e66479b3 100644 --- a/src/serialization/resources/agents/client/requests/AgentLogRequest.ts +++ b/src/serialization/resources/agents/client/requests/AgentLogRequest.ts @@ -7,8 +7,7 @@ import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; import { ChatMessage } from "../../../../types/ChatMessage"; import { AgentLogRequestToolChoice } from "../../types/AgentLogRequestToolChoice"; -import { AgentKernelRequest } from "../../../../types/AgentKernelRequest"; -import { LogStatus } from "../../../../types/LogStatus"; +import { AgentLogRequestAgent } from "../../types/AgentLogRequestAgent"; export const AgentLogRequest: core.serialization.Schema< serializers.AgentLogRequest.Raw, @@ -26,7 +25,7 @@ export const AgentLogRequest: core.serialization.Schema< finishReason: core.serialization.property("finish_reason", core.serialization.string().optional()), messages: core.serialization.list(ChatMessage).optional(), toolChoice: core.serialization.property("tool_choice", AgentLogRequestToolChoice.optional()), - agent: AgentKernelRequest.optional(), + agent: AgentLogRequestAgent.optional(), startTime: core.serialization.property("start_time", core.serialization.date().optional()), endTime: core.serialization.property("end_time", core.serialization.date().optional()), output: core.serialization.string().optional(), @@ -45,7 +44,6 @@ export const AgentLogRequest: core.serialization.Schema< inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), user: core.serialization.string().optional(), @@ -68,7 +66,7 @@ export declare namespace AgentLogRequest { finish_reason?: string | null; messages?: ChatMessage.Raw[] | null; tool_choice?: AgentLogRequestToolChoice.Raw | null; - agent?: AgentKernelRequest.Raw | null; + agent?: AgentLogRequestAgent.Raw | null; start_time?: string | null; end_time?: string | null; output?: string | null; @@ -81,7 +79,6 @@ export declare namespace AgentLogRequest { inputs?: Record | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; user?: string | null; diff --git a/src/serialization/resources/agents/client/requests/AgentsCallRequest.ts b/src/serialization/resources/agents/client/requests/AgentsCallRequest.ts index a64a7932..155e5843 100644 --- a/src/serialization/resources/agents/client/requests/AgentsCallRequest.ts +++ b/src/serialization/resources/agents/client/requests/AgentsCallRequest.ts @@ -7,8 +7,7 @@ import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; import { ChatMessage } from "../../../../types/ChatMessage"; import { AgentsCallRequestToolChoice } from "../../types/AgentsCallRequestToolChoice"; -import { AgentKernelRequest } from "../../../../types/AgentKernelRequest"; -import { LogStatus } from "../../../../types/LogStatus"; +import { AgentsCallRequestAgent } from "../../types/AgentsCallRequestAgent"; import { ProviderApiKeys } from "../../../../types/ProviderApiKeys"; export const AgentsCallRequest: core.serialization.Schema< @@ -19,13 +18,12 @@ export const AgentsCallRequest: core.serialization.Schema< id: core.serialization.string().optional(), messages: core.serialization.list(ChatMessage).optional(), toolChoice: core.serialization.property("tool_choice", AgentsCallRequestToolChoice.optional()), - agent: AgentKernelRequest.optional(), + agent: AgentsCallRequestAgent.optional(), inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), startTime: core.serialization.property("start_time", core.serialization.date().optional()), endTime: core.serialization.property("end_time", core.serialization.date().optional()), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), user: core.serialization.string().optional(), @@ -46,13 +44,12 @@ export declare namespace AgentsCallRequest { id?: string | null; messages?: ChatMessage.Raw[] | null; tool_choice?: AgentsCallRequestToolChoice.Raw | null; - agent?: AgentKernelRequest.Raw | null; + agent?: AgentsCallRequestAgent.Raw | null; inputs?: Record | null; source?: string | null; metadata?: Record | null; start_time?: string | null; end_time?: string | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; user?: string | null; diff --git a/src/serialization/resources/agents/client/requests/AgentsCallStreamRequest.ts b/src/serialization/resources/agents/client/requests/AgentsCallStreamRequest.ts index b0557ace..68fdcc80 100644 --- a/src/serialization/resources/agents/client/requests/AgentsCallStreamRequest.ts +++ b/src/serialization/resources/agents/client/requests/AgentsCallStreamRequest.ts @@ -7,8 +7,7 @@ import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; import { ChatMessage } from "../../../../types/ChatMessage"; import { AgentsCallStreamRequestToolChoice } from "../../types/AgentsCallStreamRequestToolChoice"; -import { AgentKernelRequest } from "../../../../types/AgentKernelRequest"; -import { LogStatus } from "../../../../types/LogStatus"; +import { AgentsCallStreamRequestAgent } from "../../types/AgentsCallStreamRequestAgent"; import { ProviderApiKeys } from "../../../../types/ProviderApiKeys"; export const AgentsCallStreamRequest: core.serialization.Schema< @@ -19,13 +18,12 @@ export const AgentsCallStreamRequest: core.serialization.Schema< id: core.serialization.string().optional(), messages: core.serialization.list(ChatMessage).optional(), toolChoice: core.serialization.property("tool_choice", AgentsCallStreamRequestToolChoice.optional()), - agent: AgentKernelRequest.optional(), + agent: AgentsCallStreamRequestAgent.optional(), inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), startTime: core.serialization.property("start_time", core.serialization.date().optional()), endTime: core.serialization.property("end_time", core.serialization.date().optional()), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), user: core.serialization.string().optional(), @@ -49,13 +47,12 @@ export declare namespace AgentsCallStreamRequest { id?: string | null; messages?: ChatMessage.Raw[] | null; tool_choice?: AgentsCallStreamRequestToolChoice.Raw | null; - agent?: AgentKernelRequest.Raw | null; + agent?: AgentsCallStreamRequestAgent.Raw | null; inputs?: Record | null; source?: string | null; metadata?: Record | null; start_time?: string | null; end_time?: string | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; user?: string | null; diff --git a/src/serialization/resources/agents/types/AgentLogRequestAgent.ts b/src/serialization/resources/agents/types/AgentLogRequestAgent.ts new file mode 100644 index 00000000..f77f6e2e --- /dev/null +++ b/src/serialization/resources/agents/types/AgentLogRequestAgent.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Humanloop from "../../../../api/index"; +import * as core from "../../../../core"; +import { AgentKernelRequest } from "../../../types/AgentKernelRequest"; + +export const AgentLogRequestAgent: core.serialization.Schema< + serializers.AgentLogRequestAgent.Raw, + Humanloop.AgentLogRequestAgent +> = core.serialization.undiscriminatedUnion([AgentKernelRequest, core.serialization.string()]); + +export declare namespace AgentLogRequestAgent { + export type Raw = AgentKernelRequest.Raw | string; +} diff --git a/src/serialization/resources/agents/types/AgentsCallRequestAgent.ts b/src/serialization/resources/agents/types/AgentsCallRequestAgent.ts new file mode 100644 index 00000000..aabc0c14 --- /dev/null +++ b/src/serialization/resources/agents/types/AgentsCallRequestAgent.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Humanloop from "../../../../api/index"; +import * as core from "../../../../core"; +import { AgentKernelRequest } from "../../../types/AgentKernelRequest"; + +export const AgentsCallRequestAgent: core.serialization.Schema< + serializers.AgentsCallRequestAgent.Raw, + Humanloop.AgentsCallRequestAgent +> = core.serialization.undiscriminatedUnion([AgentKernelRequest, core.serialization.string()]); + +export declare namespace AgentsCallRequestAgent { + export type Raw = AgentKernelRequest.Raw | string; +} diff --git a/src/serialization/resources/agents/types/AgentsCallStreamRequestAgent.ts b/src/serialization/resources/agents/types/AgentsCallStreamRequestAgent.ts new file mode 100644 index 00000000..61f637db --- /dev/null +++ b/src/serialization/resources/agents/types/AgentsCallStreamRequestAgent.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Humanloop from "../../../../api/index"; +import * as core from "../../../../core"; +import { AgentKernelRequest } from "../../../types/AgentKernelRequest"; + +export const AgentsCallStreamRequestAgent: core.serialization.Schema< + serializers.AgentsCallStreamRequestAgent.Raw, + Humanloop.AgentsCallStreamRequestAgent +> = core.serialization.undiscriminatedUnion([AgentKernelRequest, core.serialization.string()]); + +export declare namespace AgentsCallStreamRequestAgent { + export type Raw = AgentKernelRequest.Raw | string; +} diff --git a/src/serialization/resources/agents/types/index.ts b/src/serialization/resources/agents/types/index.ts index 8a8a004f..1a1043c1 100644 --- a/src/serialization/resources/agents/types/index.ts +++ b/src/serialization/resources/agents/types/index.ts @@ -1,6 +1,9 @@ export * from "./AgentLogRequestToolChoice"; +export * from "./AgentLogRequestAgent"; export * from "./AgentsCallStreamRequestToolChoice"; +export * from "./AgentsCallStreamRequestAgent"; export * from "./AgentsCallRequestToolChoice"; +export * from "./AgentsCallRequestAgent"; export * from "./AgentRequestTemplate"; export * from "./AgentRequestStop"; export * from "./AgentRequestReasoningEffort"; diff --git a/src/serialization/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts b/src/serialization/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts index 2b2f3b6f..08bf48ed 100644 --- a/src/serialization/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts +++ b/src/serialization/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts @@ -5,7 +5,6 @@ import * as serializers from "../../../../index"; import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; -import { LogStatus } from "../../../../types/LogStatus"; import { ChatMessage } from "../../../../types/ChatMessage"; import { CreateEvaluatorLogRequestJudgment } from "../../types/CreateEvaluatorLogRequestJudgment"; import { CreateEvaluatorLogRequestSpec } from "../../types/CreateEvaluatorLogRequestSpec"; @@ -34,7 +33,6 @@ export const CreateEvaluatorLogRequest: core.serialization.Schema< inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - logStatus: core.serialization.property("log_status", LogStatus.optional()), parentId: core.serialization.property("parent_id", core.serialization.string()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), @@ -67,7 +65,6 @@ export declare namespace CreateEvaluatorLogRequest { inputs?: Record | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; parent_id: string; source_datapoint_id?: string | null; trace_parent_id?: string | null; diff --git a/src/serialization/resources/files/client/requests/BodyRetrieveByPathFilesRetrieveByPathPost.ts b/src/serialization/resources/files/client/requests/BodyRetrieveByPathFilesRetrieveByPathPost.ts index fefe408b..1f712089 100644 --- a/src/serialization/resources/files/client/requests/BodyRetrieveByPathFilesRetrieveByPathPost.ts +++ b/src/serialization/resources/files/client/requests/BodyRetrieveByPathFilesRetrieveByPathPost.ts @@ -8,7 +8,7 @@ import * as core from "../../../../../core"; export const BodyRetrieveByPathFilesRetrieveByPathPost: core.serialization.Schema< serializers.BodyRetrieveByPathFilesRetrieveByPathPost.Raw, - Omit + Omit > = core.serialization.object({ path: core.serialization.string(), }); diff --git a/src/serialization/resources/prompts/client/requests/PromptLogRequest.ts b/src/serialization/resources/prompts/client/requests/PromptLogRequest.ts index 4638bf24..9975533b 100644 --- a/src/serialization/resources/prompts/client/requests/PromptLogRequest.ts +++ b/src/serialization/resources/prompts/client/requests/PromptLogRequest.ts @@ -7,8 +7,7 @@ import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; import { ChatMessage } from "../../../../types/ChatMessage"; import { PromptLogRequestToolChoice } from "../../types/PromptLogRequestToolChoice"; -import { PromptKernelRequest } from "../../../../types/PromptKernelRequest"; -import { LogStatus } from "../../../../types/LogStatus"; +import { PromptLogRequestPrompt } from "../../types/PromptLogRequestPrompt"; export const PromptLogRequest: core.serialization.Schema< serializers.PromptLogRequest.Raw, @@ -26,7 +25,7 @@ export const PromptLogRequest: core.serialization.Schema< finishReason: core.serialization.property("finish_reason", core.serialization.string().optional()), messages: core.serialization.list(ChatMessage).optional(), toolChoice: core.serialization.property("tool_choice", PromptLogRequestToolChoice.optional()), - prompt: PromptKernelRequest.optional(), + prompt: PromptLogRequestPrompt.optional(), startTime: core.serialization.property("start_time", core.serialization.date().optional()), endTime: core.serialization.property("end_time", core.serialization.date().optional()), output: core.serialization.string().optional(), @@ -45,7 +44,6 @@ export const PromptLogRequest: core.serialization.Schema< inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), user: core.serialization.string().optional(), @@ -68,7 +66,7 @@ export declare namespace PromptLogRequest { finish_reason?: string | null; messages?: ChatMessage.Raw[] | null; tool_choice?: PromptLogRequestToolChoice.Raw | null; - prompt?: PromptKernelRequest.Raw | null; + prompt?: PromptLogRequestPrompt.Raw | null; start_time?: string | null; end_time?: string | null; output?: string | null; @@ -81,7 +79,6 @@ export declare namespace PromptLogRequest { inputs?: Record | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; user?: string | null; diff --git a/src/serialization/resources/prompts/client/requests/PromptLogUpdateRequest.ts b/src/serialization/resources/prompts/client/requests/PromptLogUpdateRequest.ts index 9c96879b..8b909231 100644 --- a/src/serialization/resources/prompts/client/requests/PromptLogUpdateRequest.ts +++ b/src/serialization/resources/prompts/client/requests/PromptLogUpdateRequest.ts @@ -7,7 +7,6 @@ import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; import { ChatMessage } from "../../../../types/ChatMessage"; import { PromptLogUpdateRequestToolChoice } from "../../types/PromptLogUpdateRequestToolChoice"; -import { LogStatus } from "../../../../types/LogStatus"; export const PromptLogUpdateRequest: core.serialization.Schema< serializers.PromptLogUpdateRequest.Raw, @@ -40,7 +39,6 @@ export const PromptLogUpdateRequest: core.serialization.Schema< metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), startTime: core.serialization.property("start_time", core.serialization.date().optional()), endTime: core.serialization.property("end_time", core.serialization.date().optional()), - logStatus: core.serialization.property("log_status", LogStatus.optional()), }); export declare namespace PromptLogUpdateRequest { @@ -66,6 +64,5 @@ export declare namespace PromptLogUpdateRequest { metadata?: Record | null; start_time?: string | null; end_time?: string | null; - log_status?: LogStatus.Raw | null; } } diff --git a/src/serialization/resources/prompts/client/requests/PromptsCallRequest.ts b/src/serialization/resources/prompts/client/requests/PromptsCallRequest.ts index 33e757a3..64eabb12 100644 --- a/src/serialization/resources/prompts/client/requests/PromptsCallRequest.ts +++ b/src/serialization/resources/prompts/client/requests/PromptsCallRequest.ts @@ -7,8 +7,7 @@ import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; import { ChatMessage } from "../../../../types/ChatMessage"; import { PromptsCallRequestToolChoice } from "../../types/PromptsCallRequestToolChoice"; -import { PromptKernelRequest } from "../../../../types/PromptKernelRequest"; -import { LogStatus } from "../../../../types/LogStatus"; +import { PromptsCallRequestPrompt } from "../../types/PromptsCallRequestPrompt"; import { ProviderApiKeys } from "../../../../types/ProviderApiKeys"; export const PromptsCallRequest: core.serialization.Schema< @@ -19,13 +18,12 @@ export const PromptsCallRequest: core.serialization.Schema< id: core.serialization.string().optional(), messages: core.serialization.list(ChatMessage).optional(), toolChoice: core.serialization.property("tool_choice", PromptsCallRequestToolChoice.optional()), - prompt: PromptKernelRequest.optional(), + prompt: PromptsCallRequestPrompt.optional(), inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), startTime: core.serialization.property("start_time", core.serialization.date().optional()), endTime: core.serialization.property("end_time", core.serialization.date().optional()), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), user: core.serialization.string().optional(), @@ -45,13 +43,12 @@ export declare namespace PromptsCallRequest { id?: string | null; messages?: ChatMessage.Raw[] | null; tool_choice?: PromptsCallRequestToolChoice.Raw | null; - prompt?: PromptKernelRequest.Raw | null; + prompt?: PromptsCallRequestPrompt.Raw | null; inputs?: Record | null; source?: string | null; metadata?: Record | null; start_time?: string | null; end_time?: string | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; user?: string | null; diff --git a/src/serialization/resources/prompts/client/requests/PromptsCallStreamRequest.ts b/src/serialization/resources/prompts/client/requests/PromptsCallStreamRequest.ts index 905d9169..fa406aeb 100644 --- a/src/serialization/resources/prompts/client/requests/PromptsCallStreamRequest.ts +++ b/src/serialization/resources/prompts/client/requests/PromptsCallStreamRequest.ts @@ -7,8 +7,7 @@ import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; import { ChatMessage } from "../../../../types/ChatMessage"; import { PromptsCallStreamRequestToolChoice } from "../../types/PromptsCallStreamRequestToolChoice"; -import { PromptKernelRequest } from "../../../../types/PromptKernelRequest"; -import { LogStatus } from "../../../../types/LogStatus"; +import { PromptsCallStreamRequestPrompt } from "../../types/PromptsCallStreamRequestPrompt"; import { ProviderApiKeys } from "../../../../types/ProviderApiKeys"; export const PromptsCallStreamRequest: core.serialization.Schema< @@ -19,13 +18,12 @@ export const PromptsCallStreamRequest: core.serialization.Schema< id: core.serialization.string().optional(), messages: core.serialization.list(ChatMessage).optional(), toolChoice: core.serialization.property("tool_choice", PromptsCallStreamRequestToolChoice.optional()), - prompt: PromptKernelRequest.optional(), + prompt: PromptsCallStreamRequestPrompt.optional(), inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), startTime: core.serialization.property("start_time", core.serialization.date().optional()), endTime: core.serialization.property("end_time", core.serialization.date().optional()), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), user: core.serialization.string().optional(), @@ -48,13 +46,12 @@ export declare namespace PromptsCallStreamRequest { id?: string | null; messages?: ChatMessage.Raw[] | null; tool_choice?: PromptsCallStreamRequestToolChoice.Raw | null; - prompt?: PromptKernelRequest.Raw | null; + prompt?: PromptsCallStreamRequestPrompt.Raw | null; inputs?: Record | null; source?: string | null; metadata?: Record | null; start_time?: string | null; end_time?: string | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; user?: string | null; diff --git a/src/serialization/resources/prompts/types/PromptLogRequestPrompt.ts b/src/serialization/resources/prompts/types/PromptLogRequestPrompt.ts new file mode 100644 index 00000000..792f5b7d --- /dev/null +++ b/src/serialization/resources/prompts/types/PromptLogRequestPrompt.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Humanloop from "../../../../api/index"; +import * as core from "../../../../core"; +import { PromptKernelRequest } from "../../../types/PromptKernelRequest"; + +export const PromptLogRequestPrompt: core.serialization.Schema< + serializers.PromptLogRequestPrompt.Raw, + Humanloop.PromptLogRequestPrompt +> = core.serialization.undiscriminatedUnion([PromptKernelRequest, core.serialization.string()]); + +export declare namespace PromptLogRequestPrompt { + export type Raw = PromptKernelRequest.Raw | string; +} diff --git a/src/serialization/resources/prompts/types/PromptsCallRequestPrompt.ts b/src/serialization/resources/prompts/types/PromptsCallRequestPrompt.ts new file mode 100644 index 00000000..1053bfaf --- /dev/null +++ b/src/serialization/resources/prompts/types/PromptsCallRequestPrompt.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Humanloop from "../../../../api/index"; +import * as core from "../../../../core"; +import { PromptKernelRequest } from "../../../types/PromptKernelRequest"; + +export const PromptsCallRequestPrompt: core.serialization.Schema< + serializers.PromptsCallRequestPrompt.Raw, + Humanloop.PromptsCallRequestPrompt +> = core.serialization.undiscriminatedUnion([PromptKernelRequest, core.serialization.string()]); + +export declare namespace PromptsCallRequestPrompt { + export type Raw = PromptKernelRequest.Raw | string; +} diff --git a/src/serialization/resources/prompts/types/PromptsCallStreamRequestPrompt.ts b/src/serialization/resources/prompts/types/PromptsCallStreamRequestPrompt.ts new file mode 100644 index 00000000..3c58225f --- /dev/null +++ b/src/serialization/resources/prompts/types/PromptsCallStreamRequestPrompt.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Humanloop from "../../../../api/index"; +import * as core from "../../../../core"; +import { PromptKernelRequest } from "../../../types/PromptKernelRequest"; + +export const PromptsCallStreamRequestPrompt: core.serialization.Schema< + serializers.PromptsCallStreamRequestPrompt.Raw, + Humanloop.PromptsCallStreamRequestPrompt +> = core.serialization.undiscriminatedUnion([PromptKernelRequest, core.serialization.string()]); + +export declare namespace PromptsCallStreamRequestPrompt { + export type Raw = PromptKernelRequest.Raw | string; +} diff --git a/src/serialization/resources/prompts/types/index.ts b/src/serialization/resources/prompts/types/index.ts index 8265b2f3..f8045c03 100644 --- a/src/serialization/resources/prompts/types/index.ts +++ b/src/serialization/resources/prompts/types/index.ts @@ -1,7 +1,10 @@ export * from "./PromptLogRequestToolChoice"; +export * from "./PromptLogRequestPrompt"; export * from "./PromptLogUpdateRequestToolChoice"; export * from "./PromptsCallStreamRequestToolChoice"; +export * from "./PromptsCallStreamRequestPrompt"; export * from "./PromptsCallRequestToolChoice"; +export * from "./PromptsCallRequestPrompt"; export * from "./PromptRequestTemplate"; export * from "./PromptRequestStop"; export * from "./PromptRequestReasoningEffort"; diff --git a/src/serialization/resources/tools/client/requests/ToolCallRequest.ts b/src/serialization/resources/tools/client/requests/ToolCallRequest.ts index 1c19f6ae..9cd8af0b 100644 --- a/src/serialization/resources/tools/client/requests/ToolCallRequest.ts +++ b/src/serialization/resources/tools/client/requests/ToolCallRequest.ts @@ -6,7 +6,6 @@ import * as serializers from "../../../../index"; import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; import { ToolKernelRequest } from "../../../../types/ToolKernelRequest"; -import { LogStatus } from "../../../../types/LogStatus"; export const ToolCallRequest: core.serialization.Schema< serializers.ToolCallRequest.Raw, @@ -20,7 +19,6 @@ export const ToolCallRequest: core.serialization.Schema< metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), startTime: core.serialization.property("start_time", core.serialization.date().optional()), endTime: core.serialization.property("end_time", core.serialization.date().optional()), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), user: core.serialization.string().optional(), @@ -39,7 +37,6 @@ export declare namespace ToolCallRequest { metadata?: Record | null; start_time?: string | null; end_time?: string | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; user?: string | null; diff --git a/src/serialization/resources/tools/client/requests/ToolLogRequest.ts b/src/serialization/resources/tools/client/requests/ToolLogRequest.ts index 65f07074..0bbed3cd 100644 --- a/src/serialization/resources/tools/client/requests/ToolLogRequest.ts +++ b/src/serialization/resources/tools/client/requests/ToolLogRequest.ts @@ -6,7 +6,6 @@ import * as serializers from "../../../../index"; import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; import { ToolKernelRequest } from "../../../../types/ToolKernelRequest"; -import { LogStatus } from "../../../../types/LogStatus"; export const ToolLogRequest: core.serialization.Schema< serializers.ToolLogRequest.Raw, @@ -33,7 +32,6 @@ export const ToolLogRequest: core.serialization.Schema< inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), user: core.serialization.string().optional(), @@ -59,7 +57,6 @@ export declare namespace ToolLogRequest { inputs?: Record | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; user?: string | null; diff --git a/src/serialization/resources/tools/client/requests/ToolLogUpdateRequest.ts b/src/serialization/resources/tools/client/requests/ToolLogUpdateRequest.ts index 255f9ec8..db500c4f 100644 --- a/src/serialization/resources/tools/client/requests/ToolLogUpdateRequest.ts +++ b/src/serialization/resources/tools/client/requests/ToolLogUpdateRequest.ts @@ -5,7 +5,6 @@ import * as serializers from "../../../../index"; import * as Humanloop from "../../../../../api/index"; import * as core from "../../../../../core"; -import { LogStatus } from "../../../../types/LogStatus"; export const ToolLogUpdateRequest: core.serialization.Schema< serializers.ToolLogUpdateRequest.Raw, @@ -29,7 +28,6 @@ export const ToolLogUpdateRequest: core.serialization.Schema< metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), startTime: core.serialization.property("start_time", core.serialization.date().optional()), endTime: core.serialization.property("end_time", core.serialization.date().optional()), - logStatus: core.serialization.property("log_status", LogStatus.optional()), }); export declare namespace ToolLogUpdateRequest { @@ -46,6 +44,5 @@ export declare namespace ToolLogUpdateRequest { metadata?: Record | null; start_time?: string | null; end_time?: string | null; - log_status?: LogStatus.Raw | null; } } diff --git a/src/serialization/types/AgentLogResponse.ts b/src/serialization/types/AgentLogResponse.ts index 6146f45d..388ea66f 100644 --- a/src/serialization/types/AgentLogResponse.ts +++ b/src/serialization/types/AgentLogResponse.ts @@ -7,7 +7,6 @@ import * as Humanloop from "../../api/index"; import * as core from "../../core"; import { ChatMessage } from "./ChatMessage"; import { AgentLogResponseToolChoice } from "./AgentLogResponseToolChoice"; -import { LogStatus } from "./LogStatus"; export const AgentLogResponse: core.serialization.ObjectSchema< serializers.AgentLogResponse.Raw, @@ -41,7 +40,6 @@ export const AgentLogResponse: core.serialization.ObjectSchema< inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), batches: core.serialization.list(core.serialization.string()).optional(), @@ -86,7 +84,6 @@ export declare namespace AgentLogResponse { inputs?: Record | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; batches?: string[] | null; diff --git a/src/serialization/types/AgentResponse.ts b/src/serialization/types/AgentResponse.ts index f9b96ccf..f99e69dc 100644 --- a/src/serialization/types/AgentResponse.ts +++ b/src/serialization/types/AgentResponse.ts @@ -68,6 +68,7 @@ export const AgentResponse: core.serialization.ObjectSchema | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; parent_id?: string | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; diff --git a/src/serialization/types/EventType.ts b/src/serialization/types/EventType.ts index b7d38e57..94a17861 100644 --- a/src/serialization/types/EventType.ts +++ b/src/serialization/types/EventType.ts @@ -12,6 +12,7 @@ export const EventType: core.serialization.Schema = +export const FileSortBy: core.serialization.Schema = core.serialization.enum_(["created_at", "updated_at", "name"]); -export declare namespace ProjectSortBy { +export declare namespace FileSortBy { export type Raw = "created_at" | "updated_at" | "name"; } diff --git a/src/serialization/types/PopulateTemplateResponse.ts b/src/serialization/types/PopulateTemplateResponse.ts index 89574558..ceb42436 100644 --- a/src/serialization/types/PopulateTemplateResponse.ts +++ b/src/serialization/types/PopulateTemplateResponse.ts @@ -72,6 +72,7 @@ export const PopulateTemplateResponse: core.serialization.ObjectSchema< "evaluator_aggregates", core.serialization.list(EvaluatorAggregate).optional(), ), + rawFileContent: core.serialization.property("raw_file_content", core.serialization.string().optional()), populatedTemplate: core.serialization.property( "populated_template", PopulateTemplateResponsePopulatedTemplate.optional(), @@ -120,6 +121,7 @@ export declare namespace PopulateTemplateResponse { inputs: InputResponse.Raw[]; evaluators?: serializers.MonitoringEvaluatorResponse.Raw[] | null; evaluator_aggregates?: EvaluatorAggregate.Raw[] | null; + raw_file_content?: string | null; populated_template?: PopulateTemplateResponsePopulatedTemplate.Raw | null; } } diff --git a/src/serialization/types/PromptCallResponse.ts b/src/serialization/types/PromptCallResponse.ts index b5cbe7ee..d9006b10 100644 --- a/src/serialization/types/PromptCallResponse.ts +++ b/src/serialization/types/PromptCallResponse.ts @@ -7,7 +7,6 @@ import * as Humanloop from "../../api/index"; import * as core from "../../core"; import { ChatMessage } from "./ChatMessage"; import { PromptCallResponseToolChoice } from "./PromptCallResponseToolChoice"; -import { LogStatus } from "./LogStatus"; import { PromptCallLogResponse } from "./PromptCallLogResponse"; export const PromptCallResponse: core.serialization.ObjectSchema< @@ -22,7 +21,6 @@ export const PromptCallResponse: core.serialization.ObjectSchema< inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), user: core.serialization.string().optional(), @@ -44,7 +42,6 @@ export declare namespace PromptCallResponse { inputs?: Record | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; user?: string | null; diff --git a/src/serialization/types/PromptLogResponse.ts b/src/serialization/types/PromptLogResponse.ts index 1ab7c166..be541ad5 100644 --- a/src/serialization/types/PromptLogResponse.ts +++ b/src/serialization/types/PromptLogResponse.ts @@ -7,7 +7,6 @@ import * as Humanloop from "../../api/index"; import * as core from "../../core"; import { ChatMessage } from "./ChatMessage"; import { PromptLogResponseToolChoice } from "./PromptLogResponseToolChoice"; -import { LogStatus } from "./LogStatus"; export const PromptLogResponse: core.serialization.ObjectSchema< serializers.PromptLogResponse.Raw, @@ -41,7 +40,6 @@ export const PromptLogResponse: core.serialization.ObjectSchema< inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), batches: core.serialization.list(core.serialization.string()).optional(), @@ -86,7 +84,6 @@ export declare namespace PromptLogResponse { inputs?: Record | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; batches?: string[] | null; diff --git a/src/serialization/types/PromptResponse.ts b/src/serialization/types/PromptResponse.ts index 04764187..481fa317 100644 --- a/src/serialization/types/PromptResponse.ts +++ b/src/serialization/types/PromptResponse.ts @@ -69,6 +69,7 @@ export const PromptResponse: core.serialization.ObjectSchema = core.serialization.object({ openai: core.serialization.string().optional(), - ai21: core.serialization.string().optional(), mock: core.serialization.string().optional(), anthropic: core.serialization.string().optional(), deepseek: core.serialization.string().optional(), @@ -19,12 +18,12 @@ export const ProviderApiKeys: core.serialization.ObjectSchema< cohere: core.serialization.string().optional(), openaiAzure: core.serialization.property("openai_azure", core.serialization.string().optional()), openaiAzureEndpoint: core.serialization.property("openai_azure_endpoint", core.serialization.string().optional()), + google: core.serialization.string().optional(), }); export declare namespace ProviderApiKeys { export interface Raw { openai?: string | null; - ai21?: string | null; mock?: string | null; anthropic?: string | null; deepseek?: string | null; @@ -32,5 +31,6 @@ export declare namespace ProviderApiKeys { cohere?: string | null; openai_azure?: string | null; openai_azure_endpoint?: string | null; + google?: string | null; } } diff --git a/src/serialization/types/ToolCallResponse.ts b/src/serialization/types/ToolCallResponse.ts index ff6eaa55..d37c5509 100644 --- a/src/serialization/types/ToolCallResponse.ts +++ b/src/serialization/types/ToolCallResponse.ts @@ -5,7 +5,6 @@ import * as serializers from "../index"; import * as Humanloop from "../../api/index"; import * as core from "../../core"; -import { LogStatus } from "./LogStatus"; export const ToolCallResponse: core.serialization.ObjectSchema< serializers.ToolCallResponse.Raw, @@ -30,7 +29,6 @@ export const ToolCallResponse: core.serialization.ObjectSchema< inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), batches: core.serialization.list(core.serialization.string()).optional(), @@ -66,7 +64,6 @@ export declare namespace ToolCallResponse { inputs?: Record | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; batches?: string[] | null; diff --git a/src/serialization/types/ToolLogResponse.ts b/src/serialization/types/ToolLogResponse.ts index 53d2d62c..ab12a3c7 100644 --- a/src/serialization/types/ToolLogResponse.ts +++ b/src/serialization/types/ToolLogResponse.ts @@ -5,7 +5,6 @@ import * as serializers from "../index"; import * as Humanloop from "../../api/index"; import * as core from "../../core"; -import { LogStatus } from "./LogStatus"; import { ChatMessage } from "./ChatMessage"; export const ToolLogResponse: core.serialization.ObjectSchema< @@ -30,7 +29,6 @@ export const ToolLogResponse: core.serialization.ObjectSchema< inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), source: core.serialization.string().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - logStatus: core.serialization.property("log_status", LogStatus.optional()), sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()), traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()), batches: core.serialization.list(core.serialization.string()).optional(), @@ -67,7 +65,6 @@ export declare namespace ToolLogResponse { inputs?: Record | null; source?: string | null; metadata?: Record | null; - log_status?: LogStatus.Raw | null; source_datapoint_id?: string | null; trace_parent_id?: string | null; batches?: string[] | null; diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 50b0fe8b..11a2bba7 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -80,6 +80,7 @@ export * from "./FileEnvironmentVariableRequest"; export * from "./FileId"; export * from "./FilePath"; export * from "./FileRequest"; +export * from "./FileSortBy"; export * from "./FileType"; export * from "./FlowKernelRequest"; export * from "./FlowLogResponse"; @@ -134,7 +135,6 @@ export * from "./PopulateTemplateResponseStop"; export * from "./PopulateTemplateResponseReasoningEffort"; export * from "./PopulateTemplateResponsePopulatedTemplate"; export * from "./PopulateTemplateResponse"; -export * from "./ProjectSortBy"; export * from "./PromptCallLogResponse"; export * from "./PromptCallResponseToolChoice"; export * from "./PromptCallResponse"; diff --git a/src/version.ts b/src/version.ts index e0c1405e..1ffdcfa1 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "0.8.21-beta1"; +export const SDK_VERSION = "0.8.21-beta2"; diff --git a/tests/integration/decorators.test.ts b/tests/integration/decorators.test.ts deleted file mode 100644 index 0cddc948..00000000 --- a/tests/integration/decorators.test.ts +++ /dev/null @@ -1,502 +0,0 @@ -import OpenAI from "openai"; - -import { PromptRequest } from "../../src/api"; -import { HumanloopRuntimeError } from "../../src/error"; -import { - CleanupResources, - TestPrompt, - TestSetup, - cleanupTestEnvironment, - setupTestEnvironment, -} from "./fixtures"; - -// Long timeout per test -jest.setTimeout(30 * 1000); - -// process.stdout.moveCursor is undefined in jest; mocking it since STDOUT is not relevant -if (typeof process.stdout.moveCursor !== "function") { - process.stdout.moveCursor = ( - dx: number, - dy: number, - callback?: () => void, - ): boolean => { - if (callback) callback(); - return true; - }; -} - -/** - * Creates a test prompt in the specified test environment - */ -async function createTestPrompt( - setup: TestSetup, - name: string = "test_prompt", - customConfig?: Partial, -): Promise { - const promptPath = `${setup.sdkTestDir.path}/${name}`; - const config = customConfig - ? { ...setup.testPromptConfig, ...customConfig } - : setup.testPromptConfig; - - const promptResponse = await setup.humanloopClient.prompts.upsert({ - path: promptPath, - ...config, - }); - - return { - id: promptResponse.id, - path: promptPath, - response: promptResponse, - }; -} - -/** - * Creates a base function for LLM calls that can be decorated - */ -function createBaseLLMFunction(setup: TestSetup, model: string = "gpt-4o-mini") { - return async (question: string): Promise => { - const openaiClient = new OpenAI({ apiKey: setup.openaiApiKey }); - - const response = await openaiClient.chat.completions.create({ - model: model, - messages: [{ role: "user", content: question }], - }); - - return response.choices[0].message.content || ""; - }; -} - -/** - * Applies the prompt decorator to a function and tests it - */ -async function testPromptDecorator( - setup: TestSetup, - prompt: TestPrompt, - input: string = "What is the capital of the France?", - expectedSubstring: string = "paris", -): Promise { - // Create the base function - const myPromptBase = createBaseLLMFunction(setup); - - // Apply the higher-order function instead of decorator - const myPrompt = setup.humanloopClient.prompt({ - path: prompt.path, - callable: myPromptBase, - }); - - // Call the decorated function - const result = await myPrompt(input); - if (result) { - expect(result.toLowerCase()).toContain(expectedSubstring.toLowerCase()); - } else { - throw new Error("Expected result to be defined"); - } - - // Wait for 5 seconds for the log to be created - await new Promise((resolve) => setTimeout(resolve, 5000)); -} - -describe("decorators", () => { - it("should create a prompt log when using the decorator", async () => { - let testSetup: TestSetup | undefined = undefined; - let testPrompt: TestPrompt | undefined = undefined; - - try { - testSetup = await setupTestEnvironment("test_prompt_call_decorator"); - // Create test prompt - testPrompt = await createTestPrompt(testSetup); - - // Check initial version count - const promptVersionsResponse = - await testSetup.humanloopClient.prompts.listVersions(testPrompt.id); - expect(promptVersionsResponse.records.length).toBe(1); - - // Test the prompt decorator - await testPromptDecorator(testSetup, testPrompt); - - // Verify a new version was created - const updatedPromptVersionsResponse = - await testSetup.humanloopClient.prompts.listVersions(testPrompt.id); - expect(updatedPromptVersionsResponse.records.length).toBe(2); - - // Verify logs were created - const logsResponse = await testSetup.humanloopClient.logs.list({ - fileId: testPrompt.id, - page: 1, - size: 50, - }); - expect(logsResponse.data.length).toBe(1); - } catch (error) { - // Make sure to clean up if the test fails - const cleanupResources: CleanupResources[] = []; - if (testPrompt) { - cleanupResources.push({ - type: "prompt", - id: testPrompt.id, - }); - } - if (testSetup) { - await cleanupTestEnvironment(testSetup, cleanupResources); - } - throw error; - } - }); - - it("should create logs with proper tracing when using prompt in flow decorator", async () => { - let testSetup: TestSetup | undefined = undefined; - let flowId: string | null = null; - let promptId: string | null = null; - - try { - // Create test flow and prompt paths - testSetup = await setupTestEnvironment("test_flow_decorator"); - const flowPath = `${testSetup.sdkTestDir.path}/test_flow`; - const promptPath = `${testSetup.sdkTestDir.path}/test_prompt`; - - // Create the prompt - const promptResponse = await testSetup.humanloopClient.prompts.upsert({ - path: promptPath, - provider: "openai", - model: "gpt-4o-mini", - temperature: 0, - }); - const promptId = promptResponse.id; - - // Define the flow callable function with the correct type signature - const flowCallable = async (question: { - question: string; - }): Promise => { - const response = await testSetup!.humanloopClient.prompts.call({ - path: promptPath, - messages: [{ role: "user", content: question.question }], - providerApiKeys: { openai: testSetup!.openaiApiKey }, - }); - - const output = response.logs?.[0]?.output; - expect(output).not.toBeNull(); - return output || ""; - }; - - // Apply the flow decorator - const myFlow = testSetup.humanloopClient.flow({ - path: flowPath, - callable: flowCallable, - }); - - // Call the flow with the expected input format - const result = await myFlow({ - question: "What is the capital of the France?", - }); - expect(result?.toLowerCase()).toContain("paris"); - - // Wait for logs to be created - await new Promise((resolve) => setTimeout(resolve, 5000)); - - // Verify prompt logs - const promptRetrieveResponse = - await testSetup.humanloopClient.files.retrieveByPath({ - path: promptPath, - }); - expect(promptRetrieveResponse).not.toBeNull(); - const promptLogsResponse = await testSetup.humanloopClient.logs.list({ - fileId: promptRetrieveResponse.id, - page: 1, - size: 50, - }); - expect(promptLogsResponse.data.length).toBe(1); - const promptLog = promptLogsResponse.data[0]; - - // Verify flow logs - const flowRetrieveResponse = - await testSetup.humanloopClient.files.retrieveByPath({ - path: flowPath, - }); - expect(flowRetrieveResponse).not.toBeNull(); - flowId = flowRetrieveResponse.id; - const flowLogsResponse = await testSetup.humanloopClient.logs.list({ - fileId: flowRetrieveResponse.id, - page: 1, - size: 50, - }); - expect(flowLogsResponse.data.length).toBe(1); - const flowLog = flowLogsResponse.data[0]; - - // Verify tracing between logs - expect(promptLog.traceParentId).toBe(flowLog.id); - } finally { - // Clean up resources - const cleanupResources: CleanupResources[] = []; - if (flowId) { - cleanupResources.push({ - type: "flow", - id: flowId, - }); - } - if (promptId) { - cleanupResources.push({ - type: "prompt", - id: promptId, - }); - } - if (testSetup) { - await cleanupTestEnvironment(testSetup, cleanupResources); - } - } - }); - - it("should log exceptions when using the flow decorator", async () => { - let testSetup: TestSetup | undefined = undefined; - let flowId: string | null = null; - - try { - // Create test flow path - testSetup = await setupTestEnvironment("test_flow_decorator"); - const flowPath = `${testSetup.sdkTestDir.path}/test_flow_log_error`; - - // Define a flow callable that throws an error - const flowCallable = async ({ - question, - }: { - question: string; - }): Promise => { - throw new Error("This is a test exception"); - }; - - // Apply the flow decorator - const myFlow = testSetup.humanloopClient.flow({ - path: flowPath, - callable: flowCallable, - }); - - // Call the flow and expect it to throw - try { - await myFlow({ question: "test" }); - // If we get here, the test should fail - throw new Error("Expected flow to throw an error but it didn't"); - } catch (error) { - // Expected error - expect(error).toBeDefined(); - } - - // Wait for logs to be created - await new Promise((resolve) => setTimeout(resolve, 5000)); - - // Verify flow logs - const flowRetrieveResponse = - await testSetup.humanloopClient.files.retrieveByPath({ - path: flowPath, - }); - expect(flowRetrieveResponse).not.toBeNull(); - flowId = flowRetrieveResponse.id; - - const flowLogsResponse = await testSetup.humanloopClient.logs.list({ - fileId: flowRetrieveResponse.id, - page: 1, - size: 50, - }); - expect(flowLogsResponse.data.length).toBe(1); - - const flowLog = flowLogsResponse.data[0]; - expect(flowLog.error).not.toBeUndefined(); - expect(flowLog.output).toBeUndefined(); - } finally { - if (testSetup) { - await cleanupTestEnvironment( - testSetup, - flowId - ? [ - { - type: "flow", - id: flowId, - }, - ] - : [], - ); - } - } - }); - - it("should populate outputMessage when flow returns chat message format", async () => { - let testSetup: TestSetup | undefined = undefined; - let flowId: string | null = null; - - try { - // Create test flow path - testSetup = await setupTestEnvironment("test_flow_decorator"); - const flowPath = `${testSetup.sdkTestDir.path}/test_flow_log_output_message`; - - // Define a flow callable that returns a chat message format - const flowCallable = async ({ question }: { question: string }) => { - return { - role: "user", - content: question, - }; - }; - - // Apply the flow decorator - const myFlow = testSetup.humanloopClient.flow({ - path: flowPath, - callable: flowCallable, - }); - - // Call the flow and check the returned message - const result = await myFlow({ - question: "What is the capital of the France?", - }); - expect(result?.content.toLowerCase()).toContain("france"); - - // Wait for logs to be created - await new Promise((resolve) => setTimeout(resolve, 5000)); - - // Verify flow logs - const flowRetrieveResponse = - await testSetup.humanloopClient.files.retrieveByPath({ - path: flowPath, - }); - expect(flowRetrieveResponse).not.toBeNull(); - flowId = flowRetrieveResponse.id; - - const flowLogsResponse = await testSetup.humanloopClient.logs.list({ - fileId: flowRetrieveResponse.id, - page: 1, - size: 50, - }); - expect(flowLogsResponse.data.length).toBe(1); - - const flowLog = flowLogsResponse.data[0]; - expect(flowLog.outputMessage).not.toBeUndefined(); - expect(flowLog.output).toBeUndefined(); - expect(flowLog.error).toBeUndefined(); - } finally { - // Clean up resources - if (flowId) { - await testSetup!.humanloopClient.flows.delete(flowId); - } - if (testSetup) { - await cleanupTestEnvironment( - testSetup, - flowId - ? [ - { - type: "flow", - id: flowId, - }, - ] - : [], - ); - } - } - }); - - it("should run evaluations on a flow decorator", async () => { - let testSetup: TestSetup | undefined = undefined; - let flowId: string | null = null; - - try { - // Use fixtures from testSetup - testSetup = await setupTestEnvironment("eval-flow-decorator"); - if (!testSetup.evalDataset || !testSetup.outputNotNullEvaluator) { - throw new Error("Required fixtures are not initialized"); - } - - // Create test flow path - const flowPath = `${testSetup.sdkTestDir.path}/test_flow_evaluate`; - - // Define flow decorated function - const myFlow = testSetup.humanloopClient.flow({ - path: flowPath, - callable: async (inputs: { question: string }) => { - return "paris"; - }, - }); - - // Run evaluation on the flow - await testSetup.humanloopClient.evaluations.run({ - name: "Evaluate Flow Decorator", - file: { - path: flowPath, - callable: myFlow, - type: "flow", - }, - dataset: { - path: testSetup.evalDataset.path, - }, - evaluators: [ - { - path: testSetup.outputNotNullEvaluator.path, - }, - ], - }); - - // Get the flow ID for cleanup - const flowResponse = await testSetup.humanloopClient.files.retrieveByPath({ - path: flowPath, - }); - flowId = flowResponse.id; - } finally { - if (testSetup) { - await cleanupTestEnvironment( - testSetup, - flowId - ? [ - { - type: "flow", - id: flowId, - }, - ] - : [], - ); - } - } - }); - - it("should throw error when using non-existent file ID instead of path", async () => { - // Use fixtures from testSetup - let testSetup: TestSetup | undefined = undefined; - try { - testSetup = await setupTestEnvironment("eval-flow-decorator"); - if (!testSetup.evalDataset || !testSetup.outputNotNullEvaluator) { - throw new Error("Required fixtures are not initialized"); - } - // Define a simple callable - const simpleCallable = (x: any) => x; - - // Expect the evaluation to throw an error with a non-existent file ID - try { - await testSetup.humanloopClient.evaluations.run({ - name: "Evaluate Flow Decorator", - file: { - id: "non-existent-file-id", - type: "flow", - version: { - attributes: { - foo: "bar", - }, - }, - callable: simpleCallable, - }, - dataset: { - path: testSetup.evalDataset.path, - }, - evaluators: [ - { - path: testSetup.outputNotNullEvaluator.path, - }, - ], - }); - - // If we get here, the test should fail - throw new Error("Expected HumanloopRuntimeError but none was thrown"); - } catch (error) { - expect(error).toBeInstanceOf(HumanloopRuntimeError); - expect((error as HumanloopRuntimeError).message).toContain( - "File does not exist on Humanloop. Please provide a `file.path` and a version to create a new version.", - ); - } - } finally { - if (testSetup) { - await cleanupTestEnvironment(testSetup); - } - } - }); -}); diff --git a/tests/integration/evals.test.ts b/tests/integration/evals.test.ts deleted file mode 100644 index 17d8a399..00000000 --- a/tests/integration/evals.test.ts +++ /dev/null @@ -1,577 +0,0 @@ -import { FlowResponse } from "../../src/api"; -import { HumanloopRuntimeError } from "../../src/error"; -import { HumanloopClient } from "../../src/humanloop.client"; -import { - cleanupTestEnvironment, - readEnvironment, - setupTestEnvironment, -} from "./fixtures"; - -// process.stdout.moveCursor is undefined in jest; mocking it since STDOUT is not relevant -if (typeof process.stdout.moveCursor !== "function") { - process.stdout.moveCursor = ( - dx: number, - dy: number, - callback?: () => void, - ): boolean => { - if (callback) callback(); - return true; - }; -} - -// Long timeout per test; evals might take a while to run -jest.setTimeout(30 * 1000); - -interface TestIdentifiers { - id: string; - path: string; -} - -interface TestSetup { - sdkTestDir: TestIdentifiers; - outputNotNullEvaluator: TestIdentifiers; - evalDataset: TestIdentifiers; - evalPrompt: TestIdentifiers; - stagingEnvironmentId: string; -} - -describe("Evals", () => { - let humanloopClient: HumanloopClient; - let openaiApiKey: string; - - beforeAll(async () => { - readEnvironment(); - if (!process.env.HUMANLOOP_API_KEY) { - throw new Error("HUMANLOOP_API_KEY is not set"); - } - if (!process.env.OPENAI_API_KEY) { - throw new Error("OPENAI_API_KEY is not set for integration tests"); - } - openaiApiKey = process.env.OPENAI_API_KEY; - humanloopClient = new HumanloopClient({ - apiKey: process.env.HUMANLOOP_API_KEY, - }); - }); - - it("should be able to import HumanloopClient", async () => { - const client = new HumanloopClient({ apiKey: process.env.HUMANLOOP_API_KEY }); - expect(client).toBeDefined(); - }); - - it("should run evaluation on online files", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("online_files"); - - try { - await humanloopClient.evaluations.run({ - file: { - path: setup.evalPrompt.path, - type: "prompt", - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - - // Wait for evaluation to complete - await new Promise((resolve) => setTimeout(resolve, 5000)); - - const evalResponse = await humanloopClient.evaluations.list({ - fileId: setup.evalPrompt.id, - }); - expect(evalResponse.data.length).toBe(1); - - const evaluationId = evalResponse.data[0].id; - const runsResponse = - await humanloopClient.evaluations.listRunsForEvaluation(evaluationId); - expect(runsResponse.runs[0].status).toBe("completed"); - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup); - } - }); - - it("should run evaluation with version_id", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("version_id"); - - try { - // Create a new prompt version - const newPromptVersionResponse = await humanloopClient.prompts.upsert({ - path: setup.evalPrompt.path, - provider: "openai", - model: "gpt-4o-mini", - temperature: 0, - template: [ - { - role: "system", - content: - "You are a helpful assistant. You must answer the user's question truthfully and at the level of a 5th grader.", - }, - { - role: "user", - content: "{{question}}", - }, - ], - }); - - // Run evaluation with version_id - await humanloopClient.evaluations.run({ - file: { - id: newPromptVersionResponse.id, - versionId: newPromptVersionResponse.versionId, - type: "prompt", - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - - // Verify evaluation - const evaluationsResponse = await humanloopClient.evaluations.list({ - fileId: newPromptVersionResponse.id, - }); - expect(evaluationsResponse.data.length).toBe(1); - - const evaluationId = evaluationsResponse.data[0].id; - const runsResponse = - await humanloopClient.evaluations.listRunsForEvaluation(evaluationId); - expect(runsResponse.runs[0].status).toBe("completed"); - if (runsResponse.runs[0].version) { - expect(runsResponse.runs[0].version.versionId).toBe( - newPromptVersionResponse.versionId, - ); - } - - // Verify version is not the default - const response = await humanloopClient.prompts.get( - newPromptVersionResponse.id, - ); - expect(response.versionId).not.toBe(newPromptVersionResponse.versionId); - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup); - } - }); - - it("should run evaluation with environment", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("environment"); - - try { - // Create a new prompt version and deploy to staging - const newPromptVersionResponse = await humanloopClient.prompts.upsert({ - path: setup.evalPrompt.path, - provider: "openai", - model: "gpt-4o-mini", - temperature: 0, - template: [ - { - role: "system", - content: - "You are a helpful assistant. You must answer the user's question truthfully and at the level of a 5th grader.", - }, - { - role: "user", - content: "{{question}}", - }, - ], - }); - - await humanloopClient.prompts.setDeployment( - newPromptVersionResponse.id, - setup.stagingEnvironmentId, - { - versionId: newPromptVersionResponse.versionId, - }, - ); - - // Run evaluation with environment - await humanloopClient.evaluations.run({ - file: { - id: newPromptVersionResponse.id, - type: "prompt", - environment: "staging", - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - - // Verify evaluation - const evaluationsResponse = await humanloopClient.evaluations.list({ - fileId: newPromptVersionResponse.id, - }); - expect(evaluationsResponse.data.length).toBe(1); - - const evaluationId = evaluationsResponse.data[0].id; - const runsResponse = - await humanloopClient.evaluations.listRunsForEvaluation(evaluationId); - expect(runsResponse.runs[0].status).toBe("completed"); - if (runsResponse.runs[0].version) { - expect(runsResponse.runs[0].version.versionId).toBe( - newPromptVersionResponse.versionId, - ); - } - - const defaultPromptVersionResponse = await humanloopClient.prompts.get( - newPromptVersionResponse.id, - ); - expect(defaultPromptVersionResponse.versionId).not.toBe( - newPromptVersionResponse.versionId, - ); - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup); - } - }); - - it("should fail when using version_id with path", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("fail_with_version_id"); - - try { - try { - await humanloopClient.evaluations.run({ - file: { - path: setup.evalPrompt.path, - type: "prompt", - versionId: "will_not_work", - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - // If we got here, the test failed - throw new Error("Expected runtime error but none was thrown"); - } catch (error: any) { - if (error instanceof HumanloopRuntimeError) { - expect(error.message).toContain( - "You must provide the `file.id` when addressing a file by version ID or environment", - ); - } else { - throw new Error( - `Expected test to fail for version_id but got ${error}`, - ); - } - } - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup); - } - }); - - it("should fail when using environment with path", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("fail_with_environment"); - - try { - await humanloopClient.evaluations.run({ - file: { - path: setup.evalPrompt.path, - type: "prompt", - environment: "staging", - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - // If we got here, the test failed - throw new Error("Expected runtime error but none was thrown"); - } catch (error: any) { - if (error instanceof HumanloopRuntimeError) { - expect(error.message).toContain( - "You must provide the `file.id` when addressing a file by version ID or environment", - ); - } else { - throw new Error( - `Expected test to fail for environment but got ${error}`, - ); - } - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup); - } - }); - - it("should run evaluation with version upsert", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("version_upsert"); - - try { - await humanloopClient.evaluations.run({ - file: { - path: setup.evalPrompt.path, - type: "prompt", - version: { - provider: "openai", - model: "gpt-4o-mini", - temperature: 1, - template: [ - { - role: "system", - content: - "You are a helpful assistant. You must answer the user's question truthfully and at the level of a 5th grader.", - }, - { - role: "user", - content: "{{question}}", - }, - ], - }, - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - - // Verify evaluation - const evaluationsResponse = await humanloopClient.evaluations.list({ - fileId: setup.evalPrompt.id, - }); - expect(evaluationsResponse.data.length).toBe(1); - - const evaluationId = evaluationsResponse.data[0].id; - const runsResponse = - await humanloopClient.evaluations.listRunsForEvaluation(evaluationId); - expect(runsResponse.runs[0].status).toBe("completed"); - - // Verify version upsert - const listPromptVersionsResponse = - await humanloopClient.prompts.listVersions(setup.evalPrompt.id); - expect(listPromptVersionsResponse.records.length).toBe(2); - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup); - } - }); - - it("should fail flow eval without callable", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("flow_fail_without_callable"); - - try { - try { - await humanloopClient.evaluations.run({ - file: { - path: "Test Flow", - type: "flow", - version: { - attributes: { - foo: "bar", - }, - }, - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - // If we got here, the test failed - fail("Expected runtime error but none was thrown"); - } catch (error: any) { - expect(error.message).toContain( - "You must provide a `callable` for your Flow `file` to run a local eval.", - ); - } - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup); - } - }); - - it("should run flow eval with callable", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("flow_with_callable"); - - try { - const flowPath = `${setup.sdkTestDir.path}/Test Flow`; - - // Create flow - const flowResponse = await humanloopClient.flows.upsert({ - path: flowPath, - attributes: { - foo: "bar", - }, - }); - - try { - const flow = await humanloopClient.flows.upsert({ - path: flowPath, - attributes: { - foo: "bar", - }, - }); - - // Run evaluation with flow - await humanloopClient.evaluations.run({ - file: { - id: flow.id, - type: "flow", - callable: ({ question }) => - "It's complicated don't worry about it", - version: { - attributes: { - foo: "bar", - }, - }, - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - - // Verify evaluation - const evaluationsResponse = await humanloopClient.evaluations.list({ - fileId: flow.id, - }); - expect(evaluationsResponse.data.length).toBe(1); - - const evaluationId = evaluationsResponse.data[0].id; - const runsResponse = - await humanloopClient.evaluations.listRunsForEvaluation( - evaluationId, - ); - expect(runsResponse.runs[0].status).toBe("completed"); - } finally { - await humanloopClient.flows.delete(flowResponse.id); - } - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup); - } - }); - - it("should not allow evaluating agent with callable", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("agent_with_callable"); - - try { - try { - await humanloopClient.evaluations.run({ - file: { - path: "Test Agent", - type: "agent", - callable: (inputs: any) => "bar", - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - // If we got here, the test failed - fail("Expected ValueError but none was thrown"); - } catch (error: any) { - expect(error.message).toBe( - "Agent evaluation is only possible on the Humanloop runtime, do not provide a `callable`.", - ); - } - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup); - } - }); - - it("should resolve to default flow version when callable is provided without version", async () => { - // Setup test-specific environment - const setup = await setupTestEnvironment("flow_with_callable_without_version"); - let flowResponse: FlowResponse; - try { - const flowPath = `${setup.sdkTestDir.path}/Test Flow`; - - // Create flow - flowResponse = await humanloopClient.flows.upsert({ - path: flowPath, - attributes: { - foo: "bar", - }, - }); - - // Run evaluation with flow - await humanloopClient.evaluations.run({ - file: { - id: flowResponse.id, - type: "flow", - callable: ({ question }) => "It's complicated don't worry about it", - }, - dataset: { - path: setup.evalDataset.path, - }, - name: "test_eval_run", - evaluators: [ - { - path: setup.outputNotNullEvaluator.path, - }, - ], - }); - - // Verify evaluation - const evaluationsResponse = await humanloopClient.evaluations.list({ - fileId: flowResponse.id, - }); - expect(evaluationsResponse.data.length).toBe(1); - - const evaluationId = evaluationsResponse.data[0].id; - const runsResponse = - await humanloopClient.evaluations.listRunsForEvaluation(evaluationId); - expect(runsResponse.runs[0].status).toBe("completed"); - } finally { - // Clean up test-specific resources - await cleanupTestEnvironment(setup, [ - { id: flowResponse!.id, type: "flow" }, - ]); - } - }); -}); diff --git a/tests/integration/fixtures.ts b/tests/integration/fixtures.ts deleted file mode 100644 index 41ccf486..00000000 --- a/tests/integration/fixtures.ts +++ /dev/null @@ -1,246 +0,0 @@ -import dotenv from "dotenv"; -import { OpenAI } from "openai"; -import { v4 as uuidv4 } from "uuid"; - -import { FileType, PromptRequest, PromptResponse } from "../../src/api"; -import { HumanloopClient } from "../../src/humanloop.client"; - -export interface TestIdentifiers { - id: string; - path: string; -} - -export interface TestPrompt { - id: string; - path: string; - response: PromptResponse; -} - -export interface TestSetup { - sdkTestDir: TestIdentifiers; - testPromptConfig: PromptRequest; - openaiApiKey: string; - humanloopClient: HumanloopClient; - evalDataset: TestIdentifiers; - evalPrompt: TestIdentifiers; - stagingEnvironmentId: string; - outputNotNullEvaluator: TestIdentifiers; -} - -export interface CleanupResources { - type: FileType; - id: string; -} - -export function readEnvironment(): void { - if (![process.env.HUMANLOOP_API_KEY, process.env.OPENAI_API_KEY].every(Boolean)) { - // Testing locally not in CI, running dotenv.config() would override the secrets set for GitHub Action - dotenv.config({}); - } - if (!process.env.HUMANLOOP_API_KEY) { - throw new Error("HUMANLOOP_API_KEY is not set"); - } - if (!process.env.OPENAI_API_KEY) { - throw new Error("OPENAI_API_KEY is not set for integration tests"); - } -} - -export function getSubclient(client: HumanloopClient, type: FileType) { - switch (type) { - case "prompt": - return client.prompts; - case "tool": - return client.tools; - case "flow": - return client.flows; - case "agent": - return client.agents; - case "dataset": - return client.datasets; - case "evaluator": - return client.evaluators; - default: - throw new Error(`Unsupported file type: ${type}`); - } -} - -export async function setupTestEnvironment(testName: string): Promise { - readEnvironment(); - - const openaiApiKey = process.env.OPENAI_API_KEY!; - const humanloopClient = new HumanloopClient({ - apiKey: process.env.HUMANLOOP_API_KEY, - instrumentProviders: { - OpenAI: OpenAI, - }, - }); - - // Create a test directory - const directoryPath = `SDK_TEST_${testName}_${uuidv4()}`; - const response = await humanloopClient.directories.create({ - path: directoryPath, - }); - - const sdkTestDir = { - id: response.id, - path: response.path, - }; - - // Create test prompt config - const testPromptConfig: PromptRequest = { - provider: "openai", - model: "gpt-4o-mini", - temperature: 0.5, - template: [ - { - role: "system", - content: "You are a helpful assistant. Answer concisely.", - }, - { - role: "user", - content: "{{question}}", - }, - ], - }; - - // Create evaluator for testing - const evaluatorPath = `${sdkTestDir.path}/output_not_null_evaluator`; - const evaluatorResponse = await humanloopClient.evaluators.upsert({ - path: evaluatorPath, - spec: { - argumentsType: "target_required", - returnType: "boolean", - code: ` -def output_not_null(log: dict) -> bool: - return log["output"] is not None - `, - evaluatorType: "python", - }, - }); - const outputNotNullEvaluator = { - id: evaluatorResponse.id, - path: evaluatorPath, - }; - - // Create dataset for testing - const datasetPath = `${sdkTestDir.path}/eval_dataset`; - const datasetResponse = await humanloopClient.datasets.upsert({ - path: datasetPath, - datapoints: [ - { - inputs: { question: "What is the capital of the France?" }, - target: { output: "Paris" }, - }, - { - inputs: { question: "What is the capital of the Germany?" }, - target: { output: "Berlin" }, - }, - { - inputs: { question: "What is 2+2?" }, - target: { output: "4" }, - }, - ], - }); - const evalDataset = { - id: datasetResponse.id, - path: datasetResponse.path, - }; - - // Create prompt - const promptPath = `${sdkTestDir.path}/eval_prompt`; - const promptResponse = await humanloopClient.prompts.upsert({ - path: promptPath, - ...(testPromptConfig as PromptRequest), - }); - const evalPrompt = { - id: promptResponse.id, - path: promptResponse.path, - }; - - // Get staging environment ID - const environmentsResponse = await humanloopClient.prompts.listEnvironments( - evalPrompt.id, - ); - let stagingEnvironmentId = ""; - for (const environment of environmentsResponse) { - if (environment.name === "staging") { - stagingEnvironmentId = environment.id; - break; - } - } - if (!stagingEnvironmentId) { - throw new Error("Staging environment not found"); - } - - return { - testPromptConfig, - openaiApiKey, - humanloopClient, - sdkTestDir, - outputNotNullEvaluator, - evalDataset, - evalPrompt, - stagingEnvironmentId, - }; -} - -/** - * Cleans up all test resources - * @param setup The test setup containing the resources - * @param resources Additional resources to clean up - */ -export async function cleanupTestEnvironment( - setup: TestSetup, - resources?: CleanupResources[], -): Promise { - try { - // First clean up any additional resources - if (resources) { - for (const resource of resources) { - const subclient = getSubclient(setup.humanloopClient, resource.type); - if (resource.id) { - await subclient.delete(resource.id); - } - } - } - - // Clean up fixed test resources - if (setup.outputNotNullEvaluator?.id) { - try { - await setup.humanloopClient.evaluators.delete( - setup.outputNotNullEvaluator.id, - ); - } catch (error) { - console.warn( - `Failed to delete evaluator ${setup.outputNotNullEvaluator.id}:`, - error, - ); - } - } - - if (setup.evalDataset?.id) { - try { - await setup.humanloopClient.datasets.delete(setup.evalDataset.id); - } catch (error) { - console.warn( - `Failed to delete dataset ${setup.evalDataset.id}:`, - error, - ); - } - } - - // Finally, clean up the test directory - if (setup.sdkTestDir.id) { - try { - await setup.humanloopClient.directories.delete(setup.sdkTestDir.id); - } catch (error) { - console.warn( - `Failed to delete directory ${setup.sdkTestDir.id}:`, - error, - ); - } - } - } catch (error) { - console.error("Error during cleanup:", error); - } -} diff --git a/yarn.lock b/yarn.lock index d6cee5a6..9bda604c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -79,381 +79,381 @@ "@smithy/util-utf8" "^2.0.0" tslib "^2.6.2" -"@aws-sdk/client-cognito-identity@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.799.0.tgz#80fd73c4e664427e86026f9a302f6b646d935d46" - integrity sha512-gg1sncxYDpYWetey3v/nw9zSkL/Vj2potpeO9sYWY2brcm8SbGh106I6IM/gX6KnY9Y2Bre8xb+JoZGz6ntcnw== +"@aws-sdk/client-cognito-identity@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.810.0.tgz#2c735951ca0232b7e953072f1662e92ca2deb8f0" + integrity sha512-D1V3JY0eaxe6oWOxKeI8pYQgFsc0vVAHqNb45vK1Syp0VaKqdMZn7LuwCu24WlMg8xmQlcULf0oo1lsUvjZ5EA== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.799.0" - "@aws-sdk/credential-provider-node" "3.799.0" - "@aws-sdk/middleware-host-header" "3.775.0" - "@aws-sdk/middleware-logger" "3.775.0" - "@aws-sdk/middleware-recursion-detection" "3.775.0" - "@aws-sdk/middleware-user-agent" "3.799.0" - "@aws-sdk/region-config-resolver" "3.775.0" - "@aws-sdk/types" "3.775.0" - "@aws-sdk/util-endpoints" "3.787.0" - "@aws-sdk/util-user-agent-browser" "3.775.0" - "@aws-sdk/util-user-agent-node" "3.799.0" - "@smithy/config-resolver" "^4.1.0" - "@smithy/core" "^3.3.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/credential-provider-node" "3.810.0" + "@aws-sdk/middleware-host-header" "3.804.0" + "@aws-sdk/middleware-logger" "3.804.0" + "@aws-sdk/middleware-recursion-detection" "3.804.0" + "@aws-sdk/middleware-user-agent" "3.810.0" + "@aws-sdk/region-config-resolver" "3.808.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@aws-sdk/util-user-agent-browser" "3.804.0" + "@aws-sdk/util-user-agent-node" "3.810.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" "@smithy/fetch-http-handler" "^5.0.2" "@smithy/hash-node" "^4.0.2" "@smithy/invalid-dependency" "^4.0.2" "@smithy/middleware-content-length" "^4.0.2" - "@smithy/middleware-endpoint" "^4.1.1" - "@smithy/middleware-retry" "^4.1.1" - "@smithy/middleware-serde" "^4.0.3" + "@smithy/middleware-endpoint" "^4.1.6" + "@smithy/middleware-retry" "^4.1.7" + "@smithy/middleware-serde" "^4.0.5" "@smithy/middleware-stack" "^4.0.2" - "@smithy/node-config-provider" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" "@smithy/node-http-handler" "^4.0.4" "@smithy/protocol-http" "^5.1.0" - "@smithy/smithy-client" "^4.2.1" + "@smithy/smithy-client" "^4.2.6" "@smithy/types" "^4.2.0" "@smithy/url-parser" "^4.0.2" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.9" - "@smithy/util-defaults-mode-node" "^4.0.9" - "@smithy/util-endpoints" "^3.0.2" + "@smithy/util-defaults-mode-browser" "^4.0.14" + "@smithy/util-defaults-mode-node" "^4.0.14" + "@smithy/util-endpoints" "^3.0.4" "@smithy/util-middleware" "^4.0.2" - "@smithy/util-retry" "^4.0.2" + "@smithy/util-retry" "^4.0.3" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" "@aws-sdk/client-sagemaker@^3.583.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-sagemaker/-/client-sagemaker-3.799.0.tgz#b6b4481f707c7e5d2536fe307e6f341f995a5827" - integrity sha512-So85e7gS7VW64ePgeVJNCxbSMU2tINQk/f3TRe7yKfdxQVvyq53jx88AwJgk2WUZYJxlDgEK6fBDvimzwFKJDA== + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-sagemaker/-/client-sagemaker-3.810.0.tgz#d8d78aa4c42b3c6c3da5f7bfbef982caa4242858" + integrity sha512-SkuHTqN2RA0SgU3OtOaIzMYs11P5XysY4Do8Hm6gea2CxYojgYa9NQ4JEtoAfa/UFGBN4IVxd+S0Kgez6gNorA== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.799.0" - "@aws-sdk/credential-provider-node" "3.799.0" - "@aws-sdk/middleware-host-header" "3.775.0" - "@aws-sdk/middleware-logger" "3.775.0" - "@aws-sdk/middleware-recursion-detection" "3.775.0" - "@aws-sdk/middleware-user-agent" "3.799.0" - "@aws-sdk/region-config-resolver" "3.775.0" - "@aws-sdk/types" "3.775.0" - "@aws-sdk/util-endpoints" "3.787.0" - "@aws-sdk/util-user-agent-browser" "3.775.0" - "@aws-sdk/util-user-agent-node" "3.799.0" - "@smithy/config-resolver" "^4.1.0" - "@smithy/core" "^3.3.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/credential-provider-node" "3.810.0" + "@aws-sdk/middleware-host-header" "3.804.0" + "@aws-sdk/middleware-logger" "3.804.0" + "@aws-sdk/middleware-recursion-detection" "3.804.0" + "@aws-sdk/middleware-user-agent" "3.810.0" + "@aws-sdk/region-config-resolver" "3.808.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@aws-sdk/util-user-agent-browser" "3.804.0" + "@aws-sdk/util-user-agent-node" "3.810.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" "@smithy/fetch-http-handler" "^5.0.2" "@smithy/hash-node" "^4.0.2" "@smithy/invalid-dependency" "^4.0.2" "@smithy/middleware-content-length" "^4.0.2" - "@smithy/middleware-endpoint" "^4.1.1" - "@smithy/middleware-retry" "^4.1.1" - "@smithy/middleware-serde" "^4.0.3" + "@smithy/middleware-endpoint" "^4.1.6" + "@smithy/middleware-retry" "^4.1.7" + "@smithy/middleware-serde" "^4.0.5" "@smithy/middleware-stack" "^4.0.2" - "@smithy/node-config-provider" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" "@smithy/node-http-handler" "^4.0.4" "@smithy/protocol-http" "^5.1.0" - "@smithy/smithy-client" "^4.2.1" + "@smithy/smithy-client" "^4.2.6" "@smithy/types" "^4.2.0" "@smithy/url-parser" "^4.0.2" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.9" - "@smithy/util-defaults-mode-node" "^4.0.9" - "@smithy/util-endpoints" "^3.0.2" + "@smithy/util-defaults-mode-browser" "^4.0.14" + "@smithy/util-defaults-mode-node" "^4.0.14" + "@smithy/util-endpoints" "^3.0.4" "@smithy/util-middleware" "^4.0.2" - "@smithy/util-retry" "^4.0.2" + "@smithy/util-retry" "^4.0.3" "@smithy/util-utf8" "^4.0.0" "@smithy/util-waiter" "^4.0.3" "@types/uuid" "^9.0.1" tslib "^2.6.2" uuid "^9.0.1" -"@aws-sdk/client-sso@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.799.0.tgz#4e1e0831100a93147e9cfb8b29bcee88344effa0" - integrity sha512-/i/LG7AiWPmPxKCA2jnR2zaf7B3HYSTbxaZI21ElIz9wASlNAsKr8CnLY7qb50kOyXiNfQ834S5Q3Gl8dX9o3Q== +"@aws-sdk/client-sso@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.810.0.tgz#a540d11ae2e0172a2ffc2feeda8f0e7732a3be04" + integrity sha512-Txp/3jHqkfA4BTklQEOGiZ1yTUxg+hITislfaWEzJ904vlDt4DvAljTlhfaz7pceCLA2+LhRlYZYSv7t5b0Ltw== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.799.0" - "@aws-sdk/middleware-host-header" "3.775.0" - "@aws-sdk/middleware-logger" "3.775.0" - "@aws-sdk/middleware-recursion-detection" "3.775.0" - "@aws-sdk/middleware-user-agent" "3.799.0" - "@aws-sdk/region-config-resolver" "3.775.0" - "@aws-sdk/types" "3.775.0" - "@aws-sdk/util-endpoints" "3.787.0" - "@aws-sdk/util-user-agent-browser" "3.775.0" - "@aws-sdk/util-user-agent-node" "3.799.0" - "@smithy/config-resolver" "^4.1.0" - "@smithy/core" "^3.3.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/middleware-host-header" "3.804.0" + "@aws-sdk/middleware-logger" "3.804.0" + "@aws-sdk/middleware-recursion-detection" "3.804.0" + "@aws-sdk/middleware-user-agent" "3.810.0" + "@aws-sdk/region-config-resolver" "3.808.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@aws-sdk/util-user-agent-browser" "3.804.0" + "@aws-sdk/util-user-agent-node" "3.810.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" "@smithy/fetch-http-handler" "^5.0.2" "@smithy/hash-node" "^4.0.2" "@smithy/invalid-dependency" "^4.0.2" "@smithy/middleware-content-length" "^4.0.2" - "@smithy/middleware-endpoint" "^4.1.1" - "@smithy/middleware-retry" "^4.1.1" - "@smithy/middleware-serde" "^4.0.3" + "@smithy/middleware-endpoint" "^4.1.6" + "@smithy/middleware-retry" "^4.1.7" + "@smithy/middleware-serde" "^4.0.5" "@smithy/middleware-stack" "^4.0.2" - "@smithy/node-config-provider" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" "@smithy/node-http-handler" "^4.0.4" "@smithy/protocol-http" "^5.1.0" - "@smithy/smithy-client" "^4.2.1" + "@smithy/smithy-client" "^4.2.6" "@smithy/types" "^4.2.0" "@smithy/url-parser" "^4.0.2" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.9" - "@smithy/util-defaults-mode-node" "^4.0.9" - "@smithy/util-endpoints" "^3.0.2" + "@smithy/util-defaults-mode-browser" "^4.0.14" + "@smithy/util-defaults-mode-node" "^4.0.14" + "@smithy/util-endpoints" "^3.0.4" "@smithy/util-middleware" "^4.0.2" - "@smithy/util-retry" "^4.0.2" + "@smithy/util-retry" "^4.0.3" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@aws-sdk/core@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.799.0.tgz#383f903ede137df108dcd5f817074515d2b1242e" - integrity sha512-hkKF3Zpc6+H8GI1rlttYVRh9uEE77cqAzLmLpY3iu7sql8cZgPERRBfaFct8p1SaDyrksLNiboD1vKW58mbsYg== +"@aws-sdk/core@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.810.0.tgz#2b068c392d3f87797e7f2dae9191a474ab6fccf3" + integrity sha512-s2IJk+qa/15YZcv3pbdQNATDR+YdYnHf94MrAeVAWubtRLnzD8JciC+gh4LSPp7JzrWSvVOg2Ut1S+0y89xqCg== dependencies: - "@aws-sdk/types" "3.775.0" - "@smithy/core" "^3.3.0" - "@smithy/node-config-provider" "^4.0.2" + "@aws-sdk/types" "3.804.0" + "@smithy/core" "^3.3.3" + "@smithy/node-config-provider" "^4.1.1" "@smithy/property-provider" "^4.0.2" "@smithy/protocol-http" "^5.1.0" "@smithy/signature-v4" "^5.1.0" - "@smithy/smithy-client" "^4.2.1" + "@smithy/smithy-client" "^4.2.6" "@smithy/types" "^4.2.0" "@smithy/util-middleware" "^4.0.2" fast-xml-parser "4.4.1" tslib "^2.6.2" -"@aws-sdk/credential-provider-cognito-identity@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.799.0.tgz#eba1a19bb7bacd37371e2e0dbd3f126145ef9d88" - integrity sha512-qHOqGsvt/z1bvjJRzndW8VaRfbGBhoETZpoRYNbfCbrNH2IRM98KRUlYH1EJ1wFFkT0gUDJr+oIOUCvRlgRW1Q== +"@aws-sdk/credential-provider-cognito-identity@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.810.0.tgz#f935e72aa88a22b6927a6d6c2644661e1edb06cc" + integrity sha512-zusCz4Tk93BXWkJbVHdz5TThItm+5BOXyZSzByw/iPk5pxrjDy+EzWkL0eQcHgyyIeOqTfaJ87H7hAkQ55Jeng== dependencies: - "@aws-sdk/client-cognito-identity" "3.799.0" - "@aws-sdk/types" "3.775.0" + "@aws-sdk/client-cognito-identity" "3.810.0" + "@aws-sdk/types" "3.804.0" "@smithy/property-provider" "^4.0.2" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-env@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.799.0.tgz#d933265b54b18ef1232762c318ff0d75bc7785f9" - integrity sha512-vT/SSWtbUIOW/U21qgEySmmO44SFWIA7WeQPX1OrI8WJ5n7OEI23JWLHjLvHTkYmuZK6z1rPcv7HzRgmuGRibA== +"@aws-sdk/credential-provider-env@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.810.0.tgz#4c83f8d2efbec5bdc2c615c2e3356d542dd7bd85" + integrity sha512-iwHqF+KryKONfbdFk3iKhhPk4fHxh5QP5fXXR//jhYwmszaLOwc7CLCE9AxhgiMzAs+kV8nBFQZvdjFpPzVGOA== dependencies: - "@aws-sdk/core" "3.799.0" - "@aws-sdk/types" "3.775.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/types" "3.804.0" "@smithy/property-provider" "^4.0.2" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-http@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.799.0.tgz#9286235bb30c4f22fbeac0ecf2fe5e5f99aaa282" - integrity sha512-2CjBpOWmhaPAExOgHnIB5nOkS5ef+mfRlJ1JC4nsnjAx0nrK4tk0XRE0LYz11P3+ue+a86cU8WTmBo+qjnGxPQ== +"@aws-sdk/credential-provider-http@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.810.0.tgz#554faa10bbfd9bc36b6566152d5eb3fdccc05a60" + integrity sha512-SKzjLd+8ugif7yy9sOAAdnPE1vCBHQe6jKgs2AadMpCmWm34DiHz/KuulHdvURUGMIi7CvmaC8aH77twDPYbtg== dependencies: - "@aws-sdk/core" "3.799.0" - "@aws-sdk/types" "3.775.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/types" "3.804.0" "@smithy/fetch-http-handler" "^5.0.2" "@smithy/node-http-handler" "^4.0.4" "@smithy/property-provider" "^4.0.2" "@smithy/protocol-http" "^5.1.0" - "@smithy/smithy-client" "^4.2.1" + "@smithy/smithy-client" "^4.2.6" "@smithy/types" "^4.2.0" "@smithy/util-stream" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-ini@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.799.0.tgz#89ed328e40d2bf0c37453c26b1dd74201c61da2c" - integrity sha512-M9ubILFxerqw4QJwk83MnjtZyoA2eNCiea5V+PzZeHlwk2PON/EnawKqy65x9/hMHGoSvvNuby7iMAmPptu7yw== - dependencies: - "@aws-sdk/core" "3.799.0" - "@aws-sdk/credential-provider-env" "3.799.0" - "@aws-sdk/credential-provider-http" "3.799.0" - "@aws-sdk/credential-provider-process" "3.799.0" - "@aws-sdk/credential-provider-sso" "3.799.0" - "@aws-sdk/credential-provider-web-identity" "3.799.0" - "@aws-sdk/nested-clients" "3.799.0" - "@aws-sdk/types" "3.775.0" - "@smithy/credential-provider-imds" "^4.0.2" +"@aws-sdk/credential-provider-ini@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.810.0.tgz#5bc3f115282f24a0666b45c0192c61abfe174bc8" + integrity sha512-H2QCSnxWJ/mj8HTcyHmCmyQ5bO/+imRi4mlBIpUyKjiYKro52WD3gXlGgPIDo2q3UFIHq37kmYvS00i+qIY9tw== + dependencies: + "@aws-sdk/core" "3.810.0" + "@aws-sdk/credential-provider-env" "3.810.0" + "@aws-sdk/credential-provider-http" "3.810.0" + "@aws-sdk/credential-provider-process" "3.810.0" + "@aws-sdk/credential-provider-sso" "3.810.0" + "@aws-sdk/credential-provider-web-identity" "3.810.0" + "@aws-sdk/nested-clients" "3.810.0" + "@aws-sdk/types" "3.804.0" + "@smithy/credential-provider-imds" "^4.0.4" "@smithy/property-provider" "^4.0.2" "@smithy/shared-ini-file-loader" "^4.0.2" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-node@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.799.0.tgz#45e646a24f105782dbaf3c55951dbae32ae73074" - integrity sha512-nd9fSJc0wUlgKUkIr2ldJhcIIrzJFS29AGZoyY22J3xih63nNDv61eTGVMsDZzHlV21XzMlPEljTR7axiimckg== - dependencies: - "@aws-sdk/credential-provider-env" "3.799.0" - "@aws-sdk/credential-provider-http" "3.799.0" - "@aws-sdk/credential-provider-ini" "3.799.0" - "@aws-sdk/credential-provider-process" "3.799.0" - "@aws-sdk/credential-provider-sso" "3.799.0" - "@aws-sdk/credential-provider-web-identity" "3.799.0" - "@aws-sdk/types" "3.775.0" - "@smithy/credential-provider-imds" "^4.0.2" +"@aws-sdk/credential-provider-node@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.810.0.tgz#82f5f3dad43e263ced9ec7256dc8359bfe4a9409" + integrity sha512-9E3Chv3x+RBM3N1bwLCyvXxoiPAckCI74wG7ePN4F3b/7ieIkbEl/3Hd67j1fnt62Xa1cjUHRu2tz5pdEv5G1Q== + dependencies: + "@aws-sdk/credential-provider-env" "3.810.0" + "@aws-sdk/credential-provider-http" "3.810.0" + "@aws-sdk/credential-provider-ini" "3.810.0" + "@aws-sdk/credential-provider-process" "3.810.0" + "@aws-sdk/credential-provider-sso" "3.810.0" + "@aws-sdk/credential-provider-web-identity" "3.810.0" + "@aws-sdk/types" "3.804.0" + "@smithy/credential-provider-imds" "^4.0.4" "@smithy/property-provider" "^4.0.2" "@smithy/shared-ini-file-loader" "^4.0.2" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-process@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.799.0.tgz#34e8b3d7c889bbb87dfe7c171255a8b99a34df25" - integrity sha512-g8jmNs2k98WNHMYcea1YKA+7ao2Ma4w0P42Dz4YpcI155pQHxHx25RwbOG+rsAKuo3bKwkW53HVE/ZTKhcWFgw== +"@aws-sdk/credential-provider-process@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.810.0.tgz#056d4a8c8fbf9c4fcfd78f8c4887ac3fac59c086" + integrity sha512-42kE6MLdsmMGp1id3Gisal4MbMiF7PIc0tAznTeIuE8r7cIF8yeQWw/PBOIvjyI57DxbyKzLUAMEJuigUpApCw== dependencies: - "@aws-sdk/core" "3.799.0" - "@aws-sdk/types" "3.775.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/types" "3.804.0" "@smithy/property-provider" "^4.0.2" "@smithy/shared-ini-file-loader" "^4.0.2" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-sso@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.799.0.tgz#535dd1d1abe5f2567551514444f18b79993ac92e" - integrity sha512-lQv27QkNU9FJFZqEf5DIEN3uXEN409Iaym9WJzhOouGtxvTIAWiD23OYh1u8PvBdrordJGS2YddfQvhcmq9akw== +"@aws-sdk/credential-provider-sso@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.810.0.tgz#6d7778b501880035ae47da7fe932fa95e0ed5e48" + integrity sha512-8WjX6tz+FCvM93Y33gsr13p/HiiTJmVn5AK1O8PTkvHBclQDzmtAW5FdPqTpAJGswLW2FB0xRqdsSMN2dQEjNw== dependencies: - "@aws-sdk/client-sso" "3.799.0" - "@aws-sdk/core" "3.799.0" - "@aws-sdk/token-providers" "3.799.0" - "@aws-sdk/types" "3.775.0" + "@aws-sdk/client-sso" "3.810.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/token-providers" "3.810.0" + "@aws-sdk/types" "3.804.0" "@smithy/property-provider" "^4.0.2" "@smithy/shared-ini-file-loader" "^4.0.2" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-web-identity@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.799.0.tgz#ddf6c4e6f692289ba9e5db3ba9c63564742e5533" - integrity sha512-8k1i9ut+BEg0QZ+I6UQMxGNR1T8paLmAOAZXU+nLQR0lcxS6lr8v+dqofgzQPuHLBkWNCr1Av1IKeL3bJjgU7g== +"@aws-sdk/credential-provider-web-identity@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.810.0.tgz#b0955b966331c5353362006318f98854856d7870" + integrity sha512-uKQJY0AcPyrvMmfGLo36semgjqJ4vmLTqOSW9u40qQDspRnG73/P09lAO2ntqKlhwvMBt3XfcNnOpyyhKRcOfA== dependencies: - "@aws-sdk/core" "3.799.0" - "@aws-sdk/nested-clients" "3.799.0" - "@aws-sdk/types" "3.775.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/nested-clients" "3.810.0" + "@aws-sdk/types" "3.804.0" "@smithy/property-provider" "^4.0.2" "@smithy/types" "^4.2.0" tslib "^2.6.2" "@aws-sdk/credential-providers@^3.583.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-providers/-/credential-providers-3.799.0.tgz#f86cff0bdaef9762b56132977186c4ec1e3249cd" - integrity sha512-Gk10skoEri6zsCPxn34Zpu6Z1B5R3RLwqDw1krNl+B1P749gB6i7XULXZUOotqpum0T0q4euOwAB8XWuTOkKew== - dependencies: - "@aws-sdk/client-cognito-identity" "3.799.0" - "@aws-sdk/core" "3.799.0" - "@aws-sdk/credential-provider-cognito-identity" "3.799.0" - "@aws-sdk/credential-provider-env" "3.799.0" - "@aws-sdk/credential-provider-http" "3.799.0" - "@aws-sdk/credential-provider-ini" "3.799.0" - "@aws-sdk/credential-provider-node" "3.799.0" - "@aws-sdk/credential-provider-process" "3.799.0" - "@aws-sdk/credential-provider-sso" "3.799.0" - "@aws-sdk/credential-provider-web-identity" "3.799.0" - "@aws-sdk/nested-clients" "3.799.0" - "@aws-sdk/types" "3.775.0" - "@smithy/config-resolver" "^4.1.0" - "@smithy/core" "^3.3.0" - "@smithy/credential-provider-imds" "^4.0.2" - "@smithy/node-config-provider" "^4.0.2" + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-providers/-/credential-providers-3.810.0.tgz#5bcf0845c4b4bf6b9fb286caaf8c9c55fa266cc5" + integrity sha512-WtBsZXie65pWO/e9uxySMIhfdxTL47TPxRRgzYR2RTHSq7PpokTMyhux/QzJQdoheEY19DUtlAZruJG2w7NKEg== + dependencies: + "@aws-sdk/client-cognito-identity" "3.810.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/credential-provider-cognito-identity" "3.810.0" + "@aws-sdk/credential-provider-env" "3.810.0" + "@aws-sdk/credential-provider-http" "3.810.0" + "@aws-sdk/credential-provider-ini" "3.810.0" + "@aws-sdk/credential-provider-node" "3.810.0" + "@aws-sdk/credential-provider-process" "3.810.0" + "@aws-sdk/credential-provider-sso" "3.810.0" + "@aws-sdk/credential-provider-web-identity" "3.810.0" + "@aws-sdk/nested-clients" "3.810.0" + "@aws-sdk/types" "3.804.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" + "@smithy/credential-provider-imds" "^4.0.4" + "@smithy/node-config-provider" "^4.1.1" "@smithy/property-provider" "^4.0.2" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/middleware-host-header@3.775.0": - version "3.775.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-host-header/-/middleware-host-header-3.775.0.tgz#1bf8160b8f4f96ba30c19f9baa030a6c9bd5f94d" - integrity sha512-tkSegM0Z6WMXpLB8oPys/d+umYIocvO298mGvcMCncpRl77L9XkvSLJIFzaHes+o7djAgIduYw8wKIMStFss2w== +"@aws-sdk/middleware-host-header@3.804.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-host-header/-/middleware-host-header-3.804.0.tgz#e4c2180cfc75f19c697974383324509fa104d7a3" + integrity sha512-bum1hLVBrn2lJCi423Z2fMUYtsbkGI2s4N+2RI2WSjvbaVyMSv/WcejIrjkqiiMR+2Y7m5exgoKeg4/TODLDPQ== dependencies: - "@aws-sdk/types" "3.775.0" + "@aws-sdk/types" "3.804.0" "@smithy/protocol-http" "^5.1.0" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/middleware-logger@3.775.0": - version "3.775.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-logger/-/middleware-logger-3.775.0.tgz#df1909d441cd4bade8d6c7d24c41532808db0e81" - integrity sha512-FaxO1xom4MAoUJsldmR92nT1G6uZxTdNYOFYtdHfd6N2wcNaTuxgjIvqzg5y7QIH9kn58XX/dzf1iTjgqUStZw== +"@aws-sdk/middleware-logger@3.804.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-logger/-/middleware-logger-3.804.0.tgz#9b7860d0193ec8647a1102aa6ffad070e3260513" + integrity sha512-w/qLwL3iq0KOPQNat0Kb7sKndl9BtceigINwBU7SpkYWX9L/Lem6f8NPEKrC9Tl4wDBht3Yztub4oRTy/horJA== dependencies: - "@aws-sdk/types" "3.775.0" + "@aws-sdk/types" "3.804.0" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/middleware-recursion-detection@3.775.0": - version "3.775.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.775.0.tgz#36a40f467754d7c86424d12ef45c05e96ce3475b" - integrity sha512-GLCzC8D0A0YDG5u3F5U03Vb9j5tcOEFhr8oc6PDk0k0vm5VwtZOE6LvK7hcCSoAB4HXyOUM0sQuXrbaAh9OwXA== +"@aws-sdk/middleware-recursion-detection@3.804.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.804.0.tgz#797bbe72c765e83a1d4c259db9799b77831e1fbb" + integrity sha512-zqHOrvLRdsUdN/ehYfZ9Tf8svhbiLLz5VaWUz22YndFv6m9qaAcijkpAOlKexsv3nLBMJdSdJ6GUTAeIy3BZzw== dependencies: - "@aws-sdk/types" "3.775.0" + "@aws-sdk/types" "3.804.0" "@smithy/protocol-http" "^5.1.0" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/middleware-user-agent@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.799.0.tgz#e120e6e1341bcba5427cee0385172170e4615186" - integrity sha512-TropQZanbOTxa+p+Nl4fWkzlRhgFwDfW+Wb6TR3jZN7IXHNlPpgGFpdrgvBExhW/RBhqr+94OsR8Ou58lp3hhA== +"@aws-sdk/middleware-user-agent@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.810.0.tgz#536ac51af9d96ed3f1cef5739df564a524ca8858" + integrity sha512-gLMJcqgIq7k9skX8u0Yyi+jil4elbsmLf3TuDuqNdlqiZ44/AKdDFfU3mU5tRUtMfP42a3gvb2U3elP0BIeybQ== dependencies: - "@aws-sdk/core" "3.799.0" - "@aws-sdk/types" "3.775.0" - "@aws-sdk/util-endpoints" "3.787.0" - "@smithy/core" "^3.3.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@smithy/core" "^3.3.3" "@smithy/protocol-http" "^5.1.0" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/nested-clients@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/nested-clients/-/nested-clients-3.799.0.tgz#a3b223cfa22f809cee28eedea2ce1f30175665f9" - integrity sha512-zILlWh7asrcQG9JYMYgnvEQBfwmWKfED0yWCf3UNAmQcfS9wkCAWCgicNy/y5KvNvEYnHidsU117STtyuUNG5g== +"@aws-sdk/nested-clients@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/nested-clients/-/nested-clients-3.810.0.tgz#ac2a5a3716ff4212da82ee96d9524576abd9bd77" + integrity sha512-w+tGXFSQjzvJ3j2sQ4GJRdD+YXLTgwLd9eG/A+7pjrv2yLLV70M4HqRrFqH06JBjqT5rsOxonc/QSjROyxk+IA== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.799.0" - "@aws-sdk/middleware-host-header" "3.775.0" - "@aws-sdk/middleware-logger" "3.775.0" - "@aws-sdk/middleware-recursion-detection" "3.775.0" - "@aws-sdk/middleware-user-agent" "3.799.0" - "@aws-sdk/region-config-resolver" "3.775.0" - "@aws-sdk/types" "3.775.0" - "@aws-sdk/util-endpoints" "3.787.0" - "@aws-sdk/util-user-agent-browser" "3.775.0" - "@aws-sdk/util-user-agent-node" "3.799.0" - "@smithy/config-resolver" "^4.1.0" - "@smithy/core" "^3.3.0" + "@aws-sdk/core" "3.810.0" + "@aws-sdk/middleware-host-header" "3.804.0" + "@aws-sdk/middleware-logger" "3.804.0" + "@aws-sdk/middleware-recursion-detection" "3.804.0" + "@aws-sdk/middleware-user-agent" "3.810.0" + "@aws-sdk/region-config-resolver" "3.808.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@aws-sdk/util-user-agent-browser" "3.804.0" + "@aws-sdk/util-user-agent-node" "3.810.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" "@smithy/fetch-http-handler" "^5.0.2" "@smithy/hash-node" "^4.0.2" "@smithy/invalid-dependency" "^4.0.2" "@smithy/middleware-content-length" "^4.0.2" - "@smithy/middleware-endpoint" "^4.1.1" - "@smithy/middleware-retry" "^4.1.1" - "@smithy/middleware-serde" "^4.0.3" + "@smithy/middleware-endpoint" "^4.1.6" + "@smithy/middleware-retry" "^4.1.7" + "@smithy/middleware-serde" "^4.0.5" "@smithy/middleware-stack" "^4.0.2" - "@smithy/node-config-provider" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" "@smithy/node-http-handler" "^4.0.4" "@smithy/protocol-http" "^5.1.0" - "@smithy/smithy-client" "^4.2.1" + "@smithy/smithy-client" "^4.2.6" "@smithy/types" "^4.2.0" "@smithy/url-parser" "^4.0.2" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.9" - "@smithy/util-defaults-mode-node" "^4.0.9" - "@smithy/util-endpoints" "^3.0.2" + "@smithy/util-defaults-mode-browser" "^4.0.14" + "@smithy/util-defaults-mode-node" "^4.0.14" + "@smithy/util-endpoints" "^3.0.4" "@smithy/util-middleware" "^4.0.2" - "@smithy/util-retry" "^4.0.2" + "@smithy/util-retry" "^4.0.3" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" @@ -465,13 +465,13 @@ "@smithy/protocol-http" "^1.1.0" tslib "^2.5.0" -"@aws-sdk/region-config-resolver@3.775.0": - version "3.775.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/region-config-resolver/-/region-config-resolver-3.775.0.tgz#592b52498e68501fe46480be3dfb185e949d1eab" - integrity sha512-40iH3LJjrQS3LKUJAl7Wj0bln7RFPEvUYKFxtP8a+oKFDO0F65F52xZxIJbPn6sHkxWDAnZlGgdjZXM3p2g5wQ== +"@aws-sdk/region-config-resolver@3.808.0": + version "3.808.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/region-config-resolver/-/region-config-resolver-3.808.0.tgz#76b037215c39b01361b9c34b7205f0b52513607c" + integrity sha512-9x2QWfphkARZY5OGkl9dJxZlSlYM2l5inFeo2bKntGuwg4A4YUe5h7d5yJ6sZbam9h43eBrkOdumx03DAkQF9A== dependencies: - "@aws-sdk/types" "3.775.0" - "@smithy/node-config-provider" "^4.0.2" + "@aws-sdk/types" "3.804.0" + "@smithy/node-config-provider" "^4.1.1" "@smithy/types" "^4.2.0" "@smithy/util-config-provider" "^4.0.0" "@smithy/util-middleware" "^4.0.2" @@ -485,61 +485,61 @@ "@smithy/signature-v4" "^1.0.1" tslib "^2.5.0" -"@aws-sdk/token-providers@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.799.0.tgz#7b2cc6aa5b1a1058490b780ff975de29218ef3a0" - integrity sha512-/8iDjnsJs/D8AhGbDAmdF5oSHzE4jsDsM2RIIxmBAKTZXkaaclQBNX9CmAqLKQmO3IUMZsDH2KENHLVAk/N/mw== +"@aws-sdk/token-providers@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.810.0.tgz#09649ea50300c13fb391671bde1935a78d0e5499" + integrity sha512-fdgHRCDpnzsD+0km7zuRbHRysJECfS8o9T9/pZ6XAr1z2FNV/UveHtnUYq0j6XpDMrIm0/suvXbshIjQU+a+sw== dependencies: - "@aws-sdk/nested-clients" "3.799.0" - "@aws-sdk/types" "3.775.0" + "@aws-sdk/nested-clients" "3.810.0" + "@aws-sdk/types" "3.804.0" "@smithy/property-provider" "^4.0.2" "@smithy/shared-ini-file-loader" "^4.0.2" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/types@3.775.0", "@aws-sdk/types@^3.222.0": - version "3.775.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.775.0.tgz#09863a9e68c080947db7c3d226d1c56b8f0f5150" - integrity sha512-ZoGKwa4C9fC9Av6bdfqcW6Ix5ot05F/S4VxWR2nHuMv7hzfmAjTOcUiWT7UR4hM/U0whf84VhDtXN/DWAk52KA== +"@aws-sdk/types@3.804.0", "@aws-sdk/types@^3.222.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.804.0.tgz#b70a734fa721450cf8a513cec0c276001a5d154f" + integrity sha512-A9qnsy9zQ8G89vrPPlNG9d1d8QcKRGqJKqwyGgS0dclJpwy6d1EWgQLIolKPl6vcFpLoe6avLOLxr+h8ur5wpg== dependencies: "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/util-endpoints@3.787.0": - version "3.787.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.787.0.tgz#1398f0bd87f19e615ae920c73e16d9d5e5cb76d1" - integrity sha512-fd3zkiOkwnbdbN0Xp9TsP5SWrmv0SpT70YEdbb8wAj2DWQwiCmFszaSs+YCvhoCdmlR3Wl9Spu0pGpSAGKeYvQ== +"@aws-sdk/util-endpoints@3.808.0": + version "3.808.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.808.0.tgz#a3d269c4d5a6536d6387ba3cd66876f5b52ce913" + integrity sha512-N6Lic98uc4ADB7fLWlzx+1uVnq04VgVjngZvwHoujcRg9YDhIg9dUDiTzD5VZv13g1BrPYmvYP1HhsildpGV6w== dependencies: - "@aws-sdk/types" "3.775.0" + "@aws-sdk/types" "3.804.0" "@smithy/types" "^4.2.0" - "@smithy/util-endpoints" "^3.0.2" + "@smithy/util-endpoints" "^3.0.4" tslib "^2.6.2" "@aws-sdk/util-locate-window@^3.0.0": - version "3.723.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-locate-window/-/util-locate-window-3.723.0.tgz#174551bfdd2eb36d3c16e7023fd7e7ee96ad0fa9" - integrity sha512-Yf2CS10BqK688DRsrKI/EO6B8ff5J86NXe4C+VCysK7UOgN0l1zOTeTukZ3H8Q9tYYX3oaF1961o8vRkFm7Nmw== + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-locate-window/-/util-locate-window-3.804.0.tgz#a2ee8dc5d9c98276986e8e1ba03c0c84d9afb0f5" + integrity sha512-zVoRfpmBVPodYlnMjgVjfGoEZagyRF5IPn3Uo6ZvOZp24chnW/FRstH7ESDHDDRga4z3V+ElUQHKpFDXWyBW5A== dependencies: tslib "^2.6.2" -"@aws-sdk/util-user-agent-browser@3.775.0": - version "3.775.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.775.0.tgz#b69a1a5548ccc6db1acb3ec115967593ece927a1" - integrity sha512-txw2wkiJmZKVdDbscK7VBK+u+TJnRtlUjRTLei+elZg2ADhpQxfVAQl436FUeIv6AhB/oRHW6/K/EAGXUSWi0A== +"@aws-sdk/util-user-agent-browser@3.804.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.804.0.tgz#0312fda0fd34958a1d89e7691c5b1cf41ad5549b" + integrity sha512-KfW6T6nQHHM/vZBBdGn6fMyG/MgX5lq82TDdX4HRQRRuHKLgBWGpKXqqvBwqIaCdXwWHgDrg2VQups6GqOWW2A== dependencies: - "@aws-sdk/types" "3.775.0" + "@aws-sdk/types" "3.804.0" "@smithy/types" "^4.2.0" bowser "^2.11.0" tslib "^2.6.2" -"@aws-sdk/util-user-agent-node@3.799.0": - version "3.799.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.799.0.tgz#8d0794add4efc79830143277f5faa27f16531c7a" - integrity sha512-iXBk38RbIWPF5Nq9O4AnktORAzXovSVqWYClvS1qbE7ILsnTLJbagU9HlU25O2iV5COVh1qZkwuP5NHQ2yTEyw== +"@aws-sdk/util-user-agent-node@3.810.0": + version "3.810.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.810.0.tgz#3036f3b038a9ab710cb68c45811e6a4de8f4c15e" + integrity sha512-T56/ANEGNuvhqVoWZdr+0ZY2hjV93cH2OfGHIlVTVSAMACWG54XehDPESEso1CJNhJGYZPsE+FE42HGCk/XDMg== dependencies: - "@aws-sdk/middleware-user-agent" "3.799.0" - "@aws-sdk/types" "3.775.0" - "@smithy/node-config-provider" "^4.0.2" + "@aws-sdk/middleware-user-agent" "3.810.0" + "@aws-sdk/types" "3.804.0" + "@smithy/node-config-provider" "^4.1.1" "@smithy/types" "^4.2.0" tslib "^2.6.2" @@ -559,10 +559,10 @@ js-tokens "^4.0.0" picocolors "^1.1.1" -"@babel/compat-data@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.27.1.tgz#db7cf122745e0a332c44e847ddc4f5e5221a43f6" - integrity sha512-Q+E+rd/yBzNQhXkG+zQnF58e4zoZfBedaxwzPmicKsiK3nt8iJYrSrDbjwFFDGC4f+rPafqRaPH6TsDoSvMf7A== +"@babel/compat-data@^7.27.2": + version "7.27.2" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.27.2.tgz#4183f9e642fd84e74e3eea7ffa93a412e3b102c9" + integrity sha512-TUtMJYRPyUb/9aU8f3K0mjmjf6M9N5Woshn2CS6nqJSeJtTtQcpLUXjGt9vbF8ZGff0El99sWkLgzwW3VXnxZQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": version "7.27.1" @@ -606,11 +606,11 @@ jsesc "^3.0.2" "@babel/helper-compilation-targets@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.1.tgz#eac1096c7374f161e4f33fc8ae38f4ddf122087a" - integrity sha512-2YaDd/Rd9E598B5+WIc8wJPmWETiiJXFYVE60oX8FDohv7rAUU3CQj+A1MgeEmcsk2+dQuEjIe/GDvig0SqL4g== + version "7.27.2" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz#46a0f6efab808d51d29ce96858dd10ce8732733d" + integrity sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ== dependencies: - "@babel/compat-data" "^7.27.1" + "@babel/compat-data" "^7.27.2" "@babel/helper-validator-option" "^7.27.1" browserslist "^4.24.0" lru-cache "^5.1.1" @@ -690,10 +690,10 @@ "@babel/template" "^7.27.1" "@babel/types" "^7.27.1" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.5", "@babel/parser@^7.20.7", "@babel/parser@^7.23.0", "@babel/parser@^7.23.9", "@babel/parser@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.27.1.tgz#c55d5bed74449d1223701f1869b9ee345cc94cc9" - integrity sha512-I0dZ3ZpCrJ1c04OqlNsQcKiZlsrXf/kkE4FXzID9rIOYICsAbA8mMDzhW/luRNAHdCNt7os/u8wenklZDlUVUQ== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.5", "@babel/parser@^7.20.7", "@babel/parser@^7.23.0", "@babel/parser@^7.23.9", "@babel/parser@^7.27.1", "@babel/parser@^7.27.2": + version "7.27.2" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.27.2.tgz#577518bedb17a2ce4212afd052e01f7df0941127" + integrity sha512-QYLs8299NA7WM/bZAdp+CviYYkVoYXlDW2rzliy3chxd1PQjej7JORuMJDJXJUb9g0TT+B99EwaVLKmX+sPXWw== dependencies: "@babel/types" "^7.27.1" @@ -817,12 +817,12 @@ "@babel/helper-plugin-utils" "^7.27.1" "@babel/template@^7.24.7", "@babel/template@^7.27.1", "@babel/template@^7.3.3": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.27.1.tgz#b9e4f55c17a92312774dfbdde1b3c01c547bbae2" - integrity sha512-Fyo3ghWMqkHHpHQCoBs2VnYjR4iWFFjguTDEqA5WgZDOrFesVjMhMM2FSqTKSoUSDO1VQtavj8NFpdRBEvJTtg== + version "7.27.2" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.27.2.tgz#fa78ceed3c4e7b63ebf6cb39e5852fca45f6809d" + integrity sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw== dependencies: "@babel/code-frame" "^7.27.1" - "@babel/parser" "^7.27.1" + "@babel/parser" "^7.27.2" "@babel/types" "^7.27.1" "@babel/traverse@7.23.2": @@ -1198,9 +1198,9 @@ integrity sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA== "@opentelemetry/semantic-conventions@^1.28.0", "@opentelemetry/semantic-conventions@^1.29.0": - version "1.32.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-1.32.0.tgz#a15e8f78f32388a7e4655e7f539570e40958ca3f" - integrity sha512-s0OpmpQFSfMrmedAn9Lhg4KWJELHCU6uU9dtIJ28N8UGhf9Y55im5X8fEzwhwDwiSqN+ZPSNrDJF7ivf/AuRPQ== + version "1.33.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-1.33.0.tgz#ec8ebd2ac768ab366aff94e0e7f27e8ae24fa49f" + integrity sha512-TIpZvE8fiEILFfTlfPnltpBaD3d9/+uQHVCyC3vfdh6WfCXKhNFzoP5RyDDIndfvZC5GrA4pyEDNyjPloJud+w== "@sinclair/typebox@^0.27.8": version "0.27.8" @@ -1229,23 +1229,23 @@ "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@smithy/config-resolver@^4.1.0": - version "4.1.0" - resolved "https://registry.yarnpkg.com/@smithy/config-resolver/-/config-resolver-4.1.0.tgz#de1043cbd75f05d99798b0fbcfdaf4b89b0f2f41" - integrity sha512-8smPlwhga22pwl23fM5ew4T9vfLUCeFXlcqNOCD5M5h8VmNPNUE9j6bQSuRXpDSV11L/E/SwEBQuW8hr6+nS1A== +"@smithy/config-resolver@^4.1.2": + version "4.1.2" + resolved "https://registry.yarnpkg.com/@smithy/config-resolver/-/config-resolver-4.1.2.tgz#a02d6b4c4a68223fd3a2e59d71609517cede2a7b" + integrity sha512-7r6mZGwb5LmLJ+zPtkLoznf2EtwEuSWdtid10pjGl/7HefCE4mueOkrfki8JCUm99W6UfP47/r3tbxx9CfBN5A== dependencies: - "@smithy/node-config-provider" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" "@smithy/types" "^4.2.0" "@smithy/util-config-provider" "^4.0.0" "@smithy/util-middleware" "^4.0.2" tslib "^2.6.2" -"@smithy/core@^3.3.0": - version "3.3.0" - resolved "https://registry.yarnpkg.com/@smithy/core/-/core-3.3.0.tgz#a6b141733fa530cb2f9b49a8e70ae98169c92cf0" - integrity sha512-r6gvs5OfRq/w+9unPm7B3po4rmWaGh0CIL/OwHntGGux7+RhOOZLGuurbeMgWV6W55ZuyMTypJLeH0vn/ZRaWQ== +"@smithy/core@^3.3.3": + version "3.3.3" + resolved "https://registry.yarnpkg.com/@smithy/core/-/core-3.3.3.tgz#d87db94ff18e059bca791b63fdb9ab94565d8b17" + integrity sha512-CiJNc0b/WdnttAfQ6uMkxPQ3Z8hG/ba8wF89x9KtBBLDdZk6CX52K4F8hbe94uNbc8LDUuZFtbqfdhM3T21naw== dependencies: - "@smithy/middleware-serde" "^4.0.3" + "@smithy/middleware-serde" "^4.0.5" "@smithy/protocol-http" "^5.1.0" "@smithy/types" "^4.2.0" "@smithy/util-body-length-browser" "^4.0.0" @@ -1254,12 +1254,12 @@ "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@smithy/credential-provider-imds@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.2.tgz#1ec34a04842fa69996b151a695b027f0486c69a8" - integrity sha512-32lVig6jCaWBHnY+OEQ6e6Vnt5vDHaLiydGrwYMW9tPqO688hPGTYRamYJ1EptxEC2rAwJrHWmPoKRBl4iTa8w== +"@smithy/credential-provider-imds@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.4.tgz#01315ab90c4cb3e017c1ee2c6e5f958aeaa7cf78" + integrity sha512-jN6M6zaGVyB8FmNGG+xOPQB4N89M1x97MMdMnm1ESjljLS3Qju/IegQizKujaNcy2vXAvrz0en8bobe6E55FEA== dependencies: - "@smithy/node-config-provider" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" "@smithy/property-provider" "^4.0.2" "@smithy/types" "^4.2.0" "@smithy/url-parser" "^4.0.2" @@ -1334,40 +1334,41 @@ "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@smithy/middleware-endpoint@^4.1.1": - version "4.1.1" - resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.1.tgz#d210cac102a645ea35541c17fda52c73f0b56304" - integrity sha512-z5RmcHxjvScL+LwEDU2mTNCOhgUs4lu5PGdF1K36IPRmUHhNFxNxgenSB7smyDiYD4vdKQ7CAZtG5cUErqib9w== +"@smithy/middleware-endpoint@^4.1.6": + version "4.1.6" + resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.6.tgz#faf26365fd570f7545a261f7cc256113dd3c740c" + integrity sha512-Zdieg07c3ua3ap5ungdcyNnY1OsxmsXXtKDTk28+/YbwIPju0Z1ZX9X5AnkjmDE3+AbqgvhtC/ZuCMSr6VSfPw== dependencies: - "@smithy/core" "^3.3.0" - "@smithy/middleware-serde" "^4.0.3" - "@smithy/node-config-provider" "^4.0.2" + "@smithy/core" "^3.3.3" + "@smithy/middleware-serde" "^4.0.5" + "@smithy/node-config-provider" "^4.1.1" "@smithy/shared-ini-file-loader" "^4.0.2" "@smithy/types" "^4.2.0" "@smithy/url-parser" "^4.0.2" "@smithy/util-middleware" "^4.0.2" tslib "^2.6.2" -"@smithy/middleware-retry@^4.1.1": - version "4.1.1" - resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-4.1.1.tgz#8c65dec6fca1f4883a10f724f9d6cafea19d0ba4" - integrity sha512-mBJOxn9aUYwcBUPQpKv9ifzrCn4EbhPUFguEZv3jB57YOMh0caS4P8HoLvUeNUI1nx4bIVH2SIbogbDfFI9DUA== +"@smithy/middleware-retry@^4.1.7": + version "4.1.7" + resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-4.1.7.tgz#7be9dd7f6737ef8d2f475c4d7b154bca2d4babf4" + integrity sha512-lFIFUJ0E/4I0UaIDY5usNUzNKAghhxO0lDH4TZktXMmE+e4ActD9F154Si0Unc01aCPzcwd+NcOwQw6AfXXRRQ== dependencies: - "@smithy/node-config-provider" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" "@smithy/protocol-http" "^5.1.0" - "@smithy/service-error-classification" "^4.0.2" - "@smithy/smithy-client" "^4.2.1" + "@smithy/service-error-classification" "^4.0.3" + "@smithy/smithy-client" "^4.2.6" "@smithy/types" "^4.2.0" "@smithy/util-middleware" "^4.0.2" - "@smithy/util-retry" "^4.0.2" + "@smithy/util-retry" "^4.0.3" tslib "^2.6.2" uuid "^9.0.1" -"@smithy/middleware-serde@^4.0.3": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@smithy/middleware-serde/-/middleware-serde-4.0.3.tgz#b90ef1065ad9dc0b54c561fae73c8a5792d145e3" - integrity sha512-rfgDVrgLEVMmMn0BI8O+8OVr6vXzjV7HZj57l0QxslhzbvVfikZbVfBVthjLHqib4BW44QhcIgJpvebHlRaC9A== +"@smithy/middleware-serde@^4.0.5": + version "4.0.5" + resolved "https://registry.yarnpkg.com/@smithy/middleware-serde/-/middleware-serde-4.0.5.tgz#d03e9aa1b1861f3fdaa1b42ebf49908dbaae50a0" + integrity sha512-yREC3q/HXqQigq29xX3hiy6tFi+kjPKXoYUQmwQdgPORLbQ0n6V2Z/Iw9Nnlu66da9fM/WhDtGvYvqwecrCljQ== dependencies: + "@smithy/protocol-http" "^5.1.0" "@smithy/types" "^4.2.0" tslib "^2.6.2" @@ -1379,10 +1380,10 @@ "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@smithy/node-config-provider@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz#017ba626828bced0fa588e795246e5468632f3ef" - integrity sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw== +"@smithy/node-config-provider@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@smithy/node-config-provider/-/node-config-provider-4.1.1.tgz#11a7ee33a8874f1842443b1d927c5c14b67bce9f" + integrity sha512-1slS5jf5icHETwl5hxEVBj+mh6B+LbVW4yRINsGtUKH+nxM5Pw2H59+qf+JqYFCHp9jssG4vX81f5WKnjMN3Vw== dependencies: "@smithy/property-provider" "^4.0.2" "@smithy/shared-ini-file-loader" "^4.0.2" @@ -1441,10 +1442,10 @@ "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@smithy/service-error-classification@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@smithy/service-error-classification/-/service-error-classification-4.0.2.tgz#96740ed8be7ac5ad7d6f296d4ddf3f66444b8dcc" - integrity sha512-LA86xeFpTKn270Hbkixqs5n73S+LVM0/VZco8dqd+JT75Dyx3Lcw/MraL7ybjmz786+160K8rPOmhsq0SocoJQ== +"@smithy/service-error-classification@^4.0.3": + version "4.0.3" + resolved "https://registry.yarnpkg.com/@smithy/service-error-classification/-/service-error-classification-4.0.3.tgz#df43e3ec00a9f2d15415185561d98cd602c8bc67" + integrity sha512-FTbcajmltovWMjj3tksDQdD23b2w6gH+A0DYA1Yz3iSpjDj8fmkwy62UnXcWMy4d5YoMoSyLFHMfkEVEzbiN8Q== dependencies: "@smithy/types" "^4.2.0" @@ -1484,13 +1485,13 @@ "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@smithy/smithy-client@^4.2.1": - version "4.2.1" - resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-4.2.1.tgz#21055bc038824de93aee778d040cdf9864e6114d" - integrity sha512-fbniZef60QdsBc4ZY0iyI8xbFHIiC/QRtPi66iE4ufjiE/aaz7AfUXzcWMkpO8r+QhLeNRIfmPchIG+3/QDZ6g== +"@smithy/smithy-client@^4.2.6": + version "4.2.6" + resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-4.2.6.tgz#92ee72957d2ca274e3694263e821688eb013c6c9" + integrity sha512-WEqP0wQ1N/lVS4pwNK1Vk+0i6QIr66cq/xbu1dVy1tM0A0qYwAYyz0JhbquzM5pMa8s89lyDBtoGKxo7iG74GA== dependencies: - "@smithy/core" "^3.3.0" - "@smithy/middleware-endpoint" "^4.1.1" + "@smithy/core" "^3.3.3" + "@smithy/middleware-endpoint" "^4.1.6" "@smithy/middleware-stack" "^4.0.2" "@smithy/protocol-http" "^5.1.0" "@smithy/types" "^4.2.0" @@ -1574,36 +1575,36 @@ dependencies: tslib "^2.6.2" -"@smithy/util-defaults-mode-browser@^4.0.9": - version "4.0.9" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.9.tgz#b70915229126eee4c1df18cd8f1e8edabade9c41" - integrity sha512-B8j0XsElvyhv6+5hlFf6vFV/uCSyLKcInpeXOGnOImX2mGXshE01RvPoGipTlRpIk53e6UfYj7WdDdgbVfXDZw== +"@smithy/util-defaults-mode-browser@^4.0.14": + version "4.0.14" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.14.tgz#a0e1d96c43147c04d3757a9a63e6dad2dc3b61dd" + integrity sha512-l7QnMX8VcDOH6n/fBRu4zqguSlOBZxFzWqp58dXFSARFBjNlmEDk5G/z4T7BMGr+rI0Pg8MkhmMUfEtHFgpy2g== dependencies: "@smithy/property-provider" "^4.0.2" - "@smithy/smithy-client" "^4.2.1" + "@smithy/smithy-client" "^4.2.6" "@smithy/types" "^4.2.0" bowser "^2.11.0" tslib "^2.6.2" -"@smithy/util-defaults-mode-node@^4.0.9": - version "4.0.9" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.9.tgz#2d50bcb178a214878a86563616a0b3499550a9d2" - integrity sha512-wTDU8P/zdIf9DOpV5qm64HVgGRXvqjqB/fJZTEQbrz3s79JHM/E7XkMm/876Oq+ZLHJQgnXM9QHDo29dlM62eA== +"@smithy/util-defaults-mode-node@^4.0.14": + version "4.0.14" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.14.tgz#a76bc702d4ebb61b0c58a360f63bf20deb40879d" + integrity sha512-Ujs1gsWDo3m/T63VWBTBmHLTD2UlU6J6FEokLCEp7OZQv45jcjLHoxTwgWsi8ULpsYozvH4MTWkRP+bhwr0vDg== dependencies: - "@smithy/config-resolver" "^4.1.0" - "@smithy/credential-provider-imds" "^4.0.2" - "@smithy/node-config-provider" "^4.0.2" + "@smithy/config-resolver" "^4.1.2" + "@smithy/credential-provider-imds" "^4.0.4" + "@smithy/node-config-provider" "^4.1.1" "@smithy/property-provider" "^4.0.2" - "@smithy/smithy-client" "^4.2.1" + "@smithy/smithy-client" "^4.2.6" "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@smithy/util-endpoints@^3.0.2": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@smithy/util-endpoints/-/util-endpoints-3.0.2.tgz#6933a0d6d4a349523ef71ca9540c9c0b222b559e" - integrity sha512-6QSutU5ZyrpNbnd51zRTL7goojlcnuOB55+F9VBD+j8JpRY50IGamsjlycrmpn8PQkmJucFW8A0LSfXj7jjtLQ== +"@smithy/util-endpoints@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/util-endpoints/-/util-endpoints-3.0.4.tgz#6211dc92aff6ed747b060b257d3669e9fce0685f" + integrity sha512-VfFATC1bmZLV2858B/O1NpMcL32wYo8DPPhHxYxDCodDl3f3mSZ5oJheW1IF91A0EeAADz2WsakM/hGGPGNKLg== dependencies: - "@smithy/node-config-provider" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" "@smithy/types" "^4.2.0" tslib "^2.6.2" @@ -1636,12 +1637,12 @@ "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@smithy/util-retry@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@smithy/util-retry/-/util-retry-4.0.2.tgz#9b64cf460d63555884e641721d19e3c0abff8ee6" - integrity sha512-Qryc+QG+7BCpvjloFLQrmlSd0RsVRHejRXd78jNO3+oREueCjwG1CCEH1vduw/ZkM1U9TztwIKVIi3+8MJScGg== +"@smithy/util-retry@^4.0.3": + version "4.0.3" + resolved "https://registry.yarnpkg.com/@smithy/util-retry/-/util-retry-4.0.3.tgz#42d54b3a100915b61c6f9bee43c966e96139584d" + integrity sha512-DPuYjZQDXmKr/sNvy9Spu8R/ESa2e22wXZzSAY6NkjOLj6spbIje/Aq8rT97iUMdDj0qHMRIe+bTxvlU74d9Ng== dependencies: - "@smithy/service-error-classification" "^4.0.2" + "@smithy/service-error-classification" "^4.0.3" "@smithy/types" "^4.2.0" tslib "^2.6.2" @@ -1887,16 +1888,16 @@ form-data "^4.0.0" "@types/node@*": - version "22.15.3" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.3.tgz#b7fb9396a8ec5b5dfb1345d8ac2502060e9af68b" - integrity sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw== + version "22.15.18" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.18.tgz#2f8240f7e932f571c2d45f555ba0b6c3f7a75963" + integrity sha512-v1DKRfUdyW+jJhZNEI1PYy29S2YRxMV5AOO/x/SjKmW0acCIOqmbj6Haf9eHAhsPmrhlHSxEhv/1WszcLWV4cg== dependencies: undici-types "~6.21.0" "@types/node@^18.11.18", "@types/node@^18.19.70": - version "18.19.87" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.87.tgz#690f000cc51e3c7f48bc00f7e86fac6eb550b709" - integrity sha512-OIAAu6ypnVZHmsHCeJ+7CCSub38QNBS9uceMQeg7K5Ur0Jr+wG9wEOEvvMbhp09pxD5czIUy/jND7s7Tb6Nw7A== + version "18.19.100" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.100.tgz#7f3aefbb6911099ab7e0902a1f373b1a4d2c1947" + integrity sha512-ojmMP8SZBKprc3qGrGk8Ujpo80AXkrP7G2tOT4VWr5jlr5DHjsJF+emXJz+Wm0glmy4Js62oKMdZZ6B9Y+tEcA== dependencies: undici-types "~5.26.4" @@ -2113,7 +2114,7 @@ acorn-walk@^8.0.2: dependencies: acorn "^8.11.0" -acorn@^8.1.0, acorn@^8.11.0, acorn@^8.14.0, acorn@^8.8.1, acorn@^8.8.2: +acorn@^8.1.0, acorn@^8.11.0, acorn@^8.14.0, acorn@^8.8.1: version "8.14.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.1.tgz#721d5dc10f7d5b5609a891773d47731796935dfb" integrity sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg== @@ -2306,14 +2307,14 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.24.0: - version "4.24.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" - integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== + version "4.24.5" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.5.tgz#aa0f5b8560fe81fde84c6dcb38f759bafba0e11b" + integrity sha512-FDToo4Wo82hIdgc1CQ+NQD0hEhmpPjrZ3hiUgwgOG6IuTdlpr8jdjyG24P6cNP1yJpTLzS5OcGgSw0xmDU1/Tw== dependencies: - caniuse-lite "^1.0.30001688" - electron-to-chromium "^1.5.73" + caniuse-lite "^1.0.30001716" + electron-to-chromium "^1.5.149" node-releases "^2.0.19" - update-browserslist-db "^1.1.1" + update-browserslist-db "^1.1.3" bs-logger@^0.2.6: version "0.2.6" @@ -2373,10 +2374,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001688: - version "1.0.30001716" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001716.tgz#39220dfbc58c85d9d4519e7090b656aa11ca4b85" - integrity sha512-49/c1+x3Kwz7ZIWt+4DvK3aMJy9oYXXG6/97JKsnjdCk/6n9vVyWL8NAwVt95Lwt9eigI10Hl782kDfZUUlRXw== +caniuse-lite@^1.0.30001716: + version "1.0.30001718" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001718.tgz#dae13a9c80d517c30c6197515a96131c194d8f82" + integrity sha512-AflseV1ahcSunK53NfEs9gFWgOEmzr0f+kaMFA4xiLZlr9Hzt7HxcSpIFcnNCUkz6R6dWKa54rUz3HUmI3nVcw== chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0: version "4.1.2" @@ -2542,9 +2543,9 @@ data-urls@^3.0.2: whatwg-url "^11.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.5: - version "4.4.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" - integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== + version "4.4.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b" + integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ== dependencies: ms "^2.1.3" @@ -2554,9 +2555,9 @@ decimal.js@^10.4.2: integrity sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw== dedent@^1.0.0: - version "1.5.3" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a" - integrity sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ== + version "1.6.0" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.6.0.tgz#79d52d6389b1ffa67d2bcef59ba51847a9d503b2" + integrity sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA== deepmerge@^4.2.2: version "4.3.1" @@ -2606,10 +2607,10 @@ ejs@^3.1.10: dependencies: jake "^10.8.5" -electron-to-chromium@^1.5.73: - version "1.5.145" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.145.tgz#abd50700ac2c809e40a4694584f66711ee937fb6" - integrity sha512-pZ5EcTWRq/055MvSBgoFEyKf2i4apwfoqJbK/ak2jnFq8oHjZ+vzc3AhRcz37Xn+ZJfL58R666FLJx0YOK9yTw== +electron-to-chromium@^1.5.149: + version "1.5.155" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.155.tgz#809dd0ae9ae1db87c358e0c0c17c09a2ffc432d1" + integrity sha512-ps5KcGGmwL8VaeJlvlDlu4fORQpv3+GIcF5I3f9tUKUlJ/wsysh6HU8P5L1XWRYeXfA0oJd4PyM8ds8zTFf6Ng== emittery@^0.13.1: version "0.13.1" @@ -3023,9 +3024,9 @@ ieee754@^1.2.1: integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== import-in-the-middle@^1.8.1: - version "1.13.1" - resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.13.1.tgz#789651f9e93dd902a5a306f499ab51eb72b03a12" - integrity sha512-k2V9wNm9B+ysuelDTHjI9d5KPc4l8zAZTGqj+pcynvWkypZd857ryzN8jNC7Pg2YZXNMJcHRPpaDyCBbNyVRpA== + version "1.13.2" + resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.13.2.tgz#b8d873708ab121996da6842fa7740ac5cd437f9e" + integrity sha512-Yjp9X7s2eHSXvZYQ0aye6UvwYPrVB5C2k47fuXjFKnYinAByaDZjh4t9MT2wEga9775n6WaIqyHnQhBxYtX2mg== dependencies: acorn "^8.14.0" acorn-import-attributes "^1.9.5" @@ -3832,9 +3833,9 @@ onetime@^5.1.2: mimic-fn "^2.1.0" openai@^4.74.0: - version "4.96.2" - resolved "https://registry.yarnpkg.com/openai/-/openai-4.96.2.tgz#a7d360597f273a5f6ed8dd22914e598013022fa4" - integrity sha512-R2XnxvMsizkROr7BV3uNp1q/3skwPZ7fmPjO1bXLnfB4Tu5xKxrT1EVwzjhxn0MZKBKAvOaGWS63jTMN6KrIXA== + version "4.98.0" + resolved "https://registry.yarnpkg.com/openai/-/openai-4.98.0.tgz#81d8228e06e5d9195bac3b170af42a5454391999" + integrity sha512-TmDKur1WjxxMPQAtLG5sgBSCJmX7ynTsGmewKzoDwl1fRxtbLOsiR0FA/AOAAtYUmP6azal+MYQuOENfdU+7yg== dependencies: "@types/node" "^18.11.18" "@types/node-fetch" "^2.6.4" @@ -4102,10 +4103,10 @@ semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.4, semver@^7.5.2, semver@^7.5.3, semver@^7.5.4, semver@^7.7.1: - version "7.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f" - integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA== +semver@^7.3.4, semver@^7.5.2, semver@^7.5.3, semver@^7.5.4, semver@^7.7.2: + version "7.7.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58" + integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA== serialize-javascript@^6.0.2: version "6.0.2" @@ -4321,12 +4322,12 @@ terser-webpack-plugin@^5.3.11: terser "^5.31.1" terser@^5.31.1: - version "5.39.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.39.0.tgz#0e82033ed57b3ddf1f96708d123cca717d86ca3a" - integrity sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw== + version "5.39.2" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.39.2.tgz#5a1626030724a672e2e5b5c9cd9070308c20e8f9" + integrity sha512-yEPUmWve+VA78bI71BW70Dh0TuV4HHd+I5SHOAfS1+QBOmvmCiiffgjR8ryyEd3KIfvPGFqoADt8LdQ6XpXIvg== dependencies: "@jridgewell/source-map" "^0.3.3" - acorn "^8.8.2" + acorn "^8.14.0" commander "^2.20.0" source-map-support "~0.5.20" @@ -4379,9 +4380,9 @@ tr46@~0.0.3: integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== ts-jest@^29.1.1: - version "29.3.2" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.3.2.tgz#0576cdf0a507f811fe73dcd16d135ce89f8156cb" - integrity sha512-bJJkrWc6PjFVz5g2DGCNUo8z7oFEYaz1xP1NpeDU7KNLMWPpEyV8Chbpkn8xjzgRDpQhnGMyvyldoL7h8JXyug== + version "29.3.3" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.3.3.tgz#c24c31a9d12268f88899e3eeb05912cab42c574c" + integrity sha512-y6jLm19SL4GroiBmHwFK4dSHUfDNmOrJbRfp6QmDIlI9p5tT5Q8ItccB4pTIslCIqOZuQnBwpTR0bQ5eUMYwkw== dependencies: bs-logger "^0.2.6" ejs "^3.1.10" @@ -4390,8 +4391,8 @@ ts-jest@^29.1.1: json5 "^2.2.3" lodash.memoize "^4.1.2" make-error "^1.3.6" - semver "^7.7.1" - type-fest "^4.39.1" + semver "^7.7.2" + type-fest "^4.41.0" yargs-parser "^21.1.1" ts-loader@^9.5.1: @@ -4425,10 +4426,10 @@ type-fest@^0.21.3: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== -type-fest@^4.39.1: - version "4.40.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.40.1.tgz#d78a09f08dd1081a434dd377967650cfd565401d" - integrity sha512-9YvLNnORDpI+vghLU/Nf+zSv0kL47KbVJ1o3sKgoTefl6i+zebxbiDQWoe/oWWqPhIgQdRZRT1KA9sCPL810SA== +type-fest@^4.41.0: + version "4.41.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.41.0.tgz#6ae1c8e5731273c2bf1f58ad39cbae2c91a46c58" + integrity sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA== typescript@~5.7.2: version "5.7.3" @@ -4450,7 +4451,7 @@ universalify@^0.2.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== -update-browserslist-db@^1.1.1: +update-browserslist-db@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz#348377dd245216f9e7060ff50b15a1b740b75420" integrity sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw== @@ -4528,9 +4529,9 @@ webpack-sources@^3.2.3: integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== webpack@^5.97.1: - version "5.99.7" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.99.7.tgz#60201c1ca66da046b07d006c2f6e0cc5e8a7bdba" - integrity sha512-CNqKBRMQjwcmKR0idID5va1qlhrqVUKpovi+Ec79ksW8ux7iS1+A6VqzfZXgVYCFRKl7XL5ap3ZoMpwBJxcg0w== + version "5.99.8" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.99.8.tgz#dd31a020b7c092d30c4c6d9a4edb95809e7f5946" + integrity sha512-lQ3CPiSTpfOnrEGeXDwoq5hIGzSjmwD72GdfVzF7CQAI7t47rJG9eDWvcEkEn3CUQymAElVvDg3YNTlCYj+qUQ== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.6" @@ -4615,9 +4616,9 @@ write-file-atomic@^4.0.2: signal-exit "^3.0.7" ws@^8.11.0: - version "8.18.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.1.tgz#ea131d3784e1dfdff91adb0a4a116b127515e3cb" - integrity sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w== + version "8.18.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.2.tgz#42738b2be57ced85f46154320aabb51ab003705a" + integrity sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ== xml-name-validator@^4.0.0: version "4.0.0"