From 96186aadbeb4a87f5f562f5829a08d1d556fc3ab Mon Sep 17 00:00:00 2001 From: Marc Klingen Date: Mon, 4 Dec 2023 13:22:19 +0100 Subject: [PATCH] feat: set public flag on traces (#57) --- langfuse-core/openapi-spec/openapi-server.yaml | 8 ++++++++ langfuse-core/src/openapi/server.ts | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/langfuse-core/openapi-spec/openapi-server.yaml b/langfuse-core/openapi-spec/openapi-server.yaml index 0648c333..81e7fe87 100644 --- a/langfuse-core/openapi-spec/openapi-server.yaml +++ b/langfuse-core/openapi-spec/openapi-server.yaml @@ -1127,6 +1127,10 @@ components: nullable: true metadata: nullable: true + public: + type: boolean + nullable: true + description: Public traces are accessible via url without login required: - id - timestamp @@ -1734,6 +1738,10 @@ components: nullable: true metadata: nullable: true + public: + type: boolean + nullable: true + description: Make trace publicly accessible via url Traces: title: Traces type: object diff --git a/langfuse-core/src/openapi/server.ts b/langfuse-core/src/openapi/server.ts index c16bbf28..a0581bc3 100644 --- a/langfuse-core/src/openapi/server.ts +++ b/langfuse-core/src/openapi/server.ts @@ -138,6 +138,8 @@ export interface components { version?: string | null; userId?: string | null; metadata?: Record | null; + /** @description Public traces are accessible via url without login */ + public?: boolean | null; }; /** TraceWithDetails */ TraceWithDetails: WithRequired< @@ -413,6 +415,8 @@ export interface components { release?: string | null; version?: string | null; metadata?: Record | null; + /** @description Make trace publicly accessible via url */ + public?: boolean | null; }; /** Traces */ Traces: {