diff --git a/examples/examples/advanced/openai/create-chat-completion-asubmit.py b/examples/examples/advanced/openai/create-chat-completion-asubmit.py
index f3400d4f..a2987e01 100644
--- a/examples/examples/advanced/openai/create-chat-completion-asubmit.py
+++ b/examples/examples/advanced/openai/create-chat-completion-asubmit.py
@@ -10,7 +10,7 @@
async def main():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/openai/create-chat-completion-async-stream.py b/examples/examples/advanced/openai/create-chat-completion-async-stream.py
index 30241f9d..3f972ce1 100644
--- a/examples/examples/advanced/openai/create-chat-completion-async-stream.py
+++ b/examples/examples/advanced/openai/create-chat-completion-async-stream.py
@@ -10,7 +10,7 @@
async def main():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/openai/create-chat-completion-async.py b/examples/examples/advanced/openai/create-chat-completion-async.py
index 8665ed80..d3def012 100644
--- a/examples/examples/advanced/openai/create-chat-completion-async.py
+++ b/examples/examples/advanced/openai/create-chat-completion-async.py
@@ -10,7 +10,7 @@
async def main():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/openai/create-chat-completion-stream.py b/examples/examples/advanced/openai/create-chat-completion-stream.py
index f503c6c4..a84f50e3 100644
--- a/examples/examples/advanced/openai/create-chat-completion-stream.py
+++ b/examples/examples/advanced/openai/create-chat-completion-stream.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/openai/create-chat-completion.py b/examples/examples/advanced/openai/create-chat-completion.py
index df5c3143..4f2c2ba0 100644
--- a/examples/examples/advanced/openai/create-chat-completion.py
+++ b/examples/examples/advanced/openai/create-chat-completion.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/openai/create-completion-async-stream.py b/examples/examples/advanced/openai/create-completion-async-stream.py
index 1666ecd1..80fe1021 100644
--- a/examples/examples/advanced/openai/create-completion-async-stream.py
+++ b/examples/examples/advanced/openai/create-completion-async-stream.py
@@ -8,7 +8,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
diff --git a/examples/examples/advanced/openai/create-completion-async.py b/examples/examples/advanced/openai/create-completion-async.py
index 41be25b1..8b0e31e5 100644
--- a/examples/examples/advanced/openai/create-completion-async.py
+++ b/examples/examples/advanced/openai/create-completion-async.py
@@ -8,7 +8,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
diff --git a/examples/examples/advanced/openai/create-completion-stream.py b/examples/examples/advanced/openai/create-completion-stream.py
index ce97b748..c6b74c30 100644
--- a/examples/examples/advanced/openai/create-completion-stream.py
+++ b/examples/examples/advanced/openai/create-completion-stream.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/openai/create-completion.py b/examples/examples/advanced/openai/create-completion.py
index b2599a5c..d94965ac 100644
--- a/examples/examples/advanced/openai/create-completion.py
+++ b/examples/examples/advanced/openai/create-completion.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/openai/create-embedding-async.py b/examples/examples/advanced/openai/create-embedding-async.py
index 23fa4ee6..a070d25c 100644
--- a/examples/examples/advanced/openai/create-embedding-async.py
+++ b/examples/examples/advanced/openai/create-embedding-async.py
@@ -10,7 +10,7 @@
async def main():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/openai/create-embedding.py b/examples/examples/advanced/openai/create-embedding.py
index 62bda3eb..80006e79 100644
--- a/examples/examples/advanced/openai/create-embedding.py
+++ b/examples/examples/advanced/openai/create-embedding.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/openai/create-multiple-calls.py b/examples/examples/advanced/openai/create-multiple-calls.py
index fa0e9d7e..349db1d6 100644
--- a/examples/examples/advanced/openai/create-multiple-calls.py
+++ b/examples/examples/advanced/openai/create-multiple-calls.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/pinecone/delete.py b/examples/examples/advanced/pinecone/delete.py
index 79fd5315..087fdad2 100644
--- a/examples/examples/advanced/pinecone/delete.py
+++ b/examples/examples/advanced/pinecone/delete.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/pinecone/fetch.py b/examples/examples/advanced/pinecone/fetch.py
index 27daefb0..5f2c1e6b 100644
--- a/examples/examples/advanced/pinecone/fetch.py
+++ b/examples/examples/advanced/pinecone/fetch.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/pinecone/list-indices.py b/examples/examples/advanced/pinecone/list-indices.py
index 2e139eda..99112914 100644
--- a/examples/examples/advanced/pinecone/list-indices.py
+++ b/examples/examples/advanced/pinecone/list-indices.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/pinecone/query.py b/examples/examples/advanced/pinecone/query.py
index c3f12d1f..97b194bb 100644
--- a/examples/examples/advanced/pinecone/query.py
+++ b/examples/examples/advanced/pinecone/query.py
@@ -9,7 +9,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/advanced/pinecone/upsert.py b/examples/examples/advanced/pinecone/upsert.py
index 1db6aec8..6e12cdce 100644
--- a/examples/examples/advanced/pinecone/upsert.py
+++ b/examples/examples/advanced/pinecone/upsert.py
@@ -10,7 +10,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/evaluation/test-cases/basic.py b/examples/examples/evaluation/test-cases/basic.py
index 95429d0d..d98cc8b8 100644
--- a/examples/examples/evaluation/test-cases/basic.py
+++ b/examples/examples/evaluation/test-cases/basic.py
@@ -6,7 +6,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
cases = gentrace.get_test_cases(pipeline_slug="testing-pipeline-id")
diff --git a/examples/examples/evaluation/test-cases/create.py b/examples/examples/evaluation/test-cases/create.py
index 841df821..1d71943e 100644
--- a/examples/examples/evaluation/test-cases/create.py
+++ b/examples/examples/evaluation/test-cases/create.py
@@ -6,7 +6,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
case_id = gentrace.create_test_case(
diff --git a/examples/examples/evaluation/test-cases/create_multiple.py b/examples/examples/evaluation/test-cases/create_multiple.py
index e1de2065..864093b7 100644
--- a/examples/examples/evaluation/test-cases/create_multiple.py
+++ b/examples/examples/evaluation/test-cases/create_multiple.py
@@ -6,7 +6,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
response = gentrace.create_test_cases(
diff --git a/examples/examples/evaluation/test-cases/get_pipelines.py b/examples/examples/evaluation/test-cases/get_pipelines.py
index 33aecb75..3b4f06bc 100644
--- a/examples/examples/evaluation/test-cases/get_pipelines.py
+++ b/examples/examples/evaluation/test-cases/get_pipelines.py
@@ -6,7 +6,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
all_pipelines = gentrace.get_pipelines()
diff --git a/examples/examples/evaluation/test-cases/update.py b/examples/examples/evaluation/test-cases/update.py
index 732f9088..065eb574 100644
--- a/examples/examples/evaluation/test-cases/update.py
+++ b/examples/examples/evaluation/test-cases/update.py
@@ -6,7 +6,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
cases = gentrace.get_test_cases(pipeline_slug="testing-pipeline-id")
diff --git a/examples/examples/evaluation/test-result/multiple.py b/examples/examples/evaluation/test-result/multiple.py
index 9750dda4..5be13232 100644
--- a/examples/examples/evaluation/test-result/multiple.py
+++ b/examples/examples/evaluation/test-result/multiple.py
@@ -6,7 +6,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
results = gentrace.get_test_results(pipeline_slug="testing-pipeline-id")
diff --git a/examples/examples/evaluation/test-result/single.py b/examples/examples/evaluation/test-result/single.py
index fed7e1a9..00ba3198 100644
--- a/examples/examples/evaluation/test-result/single.py
+++ b/examples/examples/evaluation/test-result/single.py
@@ -6,7 +6,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
result = gentrace.get_test_result("ede8271a-699f-4db7-a198-2c51a99e2dab")
diff --git a/examples/examples/evaluation/test-result/submit-measure.py b/examples/examples/evaluation/test-result/submit-measure.py
index b929a588..adbac323 100644
--- a/examples/examples/evaluation/test-result/submit-measure.py
+++ b/examples/examples/evaluation/test-result/submit-measure.py
@@ -10,7 +10,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
run_name="vivek python run 2",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/evaluation/test-result/submit-old.py b/examples/examples/evaluation/test-result/submit-old.py
index 8585b6c8..73ecc43d 100644
--- a/examples/examples/evaluation/test-result/submit-old.py
+++ b/examples/examples/evaluation/test-result/submit-old.py
@@ -8,7 +8,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
run_name="vivek python run",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
cases = gentrace.get_test_cases(pipeline_slug="testing3")
diff --git a/examples/examples/evaluation/test-result/submit.py b/examples/examples/evaluation/test-result/submit.py
index b1befc09..815e0e00 100644
--- a/examples/examples/evaluation/test-result/submit.py
+++ b/examples/examples/evaluation/test-result/submit.py
@@ -10,7 +10,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
run_name="vivek python run 2",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(
diff --git a/examples/examples/files/create-bytes.py b/examples/examples/files/create-bytes.py
index 2722d940..fb8f304a 100644
--- a/examples/examples/files/create-bytes.py
+++ b/examples/examples/files/create-bytes.py
@@ -6,7 +6,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
with open("examples/files/gentrace-icon.png", "rb") as f:
diff --git a/examples/examples/files/create.py b/examples/examples/files/create.py
index a6d4ad12..9efb739e 100644
--- a/examples/examples/files/create.py
+++ b/examples/examples/files/create.py
@@ -6,7 +6,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
with open("examples/files/gentrace-icon.png", "rb") as f:
diff --git a/examples/examples/files/read.py b/examples/examples/files/read.py
index d8bb2294..7211c086 100644
--- a/examples/examples/files/read.py
+++ b/examples/examples/files/read.py
@@ -11,7 +11,7 @@
load_dotenv()
gentrace.init(
- api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api/v1"
+ api_key=os.getenv("GENTRACE_API_KEY"), host="http://localhost:3000/api"
)
GENTRACE_PIPELINE_SLUG = "main"
diff --git a/examples/examples/simple/openai-v0/create-chat-completion.py b/examples/examples/simple/openai-v0/create-chat-completion.py
index 4335a8ab..75f2f0bb 100644
--- a/examples/examples/simple/openai-v0/create-chat-completion.py
+++ b/examples/examples/simple/openai-v0/create-chat-completion.py
@@ -10,7 +10,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
gentrace.configure_openai()
diff --git a/examples/examples/simple/openai/create-chat-completion-async-stream.py b/examples/examples/simple/openai/create-chat-completion-async-stream.py
index 413f9323..8506166a 100644
--- a/examples/examples/simple/openai/create-chat-completion-async-stream.py
+++ b/examples/examples/simple/openai/create-chat-completion-async-stream.py
@@ -10,7 +10,7 @@
async def main():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
openai = gentrace.AsyncOpenAI()
diff --git a/examples/examples/simple/openai/create-chat-completion-async.py b/examples/examples/simple/openai/create-chat-completion-async.py
index 290c3720..3ab80914 100644
--- a/examples/examples/simple/openai/create-chat-completion-async.py
+++ b/examples/examples/simple/openai/create-chat-completion-async.py
@@ -10,7 +10,7 @@
async def main():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
openai = gentrace.AsyncOpenAI()
diff --git a/examples/examples/simple/openai/create-chat-completion-stream.py b/examples/examples/simple/openai/create-chat-completion-stream.py
index 24c8b9dd..b5213309 100644
--- a/examples/examples/simple/openai/create-chat-completion-stream.py
+++ b/examples/examples/simple/openai/create-chat-completion-stream.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
openai = gentrace.OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
diff --git a/examples/examples/simple/openai/create-chat-completion.py b/examples/examples/simple/openai/create-chat-completion.py
index 677616e7..5635016c 100644
--- a/examples/examples/simple/openai/create-chat-completion.py
+++ b/examples/examples/simple/openai/create-chat-completion.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
openai = gentrace.OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
diff --git a/examples/examples/simple/openai/create-completion-async-stream.py b/examples/examples/simple/openai/create-completion-async-stream.py
index 319ba110..0beada07 100644
--- a/examples/examples/simple/openai/create-completion-async-stream.py
+++ b/examples/examples/simple/openai/create-completion-async-stream.py
@@ -10,7 +10,7 @@
async def main():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
openai = gentrace.AsyncOpenAI()
diff --git a/examples/examples/simple/openai/create-completion-async.py b/examples/examples/simple/openai/create-completion-async.py
index d52e6054..1011208f 100644
--- a/examples/examples/simple/openai/create-completion-async.py
+++ b/examples/examples/simple/openai/create-completion-async.py
@@ -10,7 +10,7 @@
async def main():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
openai = gentrace.AsyncOpenAI()
diff --git a/examples/examples/simple/openai/create-completion-stream.py b/examples/examples/simple/openai/create-completion-stream.py
index 8e65c7ce..b6551714 100644
--- a/examples/examples/simple/openai/create-completion-stream.py
+++ b/examples/examples/simple/openai/create-completion-stream.py
@@ -7,7 +7,7 @@
init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
log_level="info",
)
diff --git a/examples/examples/simple/openai/create-completion.py b/examples/examples/simple/openai/create-completion.py
index aec87ddd..ac848459 100644
--- a/examples/examples/simple/openai/create-completion.py
+++ b/examples/examples/simple/openai/create-completion.py
@@ -7,7 +7,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
log_level="info",
)
diff --git a/examples/examples/simple/openai/create-embedding-async.py b/examples/examples/simple/openai/create-embedding-async.py
index 5ca63c11..0a892317 100644
--- a/examples/examples/simple/openai/create-embedding-async.py
+++ b/examples/examples/simple/openai/create-embedding-async.py
@@ -9,7 +9,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
log_level="info",
)
diff --git a/examples/examples/simple/openai/create-embedding.py b/examples/examples/simple/openai/create-embedding.py
index 68201806..529d9f38 100644
--- a/examples/examples/simple/openai/create-embedding.py
+++ b/examples/examples/simple/openai/create-embedding.py
@@ -8,7 +8,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
log_level="info",
)
diff --git a/examples/examples/simple/pinecone/delete.py b/examples/examples/simple/pinecone/delete.py
index f0c7ddc3..771973d9 100644
--- a/examples/examples/simple/pinecone/delete.py
+++ b/examples/examples/simple/pinecone/delete.py
@@ -8,7 +8,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
log_level="info",
)
diff --git a/examples/examples/simple/pinecone/fetch.py b/examples/examples/simple/pinecone/fetch.py
index 3e678f6d..128ada8c 100644
--- a/examples/examples/simple/pinecone/fetch.py
+++ b/examples/examples/simple/pinecone/fetch.py
@@ -8,7 +8,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
log_level="info",
)
diff --git a/examples/examples/simple/pinecone/list-indices.py b/examples/examples/simple/pinecone/list-indices.py
index 1d258159..2d88195f 100644
--- a/examples/examples/simple/pinecone/list-indices.py
+++ b/examples/examples/simple/pinecone/list-indices.py
@@ -8,7 +8,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
log_level="info",
)
diff --git a/examples/examples/simple/pinecone/query.py b/examples/examples/simple/pinecone/query.py
index cebf113f..6dccb073 100644
--- a/examples/examples/simple/pinecone/query.py
+++ b/examples/examples/simple/pinecone/query.py
@@ -10,7 +10,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
log_level="info",
)
diff --git a/examples/examples/simple/pinecone/upsert.py b/examples/examples/simple/pinecone/upsert.py
index ac86f842..a5255b8d 100644
--- a/examples/examples/simple/pinecone/upsert.py
+++ b/examples/examples/simple/pinecone/upsert.py
@@ -11,7 +11,7 @@
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
log_level="info",
)
diff --git a/examples/pyproject.toml b/examples/pyproject.toml
index 66b94635..3a96c318 100644
--- a/examples/pyproject.toml
+++ b/examples/pyproject.toml
@@ -11,7 +11,7 @@ openai = "1.0.0b2"
pinecone-client = "^2.2.1"
python = "^3.8.1"
python-dotenv = "^1.0.0"
-gentrace-py = { path = "../package/dist/gentrace_py-0.22.0.tar.gz", develop = true }
+gentrace-py = {path = "../package/dist/gentrace_py-0.23.0.tar.gz", develop = true}
[tool.poetry.group.lint.dependencies]
black = "^23.3.0"
diff --git a/package/.openapi-generator/FILES b/package/.openapi-generator/FILES
index 3c0f4a10..1e762edb 100644
--- a/package/.openapi-generator/FILES
+++ b/package/.openapi-generator/FILES
@@ -6,18 +6,25 @@ docs/models/ExpandedTestResult.md
docs/models/ExpandedTestRun.md
docs/models/FeedbackRequest.md
docs/models/FeedbackResponse.md
+docs/models/FilterableMetadataInput.md
docs/models/FullRun.md
docs/models/MetadataValueObject.md
docs/models/Pipeline.md
+docs/models/PipelineV2.md
docs/models/ResolvedStepRun.md
docs/models/RunRequest.md
docs/models/RunResponse.md
+docs/models/SearchableStringInput.md
+docs/models/SearchableUnixSecondsInput.md
docs/models/StepRun.md
docs/models/TestCase.md
+docs/models/TestCaseV2.md
docs/models/TestEvaluation.md
docs/models/TestEvaluator.md
docs/models/TestResult.md
+docs/models/TestResultV2.md
docs/models/TestRun.md
+docs/models/UnixSeconds.md
docs/models/UpdateTestCase.md
gentrace/__init__.py
gentrace/api_client.py
@@ -40,29 +47,43 @@ gentrace/model/feedback_request.py
gentrace/model/feedback_request.pyi
gentrace/model/feedback_response.py
gentrace/model/feedback_response.pyi
+gentrace/model/filterable_metadata_input.py
+gentrace/model/filterable_metadata_input.pyi
gentrace/model/full_run.py
gentrace/model/metadata_value_object.py
gentrace/model/metadata_value_object.pyi
gentrace/model/pipeline.py
gentrace/model/pipeline.pyi
+gentrace/model/pipeline_v2.py
+gentrace/model/pipeline_v2.pyi
gentrace/model/resolved_step_run.py
gentrace/model/resolved_step_run.pyi
gentrace/model/run_request.py
gentrace/model/run_request.pyi
gentrace/model/run_response.py
gentrace/model/run_response.pyi
+gentrace/model/searchable_string_input.py
+gentrace/model/searchable_string_input.pyi
+gentrace/model/searchable_unix_seconds_input.py
+gentrace/model/searchable_unix_seconds_input.pyi
gentrace/model/step_run.py
gentrace/model/step_run.pyi
gentrace/model/test_case.py
gentrace/model/test_case.pyi
+gentrace/model/test_case_v2.py
+gentrace/model/test_case_v2.pyi
gentrace/model/test_evaluation.py
gentrace/model/test_evaluation.pyi
gentrace/model/test_evaluator.py
gentrace/model/test_evaluator.pyi
gentrace/model/test_result.py
gentrace/model/test_result.pyi
+gentrace/model/test_result_v2.py
+gentrace/model/test_result_v2.pyi
gentrace/model/test_run.py
gentrace/model/test_run.pyi
+gentrace/model/unix_seconds.py
+gentrace/model/unix_seconds.pyi
gentrace/model/update_test_case.py
gentrace/model/update_test_case.pyi
gentrace/models/__init__.py
diff --git a/package/conftest.py b/package/conftest.py
index e06ca60b..5e33edc3 100644
--- a/package/conftest.py
+++ b/package/conftest.py
@@ -23,7 +23,7 @@
def setup_teardown_openai():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
yield "done"
@@ -35,7 +35,7 @@ def setup_teardown_openai():
def setup_teardown_pinecone():
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
gentrace.configure_pinecone()
diff --git a/package/docs/apis/tags/CoreApi.md b/package/docs/apis/tags/CoreApi.md
index 20974469..add36bf1 100644
--- a/package/docs/apis/tags/CoreApi.md
+++ b/package/docs/apis/tags/CoreApi.md
@@ -1,25 +1,28 @@
# gentrace.apis.tags.core_api.CoreApi
-All URIs are relative to *https://gentrace.ai/api/v1*
+All URIs are relative to *https://gentrace.ai/api*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**files_upload_post**](#files_upload_post) | **post** /files/upload | Upload an image file
-[**pipelines_get**](#pipelines_get) | **get** /pipelines | Get pipelines, optionally filtered by label
-[**run_post**](#run_post) | **post** /run | Create a run
-[**test_case_get**](#test_case_get) | **get** /test-case | Get test cases for a pipeline
-[**test_case_patch**](#test_case_patch) | **patch** /test-case | Update an existing test case
-[**test_case_post**](#test_case_post) | **post** /test-case | Create a new test case
-[**test_result_get**](#test_result_get) | **get** /test-result | Get test results for a pipeline
-[**test_result_id_get**](#test_result_id_get) | **get** /test-result/{id} | Fetch test result by ID
-[**test_result_post**](#test_result_post) | **post** /test-result | Create a new test result from runs
-[**test_result_simple_post**](#test_result_simple_post) | **post** /test-result-simple | Create a new test result from test runs
-[**test_result_status_get**](#test_result_status_get) | **get** /test-result/status | Get status of the test result
-
-# **files_upload_post**
-
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} files_upload_post()
+[**v1_files_upload_post**](#v1_files_upload_post) | **post** /v1/files/upload | Upload an image file
+[**v1_pipelines_get**](#v1_pipelines_get) | **get** /v1/pipelines | Get pipelines, optionally filtered by label
+[**v1_run_post**](#v1_run_post) | **post** /v1/run | Create a run
+[**v1_test_case_get**](#v1_test_case_get) | **get** /v1/test-case | Get test cases for a pipeline
+[**v1_test_case_patch**](#v1_test_case_patch) | **patch** /v1/test-case | Update an existing test case
+[**v1_test_case_post**](#v1_test_case_post) | **post** /v1/test-case | Create a new test case
+[**v1_test_result_get**](#v1_test_result_get) | **get** /v1/test-result | Get test results for a pipeline
+[**v1_test_result_id_get**](#v1_test_result_id_get) | **get** /v1/test-result/{id} | Fetch test result by ID
+[**v1_test_result_post**](#v1_test_result_post) | **post** /v1/test-result | Create a new test result from runs
+[**v1_test_result_simple_post**](#v1_test_result_simple_post) | **post** /v1/test-result-simple | Create a new test result from test runs
+[**v1_test_result_status_get**](#v1_test_result_status_get) | **get** /v1/test-result/status | Get status of the test result
+[**v2_pipelines_get**](#v2_pipelines_get) | **get** /v2/pipelines | Get pipelines, optionally filtered by label
+[**v2_test_cases_get**](#v2_test_cases_get) | **get** /v2/test-cases | Get test cases for a pipeline
+[**v2_test_results_get**](#v2_test_results_get) | **get** /v2/test-results | Get test results for a pipeline
+
+# **v1_files_upload_post**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v1_files_upload_post()
Upload an image file
@@ -30,10 +33,10 @@ Upload an image file
import gentrace
from gentrace.apis.tags import core_api
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -59,13 +62,13 @@ with gentrace.ApiClient(configuration) as api_client:
)
try:
# Upload an image file
- api_response = api_instance.files_upload_post(
+ api_response = api_instance.v1_files_upload_post(
query_params=query_params,
body=body,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->files_upload_post: %s\n" % e)
+ print("Exception when calling CoreApi->v1_files_upload_post: %s\n" % e)
```
### Parameters
@@ -114,12 +117,12 @@ str, | str, | |
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-201 | [ApiResponseFor201](#files_upload_post.ApiResponseFor201) | Image uploaded successfully
-400 | [ApiResponseFor400](#files_upload_post.ApiResponseFor400) | Bad request. Reasons can be missing org ID, missing file name or file too large.
-401 | [ApiResponseFor401](#files_upload_post.ApiResponseFor401) | Unauthorized. Invalid API key or token.
-500 | [ApiResponseFor500](#files_upload_post.ApiResponseFor500) | Unexpected server error
+201 | [ApiResponseFor201](#v1_files_upload_post.ApiResponseFor201) | Image uploaded successfully
+400 | [ApiResponseFor400](#v1_files_upload_post.ApiResponseFor400) | Bad request. Reasons can be missing org ID, missing file name or file too large.
+401 | [ApiResponseFor401](#v1_files_upload_post.ApiResponseFor401) | Unauthorized. Invalid API key or token.
+500 | [ApiResponseFor500](#v1_files_upload_post.ApiResponseFor500) | Unexpected server error
-#### files_upload_post.ApiResponseFor201
+#### v1_files_upload_post.ApiResponseFor201
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -152,7 +155,7 @@ Key | Input Type | Accessed Type | Description | Notes
**url** | str, | str, | URL of the uploaded image | [optional]
**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
-#### files_upload_post.ApiResponseFor400
+#### v1_files_upload_post.ApiResponseFor400
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -185,7 +188,7 @@ Key | Input Type | Accessed Type | Description | Notes
**message** | str, | str, | | [optional]
**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
-#### files_upload_post.ApiResponseFor401
+#### v1_files_upload_post.ApiResponseFor401
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -218,7 +221,7 @@ Key | Input Type | Accessed Type | Description | Notes
**message** | str, | str, | | [optional]
**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
-#### files_upload_post.ApiResponseFor500
+#### v1_files_upload_post.ApiResponseFor500
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -257,9 +260,9 @@ Key | Input Type | Accessed Type | Description | Notes
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **pipelines_get**
-
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} pipelines_get()
+# **v1_pipelines_get**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v1_pipelines_get()
Get pipelines, optionally filtered by label
@@ -272,10 +275,10 @@ from gentrace.apis.tags import core_api
from gentrace.model.pipeline import Pipeline
from gentrace.model.test_case import TestCase
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -299,12 +302,12 @@ with gentrace.ApiClient(configuration) as api_client:
}
try:
# Get pipelines, optionally filtered by label
- api_response = api_instance.pipelines_get(
+ api_response = api_instance.v1_pipelines_get(
query_params=query_params,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->pipelines_get: %s\n" % e)
+ print("Exception when calling CoreApi->v1_pipelines_get: %s\n" % e)
```
### Parameters
@@ -344,11 +347,11 @@ str, | str, | |
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#pipelines_get.ApiResponseFor200) | Pipelines retrieved successfully
-400 | [ApiResponseFor400](#pipelines_get.ApiResponseFor400) | Invalid pipeline ID
-500 | [ApiResponseFor500](#pipelines_get.ApiResponseFor500) | Server error
+200 | [ApiResponseFor200](#v1_pipelines_get.ApiResponseFor200) | Pipelines retrieved successfully
+400 | [ApiResponseFor400](#v1_pipelines_get.ApiResponseFor400) | Invalid pipeline ID
+500 | [ApiResponseFor500](#v1_pipelines_get.ApiResponseFor500) | Server error
-#### pipelines_get.ApiResponseFor200
+#### v1_pipelines_get.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -483,14 +486,14 @@ Class Name | Input Type | Accessed Type | Description | Notes
------------- | ------------- | ------------- | ------------- | -------------
[**TestCase**]({{complexTypePrefix}}TestCase.md) | [**TestCase**]({{complexTypePrefix}}TestCase.md) | [**TestCase**]({{complexTypePrefix}}TestCase.md) | |
-#### pipelines_get.ApiResponseFor400
+#### v1_pipelines_get.ApiResponseFor400
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | Unset | body was not defined |
headers | Unset | headers were not defined |
-#### pipelines_get.ApiResponseFor500
+#### v1_pipelines_get.ApiResponseFor500
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -503,9 +506,9 @@ headers | Unset | headers were not defined |
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **run_post**
-
-> RunResponse run_post(run_request)
+# **v1_run_post**
+
+> RunResponse v1_run_post(run_request)
Create a run
@@ -518,10 +521,10 @@ from gentrace.apis.tags import core_api
from gentrace.model.run_request import RunRequest
from gentrace.model.run_response import RunResponse
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -573,12 +576,12 @@ with gentrace.ApiClient(configuration) as api_client:
)
try:
# Create a run
- api_response = api_instance.run_post(
+ api_response = api_instance.v1_run_post(
body=body,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->run_post: %s\n" % e)
+ print("Exception when calling CoreApi->v1_run_post: %s\n" % e)
```
### Parameters
@@ -604,11 +607,11 @@ Type | Description | Notes
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#run_post.ApiResponseFor200) | Stored run
-400 | [ApiResponseFor400](#run_post.ApiResponseFor400) | Bad request
-500 | [ApiResponseFor500](#run_post.ApiResponseFor500) | Internal server error
+200 | [ApiResponseFor200](#v1_run_post.ApiResponseFor200) | Stored run
+400 | [ApiResponseFor400](#v1_run_post.ApiResponseFor400) | Bad request
+500 | [ApiResponseFor500](#v1_run_post.ApiResponseFor500) | Internal server error
-#### run_post.ApiResponseFor200
+#### v1_run_post.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -627,14 +630,14 @@ Type | Description | Notes
[**RunResponse**](../../models/RunResponse.md) | |
-#### run_post.ApiResponseFor400
+#### v1_run_post.ApiResponseFor400
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | Unset | body was not defined |
headers | Unset | headers were not defined |
-#### run_post.ApiResponseFor500
+#### v1_run_post.ApiResponseFor500
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -647,9 +650,9 @@ headers | Unset | headers were not defined |
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **test_case_get**
-
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} test_case_get()
+# **v1_test_case_get**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v1_test_case_get()
Get test cases for a pipeline
@@ -661,10 +664,10 @@ import gentrace
from gentrace.apis.tags import core_api
from gentrace.model.test_case import TestCase
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -688,12 +691,12 @@ with gentrace.ApiClient(configuration) as api_client:
}
try:
# Get test cases for a pipeline
- api_response = api_instance.test_case_get(
+ api_response = api_instance.v1_test_case_get(
query_params=query_params,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->test_case_get: %s\n" % e)
+ print("Exception when calling CoreApi->v1_test_case_get: %s\n" % e)
```
### Parameters
@@ -733,11 +736,11 @@ str, | str, | |
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#test_case_get.ApiResponseFor200) | Test cases retrieved successfully
-400 | [ApiResponseFor400](#test_case_get.ApiResponseFor400) | Invalid pipeline ID
-500 | [ApiResponseFor500](#test_case_get.ApiResponseFor500) | Server error
+200 | [ApiResponseFor200](#v1_test_case_get.ApiResponseFor200) | Test cases retrieved successfully
+400 | [ApiResponseFor400](#v1_test_case_get.ApiResponseFor400) | Invalid pipeline ID
+500 | [ApiResponseFor500](#v1_test_case_get.ApiResponseFor500) | Server error
-#### test_case_get.ApiResponseFor200
+#### v1_test_case_get.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -794,14 +797,14 @@ Class Name | Input Type | Accessed Type | Description | Notes
------------- | ------------- | ------------- | ------------- | -------------
[**TestCase**]({{complexTypePrefix}}TestCase.md) | [**TestCase**]({{complexTypePrefix}}TestCase.md) | [**TestCase**]({{complexTypePrefix}}TestCase.md) | |
-#### test_case_get.ApiResponseFor400
+#### v1_test_case_get.ApiResponseFor400
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | Unset | body was not defined |
headers | Unset | headers were not defined |
-#### test_case_get.ApiResponseFor500
+#### v1_test_case_get.ApiResponseFor500
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -814,9 +817,9 @@ headers | Unset | headers were not defined |
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **test_case_patch**
-
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} test_case_patch(update_test_case)
+# **v1_test_case_patch**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v1_test_case_patch(update_test_case)
Update an existing test case
@@ -828,10 +831,10 @@ import gentrace
from gentrace.apis.tags import core_api
from gentrace.model.update_test_case import UpdateTestCase
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -858,12 +861,12 @@ with gentrace.ApiClient(configuration) as api_client:
)
try:
# Update an existing test case
- api_response = api_instance.test_case_patch(
+ api_response = api_instance.v1_test_case_patch(
body=body,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->test_case_patch: %s\n" % e)
+ print("Exception when calling CoreApi->v1_test_case_patch: %s\n" % e)
```
### Parameters
@@ -889,11 +892,11 @@ Type | Description | Notes
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#test_case_patch.ApiResponseFor200) | Test case updated successfully
-400 | [ApiResponseFor400](#test_case_patch.ApiResponseFor400) | Bad request
-500 | [ApiResponseFor500](#test_case_patch.ApiResponseFor500) | Server error
+200 | [ApiResponseFor200](#v1_test_case_patch.ApiResponseFor200) | Test case updated successfully
+400 | [ApiResponseFor400](#v1_test_case_patch.ApiResponseFor400) | Bad request
+500 | [ApiResponseFor500](#v1_test_case_patch.ApiResponseFor500) | Server error
-#### test_case_patch.ApiResponseFor200
+#### v1_test_case_patch.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -926,14 +929,14 @@ Key | Input Type | Accessed Type | Description | Notes
**caseId** | str, | str, | ID of the updated test case | [optional]
**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
-#### test_case_patch.ApiResponseFor400
+#### v1_test_case_patch.ApiResponseFor400
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | Unset | body was not defined |
headers | Unset | headers were not defined |
-#### test_case_patch.ApiResponseFor500
+#### v1_test_case_patch.ApiResponseFor500
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -946,9 +949,9 @@ headers | Unset | headers were not defined |
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **test_case_post**
-
-> bool, date, datetime, dict, float, int, list, str, none_type test_case_post(any_type)
+# **v1_test_case_post**
+
+> bool, date, datetime, dict, float, int, list, str, none_type v1_test_case_post(any_type)
Create a new test case
@@ -961,10 +964,10 @@ from gentrace.apis.tags import core_api
from gentrace.model.create_single_test_case import CreateSingleTestCase
from gentrace.model.create_multiple_test_cases import CreateMultipleTestCases
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -985,12 +988,12 @@ with gentrace.ApiClient(configuration) as api_client:
body = None
try:
# Create a new test case
- api_response = api_instance.test_case_post(
+ api_response = api_instance.v1_test_case_post(
body=body,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->test_case_post: %s\n" % e)
+ print("Exception when calling CoreApi->v1_test_case_post: %s\n" % e)
```
### Parameters
@@ -1024,11 +1027,11 @@ Class Name | Input Type | Accessed Type | Description | Notes
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#test_case_post.ApiResponseFor200) | Test case(s) created successfully
-400 | [ApiResponseFor400](#test_case_post.ApiResponseFor400) | Bad request
-500 | [ApiResponseFor500](#test_case_post.ApiResponseFor500) | Server error
+200 | [ApiResponseFor200](#v1_test_case_post.ApiResponseFor200) | Test case(s) created successfully
+400 | [ApiResponseFor400](#v1_test_case_post.ApiResponseFor400) | Bad request
+500 | [ApiResponseFor500](#v1_test_case_post.ApiResponseFor500) | Server error
-#### test_case_post.ApiResponseFor200
+#### v1_test_case_post.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -1115,14 +1118,14 @@ Key | Input Type | Accessed Type | Description | Notes
**creationCount** | decimal.Decimal, int, | decimal.Decimal, | Number of created test cases | [optional]
**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
-#### test_case_post.ApiResponseFor400
+#### v1_test_case_post.ApiResponseFor400
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | Unset | body was not defined |
headers | Unset | headers were not defined |
-#### test_case_post.ApiResponseFor500
+#### v1_test_case_post.ApiResponseFor500
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -1135,9 +1138,9 @@ headers | Unset | headers were not defined |
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **test_result_get**
-
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} test_result_get(pipeline_slug)
+# **v1_test_result_get**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v1_test_result_get(pipeline_slug)
Get test results for a pipeline
@@ -1149,10 +1152,10 @@ import gentrace
from gentrace.apis.tags import core_api
from gentrace.model.test_result import TestResult
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -1175,12 +1178,12 @@ with gentrace.ApiClient(configuration) as api_client:
}
try:
# Get test results for a pipeline
- api_response = api_instance.test_result_get(
+ api_response = api_instance.v1_test_result_get(
query_params=query_params,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->test_result_get: %s\n" % e)
+ print("Exception when calling CoreApi->v1_test_result_get: %s\n" % e)
```
### Parameters
@@ -1212,11 +1215,11 @@ str, | str, | |
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#test_result_get.ApiResponseFor200) | Successful response
-400 | [ApiResponseFor400](#test_result_get.ApiResponseFor400) | Invalid request parameters
-404 | [ApiResponseFor404](#test_result_get.ApiResponseFor404) | Results not found
+200 | [ApiResponseFor200](#v1_test_result_get.ApiResponseFor200) | Successful response
+400 | [ApiResponseFor400](#v1_test_result_get.ApiResponseFor400) | Invalid request parameters
+404 | [ApiResponseFor404](#v1_test_result_get.ApiResponseFor404) | Results not found
-#### test_result_get.ApiResponseFor200
+#### v1_test_result_get.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -1273,14 +1276,14 @@ Class Name | Input Type | Accessed Type | Description | Notes
------------- | ------------- | ------------- | ------------- | -------------
[**TestResult**]({{complexTypePrefix}}TestResult.md) | [**TestResult**]({{complexTypePrefix}}TestResult.md) | [**TestResult**]({{complexTypePrefix}}TestResult.md) | |
-#### test_result_get.ApiResponseFor400
+#### v1_test_result_get.ApiResponseFor400
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | Unset | body was not defined |
headers | Unset | headers were not defined |
-#### test_result_get.ApiResponseFor404
+#### v1_test_result_get.ApiResponseFor404
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -1293,9 +1296,9 @@ headers | Unset | headers were not defined |
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **test_result_id_get**
-
-> ExpandedTestResult test_result_id_get(id)
+# **v1_test_result_id_get**
+
+> ExpandedTestResult v1_test_result_id_get(id)
Fetch test result by ID
@@ -1307,10 +1310,10 @@ import gentrace
from gentrace.apis.tags import core_api
from gentrace.model.expanded_test_result import ExpandedTestResult
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -1333,12 +1336,12 @@ with gentrace.ApiClient(configuration) as api_client:
}
try:
# Fetch test result by ID
- api_response = api_instance.test_result_id_get(
+ api_response = api_instance.v1_test_result_id_get(
path_params=path_params,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->test_result_id_get: %s\n" % e)
+ print("Exception when calling CoreApi->v1_test_result_id_get: %s\n" % e)
```
### Parameters
@@ -1369,12 +1372,12 @@ str, uuid.UUID, | str, | | value must be a uuid
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#test_result_id_get.ApiResponseFor200) | Test result retrieved successfully
-400 | [ApiResponseFor400](#test_result_id_get.ApiResponseFor400) | Bad request.
-404 | [ApiResponseFor404](#test_result_id_get.ApiResponseFor404) | Test result not found.
-500 | [ApiResponseFor500](#test_result_id_get.ApiResponseFor500) | Internal server error.
+200 | [ApiResponseFor200](#v1_test_result_id_get.ApiResponseFor200) | Test result retrieved successfully
+400 | [ApiResponseFor400](#v1_test_result_id_get.ApiResponseFor400) | Bad request.
+404 | [ApiResponseFor404](#v1_test_result_id_get.ApiResponseFor404) | Test result not found.
+500 | [ApiResponseFor500](#v1_test_result_id_get.ApiResponseFor500) | Internal server error.
-#### test_result_id_get.ApiResponseFor200
+#### v1_test_result_id_get.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -1393,21 +1396,21 @@ Type | Description | Notes
[**ExpandedTestResult**](../../models/ExpandedTestResult.md) | |
-#### test_result_id_get.ApiResponseFor400
+#### v1_test_result_id_get.ApiResponseFor400
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | Unset | body was not defined |
headers | Unset | headers were not defined |
-#### test_result_id_get.ApiResponseFor404
+#### v1_test_result_id_get.ApiResponseFor404
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
body | Unset | body was not defined |
headers | Unset | headers were not defined |
-#### test_result_id_get.ApiResponseFor500
+#### v1_test_result_id_get.ApiResponseFor500
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -1420,9 +1423,9 @@ headers | Unset | headers were not defined |
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **test_result_post**
-
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} test_result_post(any_type)
+# **v1_test_result_post**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v1_test_result_post(any_type)
Create a new test result from runs
@@ -1435,10 +1438,10 @@ from gentrace.apis.tags import core_api
from gentrace.model.metadata_value_object import MetadataValueObject
from gentrace.model.step_run import StepRun
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -1498,12 +1501,12 @@ with gentrace.ApiClient(configuration) as api_client:
)
try:
# Create a new test result from runs
- api_response = api_instance.test_result_post(
+ api_response = api_instance.v1_test_result_post(
body=body,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->test_result_post: %s\n" % e)
+ print("Exception when calling CoreApi->v1_test_result_post: %s\n" % e)
```
### Parameters
@@ -1609,9 +1612,9 @@ Class Name | Input Type | Accessed Type | Description | Notes
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#test_result_post.ApiResponseFor200) | Test result created successfully
+200 | [ApiResponseFor200](#v1_test_result_post.ApiResponseFor200) | Test result created successfully
-#### test_result_post.ApiResponseFor200
+#### v1_test_result_post.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -1650,9 +1653,9 @@ Key | Input Type | Accessed Type | Description | Notes
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **test_result_simple_post**
-
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} test_result_simple_post(any_type)
+# **v1_test_result_simple_post**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v1_test_result_simple_post(any_type)
Create a new test result from test runs
@@ -1664,10 +1667,10 @@ import gentrace
from gentrace.apis.tags import core_api
from gentrace.model.metadata_value_object import MetadataValueObject
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -1706,12 +1709,12 @@ with gentrace.ApiClient(configuration) as api_client:
)
try:
# Create a new test result from test runs
- api_response = api_instance.test_result_simple_post(
+ api_response = api_instance.v1_test_result_simple_post(
body=body,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->test_result_simple_post: %s\n" % e)
+ print("Exception when calling CoreApi->v1_test_result_simple_post: %s\n" % e)
```
### Parameters
@@ -1817,9 +1820,9 @@ Key | Input Type | Accessed Type | Description | Notes
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#test_result_simple_post.ApiResponseFor200) | Test result created successfully
+200 | [ApiResponseFor200](#v1_test_result_simple_post.ApiResponseFor200) | Test result created successfully
-#### test_result_simple_post.ApiResponseFor200
+#### v1_test_result_simple_post.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -1858,9 +1861,9 @@ Key | Input Type | Accessed Type | Description | Notes
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
-# **test_result_status_get**
-
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} test_result_status_get(id)
+# **v1_test_result_status_get**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v1_test_result_status_get(id)
Get status of the test result
@@ -1871,10 +1874,10 @@ Get status of the test result
import gentrace
from gentrace.apis.tags import core_api
from pprint import pprint
-# Defining the host is optional and defaults to https://gentrace.ai/api/v1
+# Defining the host is optional and defaults to https://gentrace.ai/api
# See configuration.py for a list of all supported configuration parameters.
configuration = gentrace.Configuration(
- host = "https://gentrace.ai/api/v1"
+ host = "https://gentrace.ai/api"
)
# The client must configure the authentication and authorization parameters
@@ -1897,12 +1900,12 @@ with gentrace.ApiClient(configuration) as api_client:
}
try:
# Get status of the test result
- api_response = api_instance.test_result_status_get(
+ api_response = api_instance.v1_test_result_status_get(
query_params=query_params,
)
pprint(api_response)
except gentrace.ApiException as e:
- print("Exception when calling CoreApi->test_result_status_get: %s\n" % e)
+ print("Exception when calling CoreApi->v1_test_result_status_get: %s\n" % e)
```
### Parameters
@@ -1934,9 +1937,9 @@ str, uuid.UUID, | str, | | value must be a uuid
Code | Class | Description
------------- | ------------- | -------------
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
-200 | [ApiResponseFor200](#test_result_status_get.ApiResponseFor200) | Test result status retrieved successfully
+200 | [ApiResponseFor200](#v1_test_result_status_get.ApiResponseFor200) | Test result status retrieved successfully
-#### test_result_status_get.ApiResponseFor200
+#### v1_test_result_status_get.ApiResponseFor200
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
response | urllib3.HTTPResponse | Raw response |
@@ -1981,3 +1984,485 @@ Key | Input Type | Accessed Type | Description | Notes
[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
+# **v2_pipelines_get**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v2_pipelines_get()
+
+Get pipelines, optionally filtered by label
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+```python
+import gentrace
+from gentrace.apis.tags import core_api
+from gentrace.model.pipeline_v2 import PipelineV2
+from pprint import pprint
+# Defining the host is optional and defaults to https://gentrace.ai/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = gentrace.Configuration(
+ host = "https://gentrace.ai/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = gentrace.Configuration(
+ access_token = 'YOUR_BEARER_TOKEN'
+)
+# Enter a context with an instance of the API client
+with gentrace.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = core_api.CoreApi(api_client)
+
+ # example passing only optional values
+ query_params = {
+ 'label': "label_example",
+ 'slug': "slug_example",
+ }
+ try:
+ # Get pipelines, optionally filtered by label
+ api_response = api_instance.v2_pipelines_get(
+ query_params=query_params,
+ )
+ pprint(api_response)
+ except gentrace.ApiException as e:
+ print("Exception when calling CoreApi->v2_pipelines_get: %s\n" % e)
+```
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+query_params | RequestQueryParams | |
+accept_content_types | typing.Tuple[str] | default is ('application/json', 'application/json; charset=utf-8', ) | Tells the server the content type(s) that are accepted by the client
+stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file
+timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client
+skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned
+
+### query_params
+#### RequestQueryParams
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+label | LabelSchema | | optional
+slug | SlugSchema | | optional
+
+
+# LabelSchema
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+# SlugSchema
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+### Return Types, Responses
+
+Code | Class | Description
+------------- | ------------- | -------------
+n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
+200 | [ApiResponseFor200](#v2_pipelines_get.ApiResponseFor200) | Pipelines retrieved successfully
+
+#### v2_pipelines_get.ApiResponseFor200
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+response | urllib3.HTTPResponse | Raw response |
+body | typing.Union[SchemaFor200ResponseBodyApplicationJson, SchemaFor200ResponseBodyApplicationJsonCharsetutf8, ] | |
+headers | Unset | headers were not defined |
+
+# SchemaFor200ResponseBodyApplicationJson
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**[data](#data)** | list, tuple, | tuple, | |
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# data
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+list, tuple, | tuple, | |
+
+### Tuple Items
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[**PipelineV2**]({{complexTypePrefix}}PipelineV2.md) | [**PipelineV2**]({{complexTypePrefix}}PipelineV2.md) | [**PipelineV2**]({{complexTypePrefix}}PipelineV2.md) | |
+
+# SchemaFor200ResponseBodyApplicationJsonCharsetutf8
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**data** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | |
+**[pipelines](#pipelines)** | list, tuple, | tuple, | | [optional]
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# pipelines
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+list, tuple, | tuple, | |
+
+### Tuple Items
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[**PipelineV2**]({{complexTypePrefix}}PipelineV2.md) | [**PipelineV2**]({{complexTypePrefix}}PipelineV2.md) | [**PipelineV2**]({{complexTypePrefix}}PipelineV2.md) | |
+
+### Authorization
+
+[bearerAuth](../../../README.md#bearerAuth)
+
+[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
+
+# **v2_test_cases_get**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v2_test_cases_get()
+
+Get test cases for a pipeline
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+```python
+import gentrace
+from gentrace.apis.tags import core_api
+from gentrace.model.test_case_v2 import TestCaseV2
+from pprint import pprint
+# Defining the host is optional and defaults to https://gentrace.ai/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = gentrace.Configuration(
+ host = "https://gentrace.ai/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = gentrace.Configuration(
+ access_token = 'YOUR_BEARER_TOKEN'
+)
+# Enter a context with an instance of the API client
+with gentrace.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = core_api.CoreApi(api_client)
+
+ # example passing only optional values
+ query_params = {
+ 'pipelineId': "pipelineId_example",
+ 'pipelineSlug': "pipelineSlug_example",
+ }
+ try:
+ # Get test cases for a pipeline
+ api_response = api_instance.v2_test_cases_get(
+ query_params=query_params,
+ )
+ pprint(api_response)
+ except gentrace.ApiException as e:
+ print("Exception when calling CoreApi->v2_test_cases_get: %s\n" % e)
+```
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+query_params | RequestQueryParams | |
+accept_content_types | typing.Tuple[str] | default is ('application/json', 'application/json; charset=utf-8', ) | Tells the server the content type(s) that are accepted by the client
+stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file
+timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client
+skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned
+
+### query_params
+#### RequestQueryParams
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+pipelineId | PipelineIdSchema | | optional
+pipelineSlug | PipelineSlugSchema | | optional
+
+
+# PipelineIdSchema
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, uuid.UUID, | str, | | value must be a uuid
+
+# PipelineSlugSchema
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+### Return Types, Responses
+
+Code | Class | Description
+------------- | ------------- | -------------
+n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
+200 | [ApiResponseFor200](#v2_test_cases_get.ApiResponseFor200) | Test cases retrieved successfully
+
+#### v2_test_cases_get.ApiResponseFor200
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+response | urllib3.HTTPResponse | Raw response |
+body | typing.Union[SchemaFor200ResponseBodyApplicationJson, SchemaFor200ResponseBodyApplicationJsonCharsetutf8, ] | |
+headers | Unset | headers were not defined |
+
+# SchemaFor200ResponseBodyApplicationJson
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**[data](#data)** | list, tuple, | tuple, | |
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# data
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+list, tuple, | tuple, | |
+
+### Tuple Items
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[**TestCaseV2**]({{complexTypePrefix}}TestCaseV2.md) | [**TestCaseV2**]({{complexTypePrefix}}TestCaseV2.md) | [**TestCaseV2**]({{complexTypePrefix}}TestCaseV2.md) | |
+
+# SchemaFor200ResponseBodyApplicationJsonCharsetutf8
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**[data](#data)** | list, tuple, | tuple, | |
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# data
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+list, tuple, | tuple, | |
+
+### Tuple Items
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[**TestCaseV2**]({{complexTypePrefix}}TestCaseV2.md) | [**TestCaseV2**]({{complexTypePrefix}}TestCaseV2.md) | [**TestCaseV2**]({{complexTypePrefix}}TestCaseV2.md) | |
+
+### Authorization
+
+[bearerAuth](../../../README.md#bearerAuth)
+
+[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
+
+# **v2_test_results_get**
+
+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} v2_test_results_get()
+
+Get test results for a pipeline
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+```python
+import gentrace
+from gentrace.apis.tags import core_api
+from gentrace.model.test_result_v2 import TestResultV2
+from gentrace.model.searchable_unix_seconds_input import SearchableUnixSecondsInput
+from gentrace.model.filterable_metadata_input import FilterableMetadataInput
+from pprint import pprint
+# Defining the host is optional and defaults to https://gentrace.ai/api
+# See configuration.py for a list of all supported configuration parameters.
+configuration = gentrace.Configuration(
+ host = "https://gentrace.ai/api"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = gentrace.Configuration(
+ access_token = 'YOUR_BEARER_TOKEN'
+)
+# Enter a context with an instance of the API client
+with gentrace.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = core_api.CoreApi(api_client)
+
+ # example passing only optional values
+ query_params = {
+ 'pipelineId': "pipelineId_example",
+ 'pipelineSlug': "pipelineSlug_example",
+ 'createdAt': SearchableUnixSecondsInput(None),
+ 'metadata': FilterableMetadataInput(
+ key=dict(
+ exists=True,
+ contains="contains_example",
+ equals=None,
+ gt=None,
+ gte=None,
+ lt=None,
+ lte=None,
+ ),
+ ),
+ }
+ try:
+ # Get test results for a pipeline
+ api_response = api_instance.v2_test_results_get(
+ query_params=query_params,
+ )
+ pprint(api_response)
+ except gentrace.ApiException as e:
+ print("Exception when calling CoreApi->v2_test_results_get: %s\n" % e)
+```
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+query_params | RequestQueryParams | |
+accept_content_types | typing.Tuple[str] | default is ('application/json', 'application/json; charset=utf-8', ) | Tells the server the content type(s) that are accepted by the client
+stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file
+timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client
+skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned
+
+### query_params
+#### RequestQueryParams
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+pipelineId | PipelineIdSchema | | optional
+pipelineSlug | PipelineSlugSchema | | optional
+createdAt | CreatedAtSchema | | optional
+metadata | MetadataSchema | | optional
+
+
+# PipelineIdSchema
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+# PipelineSlugSchema
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+# CreatedAtSchema
+Type | Description | Notes
+------------- | ------------- | -------------
+[**SearchableUnixSecondsInput**](../../models/SearchableUnixSecondsInput.md) | |
+
+
+# MetadataSchema
+Type | Description | Notes
+------------- | ------------- | -------------
+[**FilterableMetadataInput**](../../models/FilterableMetadataInput.md) | |
+
+
+### Return Types, Responses
+
+Code | Class | Description
+------------- | ------------- | -------------
+n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
+200 | [ApiResponseFor200](#v2_test_results_get.ApiResponseFor200) | Successful response
+
+#### v2_test_results_get.ApiResponseFor200
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+response | urllib3.HTTPResponse | Raw response |
+body | typing.Union[SchemaFor200ResponseBodyApplicationJson, SchemaFor200ResponseBodyApplicationJsonCharsetutf8, ] | |
+headers | Unset | headers were not defined |
+
+# SchemaFor200ResponseBodyApplicationJson
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**[data](#data)** | list, tuple, | tuple, | |
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# data
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+list, tuple, | tuple, | |
+
+### Tuple Items
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[**TestResultV2**]({{complexTypePrefix}}TestResultV2.md) | [**TestResultV2**]({{complexTypePrefix}}TestResultV2.md) | [**TestResultV2**]({{complexTypePrefix}}TestResultV2.md) | |
+
+# SchemaFor200ResponseBodyApplicationJsonCharsetutf8
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**[data](#data)** | list, tuple, | tuple, | |
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# data
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+list, tuple, | tuple, | |
+
+### Tuple Items
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[**TestResultV2**]({{complexTypePrefix}}TestResultV2.md) | [**TestResultV2**]({{complexTypePrefix}}TestResultV2.md) | [**TestResultV2**]({{complexTypePrefix}}TestResultV2.md) | |
+
+### Authorization
+
+[bearerAuth](../../../README.md#bearerAuth)
+
+[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
+
diff --git a/package/docs/models/FilterableMetadataInput.md b/package/docs/models/FilterableMetadataInput.md
new file mode 100644
index 00000000..80e027f8
--- /dev/null
+++ b/package/docs/models/FilterableMetadataInput.md
@@ -0,0 +1,185 @@
+# gentrace.model.filterable_metadata_input.FilterableMetadataInput
+
+Metadata filters look like { prompt: { contains: \"My prompt\" } }
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | Metadata filters look like { prompt: { contains: \"My prompt\" } } |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**[any_string_name](#any_string_name)** | dict, frozendict.frozendict, | frozendict.frozendict, | any string name can be used but the value must be the correct type | [optional]
+
+# any_string_name
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**exists** | bool, | BoolClass, | Specifies if the metadata key exists. | [optional]
+**contains** | str, | str, | The metadata value contains this string. | [optional]
+**[equals](#equals)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is equal to this value. | [optional]
+**[gt](#gt)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is greater than this value. | [optional]
+**[gte](#gte)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is greater than or equal to this value. | [optional]
+**[lt](#lt)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is less than this value. | [optional]
+**[lte](#lte)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is less than or equal to this value. | [optional]
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# equals
+
+The metadata value is equal to this value.
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is equal to this value. |
+
+### Composed Schemas (allOf/anyOf/oneOf/not)
+#### oneOf
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[one_of_0](#one_of_0) | str, | str, | |
+[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | |
+
+# one_of_0
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+# one_of_1
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+decimal.Decimal, int, float, | decimal.Decimal, | |
+
+# gt
+
+The metadata value is greater than this value.
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is greater than this value. |
+
+### Composed Schemas (allOf/anyOf/oneOf/not)
+#### oneOf
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[one_of_0](#one_of_0) | str, | str, | |
+[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | |
+
+# one_of_0
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+# one_of_1
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+decimal.Decimal, int, float, | decimal.Decimal, | |
+
+# gte
+
+The metadata value is greater than or equal to this value.
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is greater than or equal to this value. |
+
+### Composed Schemas (allOf/anyOf/oneOf/not)
+#### oneOf
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[one_of_0](#one_of_0) | str, | str, | |
+[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | |
+
+# one_of_0
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+# one_of_1
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+decimal.Decimal, int, float, | decimal.Decimal, | |
+
+# lt
+
+The metadata value is less than this value.
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is less than this value. |
+
+### Composed Schemas (allOf/anyOf/oneOf/not)
+#### oneOf
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[one_of_0](#one_of_0) | str, | str, | |
+[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | |
+
+# one_of_0
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+# one_of_1
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+decimal.Decimal, int, float, | decimal.Decimal, | |
+
+# lte
+
+The metadata value is less than or equal to this value.
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The metadata value is less than or equal to this value. |
+
+### Composed Schemas (allOf/anyOf/oneOf/not)
+#### oneOf
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[one_of_0](#one_of_0) | str, | str, | |
+[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | |
+
+# one_of_0
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+# one_of_1
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+decimal.Decimal, int, float, | decimal.Decimal, | |
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/package/docs/models/PipelineV2.md b/package/docs/models/PipelineV2.md
new file mode 100644
index 00000000..f7fffe76
--- /dev/null
+++ b/package/docs/models/PipelineV2.md
@@ -0,0 +1,37 @@
+# gentrace.model.pipeline_v2.PipelineV2
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**organizationId** | str, | str, | The ID of the organization that owns the pipeline |
+**createdAt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | value must be a 64 bit integer
+**id** | str, uuid.UUID, | str, | The ID of the pipeline | value must be a uuid
+**slug** | str, | str, | The slug of the pipeline |
+**[labels](#labels)** | list, tuple, | tuple, | The labels attached to the pipeline |
+**updatedAt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | value must be a 64 bit integer
+**archivedAt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | [optional] value must be a 64 bit integer
+**displayName** | None, str, | NoneClass, str, | The name of the pipeline | [optional]
+**branch** | None, str, | NoneClass, str, | The branch that the pipeline is associated with | [optional]
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# labels
+
+The labels attached to the pipeline
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+list, tuple, | tuple, | The labels attached to the pipeline |
+
+### Tuple Items
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+items | str, | str, | |
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/package/docs/models/SearchableStringInput.md b/package/docs/models/SearchableStringInput.md
new file mode 100644
index 00000000..a797205c
--- /dev/null
+++ b/package/docs/models/SearchableStringInput.md
@@ -0,0 +1,66 @@
+# gentrace.model.searchable_string_input.SearchableStringInput
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | |
+
+### Composed Schemas (allOf/anyOf/oneOf/not)
+#### anyOf
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[any_of_0](#any_of_0) | str, | str, | |
+[any_of_1](#any_of_1) | dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+# any_of_0
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+# any_of_1
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**contains** | str, | str, | | [optional]
+**search** | str, | str, | For Postgres full text search | [optional]
+**startsWith** | str, | str, | | [optional]
+**endsWith** | str, | str, | | [optional]
+**[in](#in)** | list, tuple, | tuple, | | [optional]
+**[notIn](#notIn)** | list, tuple, | tuple, | | [optional]
+**mode** | str, | str, | | [optional] must be one of ["insensitive", "default", ]
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# in
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+list, tuple, | tuple, | |
+
+### Tuple Items
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+items | str, | str, | |
+
+# notIn
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+list, tuple, | tuple, | |
+
+### Tuple Items
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+items | str, | str, | |
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/package/docs/models/SearchableUnixSecondsInput.md b/package/docs/models/SearchableUnixSecondsInput.md
new file mode 100644
index 00000000..ff7cf675
--- /dev/null
+++ b/package/docs/models/SearchableUnixSecondsInput.md
@@ -0,0 +1,41 @@
+# gentrace.model.searchable_unix_seconds_input.SearchableUnixSecondsInput
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | |
+
+### Composed Schemas (allOf/anyOf/oneOf/not)
+#### anyOf
+Class Name | Input Type | Accessed Type | Description | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+[any_of_0](#any_of_0) | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | value must be a 64 bit integer
+[any_of_1](#any_of_1) | dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+# any_of_0
+
+Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object.
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | value must be a 64 bit integer
+
+# any_of_1
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**gt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | [optional] value must be a 64 bit integer
+**gte** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | [optional] value must be a 64 bit integer
+**lt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | [optional] value must be a 64 bit integer
+**lte** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | [optional] value must be a 64 bit integer
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/package/docs/models/TestCaseV2.md b/package/docs/models/TestCaseV2.md
new file mode 100644
index 00000000..3f6bd137
--- /dev/null
+++ b/package/docs/models/TestCaseV2.md
@@ -0,0 +1,46 @@
+# gentrace.model.test_case_v2.TestCaseV2
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**createdAt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | value must be a 64 bit integer
+**[inputs](#inputs)** | dict, frozendict.frozendict, | frozendict.frozendict, | The input data for the test case as a JSON object |
+**name** | str, | str, | The name of the test case |
+**id** | str, uuid.UUID, | str, | The ID of the test case | value must be a uuid
+**pipelineId** | str, uuid.UUID, | str, | The ID of the pipeline that the test case belongs to | value must be a uuid
+**updatedAt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | value must be a 64 bit integer
+**archivedAt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | [optional] value must be a 64 bit integer
+**[expectedOutputs](#expectedOutputs)** | dict, frozendict.frozendict, None, | frozendict.frozendict, NoneClass, | The expected outputs for the test case | [optional]
+**setId** | str, uuid.UUID, | str, | The ID of the set (now pipeline) that the test case belongs to | [optional] value must be a uuid
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# inputs
+
+The input data for the test case as a JSON object
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | The input data for the test case as a JSON object |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# expectedOutputs
+
+The expected outputs for the test case
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, None, | frozendict.frozendict, NoneClass, | The expected outputs for the test case |
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/package/docs/models/TestResultV2.md b/package/docs/models/TestResultV2.md
new file mode 100644
index 00000000..ae5d896d
--- /dev/null
+++ b/package/docs/models/TestResultV2.md
@@ -0,0 +1,35 @@
+# gentrace.model.test_result_v2.TestResultV2
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**createdAt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | value must be a 64 bit integer
+**id** | str, uuid.UUID, | str, | The unique identifier for the test result. | value must be a uuid
+**pipelineId** | str, uuid.UUID, | str, | The unique identifier for the pipeline associated with the test result. | value must be a uuid
+**updatedAt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | value must be a 64 bit integer
+**archivedAt** | decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | [optional] value must be a 64 bit integer
+**branch** | None, str, | NoneClass, str, | The branch that the test result was created from | [optional]
+**commit** | None, str, | NoneClass, str, | The commit that the test result was created from | [optional]
+**[metadata](#metadata)** | dict, frozendict.frozendict, None, | frozendict.frozendict, NoneClass, | | [optional]
+**name** | None, str, | NoneClass, str, | The name of the test result | [optional]
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+# metadata
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, None, | frozendict.frozendict, NoneClass, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**any_string_name** | [**MetadataValueObject**](MetadataValueObject.md) | [**MetadataValueObject**](MetadataValueObject.md) | any string name can be used but the value must be the correct type | [optional]
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/package/docs/models/UnixSeconds.md b/package/docs/models/UnixSeconds.md
new file mode 100644
index 00000000..730a1deb
--- /dev/null
+++ b/package/docs/models/UnixSeconds.md
@@ -0,0 +1,11 @@
+# gentrace.model.unix_seconds.UnixSeconds
+
+Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object.
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+decimal.Decimal, int, | decimal.Decimal, | Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object. | value must be a 64 bit integer
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/package/gentrace/__init__.py b/package/gentrace/__init__.py
index c366d5d3..49ec21b7 100644
--- a/package/gentrace/__init__.py
+++ b/package/gentrace/__init__.py
@@ -7,7 +7,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
@@ -19,6 +19,8 @@
# import Configuration
from gentrace.configuration import Configuration
+from gentrace.providers.utils import is_openai_v1
+
# import exceptions
from gentrace.exceptions import OpenApiException
from gentrace.exceptions import ApiAttributeError
@@ -31,7 +33,7 @@
from gentrace.providers.pipeline import Pipeline
from gentrace.providers.pipeline_run import PipelineRun, flush
from gentrace.providers.step_run import StepRun
-from gentrace.providers.utils import to_date_string, is_openai_v1
+from gentrace.providers.utils import to_date_string
from gentrace.providers.files import *
from gentrace.providers.getters import *
diff --git a/package/gentrace/api_client.py b/package/gentrace/api_client.py
index fd1ee5d1..4dc01dbb 100644
--- a/package/gentrace/api_client.py
+++ b/package/gentrace/api_client.py
@@ -4,7 +4,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/apis/path_to_api.py b/package/gentrace/apis/path_to_api.py
index bcaa4dff..857caffe 100644
--- a/package/gentrace/apis/path_to_api.py
+++ b/package/gentrace/apis/path_to_api.py
@@ -1,38 +1,47 @@
import typing_extensions
-from gentrace.apis.paths.files_upload import FilesUpload
-from gentrace.apis.paths.pipelines import Pipelines
-from gentrace.apis.paths.run import Run
-from gentrace.apis.paths.test_case import TestCase
-from gentrace.apis.paths.test_result import TestResult
-from gentrace.apis.paths.test_result_id import TestResultId
-from gentrace.apis.paths.test_result_simple import TestResultSimple
-from gentrace.apis.paths.test_result_status import TestResultStatus
+from gentrace.apis.paths.v1_files_upload import V1FilesUpload
+from gentrace.apis.paths.v1_pipelines import V1Pipelines
+from gentrace.apis.paths.v1_run import V1Run
+from gentrace.apis.paths.v1_test_case import V1TestCase
+from gentrace.apis.paths.v1_test_result import V1TestResult
+from gentrace.apis.paths.v1_test_result_id import V1TestResultId
+from gentrace.apis.paths.v1_test_result_simple import V1TestResultSimple
+from gentrace.apis.paths.v1_test_result_status import V1TestResultStatus
+from gentrace.apis.paths.v2_pipelines import V2Pipelines
+from gentrace.apis.paths.v2_test_cases import V2TestCases
+from gentrace.apis.paths.v2_test_results import V2TestResults
from gentrace.paths import PathValues
PathToApi = typing_extensions.TypedDict(
'PathToApi',
{
- PathValues.RUN: Run,
- PathValues.TESTCASE: TestCase,
- PathValues.TESTRESULT: TestResult,
- PathValues.TESTRESULT_ID: TestResultId,
- PathValues.TESTRESULT_STATUS: TestResultStatus,
- PathValues.TESTRESULTSIMPLE: TestResultSimple,
- PathValues.PIPELINES: Pipelines,
- PathValues.FILES_UPLOAD: FilesUpload,
+ PathValues.V1_RUN: V1Run,
+ PathValues.V1_TESTCASE: V1TestCase,
+ PathValues.V1_TESTRESULT: V1TestResult,
+ PathValues.V1_TESTRESULT_ID: V1TestResultId,
+ PathValues.V1_TESTRESULT_STATUS: V1TestResultStatus,
+ PathValues.V1_TESTRESULTSIMPLE: V1TestResultSimple,
+ PathValues.V1_PIPELINES: V1Pipelines,
+ PathValues.V1_FILES_UPLOAD: V1FilesUpload,
+ PathValues.V2_TESTRESULTS: V2TestResults,
+ PathValues.V2_TESTCASES: V2TestCases,
+ PathValues.V2_PIPELINES: V2Pipelines,
}
)
path_to_api = PathToApi(
{
- PathValues.RUN: Run,
- PathValues.TESTCASE: TestCase,
- PathValues.TESTRESULT: TestResult,
- PathValues.TESTRESULT_ID: TestResultId,
- PathValues.TESTRESULT_STATUS: TestResultStatus,
- PathValues.TESTRESULTSIMPLE: TestResultSimple,
- PathValues.PIPELINES: Pipelines,
- PathValues.FILES_UPLOAD: FilesUpload,
+ PathValues.V1_RUN: V1Run,
+ PathValues.V1_TESTCASE: V1TestCase,
+ PathValues.V1_TESTRESULT: V1TestResult,
+ PathValues.V1_TESTRESULT_ID: V1TestResultId,
+ PathValues.V1_TESTRESULT_STATUS: V1TestResultStatus,
+ PathValues.V1_TESTRESULTSIMPLE: V1TestResultSimple,
+ PathValues.V1_PIPELINES: V1Pipelines,
+ PathValues.V1_FILES_UPLOAD: V1FilesUpload,
+ PathValues.V2_TESTRESULTS: V2TestResults,
+ PathValues.V2_TESTCASES: V2TestCases,
+ PathValues.V2_PIPELINES: V2Pipelines,
}
)
diff --git a/package/gentrace/apis/paths/files_upload.py b/package/gentrace/apis/paths/files_upload.py
deleted file mode 100644
index 65f31c65..00000000
--- a/package/gentrace/apis/paths/files_upload.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from gentrace.paths.files_upload.post import ApiForpost
-
-
-class FilesUpload(
- ApiForpost,
-):
- pass
diff --git a/package/gentrace/apis/paths/pipelines.py b/package/gentrace/apis/paths/pipelines.py
deleted file mode 100644
index cbb8ce5f..00000000
--- a/package/gentrace/apis/paths/pipelines.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from gentrace.paths.pipelines.get import ApiForget
-
-
-class Pipelines(
- ApiForget,
-):
- pass
diff --git a/package/gentrace/apis/paths/run.py b/package/gentrace/apis/paths/run.py
deleted file mode 100644
index f89bc631..00000000
--- a/package/gentrace/apis/paths/run.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from gentrace.paths.run.post import ApiForpost
-
-
-class Run(
- ApiForpost,
-):
- pass
diff --git a/package/gentrace/apis/paths/test_case.py b/package/gentrace/apis/paths/test_case.py
deleted file mode 100644
index b43f7c30..00000000
--- a/package/gentrace/apis/paths/test_case.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from gentrace.paths.test_case.get import ApiForget
-from gentrace.paths.test_case.patch import ApiForpatch
-from gentrace.paths.test_case.post import ApiForpost
-
-
-class TestCase(
- ApiForget,
- ApiForpost,
- ApiForpatch,
-):
- pass
diff --git a/package/gentrace/apis/paths/test_result.py b/package/gentrace/apis/paths/test_result.py
deleted file mode 100644
index b84ac551..00000000
--- a/package/gentrace/apis/paths/test_result.py
+++ /dev/null
@@ -1,9 +0,0 @@
-from gentrace.paths.test_result.get import ApiForget
-from gentrace.paths.test_result.post import ApiForpost
-
-
-class TestResult(
- ApiForget,
- ApiForpost,
-):
- pass
diff --git a/package/gentrace/apis/paths/test_result_id.py b/package/gentrace/apis/paths/test_result_id.py
deleted file mode 100644
index d7dcfeca..00000000
--- a/package/gentrace/apis/paths/test_result_id.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from gentrace.paths.test_result_id.get import ApiForget
-
-
-class TestResultId(
- ApiForget,
-):
- pass
diff --git a/package/gentrace/apis/paths/test_result_simple.py b/package/gentrace/apis/paths/test_result_simple.py
deleted file mode 100644
index ebbe91dd..00000000
--- a/package/gentrace/apis/paths/test_result_simple.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from gentrace.paths.test_result_simple.post import ApiForpost
-
-
-class TestResultSimple(
- ApiForpost,
-):
- pass
diff --git a/package/gentrace/apis/paths/test_result_status.py b/package/gentrace/apis/paths/test_result_status.py
deleted file mode 100644
index 499b4b7e..00000000
--- a/package/gentrace/apis/paths/test_result_status.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from gentrace.paths.test_result_status.get import ApiForget
-
-
-class TestResultStatus(
- ApiForget,
-):
- pass
diff --git a/package/gentrace/apis/paths/v1_files_upload.py b/package/gentrace/apis/paths/v1_files_upload.py
new file mode 100644
index 00000000..5ac3ebaa
--- /dev/null
+++ b/package/gentrace/apis/paths/v1_files_upload.py
@@ -0,0 +1,7 @@
+from gentrace.paths.v1_files_upload.post import ApiForpost
+
+
+class V1FilesUpload(
+ ApiForpost,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v1_pipelines.py b/package/gentrace/apis/paths/v1_pipelines.py
new file mode 100644
index 00000000..ef1413ce
--- /dev/null
+++ b/package/gentrace/apis/paths/v1_pipelines.py
@@ -0,0 +1,7 @@
+from gentrace.paths.v1_pipelines.get import ApiForget
+
+
+class V1Pipelines(
+ ApiForget,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v1_run.py b/package/gentrace/apis/paths/v1_run.py
new file mode 100644
index 00000000..62d1fea2
--- /dev/null
+++ b/package/gentrace/apis/paths/v1_run.py
@@ -0,0 +1,7 @@
+from gentrace.paths.v1_run.post import ApiForpost
+
+
+class V1Run(
+ ApiForpost,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v1_test_case.py b/package/gentrace/apis/paths/v1_test_case.py
new file mode 100644
index 00000000..84fcbd4e
--- /dev/null
+++ b/package/gentrace/apis/paths/v1_test_case.py
@@ -0,0 +1,11 @@
+from gentrace.paths.v1_test_case.get import ApiForget
+from gentrace.paths.v1_test_case.patch import ApiForpatch
+from gentrace.paths.v1_test_case.post import ApiForpost
+
+
+class V1TestCase(
+ ApiForget,
+ ApiForpost,
+ ApiForpatch,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v1_test_result.py b/package/gentrace/apis/paths/v1_test_result.py
new file mode 100644
index 00000000..1e069daf
--- /dev/null
+++ b/package/gentrace/apis/paths/v1_test_result.py
@@ -0,0 +1,9 @@
+from gentrace.paths.v1_test_result.get import ApiForget
+from gentrace.paths.v1_test_result.post import ApiForpost
+
+
+class V1TestResult(
+ ApiForget,
+ ApiForpost,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v1_test_result_id.py b/package/gentrace/apis/paths/v1_test_result_id.py
new file mode 100644
index 00000000..28344956
--- /dev/null
+++ b/package/gentrace/apis/paths/v1_test_result_id.py
@@ -0,0 +1,7 @@
+from gentrace.paths.v1_test_result_id.get import ApiForget
+
+
+class V1TestResultId(
+ ApiForget,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v1_test_result_simple.py b/package/gentrace/apis/paths/v1_test_result_simple.py
new file mode 100644
index 00000000..a7768346
--- /dev/null
+++ b/package/gentrace/apis/paths/v1_test_result_simple.py
@@ -0,0 +1,7 @@
+from gentrace.paths.v1_test_result_simple.post import ApiForpost
+
+
+class V1TestResultSimple(
+ ApiForpost,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v1_test_result_status.py b/package/gentrace/apis/paths/v1_test_result_status.py
new file mode 100644
index 00000000..07699ae9
--- /dev/null
+++ b/package/gentrace/apis/paths/v1_test_result_status.py
@@ -0,0 +1,7 @@
+from gentrace.paths.v1_test_result_status.get import ApiForget
+
+
+class V1TestResultStatus(
+ ApiForget,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v2_pipelines.py b/package/gentrace/apis/paths/v2_pipelines.py
new file mode 100644
index 00000000..5df1cf6e
--- /dev/null
+++ b/package/gentrace/apis/paths/v2_pipelines.py
@@ -0,0 +1,7 @@
+from gentrace.paths.v2_pipelines.get import ApiForget
+
+
+class V2Pipelines(
+ ApiForget,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v2_test_cases.py b/package/gentrace/apis/paths/v2_test_cases.py
new file mode 100644
index 00000000..6fb014a0
--- /dev/null
+++ b/package/gentrace/apis/paths/v2_test_cases.py
@@ -0,0 +1,7 @@
+from gentrace.paths.v2_test_cases.get import ApiForget
+
+
+class V2TestCases(
+ ApiForget,
+):
+ pass
diff --git a/package/gentrace/apis/paths/v2_test_results.py b/package/gentrace/apis/paths/v2_test_results.py
new file mode 100644
index 00000000..0abbc0dc
--- /dev/null
+++ b/package/gentrace/apis/paths/v2_test_results.py
@@ -0,0 +1,7 @@
+from gentrace.paths.v2_test_results.get import ApiForget
+
+
+class V2TestResults(
+ ApiForget,
+):
+ pass
diff --git a/package/gentrace/apis/tags/core_api.py b/package/gentrace/apis/tags/core_api.py
index 34995183..d8d8a5bf 100644
--- a/package/gentrace/apis/tags/core_api.py
+++ b/package/gentrace/apis/tags/core_api.py
@@ -5,35 +5,41 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
-from gentrace.paths.files_upload.post import FilesUploadPost
-from gentrace.paths.pipelines.get import PipelinesGet
-from gentrace.paths.run.post import RunPost
-from gentrace.paths.test_case.get import TestCaseGet
-from gentrace.paths.test_case.patch import TestCasePatch
-from gentrace.paths.test_case.post import TestCasePost
-from gentrace.paths.test_result.get import TestResultGet
-from gentrace.paths.test_result.post import TestResultPost
-from gentrace.paths.test_result_id.get import TestResultIdGet
-from gentrace.paths.test_result_simple.post import TestResultSimplePost
-from gentrace.paths.test_result_status.get import TestResultStatusGet
+from gentrace.paths.v1_files_upload.post import V1FilesUploadPost
+from gentrace.paths.v1_pipelines.get import V1PipelinesGet
+from gentrace.paths.v1_run.post import V1RunPost
+from gentrace.paths.v1_test_case.get import V1TestCaseGet
+from gentrace.paths.v1_test_case.patch import V1TestCasePatch
+from gentrace.paths.v1_test_case.post import V1TestCasePost
+from gentrace.paths.v1_test_result.get import V1TestResultGet
+from gentrace.paths.v1_test_result.post import V1TestResultPost
+from gentrace.paths.v1_test_result_id.get import V1TestResultIdGet
+from gentrace.paths.v1_test_result_simple.post import V1TestResultSimplePost
+from gentrace.paths.v1_test_result_status.get import V1TestResultStatusGet
+from gentrace.paths.v2_pipelines.get import V2PipelinesGet
+from gentrace.paths.v2_test_cases.get import V2TestCasesGet
+from gentrace.paths.v2_test_results.get import V2TestResultsGet
class CoreApi(
- FilesUploadPost,
- PipelinesGet,
- RunPost,
- TestCaseGet,
- TestCasePatch,
- TestCasePost,
- TestResultGet,
- TestResultIdGet,
- TestResultPost,
- TestResultSimplePost,
- TestResultStatusGet,
+ V1FilesUploadPost,
+ V1PipelinesGet,
+ V1RunPost,
+ V1TestCaseGet,
+ V1TestCasePatch,
+ V1TestCasePost,
+ V1TestResultGet,
+ V1TestResultIdGet,
+ V1TestResultPost,
+ V1TestResultSimplePost,
+ V1TestResultStatusGet,
+ V2PipelinesGet,
+ V2TestCasesGet,
+ V2TestResultsGet,
):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
diff --git a/package/gentrace/configuration.py b/package/gentrace/configuration.py
index 774a382d..af648c15 100644
--- a/package/gentrace/configuration.py
+++ b/package/gentrace/configuration.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
@@ -93,7 +93,7 @@ def __init__(
):
"""Constructor
"""
- self._base_path = "https://gentrace.ai/api/v1" if host is None else host
+ self._base_path = "https://gentrace.ai/api" if host is None else host
"""Default Base url
"""
self.server_index = 0 if server_index is None and host is None else server_index
@@ -363,7 +363,7 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
- "Version of the API: 0.17.0\n"\
+ "Version of the API: 0.18.0\n"\
"SDK Package Version: 1.0.0".\
format(env=sys.platform, pyversion=sys.version)
@@ -374,7 +374,7 @@ def get_host_settings(self):
"""
return [
{
- 'url': "https://gentrace.ai/api/v1",
+ 'url': "https://gentrace.ai/api",
'description': "No description provided",
}
]
diff --git a/package/gentrace/exceptions.py b/package/gentrace/exceptions.py
index e66157ef..e3ea6a50 100644
--- a/package/gentrace/exceptions.py
+++ b/package/gentrace/exceptions.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
import dataclasses
diff --git a/package/gentrace/model/create_multiple_test_cases.py b/package/gentrace/model/create_multiple_test_cases.py
index 07be81dc..5ec5a676 100644
--- a/package/gentrace/model/create_multiple_test_cases.py
+++ b/package/gentrace/model/create_multiple_test_cases.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/create_multiple_test_cases.pyi b/package/gentrace/model/create_multiple_test_cases.pyi
index add01f6a..80379989 100644
--- a/package/gentrace/model/create_multiple_test_cases.pyi
+++ b/package/gentrace/model/create_multiple_test_cases.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/create_single_test_case.py b/package/gentrace/model/create_single_test_case.py
index bad00aa2..c2ea5a49 100644
--- a/package/gentrace/model/create_single_test_case.py
+++ b/package/gentrace/model/create_single_test_case.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/create_single_test_case.pyi b/package/gentrace/model/create_single_test_case.pyi
index 7eebde1b..68b5663d 100644
--- a/package/gentrace/model/create_single_test_case.pyi
+++ b/package/gentrace/model/create_single_test_case.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/expanded_pipeline.py b/package/gentrace/model/expanded_pipeline.py
index 57d50eb1..07824f14 100644
--- a/package/gentrace/model/expanded_pipeline.py
+++ b/package/gentrace/model/expanded_pipeline.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/expanded_pipeline.pyi b/package/gentrace/model/expanded_pipeline.pyi
index 9b4a7fcc..5ce7a093 100644
--- a/package/gentrace/model/expanded_pipeline.pyi
+++ b/package/gentrace/model/expanded_pipeline.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/expanded_test_result.py b/package/gentrace/model/expanded_test_result.py
index 263cd287..30c2a403 100644
--- a/package/gentrace/model/expanded_test_result.py
+++ b/package/gentrace/model/expanded_test_result.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/expanded_test_result.pyi b/package/gentrace/model/expanded_test_result.pyi
index 254805f9..888332dc 100644
--- a/package/gentrace/model/expanded_test_result.pyi
+++ b/package/gentrace/model/expanded_test_result.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/expanded_test_run.py b/package/gentrace/model/expanded_test_run.py
index fe99ddcb..546ccc65 100644
--- a/package/gentrace/model/expanded_test_run.py
+++ b/package/gentrace/model/expanded_test_run.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/expanded_test_run.pyi b/package/gentrace/model/expanded_test_run.pyi
index c2c06449..ffa50b41 100644
--- a/package/gentrace/model/expanded_test_run.pyi
+++ b/package/gentrace/model/expanded_test_run.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/feedback_request.py b/package/gentrace/model/feedback_request.py
index 1a810e49..ae7fb6df 100644
--- a/package/gentrace/model/feedback_request.py
+++ b/package/gentrace/model/feedback_request.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/feedback_request.pyi b/package/gentrace/model/feedback_request.pyi
index 7f1184af..dffc19db 100644
--- a/package/gentrace/model/feedback_request.pyi
+++ b/package/gentrace/model/feedback_request.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/feedback_response.py b/package/gentrace/model/feedback_response.py
index d1a3403d..6c9f9393 100644
--- a/package/gentrace/model/feedback_response.py
+++ b/package/gentrace/model/feedback_response.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/feedback_response.pyi b/package/gentrace/model/feedback_response.pyi
index 370d6cf1..4c499bfb 100644
--- a/package/gentrace/model/feedback_response.pyi
+++ b/package/gentrace/model/feedback_response.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/filterable_metadata_input.py b/package/gentrace/model/filterable_metadata_input.py
new file mode 100644
index 00000000..e59c9b88
--- /dev/null
+++ b/package/gentrace/model/filterable_metadata_input.py
@@ -0,0 +1,358 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+
+class FilterableMetadataInput(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+
+ Metadata filters look like { prompt: { contains: "My prompt" } }
+ """
+
+
+ class MetaOapg:
+
+
+ class additional_properties(
+ schemas.DictSchema
+ ):
+
+
+ class MetaOapg:
+
+ class properties:
+ exists = schemas.BoolSchema
+ contains = schemas.StrSchema
+
+
+ class equals(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'equals':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class gt(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'gt':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class gte(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'gte':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class lt(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'lt':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class lte(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'lte':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+ __annotations__ = {
+ "exists": exists,
+ "contains": contains,
+ "equals": equals,
+ "gt": gt,
+ "gte": gte,
+ "lt": lt,
+ "lte": lte,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["exists"]) -> MetaOapg.properties.exists: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["contains"]) -> MetaOapg.properties.contains: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["equals"]) -> MetaOapg.properties.equals: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["gt"]) -> MetaOapg.properties.gt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["gte"]) -> MetaOapg.properties.gte: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["lt"]) -> MetaOapg.properties.lt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["lte"]) -> MetaOapg.properties.lte: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["exists", "contains", "equals", "gt", "gte", "lt", "lte", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["exists"]) -> typing.Union[MetaOapg.properties.exists, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["contains"]) -> typing.Union[MetaOapg.properties.contains, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["equals"]) -> typing.Union[MetaOapg.properties.equals, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["gt"]) -> typing.Union[MetaOapg.properties.gt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["gte"]) -> typing.Union[MetaOapg.properties.gte, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["lt"]) -> typing.Union[MetaOapg.properties.lt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["lte"]) -> typing.Union[MetaOapg.properties.lte, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["exists", "contains", "equals", "gt", "gte", "lt", "lte", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ exists: typing.Union[MetaOapg.properties.exists, bool, schemas.Unset] = schemas.unset,
+ contains: typing.Union[MetaOapg.properties.contains, str, schemas.Unset] = schemas.unset,
+ equals: typing.Union[MetaOapg.properties.equals, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ gt: typing.Union[MetaOapg.properties.gt, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ gte: typing.Union[MetaOapg.properties.gte, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ lt: typing.Union[MetaOapg.properties.lt, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ lte: typing.Union[MetaOapg.properties.lte, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'additional_properties':
+ return super().__new__(
+ cls,
+ *_args,
+ exists=exists,
+ contains=contains,
+ equals=equals,
+ gt=gt,
+ gte=gte,
+ lt=lt,
+ lte=lte,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+ def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+ def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
+ return super().get_item_oapg(name)
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ],
+ ) -> 'FilterableMetadataInput':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/filterable_metadata_input.pyi b/package/gentrace/model/filterable_metadata_input.pyi
new file mode 100644
index 00000000..ab2c1e1b
--- /dev/null
+++ b/package/gentrace/model/filterable_metadata_input.pyi
@@ -0,0 +1,357 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+class FilterableMetadataInput(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+
+ Metadata filters look like { prompt: { contains: "My prompt" } }
+ """
+
+
+ class MetaOapg:
+
+
+ class additional_properties(
+ schemas.DictSchema
+ ):
+
+
+ class MetaOapg:
+
+ class properties:
+ exists = schemas.BoolSchema
+ contains = schemas.StrSchema
+
+
+ class equals(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'equals':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class gt(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'gt':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class gte(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'gte':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class lt(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'lt':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class lte(
+ schemas.ComposedSchema,
+ ):
+
+
+ class MetaOapg:
+ one_of_0 = schemas.StrSchema
+ one_of_1 = schemas.NumberSchema
+
+ @classmethod
+ @functools.lru_cache()
+ def one_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.one_of_0,
+ cls.one_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'lte':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+ __annotations__ = {
+ "exists": exists,
+ "contains": contains,
+ "equals": equals,
+ "gt": gt,
+ "gte": gte,
+ "lt": lt,
+ "lte": lte,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["exists"]) -> MetaOapg.properties.exists: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["contains"]) -> MetaOapg.properties.contains: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["equals"]) -> MetaOapg.properties.equals: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["gt"]) -> MetaOapg.properties.gt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["gte"]) -> MetaOapg.properties.gte: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["lt"]) -> MetaOapg.properties.lt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["lte"]) -> MetaOapg.properties.lte: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["exists", "contains", "equals", "gt", "gte", "lt", "lte", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["exists"]) -> typing.Union[MetaOapg.properties.exists, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["contains"]) -> typing.Union[MetaOapg.properties.contains, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["equals"]) -> typing.Union[MetaOapg.properties.equals, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["gt"]) -> typing.Union[MetaOapg.properties.gt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["gte"]) -> typing.Union[MetaOapg.properties.gte, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["lt"]) -> typing.Union[MetaOapg.properties.lt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["lte"]) -> typing.Union[MetaOapg.properties.lte, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["exists", "contains", "equals", "gt", "gte", "lt", "lte", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ exists: typing.Union[MetaOapg.properties.exists, bool, schemas.Unset] = schemas.unset,
+ contains: typing.Union[MetaOapg.properties.contains, str, schemas.Unset] = schemas.unset,
+ equals: typing.Union[MetaOapg.properties.equals, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ gt: typing.Union[MetaOapg.properties.gt, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ gte: typing.Union[MetaOapg.properties.gte, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ lt: typing.Union[MetaOapg.properties.lt, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ lte: typing.Union[MetaOapg.properties.lte, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'additional_properties':
+ return super().__new__(
+ cls,
+ *_args,
+ exists=exists,
+ contains=contains,
+ equals=equals,
+ gt=gt,
+ gte=gte,
+ lt=lt,
+ lte=lte,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+ def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+ def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
+ return super().get_item_oapg(name)
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ],
+ ) -> 'FilterableMetadataInput':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/full_run.py b/package/gentrace/model/full_run.py
index ba581da5..01e6cf40 100644
--- a/package/gentrace/model/full_run.py
+++ b/package/gentrace/model/full_run.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/metadata_value_object.py b/package/gentrace/model/metadata_value_object.py
index b169bb7e..c35b3f80 100644
--- a/package/gentrace/model/metadata_value_object.py
+++ b/package/gentrace/model/metadata_value_object.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/metadata_value_object.pyi b/package/gentrace/model/metadata_value_object.pyi
index d2e9d1ae..33d4bf3f 100644
--- a/package/gentrace/model/metadata_value_object.pyi
+++ b/package/gentrace/model/metadata_value_object.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/pipeline.py b/package/gentrace/model/pipeline.py
index 73227b58..7230b310 100644
--- a/package/gentrace/model/pipeline.py
+++ b/package/gentrace/model/pipeline.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/pipeline.pyi b/package/gentrace/model/pipeline.pyi
index 558b46d3..23c2b407 100644
--- a/package/gentrace/model/pipeline.pyi
+++ b/package/gentrace/model/pipeline.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/pipeline_v2.py b/package/gentrace/model/pipeline_v2.py
new file mode 100644
index 00000000..f0db05dd
--- /dev/null
+++ b/package/gentrace/model/pipeline_v2.py
@@ -0,0 +1,233 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+
+class PipelineV2(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ required = {
+ "organizationId",
+ "createdAt",
+ "id",
+ "slug",
+ "labels",
+ "updatedAt",
+ }
+
+ class properties:
+ id = schemas.UUIDSchema
+ createdAt = schemas.Int64Schema
+ updatedAt = schemas.Int64Schema
+
+
+ class labels(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+ items = schemas.StrSchema
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'labels':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> MetaOapg.items:
+ return super().__getitem__(i)
+ slug = schemas.StrSchema
+ organizationId = schemas.StrSchema
+ archivedAt = schemas.Int64Schema
+
+
+ class displayName(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'displayName':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+
+
+ class branch(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'branch':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+ __annotations__ = {
+ "id": id,
+ "createdAt": createdAt,
+ "updatedAt": updatedAt,
+ "labels": labels,
+ "slug": slug,
+ "organizationId": organizationId,
+ "archivedAt": archivedAt,
+ "displayName": displayName,
+ "branch": branch,
+ }
+
+ organizationId: MetaOapg.properties.organizationId
+ createdAt: MetaOapg.properties.createdAt
+ id: MetaOapg.properties.id
+ slug: MetaOapg.properties.slug
+ labels: MetaOapg.properties.labels
+ updatedAt: MetaOapg.properties.updatedAt
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["slug"]) -> MetaOapg.properties.slug: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["organizationId"]) -> MetaOapg.properties.organizationId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["archivedAt"]) -> MetaOapg.properties.archivedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["displayName"]) -> MetaOapg.properties.displayName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["branch"]) -> MetaOapg.properties.branch: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "labels", "slug", "organizationId", "archivedAt", "displayName", "branch", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["slug"]) -> MetaOapg.properties.slug: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["organizationId"]) -> MetaOapg.properties.organizationId: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["archivedAt"]) -> typing.Union[MetaOapg.properties.archivedAt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["displayName"]) -> typing.Union[MetaOapg.properties.displayName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["branch"]) -> typing.Union[MetaOapg.properties.branch, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "labels", "slug", "organizationId", "archivedAt", "displayName", "branch", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ organizationId: typing.Union[MetaOapg.properties.organizationId, str, ],
+ createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, ],
+ id: typing.Union[MetaOapg.properties.id, str, uuid.UUID, ],
+ slug: typing.Union[MetaOapg.properties.slug, str, ],
+ labels: typing.Union[MetaOapg.properties.labels, list, tuple, ],
+ updatedAt: typing.Union[MetaOapg.properties.updatedAt, decimal.Decimal, int, ],
+ archivedAt: typing.Union[MetaOapg.properties.archivedAt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ displayName: typing.Union[MetaOapg.properties.displayName, None, str, schemas.Unset] = schemas.unset,
+ branch: typing.Union[MetaOapg.properties.branch, None, str, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'PipelineV2':
+ return super().__new__(
+ cls,
+ *_args,
+ organizationId=organizationId,
+ createdAt=createdAt,
+ id=id,
+ slug=slug,
+ labels=labels,
+ updatedAt=updatedAt,
+ archivedAt=archivedAt,
+ displayName=displayName,
+ branch=branch,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/pipeline_v2.pyi b/package/gentrace/model/pipeline_v2.pyi
new file mode 100644
index 00000000..e31f220c
--- /dev/null
+++ b/package/gentrace/model/pipeline_v2.pyi
@@ -0,0 +1,232 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+class PipelineV2(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ required = {
+ "organizationId",
+ "createdAt",
+ "id",
+ "slug",
+ "labels",
+ "updatedAt",
+ }
+
+ class properties:
+ id = schemas.UUIDSchema
+ createdAt = schemas.Int64Schema
+ updatedAt = schemas.Int64Schema
+
+
+ class labels(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+ items = schemas.StrSchema
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'labels':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> MetaOapg.items:
+ return super().__getitem__(i)
+ slug = schemas.StrSchema
+ organizationId = schemas.StrSchema
+ archivedAt = schemas.Int64Schema
+
+
+ class displayName(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'displayName':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+
+
+ class branch(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'branch':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+ __annotations__ = {
+ "id": id,
+ "createdAt": createdAt,
+ "updatedAt": updatedAt,
+ "labels": labels,
+ "slug": slug,
+ "organizationId": organizationId,
+ "archivedAt": archivedAt,
+ "displayName": displayName,
+ "branch": branch,
+ }
+
+ organizationId: MetaOapg.properties.organizationId
+ createdAt: MetaOapg.properties.createdAt
+ id: MetaOapg.properties.id
+ slug: MetaOapg.properties.slug
+ labels: MetaOapg.properties.labels
+ updatedAt: MetaOapg.properties.updatedAt
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["slug"]) -> MetaOapg.properties.slug: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["organizationId"]) -> MetaOapg.properties.organizationId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["archivedAt"]) -> MetaOapg.properties.archivedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["displayName"]) -> MetaOapg.properties.displayName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["branch"]) -> MetaOapg.properties.branch: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "labels", "slug", "organizationId", "archivedAt", "displayName", "branch", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["slug"]) -> MetaOapg.properties.slug: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["organizationId"]) -> MetaOapg.properties.organizationId: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["archivedAt"]) -> typing.Union[MetaOapg.properties.archivedAt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["displayName"]) -> typing.Union[MetaOapg.properties.displayName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["branch"]) -> typing.Union[MetaOapg.properties.branch, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "labels", "slug", "organizationId", "archivedAt", "displayName", "branch", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ organizationId: typing.Union[MetaOapg.properties.organizationId, str, ],
+ createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, ],
+ id: typing.Union[MetaOapg.properties.id, str, uuid.UUID, ],
+ slug: typing.Union[MetaOapg.properties.slug, str, ],
+ labels: typing.Union[MetaOapg.properties.labels, list, tuple, ],
+ updatedAt: typing.Union[MetaOapg.properties.updatedAt, decimal.Decimal, int, ],
+ archivedAt: typing.Union[MetaOapg.properties.archivedAt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ displayName: typing.Union[MetaOapg.properties.displayName, None, str, schemas.Unset] = schemas.unset,
+ branch: typing.Union[MetaOapg.properties.branch, None, str, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'PipelineV2':
+ return super().__new__(
+ cls,
+ *_args,
+ organizationId=organizationId,
+ createdAt=createdAt,
+ id=id,
+ slug=slug,
+ labels=labels,
+ updatedAt=updatedAt,
+ archivedAt=archivedAt,
+ displayName=displayName,
+ branch=branch,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/resolved_step_run.py b/package/gentrace/model/resolved_step_run.py
index 34c4304a..1ad88257 100644
--- a/package/gentrace/model/resolved_step_run.py
+++ b/package/gentrace/model/resolved_step_run.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/resolved_step_run.pyi b/package/gentrace/model/resolved_step_run.pyi
index 60815b6c..a8fcfe6d 100644
--- a/package/gentrace/model/resolved_step_run.pyi
+++ b/package/gentrace/model/resolved_step_run.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/run_request.py b/package/gentrace/model/run_request.py
index 6a76566d..af2ea007 100644
--- a/package/gentrace/model/run_request.py
+++ b/package/gentrace/model/run_request.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/run_request.pyi b/package/gentrace/model/run_request.pyi
index 635ebeed..0dacb2c5 100644
--- a/package/gentrace/model/run_request.pyi
+++ b/package/gentrace/model/run_request.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/run_response.py b/package/gentrace/model/run_response.py
index 9e12bbdc..82b7fb05 100644
--- a/package/gentrace/model/run_response.py
+++ b/package/gentrace/model/run_response.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/run_response.pyi b/package/gentrace/model/run_response.pyi
index 4ec30fb7..5118c282 100644
--- a/package/gentrace/model/run_response.pyi
+++ b/package/gentrace/model/run_response.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/searchable_string_input.py b/package/gentrace/model/searchable_string_input.py
new file mode 100644
index 00000000..4ee40727
--- /dev/null
+++ b/package/gentrace/model/searchable_string_input.py
@@ -0,0 +1,238 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+
+class SearchableStringInput(
+ schemas.ComposedSchema,
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ any_of_0 = schemas.StrSchema
+
+
+ class any_of_1(
+ schemas.DictSchema
+ ):
+
+
+ class MetaOapg:
+
+ class properties:
+ contains = schemas.StrSchema
+ search = schemas.StrSchema
+ startsWith = schemas.StrSchema
+ endsWith = schemas.StrSchema
+
+
+ class _in(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+ items = schemas.StrSchema
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> '_in':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> MetaOapg.items:
+ return super().__getitem__(i)
+
+
+ class notIn(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+ items = schemas.StrSchema
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'notIn':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> MetaOapg.items:
+ return super().__getitem__(i)
+
+
+ class mode(
+ schemas.EnumBase,
+ schemas.StrSchema
+ ):
+
+
+ class MetaOapg:
+ enum_value_to_name = {
+ "insensitive": "INSENSITIVE",
+ "default": "DEFAULT",
+ }
+
+ @schemas.classproperty
+ def INSENSITIVE(cls):
+ return cls("insensitive")
+
+ @schemas.classproperty
+ def DEFAULT(cls):
+ return cls("default")
+ __annotations__ = {
+ "contains": contains,
+ "search": search,
+ "startsWith": startsWith,
+ "endsWith": endsWith,
+ "in": _in,
+ "notIn": notIn,
+ "mode": mode,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["contains"]) -> MetaOapg.properties.contains: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["search"]) -> MetaOapg.properties.search: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["startsWith"]) -> MetaOapg.properties.startsWith: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["endsWith"]) -> MetaOapg.properties.endsWith: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["in"]) -> MetaOapg.properties._in: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["notIn"]) -> MetaOapg.properties.notIn: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["mode"]) -> MetaOapg.properties.mode: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["contains", "search", "startsWith", "endsWith", "in", "notIn", "mode", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["contains"]) -> typing.Union[MetaOapg.properties.contains, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["search"]) -> typing.Union[MetaOapg.properties.search, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["startsWith"]) -> typing.Union[MetaOapg.properties.startsWith, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["endsWith"]) -> typing.Union[MetaOapg.properties.endsWith, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["in"]) -> typing.Union[MetaOapg.properties._in, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["notIn"]) -> typing.Union[MetaOapg.properties.notIn, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["mode"]) -> typing.Union[MetaOapg.properties.mode, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["contains", "search", "startsWith", "endsWith", "in", "notIn", "mode", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ contains: typing.Union[MetaOapg.properties.contains, str, schemas.Unset] = schemas.unset,
+ search: typing.Union[MetaOapg.properties.search, str, schemas.Unset] = schemas.unset,
+ startsWith: typing.Union[MetaOapg.properties.startsWith, str, schemas.Unset] = schemas.unset,
+ endsWith: typing.Union[MetaOapg.properties.endsWith, str, schemas.Unset] = schemas.unset,
+ notIn: typing.Union[MetaOapg.properties.notIn, list, tuple, schemas.Unset] = schemas.unset,
+ mode: typing.Union[MetaOapg.properties.mode, str, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'any_of_1':
+ return super().__new__(
+ cls,
+ *_args,
+ contains=contains,
+ search=search,
+ startsWith=startsWith,
+ endsWith=endsWith,
+ notIn=notIn,
+ mode=mode,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+ @classmethod
+ @functools.lru_cache()
+ def any_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.any_of_0,
+ cls.any_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SearchableStringInput':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/searchable_string_input.pyi b/package/gentrace/model/searchable_string_input.pyi
new file mode 100644
index 00000000..bf80418b
--- /dev/null
+++ b/package/gentrace/model/searchable_string_input.pyi
@@ -0,0 +1,230 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+class SearchableStringInput(
+ schemas.ComposedSchema,
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ any_of_0 = schemas.StrSchema
+
+
+ class any_of_1(
+ schemas.DictSchema
+ ):
+
+
+ class MetaOapg:
+
+ class properties:
+ contains = schemas.StrSchema
+ search = schemas.StrSchema
+ startsWith = schemas.StrSchema
+ endsWith = schemas.StrSchema
+
+
+ class _in(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+ items = schemas.StrSchema
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> '_in':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> MetaOapg.items:
+ return super().__getitem__(i)
+
+
+ class notIn(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+ items = schemas.StrSchema
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'notIn':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> MetaOapg.items:
+ return super().__getitem__(i)
+
+
+ class mode(
+ schemas.EnumBase,
+ schemas.StrSchema
+ ):
+
+ @schemas.classproperty
+ def INSENSITIVE(cls):
+ return cls("insensitive")
+
+ @schemas.classproperty
+ def DEFAULT(cls):
+ return cls("default")
+ __annotations__ = {
+ "contains": contains,
+ "search": search,
+ "startsWith": startsWith,
+ "endsWith": endsWith,
+ "in": _in,
+ "notIn": notIn,
+ "mode": mode,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["contains"]) -> MetaOapg.properties.contains: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["search"]) -> MetaOapg.properties.search: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["startsWith"]) -> MetaOapg.properties.startsWith: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["endsWith"]) -> MetaOapg.properties.endsWith: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["in"]) -> MetaOapg.properties._in: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["notIn"]) -> MetaOapg.properties.notIn: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["mode"]) -> MetaOapg.properties.mode: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["contains", "search", "startsWith", "endsWith", "in", "notIn", "mode", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["contains"]) -> typing.Union[MetaOapg.properties.contains, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["search"]) -> typing.Union[MetaOapg.properties.search, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["startsWith"]) -> typing.Union[MetaOapg.properties.startsWith, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["endsWith"]) -> typing.Union[MetaOapg.properties.endsWith, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["in"]) -> typing.Union[MetaOapg.properties._in, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["notIn"]) -> typing.Union[MetaOapg.properties.notIn, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["mode"]) -> typing.Union[MetaOapg.properties.mode, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["contains", "search", "startsWith", "endsWith", "in", "notIn", "mode", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ contains: typing.Union[MetaOapg.properties.contains, str, schemas.Unset] = schemas.unset,
+ search: typing.Union[MetaOapg.properties.search, str, schemas.Unset] = schemas.unset,
+ startsWith: typing.Union[MetaOapg.properties.startsWith, str, schemas.Unset] = schemas.unset,
+ endsWith: typing.Union[MetaOapg.properties.endsWith, str, schemas.Unset] = schemas.unset,
+ notIn: typing.Union[MetaOapg.properties.notIn, list, tuple, schemas.Unset] = schemas.unset,
+ mode: typing.Union[MetaOapg.properties.mode, str, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'any_of_1':
+ return super().__new__(
+ cls,
+ *_args,
+ contains=contains,
+ search=search,
+ startsWith=startsWith,
+ endsWith=endsWith,
+ notIn=notIn,
+ mode=mode,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+ @classmethod
+ @functools.lru_cache()
+ def any_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.any_of_0,
+ cls.any_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SearchableStringInput':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/searchable_unix_seconds_input.py b/package/gentrace/model/searchable_unix_seconds_input.py
new file mode 100644
index 00000000..86907be6
--- /dev/null
+++ b/package/gentrace/model/searchable_unix_seconds_input.py
@@ -0,0 +1,146 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+
+class SearchableUnixSecondsInput(
+ schemas.ComposedSchema,
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ any_of_0 = schemas.Int64Schema
+
+
+ class any_of_1(
+ schemas.DictSchema
+ ):
+
+
+ class MetaOapg:
+
+ class properties:
+ gt = schemas.Int64Schema
+ gte = schemas.Int64Schema
+ lt = schemas.Int64Schema
+ lte = schemas.Int64Schema
+ __annotations__ = {
+ "gt": gt,
+ "gte": gte,
+ "lt": lt,
+ "lte": lte,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["gt"]) -> MetaOapg.properties.gt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["gte"]) -> MetaOapg.properties.gte: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["lt"]) -> MetaOapg.properties.lt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["lte"]) -> MetaOapg.properties.lte: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["gt", "gte", "lt", "lte", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["gt"]) -> typing.Union[MetaOapg.properties.gt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["gte"]) -> typing.Union[MetaOapg.properties.gte, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["lt"]) -> typing.Union[MetaOapg.properties.lt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["lte"]) -> typing.Union[MetaOapg.properties.lte, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["gt", "gte", "lt", "lte", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ gt: typing.Union[MetaOapg.properties.gt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ gte: typing.Union[MetaOapg.properties.gte, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ lt: typing.Union[MetaOapg.properties.lt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ lte: typing.Union[MetaOapg.properties.lte, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'any_of_1':
+ return super().__new__(
+ cls,
+ *_args,
+ gt=gt,
+ gte=gte,
+ lt=lt,
+ lte=lte,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+ @classmethod
+ @functools.lru_cache()
+ def any_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.any_of_0,
+ cls.any_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SearchableUnixSecondsInput':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/searchable_unix_seconds_input.pyi b/package/gentrace/model/searchable_unix_seconds_input.pyi
new file mode 100644
index 00000000..5223e2db
--- /dev/null
+++ b/package/gentrace/model/searchable_unix_seconds_input.pyi
@@ -0,0 +1,145 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+class SearchableUnixSecondsInput(
+ schemas.ComposedSchema,
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ any_of_0 = schemas.Int64Schema
+
+
+ class any_of_1(
+ schemas.DictSchema
+ ):
+
+
+ class MetaOapg:
+
+ class properties:
+ gt = schemas.Int64Schema
+ gte = schemas.Int64Schema
+ lt = schemas.Int64Schema
+ lte = schemas.Int64Schema
+ __annotations__ = {
+ "gt": gt,
+ "gte": gte,
+ "lt": lt,
+ "lte": lte,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["gt"]) -> MetaOapg.properties.gt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["gte"]) -> MetaOapg.properties.gte: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["lt"]) -> MetaOapg.properties.lt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["lte"]) -> MetaOapg.properties.lte: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["gt", "gte", "lt", "lte", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["gt"]) -> typing.Union[MetaOapg.properties.gt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["gte"]) -> typing.Union[MetaOapg.properties.gte, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["lt"]) -> typing.Union[MetaOapg.properties.lt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["lte"]) -> typing.Union[MetaOapg.properties.lte, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["gt", "gte", "lt", "lte", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ gt: typing.Union[MetaOapg.properties.gt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ gte: typing.Union[MetaOapg.properties.gte, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ lt: typing.Union[MetaOapg.properties.lt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ lte: typing.Union[MetaOapg.properties.lte, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'any_of_1':
+ return super().__new__(
+ cls,
+ *_args,
+ gt=gt,
+ gte=gte,
+ lt=lt,
+ lte=lte,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+ @classmethod
+ @functools.lru_cache()
+ def any_of(cls):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ return [
+ cls.any_of_0,
+ cls.any_of_1,
+ ]
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SearchableUnixSecondsInput':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/step_run.py b/package/gentrace/model/step_run.py
index 46381d1e..31c10a72 100644
--- a/package/gentrace/model/step_run.py
+++ b/package/gentrace/model/step_run.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/step_run.pyi b/package/gentrace/model/step_run.pyi
index 6fe384b3..36aa8407 100644
--- a/package/gentrace/model/step_run.pyi
+++ b/package/gentrace/model/step_run.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_case.py b/package/gentrace/model/test_case.py
index 008048a2..baf7dd1f 100644
--- a/package/gentrace/model/test_case.py
+++ b/package/gentrace/model/test_case.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_case.pyi b/package/gentrace/model/test_case.pyi
index c2d5b8d0..dc153732 100644
--- a/package/gentrace/model/test_case.pyi
+++ b/package/gentrace/model/test_case.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_case_v2.py b/package/gentrace/model/test_case_v2.py
new file mode 100644
index 00000000..0846f65b
--- /dev/null
+++ b/package/gentrace/model/test_case_v2.py
@@ -0,0 +1,222 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+
+class TestCaseV2(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ required = {
+ "createdAt",
+ "inputs",
+ "name",
+ "id",
+ "pipelineId",
+ "updatedAt",
+ }
+
+ class properties:
+ id = schemas.UUIDSchema
+ createdAt = schemas.Int64Schema
+ updatedAt = schemas.Int64Schema
+
+
+ class inputs(
+ schemas.DictSchema
+ ):
+
+
+ class MetaOapg:
+ additional_properties = schemas.AnyTypeSchema
+
+ def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+ def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
+ return super().get_item_oapg(name)
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ ) -> 'inputs':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+ name = schemas.StrSchema
+ pipelineId = schemas.UUIDSchema
+ archivedAt = schemas.Int64Schema
+
+
+ class expectedOutputs(
+ schemas.DictBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneFrozenDictMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, None, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'expectedOutputs':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+ setId = schemas.UUIDSchema
+ __annotations__ = {
+ "id": id,
+ "createdAt": createdAt,
+ "updatedAt": updatedAt,
+ "inputs": inputs,
+ "name": name,
+ "pipelineId": pipelineId,
+ "archivedAt": archivedAt,
+ "expectedOutputs": expectedOutputs,
+ "setId": setId,
+ }
+
+ createdAt: MetaOapg.properties.createdAt
+ inputs: MetaOapg.properties.inputs
+ name: MetaOapg.properties.name
+ id: MetaOapg.properties.id
+ pipelineId: MetaOapg.properties.pipelineId
+ updatedAt: MetaOapg.properties.updatedAt
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["inputs"]) -> MetaOapg.properties.inputs: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["pipelineId"]) -> MetaOapg.properties.pipelineId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["archivedAt"]) -> MetaOapg.properties.archivedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["expectedOutputs"]) -> MetaOapg.properties.expectedOutputs: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["setId"]) -> MetaOapg.properties.setId: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "inputs", "name", "pipelineId", "archivedAt", "expectedOutputs", "setId", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["inputs"]) -> MetaOapg.properties.inputs: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["pipelineId"]) -> MetaOapg.properties.pipelineId: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["archivedAt"]) -> typing.Union[MetaOapg.properties.archivedAt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["expectedOutputs"]) -> typing.Union[MetaOapg.properties.expectedOutputs, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["setId"]) -> typing.Union[MetaOapg.properties.setId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "inputs", "name", "pipelineId", "archivedAt", "expectedOutputs", "setId", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, ],
+ inputs: typing.Union[MetaOapg.properties.inputs, dict, frozendict.frozendict, ],
+ name: typing.Union[MetaOapg.properties.name, str, ],
+ id: typing.Union[MetaOapg.properties.id, str, uuid.UUID, ],
+ pipelineId: typing.Union[MetaOapg.properties.pipelineId, str, uuid.UUID, ],
+ updatedAt: typing.Union[MetaOapg.properties.updatedAt, decimal.Decimal, int, ],
+ archivedAt: typing.Union[MetaOapg.properties.archivedAt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ expectedOutputs: typing.Union[MetaOapg.properties.expectedOutputs, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset,
+ setId: typing.Union[MetaOapg.properties.setId, str, uuid.UUID, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'TestCaseV2':
+ return super().__new__(
+ cls,
+ *_args,
+ createdAt=createdAt,
+ inputs=inputs,
+ name=name,
+ id=id,
+ pipelineId=pipelineId,
+ updatedAt=updatedAt,
+ archivedAt=archivedAt,
+ expectedOutputs=expectedOutputs,
+ setId=setId,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/test_case_v2.pyi b/package/gentrace/model/test_case_v2.pyi
new file mode 100644
index 00000000..6d7a3228
--- /dev/null
+++ b/package/gentrace/model/test_case_v2.pyi
@@ -0,0 +1,221 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+class TestCaseV2(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ required = {
+ "createdAt",
+ "inputs",
+ "name",
+ "id",
+ "pipelineId",
+ "updatedAt",
+ }
+
+ class properties:
+ id = schemas.UUIDSchema
+ createdAt = schemas.Int64Schema
+ updatedAt = schemas.Int64Schema
+
+
+ class inputs(
+ schemas.DictSchema
+ ):
+
+
+ class MetaOapg:
+ additional_properties = schemas.AnyTypeSchema
+
+ def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+ def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:
+ return super().get_item_oapg(name)
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ ) -> 'inputs':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+ name = schemas.StrSchema
+ pipelineId = schemas.UUIDSchema
+ archivedAt = schemas.Int64Schema
+
+
+ class expectedOutputs(
+ schemas.DictBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneFrozenDictMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, None, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'expectedOutputs':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+ setId = schemas.UUIDSchema
+ __annotations__ = {
+ "id": id,
+ "createdAt": createdAt,
+ "updatedAt": updatedAt,
+ "inputs": inputs,
+ "name": name,
+ "pipelineId": pipelineId,
+ "archivedAt": archivedAt,
+ "expectedOutputs": expectedOutputs,
+ "setId": setId,
+ }
+
+ createdAt: MetaOapg.properties.createdAt
+ inputs: MetaOapg.properties.inputs
+ name: MetaOapg.properties.name
+ id: MetaOapg.properties.id
+ pipelineId: MetaOapg.properties.pipelineId
+ updatedAt: MetaOapg.properties.updatedAt
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["inputs"]) -> MetaOapg.properties.inputs: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["pipelineId"]) -> MetaOapg.properties.pipelineId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["archivedAt"]) -> MetaOapg.properties.archivedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["expectedOutputs"]) -> MetaOapg.properties.expectedOutputs: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["setId"]) -> MetaOapg.properties.setId: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "inputs", "name", "pipelineId", "archivedAt", "expectedOutputs", "setId", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["inputs"]) -> MetaOapg.properties.inputs: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["pipelineId"]) -> MetaOapg.properties.pipelineId: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["archivedAt"]) -> typing.Union[MetaOapg.properties.archivedAt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["expectedOutputs"]) -> typing.Union[MetaOapg.properties.expectedOutputs, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["setId"]) -> typing.Union[MetaOapg.properties.setId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "inputs", "name", "pipelineId", "archivedAt", "expectedOutputs", "setId", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, ],
+ inputs: typing.Union[MetaOapg.properties.inputs, dict, frozendict.frozendict, ],
+ name: typing.Union[MetaOapg.properties.name, str, ],
+ id: typing.Union[MetaOapg.properties.id, str, uuid.UUID, ],
+ pipelineId: typing.Union[MetaOapg.properties.pipelineId, str, uuid.UUID, ],
+ updatedAt: typing.Union[MetaOapg.properties.updatedAt, decimal.Decimal, int, ],
+ archivedAt: typing.Union[MetaOapg.properties.archivedAt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ expectedOutputs: typing.Union[MetaOapg.properties.expectedOutputs, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset,
+ setId: typing.Union[MetaOapg.properties.setId, str, uuid.UUID, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'TestCaseV2':
+ return super().__new__(
+ cls,
+ *_args,
+ createdAt=createdAt,
+ inputs=inputs,
+ name=name,
+ id=id,
+ pipelineId=pipelineId,
+ updatedAt=updatedAt,
+ archivedAt=archivedAt,
+ expectedOutputs=expectedOutputs,
+ setId=setId,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/package/gentrace/model/test_evaluation.py b/package/gentrace/model/test_evaluation.py
index c88b58c5..34dfa0a5 100644
--- a/package/gentrace/model/test_evaluation.py
+++ b/package/gentrace/model/test_evaluation.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_evaluation.pyi b/package/gentrace/model/test_evaluation.pyi
index f71abca8..e307483a 100644
--- a/package/gentrace/model/test_evaluation.pyi
+++ b/package/gentrace/model/test_evaluation.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_evaluator.py b/package/gentrace/model/test_evaluator.py
index 0e1484ef..725a817b 100644
--- a/package/gentrace/model/test_evaluator.py
+++ b/package/gentrace/model/test_evaluator.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_evaluator.pyi b/package/gentrace/model/test_evaluator.pyi
index 5a8e53aa..67e73c22 100644
--- a/package/gentrace/model/test_evaluator.pyi
+++ b/package/gentrace/model/test_evaluator.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_result.py b/package/gentrace/model/test_result.py
index f1ed5350..97c24da8 100644
--- a/package/gentrace/model/test_result.py
+++ b/package/gentrace/model/test_result.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_result.pyi b/package/gentrace/model/test_result.pyi
index 471212f2..c07d4cf2 100644
--- a/package/gentrace/model/test_result.pyi
+++ b/package/gentrace/model/test_result.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_result_v2.py b/package/gentrace/model/test_result_v2.py
new file mode 100644
index 00000000..dac63231
--- /dev/null
+++ b/package/gentrace/model/test_result_v2.py
@@ -0,0 +1,263 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+
+class TestResultV2(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ required = {
+ "createdAt",
+ "id",
+ "pipelineId",
+ "updatedAt",
+ }
+
+ class properties:
+ id = schemas.UUIDSchema
+ createdAt = schemas.Int64Schema
+ updatedAt = schemas.Int64Schema
+ pipelineId = schemas.UUIDSchema
+ archivedAt = schemas.Int64Schema
+
+
+ class branch(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'branch':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+
+
+ class commit(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'commit':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+
+
+ class metadata(
+ schemas.DictBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneFrozenDictMixin
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def additional_properties() -> typing.Type['MetadataValueObject']:
+ return MetadataValueObject
+
+
+ def __getitem__(self, name: typing.Union[str, ]) -> 'MetadataValueObject':
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+ def get_item_oapg(self, name: typing.Union[str, ]) -> 'MetadataValueObject':
+ return super().get_item_oapg(name)
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, None, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: 'MetadataValueObject',
+ ) -> 'metadata':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class name(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'name':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+ __annotations__ = {
+ "id": id,
+ "createdAt": createdAt,
+ "updatedAt": updatedAt,
+ "pipelineId": pipelineId,
+ "archivedAt": archivedAt,
+ "branch": branch,
+ "commit": commit,
+ "metadata": metadata,
+ "name": name,
+ }
+
+ createdAt: MetaOapg.properties.createdAt
+ id: MetaOapg.properties.id
+ pipelineId: MetaOapg.properties.pipelineId
+ updatedAt: MetaOapg.properties.updatedAt
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["pipelineId"]) -> MetaOapg.properties.pipelineId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["archivedAt"]) -> MetaOapg.properties.archivedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["branch"]) -> MetaOapg.properties.branch: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["commit"]) -> MetaOapg.properties.commit: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "pipelineId", "archivedAt", "branch", "commit", "metadata", "name", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["pipelineId"]) -> MetaOapg.properties.pipelineId: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["archivedAt"]) -> typing.Union[MetaOapg.properties.archivedAt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["branch"]) -> typing.Union[MetaOapg.properties.branch, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["commit"]) -> typing.Union[MetaOapg.properties.commit, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "pipelineId", "archivedAt", "branch", "commit", "metadata", "name", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, ],
+ id: typing.Union[MetaOapg.properties.id, str, uuid.UUID, ],
+ pipelineId: typing.Union[MetaOapg.properties.pipelineId, str, uuid.UUID, ],
+ updatedAt: typing.Union[MetaOapg.properties.updatedAt, decimal.Decimal, int, ],
+ archivedAt: typing.Union[MetaOapg.properties.archivedAt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ branch: typing.Union[MetaOapg.properties.branch, None, str, schemas.Unset] = schemas.unset,
+ commit: typing.Union[MetaOapg.properties.commit, None, str, schemas.Unset] = schemas.unset,
+ metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset,
+ name: typing.Union[MetaOapg.properties.name, None, str, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'TestResultV2':
+ return super().__new__(
+ cls,
+ *_args,
+ createdAt=createdAt,
+ id=id,
+ pipelineId=pipelineId,
+ updatedAt=updatedAt,
+ archivedAt=archivedAt,
+ branch=branch,
+ commit=commit,
+ metadata=metadata,
+ name=name,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+from gentrace.model.metadata_value_object import MetadataValueObject
diff --git a/package/gentrace/model/test_result_v2.pyi b/package/gentrace/model/test_result_v2.pyi
new file mode 100644
index 00000000..0bcf5f99
--- /dev/null
+++ b/package/gentrace/model/test_result_v2.pyi
@@ -0,0 +1,262 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+class TestResultV2(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+ required = {
+ "createdAt",
+ "id",
+ "pipelineId",
+ "updatedAt",
+ }
+
+ class properties:
+ id = schemas.UUIDSchema
+ createdAt = schemas.Int64Schema
+ updatedAt = schemas.Int64Schema
+ pipelineId = schemas.UUIDSchema
+ archivedAt = schemas.Int64Schema
+
+
+ class branch(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'branch':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+
+
+ class commit(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'commit':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+
+
+ class metadata(
+ schemas.DictBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneFrozenDictMixin
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def additional_properties() -> typing.Type['MetadataValueObject']:
+ return MetadataValueObject
+
+
+ def __getitem__(self, name: typing.Union[str, ]) -> 'MetadataValueObject':
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+ def get_item_oapg(self, name: typing.Union[str, ]) -> 'MetadataValueObject':
+ return super().get_item_oapg(name)
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, None, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: 'MetadataValueObject',
+ ) -> 'metadata':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+ class name(
+ schemas.StrBase,
+ schemas.NoneBase,
+ schemas.Schema,
+ schemas.NoneStrMixin
+ ):
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[None, str, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'name':
+ return super().__new__(
+ cls,
+ *_args,
+ _configuration=_configuration,
+ )
+ __annotations__ = {
+ "id": id,
+ "createdAt": createdAt,
+ "updatedAt": updatedAt,
+ "pipelineId": pipelineId,
+ "archivedAt": archivedAt,
+ "branch": branch,
+ "commit": commit,
+ "metadata": metadata,
+ "name": name,
+ }
+
+ createdAt: MetaOapg.properties.createdAt
+ id: MetaOapg.properties.id
+ pipelineId: MetaOapg.properties.pipelineId
+ updatedAt: MetaOapg.properties.updatedAt
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["pipelineId"]) -> MetaOapg.properties.pipelineId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["archivedAt"]) -> MetaOapg.properties.archivedAt: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["branch"]) -> MetaOapg.properties.branch: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["commit"]) -> MetaOapg.properties.commit: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "pipelineId", "archivedAt", "branch", "commit", "metadata", "name", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["pipelineId"]) -> MetaOapg.properties.pipelineId: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["archivedAt"]) -> typing.Union[MetaOapg.properties.archivedAt, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["branch"]) -> typing.Union[MetaOapg.properties.branch, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["commit"]) -> typing.Union[MetaOapg.properties.commit, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "pipelineId", "archivedAt", "branch", "commit", "metadata", "name", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, ],
+ id: typing.Union[MetaOapg.properties.id, str, uuid.UUID, ],
+ pipelineId: typing.Union[MetaOapg.properties.pipelineId, str, uuid.UUID, ],
+ updatedAt: typing.Union[MetaOapg.properties.updatedAt, decimal.Decimal, int, ],
+ archivedAt: typing.Union[MetaOapg.properties.archivedAt, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ branch: typing.Union[MetaOapg.properties.branch, None, str, schemas.Unset] = schemas.unset,
+ commit: typing.Union[MetaOapg.properties.commit, None, str, schemas.Unset] = schemas.unset,
+ metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset,
+ name: typing.Union[MetaOapg.properties.name, None, str, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'TestResultV2':
+ return super().__new__(
+ cls,
+ *_args,
+ createdAt=createdAt,
+ id=id,
+ pipelineId=pipelineId,
+ updatedAt=updatedAt,
+ archivedAt=archivedAt,
+ branch=branch,
+ commit=commit,
+ metadata=metadata,
+ name=name,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+from gentrace.model.metadata_value_object import MetadataValueObject
diff --git a/package/gentrace/model/test_run.py b/package/gentrace/model/test_run.py
index b4ee3d84..7dfe21ec 100644
--- a/package/gentrace/model/test_run.py
+++ b/package/gentrace/model/test_run.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/test_run.pyi b/package/gentrace/model/test_run.pyi
index 4f00184d..de40f26a 100644
--- a/package/gentrace/model/test_run.pyi
+++ b/package/gentrace/model/test_run.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/unix_seconds.py b/package/gentrace/model/unix_seconds.py
new file mode 100644
index 00000000..cb868ce3
--- /dev/null
+++ b/package/gentrace/model/unix_seconds.py
@@ -0,0 +1,25 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+UnixSeconds = schemas.Int64Schema
diff --git a/package/gentrace/model/unix_seconds.pyi b/package/gentrace/model/unix_seconds.pyi
new file mode 100644
index 00000000..cb868ce3
--- /dev/null
+++ b/package/gentrace/model/unix_seconds.pyi
@@ -0,0 +1,25 @@
+# coding: utf-8
+
+"""
+ Gentrace API
+
+ These API routes are designed to ingest events from clients. # noqa: E501
+
+ The version of the OpenAPI document: 0.18.0
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+
+from gentrace import schemas # noqa: F401
+
+UnixSeconds = schemas.Int64Schema
diff --git a/package/gentrace/model/update_test_case.py b/package/gentrace/model/update_test_case.py
index 90dab568..fdc1d0a7 100644
--- a/package/gentrace/model/update_test_case.py
+++ b/package/gentrace/model/update_test_case.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/model/update_test_case.pyi b/package/gentrace/model/update_test_case.pyi
index 5ab31c1f..ea4a444f 100644
--- a/package/gentrace/model/update_test_case.pyi
+++ b/package/gentrace/model/update_test_case.pyi
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/gentrace/models/__init__.py b/package/gentrace/models/__init__.py
index f2f25d4c..bcd729b3 100644
--- a/package/gentrace/models/__init__.py
+++ b/package/gentrace/models/__init__.py
@@ -18,16 +18,23 @@
from gentrace.model.expanded_test_run import ExpandedTestRun
from gentrace.model.feedback_request import FeedbackRequest
from gentrace.model.feedback_response import FeedbackResponse
+from gentrace.model.filterable_metadata_input import FilterableMetadataInput
from gentrace.model.full_run import FullRun
from gentrace.model.metadata_value_object import MetadataValueObject
from gentrace.model.pipeline import Pipeline
+from gentrace.model.pipeline_v2 import PipelineV2
from gentrace.model.resolved_step_run import ResolvedStepRun
from gentrace.model.run_request import RunRequest
from gentrace.model.run_response import RunResponse
+from gentrace.model.searchable_string_input import SearchableStringInput
+from gentrace.model.searchable_unix_seconds_input import SearchableUnixSecondsInput
from gentrace.model.step_run import StepRun
from gentrace.model.test_case import TestCase
+from gentrace.model.test_case_v2 import TestCaseV2
from gentrace.model.test_evaluation import TestEvaluation
from gentrace.model.test_evaluator import TestEvaluator
from gentrace.model.test_result import TestResult
+from gentrace.model.test_result_v2 import TestResultV2
from gentrace.model.test_run import TestRun
+from gentrace.model.unix_seconds import UnixSeconds
from gentrace.model.update_test_case import UpdateTestCase
diff --git a/package/gentrace/paths/__init__.py b/package/gentrace/paths/__init__.py
index 9a2e26e0..dd1663ce 100644
--- a/package/gentrace/paths/__init__.py
+++ b/package/gentrace/paths/__init__.py
@@ -6,11 +6,14 @@
class PathValues(str, enum.Enum):
- RUN = "/run"
- TESTCASE = "/test-case"
- TESTRESULT = "/test-result"
- TESTRESULT_ID = "/test-result/{id}"
- TESTRESULT_STATUS = "/test-result/status"
- TESTRESULTSIMPLE = "/test-result-simple"
- PIPELINES = "/pipelines"
- FILES_UPLOAD = "/files/upload"
+ V1_RUN = "/v1/run"
+ V1_TESTCASE = "/v1/test-case"
+ V1_TESTRESULT = "/v1/test-result"
+ V1_TESTRESULT_ID = "/v1/test-result/{id}"
+ V1_TESTRESULT_STATUS = "/v1/test-result/status"
+ V1_TESTRESULTSIMPLE = "/v1/test-result-simple"
+ V1_PIPELINES = "/v1/pipelines"
+ V1_FILES_UPLOAD = "/v1/files/upload"
+ V2_TESTRESULTS = "/v2/test-results"
+ V2_TESTCASES = "/v2/test-cases"
+ V2_PIPELINES = "/v2/pipelines"
diff --git a/package/gentrace/paths/test_result_id/__init__.py b/package/gentrace/paths/test_result_id/__init__.py
deleted file mode 100644
index 1f8e8ca4..00000000
--- a/package/gentrace/paths/test_result_id/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from gentrace.paths.test_result_id import Api
-
-from gentrace.paths import PathValues
-
-path = PathValues.TESTRESULT_ID
\ No newline at end of file
diff --git a/package/gentrace/paths/test_result_simple/__init__.py b/package/gentrace/paths/test_result_simple/__init__.py
deleted file mode 100644
index ac243f31..00000000
--- a/package/gentrace/paths/test_result_simple/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from gentrace.paths.test_result_simple import Api
-
-from gentrace.paths import PathValues
-
-path = PathValues.TESTRESULTSIMPLE
\ No newline at end of file
diff --git a/package/gentrace/paths/test_result_simple/get.py b/package/gentrace/paths/test_result_simple/get.py
deleted file mode 100644
index 1f492fe7..00000000
--- a/package/gentrace/paths/test_result_simple/get.py
+++ /dev/null
@@ -1,862 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import uuid # noqa: F401
-from dataclasses import dataclass
-from datetime import date, datetime # noqa: F401
-
-import frozendict # noqa: F401
-import typing_extensions # noqa: F401
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from gentrace import (
- api_client,
- exceptions,
- schemas, # noqa: F401
-)
-from gentrace.model.test_result import TestResult
-
-from . import path
-
-# Query params
-ResultIdSchema = schemas.UUIDSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- "RequestRequiredQueryParams",
- {
- "resultId": typing.Union[
- ResultIdSchema,
- str,
- uuid.UUID,
- ],
- },
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- "RequestOptionalQueryParams", {}, total=False
-)
-
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-
-request_query_result_id = api_client.QueryParameter(
- name="resultId",
- style=api_client.ParameterStyle.FORM,
- schema=ResultIdSchema,
- required=True,
- explode=True,
-)
-_auth = [
- "bearerAuth",
-]
-
-
-class SchemaFor200ResponseBodyApplicationJson(schemas.DictSchema):
- class MetaOapg:
- class properties:
- @staticmethod
- def testResult() -> typing.Type["TestResult"]:
- return TestResult
-
- class stats(schemas.DictSchema):
- class MetaOapg:
- required = {
- "total",
- "failure",
- "pending",
- "done",
- }
-
- class properties:
- total = schemas.NumberSchema
- pending = schemas.NumberSchema
- failure = schemas.NumberSchema
- done = schemas.NumberSchema
- __annotations__ = {
- "total": total,
- "pending": pending,
- "failure": failure,
- "done": done,
- }
-
- total: MetaOapg.properties.total
- failure: MetaOapg.properties.failure
- pending: MetaOapg.properties.pending
- done: MetaOapg.properties.done
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["total"]
- ) -> MetaOapg.properties.total:
- ...
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["pending"]
- ) -> MetaOapg.properties.pending:
- ...
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["failure"]
- ) -> MetaOapg.properties.failure:
- ...
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["done"]
- ) -> MetaOapg.properties.done:
- ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema:
- ...
-
- def __getitem__(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "total",
- "pending",
- "failure",
- "done",
- ],
- str,
- ],
- ):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["total"]
- ) -> MetaOapg.properties.total:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["pending"]
- ) -> MetaOapg.properties.pending:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["failure"]
- ) -> MetaOapg.properties.failure:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["done"]
- ) -> MetaOapg.properties.done:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: str
- ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]:
- ...
-
- def get_item_oapg(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "total",
- "pending",
- "failure",
- "done",
- ],
- str,
- ],
- ):
- return super().get_item_oapg(name)
-
- def __new__(
- cls,
- *_args: typing.Union[
- dict,
- frozendict.frozendict,
- ],
- total: typing.Union[
- MetaOapg.properties.total,
- decimal.Decimal,
- int,
- float,
- ],
- failure: typing.Union[
- MetaOapg.properties.failure,
- decimal.Decimal,
- int,
- float,
- ],
- pending: typing.Union[
- MetaOapg.properties.pending,
- decimal.Decimal,
- int,
- float,
- ],
- done: typing.Union[
- MetaOapg.properties.done,
- decimal.Decimal,
- int,
- float,
- ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[
- schemas.AnyTypeSchema,
- dict,
- frozendict.frozendict,
- str,
- date,
- datetime,
- uuid.UUID,
- int,
- float,
- decimal.Decimal,
- None,
- list,
- tuple,
- bytes,
- ],
- ) -> "stats":
- return super().__new__(
- cls,
- *_args,
- total=total,
- failure=failure,
- pending=pending,
- done=done,
- _configuration=_configuration,
- **kwargs,
- )
-
- __annotations__ = {
- "testResult": testResult,
- "stats": stats,
- }
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["testResult"]
- ) -> "TestResult":
- ...
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["stats"]
- ) -> MetaOapg.properties.stats:
- ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema:
- ...
-
- def __getitem__(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "testResult",
- "stats",
- ],
- str,
- ],
- ):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["testResult"]
- ) -> typing.Union["TestResult", schemas.Unset]:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["stats"]
- ) -> typing.Union[MetaOapg.properties.stats, schemas.Unset]:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: str
- ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]:
- ...
-
- def get_item_oapg(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "testResult",
- "stats",
- ],
- str,
- ],
- ):
- return super().get_item_oapg(name)
-
- def __new__(
- cls,
- *_args: typing.Union[
- dict,
- frozendict.frozendict,
- ],
- testResult: typing.Union["TestResult", schemas.Unset] = schemas.unset,
- stats: typing.Union[
- MetaOapg.properties.stats, dict, frozendict.frozendict, schemas.Unset
- ] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[
- schemas.AnyTypeSchema,
- dict,
- frozendict.frozendict,
- str,
- date,
- datetime,
- uuid.UUID,
- int,
- float,
- decimal.Decimal,
- None,
- list,
- tuple,
- bytes,
- ],
- ) -> "SchemaFor200ResponseBodyApplicationJson":
- return super().__new__(
- cls,
- *_args,
- testResult=testResult,
- stats=stats,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-class SchemaFor200ResponseBodyApplicationJsonCharsetutf8(schemas.DictSchema):
- class MetaOapg:
- class properties:
- @staticmethod
- def testRun() -> typing.Type["TestResult"]:
- return TestResult
-
- class stats(schemas.DictSchema):
- class MetaOapg:
- required = {
- "total",
- "failure",
- "pending",
- "done",
- }
-
- class properties:
- total = schemas.NumberSchema
- pending = schemas.NumberSchema
- failure = schemas.NumberSchema
- done = schemas.NumberSchema
- __annotations__ = {
- "total": total,
- "pending": pending,
- "failure": failure,
- "done": done,
- }
-
- total: MetaOapg.properties.total
- failure: MetaOapg.properties.failure
- pending: MetaOapg.properties.pending
- done: MetaOapg.properties.done
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["total"]
- ) -> MetaOapg.properties.total:
- ...
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["pending"]
- ) -> MetaOapg.properties.pending:
- ...
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["failure"]
- ) -> MetaOapg.properties.failure:
- ...
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["done"]
- ) -> MetaOapg.properties.done:
- ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema:
- ...
-
- def __getitem__(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "total",
- "pending",
- "failure",
- "done",
- ],
- str,
- ],
- ):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["total"]
- ) -> MetaOapg.properties.total:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["pending"]
- ) -> MetaOapg.properties.pending:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["failure"]
- ) -> MetaOapg.properties.failure:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["done"]
- ) -> MetaOapg.properties.done:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: str
- ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]:
- ...
-
- def get_item_oapg(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "total",
- "pending",
- "failure",
- "done",
- ],
- str,
- ],
- ):
- return super().get_item_oapg(name)
-
- def __new__(
- cls,
- *_args: typing.Union[
- dict,
- frozendict.frozendict,
- ],
- total: typing.Union[
- MetaOapg.properties.total,
- decimal.Decimal,
- int,
- float,
- ],
- failure: typing.Union[
- MetaOapg.properties.failure,
- decimal.Decimal,
- int,
- float,
- ],
- pending: typing.Union[
- MetaOapg.properties.pending,
- decimal.Decimal,
- int,
- float,
- ],
- done: typing.Union[
- MetaOapg.properties.done,
- decimal.Decimal,
- int,
- float,
- ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[
- schemas.AnyTypeSchema,
- dict,
- frozendict.frozendict,
- str,
- date,
- datetime,
- uuid.UUID,
- int,
- float,
- decimal.Decimal,
- None,
- list,
- tuple,
- bytes,
- ],
- ) -> "stats":
- return super().__new__(
- cls,
- *_args,
- total=total,
- failure=failure,
- pending=pending,
- done=done,
- _configuration=_configuration,
- **kwargs,
- )
-
- __annotations__ = {
- "testRun": testRun,
- "stats": stats,
- }
-
- @typing.overload
- def __getitem__(self, name: typing_extensions.Literal["testRun"]) -> "TestResult":
- ...
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["stats"]
- ) -> MetaOapg.properties.stats:
- ...
-
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema:
- ...
-
- def __getitem__(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "testRun",
- "stats",
- ],
- str,
- ],
- ):
- # dict_instance[name] accessor
- return super().__getitem__(name)
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["testRun"]
- ) -> typing.Union["TestResult", schemas.Unset]:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["stats"]
- ) -> typing.Union[MetaOapg.properties.stats, schemas.Unset]:
- ...
-
- @typing.overload
- def get_item_oapg(
- self, name: str
- ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]:
- ...
-
- def get_item_oapg(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "testRun",
- "stats",
- ],
- str,
- ],
- ):
- return super().get_item_oapg(name)
-
- def __new__(
- cls,
- *_args: typing.Union[
- dict,
- frozendict.frozendict,
- ],
- testRun: typing.Union["TestResult", schemas.Unset] = schemas.unset,
- stats: typing.Union[
- MetaOapg.properties.stats, dict, frozendict.frozendict, schemas.Unset
- ] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[
- schemas.AnyTypeSchema,
- dict,
- frozendict.frozendict,
- str,
- date,
- datetime,
- uuid.UUID,
- int,
- float,
- decimal.Decimal,
- None,
- list,
- tuple,
- bytes,
- ],
- ) -> "SchemaFor200ResponseBodyApplicationJsonCharsetutf8":
- return super().__new__(
- cls,
- *_args,
- testRun=testRun,
- stats=stats,
- _configuration=_configuration,
- **kwargs,
- )
-
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- "application/json": api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson
- ),
- "application/json; charset=utf-8": api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8
- ),
- },
-)
-_status_code_to_response = {
- "200": _response_for_200,
-}
-_all_accept_content_types = (
- "application/json",
- "application/json; charset=utf-8",
-)
-
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _test_result_simple_get_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[ApiResponseFor200,]:
- ...
-
- @typing.overload
- def _test_result_simple_get_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization:
- ...
-
- @typing.overload
- def _test_result_simple_get_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]:
- ...
-
- def _test_result_simple_get_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get test result by ID
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (request_query_result_id,):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(
- parameter_data, prefix_separator_iterator
- )
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add("Accept", accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method="get".upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(
- response=response
- )
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(
- response, self.api_client.configuration
- )
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(
- response=response
- )
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response,
- )
-
- return api_response
-
-
-class TestResultSimpleGet(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def test_result_simple_get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[ApiResponseFor200,]:
- ...
-
- @typing.overload
- def test_result_simple_get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization:
- ...
-
- @typing.overload
- def test_result_simple_get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]:
- ...
-
- def test_result_simple_get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._test_result_simple_get_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization,
- )
-
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[ApiResponseFor200,]:
- ...
-
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization:
- ...
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]:
- ...
-
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._test_result_simple_get_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization,
- )
diff --git a/package/gentrace/paths/test_result_simple/get.pyi b/package/gentrace/paths/test_result_simple/get.pyi
deleted file mode 100644
index 06fa3f07..00000000
--- a/package/gentrace/paths/test_result_simple/get.pyi
+++ /dev/null
@@ -1,760 +0,0 @@
-# coding: utf-8
-
-"""
-
-
- Generated by: https://openapi-generator.tech
-"""
-
-import decimal # noqa: F401
-import functools # noqa: F401
-import io # noqa: F401
-import re # noqa: F401
-import typing # noqa: F401
-import uuid # noqa: F401
-from dataclasses import dataclass
-from datetime import date, datetime # noqa: F401
-
-import frozendict # noqa: F401
-import typing_extensions # noqa: F401
-import urllib3
-from urllib3._collections import HTTPHeaderDict
-
-from gentrace import (
- api_client,
- exceptions,
- schemas, # noqa: F401
-)
-from gentrace.model.test_result import TestResult
-
-# Query params
-ResultIdSchema = schemas.UUIDSchema
-RequestRequiredQueryParams = typing_extensions.TypedDict(
- "RequestRequiredQueryParams",
- {
- "resultId": typing.Union[
- ResultIdSchema,
- str,
- uuid.UUID,
- ],
- },
-)
-RequestOptionalQueryParams = typing_extensions.TypedDict(
- "RequestOptionalQueryParams", {}, total=False
-)
-
-class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
- pass
-
-request_query_result_id = api_client.QueryParameter(
- name="resultId",
- style=api_client.ParameterStyle.FORM,
- schema=ResultIdSchema,
- required=True,
- explode=True,
-)
-
-class SchemaFor200ResponseBodyApplicationJson(schemas.DictSchema):
- class MetaOapg:
- class properties:
- @staticmethod
- def testResult() -> typing.Type["TestResult"]:
- return TestResult
-
- class stats(schemas.DictSchema):
- class MetaOapg:
- required = {
- "total",
- "failure",
- "pending",
- "done",
- }
-
- class properties:
- total = schemas.NumberSchema
- pending = schemas.NumberSchema
- failure = schemas.NumberSchema
- done = schemas.NumberSchema
- __annotations__ = {
- "total": total,
- "pending": pending,
- "failure": failure,
- "done": done,
- }
- total: MetaOapg.properties.total
- failure: MetaOapg.properties.failure
- pending: MetaOapg.properties.pending
- done: MetaOapg.properties.done
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["total"]
- ) -> MetaOapg.properties.total: ...
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["pending"]
- ) -> MetaOapg.properties.pending: ...
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["failure"]
- ) -> MetaOapg.properties.failure: ...
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["done"]
- ) -> MetaOapg.properties.done: ...
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "total",
- "pending",
- "failure",
- "done",
- ],
- str,
- ],
- ):
- # dict_instance[name] accessor
- return super().__getitem__(name)
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["total"]
- ) -> MetaOapg.properties.total: ...
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["pending"]
- ) -> MetaOapg.properties.pending: ...
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["failure"]
- ) -> MetaOapg.properties.failure: ...
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["done"]
- ) -> MetaOapg.properties.done: ...
- @typing.overload
- def get_item_oapg(
- self, name: str
- ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "total",
- "pending",
- "failure",
- "done",
- ],
- str,
- ],
- ):
- return super().get_item_oapg(name)
- def __new__(
- cls,
- *_args: typing.Union[
- dict,
- frozendict.frozendict,
- ],
- total: typing.Union[
- MetaOapg.properties.total,
- decimal.Decimal,
- int,
- float,
- ],
- failure: typing.Union[
- MetaOapg.properties.failure,
- decimal.Decimal,
- int,
- float,
- ],
- pending: typing.Union[
- MetaOapg.properties.pending,
- decimal.Decimal,
- int,
- float,
- ],
- done: typing.Union[
- MetaOapg.properties.done,
- decimal.Decimal,
- int,
- float,
- ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[
- schemas.AnyTypeSchema,
- dict,
- frozendict.frozendict,
- str,
- date,
- datetime,
- uuid.UUID,
- int,
- float,
- decimal.Decimal,
- None,
- list,
- tuple,
- bytes,
- ],
- ) -> "stats":
- return super().__new__(
- cls,
- *_args,
- total=total,
- failure=failure,
- pending=pending,
- done=done,
- _configuration=_configuration,
- **kwargs,
- )
- __annotations__ = {
- "testResult": testResult,
- "stats": stats,
- }
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["testResult"]
- ) -> "TestResult": ...
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["stats"]
- ) -> MetaOapg.properties.stats: ...
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "testResult",
- "stats",
- ],
- str,
- ],
- ):
- # dict_instance[name] accessor
- return super().__getitem__(name)
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["testResult"]
- ) -> typing.Union["TestResult", schemas.Unset]: ...
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["stats"]
- ) -> typing.Union[MetaOapg.properties.stats, schemas.Unset]: ...
- @typing.overload
- def get_item_oapg(
- self, name: str
- ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "testResult",
- "stats",
- ],
- str,
- ],
- ):
- return super().get_item_oapg(name)
- def __new__(
- cls,
- *_args: typing.Union[
- dict,
- frozendict.frozendict,
- ],
- testResult: typing.Union["TestResult", schemas.Unset] = schemas.unset,
- stats: typing.Union[
- MetaOapg.properties.stats, dict, frozendict.frozendict, schemas.Unset
- ] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[
- schemas.AnyTypeSchema,
- dict,
- frozendict.frozendict,
- str,
- date,
- datetime,
- uuid.UUID,
- int,
- float,
- decimal.Decimal,
- None,
- list,
- tuple,
- bytes,
- ],
- ) -> "SchemaFor200ResponseBodyApplicationJson":
- return super().__new__(
- cls,
- *_args,
- testResult=testResult,
- stats=stats,
- _configuration=_configuration,
- **kwargs,
- )
-
-class SchemaFor200ResponseBodyApplicationJsonCharsetutf8(schemas.DictSchema):
- class MetaOapg:
- class properties:
- @staticmethod
- def testRun() -> typing.Type["TestResult"]:
- return TestResult
-
- class stats(schemas.DictSchema):
- class MetaOapg:
- required = {
- "total",
- "failure",
- "pending",
- "done",
- }
-
- class properties:
- total = schemas.NumberSchema
- pending = schemas.NumberSchema
- failure = schemas.NumberSchema
- done = schemas.NumberSchema
- __annotations__ = {
- "total": total,
- "pending": pending,
- "failure": failure,
- "done": done,
- }
- total: MetaOapg.properties.total
- failure: MetaOapg.properties.failure
- pending: MetaOapg.properties.pending
- done: MetaOapg.properties.done
-
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["total"]
- ) -> MetaOapg.properties.total: ...
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["pending"]
- ) -> MetaOapg.properties.pending: ...
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["failure"]
- ) -> MetaOapg.properties.failure: ...
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["done"]
- ) -> MetaOapg.properties.done: ...
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "total",
- "pending",
- "failure",
- "done",
- ],
- str,
- ],
- ):
- # dict_instance[name] accessor
- return super().__getitem__(name)
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["total"]
- ) -> MetaOapg.properties.total: ...
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["pending"]
- ) -> MetaOapg.properties.pending: ...
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["failure"]
- ) -> MetaOapg.properties.failure: ...
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["done"]
- ) -> MetaOapg.properties.done: ...
- @typing.overload
- def get_item_oapg(
- self, name: str
- ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "total",
- "pending",
- "failure",
- "done",
- ],
- str,
- ],
- ):
- return super().get_item_oapg(name)
- def __new__(
- cls,
- *_args: typing.Union[
- dict,
- frozendict.frozendict,
- ],
- total: typing.Union[
- MetaOapg.properties.total,
- decimal.Decimal,
- int,
- float,
- ],
- failure: typing.Union[
- MetaOapg.properties.failure,
- decimal.Decimal,
- int,
- float,
- ],
- pending: typing.Union[
- MetaOapg.properties.pending,
- decimal.Decimal,
- int,
- float,
- ],
- done: typing.Union[
- MetaOapg.properties.done,
- decimal.Decimal,
- int,
- float,
- ],
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[
- schemas.AnyTypeSchema,
- dict,
- frozendict.frozendict,
- str,
- date,
- datetime,
- uuid.UUID,
- int,
- float,
- decimal.Decimal,
- None,
- list,
- tuple,
- bytes,
- ],
- ) -> "stats":
- return super().__new__(
- cls,
- *_args,
- total=total,
- failure=failure,
- pending=pending,
- done=done,
- _configuration=_configuration,
- **kwargs,
- )
- __annotations__ = {
- "testRun": testRun,
- "stats": stats,
- }
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["testRun"]
- ) -> "TestResult": ...
- @typing.overload
- def __getitem__(
- self, name: typing_extensions.Literal["stats"]
- ) -> MetaOapg.properties.stats: ...
- @typing.overload
- def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "testRun",
- "stats",
- ],
- str,
- ],
- ):
- # dict_instance[name] accessor
- return super().__getitem__(name)
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["testRun"]
- ) -> typing.Union["TestResult", schemas.Unset]: ...
- @typing.overload
- def get_item_oapg(
- self, name: typing_extensions.Literal["stats"]
- ) -> typing.Union[MetaOapg.properties.stats, schemas.Unset]: ...
- @typing.overload
- def get_item_oapg(
- self, name: str
- ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(
- self,
- name: typing.Union[
- typing_extensions.Literal[
- "testRun",
- "stats",
- ],
- str,
- ],
- ):
- return super().get_item_oapg(name)
- def __new__(
- cls,
- *_args: typing.Union[
- dict,
- frozendict.frozendict,
- ],
- testRun: typing.Union["TestResult", schemas.Unset] = schemas.unset,
- stats: typing.Union[
- MetaOapg.properties.stats, dict, frozendict.frozendict, schemas.Unset
- ] = schemas.unset,
- _configuration: typing.Optional[schemas.Configuration] = None,
- **kwargs: typing.Union[
- schemas.AnyTypeSchema,
- dict,
- frozendict.frozendict,
- str,
- date,
- datetime,
- uuid.UUID,
- int,
- float,
- decimal.Decimal,
- None,
- list,
- tuple,
- bytes,
- ],
- ) -> "SchemaFor200ResponseBodyApplicationJsonCharsetutf8":
- return super().__new__(
- cls,
- *_args,
- testRun=testRun,
- stats=stats,
- _configuration=_configuration,
- **kwargs,
- )
-
-@dataclass
-class ApiResponseFor200(api_client.ApiResponse):
- response: urllib3.HTTPResponse
- body: typing.Union[
- SchemaFor200ResponseBodyApplicationJson,
- SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
- ]
- headers: schemas.Unset = schemas.unset
-
-_response_for_200 = api_client.OpenApiResponse(
- response_cls=ApiResponseFor200,
- content={
- "application/json": api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJson
- ),
- "application/json; charset=utf-8": api_client.MediaType(
- schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8
- ),
- },
-)
-_all_accept_content_types = (
- "application/json",
- "application/json; charset=utf-8",
-)
-
-class BaseApi(api_client.Api):
- @typing.overload
- def _test_result_simple_get_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[ApiResponseFor200,]: ...
- @typing.overload
- def _test_result_simple_get_oapg(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
- @typing.overload
- def _test_result_simple_get_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
- def _test_result_simple_get_oapg(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- """
- Get test result by ID
- :param skip_deserialization: If true then api_response.response will be set but
- api_response.body and api_response.headers will not be deserialized into schema
- class instances
- """
- self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
- used_path = path.value
-
- prefix_separator_iterator = None
- for parameter in (request_query_result_id,):
- parameter_data = query_params.get(parameter.name, schemas.unset)
- if parameter_data is schemas.unset:
- continue
- if prefix_separator_iterator is None:
- prefix_separator_iterator = parameter.get_prefix_separator_iterator()
- serialized_data = parameter.serialize(
- parameter_data, prefix_separator_iterator
- )
- for serialized_value in serialized_data.values():
- used_path += serialized_value
-
- _headers = HTTPHeaderDict()
- # TODO add cookie handling
- if accept_content_types:
- for accept_content_type in accept_content_types:
- _headers.add("Accept", accept_content_type)
-
- response = self.api_client.call_api(
- resource_path=used_path,
- method="get".upper(),
- headers=_headers,
- auth_settings=_auth,
- stream=stream,
- timeout=timeout,
- )
-
- if skip_deserialization:
- api_response = api_client.ApiResponseWithoutDeserialization(
- response=response
- )
- else:
- response_for_status = _status_code_to_response.get(str(response.status))
- if response_for_status:
- api_response = response_for_status.deserialize(
- response, self.api_client.configuration
- )
- else:
- api_response = api_client.ApiResponseWithoutDeserialization(
- response=response
- )
-
- if not 200 <= response.status <= 299:
- raise exceptions.ApiException(
- status=response.status,
- reason=response.reason,
- api_response=api_response,
- )
-
- return api_response
-
-class TestResultSimpleGet(BaseApi):
- # this class is used by api classes that refer to endpoints with operationId fn names
-
- @typing.overload
- def test_result_simple_get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[ApiResponseFor200,]: ...
- @typing.overload
- def test_result_simple_get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
- @typing.overload
- def test_result_simple_get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
- def test_result_simple_get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._test_result_simple_get_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization,
- )
-
-class ApiForget(BaseApi):
- # this class is used by api classes that refer to endpoints by path and http method names
-
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: typing_extensions.Literal[False] = ...,
- ) -> typing.Union[ApiResponseFor200,]: ...
- @typing.overload
- def get(
- self,
- skip_deserialization: typing_extensions.Literal[True],
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- ) -> api_client.ApiResponseWithoutDeserialization: ...
- @typing.overload
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = ...,
- ) -> typing.Union[
- ApiResponseFor200,
- api_client.ApiResponseWithoutDeserialization,
- ]: ...
- def get(
- self,
- query_params: RequestQueryParams = frozendict.frozendict(),
- accept_content_types: typing.Tuple[str] = _all_accept_content_types,
- stream: bool = False,
- timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
- skip_deserialization: bool = False,
- ):
- return self._test_result_simple_get_oapg(
- query_params=query_params,
- accept_content_types=accept_content_types,
- stream=stream,
- timeout=timeout,
- skip_deserialization=skip_deserialization,
- )
diff --git a/package/gentrace/paths/test_result_status/__init__.py b/package/gentrace/paths/test_result_status/__init__.py
deleted file mode 100644
index 8d946383..00000000
--- a/package/gentrace/paths/test_result_status/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from gentrace.paths.test_result_status import Api
-
-from gentrace.paths import PathValues
-
-path = PathValues.TESTRESULT_STATUS
\ No newline at end of file
diff --git a/package/gentrace/paths/v1_files_upload/__init__.py b/package/gentrace/paths/v1_files_upload/__init__.py
new file mode 100644
index 00000000..353b375d
--- /dev/null
+++ b/package/gentrace/paths/v1_files_upload/__init__.py
@@ -0,0 +1,7 @@
+# do not import all endpoints into this module because that uses a lot of memory and stack frames
+# if you need the ability to import all endpoints from this module, import them with
+# from gentrace.paths.v1_files_upload import Api
+
+from gentrace.paths import PathValues
+
+path = PathValues.V1_FILES_UPLOAD
\ No newline at end of file
diff --git a/package/gentrace/paths/files_upload/post.py b/package/gentrace/paths/v1_files_upload/post.py
similarity index 98%
rename from package/gentrace/paths/files_upload/post.py
rename to package/gentrace/paths/v1_files_upload/post.py
index 6e0c83d4..882296ea 100644
--- a/package/gentrace/paths/files_upload/post.py
+++ b/package/gentrace/paths/v1_files_upload/post.py
@@ -614,7 +614,7 @@ class ApiResponseFor500(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
content_type: typing_extensions.Literal["multipart/form-data"] = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -628,7 +628,7 @@ def _files_upload_post_oapg(
]: ...
@typing.overload
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
content_type: str = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -643,7 +643,7 @@ def _files_upload_post_oapg(
@typing.overload
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
@@ -655,7 +655,7 @@ def _files_upload_post_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
content_type: str = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -669,7 +669,7 @@ def _files_upload_post_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
content_type: str = 'multipart/form-data',
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -746,11 +746,11 @@ class instances
return api_response
-class FilesUploadPost(BaseApi):
+class V1FilesUploadPost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def files_upload_post(
+ def v1_files_upload_post(
self,
content_type: typing_extensions.Literal["multipart/form-data"] = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -764,7 +764,7 @@ def files_upload_post(
]: ...
@typing.overload
- def files_upload_post(
+ def v1_files_upload_post(
self,
content_type: str = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -779,7 +779,7 @@ def files_upload_post(
@typing.overload
- def files_upload_post(
+ def v1_files_upload_post(
self,
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
@@ -791,7 +791,7 @@ def files_upload_post(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def files_upload_post(
+ def v1_files_upload_post(
self,
content_type: str = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -805,7 +805,7 @@ def files_upload_post(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def files_upload_post(
+ def v1_files_upload_post(
self,
content_type: str = 'multipart/form-data',
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -815,7 +815,7 @@ def files_upload_post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._files_upload_post_oapg(
+ return self._v1_files_upload_post_oapg(
body=body,
query_params=query_params,
content_type=content_type,
@@ -895,7 +895,7 @@ def post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._files_upload_post_oapg(
+ return self._v1_files_upload_post_oapg(
body=body,
query_params=query_params,
content_type=content_type,
diff --git a/package/gentrace/paths/files_upload/post.pyi b/package/gentrace/paths/v1_files_upload/post.pyi
similarity index 98%
rename from package/gentrace/paths/files_upload/post.pyi
rename to package/gentrace/paths/v1_files_upload/post.pyi
index 60c70f2a..f56320d5 100644
--- a/package/gentrace/paths/files_upload/post.pyi
+++ b/package/gentrace/paths/v1_files_upload/post.pyi
@@ -603,7 +603,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
content_type: typing_extensions.Literal["multipart/form-data"] = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -617,7 +617,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
content_type: str = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -632,7 +632,7 @@ class BaseApi(api_client.Api):
@typing.overload
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
@@ -644,7 +644,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
content_type: str = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -658,7 +658,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _files_upload_post_oapg(
+ def _v1_files_upload_post_oapg(
self,
content_type: str = 'multipart/form-data',
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -735,11 +735,11 @@ class BaseApi(api_client.Api):
return api_response
-class FilesUploadPost(BaseApi):
+class V1FilesUploadPost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def files_upload_post(
+ def v1_files_upload_post(
self,
content_type: typing_extensions.Literal["multipart/form-data"] = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -753,7 +753,7 @@ class FilesUploadPost(BaseApi):
]: ...
@typing.overload
- def files_upload_post(
+ def v1_files_upload_post(
self,
content_type: str = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -768,7 +768,7 @@ class FilesUploadPost(BaseApi):
@typing.overload
- def files_upload_post(
+ def v1_files_upload_post(
self,
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
@@ -780,7 +780,7 @@ class FilesUploadPost(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def files_upload_post(
+ def v1_files_upload_post(
self,
content_type: str = ...,
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -794,7 +794,7 @@ class FilesUploadPost(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def files_upload_post(
+ def v1_files_upload_post(
self,
content_type: str = 'multipart/form-data',
body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
@@ -804,7 +804,7 @@ class FilesUploadPost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._files_upload_post_oapg(
+ return self._v1_files_upload_post_oapg(
body=body,
query_params=query_params,
content_type=content_type,
@@ -884,7 +884,7 @@ class ApiForpost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._files_upload_post_oapg(
+ return self._v1_files_upload_post_oapg(
body=body,
query_params=query_params,
content_type=content_type,
diff --git a/package/gentrace/paths/files_upload/__init__.py b/package/gentrace/paths/v1_pipelines/__init__.py
similarity index 74%
rename from package/gentrace/paths/files_upload/__init__.py
rename to package/gentrace/paths/v1_pipelines/__init__.py
index 597db4ae..1425f742 100644
--- a/package/gentrace/paths/files_upload/__init__.py
+++ b/package/gentrace/paths/v1_pipelines/__init__.py
@@ -1,7 +1,7 @@
# do not import all endpoints into this module because that uses a lot of memory and stack frames
# if you need the ability to import all endpoints from this module, import them with
-# from gentrace.paths.files_upload import Api
+# from gentrace.paths.v1_pipelines import Api
from gentrace.paths import PathValues
-path = PathValues.FILES_UPLOAD
\ No newline at end of file
+path = PathValues.V1_PIPELINES
\ No newline at end of file
diff --git a/package/gentrace/paths/pipelines/get.py b/package/gentrace/paths/v1_pipelines/get.py
similarity index 98%
rename from package/gentrace/paths/pipelines/get.py
rename to package/gentrace/paths/v1_pipelines/get.py
index 2ebeb3b3..37546566 100644
--- a/package/gentrace/paths/pipelines/get.py
+++ b/package/gentrace/paths/v1_pipelines/get.py
@@ -501,7 +501,7 @@ class ApiResponseFor500(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _pipelines_get_oapg(
+ def _v1_pipelines_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -513,7 +513,7 @@ def _pipelines_get_oapg(
]: ...
@typing.overload
- def _pipelines_get_oapg(
+ def _v1_pipelines_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -523,7 +523,7 @@ def _pipelines_get_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _pipelines_get_oapg(
+ def _v1_pipelines_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -535,7 +535,7 @@ def _pipelines_get_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _pipelines_get_oapg(
+ def _v1_pipelines_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -600,11 +600,11 @@ class instances
return api_response
-class PipelinesGet(BaseApi):
+class V1PipelinesGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def pipelines_get(
+ def v1_pipelines_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -616,7 +616,7 @@ def pipelines_get(
]: ...
@typing.overload
- def pipelines_get(
+ def v1_pipelines_get(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -626,7 +626,7 @@ def pipelines_get(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def pipelines_get(
+ def v1_pipelines_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -638,7 +638,7 @@ def pipelines_get(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def pipelines_get(
+ def v1_pipelines_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -646,7 +646,7 @@ def pipelines_get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._pipelines_get_oapg(
+ return self._v1_pipelines_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -701,7 +701,7 @@ def get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._pipelines_get_oapg(
+ return self._v1_pipelines_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/pipelines/get.pyi b/package/gentrace/paths/v1_pipelines/get.pyi
similarity index 98%
rename from package/gentrace/paths/pipelines/get.pyi
rename to package/gentrace/paths/v1_pipelines/get.pyi
index 35f3d3a1..7181f9fb 100644
--- a/package/gentrace/paths/pipelines/get.pyi
+++ b/package/gentrace/paths/v1_pipelines/get.pyi
@@ -491,7 +491,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _pipelines_get_oapg(
+ def _v1_pipelines_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -503,7 +503,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _pipelines_get_oapg(
+ def _v1_pipelines_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -513,7 +513,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _pipelines_get_oapg(
+ def _v1_pipelines_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -525,7 +525,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _pipelines_get_oapg(
+ def _v1_pipelines_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -590,11 +590,11 @@ class BaseApi(api_client.Api):
return api_response
-class PipelinesGet(BaseApi):
+class V1PipelinesGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def pipelines_get(
+ def v1_pipelines_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -606,7 +606,7 @@ class PipelinesGet(BaseApi):
]: ...
@typing.overload
- def pipelines_get(
+ def v1_pipelines_get(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -616,7 +616,7 @@ class PipelinesGet(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def pipelines_get(
+ def v1_pipelines_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -628,7 +628,7 @@ class PipelinesGet(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def pipelines_get(
+ def v1_pipelines_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -636,7 +636,7 @@ class PipelinesGet(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._pipelines_get_oapg(
+ return self._v1_pipelines_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -691,7 +691,7 @@ class ApiForget(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._pipelines_get_oapg(
+ return self._v1_pipelines_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/run/__init__.py b/package/gentrace/paths/v1_run/__init__.py
similarity index 77%
rename from package/gentrace/paths/run/__init__.py
rename to package/gentrace/paths/v1_run/__init__.py
index c79ba7cb..6ca5dc8d 100644
--- a/package/gentrace/paths/run/__init__.py
+++ b/package/gentrace/paths/v1_run/__init__.py
@@ -1,7 +1,7 @@
# do not import all endpoints into this module because that uses a lot of memory and stack frames
# if you need the ability to import all endpoints from this module, import them with
-# from gentrace.paths.run import Api
+# from gentrace.paths.v1_run import Api
from gentrace.paths import PathValues
-path = PathValues.RUN
\ No newline at end of file
+path = PathValues.V1_RUN
\ No newline at end of file
diff --git a/package/gentrace/paths/run/post.py b/package/gentrace/paths/v1_run/post.py
similarity index 97%
rename from package/gentrace/paths/run/post.py
rename to package/gentrace/paths/v1_run/post.py
index 44eb1490..4d7eefa0 100644
--- a/package/gentrace/paths/run/post.py
+++ b/package/gentrace/paths/v1_run/post.py
@@ -104,7 +104,7 @@ class ApiResponseFor500(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -117,7 +117,7 @@ def _run_post_oapg(
]: ...
@typing.overload
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -131,7 +131,7 @@ def _run_post_oapg(
@typing.overload
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
@@ -142,7 +142,7 @@ def _run_post_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -155,7 +155,7 @@ def _run_post_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
@@ -219,11 +219,11 @@ class instances
return api_response
-class RunPost(BaseApi):
+class V1RunPost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -236,7 +236,7 @@ def run_post(
]: ...
@typing.overload
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -250,7 +250,7 @@ def run_post(
@typing.overload
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
@@ -261,7 +261,7 @@ def run_post(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -274,7 +274,7 @@ def run_post(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
@@ -283,7 +283,7 @@ def run_post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._run_post_oapg(
+ return self._v1_run_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -357,7 +357,7 @@ def post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._run_post_oapg(
+ return self._v1_run_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/run/post.pyi b/package/gentrace/paths/v1_run/post.pyi
similarity index 97%
rename from package/gentrace/paths/run/post.pyi
rename to package/gentrace/paths/v1_run/post.pyi
index 5ffa4ec5..24e87c71 100644
--- a/package/gentrace/paths/run/post.pyi
+++ b/package/gentrace/paths/v1_run/post.pyi
@@ -94,7 +94,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -107,7 +107,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -121,7 +121,7 @@ class BaseApi(api_client.Api):
@typing.overload
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
@@ -132,7 +132,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -145,7 +145,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _run_post_oapg(
+ def _v1_run_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
@@ -209,11 +209,11 @@ class BaseApi(api_client.Api):
return api_response
-class RunPost(BaseApi):
+class V1RunPost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -226,7 +226,7 @@ class RunPost(BaseApi):
]: ...
@typing.overload
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -240,7 +240,7 @@ class RunPost(BaseApi):
@typing.overload
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
@@ -251,7 +251,7 @@ class RunPost(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -264,7 +264,7 @@ class RunPost(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def run_post(
+ def v1_run_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
@@ -273,7 +273,7 @@ class RunPost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._run_post_oapg(
+ return self._v1_run_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -347,7 +347,7 @@ class ApiForpost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._run_post_oapg(
+ return self._v1_run_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/test_result/__init__.py b/package/gentrace/paths/v1_test_case/__init__.py
similarity index 74%
rename from package/gentrace/paths/test_result/__init__.py
rename to package/gentrace/paths/v1_test_case/__init__.py
index 364d4ada..ee80cecf 100644
--- a/package/gentrace/paths/test_result/__init__.py
+++ b/package/gentrace/paths/v1_test_case/__init__.py
@@ -1,7 +1,7 @@
# do not import all endpoints into this module because that uses a lot of memory and stack frames
# if you need the ability to import all endpoints from this module, import them with
-# from gentrace.paths.test_result import Api
+# from gentrace.paths.v1_test_case import Api
from gentrace.paths import PathValues
-path = PathValues.TESTRESULT
\ No newline at end of file
+path = PathValues.V1_TESTCASE
\ No newline at end of file
diff --git a/package/gentrace/paths/test_case/get.py b/package/gentrace/paths/v1_test_case/get.py
similarity index 97%
rename from package/gentrace/paths/test_case/get.py
rename to package/gentrace/paths/v1_test_case/get.py
index 562bff2d..7cc54bf6 100644
--- a/package/gentrace/paths/test_case/get.py
+++ b/package/gentrace/paths/v1_test_case/get.py
@@ -274,7 +274,7 @@ class ApiResponseFor500(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _test_case_get_oapg(
+ def _v1_test_case_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -286,7 +286,7 @@ def _test_case_get_oapg(
]: ...
@typing.overload
- def _test_case_get_oapg(
+ def _v1_test_case_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -296,7 +296,7 @@ def _test_case_get_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_case_get_oapg(
+ def _v1_test_case_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -308,7 +308,7 @@ def _test_case_get_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_case_get_oapg(
+ def _v1_test_case_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -373,11 +373,11 @@ class instances
return api_response
-class TestCaseGet(BaseApi):
+class V1TestCaseGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_case_get(
+ def v1_test_case_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -389,7 +389,7 @@ def test_case_get(
]: ...
@typing.overload
- def test_case_get(
+ def v1_test_case_get(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -399,7 +399,7 @@ def test_case_get(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_case_get(
+ def v1_test_case_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -411,7 +411,7 @@ def test_case_get(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_case_get(
+ def v1_test_case_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -419,7 +419,7 @@ def test_case_get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_get_oapg(
+ return self._v1_test_case_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -474,7 +474,7 @@ def get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_get_oapg(
+ return self._v1_test_case_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/test_case/get.pyi b/package/gentrace/paths/v1_test_case/get.pyi
similarity index 97%
rename from package/gentrace/paths/test_case/get.pyi
rename to package/gentrace/paths/v1_test_case/get.pyi
index 1e2ff05c..2faeca19 100644
--- a/package/gentrace/paths/test_case/get.pyi
+++ b/package/gentrace/paths/v1_test_case/get.pyi
@@ -264,7 +264,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _test_case_get_oapg(
+ def _v1_test_case_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -276,7 +276,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _test_case_get_oapg(
+ def _v1_test_case_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -286,7 +286,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_case_get_oapg(
+ def _v1_test_case_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -298,7 +298,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_case_get_oapg(
+ def _v1_test_case_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -363,11 +363,11 @@ class BaseApi(api_client.Api):
return api_response
-class TestCaseGet(BaseApi):
+class V1TestCaseGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_case_get(
+ def v1_test_case_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -379,7 +379,7 @@ class TestCaseGet(BaseApi):
]: ...
@typing.overload
- def test_case_get(
+ def v1_test_case_get(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -389,7 +389,7 @@ class TestCaseGet(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_case_get(
+ def v1_test_case_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -401,7 +401,7 @@ class TestCaseGet(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_case_get(
+ def v1_test_case_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -409,7 +409,7 @@ class TestCaseGet(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_get_oapg(
+ return self._v1_test_case_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -464,7 +464,7 @@ class ApiForget(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_get_oapg(
+ return self._v1_test_case_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/test_case/patch.py b/package/gentrace/paths/v1_test_case/patch.py
similarity index 97%
rename from package/gentrace/paths/test_case/patch.py
rename to package/gentrace/paths/v1_test_case/patch.py
index fb97f895..89c2ea97 100644
--- a/package/gentrace/paths/test_case/patch.py
+++ b/package/gentrace/paths/v1_test_case/patch.py
@@ -201,7 +201,7 @@ class ApiResponseFor500(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -214,7 +214,7 @@ def _test_case_patch_oapg(
]: ...
@typing.overload
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -228,7 +228,7 @@ def _test_case_patch_oapg(
@typing.overload
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
@@ -239,7 +239,7 @@ def _test_case_patch_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -252,7 +252,7 @@ def _test_case_patch_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
@@ -316,11 +316,11 @@ class instances
return api_response
-class TestCasePatch(BaseApi):
+class V1TestCasePatch(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -333,7 +333,7 @@ def test_case_patch(
]: ...
@typing.overload
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -347,7 +347,7 @@ def test_case_patch(
@typing.overload
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
@@ -358,7 +358,7 @@ def test_case_patch(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -371,7 +371,7 @@ def test_case_patch(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
@@ -380,7 +380,7 @@ def test_case_patch(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_patch_oapg(
+ return self._v1_test_case_patch_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -454,7 +454,7 @@ def patch(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_patch_oapg(
+ return self._v1_test_case_patch_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/test_case/patch.pyi b/package/gentrace/paths/v1_test_case/patch.pyi
similarity index 97%
rename from package/gentrace/paths/test_case/patch.pyi
rename to package/gentrace/paths/v1_test_case/patch.pyi
index a65cfc3b..bf36ab9e 100644
--- a/package/gentrace/paths/test_case/patch.pyi
+++ b/package/gentrace/paths/v1_test_case/patch.pyi
@@ -191,7 +191,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -204,7 +204,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -218,7 +218,7 @@ class BaseApi(api_client.Api):
@typing.overload
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
@@ -229,7 +229,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -242,7 +242,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_case_patch_oapg(
+ def _v1_test_case_patch_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
@@ -306,11 +306,11 @@ class BaseApi(api_client.Api):
return api_response
-class TestCasePatch(BaseApi):
+class V1TestCasePatch(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -323,7 +323,7 @@ class TestCasePatch(BaseApi):
]: ...
@typing.overload
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -337,7 +337,7 @@ class TestCasePatch(BaseApi):
@typing.overload
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
@@ -348,7 +348,7 @@ class TestCasePatch(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
@@ -361,7 +361,7 @@ class TestCasePatch(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_case_patch(
+ def v1_test_case_patch(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
@@ -370,7 +370,7 @@ class TestCasePatch(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_patch_oapg(
+ return self._v1_test_case_patch_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -444,7 +444,7 @@ class ApiForpatch(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_patch_oapg(
+ return self._v1_test_case_patch_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/test_case/post.py b/package/gentrace/paths/v1_test_case/post.py
similarity index 98%
rename from package/gentrace/paths/test_case/post.py
rename to package/gentrace/paths/v1_test_case/post.py
index bb614075..ab05d325 100644
--- a/package/gentrace/paths/test_case/post.py
+++ b/package/gentrace/paths/v1_test_case/post.py
@@ -412,7 +412,7 @@ class ApiResponseFor500(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -425,7 +425,7 @@ def _test_case_post_oapg(
]: ...
@typing.overload
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = ...,
@@ -439,7 +439,7 @@ def _test_case_post_oapg(
@typing.overload
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -450,7 +450,7 @@ def _test_case_post_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = ...,
@@ -463,7 +463,7 @@ def _test_case_post_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = 'application/json',
@@ -527,11 +527,11 @@ class instances
return api_response
-class TestCasePost(BaseApi):
+class V1TestCasePost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -544,7 +544,7 @@ def test_case_post(
]: ...
@typing.overload
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = ...,
@@ -558,7 +558,7 @@ def test_case_post(
@typing.overload
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -569,7 +569,7 @@ def test_case_post(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = ...,
@@ -582,7 +582,7 @@ def test_case_post(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = 'application/json',
@@ -591,7 +591,7 @@ def test_case_post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_post_oapg(
+ return self._v1_test_case_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -665,7 +665,7 @@ def post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_post_oapg(
+ return self._v1_test_case_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/test_case/post.pyi b/package/gentrace/paths/v1_test_case/post.pyi
similarity index 98%
rename from package/gentrace/paths/test_case/post.pyi
rename to package/gentrace/paths/v1_test_case/post.pyi
index 332e3a05..d518b6e3 100644
--- a/package/gentrace/paths/test_case/post.pyi
+++ b/package/gentrace/paths/v1_test_case/post.pyi
@@ -402,7 +402,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -415,7 +415,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = ...,
@@ -429,7 +429,7 @@ class BaseApi(api_client.Api):
@typing.overload
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -440,7 +440,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = ...,
@@ -453,7 +453,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_case_post_oapg(
+ def _v1_test_case_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = 'application/json',
@@ -517,11 +517,11 @@ class BaseApi(api_client.Api):
return api_response
-class TestCasePost(BaseApi):
+class V1TestCasePost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -534,7 +534,7 @@ class TestCasePost(BaseApi):
]: ...
@typing.overload
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = ...,
@@ -548,7 +548,7 @@ class TestCasePost(BaseApi):
@typing.overload
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -559,7 +559,7 @@ class TestCasePost(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = ...,
@@ -572,7 +572,7 @@ class TestCasePost(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_case_post(
+ def v1_test_case_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
content_type: str = 'application/json',
@@ -581,7 +581,7 @@ class TestCasePost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_post_oapg(
+ return self._v1_test_case_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -655,7 +655,7 @@ class ApiForpost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_case_post_oapg(
+ return self._v1_test_case_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/v1_test_result/__init__.py b/package/gentrace/paths/v1_test_result/__init__.py
new file mode 100644
index 00000000..984344ec
--- /dev/null
+++ b/package/gentrace/paths/v1_test_result/__init__.py
@@ -0,0 +1,7 @@
+# do not import all endpoints into this module because that uses a lot of memory and stack frames
+# if you need the ability to import all endpoints from this module, import them with
+# from gentrace.paths.v1_test_result import Api
+
+from gentrace.paths import PathValues
+
+path = PathValues.V1_TESTRESULT
\ No newline at end of file
diff --git a/package/gentrace/paths/test_result/get.py b/package/gentrace/paths/v1_test_result/get.py
similarity index 97%
rename from package/gentrace/paths/test_result/get.py
rename to package/gentrace/paths/v1_test_result/get.py
index b0c089f5..f4b6db82 100644
--- a/package/gentrace/paths/test_result/get.py
+++ b/package/gentrace/paths/v1_test_result/get.py
@@ -267,7 +267,7 @@ class ApiResponseFor404(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_get_oapg(
+ def _v1_test_result_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -279,7 +279,7 @@ def _test_result_get_oapg(
]: ...
@typing.overload
- def _test_result_get_oapg(
+ def _v1_test_result_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -289,7 +289,7 @@ def _test_result_get_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_get_oapg(
+ def _v1_test_result_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -301,7 +301,7 @@ def _test_result_get_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_get_oapg(
+ def _v1_test_result_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -365,11 +365,11 @@ class instances
return api_response
-class TestResultGet(BaseApi):
+class V1TestResultGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_get(
+ def v1_test_result_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -381,7 +381,7 @@ def test_result_get(
]: ...
@typing.overload
- def test_result_get(
+ def v1_test_result_get(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -391,7 +391,7 @@ def test_result_get(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_get(
+ def v1_test_result_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -403,7 +403,7 @@ def test_result_get(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_get(
+ def v1_test_result_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -411,7 +411,7 @@ def test_result_get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_get_oapg(
+ return self._v1_test_result_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -466,7 +466,7 @@ def get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_get_oapg(
+ return self._v1_test_result_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/test_result/get.pyi b/package/gentrace/paths/v1_test_result/get.pyi
similarity index 97%
rename from package/gentrace/paths/test_result/get.pyi
rename to package/gentrace/paths/v1_test_result/get.pyi
index de8c14d1..326ec762 100644
--- a/package/gentrace/paths/test_result/get.pyi
+++ b/package/gentrace/paths/v1_test_result/get.pyi
@@ -257,7 +257,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_get_oapg(
+ def _v1_test_result_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -269,7 +269,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _test_result_get_oapg(
+ def _v1_test_result_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -279,7 +279,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_get_oapg(
+ def _v1_test_result_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -291,7 +291,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_get_oapg(
+ def _v1_test_result_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -355,11 +355,11 @@ class BaseApi(api_client.Api):
return api_response
-class TestResultGet(BaseApi):
+class V1TestResultGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_get(
+ def v1_test_result_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -371,7 +371,7 @@ class TestResultGet(BaseApi):
]: ...
@typing.overload
- def test_result_get(
+ def v1_test_result_get(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -381,7 +381,7 @@ class TestResultGet(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_get(
+ def v1_test_result_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -393,7 +393,7 @@ class TestResultGet(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_get(
+ def v1_test_result_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -401,7 +401,7 @@ class TestResultGet(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_get_oapg(
+ return self._v1_test_result_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -456,7 +456,7 @@ class ApiForget(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_get_oapg(
+ return self._v1_test_result_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/test_result/post.py b/package/gentrace/paths/v1_test_result/post.py
similarity index 98%
rename from package/gentrace/paths/test_result/post.py
rename to package/gentrace/paths/v1_test_result/post.py
index c3b86965..e9e9edda 100644
--- a/package/gentrace/paths/test_result/post.py
+++ b/package/gentrace/paths/v1_test_result/post.py
@@ -614,7 +614,7 @@ class ApiResponseFor200(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -627,7 +627,7 @@ def _test_result_post_oapg(
]: ...
@typing.overload
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -641,7 +641,7 @@ def _test_result_post_oapg(
@typing.overload
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -652,7 +652,7 @@ def _test_result_post_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -665,7 +665,7 @@ def _test_result_post_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = 'application/json',
@@ -729,11 +729,11 @@ class instances
return api_response
-class TestResultPost(BaseApi):
+class V1TestResultPost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -746,7 +746,7 @@ def test_result_post(
]: ...
@typing.overload
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -760,7 +760,7 @@ def test_result_post(
@typing.overload
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -771,7 +771,7 @@ def test_result_post(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -784,7 +784,7 @@ def test_result_post(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = 'application/json',
@@ -793,7 +793,7 @@ def test_result_post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_post_oapg(
+ return self._v1_test_result_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -867,7 +867,7 @@ def post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_post_oapg(
+ return self._v1_test_result_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/test_result/post.pyi b/package/gentrace/paths/v1_test_result/post.pyi
similarity index 98%
rename from package/gentrace/paths/test_result/post.pyi
rename to package/gentrace/paths/v1_test_result/post.pyi
index c0423c3a..2791aa75 100644
--- a/package/gentrace/paths/test_result/post.pyi
+++ b/package/gentrace/paths/v1_test_result/post.pyi
@@ -599,7 +599,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -612,7 +612,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -626,7 +626,7 @@ class BaseApi(api_client.Api):
@typing.overload
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -637,7 +637,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -650,7 +650,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_post_oapg(
+ def _v1_test_result_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = 'application/json',
@@ -714,11 +714,11 @@ class BaseApi(api_client.Api):
return api_response
-class TestResultPost(BaseApi):
+class V1TestResultPost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -731,7 +731,7 @@ class TestResultPost(BaseApi):
]: ...
@typing.overload
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -745,7 +745,7 @@ class TestResultPost(BaseApi):
@typing.overload
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -756,7 +756,7 @@ class TestResultPost(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -769,7 +769,7 @@ class TestResultPost(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_post(
+ def v1_test_result_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = 'application/json',
@@ -778,7 +778,7 @@ class TestResultPost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_post_oapg(
+ return self._v1_test_result_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -852,7 +852,7 @@ class ApiForpost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_post_oapg(
+ return self._v1_test_result_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/v1_test_result_id/__init__.py b/package/gentrace/paths/v1_test_result_id/__init__.py
new file mode 100644
index 00000000..ee60a0b6
--- /dev/null
+++ b/package/gentrace/paths/v1_test_result_id/__init__.py
@@ -0,0 +1,7 @@
+# do not import all endpoints into this module because that uses a lot of memory and stack frames
+# if you need the ability to import all endpoints from this module, import them with
+# from gentrace.paths.v1_test_result_id import Api
+
+from gentrace.paths import PathValues
+
+path = PathValues.V1_TESTRESULT_ID
\ No newline at end of file
diff --git a/package/gentrace/paths/test_result_id/get.py b/package/gentrace/paths/v1_test_result_id/get.py
similarity index 96%
rename from package/gentrace/paths/test_result_id/get.py
rename to package/gentrace/paths/v1_test_result_id/get.py
index 5ebe0967..850d5b61 100644
--- a/package/gentrace/paths/test_result_id/get.py
+++ b/package/gentrace/paths/v1_test_result_id/get.py
@@ -131,7 +131,7 @@ class ApiResponseFor500(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_id_get_oapg(
+ def _v1_test_result_id_get_oapg(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -143,7 +143,7 @@ def _test_result_id_get_oapg(
]: ...
@typing.overload
- def _test_result_id_get_oapg(
+ def _v1_test_result_id_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
path_params: RequestPathParams = frozendict.frozendict(),
@@ -153,7 +153,7 @@ def _test_result_id_get_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_id_get_oapg(
+ def _v1_test_result_id_get_oapg(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -165,7 +165,7 @@ def _test_result_id_get_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_id_get_oapg(
+ def _v1_test_result_id_get_oapg(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -229,11 +229,11 @@ class instances
return api_response
-class TestResultIdGet(BaseApi):
+class V1TestResultIdGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_id_get(
+ def v1_test_result_id_get(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -245,7 +245,7 @@ def test_result_id_get(
]: ...
@typing.overload
- def test_result_id_get(
+ def v1_test_result_id_get(
self,
skip_deserialization: typing_extensions.Literal[True],
path_params: RequestPathParams = frozendict.frozendict(),
@@ -255,7 +255,7 @@ def test_result_id_get(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_id_get(
+ def v1_test_result_id_get(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -267,7 +267,7 @@ def test_result_id_get(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_id_get(
+ def v1_test_result_id_get(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -275,7 +275,7 @@ def test_result_id_get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_id_get_oapg(
+ return self._v1_test_result_id_get_oapg(
path_params=path_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -330,7 +330,7 @@ def get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_id_get_oapg(
+ return self._v1_test_result_id_get_oapg(
path_params=path_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/test_result_id/get.pyi b/package/gentrace/paths/v1_test_result_id/get.pyi
similarity index 96%
rename from package/gentrace/paths/test_result_id/get.pyi
rename to package/gentrace/paths/v1_test_result_id/get.pyi
index 791fc7fe..6f5598a4 100644
--- a/package/gentrace/paths/test_result_id/get.pyi
+++ b/package/gentrace/paths/v1_test_result_id/get.pyi
@@ -120,7 +120,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_id_get_oapg(
+ def _v1_test_result_id_get_oapg(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -132,7 +132,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _test_result_id_get_oapg(
+ def _v1_test_result_id_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
path_params: RequestPathParams = frozendict.frozendict(),
@@ -142,7 +142,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_id_get_oapg(
+ def _v1_test_result_id_get_oapg(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -154,7 +154,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_id_get_oapg(
+ def _v1_test_result_id_get_oapg(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -218,11 +218,11 @@ class BaseApi(api_client.Api):
return api_response
-class TestResultIdGet(BaseApi):
+class V1TestResultIdGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_id_get(
+ def v1_test_result_id_get(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -234,7 +234,7 @@ class TestResultIdGet(BaseApi):
]: ...
@typing.overload
- def test_result_id_get(
+ def v1_test_result_id_get(
self,
skip_deserialization: typing_extensions.Literal[True],
path_params: RequestPathParams = frozendict.frozendict(),
@@ -244,7 +244,7 @@ class TestResultIdGet(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_id_get(
+ def v1_test_result_id_get(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -256,7 +256,7 @@ class TestResultIdGet(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_id_get(
+ def v1_test_result_id_get(
self,
path_params: RequestPathParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -264,7 +264,7 @@ class TestResultIdGet(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_id_get_oapg(
+ return self._v1_test_result_id_get_oapg(
path_params=path_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -319,7 +319,7 @@ class ApiForget(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_id_get_oapg(
+ return self._v1_test_result_id_get_oapg(
path_params=path_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/v1_test_result_simple/__init__.py b/package/gentrace/paths/v1_test_result_simple/__init__.py
new file mode 100644
index 00000000..04690810
--- /dev/null
+++ b/package/gentrace/paths/v1_test_result_simple/__init__.py
@@ -0,0 +1,7 @@
+# do not import all endpoints into this module because that uses a lot of memory and stack frames
+# if you need the ability to import all endpoints from this module, import them with
+# from gentrace.paths.v1_test_result_simple import Api
+
+from gentrace.paths import PathValues
+
+path = PathValues.V1_TESTRESULTSIMPLE
\ No newline at end of file
diff --git a/package/gentrace/paths/test_result_simple/post.py b/package/gentrace/paths/v1_test_result_simple/post.py
similarity index 98%
rename from package/gentrace/paths/test_result_simple/post.py
rename to package/gentrace/paths/v1_test_result_simple/post.py
index 65e087d4..83882396 100644
--- a/package/gentrace/paths/test_result_simple/post.py
+++ b/package/gentrace/paths/v1_test_result_simple/post.py
@@ -571,7 +571,7 @@ class ApiResponseFor200(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -584,7 +584,7 @@ def _test_result_simple_post_oapg(
]: ...
@typing.overload
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -598,7 +598,7 @@ def _test_result_simple_post_oapg(
@typing.overload
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -609,7 +609,7 @@ def _test_result_simple_post_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -622,7 +622,7 @@ def _test_result_simple_post_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = 'application/json',
@@ -686,11 +686,11 @@ class instances
return api_response
-class TestResultSimplePost(BaseApi):
+class V1TestResultSimplePost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -703,7 +703,7 @@ def test_result_simple_post(
]: ...
@typing.overload
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -717,7 +717,7 @@ def test_result_simple_post(
@typing.overload
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -728,7 +728,7 @@ def test_result_simple_post(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -741,7 +741,7 @@ def test_result_simple_post(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = 'application/json',
@@ -750,7 +750,7 @@ def test_result_simple_post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_simple_post_oapg(
+ return self._v1_test_result_simple_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -824,7 +824,7 @@ def post(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_simple_post_oapg(
+ return self._v1_test_result_simple_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/test_result_simple/post.pyi b/package/gentrace/paths/v1_test_result_simple/post.pyi
similarity index 98%
rename from package/gentrace/paths/test_result_simple/post.pyi
rename to package/gentrace/paths/v1_test_result_simple/post.pyi
index 07ef8e2e..e925e1ee 100644
--- a/package/gentrace/paths/test_result_simple/post.pyi
+++ b/package/gentrace/paths/v1_test_result_simple/post.pyi
@@ -563,7 +563,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -576,7 +576,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -590,7 +590,7 @@ class BaseApi(api_client.Api):
@typing.overload
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -601,7 +601,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -614,7 +614,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_simple_post_oapg(
+ def _v1_test_result_simple_post_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = 'application/json',
@@ -678,11 +678,11 @@ class BaseApi(api_client.Api):
return api_response
-class TestResultSimplePost(BaseApi):
+class V1TestResultSimplePost(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: typing_extensions.Literal["application/json"] = ...,
@@ -695,7 +695,7 @@ class TestResultSimplePost(BaseApi):
]: ...
@typing.overload
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -709,7 +709,7 @@ class TestResultSimplePost(BaseApi):
@typing.overload
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
skip_deserialization: typing_extensions.Literal[True],
@@ -720,7 +720,7 @@ class TestResultSimplePost(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = ...,
@@ -733,7 +733,7 @@ class TestResultSimplePost(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_simple_post(
+ def v1_test_result_simple_post(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
content_type: str = 'application/json',
@@ -742,7 +742,7 @@ class TestResultSimplePost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_simple_post_oapg(
+ return self._v1_test_result_simple_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
@@ -816,7 +816,7 @@ class ApiForpost(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_simple_post_oapg(
+ return self._v1_test_result_simple_post_oapg(
body=body,
content_type=content_type,
accept_content_types=accept_content_types,
diff --git a/package/gentrace/paths/v1_test_result_status/__init__.py b/package/gentrace/paths/v1_test_result_status/__init__.py
new file mode 100644
index 00000000..7174a088
--- /dev/null
+++ b/package/gentrace/paths/v1_test_result_status/__init__.py
@@ -0,0 +1,7 @@
+# do not import all endpoints into this module because that uses a lot of memory and stack frames
+# if you need the ability to import all endpoints from this module, import them with
+# from gentrace.paths.v1_test_result_status import Api
+
+from gentrace.paths import PathValues
+
+path = PathValues.V1_TESTRESULT_STATUS
\ No newline at end of file
diff --git a/package/gentrace/paths/test_result_status/get.py b/package/gentrace/paths/v1_test_result_status/get.py
similarity index 97%
rename from package/gentrace/paths/test_result_status/get.py
rename to package/gentrace/paths/v1_test_result_status/get.py
index 07a99a76..8c46391e 100644
--- a/package/gentrace/paths/test_result_status/get.py
+++ b/package/gentrace/paths/v1_test_result_status/get.py
@@ -272,7 +272,7 @@ class ApiResponseFor200(api_client.ApiResponse):
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_status_get_oapg(
+ def _v1_test_result_status_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -284,7 +284,7 @@ def _test_result_status_get_oapg(
]: ...
@typing.overload
- def _test_result_status_get_oapg(
+ def _v1_test_result_status_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -294,7 +294,7 @@ def _test_result_status_get_oapg(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_status_get_oapg(
+ def _v1_test_result_status_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -306,7 +306,7 @@ def _test_result_status_get_oapg(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_status_get_oapg(
+ def _v1_test_result_status_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -370,11 +370,11 @@ class instances
return api_response
-class TestResultStatusGet(BaseApi):
+class V1TestResultStatusGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_status_get(
+ def v1_test_result_status_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -386,7 +386,7 @@ def test_result_status_get(
]: ...
@typing.overload
- def test_result_status_get(
+ def v1_test_result_status_get(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -396,7 +396,7 @@ def test_result_status_get(
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_status_get(
+ def v1_test_result_status_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -408,7 +408,7 @@ def test_result_status_get(
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_status_get(
+ def v1_test_result_status_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -416,7 +416,7 @@ def test_result_status_get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_status_get_oapg(
+ return self._v1_test_result_status_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -471,7 +471,7 @@ def get(
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_status_get_oapg(
+ return self._v1_test_result_status_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/test_result_status/get.pyi b/package/gentrace/paths/v1_test_result_status/get.pyi
similarity index 97%
rename from package/gentrace/paths/test_result_status/get.pyi
rename to package/gentrace/paths/v1_test_result_status/get.pyi
index cfdf6287..60ad14b7 100644
--- a/package/gentrace/paths/test_result_status/get.pyi
+++ b/package/gentrace/paths/v1_test_result_status/get.pyi
@@ -264,7 +264,7 @@ _all_accept_content_types = (
class BaseApi(api_client.Api):
@typing.overload
- def _test_result_status_get_oapg(
+ def _v1_test_result_status_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -276,7 +276,7 @@ class BaseApi(api_client.Api):
]: ...
@typing.overload
- def _test_result_status_get_oapg(
+ def _v1_test_result_status_get_oapg(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -286,7 +286,7 @@ class BaseApi(api_client.Api):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def _test_result_status_get_oapg(
+ def _v1_test_result_status_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -298,7 +298,7 @@ class BaseApi(api_client.Api):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def _test_result_status_get_oapg(
+ def _v1_test_result_status_get_oapg(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -362,11 +362,11 @@ class BaseApi(api_client.Api):
return api_response
-class TestResultStatusGet(BaseApi):
+class V1TestResultStatusGet(BaseApi):
# this class is used by api classes that refer to endpoints with operationId fn names
@typing.overload
- def test_result_status_get(
+ def v1_test_result_status_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -378,7 +378,7 @@ class TestResultStatusGet(BaseApi):
]: ...
@typing.overload
- def test_result_status_get(
+ def v1_test_result_status_get(
self,
skip_deserialization: typing_extensions.Literal[True],
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -388,7 +388,7 @@ class TestResultStatusGet(BaseApi):
) -> api_client.ApiResponseWithoutDeserialization: ...
@typing.overload
- def test_result_status_get(
+ def v1_test_result_status_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -400,7 +400,7 @@ class TestResultStatusGet(BaseApi):
api_client.ApiResponseWithoutDeserialization,
]: ...
- def test_result_status_get(
+ def v1_test_result_status_get(
self,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -408,7 +408,7 @@ class TestResultStatusGet(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_status_get_oapg(
+ return self._v1_test_result_status_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
@@ -463,7 +463,7 @@ class ApiForget(BaseApi):
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
- return self._test_result_status_get_oapg(
+ return self._v1_test_result_status_get_oapg(
query_params=query_params,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/package/gentrace/paths/pipelines/__init__.py b/package/gentrace/paths/v2_pipelines/__init__.py
similarity index 74%
rename from package/gentrace/paths/pipelines/__init__.py
rename to package/gentrace/paths/v2_pipelines/__init__.py
index 46c23d45..7ab0d621 100644
--- a/package/gentrace/paths/pipelines/__init__.py
+++ b/package/gentrace/paths/v2_pipelines/__init__.py
@@ -1,7 +1,7 @@
# do not import all endpoints into this module because that uses a lot of memory and stack frames
# if you need the ability to import all endpoints from this module, import them with
-# from gentrace.paths.pipelines import Api
+# from gentrace.paths.v2_pipelines import Api
from gentrace.paths import PathValues
-path = PathValues.PIPELINES
\ No newline at end of file
+path = PathValues.V2_PIPELINES
\ No newline at end of file
diff --git a/package/gentrace/paths/v2_pipelines/get.py b/package/gentrace/paths/v2_pipelines/get.py
new file mode 100644
index 00000000..86b1f4ff
--- /dev/null
+++ b/package/gentrace/paths/v2_pipelines/get.py
@@ -0,0 +1,471 @@
+# coding: utf-8
+
+"""
+
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from dataclasses import dataclass
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+import urllib3
+from urllib3._collections import HTTPHeaderDict
+
+from gentrace import (
+ api_client,
+ exceptions,
+ schemas, # noqa: F401
+)
+from gentrace.model.pipeline_v2 import PipelineV2
+
+from . import path
+
+# Query params
+LabelSchema = schemas.StrSchema
+SlugSchema = schemas.StrSchema
+RequestRequiredQueryParams = typing_extensions.TypedDict(
+ 'RequestRequiredQueryParams',
+ {
+ }
+)
+RequestOptionalQueryParams = typing_extensions.TypedDict(
+ 'RequestOptionalQueryParams',
+ {
+ 'label': typing.Union[LabelSchema, str, ],
+ 'slug': typing.Union[SlugSchema, str, ],
+ },
+ total=False
+)
+
+
+class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
+ pass
+
+
+request_query_label = api_client.QueryParameter(
+ name="label",
+ style=api_client.ParameterStyle.FORM,
+ schema=LabelSchema,
+ explode=True,
+)
+request_query_slug = api_client.QueryParameter(
+ name="slug",
+ style=api_client.ParameterStyle.FORM,
+ schema=SlugSchema,
+ explode=True,
+)
+_auth = [
+ 'bearerAuth',
+]
+
+
+class SchemaFor200ResponseBodyApplicationJson(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['PipelineV2']:
+ return PipelineV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['PipelineV2'], typing.List['PipelineV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'PipelineV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJson':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+class SchemaFor200ResponseBodyApplicationJsonCharsetutf8(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class pipelines(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['PipelineV2']:
+ return PipelineV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['PipelineV2'], typing.List['PipelineV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'pipelines':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'PipelineV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "pipelines": pipelines,
+ }
+
+ data: schemas.AnyTypeSchema
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["pipelines"]) -> MetaOapg.properties.pipelines: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["pipelines", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["pipelines"]) -> typing.Union[MetaOapg.properties.pipelines, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pipelines", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ pipelines: typing.Union[MetaOapg.properties.pipelines, list, tuple, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJsonCharsetutf8':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ pipelines=pipelines,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+@dataclass
+class ApiResponseFor200(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor200ResponseBodyApplicationJson,
+ SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_200 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor200,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJson),
+ 'application/json; charset=utf-8': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
+ },
+)
+_status_code_to_response = {
+ '200': _response_for_200,
+}
+_all_accept_content_types = (
+ 'application/json',
+ 'application/json; charset=utf-8',
+)
+
+
+class BaseApi(api_client.Api):
+ @typing.overload
+ def _v2_pipelines_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def _v2_pipelines_get_oapg(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def _v2_pipelines_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def _v2_pipelines_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ """
+ Get pipelines, optionally filtered by label
+ :param skip_deserialization: If true then api_response.response will be set but
+ api_response.body and api_response.headers will not be deserialized into schema
+ class instances
+ """
+ self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
+ used_path = path.value
+
+ prefix_separator_iterator = None
+ for parameter in (
+ request_query_label,
+ request_query_slug,
+ ):
+ parameter_data = query_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ if prefix_separator_iterator is None:
+ prefix_separator_iterator = parameter.get_prefix_separator_iterator()
+ serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
+ for serialized_value in serialized_data.values():
+ used_path += serialized_value
+
+ _headers = HTTPHeaderDict()
+ # TODO add cookie handling
+ if accept_content_types:
+ for accept_content_type in accept_content_types:
+ _headers.add('Accept', accept_content_type)
+
+ response = self.api_client.call_api(
+ resource_path=used_path,
+ method='get'.upper(),
+ headers=_headers,
+ auth_settings=_auth,
+ stream=stream,
+ timeout=timeout,
+ )
+
+ if skip_deserialization:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+ else:
+ response_for_status = _status_code_to_response.get(str(response.status))
+ if response_for_status:
+ api_response = response_for_status.deserialize(response, self.api_client.configuration)
+ else:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+
+ if not 200 <= response.status <= 299:
+ raise exceptions.ApiException(
+ status=response.status,
+ reason=response.reason,
+ api_response=api_response
+ )
+
+ return api_response
+
+
+class V2PipelinesGet(BaseApi):
+ # this class is used by api classes that refer to endpoints with operationId fn names
+
+ @typing.overload
+ def v2_pipelines_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def v2_pipelines_get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def v2_pipelines_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def v2_pipelines_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_pipelines_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
+class ApiForget(BaseApi):
+ # this class is used by api classes that refer to endpoints by path and http method names
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_pipelines_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
diff --git a/package/gentrace/paths/v2_pipelines/get.pyi b/package/gentrace/paths/v2_pipelines/get.pyi
new file mode 100644
index 00000000..9fc6f8c1
--- /dev/null
+++ b/package/gentrace/paths/v2_pipelines/get.pyi
@@ -0,0 +1,463 @@
+# coding: utf-8
+
+"""
+
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from dataclasses import dataclass
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+import urllib3
+from urllib3._collections import HTTPHeaderDict
+
+from gentrace import (
+ api_client,
+ exceptions,
+ schemas, # noqa: F401
+)
+from gentrace.model.pipeline_v2 import PipelineV2
+
+# Query params
+LabelSchema = schemas.StrSchema
+SlugSchema = schemas.StrSchema
+RequestRequiredQueryParams = typing_extensions.TypedDict(
+ 'RequestRequiredQueryParams',
+ {
+ }
+)
+RequestOptionalQueryParams = typing_extensions.TypedDict(
+ 'RequestOptionalQueryParams',
+ {
+ 'label': typing.Union[LabelSchema, str, ],
+ 'slug': typing.Union[SlugSchema, str, ],
+ },
+ total=False
+)
+
+
+class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
+ pass
+
+
+request_query_label = api_client.QueryParameter(
+ name="label",
+ style=api_client.ParameterStyle.FORM,
+ schema=LabelSchema,
+ explode=True,
+)
+request_query_slug = api_client.QueryParameter(
+ name="slug",
+ style=api_client.ParameterStyle.FORM,
+ schema=SlugSchema,
+ explode=True,
+)
+
+
+class SchemaFor200ResponseBodyApplicationJson(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['PipelineV2']:
+ return PipelineV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['PipelineV2'], typing.List['PipelineV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'PipelineV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJson':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+class SchemaFor200ResponseBodyApplicationJsonCharsetutf8(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class pipelines(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['PipelineV2']:
+ return PipelineV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['PipelineV2'], typing.List['PipelineV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'pipelines':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'PipelineV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "pipelines": pipelines,
+ }
+
+ data: schemas.AnyTypeSchema
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["pipelines"]) -> MetaOapg.properties.pipelines: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["pipelines", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["pipelines"]) -> typing.Union[MetaOapg.properties.pipelines, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pipelines", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
+ pipelines: typing.Union[MetaOapg.properties.pipelines, list, tuple, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJsonCharsetutf8':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ pipelines=pipelines,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+@dataclass
+class ApiResponseFor200(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor200ResponseBodyApplicationJson,
+ SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_200 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor200,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJson),
+ 'application/json; charset=utf-8': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
+ },
+)
+_all_accept_content_types = (
+ 'application/json',
+ 'application/json; charset=utf-8',
+)
+
+
+class BaseApi(api_client.Api):
+ @typing.overload
+ def _v2_pipelines_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def _v2_pipelines_get_oapg(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def _v2_pipelines_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def _v2_pipelines_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ """
+ Get pipelines, optionally filtered by label
+ :param skip_deserialization: If true then api_response.response will be set but
+ api_response.body and api_response.headers will not be deserialized into schema
+ class instances
+ """
+ self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
+ used_path = path.value
+
+ prefix_separator_iterator = None
+ for parameter in (
+ request_query_label,
+ request_query_slug,
+ ):
+ parameter_data = query_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ if prefix_separator_iterator is None:
+ prefix_separator_iterator = parameter.get_prefix_separator_iterator()
+ serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
+ for serialized_value in serialized_data.values():
+ used_path += serialized_value
+
+ _headers = HTTPHeaderDict()
+ # TODO add cookie handling
+ if accept_content_types:
+ for accept_content_type in accept_content_types:
+ _headers.add('Accept', accept_content_type)
+
+ response = self.api_client.call_api(
+ resource_path=used_path,
+ method='get'.upper(),
+ headers=_headers,
+ auth_settings=_auth,
+ stream=stream,
+ timeout=timeout,
+ )
+
+ if skip_deserialization:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+ else:
+ response_for_status = _status_code_to_response.get(str(response.status))
+ if response_for_status:
+ api_response = response_for_status.deserialize(response, self.api_client.configuration)
+ else:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+
+ if not 200 <= response.status <= 299:
+ raise exceptions.ApiException(
+ status=response.status,
+ reason=response.reason,
+ api_response=api_response
+ )
+
+ return api_response
+
+
+class V2PipelinesGet(BaseApi):
+ # this class is used by api classes that refer to endpoints with operationId fn names
+
+ @typing.overload
+ def v2_pipelines_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def v2_pipelines_get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def v2_pipelines_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def v2_pipelines_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_pipelines_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
+class ApiForget(BaseApi):
+ # this class is used by api classes that refer to endpoints by path and http method names
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_pipelines_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
diff --git a/package/gentrace/paths/test_case/__init__.py b/package/gentrace/paths/v2_test_cases/__init__.py
similarity index 74%
rename from package/gentrace/paths/test_case/__init__.py
rename to package/gentrace/paths/v2_test_cases/__init__.py
index 9a921a8f..027aa08a 100644
--- a/package/gentrace/paths/test_case/__init__.py
+++ b/package/gentrace/paths/v2_test_cases/__init__.py
@@ -1,7 +1,7 @@
# do not import all endpoints into this module because that uses a lot of memory and stack frames
# if you need the ability to import all endpoints from this module, import them with
-# from gentrace.paths.test_case import Api
+# from gentrace.paths.v2_test_cases import Api
from gentrace.paths import PathValues
-path = PathValues.TESTCASE
\ No newline at end of file
+path = PathValues.V2_TESTCASES
\ No newline at end of file
diff --git a/package/gentrace/paths/v2_test_cases/get.py b/package/gentrace/paths/v2_test_cases/get.py
new file mode 100644
index 00000000..d5ff6a35
--- /dev/null
+++ b/package/gentrace/paths/v2_test_cases/get.py
@@ -0,0 +1,469 @@
+# coding: utf-8
+
+"""
+
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from dataclasses import dataclass
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+import urllib3
+from urllib3._collections import HTTPHeaderDict
+
+from gentrace import (
+ api_client,
+ exceptions,
+ schemas, # noqa: F401
+)
+from gentrace.model.test_case_v2 import TestCaseV2
+
+from . import path
+
+# Query params
+PipelineIdSchema = schemas.UUIDSchema
+PipelineSlugSchema = schemas.StrSchema
+RequestRequiredQueryParams = typing_extensions.TypedDict(
+ 'RequestRequiredQueryParams',
+ {
+ }
+)
+RequestOptionalQueryParams = typing_extensions.TypedDict(
+ 'RequestOptionalQueryParams',
+ {
+ 'pipelineId': typing.Union[PipelineIdSchema, str, uuid.UUID, ],
+ 'pipelineSlug': typing.Union[PipelineSlugSchema, str, ],
+ },
+ total=False
+)
+
+
+class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
+ pass
+
+
+request_query_pipeline_id = api_client.QueryParameter(
+ name="pipelineId",
+ style=api_client.ParameterStyle.FORM,
+ schema=PipelineIdSchema,
+ explode=True,
+)
+request_query_pipeline_slug = api_client.QueryParameter(
+ name="pipelineSlug",
+ style=api_client.ParameterStyle.FORM,
+ schema=PipelineSlugSchema,
+ explode=True,
+)
+_auth = [
+ 'bearerAuth',
+]
+
+
+class SchemaFor200ResponseBodyApplicationJson(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['TestCaseV2']:
+ return TestCaseV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['TestCaseV2'], typing.List['TestCaseV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'TestCaseV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJson':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+class SchemaFor200ResponseBodyApplicationJsonCharsetutf8(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['TestCaseV2']:
+ return TestCaseV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['TestCaseV2'], typing.List['TestCaseV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'TestCaseV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJsonCharsetutf8':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+@dataclass
+class ApiResponseFor200(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor200ResponseBodyApplicationJson,
+ SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_200 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor200,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJson),
+ 'application/json; charset=utf-8': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
+ },
+)
+_status_code_to_response = {
+ '200': _response_for_200,
+}
+_all_accept_content_types = (
+ 'application/json',
+ 'application/json; charset=utf-8',
+)
+
+
+class BaseApi(api_client.Api):
+ @typing.overload
+ def _v2_test_cases_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def _v2_test_cases_get_oapg(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def _v2_test_cases_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def _v2_test_cases_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ """
+ Get test cases for a pipeline
+ :param skip_deserialization: If true then api_response.response will be set but
+ api_response.body and api_response.headers will not be deserialized into schema
+ class instances
+ """
+ self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
+ used_path = path.value
+
+ prefix_separator_iterator = None
+ for parameter in (
+ request_query_pipeline_id,
+ request_query_pipeline_slug,
+ ):
+ parameter_data = query_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ if prefix_separator_iterator is None:
+ prefix_separator_iterator = parameter.get_prefix_separator_iterator()
+ serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
+ for serialized_value in serialized_data.values():
+ used_path += serialized_value
+
+ _headers = HTTPHeaderDict()
+ # TODO add cookie handling
+ if accept_content_types:
+ for accept_content_type in accept_content_types:
+ _headers.add('Accept', accept_content_type)
+
+ response = self.api_client.call_api(
+ resource_path=used_path,
+ method='get'.upper(),
+ headers=_headers,
+ auth_settings=_auth,
+ stream=stream,
+ timeout=timeout,
+ )
+
+ if skip_deserialization:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+ else:
+ response_for_status = _status_code_to_response.get(str(response.status))
+ if response_for_status:
+ api_response = response_for_status.deserialize(response, self.api_client.configuration)
+ else:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+
+ if not 200 <= response.status <= 299:
+ raise exceptions.ApiException(
+ status=response.status,
+ reason=response.reason,
+ api_response=api_response
+ )
+
+ return api_response
+
+
+class V2TestCasesGet(BaseApi):
+ # this class is used by api classes that refer to endpoints with operationId fn names
+
+ @typing.overload
+ def v2_test_cases_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def v2_test_cases_get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def v2_test_cases_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def v2_test_cases_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_test_cases_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
+class ApiForget(BaseApi):
+ # this class is used by api classes that refer to endpoints by path and http method names
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_test_cases_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
diff --git a/package/gentrace/paths/v2_test_cases/get.pyi b/package/gentrace/paths/v2_test_cases/get.pyi
new file mode 100644
index 00000000..ee106255
--- /dev/null
+++ b/package/gentrace/paths/v2_test_cases/get.pyi
@@ -0,0 +1,461 @@
+# coding: utf-8
+
+"""
+
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from dataclasses import dataclass
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+import urllib3
+from urllib3._collections import HTTPHeaderDict
+
+from gentrace import (
+ api_client,
+ exceptions,
+ schemas, # noqa: F401
+)
+from gentrace.model.test_case_v2 import TestCaseV2
+
+# Query params
+PipelineIdSchema = schemas.UUIDSchema
+PipelineSlugSchema = schemas.StrSchema
+RequestRequiredQueryParams = typing_extensions.TypedDict(
+ 'RequestRequiredQueryParams',
+ {
+ }
+)
+RequestOptionalQueryParams = typing_extensions.TypedDict(
+ 'RequestOptionalQueryParams',
+ {
+ 'pipelineId': typing.Union[PipelineIdSchema, str, uuid.UUID, ],
+ 'pipelineSlug': typing.Union[PipelineSlugSchema, str, ],
+ },
+ total=False
+)
+
+
+class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
+ pass
+
+
+request_query_pipeline_id = api_client.QueryParameter(
+ name="pipelineId",
+ style=api_client.ParameterStyle.FORM,
+ schema=PipelineIdSchema,
+ explode=True,
+)
+request_query_pipeline_slug = api_client.QueryParameter(
+ name="pipelineSlug",
+ style=api_client.ParameterStyle.FORM,
+ schema=PipelineSlugSchema,
+ explode=True,
+)
+
+
+class SchemaFor200ResponseBodyApplicationJson(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['TestCaseV2']:
+ return TestCaseV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['TestCaseV2'], typing.List['TestCaseV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'TestCaseV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJson':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+class SchemaFor200ResponseBodyApplicationJsonCharsetutf8(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['TestCaseV2']:
+ return TestCaseV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['TestCaseV2'], typing.List['TestCaseV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'TestCaseV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJsonCharsetutf8':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+@dataclass
+class ApiResponseFor200(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor200ResponseBodyApplicationJson,
+ SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_200 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor200,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJson),
+ 'application/json; charset=utf-8': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
+ },
+)
+_all_accept_content_types = (
+ 'application/json',
+ 'application/json; charset=utf-8',
+)
+
+
+class BaseApi(api_client.Api):
+ @typing.overload
+ def _v2_test_cases_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def _v2_test_cases_get_oapg(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def _v2_test_cases_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def _v2_test_cases_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ """
+ Get test cases for a pipeline
+ :param skip_deserialization: If true then api_response.response will be set but
+ api_response.body and api_response.headers will not be deserialized into schema
+ class instances
+ """
+ self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
+ used_path = path.value
+
+ prefix_separator_iterator = None
+ for parameter in (
+ request_query_pipeline_id,
+ request_query_pipeline_slug,
+ ):
+ parameter_data = query_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ if prefix_separator_iterator is None:
+ prefix_separator_iterator = parameter.get_prefix_separator_iterator()
+ serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
+ for serialized_value in serialized_data.values():
+ used_path += serialized_value
+
+ _headers = HTTPHeaderDict()
+ # TODO add cookie handling
+ if accept_content_types:
+ for accept_content_type in accept_content_types:
+ _headers.add('Accept', accept_content_type)
+
+ response = self.api_client.call_api(
+ resource_path=used_path,
+ method='get'.upper(),
+ headers=_headers,
+ auth_settings=_auth,
+ stream=stream,
+ timeout=timeout,
+ )
+
+ if skip_deserialization:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+ else:
+ response_for_status = _status_code_to_response.get(str(response.status))
+ if response_for_status:
+ api_response = response_for_status.deserialize(response, self.api_client.configuration)
+ else:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+
+ if not 200 <= response.status <= 299:
+ raise exceptions.ApiException(
+ status=response.status,
+ reason=response.reason,
+ api_response=api_response
+ )
+
+ return api_response
+
+
+class V2TestCasesGet(BaseApi):
+ # this class is used by api classes that refer to endpoints with operationId fn names
+
+ @typing.overload
+ def v2_test_cases_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def v2_test_cases_get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def v2_test_cases_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def v2_test_cases_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_test_cases_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
+class ApiForget(BaseApi):
+ # this class is used by api classes that refer to endpoints by path and http method names
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_test_cases_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
diff --git a/package/gentrace/paths/v2_test_results/__init__.py b/package/gentrace/paths/v2_test_results/__init__.py
new file mode 100644
index 00000000..fa94834c
--- /dev/null
+++ b/package/gentrace/paths/v2_test_results/__init__.py
@@ -0,0 +1,7 @@
+# do not import all endpoints into this module because that uses a lot of memory and stack frames
+# if you need the ability to import all endpoints from this module, import them with
+# from gentrace.paths.v2_test_results import Api
+
+from gentrace.paths import PathValues
+
+path = PathValues.V2_TESTRESULTS
\ No newline at end of file
diff --git a/package/gentrace/paths/v2_test_results/get.py b/package/gentrace/paths/v2_test_results/get.py
new file mode 100644
index 00000000..deebefce
--- /dev/null
+++ b/package/gentrace/paths/v2_test_results/get.py
@@ -0,0 +1,489 @@
+# coding: utf-8
+
+"""
+
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from dataclasses import dataclass
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+import urllib3
+from urllib3._collections import HTTPHeaderDict
+
+from gentrace import (
+ api_client,
+ exceptions,
+ schemas, # noqa: F401
+)
+from gentrace.model.filterable_metadata_input import FilterableMetadataInput
+from gentrace.model.searchable_unix_seconds_input import SearchableUnixSecondsInput
+from gentrace.model.test_result_v2 import TestResultV2
+
+from . import path
+
+# Query params
+PipelineIdSchema = schemas.StrSchema
+PipelineSlugSchema = schemas.StrSchema
+CreatedAtSchema = SearchableUnixSecondsInput
+MetadataSchema = FilterableMetadataInput
+RequestRequiredQueryParams = typing_extensions.TypedDict(
+ 'RequestRequiredQueryParams',
+ {
+ }
+)
+RequestOptionalQueryParams = typing_extensions.TypedDict(
+ 'RequestOptionalQueryParams',
+ {
+ 'pipelineId': typing.Union[PipelineIdSchema, str, ],
+ 'pipelineSlug': typing.Union[PipelineSlugSchema, str, ],
+ 'createdAt': typing.Union[CreatedAtSchema, ],
+ 'metadata': typing.Union[MetadataSchema, ],
+ },
+ total=False
+)
+
+
+class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
+ pass
+
+
+request_query_pipeline_id = api_client.QueryParameter(
+ name="pipelineId",
+ style=api_client.ParameterStyle.FORM,
+ schema=PipelineIdSchema,
+ explode=True,
+)
+request_query_pipeline_slug = api_client.QueryParameter(
+ name="pipelineSlug",
+ style=api_client.ParameterStyle.FORM,
+ schema=PipelineSlugSchema,
+ explode=True,
+)
+request_query_created_at = api_client.QueryParameter(
+ name="createdAt",
+ style=api_client.ParameterStyle.FORM,
+ schema=CreatedAtSchema,
+ explode=True,
+)
+request_query_metadata = api_client.QueryParameter(
+ name="metadata",
+ style=api_client.ParameterStyle.FORM,
+ schema=MetadataSchema,
+ explode=True,
+)
+_auth = [
+ 'bearerAuth',
+]
+
+
+class SchemaFor200ResponseBodyApplicationJson(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['TestResultV2']:
+ return TestResultV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['TestResultV2'], typing.List['TestResultV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'TestResultV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJson':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+class SchemaFor200ResponseBodyApplicationJsonCharsetutf8(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['TestResultV2']:
+ return TestResultV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['TestResultV2'], typing.List['TestResultV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'TestResultV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJsonCharsetutf8':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+@dataclass
+class ApiResponseFor200(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor200ResponseBodyApplicationJson,
+ SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_200 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor200,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJson),
+ 'application/json; charset=utf-8': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
+ },
+)
+_status_code_to_response = {
+ '200': _response_for_200,
+}
+_all_accept_content_types = (
+ 'application/json',
+ 'application/json; charset=utf-8',
+)
+
+
+class BaseApi(api_client.Api):
+ @typing.overload
+ def _v2_test_results_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def _v2_test_results_get_oapg(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def _v2_test_results_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def _v2_test_results_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ """
+ Get test results for a pipeline
+ :param skip_deserialization: If true then api_response.response will be set but
+ api_response.body and api_response.headers will not be deserialized into schema
+ class instances
+ """
+ self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
+ used_path = path.value
+
+ prefix_separator_iterator = None
+ for parameter in (
+ request_query_pipeline_id,
+ request_query_pipeline_slug,
+ request_query_created_at,
+ request_query_metadata,
+ ):
+ parameter_data = query_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ if prefix_separator_iterator is None:
+ prefix_separator_iterator = parameter.get_prefix_separator_iterator()
+ serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
+ for serialized_value in serialized_data.values():
+ used_path += serialized_value
+
+ _headers = HTTPHeaderDict()
+ # TODO add cookie handling
+ if accept_content_types:
+ for accept_content_type in accept_content_types:
+ _headers.add('Accept', accept_content_type)
+
+ response = self.api_client.call_api(
+ resource_path=used_path,
+ method='get'.upper(),
+ headers=_headers,
+ auth_settings=_auth,
+ stream=stream,
+ timeout=timeout,
+ )
+
+ if skip_deserialization:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+ else:
+ response_for_status = _status_code_to_response.get(str(response.status))
+ if response_for_status:
+ api_response = response_for_status.deserialize(response, self.api_client.configuration)
+ else:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+
+ if not 200 <= response.status <= 299:
+ raise exceptions.ApiException(
+ status=response.status,
+ reason=response.reason,
+ api_response=api_response
+ )
+
+ return api_response
+
+
+class V2TestResultsGet(BaseApi):
+ # this class is used by api classes that refer to endpoints with operationId fn names
+
+ @typing.overload
+ def v2_test_results_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def v2_test_results_get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def v2_test_results_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def v2_test_results_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_test_results_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
+class ApiForget(BaseApi):
+ # this class is used by api classes that refer to endpoints by path and http method names
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_test_results_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
diff --git a/package/gentrace/paths/v2_test_results/get.pyi b/package/gentrace/paths/v2_test_results/get.pyi
new file mode 100644
index 00000000..4e000a7f
--- /dev/null
+++ b/package/gentrace/paths/v2_test_results/get.pyi
@@ -0,0 +1,481 @@
+# coding: utf-8
+
+"""
+
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import uuid # noqa: F401
+from dataclasses import dataclass
+from datetime import date, datetime # noqa: F401
+
+import frozendict # noqa: F401
+import typing_extensions # noqa: F401
+import urllib3
+from urllib3._collections import HTTPHeaderDict
+
+from gentrace import (
+ api_client,
+ exceptions,
+ schemas, # noqa: F401
+)
+from gentrace.model.filterable_metadata_input import FilterableMetadataInput
+from gentrace.model.searchable_unix_seconds_input import SearchableUnixSecondsInput
+from gentrace.model.test_result_v2 import TestResultV2
+
+# Query params
+PipelineIdSchema = schemas.StrSchema
+PipelineSlugSchema = schemas.StrSchema
+CreatedAtSchema = SearchableUnixSecondsInput
+MetadataSchema = FilterableMetadataInput
+RequestRequiredQueryParams = typing_extensions.TypedDict(
+ 'RequestRequiredQueryParams',
+ {
+ }
+)
+RequestOptionalQueryParams = typing_extensions.TypedDict(
+ 'RequestOptionalQueryParams',
+ {
+ 'pipelineId': typing.Union[PipelineIdSchema, str, ],
+ 'pipelineSlug': typing.Union[PipelineSlugSchema, str, ],
+ 'createdAt': typing.Union[CreatedAtSchema, ],
+ 'metadata': typing.Union[MetadataSchema, ],
+ },
+ total=False
+)
+
+
+class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
+ pass
+
+
+request_query_pipeline_id = api_client.QueryParameter(
+ name="pipelineId",
+ style=api_client.ParameterStyle.FORM,
+ schema=PipelineIdSchema,
+ explode=True,
+)
+request_query_pipeline_slug = api_client.QueryParameter(
+ name="pipelineSlug",
+ style=api_client.ParameterStyle.FORM,
+ schema=PipelineSlugSchema,
+ explode=True,
+)
+request_query_created_at = api_client.QueryParameter(
+ name="createdAt",
+ style=api_client.ParameterStyle.FORM,
+ schema=CreatedAtSchema,
+ explode=True,
+)
+request_query_metadata = api_client.QueryParameter(
+ name="metadata",
+ style=api_client.ParameterStyle.FORM,
+ schema=MetadataSchema,
+ explode=True,
+)
+
+
+class SchemaFor200ResponseBodyApplicationJson(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['TestResultV2']:
+ return TestResultV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['TestResultV2'], typing.List['TestResultV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'TestResultV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJson':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+class SchemaFor200ResponseBodyApplicationJsonCharsetutf8(
+ schemas.DictSchema
+):
+
+
+ class MetaOapg:
+ required = {
+ "data",
+ }
+
+ class properties:
+
+
+ class data(
+ schemas.ListSchema
+ ):
+
+
+ class MetaOapg:
+
+ @staticmethod
+ def items() -> typing.Type['TestResultV2']:
+ return TestResultV2
+
+ def __new__(
+ cls,
+ _arg: typing.Union[typing.Tuple['TestResultV2'], typing.List['TestResultV2']],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ ) -> 'data':
+ return super().__new__(
+ cls,
+ _arg,
+ _configuration=_configuration,
+ )
+
+ def __getitem__(self, i: int) -> 'TestResultV2':
+ return super().__getitem__(i)
+ __annotations__ = {
+ "data": data,
+ }
+
+ data: MetaOapg.properties.data
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ data: typing.Union[MetaOapg.properties.data, list, tuple, ],
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'SchemaFor200ResponseBodyApplicationJsonCharsetutf8':
+ return super().__new__(
+ cls,
+ *_args,
+ data=data,
+ _configuration=_configuration,
+ **kwargs,
+ )
+
+
+@dataclass
+class ApiResponseFor200(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor200ResponseBodyApplicationJson,
+ SchemaFor200ResponseBodyApplicationJsonCharsetutf8,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_200 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor200,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJson),
+ 'application/json; charset=utf-8': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJsonCharsetutf8),
+ },
+)
+_all_accept_content_types = (
+ 'application/json',
+ 'application/json; charset=utf-8',
+)
+
+
+class BaseApi(api_client.Api):
+ @typing.overload
+ def _v2_test_results_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def _v2_test_results_get_oapg(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def _v2_test_results_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def _v2_test_results_get_oapg(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ """
+ Get test results for a pipeline
+ :param skip_deserialization: If true then api_response.response will be set but
+ api_response.body and api_response.headers will not be deserialized into schema
+ class instances
+ """
+ self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
+ used_path = path.value
+
+ prefix_separator_iterator = None
+ for parameter in (
+ request_query_pipeline_id,
+ request_query_pipeline_slug,
+ request_query_created_at,
+ request_query_metadata,
+ ):
+ parameter_data = query_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ if prefix_separator_iterator is None:
+ prefix_separator_iterator = parameter.get_prefix_separator_iterator()
+ serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
+ for serialized_value in serialized_data.values():
+ used_path += serialized_value
+
+ _headers = HTTPHeaderDict()
+ # TODO add cookie handling
+ if accept_content_types:
+ for accept_content_type in accept_content_types:
+ _headers.add('Accept', accept_content_type)
+
+ response = self.api_client.call_api(
+ resource_path=used_path,
+ method='get'.upper(),
+ headers=_headers,
+ auth_settings=_auth,
+ stream=stream,
+ timeout=timeout,
+ )
+
+ if skip_deserialization:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+ else:
+ response_for_status = _status_code_to_response.get(str(response.status))
+ if response_for_status:
+ api_response = response_for_status.deserialize(response, self.api_client.configuration)
+ else:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+
+ if not 200 <= response.status <= 299:
+ raise exceptions.ApiException(
+ status=response.status,
+ reason=response.reason,
+ api_response=api_response
+ )
+
+ return api_response
+
+
+class V2TestResultsGet(BaseApi):
+ # this class is used by api classes that refer to endpoints with operationId fn names
+
+ @typing.overload
+ def v2_test_results_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def v2_test_results_get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def v2_test_results_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def v2_test_results_get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_test_results_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
+class ApiForget(BaseApi):
+ # this class is used by api classes that refer to endpoints by path and http method names
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get(
+ self,
+ query_params: RequestQueryParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._v2_test_results_get_oapg(
+ query_params=query_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
diff --git a/package/gentrace/providers/evaluation.py b/package/gentrace/providers/evaluation.py
index e8d950c1..603407d5 100644
--- a/package/gentrace/providers/evaluation.py
+++ b/package/gentrace/providers/evaluation.py
@@ -97,7 +97,7 @@ def get_test_cases(
effective_pipeline_id = matching_pipeline.get("id")
- response = api.test_case_get({"pipelineId": effective_pipeline_id})
+ response = api.v1_test_case_get({"pipelineId": effective_pipeline_id})
test_cases = response.body.get("testCases", [])
return test_cases
@@ -155,7 +155,7 @@ def create_test_cases(
if not pipeline_slug:
raise ValueError("pipeline_slug must be passed")
- response = api.test_case_post({"pipelineSlug": pipeline_slug, "testCases": payload})
+ response = api.v1_test_case_post({"pipelineSlug": pipeline_slug, "testCases": payload})
count = response.body.get("creationCount", None)
return count
@@ -190,7 +190,7 @@ def create_test_case(
if not pipeline_slug:
raise ValueError("pipeline_slug must be passed")
- response = api.test_case_post({"pipelineSlug": pipeline_slug, **payload})
+ response = api.v1_test_case_post({"pipelineSlug": pipeline_slug, **payload})
case_id = response.body.get("caseId", None)
return case_id
@@ -222,7 +222,7 @@ def update_test_case(pipeline_slug: str, payload: UpdateTestCasePayload) -> str:
if not pipeline_slug:
raise ValueError("pipeline_slug must be passed")
- response = api.test_case_patch({"pipelineSlug": pipeline_slug, **payload})
+ response = api.v1_test_case_patch({"pipelineSlug": pipeline_slug, **payload})
case_id = response.body.get("caseId", None)
return case_id
@@ -259,7 +259,7 @@ def submit_prepared_test_runs(pipeline_slug: str, test_runs: List[Dict], context
)
params = construct_submission_payload(pipeline_slug, test_runs, context)
- response = api.test_result_simple_post(params)
+ response = api.v1_test_result_simple_post(params)
return response.body
@@ -387,7 +387,7 @@ def get_pipelines(
if slug:
params["slug"] = slug
- response = api.pipelines_get(params)
+ response = api.v1_pipelines_get(params)
pipelines = response.body.get("pipelines")
@@ -407,7 +407,7 @@ def get_test_result(result_id: str) -> ExpandedTestResult:
if result_id:
params["id"] = result_id
- response = api.test_result_id_get(params)
+ response = api.v1_test_result_id_get(params)
return response.body
@@ -439,7 +439,7 @@ def get_test_results(
if pipeline_slug:
params["pipelineSlug"] = pipeline_slug
- response = api.test_result_get(params)
+ response = api.v1_test_result_get(params)
test_results = response.body.get("testResults")
@@ -569,7 +569,7 @@ def run_test(pipeline_slug: str, handler, context: Optional[ResultContext] = Non
params["collectionMethod"] = "runner"
- response = api.test_result_post(params)
+ response = api.v1_test_result_post(params)
return response.body
except Exception as e:
raise e
diff --git a/package/gentrace/providers/files.py b/package/gentrace/providers/files.py
index 36f214bb..601aa1fa 100644
--- a/package/gentrace/providers/files.py
+++ b/package/gentrace/providers/files.py
@@ -5,7 +5,7 @@
from gentrace.api_client import ApiClient
from gentrace.apis.tags.core_api import CoreApi
-from gentrace.paths.files_upload.post import SchemaForRequestBodyMultipartFormData
+from gentrace.paths.v1_files_upload.post import SchemaForRequestBodyMultipartFormData
from gentrace.providers.init import (
GENTRACE_CONFIG_STATE,
)
@@ -37,7 +37,7 @@ def upload_file(
api = CoreApi(api_client=api_client)
body = SchemaForRequestBodyMultipartFormData(file=file)
- response = api.files_upload_post(body=body)
+ response = api.v1_files_upload_post(body=body)
url = response.body.get("url", None)
return url
diff --git a/package/gentrace/providers/getters.py b/package/gentrace/providers/getters.py
index c5f0ab2f..fb2ad708 100644
--- a/package/gentrace/providers/getters.py
+++ b/package/gentrace/providers/getters.py
@@ -22,7 +22,7 @@ def test_validity():
path = parse_url(host).path
- if host and path != "/api/v1" and path != "/api/v1/":
+ if host and path != "/api" and path != "/api/":
raise ValueError("Gentrace host is invalid")
@@ -32,7 +32,7 @@ def configure_openai():
test_validity()
if api_key:
- resolved_host = host if host else "https://gentrace.ai/api/v1"
+ resolved_host = host if host else "https://gentrace.ai/api"
gentrace_config = GentraceConfiguration(host=resolved_host)
gentrace_config.access_token = api_key
else:
diff --git a/package/gentrace/providers/init.py b/package/gentrace/providers/init.py
index f07383f1..6ec59309 100644
--- a/package/gentrace/providers/init.py
+++ b/package/gentrace/providers/init.py
@@ -46,14 +46,14 @@ def init(
if host:
try:
url = urlparse(host)
- if url.path != "/api/v1" and url.path != "/api/v1/":
- raise ValueError('Gentrace URL path must end in "/api/v1".')
+ if url.path != "/api" and url.path != "/api/":
+ raise ValueError('Gentrace URL path must end in "/api".')
except Exception as e:
raise ValueError(f"Invalid Gentrace base path: {str(e)}")
GENTRACE_CONFIG_STATE["GENTRACE_BASE_PATH"] = host
- resolved_host = host if host else "https://gentrace.ai/api/v1"
+ resolved_host = host if host else "https://gentrace.ai/api"
config = Configuration(host=resolved_host)
config.access_token = api_key
diff --git a/package/gentrace/providers/pipeline_run.py b/package/gentrace/providers/pipeline_run.py
index 1263f5c3..76c16532 100644
--- a/package/gentrace/providers/pipeline_run.py
+++ b/package/gentrace/providers/pipeline_run.py
@@ -398,7 +398,7 @@ def submit(self, wait_for_server=False) -> Dict:
if wait_for_server:
try:
- pipeline_post_response = core_api.run_post(
+ pipeline_post_response = core_api.v1_run_post(
{
"id": self.pipeline_run_id,
"slug": self.pipeline.slug,
diff --git a/package/gentrace/providers/utils.py b/package/gentrace/providers/utils.py
index 7ace5875..4ecf5557 100644
--- a/package/gentrace/providers/utils.py
+++ b/package/gentrace/providers/utils.py
@@ -126,7 +126,7 @@ async def run_post_background(api_instance: CoreApi, pipeline_run_data: RunReque
def wrapped_api_invocation():
try:
log_info("Submitting PipelineRun to Gentrace")
- result = api_instance.run_post(pipeline_run_data)
+ result = api_instance.v1_run_post(pipeline_run_data)
log_info("Successfully submitted PipelineRun to Gentrace")
return result
except Exception as e:
diff --git a/package/gentrace/rest.py b/package/gentrace/rest.py
index 26a0ab93..60b688c1 100644
--- a/package/gentrace/rest.py
+++ b/package/gentrace/rest.py
@@ -5,7 +5,7 @@
These API routes are designed to ingest events from clients. # noqa: E501
- The version of the OpenAPI document: 0.17.0
+ The version of the OpenAPI document: 0.18.0
Generated by: https://openapi-generator.tech
"""
diff --git a/package/tests/test_openai_embedding.py b/package/tests/test_openai_embedding.py
index b0b7b922..cc8d6b62 100644
--- a/package/tests/test_openai_embedding.py
+++ b/package/tests/test_openai_embedding.py
@@ -145,7 +145,7 @@ def test_openai_embedding_self_contained_no_pipeline_id_server_sync(mocker, setu
def test_openai_embedding_pipeline_server_sync(setup_teardown_openai):
pipeline = gentrace.Pipeline(
"test-gentrace-python-pipeline",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
openai_config={
"api_key": os.getenv("OPENAI_KEY"),
},
@@ -195,7 +195,7 @@ def test_openai_embedding_pipeline_sync(
pipeline = gentrace.Pipeline(
"test-gentrace-python-pipeline",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
openai_config={
"api_key": os.getenv("OPENAI_KEY"),
},
@@ -286,7 +286,7 @@ async def test_openai_embedding_pipeline_async(
pipeline = gentrace.Pipeline(
"test-gentrace-python-pipeline",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
openai_config={
"api_key": "test-api-key",
},
@@ -314,7 +314,7 @@ async def test_openai_embedding_pipeline_async(
def test_openai_embedding_pipeline_server_with_slug_param(setup_teardown_openai):
pipeline = gentrace.Pipeline(
slug="test-gentrace-python-pipeline",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
openai_config={
"api_key": os.getenv("OPENAI_KEY"),
},
diff --git a/package/tests/test_pinecone.py b/package/tests/test_pinecone.py
index 6360b398..1a2d7df3 100644
--- a/package/tests/test_pinecone.py
+++ b/package/tests/test_pinecone.py
@@ -23,7 +23,7 @@ def test_pinecone_pipeline_fetch_server(setup_teardown_pinecone):
pipeline = gentrace.Pipeline(
"test-gentrace-python-pipeline",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
pinecone_config={
"api_key": os.getenv("PINECONE_API_KEY"),
},
@@ -49,7 +49,7 @@ def test_pinecone_pipeline_query_server(vector, setup_teardown_pinecone):
pipeline = gentrace.Pipeline(
"test-gentrace-python-pipeline",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
pinecone_config={
"api_key": os.getenv("PINECONE_API_KEY"),
},
@@ -75,7 +75,7 @@ def test_pinecone_pipeline_list_indices_server(setup_teardown_pinecone):
pipeline = gentrace.Pipeline(
"test-gentrace-python-pipeline",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
pinecone_config={
"api_key": os.getenv("PINECONE_API_KEY"),
},
@@ -100,7 +100,7 @@ def test_pinecone_pipeline_upsert_server(vector, setup_teardown_pinecone):
pipeline = gentrace.Pipeline(
"test-gentrace-python-pipeline",
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
pinecone_config={
"api_key": os.getenv("PINECONE_API_KEY"),
},
diff --git a/package/tests/test_usage.py b/package/tests/test_usage.py
index 17f3f470..378bd10b 100644
--- a/package/tests/test_usage.py
+++ b/package/tests/test_usage.py
@@ -52,7 +52,7 @@ def test_gentrace_localhost_host_valid(os_env_variables):
with pytest.raises(ValueError):
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1/feedback",
+ host="http://localhost:3000/api/feedback",
)
gentrace.deinit()
@@ -61,7 +61,7 @@ def test_gentrace_localhost_host_valid(os_env_variables):
def test_gentrace_staging_host_valid(os_env_variables):
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="https://staging.gentrace.ai/api/v1/",
+ host="https://staging.gentrace.ai/api/",
)
gentrace.configure_openai()
@@ -69,7 +69,7 @@ def test_gentrace_staging_host_valid(os_env_variables):
with pytest.raises(ValueError):
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="https://staging.gentrace.ai/api/v1/feedback",
+ host="https://staging.gentrace.ai/api/feedback",
)
gentrace.deinit()
@@ -78,13 +78,13 @@ def test_gentrace_staging_host_valid(os_env_variables):
def test_gentrace_prod_host_valid(os_env_variables):
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="https://gentrace.ai/api/v1/",
+ host="https://gentrace.ai/api/",
)
with pytest.raises(ValueError):
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="https://gentrace.ai/api/v1/feedback",
+ host="https://gentrace.ai/api/feedback",
)
gentrace.deinit()
@@ -98,7 +98,7 @@ def test_openai_configure_should_raise_error(os_env_variables):
def test_openai_configure_should_not_raise_error(os_env_variables):
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
gentrace.configure_openai()
@@ -114,7 +114,7 @@ def test_pinecone_configure_should_raise_error(os_env_variables):
def test_pinecone_configure_should_not_raise_error(os_env_variables):
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
gentrace.configure_pinecone()
@@ -125,7 +125,7 @@ def test_pinecone_configure_should_not_raise_error(os_env_variables):
def test_pipeline_should_not_raise_error(os_env_variables):
gentrace.init(
api_key=os.getenv("GENTRACE_API_KEY"),
- host="http://localhost:3000/api/v1",
+ host="http://localhost:3000/api",
)
pipeline = gentrace.Pipeline(