🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
Fix SDKs & OpenAPI spec (#11)
Marc Klingen3073a80303df
diff --git a/fern/client/definition/api.yml b/fern/client/definition/api.ymlindex fc14515d2a..7e2d9286d0 100644--- a/fern/client/definition/api.yml+++ b/fern/client/definition/api.yml@@ -2,8 +2,3 @@ name: langfuseerror-discrimination:strategy: status-codeauth: bearer-environments:- local:- docs: This local environment is helpful for testing locally!- url: http://localhost:3030-default-environment: localdiff --git a/fern/client/generators.yml b/fern/client/generators.ymlindex d12d76d4a3..313d0e9cd5 100644--- a/fern/client/generators.yml+++ b/fern/client/generators.yml@@ -14,6 +14,6 @@ groups:version: 0.0.26output:location: local-file-system- path: ../../generated/openapi+ path: ../../generated/openapi-clientconfig:namespaceExport: Langfusediff --git a/fern/server/generators.yml b/fern/server/generators.ymlindex e0850a06cc..cc510bd1ba 100644--- a/fern/server/generators.yml+++ b/fern/server/generators.yml@@ -22,7 +22,7 @@ groups:version: 0.0.26output:location: local-file-system- path: ../../generated/openapi+ path: ../../generated/openapi-serverconfig:namespaceExport: Langfuse- name: fernapi/fern-python-sdkdiff --git a/generated/.gitignore b/generated/.gitignorenew file mode 100644index 0000000000..fd42b68870--- /dev/null+++ b/generated/.gitignore@@ -0,0 +1 @@+python/\ No newline at end of filediff --git a/generated/openapi-client/openapi.yml b/generated/openapi-client/openapi.ymlnew file mode 100644index 0000000000..7c24c15c0b--- /dev/null+++ b/generated/openapi-client/openapi.yml@@ -0,0 +1,69 @@+openapi: 3.0.1+info:+ title: langfuse+ version: ''+paths:+ /api/public/scores:+ post:+ description: Add a score to the database+ operationId: score_create+ tags:+ - Score+ parameters: []+ responses:+ '200':+ description: ''+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Score'+ security:+ - BearerAuth: []+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/CreateScoreRequest'+components:+ schemas:+ CreateScoreRequest:+ title: CreateScoreRequest+ type: object+ properties:+ traceId:+ type: string+ name:+ type: string+ value:+ type: integer+ observationId:+ type: string+ required:+ - traceId+ - name+ - value+ Score:+ title: Score+ type: object+ properties:+ id:+ type: string+ name:+ type: string+ value:+ type: integer+ observationId:+ type: string+ timestamp:+ type: string+ format: date-time+ required:+ - id+ - name+ - value+ - timestamp+ securitySchemes:+ BearerAuth:+ type: http+ scheme: bearerdiff --git a/generated/openapi/openapi.yml b/generated/openapi-server/openapi.ymlsimilarity index 100%rename from generated/openapi/openapi.ymlrename to generated/openapi-server/openapi.ymldiff --git a/generated/python/Client.d.ts b/generated/python/Client.d.tsdeleted file mode 100644index 3cabc45366..0000000000--- a/generated/python/Client.d.ts+++ /dev/null@@ -1,28 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as environments from "./environments";-import * as core from "./core";-import { Event } from "./api/resources/event/client/Client";-import { Score } from "./api/resources/score/client/Client";-import { Span } from "./api/resources/span/client/Client";-import { Trace } from "./api/resources/trace/client/Client";-export declare namespace LangfuseClient {- interface Options {- environment?: environments.LangfuseEnvironment | string;- username: core.Supplier<string>;- password: core.Supplier<string>;- }-}-export declare class LangfuseClient {- protected readonly options: LangfuseClient.Options;- constructor(options: LangfuseClient.Options);- protected _event: Event | undefined;- get event(): Event;- protected _score: Score | undefined;- get score(): Score;- protected _span: Span | undefined;- get span(): Span;- protected _trace: Trace | undefined;- get trace(): Trace;-}diff --git a/generated/python/Client.js b/generated/python/Client.jsdeleted file mode 100644index 210b85d345..0000000000--- a/generated/python/Client.js+++ /dev/null@@ -1,33 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });-exports.LangfuseClient = void 0;-const Client_1 = require("./api/resources/event/client/Client");-const Client_2 = require("./api/resources/score/client/Client");-const Client_3 = require("./api/resources/span/client/Client");-const Client_4 = require("./api/resources/trace/client/Client");-class LangfuseClient {- options;- constructor(options) {- this.options = options;- }- _event;- get event() {- return (this._event ??= new Client_1.Event(this.options));- }- _score;- get score() {- return (this._score ??= new Client_2.Score(this.options));- }- _span;- get span() {- return (this._span ??= new Client_3.Span(this.options));- }- _trace;- get trace() {- return (this._trace ??= new Client_4.Trace(this.options));- }-}-exports.LangfuseClient = LangfuseClient;diff --git a/generated/python/api/index.d.ts b/generated/python/api/index.d.tsdeleted file mode 100644index 3e5335fe42..0000000000--- a/generated/python/api/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./resources";diff --git a/generated/python/api/index.js b/generated/python/api/index.jsdeleted file mode 100644index b88cbd1080..0000000000--- a/generated/python/api/index.js+++ /dev/null@@ -1,17 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./resources"), exports);diff --git a/generated/python/api/resources/event/client/Client.d.ts b/generated/python/api/resources/event/client/Client.d.tsdeleted file mode 100644index 49d8c19bd4..0000000000--- a/generated/python/api/resources/event/client/Client.d.ts+++ /dev/null@@ -1,22 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as environments from "../../../../environments";-import * as core from "../../../../core";-import * as Langfuse from "../../..";-export declare namespace Event {- interface Options {- environment?: environments.LangfuseEnvironment | string;- username: core.Supplier<string>;- password: core.Supplier<string>;- }-}-export declare class Event {- protected readonly options: Event.Options;- constructor(options: Event.Options);- /**- * Add an event to the database- */- create(request: Langfuse.CreateEventRequest): Promise<Langfuse.Event>;- protected _getAuthorizationHeader(): Promise<string | undefined>;-}diff --git a/generated/python/api/resources/event/client/Client.js b/generated/python/api/resources/event/client/Client.jsdeleted file mode 100644index d8703732ea..0000000000--- a/generated/python/api/resources/event/client/Client.js+++ /dev/null@@ -1,93 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-var __importDefault = (this && this.__importDefault) || function (mod) {- return (mod && mod.__esModule) ? mod : { "default": mod };-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.Event = void 0;-const environments = __importStar(require("../../../../environments"));-const core = __importStar(require("../../../../core"));-const serializers = __importStar(require("../../../../serialization"));-const url_join_1 = __importDefault(require("url-join"));-const errors = __importStar(require("../../../../errors"));-class Event {- options;- constructor(options) {- this.options = options;- }- /**- * Add an event to the database- */- async create(request) {- const _response = await core.fetcher({- url: (0, url_join_1.default)(this.options.environment ?? environments.LangfuseEnvironment.Local, "/api/public/events"),- method: "POST",- headers: {- Authorization: await this._getAuthorizationHeader(),- "X-Fern-Language": "JavaScript",- },- contentType: "application/json",- body: await serializers.CreateEventRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),- timeoutMs: 60000,- });- if (_response.ok) {- return await serializers.Event.parseOrThrow(_response.body, {- unrecognizedObjectKeys: "passthrough",- allowUnrecognizedUnionMembers: true,- allowUnrecognizedEnumValues: true,- breadcrumbsPrefix: ["response"],- });- }- if (_response.error.reason === "status-code") {- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.body,- });- }- switch (_response.error.reason) {- case "non-json":- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.rawBody,- });- case "timeout":- throw new errors.LangfuseTimeoutError();- case "unknown":- throw new errors.LangfuseError({- message: _response.error.errorMessage,- });- }- }- async _getAuthorizationHeader() {- return core.BasicAuth.toAuthorizationHeader({- username: await core.Supplier.get(this.options.username),- password: await core.Supplier.get(this.options.password),- });- }-}-exports.Event = Event;diff --git a/generated/python/api/resources/event/client/index.d.ts b/generated/python/api/resources/event/client/index.d.tsdeleted file mode 100644index cb0ff5c3b5..0000000000--- a/generated/python/api/resources/event/client/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export {};diff --git a/generated/python/api/resources/event/client/index.js b/generated/python/api/resources/event/client/index.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/api/resources/event/client/index.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/event/index.d.ts b/generated/python/api/resources/event/index.d.tsdeleted file mode 100644index c9240f83b4..0000000000--- a/generated/python/api/resources/event/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./types";-export * from "./client";diff --git a/generated/python/api/resources/event/index.js b/generated/python/api/resources/event/index.jsdeleted file mode 100644index 88ae7e19dc..0000000000--- a/generated/python/api/resources/event/index.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./types"), exports);-__exportStar(require("./client"), exports);diff --git a/generated/python/api/resources/event/types/CreateEventRequest.d.ts b/generated/python/api/resources/event/types/CreateEventRequest.d.tsdeleted file mode 100644index f953173777..0000000000--- a/generated/python/api/resources/event/types/CreateEventRequest.d.ts+++ /dev/null@@ -1,10 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export interface CreateEventRequest {- traceId: string;- name: string;- startTime: Date;- attributes?: unknown;- parentObservationId?: string;-}diff --git a/generated/python/api/resources/event/types/CreateEventRequest.js b/generated/python/api/resources/event/types/CreateEventRequest.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/event/types/CreateEventRequest.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/event/types/Event.d.ts b/generated/python/api/resources/event/types/Event.d.tsdeleted file mode 100644index 401fa24b9f..0000000000--- a/generated/python/api/resources/event/types/Event.d.ts+++ /dev/null@@ -1,12 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export interface Event {- id: string;- traceId: string;- type: string;- name: string;- startTime: Date;- attributes?: unknown;- parentObservationId?: string;-}diff --git a/generated/python/api/resources/event/types/Event.js b/generated/python/api/resources/event/types/Event.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/event/types/Event.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/event/types/index.d.ts b/generated/python/api/resources/event/types/index.d.tsdeleted file mode 100644index f9bd991b8f..0000000000--- a/generated/python/api/resources/event/types/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./CreateEventRequest";-export * from "./Event";diff --git a/generated/python/api/resources/event/types/index.js b/generated/python/api/resources/event/types/index.jsdeleted file mode 100644index 56520606da..0000000000--- a/generated/python/api/resources/event/types/index.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./CreateEventRequest"), exports);-__exportStar(require("./Event"), exports);diff --git a/generated/python/api/resources/index.d.ts b/generated/python/api/resources/index.d.tsdeleted file mode 100644index e58ee44d56..0000000000--- a/generated/python/api/resources/index.d.ts+++ /dev/null@@ -1,8 +0,0 @@-export * as event from "./event";-export * from "./event/types";-export * as score from "./score";-export * from "./score/types";-export * as span from "./span";-export * from "./span/types";-export * as trace from "./trace";-export * from "./trace/types";diff --git a/generated/python/api/resources/index.js b/generated/python/api/resources/index.jsdeleted file mode 100644index 043567c8a9..0000000000--- a/generated/python/api/resources/index.js+++ /dev/null@@ -1,37 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.trace = exports.span = exports.score = exports.event = void 0;-exports.event = __importStar(require("./event"));-__exportStar(require("./event/types"), exports);-exports.score = __importStar(require("./score"));-__exportStar(require("./score/types"), exports);-exports.span = __importStar(require("./span"));-__exportStar(require("./span/types"), exports);-exports.trace = __importStar(require("./trace"));-__exportStar(require("./trace/types"), exports);diff --git a/generated/python/api/resources/score/client/Client.d.ts b/generated/python/api/resources/score/client/Client.d.tsdeleted file mode 100644index f5d1b66732..0000000000--- a/generated/python/api/resources/score/client/Client.d.ts+++ /dev/null@@ -1,22 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as environments from "../../../../environments";-import * as core from "../../../../core";-import * as Langfuse from "../../..";-export declare namespace Score {- interface Options {- environment?: environments.LangfuseEnvironment | string;- username: core.Supplier<string>;- password: core.Supplier<string>;- }-}-export declare class Score {- protected readonly options: Score.Options;- constructor(options: Score.Options);- /**- * Add a score to the database- */- create(request: Langfuse.CreateScoreRequest): Promise<Langfuse.Score>;- protected _getAuthorizationHeader(): Promise<string | undefined>;-}diff --git a/generated/python/api/resources/score/client/Client.js b/generated/python/api/resources/score/client/Client.jsdeleted file mode 100644index a28c43a47a..0000000000--- a/generated/python/api/resources/score/client/Client.js+++ /dev/null@@ -1,93 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-var __importDefault = (this && this.__importDefault) || function (mod) {- return (mod && mod.__esModule) ? mod : { "default": mod };-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.Score = void 0;-const environments = __importStar(require("../../../../environments"));-const core = __importStar(require("../../../../core"));-const serializers = __importStar(require("../../../../serialization"));-const url_join_1 = __importDefault(require("url-join"));-const errors = __importStar(require("../../../../errors"));-class Score {- options;- constructor(options) {- this.options = options;- }- /**- * Add a score to the database- */- async create(request) {- const _response = await core.fetcher({- url: (0, url_join_1.default)(this.options.environment ?? environments.LangfuseEnvironment.Local, "/api/public/scores"),- method: "POST",- headers: {- Authorization: await this._getAuthorizationHeader(),- "X-Fern-Language": "JavaScript",- },- contentType: "application/json",- body: await serializers.CreateScoreRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),- timeoutMs: 60000,- });- if (_response.ok) {- return await serializers.Score.parseOrThrow(_response.body, {- unrecognizedObjectKeys: "passthrough",- allowUnrecognizedUnionMembers: true,- allowUnrecognizedEnumValues: true,- breadcrumbsPrefix: ["response"],- });- }- if (_response.error.reason === "status-code") {- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.body,- });- }- switch (_response.error.reason) {- case "non-json":- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.rawBody,- });- case "timeout":- throw new errors.LangfuseTimeoutError();- case "unknown":- throw new errors.LangfuseError({- message: _response.error.errorMessage,- });- }- }- async _getAuthorizationHeader() {- return core.BasicAuth.toAuthorizationHeader({- username: await core.Supplier.get(this.options.username),- password: await core.Supplier.get(this.options.password),- });- }-}-exports.Score = Score;diff --git a/generated/python/api/resources/score/client/index.d.ts b/generated/python/api/resources/score/client/index.d.tsdeleted file mode 100644index cb0ff5c3b5..0000000000--- a/generated/python/api/resources/score/client/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export {};diff --git a/generated/python/api/resources/score/client/index.js b/generated/python/api/resources/score/client/index.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/api/resources/score/client/index.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/score/index.d.ts b/generated/python/api/resources/score/index.d.tsdeleted file mode 100644index c9240f83b4..0000000000--- a/generated/python/api/resources/score/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./types";-export * from "./client";diff --git a/generated/python/api/resources/score/index.js b/generated/python/api/resources/score/index.jsdeleted file mode 100644index 88ae7e19dc..0000000000--- a/generated/python/api/resources/score/index.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./types"), exports);-__exportStar(require("./client"), exports);diff --git a/generated/python/api/resources/score/types/CreateScoreRequest.d.ts b/generated/python/api/resources/score/types/CreateScoreRequest.d.tsdeleted file mode 100644index fb6ea1c0bf..0000000000--- a/generated/python/api/resources/score/types/CreateScoreRequest.d.ts+++ /dev/null@@ -1,9 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export interface CreateScoreRequest {- traceId: string;- name: string;- value: number;- observationId?: string;-}diff --git a/generated/python/api/resources/score/types/CreateScoreRequest.js b/generated/python/api/resources/score/types/CreateScoreRequest.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/score/types/CreateScoreRequest.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/score/types/Score.d.ts b/generated/python/api/resources/score/types/Score.d.tsdeleted file mode 100644index 6e65830f2b..0000000000--- a/generated/python/api/resources/score/types/Score.d.ts+++ /dev/null@@ -1,10 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export interface Score {- id: string;- name: string;- value: number;- observationId?: string;- timestamp: Date;-}diff --git a/generated/python/api/resources/score/types/Score.js b/generated/python/api/resources/score/types/Score.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/score/types/Score.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/score/types/index.d.ts b/generated/python/api/resources/score/types/index.d.tsdeleted file mode 100644index f1d0b65f29..0000000000--- a/generated/python/api/resources/score/types/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./CreateScoreRequest";-export * from "./Score";diff --git a/generated/python/api/resources/score/types/index.js b/generated/python/api/resources/score/types/index.jsdeleted file mode 100644index 4bb768ed81..0000000000--- a/generated/python/api/resources/score/types/index.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./CreateScoreRequest"), exports);-__exportStar(require("./Score"), exports);diff --git a/generated/python/api/resources/span/client/Client.d.ts b/generated/python/api/resources/span/client/Client.d.tsdeleted file mode 100644index d3b74acc70..0000000000--- a/generated/python/api/resources/span/client/Client.d.ts+++ /dev/null@@ -1,34 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as environments from "../../../../environments";-import * as core from "../../../../core";-import * as Langfuse from "../../..";-export declare namespace Span {- interface Options {- environment?: environments.LangfuseEnvironment | string;- username: core.Supplier<string>;- password: core.Supplier<string>;- }-}-export declare class Span {- protected readonly options: Span.Options;- constructor(options: Span.Options);- /**- * a- */- createLlmCall(request: Langfuse.CreateLlmSpanRequest): Promise<Langfuse.Span>;- /**- * Update a span to the database- */- updateLlmCall(request: Langfuse.UpdateLlmSpanRequest): Promise<Langfuse.Span>;- /**- * Add a span to the database- */- create(request: Langfuse.CreateSpanRequest): Promise<Langfuse.Span>;- /**- * Update a span to the database- */- update(request: Langfuse.UpdateSpanRequest): Promise<Langfuse.Span>;- protected _getAuthorizationHeader(): Promise<string | undefined>;-}diff --git a/generated/python/api/resources/span/client/Client.js b/generated/python/api/resources/span/client/Client.jsdeleted file mode 100644index 986155b442..0000000000--- a/generated/python/api/resources/span/client/Client.js+++ /dev/null@@ -1,222 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-var __importDefault = (this && this.__importDefault) || function (mod) {- return (mod && mod.__esModule) ? mod : { "default": mod };-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.Span = void 0;-const environments = __importStar(require("../../../../environments"));-const core = __importStar(require("../../../../core"));-const serializers = __importStar(require("../../../../serialization"));-const url_join_1 = __importDefault(require("url-join"));-const errors = __importStar(require("../../../../errors"));-class Span {- options;- constructor(options) {- this.options = options;- }- /**- * a- */- async createLlmCall(request) {- const _response = await core.fetcher({- url: (0, url_join_1.default)(this.options.environment ?? environments.LangfuseEnvironment.Local, "/api/public/llm-span"),- method: "POST",- headers: {- Authorization: await this._getAuthorizationHeader(),- "X-Fern-Language": "JavaScript",- },- contentType: "application/json",- body: await serializers.CreateLlmSpanRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),- timeoutMs: 60000,- });- if (_response.ok) {- return await serializers.Span.parseOrThrow(_response.body, {- unrecognizedObjectKeys: "passthrough",- allowUnrecognizedUnionMembers: true,- allowUnrecognizedEnumValues: true,- breadcrumbsPrefix: ["response"],- });- }- if (_response.error.reason === "status-code") {- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.body,- });- }- switch (_response.error.reason) {- case "non-json":- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.rawBody,- });- case "timeout":- throw new errors.LangfuseTimeoutError();- case "unknown":- throw new errors.LangfuseError({- message: _response.error.errorMessage,- });- }- }- /**- * Update a span to the database- */- async updateLlmCall(request) {- const _response = await core.fetcher({- url: (0, url_join_1.default)(this.options.environment ?? environments.LangfuseEnvironment.Local, "/api/public/llm-span"),- method: "PATCH",- headers: {- Authorization: await this._getAuthorizationHeader(),- "X-Fern-Language": "JavaScript",- },- contentType: "application/json",- body: await serializers.UpdateLlmSpanRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),- timeoutMs: 60000,- });- if (_response.ok) {- return await serializers.Span.parseOrThrow(_response.body, {- unrecognizedObjectKeys: "passthrough",- allowUnrecognizedUnionMembers: true,- allowUnrecognizedEnumValues: true,- breadcrumbsPrefix: ["response"],- });- }- if (_response.error.reason === "status-code") {- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.body,- });- }- switch (_response.error.reason) {- case "non-json":- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.rawBody,- });- case "timeout":- throw new errors.LangfuseTimeoutError();- case "unknown":- throw new errors.LangfuseError({- message: _response.error.errorMessage,- });- }- }- /**- * Add a span to the database- */- async create(request) {- const _response = await core.fetcher({- url: (0, url_join_1.default)(this.options.environment ?? environments.LangfuseEnvironment.Local, "/api/public/spans"),- method: "POST",- headers: {- Authorization: await this._getAuthorizationHeader(),- "X-Fern-Language": "JavaScript",- },- contentType: "application/json",- body: await serializers.CreateSpanRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),- timeoutMs: 60000,- });- if (_response.ok) {- return await serializers.Span.parseOrThrow(_response.body, {- unrecognizedObjectKeys: "passthrough",- allowUnrecognizedUnionMembers: true,- allowUnrecognizedEnumValues: true,- breadcrumbsPrefix: ["response"],- });- }- if (_response.error.reason === "status-code") {- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.body,- });- }- switch (_response.error.reason) {- case "non-json":- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.rawBody,- });- case "timeout":- throw new errors.LangfuseTimeoutError();- case "unknown":- throw new errors.LangfuseError({- message: _response.error.errorMessage,- });- }- }- /**- * Update a span to the database- */- async update(request) {- const _response = await core.fetcher({- url: (0, url_join_1.default)(this.options.environment ?? environments.LangfuseEnvironment.Local, "/api/public/spans"),- method: "PATCH",- headers: {- Authorization: await this._getAuthorizationHeader(),- "X-Fern-Language": "JavaScript",- },- contentType: "application/json",- body: await serializers.UpdateSpanRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),- timeoutMs: 60000,- });- if (_response.ok) {- return await serializers.Span.parseOrThrow(_response.body, {- unrecognizedObjectKeys: "passthrough",- allowUnrecognizedUnionMembers: true,- allowUnrecognizedEnumValues: true,- breadcrumbsPrefix: ["response"],- });- }- if (_response.error.reason === "status-code") {- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.body,- });- }- switch (_response.error.reason) {- case "non-json":- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.rawBody,- });- case "timeout":- throw new errors.LangfuseTimeoutError();- case "unknown":- throw new errors.LangfuseError({- message: _response.error.errorMessage,- });- }- }- async _getAuthorizationHeader() {- return core.BasicAuth.toAuthorizationHeader({- username: await core.Supplier.get(this.options.username),- password: await core.Supplier.get(this.options.password),- });- }-}-exports.Span = Span;diff --git a/generated/python/api/resources/span/client/index.d.ts b/generated/python/api/resources/span/client/index.d.tsdeleted file mode 100644index cb0ff5c3b5..0000000000--- a/generated/python/api/resources/span/client/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export {};diff --git a/generated/python/api/resources/span/client/index.js b/generated/python/api/resources/span/client/index.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/api/resources/span/client/index.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/span/index.d.ts b/generated/python/api/resources/span/index.d.tsdeleted file mode 100644index c9240f83b4..0000000000--- a/generated/python/api/resources/span/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./types";-export * from "./client";diff --git a/generated/python/api/resources/span/index.js b/generated/python/api/resources/span/index.jsdeleted file mode 100644index 88ae7e19dc..0000000000--- a/generated/python/api/resources/span/index.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./types"), exports);-__exportStar(require("./client"), exports);diff --git a/generated/python/api/resources/span/types/CreateLlmSpanRequest.d.ts b/generated/python/api/resources/span/types/CreateLlmSpanRequest.d.tsdeleted file mode 100644index e36bef884f..0000000000--- a/generated/python/api/resources/span/types/CreateLlmSpanRequest.d.ts+++ /dev/null@@ -1,11 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as Langfuse from "../../..";-export interface CreateLlmSpanRequest {- traceId: string;- name: string;- startTime: Date;- parentObservationId?: string;- attributes: Langfuse.LlmAttributes;-}diff --git a/generated/python/api/resources/span/types/CreateLlmSpanRequest.js b/generated/python/api/resources/span/types/CreateLlmSpanRequest.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/span/types/CreateLlmSpanRequest.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/span/types/CreateSpanRequest.d.ts b/generated/python/api/resources/span/types/CreateSpanRequest.d.tsdeleted file mode 100644index 560f188d72..0000000000--- a/generated/python/api/resources/span/types/CreateSpanRequest.d.ts+++ /dev/null@@ -1,10 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export interface CreateSpanRequest {- traceId: string;- name: string;- startTime: Date;- attributes?: unknown;- parentObservationId?: string;-}diff --git a/generated/python/api/resources/span/types/CreateSpanRequest.js b/generated/python/api/resources/span/types/CreateSpanRequest.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/span/types/CreateSpanRequest.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/span/types/LlmAttributes.d.ts b/generated/python/api/resources/span/types/LlmAttributes.d.tsdeleted file mode 100644index 8d08f31fd8..0000000000--- a/generated/python/api/resources/span/types/LlmAttributes.d.ts+++ /dev/null@@ -1,10 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as Langfuse from "../../..";-export interface LlmAttributes {- model?: unknown;- prompt?: string;- completion?: string;- tokens?: Langfuse.LlmTokens;-}diff --git a/generated/python/api/resources/span/types/LlmAttributes.js b/generated/python/api/resources/span/types/LlmAttributes.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/span/types/LlmAttributes.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/span/types/LlmTokens.d.ts b/generated/python/api/resources/span/types/LlmTokens.d.tsdeleted file mode 100644index 4f6ac29170..0000000000--- a/generated/python/api/resources/span/types/LlmTokens.d.ts+++ /dev/null@@ -1,7 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export interface LlmTokens {- promptAmount?: number;- completionAmount?: number;-}diff --git a/generated/python/api/resources/span/types/LlmTokens.js b/generated/python/api/resources/span/types/LlmTokens.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/span/types/LlmTokens.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/span/types/Span.d.ts b/generated/python/api/resources/span/types/Span.d.tsdeleted file mode 100644index d28e88bcdd..0000000000--- a/generated/python/api/resources/span/types/Span.d.ts+++ /dev/null@@ -1,13 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export interface Span {- id: string;- traceId: string;- type: string;- name: string;- startTime: Date;- endTime?: Date;- attributes?: unknown;- parentObservationId?: string;-}diff --git a/generated/python/api/resources/span/types/Span.js b/generated/python/api/resources/span/types/Span.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/span/types/Span.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/span/types/UpdateLlmSpanRequest.d.ts b/generated/python/api/resources/span/types/UpdateLlmSpanRequest.d.tsdeleted file mode 100644index b0fae0286d..0000000000--- a/generated/python/api/resources/span/types/UpdateLlmSpanRequest.d.ts+++ /dev/null@@ -1,9 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as Langfuse from "../../..";-export interface UpdateLlmSpanRequest {- spanId: string;- endTime: Date;- attributes: Langfuse.LlmAttributes;-}diff --git a/generated/python/api/resources/span/types/UpdateLlmSpanRequest.js b/generated/python/api/resources/span/types/UpdateLlmSpanRequest.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/span/types/UpdateLlmSpanRequest.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/span/types/UpdateSpanRequest.d.ts b/generated/python/api/resources/span/types/UpdateSpanRequest.d.tsdeleted file mode 100644index 1d8245ffaf..0000000000--- a/generated/python/api/resources/span/types/UpdateSpanRequest.d.ts+++ /dev/null@@ -1,7 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export interface UpdateSpanRequest {- spanId: string;- endTime: Date;-}diff --git a/generated/python/api/resources/span/types/UpdateSpanRequest.js b/generated/python/api/resources/span/types/UpdateSpanRequest.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/span/types/UpdateSpanRequest.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/span/types/index.d.ts b/generated/python/api/resources/span/types/index.d.tsdeleted file mode 100644index c0b32be6c7..0000000000--- a/generated/python/api/resources/span/types/index.d.ts+++ /dev/null@@ -1,7 +0,0 @@-export * from "./CreateSpanRequest";-export * from "./UpdateSpanRequest";-export * from "./UpdateLlmSpanRequest";-export * from "./Span";-export * from "./CreateLlmSpanRequest";-export * from "./LlmAttributes";-export * from "./LlmTokens";diff --git a/generated/python/api/resources/span/types/index.js b/generated/python/api/resources/span/types/index.jsdeleted file mode 100644index 1b14f71bd8..0000000000--- a/generated/python/api/resources/span/types/index.js+++ /dev/null@@ -1,23 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./CreateSpanRequest"), exports);-__exportStar(require("./UpdateSpanRequest"), exports);-__exportStar(require("./UpdateLlmSpanRequest"), exports);-__exportStar(require("./Span"), exports);-__exportStar(require("./CreateLlmSpanRequest"), exports);-__exportStar(require("./LlmAttributes"), exports);-__exportStar(require("./LlmTokens"), exports);diff --git a/generated/python/api/resources/trace/client/Client.d.ts b/generated/python/api/resources/trace/client/Client.d.tsdeleted file mode 100644index 8606b7ae24..0000000000--- a/generated/python/api/resources/trace/client/Client.d.ts+++ /dev/null@@ -1,26 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as environments from "../../../../environments";-import * as core from "../../../../core";-import * as Langfuse from "../../..";-export declare namespace Trace {- interface Options {- environment?: environments.LangfuseEnvironment | string;- username: core.Supplier<string>;- password: core.Supplier<string>;- }-}-export declare class Trace {- protected readonly options: Trace.Options;- constructor(options: Trace.Options);- /**- * Add a trace to the database- */- create(request: Langfuse.CreateTraceRequest): Promise<Langfuse.Trace>;- /**- * Update the status of a trace- */- update(request: Langfuse.UpdateTraceRequest): Promise<Langfuse.Trace>;- protected _getAuthorizationHeader(): Promise<string | undefined>;-}diff --git a/generated/python/api/resources/trace/client/Client.js b/generated/python/api/resources/trace/client/Client.jsdeleted file mode 100644index ae386b81f0..0000000000--- a/generated/python/api/resources/trace/client/Client.js+++ /dev/null@@ -1,136 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-var __importDefault = (this && this.__importDefault) || function (mod) {- return (mod && mod.__esModule) ? mod : { "default": mod };-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.Trace = void 0;-const environments = __importStar(require("../../../../environments"));-const core = __importStar(require("../../../../core"));-const serializers = __importStar(require("../../../../serialization"));-const url_join_1 = __importDefault(require("url-join"));-const errors = __importStar(require("../../../../errors"));-class Trace {- options;- constructor(options) {- this.options = options;- }- /**- * Add a trace to the database- */- async create(request) {- const _response = await core.fetcher({- url: (0, url_join_1.default)(this.options.environment ?? environments.LangfuseEnvironment.Local, "/api/public/traces"),- method: "POST",- headers: {- Authorization: await this._getAuthorizationHeader(),- "X-Fern-Language": "JavaScript",- },- contentType: "application/json",- body: await serializers.CreateTraceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),- timeoutMs: 60000,- });- if (_response.ok) {- return await serializers.Trace.parseOrThrow(_response.body, {- unrecognizedObjectKeys: "passthrough",- allowUnrecognizedUnionMembers: true,- allowUnrecognizedEnumValues: true,- breadcrumbsPrefix: ["response"],- });- }- if (_response.error.reason === "status-code") {- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.body,- });- }- switch (_response.error.reason) {- case "non-json":- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.rawBody,- });- case "timeout":- throw new errors.LangfuseTimeoutError();- case "unknown":- throw new errors.LangfuseError({- message: _response.error.errorMessage,- });- }- }- /**- * Update the status of a trace- */- async update(request) {- const _response = await core.fetcher({- url: (0, url_join_1.default)(this.options.environment ?? environments.LangfuseEnvironment.Local, "/api/public/traces"),- method: "PATCH",- headers: {- Authorization: await this._getAuthorizationHeader(),- "X-Fern-Language": "JavaScript",- },- contentType: "application/json",- body: await serializers.UpdateTraceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),- timeoutMs: 60000,- });- if (_response.ok) {- return await serializers.Trace.parseOrThrow(_response.body, {- unrecognizedObjectKeys: "passthrough",- allowUnrecognizedUnionMembers: true,- allowUnrecognizedEnumValues: true,- breadcrumbsPrefix: ["response"],- });- }- if (_response.error.reason === "status-code") {- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.body,- });- }- switch (_response.error.reason) {- case "non-json":- throw new errors.LangfuseError({- statusCode: _response.error.statusCode,- body: _response.error.rawBody,- });- case "timeout":- throw new errors.LangfuseTimeoutError();- case "unknown":- throw new errors.LangfuseError({- message: _response.error.errorMessage,- });- }- }- async _getAuthorizationHeader() {- return core.BasicAuth.toAuthorizationHeader({- username: await core.Supplier.get(this.options.username),- password: await core.Supplier.get(this.options.password),- });- }-}-exports.Trace = Trace;diff --git a/generated/python/api/resources/trace/client/index.d.ts b/generated/python/api/resources/trace/client/index.d.tsdeleted file mode 100644index cb0ff5c3b5..0000000000--- a/generated/python/api/resources/trace/client/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export {};diff --git a/generated/python/api/resources/trace/client/index.js b/generated/python/api/resources/trace/client/index.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/api/resources/trace/client/index.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/trace/index.d.ts b/generated/python/api/resources/trace/index.d.tsdeleted file mode 100644index c9240f83b4..0000000000--- a/generated/python/api/resources/trace/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./types";-export * from "./client";diff --git a/generated/python/api/resources/trace/index.js b/generated/python/api/resources/trace/index.jsdeleted file mode 100644index 88ae7e19dc..0000000000--- a/generated/python/api/resources/trace/index.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./types"), exports);-__exportStar(require("./client"), exports);diff --git a/generated/python/api/resources/trace/types/CreateTraceRequest.d.ts b/generated/python/api/resources/trace/types/CreateTraceRequest.d.tsdeleted file mode 100644index 1316912891..0000000000--- a/generated/python/api/resources/trace/types/CreateTraceRequest.d.ts+++ /dev/null@@ -1,10 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as Langfuse from "../../..";-export interface CreateTraceRequest {- name: string;- attributes?: unknown;- status: Langfuse.TraceStatus;- statusMessage?: string;-}diff --git a/generated/python/api/resources/trace/types/CreateTraceRequest.js b/generated/python/api/resources/trace/types/CreateTraceRequest.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/trace/types/CreateTraceRequest.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/trace/types/Trace.d.ts b/generated/python/api/resources/trace/types/Trace.d.tsdeleted file mode 100644index 218f762817..0000000000--- a/generated/python/api/resources/trace/types/Trace.d.ts+++ /dev/null@@ -1,11 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export interface Trace {- id: string;- timestamp: Date;- name: string;- attributes?: unknown;- status: string;- statusMessage?: string;-}diff --git a/generated/python/api/resources/trace/types/Trace.js b/generated/python/api/resources/trace/types/Trace.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/trace/types/Trace.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/trace/types/TraceStatus.d.ts b/generated/python/api/resources/trace/types/TraceStatus.d.tsdeleted file mode 100644index acb647d025..0000000000--- a/generated/python/api/resources/trace/types/TraceStatus.d.ts+++ /dev/null@@ -1,9 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export declare type TraceStatus = "EXECUTING" | "SUCCESS" | "ERROR";-export declare const TraceStatus: {- readonly Executing: "EXECUTING";- readonly Success: "SUCCESS";- readonly Error: "ERROR";-};diff --git a/generated/python/api/resources/trace/types/TraceStatus.js b/generated/python/api/resources/trace/types/TraceStatus.jsdeleted file mode 100644index 195be5c74e..0000000000--- a/generated/python/api/resources/trace/types/TraceStatus.js+++ /dev/null@@ -1,11 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });-exports.TraceStatus = void 0;-exports.TraceStatus = {- Executing: "EXECUTING",- Success: "SUCCESS",- Error: "ERROR",-};diff --git a/generated/python/api/resources/trace/types/UpdateTraceRequest.d.ts b/generated/python/api/resources/trace/types/UpdateTraceRequest.d.tsdeleted file mode 100644index 3e95b6e462..0000000000--- a/generated/python/api/resources/trace/types/UpdateTraceRequest.d.ts+++ /dev/null@@ -1,9 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as Langfuse from "../../..";-export interface UpdateTraceRequest {- id: string;- status: Langfuse.TraceStatus;- statusMessage?: string;-}diff --git a/generated/python/api/resources/trace/types/UpdateTraceRequest.js b/generated/python/api/resources/trace/types/UpdateTraceRequest.jsdeleted file mode 100644index 33e43da19c..0000000000--- a/generated/python/api/resources/trace/types/UpdateTraceRequest.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/api/resources/trace/types/index.d.ts b/generated/python/api/resources/trace/types/index.d.tsdeleted file mode 100644index fd312efebf..0000000000--- a/generated/python/api/resources/trace/types/index.d.ts+++ /dev/null@@ -1,4 +0,0 @@-export * from "./CreateTraceRequest";-export * from "./UpdateTraceRequest";-export * from "./Trace";-export * from "./TraceStatus";diff --git a/generated/python/api/resources/trace/types/index.js b/generated/python/api/resources/trace/types/index.jsdeleted file mode 100644index 076431b5a6..0000000000--- a/generated/python/api/resources/trace/types/index.js+++ /dev/null@@ -1,20 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./CreateTraceRequest"), exports);-__exportStar(require("./UpdateTraceRequest"), exports);-__exportStar(require("./Trace"), exports);-__exportStar(require("./TraceStatus"), exports);diff --git a/generated/python/core/auth/BasicAuth.d.ts b/generated/python/core/auth/BasicAuth.d.tsdeleted file mode 100644index a269d14325..0000000000--- a/generated/python/core/auth/BasicAuth.d.ts+++ /dev/null@@ -1,8 +0,0 @@-export interface BasicAuth {- username: string;- password: string;-}-export declare const BasicAuth: {- toAuthorizationHeader: (basicAuth: BasicAuth | undefined) => string | undefined;- fromAuthorizationHeader: (header: string) => BasicAuth;-};diff --git a/generated/python/core/auth/BasicAuth.js b/generated/python/core/auth/BasicAuth.jsdeleted file mode 100644index 66d235e728..0000000000--- a/generated/python/core/auth/BasicAuth.js+++ /dev/null@@ -1,26 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.BasicAuth = void 0;-const js_base64_1 = require("js-base64");-const BASIC_AUTH_HEADER_PREFIX = /^Basic /i;-exports.BasicAuth = {- toAuthorizationHeader: (basicAuth) => {- if (basicAuth == null) {- return undefined;- }- const token = js_base64_1.Base64.encode(`${basicAuth.username}:${basicAuth.password}`);- return `Basic ${token}`;- },- fromAuthorizationHeader: (header) => {- const credentials = header.replace(BASIC_AUTH_HEADER_PREFIX, "");- const decoded = js_base64_1.Base64.decode(credentials);- const [username, password] = decoded.split(":", 2);- if (username == null || password == null) {- throw new Error("Invalid basic auth");- }- return {- username,- password,- };- },-};diff --git a/generated/python/core/auth/BearerToken.d.ts b/generated/python/core/auth/BearerToken.d.tsdeleted file mode 100644index de23f1c384..0000000000--- a/generated/python/core/auth/BearerToken.d.ts+++ /dev/null@@ -1,5 +0,0 @@-export declare type BearerToken = string;-export declare const BearerToken: {- toAuthorizationHeader: (token: BearerToken | undefined) => string | undefined;- fromAuthorizationHeader: (header: string) => BearerToken;-};diff --git a/generated/python/core/auth/BearerToken.js b/generated/python/core/auth/BearerToken.jsdeleted file mode 100644index 4a50f26769..0000000000--- a/generated/python/core/auth/BearerToken.js+++ /dev/null@@ -1,15 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.BearerToken = void 0;-const BEARER_AUTH_HEADER_PREFIX = /^Bearer /i;-exports.BearerToken = {- toAuthorizationHeader: (token) => {- if (token == null) {- return undefined;- }- return `Bearer ${token}`;- },- fromAuthorizationHeader: (header) => {- return header.replace(BEARER_AUTH_HEADER_PREFIX, "").trim();- },-};diff --git a/generated/python/core/auth/index.d.ts b/generated/python/core/auth/index.d.tsdeleted file mode 100644index ee293b3435..0000000000--- a/generated/python/core/auth/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export { BasicAuth } from "./BasicAuth";-export { BearerToken } from "./BearerToken";diff --git a/generated/python/core/auth/index.js b/generated/python/core/auth/index.jsdeleted file mode 100644index 4a1c1158ae..0000000000--- a/generated/python/core/auth/index.js+++ /dev/null@@ -1,7 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.BearerToken = exports.BasicAuth = void 0;-var BasicAuth_1 = require("./BasicAuth");-Object.defineProperty(exports, "BasicAuth", { enumerable: true, get: function () { return BasicAuth_1.BasicAuth; } });-var BearerToken_1 = require("./BearerToken");-Object.defineProperty(exports, "BearerToken", { enumerable: true, get: function () { return BearerToken_1.BearerToken; } });diff --git a/generated/python/core/fetcher/APIResponse.d.ts b/generated/python/core/fetcher/APIResponse.d.tsdeleted file mode 100644index f9db28d5ee..0000000000--- a/generated/python/core/fetcher/APIResponse.d.ts+++ /dev/null@@ -1,9 +0,0 @@-export declare type APIResponse<Success, Failure> = SuccessfulResponse<Success> | FailedResponse<Failure>;-export interface SuccessfulResponse<T> {- ok: true;- body: T;-}-export interface FailedResponse<T> {- ok: false;- error: T;-}diff --git a/generated/python/core/fetcher/APIResponse.js b/generated/python/core/fetcher/APIResponse.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/core/fetcher/APIResponse.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/core/fetcher/Fetcher.d.ts b/generated/python/core/fetcher/Fetcher.d.tsdeleted file mode 100644index 408911e17f..0000000000--- a/generated/python/core/fetcher/Fetcher.d.ts+++ /dev/null@@ -1,37 +0,0 @@-import URLSearchParams from "@ungap/url-search-params";-import { AxiosAdapter } from "axios";-import { APIResponse } from "./APIResponse";-export declare type FetchFunction = (args: Fetcher.Args) => Promise<APIResponse<unknown, Fetcher.Error>>;-export declare namespace Fetcher {- interface Args {- url: string;- method: string;- contentType?: string;- headers?: Record<string, string | undefined>;- queryParameters?: URLSearchParams;- body?: unknown;- timeoutMs?: number;- withCredentials?: boolean;- adapter?: AxiosAdapter;- onUploadProgress?: (event: ProgressEvent) => void;- }- type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;- interface FailedStatusCodeError {- reason: "status-code";- statusCode: number;- body: unknown;- }- interface NonJsonError {- reason: "non-json";- statusCode: number;- rawBody: string;- }- interface TimeoutError {- reason: "timeout";- }- interface UnknownError {- reason: "unknown";- errorMessage: string;- }-}-export declare const fetcher: FetchFunction;diff --git a/generated/python/core/fetcher/Fetcher.js b/generated/python/core/fetcher/Fetcher.jsdeleted file mode 100644index 97beb961a9..0000000000--- a/generated/python/core/fetcher/Fetcher.js+++ /dev/null@@ -1,90 +0,0 @@-"use strict";-var __importDefault = (this && this.__importDefault) || function (mod) {- return (mod && mod.__esModule) ? mod : { "default": mod };-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.fetcher = void 0;-const axios_1 = __importDefault(require("axios"));-const fetcher = async (args) => {- const headers = {};- if (args.body !== undefined && args.contentType != null) {- headers["Content-Type"] = args.contentType;- }- if (args.headers != null) {- for (const [key, value] of Object.entries(args.headers)) {- if (value != null) {- headers[key] = value;- }- }- }- try {- const response = await (0, axios_1.default)({- url: args.url,- params: args.queryParameters,- method: args.method,- headers,- data: args.body,- validateStatus: () => true,- transformResponse: (response) => response,- timeout: args.timeoutMs,- transitional: {- clarifyTimeoutError: true,- },- withCredentials: args.withCredentials,- adapter: args.adapter,- onUploadProgress: args.onUploadProgress,- maxBodyLength: Infinity,- maxContentLength: Infinity,- });- let body;- if (response.data != null && response.data.length > 0) {- try {- body = JSON.parse(response.data) ?? undefined;- }- catch {- return {- ok: false,- error: {- reason: "non-json",- statusCode: response.status,- rawBody: response.data,- },- };- }- }- if (response.status >= 200 && response.status < 300) {- return {- ok: true,- body,- };- }- else {- return {- ok: false,- error: {- reason: "status-code",- statusCode: response.status,- body,- },- };- }- }- catch (error) {- if (error.code === "ETIMEDOUT") {- return {- ok: false,- error: {- reason: "timeout",- },- };- }- return {- ok: false,- error: {- reason: "unknown",- errorMessage: error.message,- },- };- }-};-exports.fetcher = fetcher;diff --git a/generated/python/core/fetcher/Supplier.d.ts b/generated/python/core/fetcher/Supplier.d.tsdeleted file mode 100644index 432b4da2f0..0000000000--- a/generated/python/core/fetcher/Supplier.d.ts+++ /dev/null@@ -1,4 +0,0 @@-export declare type Supplier<T> = T | Promise<T> | (() => T | Promise<T>);-export declare const Supplier: {- get: <T>(supplier: Supplier<T>) => Promise<T>;-};diff --git a/generated/python/core/fetcher/Supplier.js b/generated/python/core/fetcher/Supplier.jsdeleted file mode 100644index 5f06a4110c..0000000000--- a/generated/python/core/fetcher/Supplier.js+++ /dev/null@@ -1,13 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.Supplier = void 0;-exports.Supplier = {- get: async (supplier) => {- if (typeof supplier === "function") {- return supplier();- }- else {- return supplier;- }- },-};diff --git a/generated/python/core/fetcher/index.d.ts b/generated/python/core/fetcher/index.d.tsdeleted file mode 100644index 052af9cf8b..0000000000--- a/generated/python/core/fetcher/index.d.ts+++ /dev/null@@ -1,3 +0,0 @@-export { type APIResponse } from "./APIResponse";-export { fetcher, type Fetcher, type FetchFunction } from "./Fetcher";-export { Supplier } from "./Supplier";diff --git a/generated/python/core/fetcher/index.js b/generated/python/core/fetcher/index.jsdeleted file mode 100644index cfa8e5f515..0000000000--- a/generated/python/core/fetcher/index.js+++ /dev/null@@ -1,7 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.Supplier = exports.fetcher = void 0;-var Fetcher_1 = require("./Fetcher");-Object.defineProperty(exports, "fetcher", { enumerable: true, get: function () { return Fetcher_1.fetcher; } });-var Supplier_1 = require("./Supplier");-Object.defineProperty(exports, "Supplier", { enumerable: true, get: function () { return Supplier_1.Supplier; } });diff --git a/generated/python/core/index.d.ts b/generated/python/core/index.d.tsdeleted file mode 100644index 82528c93b6..0000000000--- a/generated/python/core/index.d.ts+++ /dev/null@@ -1,3 +0,0 @@-export * as serialization from "./schemas";-export * from "./fetcher";-export * from "./auth";diff --git a/generated/python/core/index.js b/generated/python/core/index.jsdeleted file mode 100644index 41b127c2db..0000000000--- a/generated/python/core/index.js+++ /dev/null@@ -1,32 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.serialization = void 0;-exports.serialization = __importStar(require("./schemas"));-__exportStar(require("./fetcher"), exports);-__exportStar(require("./auth"), exports);diff --git a/generated/python/core/schemas/Schema.d.ts b/generated/python/core/schemas/Schema.d.tsdeleted file mode 100644index 07aa1f1d80..0000000000--- a/generated/python/core/schemas/Schema.d.ts+++ /dev/null@@ -1,80 +0,0 @@-import { SchemaUtils } from "./builders";-import { MaybePromise } from "./utils/MaybePromise";-export declare type Schema<Raw = unknown, Parsed = unknown> = BaseSchema<Raw, Parsed> & SchemaUtils<Raw, Parsed>;-export declare type inferRaw<S extends Schema> = S extends Schema<infer Raw, any> ? Raw : never;-export declare type inferParsed<S extends Schema> = S extends Schema<any, infer Parsed> ? Parsed : never;-export interface BaseSchema<Raw, Parsed> {- parse: (raw: unknown, opts?: SchemaOptions) => MaybePromise<MaybeValid<Parsed>>;- json: (parsed: unknown, opts?: SchemaOptions) => MaybePromise<MaybeValid<Raw>>;- getType: () => SchemaType | Promise<SchemaType>;-}-export declare const SchemaType: {- readonly DATE: "date";- readonly ENUM: "enum";- readonly LIST: "list";- readonly STRING_LITERAL: "stringLiteral";- readonly OBJECT: "object";- readonly ANY: "any";- readonly BOOLEAN: "boolean";- readonly NUMBER: "number";- readonly STRING: "string";- readonly UNKNOWN: "unknown";- readonly RECORD: "record";- readonly SET: "set";- readonly UNION: "union";- readonly UNDISCRIMINATED_UNION: "undiscriminatedUnion";- readonly OPTIONAL: "optional";-};-export declare type SchemaType = typeof SchemaType[keyof typeof SchemaType];-export declare type MaybeValid<T> = Valid<T> | Invalid;-export interface Valid<T> {- ok: true;- value: T;-}-export interface Invalid {- ok: false;- errors: ValidationError[];-}-export interface ValidationError {- path: string[];- message: string;-}-export interface SchemaOptions {- /**- * how to handle unrecognized keys in objects- *- * @default "fail"- */- unrecognizedObjectKeys?: "fail" | "passthrough" | "strip";- /**- * whether to fail when an unrecognized discriminant value is- * encountered in a union- *- * @default false- */- allowUnrecognizedUnionMembers?: boolean;- /**- * whether to fail when an unrecognized enum value is encountered- *- * @default false- */- allowUnrecognizedEnumValues?: boolean;- /**- * whether to allow data that doesn't conform to the schema.- * invalid data is passed through without transformation.- *- * when this is enabled, .parse() and .json() will always- * return `ok: true`. `.parseOrThrow()` and `.jsonOrThrow()`- * will never fail.- *- * @default false- */- skipValidation?: boolean;- /**- * each validation failure contains a "path" property, which is- * the breadcrumbs to the offending node in the JSON. you can supply- * a prefix that is prepended to all the errors' paths. this can be- * helpful for zurg's internal debug logging.- */- breadcrumbsPrefix?: string[];-}diff --git a/generated/python/core/schemas/Schema.js b/generated/python/core/schemas/Schema.jsdeleted file mode 100644index 4b536c5517..0000000000--- a/generated/python/core/schemas/Schema.js+++ /dev/null@@ -1,20 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.SchemaType = void 0;-exports.SchemaType = {- DATE: "date",- ENUM: "enum",- LIST: "list",- STRING_LITERAL: "stringLiteral",- OBJECT: "object",- ANY: "any",- BOOLEAN: "boolean",- NUMBER: "number",- STRING: "string",- UNKNOWN: "unknown",- RECORD: "record",- SET: "set",- UNION: "union",- UNDISCRIMINATED_UNION: "undiscriminatedUnion",- OPTIONAL: "optional",-};diff --git a/generated/python/core/schemas/builders/date/date.d.ts b/generated/python/core/schemas/builders/date/date.d.tsdeleted file mode 100644index 26359d1c51..0000000000--- a/generated/python/core/schemas/builders/date/date.d.ts+++ /dev/null@@ -1,2 +0,0 @@-import { Schema } from "../../Schema";-export declare function date(): Schema<string, Date>;diff --git a/generated/python/core/schemas/builders/date/date.js b/generated/python/core/schemas/builders/date/date.jsdeleted file mode 100644index 11b7da06f4..0000000000--- a/generated/python/core/schemas/builders/date/date.js+++ /dev/null@@ -1,66 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.date = void 0;-const Schema_1 = require("../../Schema");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");-const schema_utils_1 = require("../schema-utils");-// https://stackoverflow.com/questions/12756159/regex-and-iso8601-formatted-datetime-const ISO_8601_REGEX = /^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;-function date() {- const baseSchema = {- parse: (raw, { breadcrumbsPrefix = [] } = {}) => {- if (typeof raw !== "string") {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(raw, "string"),- },- ],- };- }- if (!ISO_8601_REGEX.test(raw)) {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(raw, "ISO 8601 date string"),- },- ],- };- }- return {- ok: true,- value: new Date(raw),- };- },- json: (date, { breadcrumbsPrefix = [] } = {}) => {- if (date instanceof Date) {- return {- ok: true,- value: date.toISOString(),- };- }- else {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(date, "Date object"),- },- ],- };- }- },- getType: () => Schema_1.SchemaType.DATE,- };- return {- ...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- };-}-exports.date = date;diff --git a/generated/python/core/schemas/builders/date/index.d.ts b/generated/python/core/schemas/builders/date/index.d.tsdeleted file mode 100644index 187b29040f..0000000000--- a/generated/python/core/schemas/builders/date/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export { date } from "./date";diff --git a/generated/python/core/schemas/builders/date/index.js b/generated/python/core/schemas/builders/date/index.jsdeleted file mode 100644index 2c6cc4e57c..0000000000--- a/generated/python/core/schemas/builders/date/index.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.date = void 0;-var date_1 = require("./date");-Object.defineProperty(exports, "date", { enumerable: true, get: function () { return date_1.date; } });diff --git a/generated/python/core/schemas/builders/enum/enum.d.ts b/generated/python/core/schemas/builders/enum/enum.d.tsdeleted file mode 100644index b5d6f40a3d..0000000000--- a/generated/python/core/schemas/builders/enum/enum.d.ts+++ /dev/null@@ -1,2 +0,0 @@-import { Schema } from "../../Schema";-export declare function enum_<U extends string, E extends U[]>(values: E): Schema<E[number], E[number]>;diff --git a/generated/python/core/schemas/builders/enum/enum.js b/generated/python/core/schemas/builders/enum/enum.jsdeleted file mode 100644index b11f05f78a..0000000000--- a/generated/python/core/schemas/builders/enum/enum.js+++ /dev/null@@ -1,39 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.enum_ = void 0;-const Schema_1 = require("../../Schema");-const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-function enum_(values) {- const validValues = new Set(values);- const schemaCreator = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.ENUM, (value, { allowUnrecognizedEnumValues, breadcrumbsPrefix = [] } = {}) => {- if (typeof value !== "string") {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "string"),- },- ],- };- }- if (!validValues.has(value) && !allowUnrecognizedEnumValues) {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "enum"),- },- ],- };- }- return {- ok: true,- value: value,- };- });- return schemaCreator();-}-exports.enum_ = enum_;diff --git a/generated/python/core/schemas/builders/enum/index.d.ts b/generated/python/core/schemas/builders/enum/index.d.tsdeleted file mode 100644index fe6faed93e..0000000000--- a/generated/python/core/schemas/builders/enum/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export { enum_ } from "./enum";diff --git a/generated/python/core/schemas/builders/enum/index.js b/generated/python/core/schemas/builders/enum/index.jsdeleted file mode 100644index e34b171560..0000000000--- a/generated/python/core/schemas/builders/enum/index.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.enum_ = void 0;-var enum_1 = require("./enum");-Object.defineProperty(exports, "enum_", { enumerable: true, get: function () { return enum_1.enum_; } });diff --git a/generated/python/core/schemas/builders/index.d.ts b/generated/python/core/schemas/builders/index.d.tsdeleted file mode 100644index 050cd2c4ef..0000000000--- a/generated/python/core/schemas/builders/index.d.ts+++ /dev/null@@ -1,13 +0,0 @@-export * from "./date";-export * from "./enum";-export * from "./lazy";-export * from "./list";-export * from "./literals";-export * from "./object";-export * from "./object-like";-export * from "./primitives";-export * from "./record";-export * from "./schema-utils";-export * from "./set";-export * from "./undiscriminated-union";-export * from "./union";diff --git a/generated/python/core/schemas/builders/index.js b/generated/python/core/schemas/builders/index.jsdeleted file mode 100644index 6ede3610bd..0000000000--- a/generated/python/core/schemas/builders/index.js+++ /dev/null@@ -1,29 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./date"), exports);-__exportStar(require("./enum"), exports);-__exportStar(require("./lazy"), exports);-__exportStar(require("./list"), exports);-__exportStar(require("./literals"), exports);-__exportStar(require("./object"), exports);-__exportStar(require("./object-like"), exports);-__exportStar(require("./primitives"), exports);-__exportStar(require("./record"), exports);-__exportStar(require("./schema-utils"), exports);-__exportStar(require("./set"), exports);-__exportStar(require("./undiscriminated-union"), exports);-__exportStar(require("./union"), exports);diff --git a/generated/python/core/schemas/builders/lazy/index.d.ts b/generated/python/core/schemas/builders/lazy/index.d.tsdeleted file mode 100644index ad14bf07b2..0000000000--- a/generated/python/core/schemas/builders/lazy/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export { lazy, type SchemaGetter } from "./lazy";-export { lazyObject } from "./lazyObject";diff --git a/generated/python/core/schemas/builders/lazy/index.js b/generated/python/core/schemas/builders/lazy/index.jsdeleted file mode 100644index a590a44bc3..0000000000--- a/generated/python/core/schemas/builders/lazy/index.js+++ /dev/null@@ -1,7 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.lazyObject = exports.lazy = void 0;-var lazy_1 = require("./lazy");-Object.defineProperty(exports, "lazy", { enumerable: true, get: function () { return lazy_1.lazy; } });-var lazyObject_1 = require("./lazyObject");-Object.defineProperty(exports, "lazyObject", { enumerable: true, get: function () { return lazyObject_1.lazyObject; } });diff --git a/generated/python/core/schemas/builders/lazy/lazy.d.ts b/generated/python/core/schemas/builders/lazy/lazy.d.tsdeleted file mode 100644index de56b26a5d..0000000000--- a/generated/python/core/schemas/builders/lazy/lazy.d.ts+++ /dev/null@@ -1,5 +0,0 @@-import { BaseSchema, Schema } from "../../Schema";-export declare type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType | Promise<SchemaType>;-export declare function lazy<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): Schema<Raw, Parsed>;-export declare function constructLazyBaseSchema<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): BaseSchema<Raw, Parsed>;-export declare function getMemoizedSchema<SchemaType extends Schema<any, any>>(getter: SchemaGetter<SchemaType>): Promise<SchemaType>;diff --git a/generated/python/core/schemas/builders/lazy/lazy.js b/generated/python/core/schemas/builders/lazy/lazy.jsdeleted file mode 100644index 74c36701e3..0000000000--- a/generated/python/core/schemas/builders/lazy/lazy.js+++ /dev/null@@ -1,28 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.getMemoizedSchema = exports.constructLazyBaseSchema = exports.lazy = void 0;-const schema_utils_1 = require("../schema-utils");-function lazy(getter) {- const baseSchema = constructLazyBaseSchema(getter);- return {- ...baseSchema,- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- };-}-exports.lazy = lazy;-function constructLazyBaseSchema(getter) {- return {- parse: async (raw, opts) => (await getMemoizedSchema(getter)).parse(raw, opts),- json: async (parsed, opts) => (await getMemoizedSchema(getter)).json(parsed, opts),- getType: async () => (await getMemoizedSchema(getter)).getType(),- };-}-exports.constructLazyBaseSchema = constructLazyBaseSchema;-async function getMemoizedSchema(getter) {- const castedGetter = getter;- if (castedGetter.__zurg_memoized == null) {- castedGetter.__zurg_memoized = await getter();- }- return castedGetter.__zurg_memoized;-}-exports.getMemoizedSchema = getMemoizedSchema;diff --git a/generated/python/core/schemas/builders/lazy/lazyObject.d.ts b/generated/python/core/schemas/builders/lazy/lazyObject.d.tsdeleted file mode 100644index 0276841dab..0000000000--- a/generated/python/core/schemas/builders/lazy/lazyObject.d.ts+++ /dev/null@@ -1,3 +0,0 @@-import { ObjectSchema } from "../object/types";-import { SchemaGetter } from "./lazy";-export declare function lazyObject<Raw, Parsed>(getter: SchemaGetter<ObjectSchema<Raw, Parsed>>): ObjectSchema<Raw, Parsed>;diff --git a/generated/python/core/schemas/builders/lazy/lazyObject.js b/generated/python/core/schemas/builders/lazy/lazyObject.jsdeleted file mode 100644index 1065742790..0000000000--- a/generated/python/core/schemas/builders/lazy/lazyObject.js+++ /dev/null@@ -1,21 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.lazyObject = void 0;-const object_1 = require("../object");-const object_like_1 = require("../object-like");-const schema_utils_1 = require("../schema-utils");-const lazy_1 = require("./lazy");-function lazyObject(getter) {- const baseSchema = {- ...(0, lazy_1.constructLazyBaseSchema)(getter),- _getRawProperties: async () => (await (0, lazy_1.getMemoizedSchema)(getter))._getRawProperties(),- _getParsedProperties: async () => (await (0, lazy_1.getMemoizedSchema)(getter))._getParsedProperties(),- };- return {- ...baseSchema,- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- ...(0, object_like_1.getObjectLikeUtils)(baseSchema),- ...(0, object_1.getObjectUtils)(baseSchema),- };-}-exports.lazyObject = lazyObject;diff --git a/generated/python/core/schemas/builders/list/index.d.ts b/generated/python/core/schemas/builders/list/index.d.tsdeleted file mode 100644index 25f4bcc173..0000000000--- a/generated/python/core/schemas/builders/list/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export { list } from "./list";diff --git a/generated/python/core/schemas/builders/list/index.js b/generated/python/core/schemas/builders/list/index.jsdeleted file mode 100644index e57fb7d9a5..0000000000--- a/generated/python/core/schemas/builders/list/index.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.list = void 0;-var list_1 = require("./list");-Object.defineProperty(exports, "list", { enumerable: true, get: function () { return list_1.list; } });diff --git a/generated/python/core/schemas/builders/list/list.d.ts b/generated/python/core/schemas/builders/list/list.d.tsdeleted file mode 100644index 66db572f91..0000000000--- a/generated/python/core/schemas/builders/list/list.d.ts+++ /dev/null@@ -1,2 +0,0 @@-import { Schema } from "../../Schema";-export declare function list<Raw, Parsed>(schema: Schema<Raw, Parsed>): Schema<Raw[], Parsed[]>;diff --git a/generated/python/core/schemas/builders/list/list.js b/generated/python/core/schemas/builders/list/list.jsdeleted file mode 100644index 82e7707aaa..0000000000--- a/generated/python/core/schemas/builders/list/list.js+++ /dev/null@@ -1,58 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.list = void 0;-const Schema_1 = require("../../Schema");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");-const schema_utils_1 = require("../schema-utils");-function list(schema) {- const baseSchema = {- parse: async (raw, opts) => validateAndTransformArray(raw, (item, index) => schema.parse(item, {- ...opts,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `[${index}]`],- })),- json: (parsed, opts) => validateAndTransformArray(parsed, (item, index) => schema.json(item, {- ...opts,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `[${index}]`],- })),- getType: () => Schema_1.SchemaType.LIST,- };- return {- ...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- };-}-exports.list = list;-async function validateAndTransformArray(value, transformItem) {- if (!Array.isArray(value)) {- return {- ok: false,- errors: [- {- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "list"),- path: [],- },- ],- };- }- const maybeValidItems = await Promise.all(value.map((item, index) => transformItem(item, index)));- return maybeValidItems.reduce((acc, item) => {- if (acc.ok && item.ok) {- return {- ok: true,- value: [...acc.value, item.value],- };- }- const errors = [];- if (!acc.ok) {- errors.push(...acc.errors);- }- if (!item.ok) {- errors.push(...item.errors);- }- return {- ok: false,- errors,- };- }, { ok: true, value: [] });-}diff --git a/generated/python/core/schemas/builders/literals/index.d.ts b/generated/python/core/schemas/builders/literals/index.d.tsdeleted file mode 100644index a4cd05cddb..0000000000--- a/generated/python/core/schemas/builders/literals/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export { stringLiteral } from "./stringLiteral";diff --git a/generated/python/core/schemas/builders/literals/index.js b/generated/python/core/schemas/builders/literals/index.jsdeleted file mode 100644index 9accde9eeb..0000000000--- a/generated/python/core/schemas/builders/literals/index.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.stringLiteral = void 0;-var stringLiteral_1 = require("./stringLiteral");-Object.defineProperty(exports, "stringLiteral", { enumerable: true, get: function () { return stringLiteral_1.stringLiteral; } });diff --git a/generated/python/core/schemas/builders/literals/stringLiteral.d.ts b/generated/python/core/schemas/builders/literals/stringLiteral.d.tsdeleted file mode 100644index 2fb94be5fd..0000000000--- a/generated/python/core/schemas/builders/literals/stringLiteral.d.ts+++ /dev/null@@ -1,2 +0,0 @@-import { Schema } from "../../Schema";-export declare function stringLiteral<V extends string>(literal: V): Schema<V, V>;diff --git a/generated/python/core/schemas/builders/literals/stringLiteral.js b/generated/python/core/schemas/builders/literals/stringLiteral.jsdeleted file mode 100644index 4da909ba67..0000000000--- a/generated/python/core/schemas/builders/literals/stringLiteral.js+++ /dev/null@@ -1,29 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.stringLiteral = void 0;-const Schema_1 = require("../../Schema");-const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-function stringLiteral(literal) {- const schemaCreator = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.STRING_LITERAL, (value, { breadcrumbsPrefix = [] } = {}) => {- if (value === literal) {- return {- ok: true,- value: literal,- };- }- else {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, `"${literal}"`),- },- ],- };- }- });- return schemaCreator();-}-exports.stringLiteral = stringLiteral;diff --git a/generated/python/core/schemas/builders/object-like/getObjectLikeUtils.d.ts b/generated/python/core/schemas/builders/object-like/getObjectLikeUtils.d.tsdeleted file mode 100644index 47fa3aa2c1..0000000000--- a/generated/python/core/schemas/builders/object-like/getObjectLikeUtils.d.ts+++ /dev/null@@ -1,9 +0,0 @@-import { BaseSchema } from "../../Schema";-import { ObjectLikeSchema, ObjectLikeUtils } from "./types";-export declare function getObjectLikeUtils<Raw, Parsed>(schema: BaseSchema<Raw, Parsed>): ObjectLikeUtils<Raw, Parsed>;-/**- * object-like utils are defined in one file to resolve issues with circular imports- */-export declare function withParsedProperties<RawObjectShape, ParsedObjectShape, Properties>(objectLike: BaseSchema<RawObjectShape, ParsedObjectShape>, properties: {- [K in keyof Properties]: Properties[K] | ((parsed: ParsedObjectShape) => Properties[K]);-}): ObjectLikeSchema<RawObjectShape, ParsedObjectShape & Properties>;diff --git a/generated/python/core/schemas/builders/object-like/getObjectLikeUtils.js b/generated/python/core/schemas/builders/object-like/getObjectLikeUtils.jsdeleted file mode 100644index 3b7187d22b..0000000000--- a/generated/python/core/schemas/builders/object-like/getObjectLikeUtils.js+++ /dev/null@@ -1,63 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.withParsedProperties = exports.getObjectLikeUtils = void 0;-const filterObject_1 = require("../../utils/filterObject");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-const isPlainObject_1 = require("../../utils/isPlainObject");-const schema_utils_1 = require("../schema-utils");-function getObjectLikeUtils(schema) {- return {- withParsedProperties: (properties) => withParsedProperties(schema, properties),- };-}-exports.getObjectLikeUtils = getObjectLikeUtils;-/**- * object-like utils are defined in one file to resolve issues with circular imports- */-function withParsedProperties(objectLike, properties) {- const objectSchema = {- parse: async (raw, opts) => {- const parsedObject = await objectLike.parse(raw, opts);- if (!parsedObject.ok) {- return parsedObject;- }- const additionalProperties = Object.entries(properties).reduce((processed, [key, value]) => {- return {- ...processed,- [key]: typeof value === "function" ? value(parsedObject.value) : value,- };- }, {});- return {- ok: true,- value: {- ...parsedObject.value,- ...additionalProperties,- },- };- },- json: (parsed, opts) => {- if (!(0, isPlainObject_1.isPlainObject)(parsed)) {- return {- ok: false,- errors: [- {- path: opts?.breadcrumbsPrefix ?? [],- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(parsed, "object"),- },- ],- };- }- // strip out added properties- const addedPropertyKeys = new Set(Object.keys(properties));- const parsedWithoutAddedProperties = (0, filterObject_1.filterObject)(parsed, Object.keys(parsed).filter((key) => !addedPropertyKeys.has(key)));- return objectLike.json(parsedWithoutAddedProperties, opts);- },- getType: () => objectLike.getType(),- };- return {- ...objectSchema,- ...(0, schema_utils_1.getSchemaUtils)(objectSchema),- ...getObjectLikeUtils(objectSchema),- };-}-exports.withParsedProperties = withParsedProperties;diff --git a/generated/python/core/schemas/builders/object-like/index.d.ts b/generated/python/core/schemas/builders/object-like/index.d.tsdeleted file mode 100644index 501b7f6151..0000000000--- a/generated/python/core/schemas/builders/object-like/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export { getObjectLikeUtils, withParsedProperties } from "./getObjectLikeUtils";-export { type ObjectLikeSchema, type ObjectLikeUtils } from "./types";diff --git a/generated/python/core/schemas/builders/object-like/index.js b/generated/python/core/schemas/builders/object-like/index.jsdeleted file mode 100644index 8b013d0f8a..0000000000--- a/generated/python/core/schemas/builders/object-like/index.js+++ /dev/null@@ -1,6 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.withParsedProperties = exports.getObjectLikeUtils = void 0;-var getObjectLikeUtils_1 = require("./getObjectLikeUtils");-Object.defineProperty(exports, "getObjectLikeUtils", { enumerable: true, get: function () { return getObjectLikeUtils_1.getObjectLikeUtils; } });-Object.defineProperty(exports, "withParsedProperties", { enumerable: true, get: function () { return getObjectLikeUtils_1.withParsedProperties; } });diff --git a/generated/python/core/schemas/builders/object-like/types.d.ts b/generated/python/core/schemas/builders/object-like/types.d.tsdeleted file mode 100644index c6ceea7664..0000000000--- a/generated/python/core/schemas/builders/object-like/types.d.ts+++ /dev/null@@ -1,7 +0,0 @@-import { BaseSchema, Schema } from "../../Schema";-export declare type ObjectLikeSchema<Raw, Parsed> = Schema<Raw, Parsed> & BaseSchema<Raw, Parsed> & ObjectLikeUtils<Raw, Parsed>;-export interface ObjectLikeUtils<Raw, Parsed> {- withParsedProperties: <T extends Record<string, any>>(properties: {- [K in keyof T]: T[K] | ((parsed: Parsed) => T[K]);- }) => ObjectLikeSchema<Raw, Parsed & T>;-}diff --git a/generated/python/core/schemas/builders/object-like/types.js b/generated/python/core/schemas/builders/object-like/types.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/core/schemas/builders/object-like/types.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/core/schemas/builders/object/index.d.ts b/generated/python/core/schemas/builders/object/index.d.tsdeleted file mode 100644index 9f4d00b46e..0000000000--- a/generated/python/core/schemas/builders/object/index.d.ts+++ /dev/null@@ -1,3 +0,0 @@-export { getObjectUtils, object } from "./object";-export { isProperty, property, type Property } from "./property";-export { type BaseObjectSchema, type inferObjectSchemaFromPropertySchemas, type inferParsedObject, type inferParsedObjectFromPropertySchemas, type inferParsedPropertySchema, type inferRawKey, type inferRawObject, type inferRawObjectFromPropertySchemas, type inferRawPropertySchema, type ObjectSchema, type ObjectUtils, type PropertySchemas, } from "./types";diff --git a/generated/python/core/schemas/builders/object/index.js b/generated/python/core/schemas/builders/object/index.jsdeleted file mode 100644index 870c82df4c..0000000000--- a/generated/python/core/schemas/builders/object/index.js+++ /dev/null@@ -1,9 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.property = exports.isProperty = exports.object = exports.getObjectUtils = void 0;-var object_1 = require("./object");-Object.defineProperty(exports, "getObjectUtils", { enumerable: true, get: function () { return object_1.getObjectUtils; } });-Object.defineProperty(exports, "object", { enumerable: true, get: function () { return object_1.object; } });-var property_1 = require("./property");-Object.defineProperty(exports, "isProperty", { enumerable: true, get: function () { return property_1.isProperty; } });-Object.defineProperty(exports, "property", { enumerable: true, get: function () { return property_1.property; } });diff --git a/generated/python/core/schemas/builders/object/object.d.ts b/generated/python/core/schemas/builders/object/object.d.tsdeleted file mode 100644index 9f22bb0981..0000000000--- a/generated/python/core/schemas/builders/object/object.d.ts+++ /dev/null@@ -1,3 +0,0 @@-import { BaseObjectSchema, inferObjectSchemaFromPropertySchemas, ObjectUtils, PropertySchemas } from "./types";-export declare function object<ParsedKeys extends string, T extends PropertySchemas<ParsedKeys>>(schemas: T): inferObjectSchemaFromPropertySchemas<T>;-export declare function getObjectUtils<Raw, Parsed>(schema: BaseObjectSchema<Raw, Parsed>): ObjectUtils<Raw, Parsed>;diff --git a/generated/python/core/schemas/builders/object/object.js b/generated/python/core/schemas/builders/object/object.jsdeleted file mode 100644index f9a7dcb025..0000000000--- a/generated/python/core/schemas/builders/object/object.js+++ /dev/null@@ -1,250 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.getObjectUtils = exports.object = void 0;-const Schema_1 = require("../../Schema");-const entries_1 = require("../../utils/entries");-const filterObject_1 = require("../../utils/filterObject");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-const isPlainObject_1 = require("../../utils/isPlainObject");-const keys_1 = require("../../utils/keys");-const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");-const partition_1 = require("../../utils/partition");-const object_like_1 = require("../object-like");-const schema_utils_1 = require("../schema-utils");-const property_1 = require("./property");-function object(schemas) {- const baseSchema = {- _getRawProperties: () => Promise.resolve(Object.entries(schemas).map(([parsedKey, propertySchema]) => (0, property_1.isProperty)(propertySchema) ? propertySchema.rawKey : parsedKey)),- _getParsedProperties: () => Promise.resolve((0, keys_1.keys)(schemas)),- parse: async (raw, opts) => {- const rawKeyToProperty = {};- const requiredKeys = [];- for (const [parsedKey, schemaOrObjectProperty] of (0, entries_1.entries)(schemas)) {- const rawKey = (0, property_1.isProperty)(schemaOrObjectProperty) ? schemaOrObjectProperty.rawKey : parsedKey;- const valueSchema = (0, property_1.isProperty)(schemaOrObjectProperty)- ? schemaOrObjectProperty.valueSchema- : schemaOrObjectProperty;- const property = {- rawKey,- parsedKey: parsedKey,- valueSchema,- };- rawKeyToProperty[rawKey] = property;- if (await isSchemaRequired(valueSchema)) {- requiredKeys.push(rawKey);- }- }- return validateAndTransformObject({- value: raw,- requiredKeys,- getProperty: (rawKey) => {- const property = rawKeyToProperty[rawKey];- if (property == null) {- return undefined;- }- return {- transformedKey: property.parsedKey,- transform: (propertyValue) => property.valueSchema.parse(propertyValue, {- ...opts,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), rawKey],- }),- };- },- unrecognizedObjectKeys: opts?.unrecognizedObjectKeys,- skipValidation: opts?.skipValidation,- breadcrumbsPrefix: opts?.breadcrumbsPrefix,- });- },- json: async (parsed, opts) => {- const requiredKeys = [];- for (const [parsedKey, schemaOrObjectProperty] of (0, entries_1.entries)(schemas)) {- const valueSchema = (0, property_1.isProperty)(schemaOrObjectProperty)- ? schemaOrObjectProperty.valueSchema- : schemaOrObjectProperty;- if (await isSchemaRequired(valueSchema)) {- requiredKeys.push(parsedKey);- }- }- return validateAndTransformObject({- value: parsed,- requiredKeys,- getProperty: (parsedKey) => {- const property = schemas[parsedKey];- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition- if (property == null) {- return undefined;- }- if ((0, property_1.isProperty)(property)) {- return {- transformedKey: property.rawKey,- transform: (propertyValue) => property.valueSchema.json(propertyValue, {- ...opts,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), parsedKey],- }),- };- }- else {- return {- transformedKey: parsedKey,- transform: (propertyValue) => property.json(propertyValue, {- ...opts,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), parsedKey],- }),- };- }- },- unrecognizedObjectKeys: opts?.unrecognizedObjectKeys,- skipValidation: opts?.skipValidation,- breadcrumbsPrefix: opts?.breadcrumbsPrefix,- });- },- getType: () => Schema_1.SchemaType.OBJECT,- };- return {- ...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- ...(0, object_like_1.getObjectLikeUtils)(baseSchema),- ...getObjectUtils(baseSchema),- };-}-exports.object = object;-async function validateAndTransformObject({ value, requiredKeys, getProperty, unrecognizedObjectKeys = "fail", skipValidation = false, breadcrumbsPrefix = [], }) {- if (!(0, isPlainObject_1.isPlainObject)(value)) {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),- },- ],- };- }- const missingRequiredKeys = new Set(requiredKeys);- const errors = [];- const transformed = {};- for (const [preTransformedKey, preTransformedItemValue] of Object.entries(value)) {- const property = getProperty(preTransformedKey);- if (property != null) {- missingRequiredKeys.delete(preTransformedKey);- const value = await property.transform(preTransformedItemValue);- if (value.ok) {- transformed[property.transformedKey] = value.value;- }- else {- transformed[preTransformedKey] = preTransformedItemValue;- errors.push(...value.errors);- }- }- else {- switch (unrecognizedObjectKeys) {- case "fail":- errors.push({- path: [...breadcrumbsPrefix, preTransformedKey],- message: `Unexpected key "${preTransformedKey}"`,- });- break;- case "strip":- break;- case "passthrough":- transformed[preTransformedKey] = preTransformedItemValue;- break;- }- }- }- errors.push(...requiredKeys- .filter((key) => missingRequiredKeys.has(key))- .map((key) => ({- path: breadcrumbsPrefix,- message: `Missing required key "${key}"`,- })));- if (errors.length === 0 || skipValidation) {- return {- ok: true,- value: transformed,- };- }- else {- return {- ok: false,- errors,- };- }-}-function getObjectUtils(schema) {- return {- extend: (extension) => {- const baseSchema = {- _getParsedProperties: async () => [- ...(await schema._getParsedProperties()),- ...(await extension._getParsedProperties()),- ],- _getRawProperties: async () => [- ...(await schema._getRawProperties()),- ...(await extension._getRawProperties()),- ],- parse: async (raw, opts) => {- return validateAndTransformExtendedObject({- extensionKeys: await extension._getRawProperties(),- value: raw,- transformBase: (rawBase) => schema.parse(rawBase, opts),- transformExtension: (rawExtension) => extension.parse(rawExtension, opts),- });- },- json: async (parsed, opts) => {- return validateAndTransformExtendedObject({- extensionKeys: await extension._getParsedProperties(),- value: parsed,- transformBase: (parsedBase) => schema.json(parsedBase, opts),- transformExtension: (parsedExtension) => extension.json(parsedExtension, opts),- });- },- getType: () => Schema_1.SchemaType.OBJECT,- };- return {- ...baseSchema,- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- ...(0, object_like_1.getObjectLikeUtils)(baseSchema),- ...getObjectUtils(baseSchema),- };- },- };-}-exports.getObjectUtils = getObjectUtils;-async function validateAndTransformExtendedObject({ extensionKeys, value, transformBase, transformExtension, }) {- const extensionPropertiesSet = new Set(extensionKeys);- const [extensionProperties, baseProperties] = (0, partition_1.partition)((0, keys_1.keys)(value), (key) => extensionPropertiesSet.has(key));- const transformedBase = await transformBase((0, filterObject_1.filterObject)(value, baseProperties));- const transformedExtension = await transformExtension((0, filterObject_1.filterObject)(value, extensionProperties));- if (transformedBase.ok && transformedExtension.ok) {- return {- ok: true,- value: {- ...transformedBase.value,- ...transformedExtension.value,- },- };- }- else {- return {- ok: false,- errors: [- ...(transformedBase.ok ? [] : transformedBase.errors),- ...(transformedExtension.ok ? [] : transformedExtension.errors),- ],- };- }-}-async function isSchemaRequired(schema) {- return !(await isSchemaOptional(schema));-}-async function isSchemaOptional(schema) {- switch (await schema.getType()) {- case Schema_1.SchemaType.ANY:- case Schema_1.SchemaType.UNKNOWN:- case Schema_1.SchemaType.OPTIONAL:- return true;- default:- return false;- }-}diff --git a/generated/python/core/schemas/builders/object/property.d.ts b/generated/python/core/schemas/builders/object/property.d.tsdeleted file mode 100644index a334cf4860..0000000000--- a/generated/python/core/schemas/builders/object/property.d.ts+++ /dev/null@@ -1,8 +0,0 @@-import { Schema } from "../../Schema";-export declare function property<RawKey extends string, RawValue, ParsedValue>(rawKey: RawKey, valueSchema: Schema<RawValue, ParsedValue>): Property<RawKey, RawValue, ParsedValue>;-export interface Property<RawKey extends string, RawValue, ParsedValue> {- rawKey: RawKey;- valueSchema: Schema<RawValue, ParsedValue>;- isProperty: true;-}-export declare function isProperty<O extends Property<any, any, any>>(maybeProperty: unknown): maybeProperty is O;diff --git a/generated/python/core/schemas/builders/object/property.js b/generated/python/core/schemas/builders/object/property.jsdeleted file mode 100644index a269a9493c..0000000000--- a/generated/python/core/schemas/builders/object/property.js+++ /dev/null@@ -1,16 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.isProperty = exports.property = void 0;-function property(rawKey, valueSchema) {- return {- rawKey,- valueSchema,- isProperty: true,- };-}-exports.property = property;-function isProperty(maybeProperty) {- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition- return maybeProperty.isProperty;-}-exports.isProperty = isProperty;diff --git a/generated/python/core/schemas/builders/object/types.d.ts b/generated/python/core/schemas/builders/object/types.d.tsdeleted file mode 100644index ded5165079..0000000000--- a/generated/python/core/schemas/builders/object/types.d.ts+++ /dev/null@@ -1,26 +0,0 @@-import { BaseSchema, inferParsed, inferRaw, Schema } from "../../Schema";-import { addQuestionMarksToNullableProperties } from "../../utils/addQuestionMarksToNullableProperties";-import { ObjectLikeUtils } from "../object-like";-import { SchemaUtils } from "../schema-utils";-import { Property } from "./property";-export declare type ObjectSchema<Raw, Parsed> = BaseObjectSchema<Raw, Parsed> & ObjectLikeUtils<Raw, Parsed> & ObjectUtils<Raw, Parsed> & SchemaUtils<Raw, Parsed>;-export interface BaseObjectSchema<Raw, Parsed> extends BaseSchema<Raw, Parsed> {- _getRawProperties: () => Promise<(keyof Raw)[]>;- _getParsedProperties: () => Promise<(keyof Parsed)[]>;-}-export interface ObjectUtils<Raw, Parsed> {- extend: <RawExtension, ParsedExtension>(schemas: ObjectSchema<RawExtension, ParsedExtension>) => ObjectSchema<Raw & RawExtension, Parsed & ParsedExtension>;-}-export declare type inferRawObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<infer Raw, any> ? Raw : never;-export declare type inferParsedObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<any, infer Parsed> ? Parsed : never;-export declare type inferObjectSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectFromPropertySchemas<T>>;-export declare type inferRawObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{- [ParsedKey in keyof T as inferRawKey<ParsedKey, T[ParsedKey]>]: inferRawPropertySchema<T[ParsedKey]>;-}>;-export declare type inferParsedObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{- [K in keyof T]: inferParsedPropertySchema<T[K]>;-}>;-export declare type PropertySchemas<ParsedKeys extends string | number | symbol> = Record<ParsedKeys, Property<any, any, any> | Schema<any, any>>;-export declare type inferRawPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, infer Raw, any> ? Raw : P extends Schema<any, any> ? inferRaw<P> : never;-export declare type inferParsedPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, any, infer Parsed> ? Parsed : P extends Schema<any, any> ? inferParsed<P> : never;-export declare type inferRawKey<ParsedKey extends string | number | symbol, P extends Property<any, any, any> | Schema<any, any>> = P extends Property<infer Raw, any, any> ? Raw : ParsedKey;diff --git a/generated/python/core/schemas/builders/object/types.js b/generated/python/core/schemas/builders/object/types.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/core/schemas/builders/object/types.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/core/schemas/builders/primitives/any.d.ts b/generated/python/core/schemas/builders/primitives/any.d.tsdeleted file mode 100644index e818e34670..0000000000--- a/generated/python/core/schemas/builders/primitives/any.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare const any: () => import("../../Schema").Schema<any, any>;diff --git a/generated/python/core/schemas/builders/primitives/any.js b/generated/python/core/schemas/builders/primitives/any.jsdeleted file mode 100644index 0c6fe3c126..0000000000--- a/generated/python/core/schemas/builders/primitives/any.js+++ /dev/null@@ -1,6 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.any = void 0;-const Schema_1 = require("../../Schema");-const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");-exports.any = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.ANY, (value) => ({ ok: true, value }));diff --git a/generated/python/core/schemas/builders/primitives/boolean.d.ts b/generated/python/core/schemas/builders/primitives/boolean.d.tsdeleted file mode 100644index 0efe0adbe7..0000000000--- a/generated/python/core/schemas/builders/primitives/boolean.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare const boolean: () => import("../../Schema").Schema<boolean, boolean>;diff --git a/generated/python/core/schemas/builders/primitives/boolean.js b/generated/python/core/schemas/builders/primitives/boolean.jsdeleted file mode 100644index 81152deff5..0000000000--- a/generated/python/core/schemas/builders/primitives/boolean.js+++ /dev/null@@ -1,25 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.boolean = void 0;-const Schema_1 = require("../../Schema");-const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-exports.boolean = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.BOOLEAN, (value, { breadcrumbsPrefix = [] } = {}) => {- if (typeof value === "boolean") {- return {- ok: true,- value,- };- }- else {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "boolean"),- },- ],- };- }-});diff --git a/generated/python/core/schemas/builders/primitives/index.d.ts b/generated/python/core/schemas/builders/primitives/index.d.tsdeleted file mode 100644index 788f9416bf..0000000000--- a/generated/python/core/schemas/builders/primitives/index.d.ts+++ /dev/null@@ -1,5 +0,0 @@-export { any } from "./any";-export { boolean } from "./boolean";-export { number } from "./number";-export { string } from "./string";-export { unknown } from "./unknown";diff --git a/generated/python/core/schemas/builders/primitives/index.js b/generated/python/core/schemas/builders/primitives/index.jsdeleted file mode 100644index 1cb8b3802c..0000000000--- a/generated/python/core/schemas/builders/primitives/index.js+++ /dev/null@@ -1,13 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.unknown = exports.string = exports.number = exports.boolean = exports.any = void 0;-var any_1 = require("./any");-Object.defineProperty(exports, "any", { enumerable: true, get: function () { return any_1.any; } });-var boolean_1 = require("./boolean");-Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return boolean_1.boolean; } });-var number_1 = require("./number");-Object.defineProperty(exports, "number", { enumerable: true, get: function () { return number_1.number; } });-var string_1 = require("./string");-Object.defineProperty(exports, "string", { enumerable: true, get: function () { return string_1.string; } });-var unknown_1 = require("./unknown");-Object.defineProperty(exports, "unknown", { enumerable: true, get: function () { return unknown_1.unknown; } });diff --git a/generated/python/core/schemas/builders/primitives/number.d.ts b/generated/python/core/schemas/builders/primitives/number.d.tsdeleted file mode 100644index e1de2f5263..0000000000--- a/generated/python/core/schemas/builders/primitives/number.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare const number: () => import("../../Schema").Schema<number, number>;diff --git a/generated/python/core/schemas/builders/primitives/number.js b/generated/python/core/schemas/builders/primitives/number.jsdeleted file mode 100644index 40095cc867..0000000000--- a/generated/python/core/schemas/builders/primitives/number.js+++ /dev/null@@ -1,25 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.number = void 0;-const Schema_1 = require("../../Schema");-const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-exports.number = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.NUMBER, (value, { breadcrumbsPrefix = [] } = {}) => {- if (typeof value === "number") {- return {- ok: true,- value,- };- }- else {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "number"),- },- ],- };- }-});diff --git a/generated/python/core/schemas/builders/primitives/string.d.ts b/generated/python/core/schemas/builders/primitives/string.d.tsdeleted file mode 100644index 03817da8f4..0000000000--- a/generated/python/core/schemas/builders/primitives/string.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare const string: () => import("../../Schema").Schema<string, string>;diff --git a/generated/python/core/schemas/builders/primitives/string.js b/generated/python/core/schemas/builders/primitives/string.jsdeleted file mode 100644index 32782ea763..0000000000--- a/generated/python/core/schemas/builders/primitives/string.js+++ /dev/null@@ -1,25 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.string = void 0;-const Schema_1 = require("../../Schema");-const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-exports.string = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.STRING, (value, { breadcrumbsPrefix = [] } = {}) => {- if (typeof value === "string") {- return {- ok: true,- value,- };- }- else {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "string"),- },- ],- };- }-});diff --git a/generated/python/core/schemas/builders/primitives/unknown.d.ts b/generated/python/core/schemas/builders/primitives/unknown.d.tsdeleted file mode 100644index 411d10eff9..0000000000--- a/generated/python/core/schemas/builders/primitives/unknown.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare const unknown: () => import("../../Schema").Schema<unknown, unknown>;diff --git a/generated/python/core/schemas/builders/primitives/unknown.js b/generated/python/core/schemas/builders/primitives/unknown.jsdeleted file mode 100644index 631d07c835..0000000000--- a/generated/python/core/schemas/builders/primitives/unknown.js+++ /dev/null@@ -1,6 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.unknown = void 0;-const Schema_1 = require("../../Schema");-const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");-exports.unknown = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.UNKNOWN, (value) => ({ ok: true, value }));diff --git a/generated/python/core/schemas/builders/record/index.d.ts b/generated/python/core/schemas/builders/record/index.d.tsdeleted file mode 100644index 18a3253853..0000000000--- a/generated/python/core/schemas/builders/record/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export { record } from "./record";-export { type BaseRecordSchema, type RecordSchema } from "./types";diff --git a/generated/python/core/schemas/builders/record/index.js b/generated/python/core/schemas/builders/record/index.jsdeleted file mode 100644index 96633da9b8..0000000000--- a/generated/python/core/schemas/builders/record/index.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.record = void 0;-var record_1 = require("./record");-Object.defineProperty(exports, "record", { enumerable: true, get: function () { return record_1.record; } });diff --git a/generated/python/core/schemas/builders/record/record.d.ts b/generated/python/core/schemas/builders/record/record.d.tsdeleted file mode 100644index 843be20783..0000000000--- a/generated/python/core/schemas/builders/record/record.d.ts+++ /dev/null@@ -1,3 +0,0 @@-import { Schema } from "../../Schema";-import { RecordSchema } from "./types";-export declare function record<RawKey extends string | number, RawValue, ParsedValue, ParsedKey extends string | number>(keySchema: Schema<RawKey, ParsedKey>, valueSchema: Schema<RawValue, ParsedValue>): RecordSchema<RawKey, RawValue, ParsedKey, ParsedValue>;diff --git a/generated/python/core/schemas/builders/record/record.js b/generated/python/core/schemas/builders/record/record.jsdeleted file mode 100644index 0a0e280dc8..0000000000--- a/generated/python/core/schemas/builders/record/record.js+++ /dev/null@@ -1,101 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.record = void 0;-const Schema_1 = require("../../Schema");-const entries_1 = require("../../utils/entries");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-const isPlainObject_1 = require("../../utils/isPlainObject");-const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");-const schema_utils_1 = require("../schema-utils");-function record(keySchema, valueSchema) {- const baseSchema = {- parse: async (raw, opts) => {- return validateAndTransformRecord({- value: raw,- isKeyNumeric: (await keySchema.getType()) === Schema_1.SchemaType.NUMBER,- transformKey: (key) => keySchema.parse(key, {- ...opts,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `${key} (key)`],- }),- transformValue: (value, key) => valueSchema.parse(value, {- ...opts,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `${key}`],- }),- breadcrumbsPrefix: opts?.breadcrumbsPrefix,- });- },- json: async (parsed, opts) => {- return validateAndTransformRecord({- value: parsed,- isKeyNumeric: (await keySchema.getType()) === Schema_1.SchemaType.NUMBER,- transformKey: (key) => keySchema.json(key, {- ...opts,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `${key} (key)`],- }),- transformValue: (value, key) => valueSchema.json(value, {- ...opts,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), `${key}`],- }),- breadcrumbsPrefix: opts?.breadcrumbsPrefix,- });- },- getType: () => Schema_1.SchemaType.RECORD,- };- return {- ...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- };-}-exports.record = record;-async function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [], }) {- if (!(0, isPlainObject_1.isPlainObject)(value)) {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),- },- ],- };- }- return (0, entries_1.entries)(value).reduce(async (accPromise, [stringKey, value]) => {- // skip nullish keys- if (value == null) {- return accPromise;- }- const acc = await accPromise;- let key = stringKey;- if (isKeyNumeric) {- const numberKey = stringKey.length > 0 ? Number(stringKey) : NaN;- if (!isNaN(numberKey)) {- key = numberKey;- }- }- const transformedKey = await transformKey(key);- const transformedValue = await transformValue(value, key);- if (acc.ok && transformedKey.ok && transformedValue.ok) {- return {- ok: true,- value: {- ...acc.value,- [transformedKey.value]: transformedValue.value,- },- };- }- const errors = [];- if (!acc.ok) {- errors.push(...acc.errors);- }- if (!transformedKey.ok) {- errors.push(...transformedKey.errors);- }- if (!transformedValue.ok) {- errors.push(...transformedValue.errors);- }- return {- ok: false,- errors,- };- }, Promise.resolve({ ok: true, value: {} }));-}diff --git a/generated/python/core/schemas/builders/record/types.d.ts b/generated/python/core/schemas/builders/record/types.d.tsdeleted file mode 100644index e4ed1b903e..0000000000--- a/generated/python/core/schemas/builders/record/types.d.ts+++ /dev/null@@ -1,4 +0,0 @@-import { BaseSchema } from "../../Schema";-import { SchemaUtils } from "../schema-utils";-export declare type RecordSchema<RawKey extends string | number, RawValue, ParsedKey extends string | number, ParsedValue> = BaseRecordSchema<RawKey, RawValue, ParsedKey, ParsedValue> & SchemaUtils<Record<RawKey, RawValue>, Record<ParsedKey, ParsedValue>>;-export declare type BaseRecordSchema<RawKey extends string | number, RawValue, ParsedKey extends string | number, ParsedValue> = BaseSchema<Record<RawKey, RawValue>, Record<ParsedKey, ParsedValue>>;diff --git a/generated/python/core/schemas/builders/record/types.js b/generated/python/core/schemas/builders/record/types.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/core/schemas/builders/record/types.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/core/schemas/builders/schema-utils/JsonError.d.ts b/generated/python/core/schemas/builders/schema-utils/JsonError.d.tsdeleted file mode 100644index 40796c8fc8..0000000000--- a/generated/python/core/schemas/builders/schema-utils/JsonError.d.ts+++ /dev/null@@ -1,5 +0,0 @@-import { ValidationError } from "../../Schema";-export declare class JsonError extends Error {- readonly errors: ValidationError[];- constructor(errors: ValidationError[]);-}diff --git a/generated/python/core/schemas/builders/schema-utils/JsonError.js b/generated/python/core/schemas/builders/schema-utils/JsonError.jsdeleted file mode 100644index 2c98e80523..0000000000--- a/generated/python/core/schemas/builders/schema-utils/JsonError.js+++ /dev/null@@ -1,13 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.JsonError = void 0;-const stringifyValidationErrors_1 = require("./stringifyValidationErrors");-class JsonError extends Error {- errors;- constructor(errors) {- super(errors.map(stringifyValidationErrors_1.stringifyValidationError).join("; "));- this.errors = errors;- Object.setPrototypeOf(this, JsonError.prototype);- }-}-exports.JsonError = JsonError;diff --git a/generated/python/core/schemas/builders/schema-utils/ParseError.d.ts b/generated/python/core/schemas/builders/schema-utils/ParseError.d.tsdeleted file mode 100644index 182193e4dc..0000000000--- a/generated/python/core/schemas/builders/schema-utils/ParseError.d.ts+++ /dev/null@@ -1,5 +0,0 @@-import { ValidationError } from "../../Schema";-export declare class ParseError extends Error {- readonly errors: ValidationError[];- constructor(errors: ValidationError[]);-}diff --git a/generated/python/core/schemas/builders/schema-utils/ParseError.js b/generated/python/core/schemas/builders/schema-utils/ParseError.jsdeleted file mode 100644index adaa5c57a2..0000000000--- a/generated/python/core/schemas/builders/schema-utils/ParseError.js+++ /dev/null@@ -1,13 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.ParseError = void 0;-const stringifyValidationErrors_1 = require("./stringifyValidationErrors");-class ParseError extends Error {- errors;- constructor(errors) {- super(errors.map(stringifyValidationErrors_1.stringifyValidationError).join("; "));- this.errors = errors;- Object.setPrototypeOf(this, ParseError.prototype);- }-}-exports.ParseError = ParseError;diff --git a/generated/python/core/schemas/builders/schema-utils/getSchemaUtils.d.ts b/generated/python/core/schemas/builders/schema-utils/getSchemaUtils.d.tsdeleted file mode 100644index 7dc9af25a2..0000000000--- a/generated/python/core/schemas/builders/schema-utils/getSchemaUtils.d.ts+++ /dev/null@@ -1,17 +0,0 @@-import { BaseSchema, Schema, SchemaOptions } from "../../Schema";-export interface SchemaUtils<Raw, Parsed> {- optional: () => Schema<Raw | null | undefined, Parsed | undefined>;- transform: <Transformed>(transformer: SchemaTransformer<Parsed, Transformed>) => Schema<Raw, Transformed>;- parseOrThrow: (raw: unknown, opts?: SchemaOptions) => Promise<Parsed>;- jsonOrThrow: (raw: unknown, opts?: SchemaOptions) => Promise<Raw>;-}-export interface SchemaTransformer<Parsed, Transformed> {- transform: (parsed: Parsed) => Transformed;- untransform: (transformed: any) => Parsed;-}-export declare function getSchemaUtils<Raw, Parsed>(schema: BaseSchema<Raw, Parsed>): SchemaUtils<Raw, Parsed>;-/**- * schema utils are defined in one file to resolve issues with circular imports- */-export declare function optional<Raw, Parsed>(schema: BaseSchema<Raw, Parsed>): Schema<Raw | null | undefined, Parsed | undefined>;-export declare function transform<Raw, Parsed, Transformed>(schema: BaseSchema<Raw, Parsed>, transformer: SchemaTransformer<Parsed, Transformed>): Schema<Raw, Transformed>;diff --git a/generated/python/core/schemas/builders/schema-utils/getSchemaUtils.js b/generated/python/core/schemas/builders/schema-utils/getSchemaUtils.jsdeleted file mode 100644index a593ddaf4a..0000000000--- a/generated/python/core/schemas/builders/schema-utils/getSchemaUtils.js+++ /dev/null@@ -1,82 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.transform = exports.optional = exports.getSchemaUtils = void 0;-const Schema_1 = require("../../Schema");-const JsonError_1 = require("./JsonError");-const ParseError_1 = require("./ParseError");-function getSchemaUtils(schema) {- return {- optional: () => optional(schema),- transform: (transformer) => transform(schema, transformer),- parseOrThrow: async (raw, opts) => {- const parsed = await schema.parse(raw, opts);- if (parsed.ok) {- return parsed.value;- }- throw new ParseError_1.ParseError(parsed.errors);- },- jsonOrThrow: async (parsed, opts) => {- const raw = await schema.json(parsed, opts);- if (raw.ok) {- return raw.value;- }- throw new JsonError_1.JsonError(raw.errors);- },- };-}-exports.getSchemaUtils = getSchemaUtils;-/**- * schema utils are defined in one file to resolve issues with circular imports- */-function optional(schema) {- const baseSchema = {- parse: (raw, opts) => {- if (raw == null) {- return {- ok: true,- value: undefined,- };- }- return schema.parse(raw, opts);- },- json: (parsed, opts) => {- if (parsed == null) {- return {- ok: true,- value: null,- };- }- return schema.json(parsed, opts);- },- getType: () => Schema_1.SchemaType.OPTIONAL,- };- return {- ...baseSchema,- ...getSchemaUtils(baseSchema),- };-}-exports.optional = optional;-function transform(schema, transformer) {- const baseSchema = {- parse: async (raw, opts) => {- const parsed = await schema.parse(raw, opts);- if (!parsed.ok) {- return parsed;- }- return {- ok: true,- value: transformer.transform(parsed.value),- };- },- json: async (transformed, opts) => {- const parsed = await transformer.untransform(transformed);- return schema.json(parsed, opts);- },- getType: () => schema.getType(),- };- return {- ...baseSchema,- ...getSchemaUtils(baseSchema),- };-}-exports.transform = transform;diff --git a/generated/python/core/schemas/builders/schema-utils/index.d.ts b/generated/python/core/schemas/builders/schema-utils/index.d.tsdeleted file mode 100644index d499652aa5..0000000000--- a/generated/python/core/schemas/builders/schema-utils/index.d.ts+++ /dev/null@@ -1,3 +0,0 @@-export { getSchemaUtils, optional, transform, type SchemaUtils } from "./getSchemaUtils";-export { JsonError } from "./JsonError";-export { ParseError } from "./ParseError";diff --git a/generated/python/core/schemas/builders/schema-utils/index.js b/generated/python/core/schemas/builders/schema-utils/index.jsdeleted file mode 100644index e0260b1a5d..0000000000--- a/generated/python/core/schemas/builders/schema-utils/index.js+++ /dev/null@@ -1,11 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.ParseError = exports.JsonError = exports.transform = exports.optional = exports.getSchemaUtils = void 0;-var getSchemaUtils_1 = require("./getSchemaUtils");-Object.defineProperty(exports, "getSchemaUtils", { enumerable: true, get: function () { return getSchemaUtils_1.getSchemaUtils; } });-Object.defineProperty(exports, "optional", { enumerable: true, get: function () { return getSchemaUtils_1.optional; } });-Object.defineProperty(exports, "transform", { enumerable: true, get: function () { return getSchemaUtils_1.transform; } });-var JsonError_1 = require("./JsonError");-Object.defineProperty(exports, "JsonError", { enumerable: true, get: function () { return JsonError_1.JsonError; } });-var ParseError_1 = require("./ParseError");-Object.defineProperty(exports, "ParseError", { enumerable: true, get: function () { return ParseError_1.ParseError; } });diff --git a/generated/python/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts b/generated/python/core/schemas/builders/schema-utils/stringifyValidationErrors.d.tsdeleted file mode 100644index e24cad9c2e..0000000000--- a/generated/python/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts+++ /dev/null@@ -1,2 +0,0 @@-import { ValidationError } from "../../Schema";-export declare function stringifyValidationError(error: ValidationError): string;diff --git a/generated/python/core/schemas/builders/schema-utils/stringifyValidationErrors.js b/generated/python/core/schemas/builders/schema-utils/stringifyValidationErrors.jsdeleted file mode 100644index 93b543cfcc..0000000000--- a/generated/python/core/schemas/builders/schema-utils/stringifyValidationErrors.js+++ /dev/null@@ -1,10 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.stringifyValidationError = void 0;-function stringifyValidationError(error) {- if (error.path.length === 0) {- return error.message;- }- return `${error.path.join(" -> ")}: ${error.message}`;-}-exports.stringifyValidationError = stringifyValidationError;diff --git a/generated/python/core/schemas/builders/set/index.d.ts b/generated/python/core/schemas/builders/set/index.d.tsdeleted file mode 100644index f3310e8bda..0000000000--- a/generated/python/core/schemas/builders/set/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export { set } from "./set";diff --git a/generated/python/core/schemas/builders/set/index.js b/generated/python/core/schemas/builders/set/index.jsdeleted file mode 100644index 9f2833249c..0000000000--- a/generated/python/core/schemas/builders/set/index.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.set = void 0;-var set_1 = require("./set");-Object.defineProperty(exports, "set", { enumerable: true, get: function () { return set_1.set; } });diff --git a/generated/python/core/schemas/builders/set/set.d.ts b/generated/python/core/schemas/builders/set/set.d.tsdeleted file mode 100644index d96a62c523..0000000000--- a/generated/python/core/schemas/builders/set/set.d.ts+++ /dev/null@@ -1,2 +0,0 @@-import { Schema } from "../../Schema";-export declare function set<Raw, Parsed>(schema: Schema<Raw, Parsed>): Schema<Raw[], Set<Parsed>>;diff --git a/generated/python/core/schemas/builders/set/set.js b/generated/python/core/schemas/builders/set/set.jsdeleted file mode 100644index 2ce2c001f2..0000000000--- a/generated/python/core/schemas/builders/set/set.js+++ /dev/null@@ -1,46 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.set = void 0;-const Schema_1 = require("../../Schema");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");-const list_1 = require("../list");-const schema_utils_1 = require("../schema-utils");-function set(schema) {- const listSchema = (0, list_1.list)(schema);- const baseSchema = {- parse: async (raw, opts) => {- const parsedList = await listSchema.parse(raw, opts);- if (parsedList.ok) {- return {- ok: true,- value: new Set(parsedList.value),- };- }- else {- return parsedList;- }- },- json: async (parsed, opts) => {- if (!(parsed instanceof Set)) {- return {- ok: false,- errors: [- {- path: opts?.breadcrumbsPrefix ?? [],- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(parsed, "Set"),- },- ],- };- }- const jsonList = await listSchema.json([...parsed], opts);- return jsonList;- },- getType: () => Schema_1.SchemaType.SET,- };- return {- ...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- };-}-exports.set = set;diff --git a/generated/python/core/schemas/builders/undiscriminated-union/index.d.ts b/generated/python/core/schemas/builders/undiscriminated-union/index.d.tsdeleted file mode 100644index 31e2382cd1..0000000000--- a/generated/python/core/schemas/builders/undiscriminated-union/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export { type inferParsedUnidiscriminatedUnionSchema, type inferRawUnidiscriminatedUnionSchema, type UndiscriminatedUnionSchema, } from "./types";-export { undiscriminatedUnion } from "./undiscriminatedUnion";diff --git a/generated/python/core/schemas/builders/undiscriminated-union/index.js b/generated/python/core/schemas/builders/undiscriminated-union/index.jsdeleted file mode 100644index 7003b2d0ba..0000000000--- a/generated/python/core/schemas/builders/undiscriminated-union/index.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.undiscriminatedUnion = void 0;-var undiscriminatedUnion_1 = require("./undiscriminatedUnion");-Object.defineProperty(exports, "undiscriminatedUnion", { enumerable: true, get: function () { return undiscriminatedUnion_1.undiscriminatedUnion; } });diff --git a/generated/python/core/schemas/builders/undiscriminated-union/types.d.ts b/generated/python/core/schemas/builders/undiscriminated-union/types.d.tsdeleted file mode 100644index 9ec34a7a32..0000000000--- a/generated/python/core/schemas/builders/undiscriminated-union/types.d.ts+++ /dev/null@@ -1,4 +0,0 @@-import { inferParsed, inferRaw, Schema } from "../../Schema";-export declare type UndiscriminatedUnionSchema<Schemas extends [...Schema[]]> = Schema<inferRawUnidiscriminatedUnionSchema<Schemas>, inferParsedUnidiscriminatedUnionSchema<Schemas>>;-export declare type inferRawUnidiscriminatedUnionSchema<Schemas extends [...Schema[]]> = inferRaw<Schemas[number]>;-export declare type inferParsedUnidiscriminatedUnionSchema<Schemas extends [...Schema[]]> = inferParsed<Schemas[number]>;diff --git a/generated/python/core/schemas/builders/undiscriminated-union/types.js b/generated/python/core/schemas/builders/undiscriminated-union/types.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/core/schemas/builders/undiscriminated-union/types.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts b/generated/python/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.tsdeleted file mode 100644index c7c0e8b4c9..0000000000--- a/generated/python/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts+++ /dev/null@@ -1,3 +0,0 @@-import { Schema } from "../../Schema";-import { inferParsedUnidiscriminatedUnionSchema, inferRawUnidiscriminatedUnionSchema } from "./types";-export declare function undiscriminatedUnion<Schemas extends [Schema<any, any>, ...Schema<any, any>[]]>(schemas: Schemas): Schema<inferRawUnidiscriminatedUnionSchema<Schemas>, inferParsedUnidiscriminatedUnionSchema<Schemas>>;diff --git a/generated/python/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js b/generated/python/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.jsdeleted file mode 100644index 82d351a66f..0000000000--- a/generated/python/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js+++ /dev/null@@ -1,43 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.undiscriminatedUnion = void 0;-const Schema_1 = require("../../Schema");-const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");-const schema_utils_1 = require("../schema-utils");-function undiscriminatedUnion(schemas) {- const baseSchema = {- parse: async (raw, opts) => {- return validateAndTransformUndiscriminatedUnion((schema) => schema.parse(raw, opts), schemas);- },- json: async (parsed, opts) => {- return validateAndTransformUndiscriminatedUnion((schema) => schema.json(parsed, opts), schemas);- },- getType: () => Schema_1.SchemaType.UNDISCRIMINATED_UNION,- };- return {- ...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- };-}-exports.undiscriminatedUnion = undiscriminatedUnion;-async function validateAndTransformUndiscriminatedUnion(transform, schemas) {- const errors = [];- for (const [index, schema] of schemas.entries()) {- const transformed = await transform(schema);- if (transformed.ok) {- return transformed;- }- else {- for (const error of errors) {- errors.push({- path: error.path,- message: `[Variant ${index}] ${error.message}`,- });- }- }- }- return {- ok: false,- errors,- };-}diff --git a/generated/python/core/schemas/builders/union/discriminant.d.ts b/generated/python/core/schemas/builders/union/discriminant.d.tsdeleted file mode 100644index 656c7d0ff5..0000000000--- a/generated/python/core/schemas/builders/union/discriminant.d.ts+++ /dev/null@@ -1,5 +0,0 @@-export declare function discriminant<RawDiscriminant extends string, ParsedDiscriminant extends string>(parsedDiscriminant: ParsedDiscriminant, rawDiscriminant: RawDiscriminant): Discriminant<RawDiscriminant, ParsedDiscriminant>;-export interface Discriminant<RawDiscriminant extends string, ParsedDiscriminant extends string> {- parsedDiscriminant: ParsedDiscriminant;- rawDiscriminant: RawDiscriminant;-}diff --git a/generated/python/core/schemas/builders/union/discriminant.js b/generated/python/core/schemas/builders/union/discriminant.jsdeleted file mode 100644index 9f033e9371..0000000000--- a/generated/python/core/schemas/builders/union/discriminant.js+++ /dev/null@@ -1,10 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.discriminant = void 0;-function discriminant(parsedDiscriminant, rawDiscriminant) {- return {- parsedDiscriminant,- rawDiscriminant,- };-}-exports.discriminant = discriminant;diff --git a/generated/python/core/schemas/builders/union/index.d.ts b/generated/python/core/schemas/builders/union/index.d.tsdeleted file mode 100644index 0fe416099e..0000000000--- a/generated/python/core/schemas/builders/union/index.d.ts+++ /dev/null@@ -1,3 +0,0 @@-export { discriminant, type Discriminant } from "./discriminant";-export { type inferParsedDiscriminant, type inferParsedUnion, type inferRawDiscriminant, type inferRawUnion, type UnionSubtypes, } from "./types";-export { union } from "./union";diff --git a/generated/python/core/schemas/builders/union/index.js b/generated/python/core/schemas/builders/union/index.jsdeleted file mode 100644index 54416d3192..0000000000--- a/generated/python/core/schemas/builders/union/index.js+++ /dev/null@@ -1,7 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.union = exports.discriminant = void 0;-var discriminant_1 = require("./discriminant");-Object.defineProperty(exports, "discriminant", { enumerable: true, get: function () { return discriminant_1.discriminant; } });-var union_1 = require("./union");-Object.defineProperty(exports, "union", { enumerable: true, get: function () { return union_1.union; } });diff --git a/generated/python/core/schemas/builders/union/types.d.ts b/generated/python/core/schemas/builders/union/types.d.tsdeleted file mode 100644index 4c0016aa98..0000000000--- a/generated/python/core/schemas/builders/union/types.d.ts+++ /dev/null@@ -1,13 +0,0 @@-import { inferParsedObject, inferRawObject, ObjectSchema } from "../object";-import { Discriminant } from "./discriminant";-export declare type UnionSubtypes<DiscriminantValues extends string | number | symbol> = {- [K in DiscriminantValues]: ObjectSchema<any, any>;-};-export declare type inferRawUnion<D extends string | Discriminant<any, any>, U extends UnionSubtypes<keyof U>> = {- [K in keyof U]: Record<inferRawDiscriminant<D>, K> & inferRawObject<U[K]>;-}[keyof U];-export declare type inferParsedUnion<D extends string | Discriminant<any, any>, U extends UnionSubtypes<keyof U>> = {- [K in keyof U]: Record<inferParsedDiscriminant<D>, K> & inferParsedObject<U[K]>;-}[keyof U];-export declare type inferRawDiscriminant<D extends string | Discriminant<any, any>> = D extends string ? D : D extends Discriminant<infer Raw, any> ? Raw : never;-export declare type inferParsedDiscriminant<D extends string | Discriminant<any, any>> = D extends string ? D : D extends Discriminant<any, infer Parsed> ? Parsed : never;diff --git a/generated/python/core/schemas/builders/union/types.js b/generated/python/core/schemas/builders/union/types.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/core/schemas/builders/union/types.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/core/schemas/builders/union/union.d.ts b/generated/python/core/schemas/builders/union/union.d.tsdeleted file mode 100644index 6ebd091ab3..0000000000--- a/generated/python/core/schemas/builders/union/union.d.ts+++ /dev/null@@ -1,4 +0,0 @@-import { ObjectLikeSchema } from "../object-like";-import { Discriminant } from "./discriminant";-import { inferParsedUnion, inferRawUnion, UnionSubtypes } from "./types";-export declare function union<D extends string | Discriminant<any, any>, U extends UnionSubtypes<any>>(discriminant: D, union: U): ObjectLikeSchema<inferRawUnion<D, U>, inferParsedUnion<D, U>>;diff --git a/generated/python/core/schemas/builders/union/union.js b/generated/python/core/schemas/builders/union/union.jsdeleted file mode 100644index 71afe0f2a7..0000000000--- a/generated/python/core/schemas/builders/union/union.js+++ /dev/null@@ -1,123 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.union = void 0;-const Schema_1 = require("../../Schema");-const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");-const isPlainObject_1 = require("../../utils/isPlainObject");-const keys_1 = require("../../utils/keys");-const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");-const enum_1 = require("../enum");-const object_like_1 = require("../object-like");-const schema_utils_1 = require("../schema-utils");-function union(discriminant, union) {- const rawDiscriminant = typeof discriminant === "string" ? discriminant : discriminant.rawDiscriminant;- const parsedDiscriminant = typeof discriminant === "string"- ? discriminant- : discriminant.parsedDiscriminant;- const discriminantValueSchema = (0, enum_1.enum_)((0, keys_1.keys)(union));- const baseSchema = {- parse: async (raw, opts) => {- return transformAndValidateUnion({- value: raw,- discriminant: rawDiscriminant,- transformedDiscriminant: parsedDiscriminant,- transformDiscriminantValue: (discriminantValue) => discriminantValueSchema.parse(discriminantValue, {- allowUnrecognizedEnumValues: opts?.allowUnrecognizedUnionMembers,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), rawDiscriminant],- }),- getAdditionalPropertiesSchema: (discriminantValue) => union[discriminantValue],- allowUnrecognizedUnionMembers: opts?.allowUnrecognizedUnionMembers,- transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.parse(additionalProperties, opts),- breadcrumbsPrefix: opts?.breadcrumbsPrefix,- });- },- json: async (parsed, opts) => {- return transformAndValidateUnion({- value: parsed,- discriminant: parsedDiscriminant,- transformedDiscriminant: rawDiscriminant,- transformDiscriminantValue: (discriminantValue) => discriminantValueSchema.json(discriminantValue, {- allowUnrecognizedEnumValues: opts?.allowUnrecognizedUnionMembers,- breadcrumbsPrefix: [...(opts?.breadcrumbsPrefix ?? []), parsedDiscriminant],- }),- getAdditionalPropertiesSchema: (discriminantValue) => union[discriminantValue],- allowUnrecognizedUnionMembers: opts?.allowUnrecognizedUnionMembers,- transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.json(additionalProperties, opts),- breadcrumbsPrefix: opts?.breadcrumbsPrefix,- });- },- getType: () => Schema_1.SchemaType.UNION,- };- return {- ...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- ...(0, object_like_1.getObjectLikeUtils)(baseSchema),- };-}-exports.union = union;-async function transformAndValidateUnion({ value, discriminant, transformedDiscriminant, transformDiscriminantValue, getAdditionalPropertiesSchema, allowUnrecognizedUnionMembers = false, transformAdditionalProperties, breadcrumbsPrefix = [], }) {- if (!(0, isPlainObject_1.isPlainObject)(value)) {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),- },- ],- };- }- const { [discriminant]: discriminantValue, ...additionalProperties } = value;- if (discriminantValue == null) {- return {- ok: false,- errors: [- {- path: breadcrumbsPrefix,- message: `Missing discriminant ("${discriminant}")`,- },- ],- };- }- const transformedDiscriminantValue = await transformDiscriminantValue(discriminantValue);- if (!transformedDiscriminantValue.ok) {- return {- ok: false,- errors: transformedDiscriminantValue.errors,- };- }- const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);- if (additionalPropertiesSchema == null) {- if (allowUnrecognizedUnionMembers) {- return {- ok: true,- value: {- [transformedDiscriminant]: transformedDiscriminantValue.value,- ...additionalProperties,- },- };- }- else {- return {- ok: false,- errors: [- {- path: [...breadcrumbsPrefix, discriminant],- message: "Unexpected discriminant value",- },- ],- };- }- }- const transformedAdditionalProperties = await transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);- if (!transformedAdditionalProperties.ok) {- return transformedAdditionalProperties;- }- return {- ok: true,- value: {- [transformedDiscriminant]: discriminantValue,- ...transformedAdditionalProperties.value,- },- };-}diff --git a/generated/python/core/schemas/index.d.ts b/generated/python/core/schemas/index.d.tsdeleted file mode 100644index 562d151571..0000000000--- a/generated/python/core/schemas/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./builders";-export { type inferParsed, type inferRaw, type Schema, type SchemaOptions } from "./Schema";diff --git a/generated/python/core/schemas/index.js b/generated/python/core/schemas/index.jsdeleted file mode 100644index 3b189fb490..0000000000--- a/generated/python/core/schemas/index.js+++ /dev/null@@ -1,17 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./builders"), exports);diff --git a/generated/python/core/schemas/utils/MaybePromise.d.ts b/generated/python/core/schemas/utils/MaybePromise.d.tsdeleted file mode 100644index 6377c71b8d..0000000000--- a/generated/python/core/schemas/utils/MaybePromise.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare type MaybePromise<T> = T | Promise<T>;diff --git a/generated/python/core/schemas/utils/MaybePromise.js b/generated/python/core/schemas/utils/MaybePromise.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/core/schemas/utils/MaybePromise.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts b/generated/python/core/schemas/utils/addQuestionMarksToNullableProperties.d.tsdeleted file mode 100644index 1717fb115e..0000000000--- a/generated/python/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts+++ /dev/null@@ -1,7 +0,0 @@-export declare type addQuestionMarksToNullableProperties<T> = {- [K in OptionalKeys<T>]?: T[K];-} & Pick<T, RequiredKeys<T>>;-export declare type OptionalKeys<T> = {- [K in keyof T]-?: undefined extends T[K] ? K : null extends T[K] ? K : 1 extends (any extends T[K] ? 0 : 1) ? never : K;-}[keyof T];-export declare type RequiredKeys<T> = Exclude<keyof T, OptionalKeys<T>>;diff --git a/generated/python/core/schemas/utils/addQuestionMarksToNullableProperties.js b/generated/python/core/schemas/utils/addQuestionMarksToNullableProperties.jsdeleted file mode 100644index c8ad2e549b..0000000000--- a/generated/python/core/schemas/utils/addQuestionMarksToNullableProperties.js+++ /dev/null@@ -1,2 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });diff --git a/generated/python/core/schemas/utils/createIdentitySchemaCreator.d.ts b/generated/python/core/schemas/utils/createIdentitySchemaCreator.d.tsdeleted file mode 100644index 362c9e27bb..0000000000--- a/generated/python/core/schemas/utils/createIdentitySchemaCreator.d.ts+++ /dev/null@@ -1,2 +0,0 @@-import { MaybeValid, Schema, SchemaOptions, SchemaType } from "../Schema";-export declare function createIdentitySchemaCreator<T>(schemaType: SchemaType, validate: (value: unknown, opts?: SchemaOptions) => MaybeValid<T>): () => Schema<T, T>;diff --git a/generated/python/core/schemas/utils/createIdentitySchemaCreator.js b/generated/python/core/schemas/utils/createIdentitySchemaCreator.jsdeleted file mode 100644index 537fb9bec9..0000000000--- a/generated/python/core/schemas/utils/createIdentitySchemaCreator.js+++ /dev/null@@ -1,19 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.createIdentitySchemaCreator = void 0;-const schema_utils_1 = require("../builders/schema-utils");-const maybeSkipValidation_1 = require("./maybeSkipValidation");-function createIdentitySchemaCreator(schemaType, validate) {- return () => {- const baseSchema = {- parse: validate,- json: validate,- getType: () => schemaType,- };- return {- ...(0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema),- ...(0, schema_utils_1.getSchemaUtils)(baseSchema),- };- };-}-exports.createIdentitySchemaCreator = createIdentitySchemaCreator;diff --git a/generated/python/core/schemas/utils/entries.d.ts b/generated/python/core/schemas/utils/entries.d.tsdeleted file mode 100644index 918cae5016..0000000000--- a/generated/python/core/schemas/utils/entries.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare function entries<T>(object: T): [keyof T, T[keyof T]][];diff --git a/generated/python/core/schemas/utils/entries.js b/generated/python/core/schemas/utils/entries.jsdeleted file mode 100644index afa129c530..0000000000--- a/generated/python/core/schemas/utils/entries.js+++ /dev/null@@ -1,7 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.entries = void 0;-function entries(object) {- return Object.entries(object);-}-exports.entries = entries;diff --git a/generated/python/core/schemas/utils/filterObject.d.ts b/generated/python/core/schemas/utils/filterObject.d.tsdeleted file mode 100644index 6ac9051d1b..0000000000--- a/generated/python/core/schemas/utils/filterObject.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare function filterObject<T, K extends keyof T>(obj: T, keysToInclude: K[]): Pick<T, K>;diff --git a/generated/python/core/schemas/utils/filterObject.js b/generated/python/core/schemas/utils/filterObject.jsdeleted file mode 100644index e54657c95f..0000000000--- a/generated/python/core/schemas/utils/filterObject.js+++ /dev/null@@ -1,14 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.filterObject = void 0;-function filterObject(obj, keysToInclude) {- const keysToIncludeSet = new Set(keysToInclude);- return Object.entries(obj).reduce((acc, [key, value]) => {- if (keysToIncludeSet.has(key)) {- acc[key] = value;- }- return acc;- // eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter- }, {});-}-exports.filterObject = filterObject;diff --git a/generated/python/core/schemas/utils/getErrorMessageForIncorrectType.d.ts b/generated/python/core/schemas/utils/getErrorMessageForIncorrectType.d.tsdeleted file mode 100644index 396f11f768..0000000000--- a/generated/python/core/schemas/utils/getErrorMessageForIncorrectType.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare function getErrorMessageForIncorrectType(value: unknown, expectedType: string): string;diff --git a/generated/python/core/schemas/utils/getErrorMessageForIncorrectType.js b/generated/python/core/schemas/utils/getErrorMessageForIncorrectType.jsdeleted file mode 100644index 8317782510..0000000000--- a/generated/python/core/schemas/utils/getErrorMessageForIncorrectType.js+++ /dev/null@@ -1,24 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.getErrorMessageForIncorrectType = void 0;-function getErrorMessageForIncorrectType(value, expectedType) {- return `Expected ${expectedType}. Received ${getTypeAsString(value)}.`;-}-exports.getErrorMessageForIncorrectType = getErrorMessageForIncorrectType;-function getTypeAsString(value) {- if (Array.isArray(value)) {- return "list";- }- if (value === null) {- return "null";- }- switch (typeof value) {- case "string":- return `"${value}"`;- case "number":- case "boolean":- case "undefined":- return `${value}`;- }- return typeof value;-}diff --git a/generated/python/core/schemas/utils/isPlainObject.d.ts b/generated/python/core/schemas/utils/isPlainObject.d.tsdeleted file mode 100644index d35eee6b67..0000000000--- a/generated/python/core/schemas/utils/isPlainObject.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare function isPlainObject(value: unknown): value is Record<string, unknown>;diff --git a/generated/python/core/schemas/utils/isPlainObject.js b/generated/python/core/schemas/utils/isPlainObject.jsdeleted file mode 100644index 69594242d4..0000000000--- a/generated/python/core/schemas/utils/isPlainObject.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.isPlainObject = void 0;-// borrowed from https://github.com/lodash/lodash/blob/master/isPlainObject.js-function isPlainObject(value) {- if (typeof value !== "object" || value === null) {- return false;- }- if (Object.getPrototypeOf(value) === null) {- return true;- }- let proto = value;- while (Object.getPrototypeOf(proto) !== null) {- proto = Object.getPrototypeOf(proto);- }- return Object.getPrototypeOf(value) === proto;-}-exports.isPlainObject = isPlainObject;diff --git a/generated/python/core/schemas/utils/keys.d.ts b/generated/python/core/schemas/utils/keys.d.tsdeleted file mode 100644index 375c673c00..0000000000--- a/generated/python/core/schemas/utils/keys.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare function keys<T>(object: T): (keyof T)[];diff --git a/generated/python/core/schemas/utils/keys.js b/generated/python/core/schemas/utils/keys.jsdeleted file mode 100644index 8dbeb0fd75..0000000000--- a/generated/python/core/schemas/utils/keys.js+++ /dev/null@@ -1,7 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.keys = void 0;-function keys(object) {- return Object.keys(object);-}-exports.keys = keys;diff --git a/generated/python/core/schemas/utils/maybeSkipValidation.d.ts b/generated/python/core/schemas/utils/maybeSkipValidation.d.tsdeleted file mode 100644index 3b0dc64cab..0000000000--- a/generated/python/core/schemas/utils/maybeSkipValidation.d.ts+++ /dev/null@@ -1,2 +0,0 @@-import { BaseSchema } from "../Schema";-export declare function maybeSkipValidation<S extends BaseSchema<Raw, Parsed>, Raw, Parsed>(schema: S): S;diff --git a/generated/python/core/schemas/utils/maybeSkipValidation.js b/generated/python/core/schemas/utils/maybeSkipValidation.jsdeleted file mode 100644index 0d5c9ed151..0000000000--- a/generated/python/core/schemas/utils/maybeSkipValidation.js+++ /dev/null@@ -1,32 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.maybeSkipValidation = void 0;-function maybeSkipValidation(schema) {- return {- ...schema,- json: transformAndMaybeSkipValidation(schema.json),- parse: transformAndMaybeSkipValidation(schema.parse),- };-}-exports.maybeSkipValidation = maybeSkipValidation;-function transformAndMaybeSkipValidation(transform) {- return async (value, opts) => {- const transformed = await transform(value, opts);- const { skipValidation = false } = opts ?? {};- if (!transformed.ok && skipValidation) {- // eslint-disable-next-line no-console- console.warn([- "Failed to validate.",- ...transformed.errors.map((error) => " - " +- (error.path.length > 0 ? `${error.path.join(".")}: ${error.message}` : error.message)),- ].join("\n"));- return {- ok: true,- value: value,- };- }- else {- return transformed;- }- };-}diff --git a/generated/python/core/schemas/utils/partition.d.ts b/generated/python/core/schemas/utils/partition.d.tsdeleted file mode 100644index d091e48ebf..0000000000--- a/generated/python/core/schemas/utils/partition.d.ts+++ /dev/null@@ -1 +0,0 @@-export declare function partition<T>(items: readonly T[], predicate: (item: T) => boolean): [T[], T[]];diff --git a/generated/python/core/schemas/utils/partition.js b/generated/python/core/schemas/utils/partition.jsdeleted file mode 100644index fa9e5fde56..0000000000--- a/generated/python/core/schemas/utils/partition.js+++ /dev/null@@ -1,16 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.partition = void 0;-function partition(items, predicate) {- const trueItems = [], falseItems = [];- for (const item of items) {- if (predicate(item)) {- trueItems.push(item);- }- else {- falseItems.push(item);- }- }- return [trueItems, falseItems];-}-exports.partition = partition;diff --git a/generated/python/environments.d.ts b/generated/python/environments.d.tsdeleted file mode 100644index 826ff2bc0a..0000000000--- a/generated/python/environments.d.ts+++ /dev/null@@ -1,10 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export declare const LangfuseEnvironment: {- /**- * This local environment is helpful for testing locally!- */- readonly Local: "http://localhost:3030";-};-export declare type LangfuseEnvironment = typeof LangfuseEnvironment.Local;diff --git a/generated/python/environments.js b/generated/python/environments.jsdeleted file mode 100644index 32966c9d81..0000000000--- a/generated/python/environments.js+++ /dev/null@@ -1,12 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });-exports.LangfuseEnvironment = void 0;-exports.LangfuseEnvironment = {- /**- * This local environment is helpful for testing locally!- */- Local: "http://localhost:3030",-};diff --git a/generated/python/errors/LangfuseError.d.ts b/generated/python/errors/LangfuseError.d.tsdeleted file mode 100644index a85c0a0548..0000000000--- a/generated/python/errors/LangfuseError.d.ts+++ /dev/null@@ -1,12 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export declare class LangfuseError extends Error {- readonly statusCode?: number;- readonly body?: unknown;- constructor({ message, statusCode, body }: {- message?: string;- statusCode?: number;- body?: unknown;- });-}diff --git a/generated/python/errors/LangfuseError.js b/generated/python/errors/LangfuseError.jsdeleted file mode 100644index f62880e9fd..0000000000--- a/generated/python/errors/LangfuseError.js+++ /dev/null@@ -1,21 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });-exports.LangfuseError = void 0;-class LangfuseError extends Error {- statusCode;- body;- constructor({ message, statusCode, body }) {- super(message);- Object.setPrototypeOf(this, LangfuseError.prototype);- if (statusCode != null) {- this.statusCode = statusCode;- }- if (body !== undefined) {- this.body = body;- }- }-}-exports.LangfuseError = LangfuseError;diff --git a/generated/python/errors/LangfuseTimeoutError.d.ts b/generated/python/errors/LangfuseTimeoutError.d.tsdeleted file mode 100644index e8e6eff26b..0000000000--- a/generated/python/errors/LangfuseTimeoutError.d.ts+++ /dev/null@@ -1,6 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-export declare class LangfuseTimeoutError extends Error {- constructor();-}diff --git a/generated/python/errors/LangfuseTimeoutError.js b/generated/python/errors/LangfuseTimeoutError.jsdeleted file mode 100644index e3cb2f9228..0000000000--- a/generated/python/errors/LangfuseTimeoutError.js+++ /dev/null@@ -1,13 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-Object.defineProperty(exports, "__esModule", { value: true });-exports.LangfuseTimeoutError = void 0;-class LangfuseTimeoutError extends Error {- constructor() {- super("Timeout");- Object.setPrototypeOf(this, LangfuseTimeoutError.prototype);- }-}-exports.LangfuseTimeoutError = LangfuseTimeoutError;diff --git a/generated/python/errors/index.d.ts b/generated/python/errors/index.d.tsdeleted file mode 100644index 69c08028cd..0000000000--- a/generated/python/errors/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export { LangfuseError } from "./LangfuseError";-export { LangfuseTimeoutError } from "./LangfuseTimeoutError";diff --git a/generated/python/errors/index.js b/generated/python/errors/index.jsdeleted file mode 100644index c9e326c1aa..0000000000--- a/generated/python/errors/index.js+++ /dev/null@@ -1,7 +0,0 @@-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.LangfuseTimeoutError = exports.LangfuseError = void 0;-var LangfuseError_1 = require("./LangfuseError");-Object.defineProperty(exports, "LangfuseError", { enumerable: true, get: function () { return LangfuseError_1.LangfuseError; } });-var LangfuseTimeoutError_1 = require("./LangfuseTimeoutError");-Object.defineProperty(exports, "LangfuseTimeoutError", { enumerable: true, get: function () { return LangfuseTimeoutError_1.LangfuseTimeoutError; } });diff --git a/generated/python/index.d.ts b/generated/python/index.d.tsdeleted file mode 100644index 66b0da6cda..0000000000--- a/generated/python/index.d.ts+++ /dev/null@@ -1,4 +0,0 @@-export * as Langfuse from "./api";-export { LangfuseClient } from "./Client";-export { LangfuseEnvironment } from "./environments";-export { LangfuseError, LangfuseTimeoutError } from "./errors";diff --git a/generated/python/index.js b/generated/python/index.jsdeleted file mode 100644index 6d9b5bb60a..0000000000--- a/generated/python/index.js+++ /dev/null@@ -1,34 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.LangfuseTimeoutError = exports.LangfuseError = exports.LangfuseEnvironment = exports.LangfuseClient = exports.Langfuse = void 0;-exports.Langfuse = __importStar(require("./api"));-var Client_1 = require("./Client");-Object.defineProperty(exports, "LangfuseClient", { enumerable: true, get: function () { return Client_1.LangfuseClient; } });-var environments_1 = require("./environments");-Object.defineProperty(exports, "LangfuseEnvironment", { enumerable: true, get: function () { return environments_1.LangfuseEnvironment; } });-var errors_1 = require("./errors");-Object.defineProperty(exports, "LangfuseError", { enumerable: true, get: function () { return errors_1.LangfuseError; } });-Object.defineProperty(exports, "LangfuseTimeoutError", { enumerable: true, get: function () { return errors_1.LangfuseTimeoutError; } });diff --git a/generated/python/serialization/index.d.ts b/generated/python/serialization/index.d.tsdeleted file mode 100644index 3e5335fe42..0000000000--- a/generated/python/serialization/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./resources";diff --git a/generated/python/serialization/index.js b/generated/python/serialization/index.jsdeleted file mode 100644index b88cbd1080..0000000000--- a/generated/python/serialization/index.js+++ /dev/null@@ -1,17 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./resources"), exports);diff --git a/generated/python/serialization/resources/event/index.d.ts b/generated/python/serialization/resources/event/index.d.tsdeleted file mode 100644index eea524d655..0000000000--- a/generated/python/serialization/resources/event/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./types";diff --git a/generated/python/serialization/resources/event/index.js b/generated/python/serialization/resources/event/index.jsdeleted file mode 100644index 71a458e5fd..0000000000--- a/generated/python/serialization/resources/event/index.js+++ /dev/null@@ -1,17 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./types"), exports);diff --git a/generated/python/serialization/resources/event/types/CreateEventRequest.d.ts b/generated/python/serialization/resources/event/types/CreateEventRequest.d.tsdeleted file mode 100644index 94871c4b97..0000000000--- a/generated/python/serialization/resources/event/types/CreateEventRequest.d.ts+++ /dev/null@@ -1,16 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const CreateEventRequest: core.serialization.ObjectSchema<serializers.CreateEventRequest.Raw, Langfuse.CreateEventRequest>;-export declare namespace CreateEventRequest {- interface Raw {- traceId: string;- name: string;- startTime: string;- attributes?: unknown;- parentObservationId?: string | null;- }-}diff --git a/generated/python/serialization/resources/event/types/CreateEventRequest.js b/generated/python/serialization/resources/event/types/CreateEventRequest.jsdeleted file mode 100644index cf1ef46663..0000000000--- a/generated/python/serialization/resources/event/types/CreateEventRequest.js+++ /dev/null@@ -1,37 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.CreateEventRequest = void 0;-const core = __importStar(require("../../../../core"));-exports.CreateEventRequest = core.serialization.object({- traceId: core.serialization.string(),- name: core.serialization.string(),- startTime: core.serialization.date(),- attributes: core.serialization.unknown(),- parentObservationId: core.serialization.string().optional(),-});diff --git a/generated/python/serialization/resources/event/types/Event.d.ts b/generated/python/serialization/resources/event/types/Event.d.tsdeleted file mode 100644index bec42a300b..0000000000--- a/generated/python/serialization/resources/event/types/Event.d.ts+++ /dev/null@@ -1,18 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const Event: core.serialization.ObjectSchema<serializers.Event.Raw, Langfuse.Event>;-export declare namespace Event {- interface Raw {- id: string;- traceId: string;- type: string;- name: string;- startTime: string;- attributes?: unknown;- parentObservationId?: string | null;- }-}diff --git a/generated/python/serialization/resources/event/types/Event.js b/generated/python/serialization/resources/event/types/Event.jsdeleted file mode 100644index 5663de8ad0..0000000000--- a/generated/python/serialization/resources/event/types/Event.js+++ /dev/null@@ -1,39 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.Event = void 0;-const core = __importStar(require("../../../../core"));-exports.Event = core.serialization.object({- id: core.serialization.string(),- traceId: core.serialization.string(),- type: core.serialization.string(),- name: core.serialization.string(),- startTime: core.serialization.date(),- attributes: core.serialization.unknown(),- parentObservationId: core.serialization.string().optional(),-});diff --git a/generated/python/serialization/resources/event/types/index.d.ts b/generated/python/serialization/resources/event/types/index.d.tsdeleted file mode 100644index f9bd991b8f..0000000000--- a/generated/python/serialization/resources/event/types/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./CreateEventRequest";-export * from "./Event";diff --git a/generated/python/serialization/resources/event/types/index.js b/generated/python/serialization/resources/event/types/index.jsdeleted file mode 100644index 56520606da..0000000000--- a/generated/python/serialization/resources/event/types/index.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./CreateEventRequest"), exports);-__exportStar(require("./Event"), exports);diff --git a/generated/python/serialization/resources/index.d.ts b/generated/python/serialization/resources/index.d.tsdeleted file mode 100644index e58ee44d56..0000000000--- a/generated/python/serialization/resources/index.d.ts+++ /dev/null@@ -1,8 +0,0 @@-export * as event from "./event";-export * from "./event/types";-export * as score from "./score";-export * from "./score/types";-export * as span from "./span";-export * from "./span/types";-export * as trace from "./trace";-export * from "./trace/types";diff --git a/generated/python/serialization/resources/index.js b/generated/python/serialization/resources/index.jsdeleted file mode 100644index 043567c8a9..0000000000--- a/generated/python/serialization/resources/index.js+++ /dev/null@@ -1,37 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.trace = exports.span = exports.score = exports.event = void 0;-exports.event = __importStar(require("./event"));-__exportStar(require("./event/types"), exports);-exports.score = __importStar(require("./score"));-__exportStar(require("./score/types"), exports);-exports.span = __importStar(require("./span"));-__exportStar(require("./span/types"), exports);-exports.trace = __importStar(require("./trace"));-__exportStar(require("./trace/types"), exports);diff --git a/generated/python/serialization/resources/score/index.d.ts b/generated/python/serialization/resources/score/index.d.tsdeleted file mode 100644index eea524d655..0000000000--- a/generated/python/serialization/resources/score/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./types";diff --git a/generated/python/serialization/resources/score/index.js b/generated/python/serialization/resources/score/index.jsdeleted file mode 100644index 71a458e5fd..0000000000--- a/generated/python/serialization/resources/score/index.js+++ /dev/null@@ -1,17 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./types"), exports);diff --git a/generated/python/serialization/resources/score/types/CreateScoreRequest.d.ts b/generated/python/serialization/resources/score/types/CreateScoreRequest.d.tsdeleted file mode 100644index 8deca3c9d5..0000000000--- a/generated/python/serialization/resources/score/types/CreateScoreRequest.d.ts+++ /dev/null@@ -1,15 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const CreateScoreRequest: core.serialization.ObjectSchema<serializers.CreateScoreRequest.Raw, Langfuse.CreateScoreRequest>;-export declare namespace CreateScoreRequest {- interface Raw {- traceId: string;- name: string;- value: number;- observationId?: string | null;- }-}diff --git a/generated/python/serialization/resources/score/types/CreateScoreRequest.js b/generated/python/serialization/resources/score/types/CreateScoreRequest.jsdeleted file mode 100644index 766b9fa88e..0000000000--- a/generated/python/serialization/resources/score/types/CreateScoreRequest.js+++ /dev/null@@ -1,36 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.CreateScoreRequest = void 0;-const core = __importStar(require("../../../../core"));-exports.CreateScoreRequest = core.serialization.object({- traceId: core.serialization.string(),- name: core.serialization.string(),- value: core.serialization.number(),- observationId: core.serialization.string().optional(),-});diff --git a/generated/python/serialization/resources/score/types/Score.d.ts b/generated/python/serialization/resources/score/types/Score.d.tsdeleted file mode 100644index d08470edfe..0000000000--- a/generated/python/serialization/resources/score/types/Score.d.ts+++ /dev/null@@ -1,16 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const Score: core.serialization.ObjectSchema<serializers.Score.Raw, Langfuse.Score>;-export declare namespace Score {- interface Raw {- id: string;- name: string;- value: number;- observationId?: string | null;- timestamp: string;- }-}diff --git a/generated/python/serialization/resources/score/types/Score.js b/generated/python/serialization/resources/score/types/Score.jsdeleted file mode 100644index 4910221f4c..0000000000--- a/generated/python/serialization/resources/score/types/Score.js+++ /dev/null@@ -1,37 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.Score = void 0;-const core = __importStar(require("../../../../core"));-exports.Score = core.serialization.object({- id: core.serialization.string(),- name: core.serialization.string(),- value: core.serialization.number(),- observationId: core.serialization.string().optional(),- timestamp: core.serialization.date(),-});diff --git a/generated/python/serialization/resources/score/types/index.d.ts b/generated/python/serialization/resources/score/types/index.d.tsdeleted file mode 100644index f1d0b65f29..0000000000--- a/generated/python/serialization/resources/score/types/index.d.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./CreateScoreRequest";-export * from "./Score";diff --git a/generated/python/serialization/resources/score/types/index.js b/generated/python/serialization/resources/score/types/index.jsdeleted file mode 100644index 4bb768ed81..0000000000--- a/generated/python/serialization/resources/score/types/index.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./CreateScoreRequest"), exports);-__exportStar(require("./Score"), exports);diff --git a/generated/python/serialization/resources/span/index.d.ts b/generated/python/serialization/resources/span/index.d.tsdeleted file mode 100644index eea524d655..0000000000--- a/generated/python/serialization/resources/span/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./types";diff --git a/generated/python/serialization/resources/span/index.js b/generated/python/serialization/resources/span/index.jsdeleted file mode 100644index 71a458e5fd..0000000000--- a/generated/python/serialization/resources/span/index.js+++ /dev/null@@ -1,17 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./types"), exports);diff --git a/generated/python/serialization/resources/span/types/CreateLlmSpanRequest.d.ts b/generated/python/serialization/resources/span/types/CreateLlmSpanRequest.d.tsdeleted file mode 100644index 19a6612618..0000000000--- a/generated/python/serialization/resources/span/types/CreateLlmSpanRequest.d.ts+++ /dev/null@@ -1,16 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const CreateLlmSpanRequest: core.serialization.ObjectSchema<serializers.CreateLlmSpanRequest.Raw, Langfuse.CreateLlmSpanRequest>;-export declare namespace CreateLlmSpanRequest {- interface Raw {- traceId: string;- name: string;- startTime: string;- parentObservationId?: string | null;- attributes: serializers.LlmAttributes.Raw;- }-}diff --git a/generated/python/serialization/resources/span/types/CreateLlmSpanRequest.js b/generated/python/serialization/resources/span/types/CreateLlmSpanRequest.jsdeleted file mode 100644index 2cf22997fe..0000000000--- a/generated/python/serialization/resources/span/types/CreateLlmSpanRequest.js+++ /dev/null@@ -1,37 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.CreateLlmSpanRequest = void 0;-const core = __importStar(require("../../../../core"));-exports.CreateLlmSpanRequest = core.serialization.object({- traceId: core.serialization.string(),- name: core.serialization.string(),- startTime: core.serialization.date(),- parentObservationId: core.serialization.string().optional(),- attributes: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).LlmAttributes),-});diff --git a/generated/python/serialization/resources/span/types/CreateSpanRequest.d.ts b/generated/python/serialization/resources/span/types/CreateSpanRequest.d.tsdeleted file mode 100644index 482c4c5235..0000000000--- a/generated/python/serialization/resources/span/types/CreateSpanRequest.d.ts+++ /dev/null@@ -1,16 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const CreateSpanRequest: core.serialization.ObjectSchema<serializers.CreateSpanRequest.Raw, Langfuse.CreateSpanRequest>;-export declare namespace CreateSpanRequest {- interface Raw {- traceId: string;- name: string;- startTime: string;- attributes?: unknown;- parentObservationId?: string | null;- }-}diff --git a/generated/python/serialization/resources/span/types/CreateSpanRequest.js b/generated/python/serialization/resources/span/types/CreateSpanRequest.jsdeleted file mode 100644index 051777adee..0000000000--- a/generated/python/serialization/resources/span/types/CreateSpanRequest.js+++ /dev/null@@ -1,37 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.CreateSpanRequest = void 0;-const core = __importStar(require("../../../../core"));-exports.CreateSpanRequest = core.serialization.object({- traceId: core.serialization.string(),- name: core.serialization.string(),- startTime: core.serialization.date(),- attributes: core.serialization.unknown(),- parentObservationId: core.serialization.string().optional(),-});diff --git a/generated/python/serialization/resources/span/types/LlmAttributes.d.ts b/generated/python/serialization/resources/span/types/LlmAttributes.d.tsdeleted file mode 100644index 709ee27bd2..0000000000--- a/generated/python/serialization/resources/span/types/LlmAttributes.d.ts+++ /dev/null@@ -1,15 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const LlmAttributes: core.serialization.ObjectSchema<serializers.LlmAttributes.Raw, Langfuse.LlmAttributes>;-export declare namespace LlmAttributes {- interface Raw {- model?: unknown;- prompt?: string | null;- completion?: string | null;- tokens?: serializers.LlmTokens.Raw | null;- }-}diff --git a/generated/python/serialization/resources/span/types/LlmAttributes.js b/generated/python/serialization/resources/span/types/LlmAttributes.jsdeleted file mode 100644index 1caff53114..0000000000--- a/generated/python/serialization/resources/span/types/LlmAttributes.js+++ /dev/null@@ -1,36 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.LlmAttributes = void 0;-const core = __importStar(require("../../../../core"));-exports.LlmAttributes = core.serialization.object({- model: core.serialization.unknown(),- prompt: core.serialization.string().optional(),- completion: core.serialization.string().optional(),- tokens: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).LlmTokens).optional(),-});diff --git a/generated/python/serialization/resources/span/types/LlmTokens.d.ts b/generated/python/serialization/resources/span/types/LlmTokens.d.tsdeleted file mode 100644index 6b2cfbb27d..0000000000--- a/generated/python/serialization/resources/span/types/LlmTokens.d.ts+++ /dev/null@@ -1,13 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const LlmTokens: core.serialization.ObjectSchema<serializers.LlmTokens.Raw, Langfuse.LlmTokens>;-export declare namespace LlmTokens {- interface Raw {- prompt_amount?: number | null;- completion_amount?: number | null;- }-}diff --git a/generated/python/serialization/resources/span/types/LlmTokens.js b/generated/python/serialization/resources/span/types/LlmTokens.jsdeleted file mode 100644index b5c01bc973..0000000000--- a/generated/python/serialization/resources/span/types/LlmTokens.js+++ /dev/null@@ -1,34 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.LlmTokens = void 0;-const core = __importStar(require("../../../../core"));-exports.LlmTokens = core.serialization.object({- promptAmount: core.serialization.property("prompt_amount", core.serialization.number().optional()),- completionAmount: core.serialization.property("completion_amount", core.serialization.number().optional()),-});diff --git a/generated/python/serialization/resources/span/types/Span.d.ts b/generated/python/serialization/resources/span/types/Span.d.tsdeleted file mode 100644index 67172918c7..0000000000--- a/generated/python/serialization/resources/span/types/Span.d.ts+++ /dev/null@@ -1,19 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const Span: core.serialization.ObjectSchema<serializers.Span.Raw, Langfuse.Span>;-export declare namespace Span {- interface Raw {- id: string;- traceId: string;- type: string;- name: string;- startTime: string;- endTime?: string | null;- attributes?: unknown;- parentObservationId?: string | null;- }-}diff --git a/generated/python/serialization/resources/span/types/Span.js b/generated/python/serialization/resources/span/types/Span.jsdeleted file mode 100644index ba5bca11bb..0000000000--- a/generated/python/serialization/resources/span/types/Span.js+++ /dev/null@@ -1,40 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.Span = void 0;-const core = __importStar(require("../../../../core"));-exports.Span = core.serialization.object({- id: core.serialization.string(),- traceId: core.serialization.string(),- type: core.serialization.string(),- name: core.serialization.string(),- startTime: core.serialization.date(),- endTime: core.serialization.date().optional(),- attributes: core.serialization.unknown(),- parentObservationId: core.serialization.string().optional(),-});diff --git a/generated/python/serialization/resources/span/types/UpdateLlmSpanRequest.d.ts b/generated/python/serialization/resources/span/types/UpdateLlmSpanRequest.d.tsdeleted file mode 100644index 4572c402a5..0000000000--- a/generated/python/serialization/resources/span/types/UpdateLlmSpanRequest.d.ts+++ /dev/null@@ -1,14 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const UpdateLlmSpanRequest: core.serialization.ObjectSchema<serializers.UpdateLlmSpanRequest.Raw, Langfuse.UpdateLlmSpanRequest>;-export declare namespace UpdateLlmSpanRequest {- interface Raw {- spanId: string;- endTime: string;- attributes: serializers.LlmAttributes.Raw;- }-}diff --git a/generated/python/serialization/resources/span/types/UpdateLlmSpanRequest.js b/generated/python/serialization/resources/span/types/UpdateLlmSpanRequest.jsdeleted file mode 100644index af11386ce4..0000000000--- a/generated/python/serialization/resources/span/types/UpdateLlmSpanRequest.js+++ /dev/null@@ -1,35 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.UpdateLlmSpanRequest = void 0;-const core = __importStar(require("../../../../core"));-exports.UpdateLlmSpanRequest = core.serialization.object({- spanId: core.serialization.string(),- endTime: core.serialization.date(),- attributes: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).LlmAttributes),-});diff --git a/generated/python/serialization/resources/span/types/UpdateSpanRequest.d.ts b/generated/python/serialization/resources/span/types/UpdateSpanRequest.d.tsdeleted file mode 100644index af5008db97..0000000000--- a/generated/python/serialization/resources/span/types/UpdateSpanRequest.d.ts+++ /dev/null@@ -1,13 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const UpdateSpanRequest: core.serialization.ObjectSchema<serializers.UpdateSpanRequest.Raw, Langfuse.UpdateSpanRequest>;-export declare namespace UpdateSpanRequest {- interface Raw {- spanId: string;- endTime: string;- }-}diff --git a/generated/python/serialization/resources/span/types/UpdateSpanRequest.js b/generated/python/serialization/resources/span/types/UpdateSpanRequest.jsdeleted file mode 100644index 3c54f4ff12..0000000000--- a/generated/python/serialization/resources/span/types/UpdateSpanRequest.js+++ /dev/null@@ -1,34 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.UpdateSpanRequest = void 0;-const core = __importStar(require("../../../../core"));-exports.UpdateSpanRequest = core.serialization.object({- spanId: core.serialization.string(),- endTime: core.serialization.date(),-});diff --git a/generated/python/serialization/resources/span/types/index.d.ts b/generated/python/serialization/resources/span/types/index.d.tsdeleted file mode 100644index c0b32be6c7..0000000000--- a/generated/python/serialization/resources/span/types/index.d.ts+++ /dev/null@@ -1,7 +0,0 @@-export * from "./CreateSpanRequest";-export * from "./UpdateSpanRequest";-export * from "./UpdateLlmSpanRequest";-export * from "./Span";-export * from "./CreateLlmSpanRequest";-export * from "./LlmAttributes";-export * from "./LlmTokens";diff --git a/generated/python/serialization/resources/span/types/index.js b/generated/python/serialization/resources/span/types/index.jsdeleted file mode 100644index 1b14f71bd8..0000000000--- a/generated/python/serialization/resources/span/types/index.js+++ /dev/null@@ -1,23 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./CreateSpanRequest"), exports);-__exportStar(require("./UpdateSpanRequest"), exports);-__exportStar(require("./UpdateLlmSpanRequest"), exports);-__exportStar(require("./Span"), exports);-__exportStar(require("./CreateLlmSpanRequest"), exports);-__exportStar(require("./LlmAttributes"), exports);-__exportStar(require("./LlmTokens"), exports);diff --git a/generated/python/serialization/resources/trace/index.d.ts b/generated/python/serialization/resources/trace/index.d.tsdeleted file mode 100644index eea524d655..0000000000--- a/generated/python/serialization/resources/trace/index.d.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./types";diff --git a/generated/python/serialization/resources/trace/index.js b/generated/python/serialization/resources/trace/index.jsdeleted file mode 100644index 71a458e5fd..0000000000--- a/generated/python/serialization/resources/trace/index.js+++ /dev/null@@ -1,17 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./types"), exports);diff --git a/generated/python/serialization/resources/trace/types/CreateTraceRequest.d.ts b/generated/python/serialization/resources/trace/types/CreateTraceRequest.d.tsdeleted file mode 100644index 4adc8c730c..0000000000--- a/generated/python/serialization/resources/trace/types/CreateTraceRequest.d.ts+++ /dev/null@@ -1,15 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const CreateTraceRequest: core.serialization.ObjectSchema<serializers.CreateTraceRequest.Raw, Langfuse.CreateTraceRequest>;-export declare namespace CreateTraceRequest {- interface Raw {- name: string;- attributes?: unknown;- status: serializers.TraceStatus.Raw;- statusMessage?: string | null;- }-}diff --git a/generated/python/serialization/resources/trace/types/CreateTraceRequest.js b/generated/python/serialization/resources/trace/types/CreateTraceRequest.jsdeleted file mode 100644index b61cf75a44..0000000000--- a/generated/python/serialization/resources/trace/types/CreateTraceRequest.js+++ /dev/null@@ -1,36 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.CreateTraceRequest = void 0;-const core = __importStar(require("../../../../core"));-exports.CreateTraceRequest = core.serialization.object({- name: core.serialization.string(),- attributes: core.serialization.unknown(),- status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).TraceStatus),- statusMessage: core.serialization.string().optional(),-});diff --git a/generated/python/serialization/resources/trace/types/Trace.d.ts b/generated/python/serialization/resources/trace/types/Trace.d.tsdeleted file mode 100644index 59d7517814..0000000000--- a/generated/python/serialization/resources/trace/types/Trace.d.ts+++ /dev/null@@ -1,17 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const Trace: core.serialization.ObjectSchema<serializers.Trace.Raw, Langfuse.Trace>;-export declare namespace Trace {- interface Raw {- id: string;- timestamp: string;- name: string;- attributes?: unknown;- status: string;- statusMessage?: string | null;- }-}diff --git a/generated/python/serialization/resources/trace/types/Trace.js b/generated/python/serialization/resources/trace/types/Trace.jsdeleted file mode 100644index 3383e3b4f3..0000000000--- a/generated/python/serialization/resources/trace/types/Trace.js+++ /dev/null@@ -1,38 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.Trace = void 0;-const core = __importStar(require("../../../../core"));-exports.Trace = core.serialization.object({- id: core.serialization.string(),- timestamp: core.serialization.date(),- name: core.serialization.string(),- attributes: core.serialization.unknown(),- status: core.serialization.string(),- statusMessage: core.serialization.string().optional(),-});diff --git a/generated/python/serialization/resources/trace/types/TraceStatus.d.ts b/generated/python/serialization/resources/trace/types/TraceStatus.d.tsdeleted file mode 100644index 0a29f8ad81..0000000000--- a/generated/python/serialization/resources/trace/types/TraceStatus.d.ts+++ /dev/null@@ -1,10 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const TraceStatus: core.serialization.Schema<serializers.TraceStatus.Raw, Langfuse.TraceStatus>;-export declare namespace TraceStatus {- type Raw = "EXECUTING" | "SUCCESS" | "ERROR";-}diff --git a/generated/python/serialization/resources/trace/types/TraceStatus.js b/generated/python/serialization/resources/trace/types/TraceStatus.jsdeleted file mode 100644index d5eba76beb..0000000000--- a/generated/python/serialization/resources/trace/types/TraceStatus.js+++ /dev/null@@ -1,31 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.TraceStatus = void 0;-const core = __importStar(require("../../../../core"));-exports.TraceStatus = core.serialization.enum_(["EXECUTING", "SUCCESS", "ERROR"]);diff --git a/generated/python/serialization/resources/trace/types/UpdateTraceRequest.d.ts b/generated/python/serialization/resources/trace/types/UpdateTraceRequest.d.tsdeleted file mode 100644index 0ed00bb734..0000000000--- a/generated/python/serialization/resources/trace/types/UpdateTraceRequest.d.ts+++ /dev/null@@ -1,14 +0,0 @@-/**- * This file was auto-generated by Fern from our API Definition.- */-import * as serializers from "../../..";-import * as Langfuse from "../../../../api";-import * as core from "../../../../core";-export declare const UpdateTraceRequest: core.serialization.ObjectSchema<serializers.UpdateTraceRequest.Raw, Langfuse.UpdateTraceRequest>;-export declare namespace UpdateTraceRequest {- interface Raw {- id: string;- status: serializers.TraceStatus.Raw;- statusMessage?: string | null;- }-}diff --git a/generated/python/serialization/resources/trace/types/UpdateTraceRequest.js b/generated/python/serialization/resources/trace/types/UpdateTraceRequest.jsdeleted file mode 100644index c046251ba3..0000000000--- a/generated/python/serialization/resources/trace/types/UpdateTraceRequest.js+++ /dev/null@@ -1,35 +0,0 @@-"use strict";-/**- * This file was auto-generated by Fern from our API Definition.- */-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {- Object.defineProperty(o, "default", { enumerable: true, value: v });-}) : function(o, v) {- o["default"] = v;-});-var __importStar = (this && this.__importStar) || function (mod) {- if (mod && mod.__esModule) return mod;- var result = {};- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);- __setModuleDefault(result, mod);- return result;-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.UpdateTraceRequest = void 0;-const core = __importStar(require("../../../../core"));-exports.UpdateTraceRequest = core.serialization.object({- id: core.serialization.string(),- status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).TraceStatus),- statusMessage: core.serialization.string().optional(),-});diff --git a/generated/python/serialization/resources/trace/types/index.d.ts b/generated/python/serialization/resources/trace/types/index.d.tsdeleted file mode 100644index fd312efebf..0000000000--- a/generated/python/serialization/resources/trace/types/index.d.ts+++ /dev/null@@ -1,4 +0,0 @@-export * from "./CreateTraceRequest";-export * from "./UpdateTraceRequest";-export * from "./Trace";-export * from "./TraceStatus";diff --git a/generated/python/serialization/resources/trace/types/index.js b/generated/python/serialization/resources/trace/types/index.jsdeleted file mode 100644index 076431b5a6..0000000000--- a/generated/python/serialization/resources/trace/types/index.js+++ /dev/null@@ -1,20 +0,0 @@-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- var desc = Object.getOwnPropertyDescriptor(m, k);- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {- desc = { enumerable: true, get: function() { return m[k]; } };- }- Object.defineProperty(o, k2, desc);-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-Object.defineProperty(exports, "__esModule", { value: true });-__exportStar(require("./CreateTraceRequest"), exports);-__exportStar(require("./UpdateTraceRequest"), exports);-__exportStar(require("./Trace"), exports);-__exportStar(require("./TraceStatus"), exports);