diff --git a/package/docs/apis/tags/IngestionApi.md b/package/docs/apis/tags/IngestionApi.md index 898e9d24..ef71080c 100644 --- a/package/docs/apis/tags/IngestionApi.md +++ b/package/docs/apis/tags/IngestionApi.md @@ -44,6 +44,7 @@ with gentrace.ApiClient(configuration) as api_client: # example passing only required values which don't have defaults set body = PipelineRunRequest( + id="id_example", name="name_example", step_runs=[ dict( diff --git a/package/docs/models/FeedbackRequest.md b/package/docs/models/FeedbackRequest.md index 7e0106e1..8c741033 100644 --- a/package/docs/models/FeedbackRequest.md +++ b/package/docs/models/FeedbackRequest.md @@ -8,8 +8,8 @@ dict, frozendict.frozendict, | frozendict.frozendict, | | ### Dictionary Keys Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- +**score** | decimal.Decimal, int, float, | decimal.Decimal, | | value must be a 32 bit float **pipelineRunId** | str, uuid.UUID, | str, | | value must be a uuid -**rating** | str, | str, | | must be one of ["positive", "negative", "neutral", ] **recordedTime** | str, datetime, | str, | | value must conform to RFC-3339 date-time **details** | None, str, | NoneClass, str, | | [optional] diff --git a/package/docs/models/PipelineRunRequest.md b/package/docs/models/PipelineRunRequest.md index 36818555..4c9f8308 100644 --- a/package/docs/models/PipelineRunRequest.md +++ b/package/docs/models/PipelineRunRequest.md @@ -10,6 +10,7 @@ Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- **[stepRuns](#stepRuns)** | list, tuple, | tuple, | | **name** | str, | str, | | +**id** | str, uuid.UUID, | str, | | [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] # stepRuns diff --git a/package/gentrace/__init__.py b/package/gentrace/__init__.py index e48ac535..4d9a0268 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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ diff --git a/package/gentrace/api_client.py b/package/gentrace/api_client.py index fd11ea30..d51a1777 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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ diff --git a/package/gentrace/apis/tags/ingestion_api.py b/package/gentrace/apis/tags/ingestion_api.py index 2124428d..78ab2cd0 100644 --- a/package/gentrace/apis/tags/ingestion_api.py +++ b/package/gentrace/apis/tags/ingestion_api.py @@ -5,7 +5,7 @@ These API routes are designed to ingest events from clients. # noqa: E501 - The version of the OpenAPI document: 0.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ diff --git a/package/gentrace/configuration.py b/package/gentrace/configuration.py index a2b3ae90..e3f424fa 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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ @@ -374,7 +374,7 @@ def to_debug_report(self): "Python SDK Debug Report:\n" "OS: {env}\n" "Python Version: {pyversion}\n" - "Version of the API: 0.4.1\n" + "Version of the API: 0.4.4\n" "SDK Package Version: 1.0.0".format(env=sys.platform, pyversion=sys.version) ) diff --git a/package/gentrace/exceptions.py b/package/gentrace/exceptions.py index 74474d4f..ca74a500 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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ import dataclasses diff --git a/package/gentrace/model/feedback_request.py b/package/gentrace/model/feedback_request.py index 667d6016..4da8bd3b 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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ @@ -32,33 +32,19 @@ class FeedbackRequest(schemas.DictSchema): class MetaOapg: required = { + "score", "pipelineRunId", - "rating", "recordedTime", } class properties: pipelineRunId = schemas.UUIDSchema - class rating(schemas.EnumBase, schemas.StrSchema): + class score(schemas.Float32Schema): class MetaOapg: - enum_value_to_name = { - "positive": "POSITIVE", - "negative": "NEGATIVE", - "neutral": "NEUTRAL", - } - - @schemas.classproperty - def POSITIVE(cls): - return cls("positive") - - @schemas.classproperty - def NEGATIVE(cls): - return cls("negative") - - @schemas.classproperty - def NEUTRAL(cls): - return cls("neutral") + format = "float" + inclusive_maximum = 1 + inclusive_minimum = 0 recordedTime = schemas.DateTimeSchema @@ -81,27 +67,27 @@ def __new__( __annotations__ = { "pipelineRunId": pipelineRunId, - "rating": rating, + "score": score, "recordedTime": recordedTime, "details": details, } additional_properties = schemas.NotAnyTypeSchema + score: MetaOapg.properties.score pipelineRunId: MetaOapg.properties.pipelineRunId - rating: MetaOapg.properties.rating recordedTime: MetaOapg.properties.recordedTime @typing.overload def __getitem__( - self, name: typing_extensions.Literal["pipelineRunId"] - ) -> MetaOapg.properties.pipelineRunId: + self, name: typing_extensions.Literal["score"] + ) -> MetaOapg.properties.score: ... @typing.overload def __getitem__( - self, name: typing_extensions.Literal["rating"] - ) -> MetaOapg.properties.rating: + self, name: typing_extensions.Literal["pipelineRunId"] + ) -> MetaOapg.properties.pipelineRunId: ... @typing.overload @@ -119,8 +105,8 @@ def __getitem__( def __getitem__( self, name: typing.Union[ + typing_extensions.Literal["score"], typing_extensions.Literal["pipelineRunId"], - typing_extensions.Literal["rating"], typing_extensions.Literal["recordedTime"], typing_extensions.Literal["details"], ], @@ -130,14 +116,14 @@ def __getitem__( @typing.overload def get_item_oapg( - self, name: typing_extensions.Literal["pipelineRunId"] - ) -> MetaOapg.properties.pipelineRunId: + self, name: typing_extensions.Literal["score"] + ) -> MetaOapg.properties.score: ... @typing.overload def get_item_oapg( - self, name: typing_extensions.Literal["rating"] - ) -> MetaOapg.properties.rating: + self, name: typing_extensions.Literal["pipelineRunId"] + ) -> MetaOapg.properties.pipelineRunId: ... @typing.overload @@ -155,8 +141,8 @@ def get_item_oapg( def get_item_oapg( self, name: typing.Union[ + typing_extensions.Literal["score"], typing_extensions.Literal["pipelineRunId"], - typing_extensions.Literal["rating"], typing_extensions.Literal["recordedTime"], typing_extensions.Literal["details"], ], @@ -169,15 +155,17 @@ def __new__( dict, frozendict.frozendict, ], + score: typing.Union[ + MetaOapg.properties.score, + decimal.Decimal, + int, + float, + ], pipelineRunId: typing.Union[ MetaOapg.properties.pipelineRunId, str, uuid.UUID, ], - rating: typing.Union[ - MetaOapg.properties.rating, - str, - ], recordedTime: typing.Union[ MetaOapg.properties.recordedTime, str, @@ -191,8 +179,8 @@ def __new__( return super().__new__( cls, *_args, + score=score, pipelineRunId=pipelineRunId, - rating=rating, recordedTime=recordedTime, details=details, _configuration=_configuration, diff --git a/package/gentrace/model/feedback_request.pyi b/package/gentrace/model/feedback_request.pyi index 9eed3c70..452e9194 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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ @@ -31,24 +31,16 @@ class FeedbackRequest(schemas.DictSchema): class MetaOapg: required = { + "score", "pipelineRunId", - "rating", "recordedTime", } class properties: pipelineRunId = schemas.UUIDSchema - class rating(schemas.EnumBase, schemas.StrSchema): - @schemas.classproperty - def POSITIVE(cls): - return cls("positive") - @schemas.classproperty - def NEGATIVE(cls): - return cls("negative") - @schemas.classproperty - def NEUTRAL(cls): - return cls("neutral") + class score(schemas.Float32Schema): + pass recordedTime = schemas.DateTimeSchema class details( @@ -69,23 +61,23 @@ class FeedbackRequest(schemas.DictSchema): ) __annotations__ = { "pipelineRunId": pipelineRunId, - "rating": rating, + "score": score, "recordedTime": recordedTime, "details": details, } additional_properties = schemas.NotAnyTypeSchema + score: MetaOapg.properties.score pipelineRunId: MetaOapg.properties.pipelineRunId - rating: MetaOapg.properties.rating recordedTime: MetaOapg.properties.recordedTime @typing.overload def __getitem__( - self, name: typing_extensions.Literal["pipelineRunId"] - ) -> MetaOapg.properties.pipelineRunId: ... + self, name: typing_extensions.Literal["score"] + ) -> MetaOapg.properties.score: ... @typing.overload def __getitem__( - self, name: typing_extensions.Literal["rating"] - ) -> MetaOapg.properties.rating: ... + self, name: typing_extensions.Literal["pipelineRunId"] + ) -> MetaOapg.properties.pipelineRunId: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["recordedTime"] @@ -97,8 +89,8 @@ class FeedbackRequest(schemas.DictSchema): def __getitem__( self, name: typing.Union[ + typing_extensions.Literal["score"], typing_extensions.Literal["pipelineRunId"], - typing_extensions.Literal["rating"], typing_extensions.Literal["recordedTime"], typing_extensions.Literal["details"], ], @@ -107,12 +99,12 @@ class FeedbackRequest(schemas.DictSchema): return super().__getitem__(name) @typing.overload def get_item_oapg( - self, name: typing_extensions.Literal["pipelineRunId"] - ) -> MetaOapg.properties.pipelineRunId: ... + self, name: typing_extensions.Literal["score"] + ) -> MetaOapg.properties.score: ... @typing.overload def get_item_oapg( - self, name: typing_extensions.Literal["rating"] - ) -> MetaOapg.properties.rating: ... + self, name: typing_extensions.Literal["pipelineRunId"] + ) -> MetaOapg.properties.pipelineRunId: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["recordedTime"] @@ -124,8 +116,8 @@ class FeedbackRequest(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ + typing_extensions.Literal["score"], typing_extensions.Literal["pipelineRunId"], - typing_extensions.Literal["rating"], typing_extensions.Literal["recordedTime"], typing_extensions.Literal["details"], ], @@ -137,15 +129,17 @@ class FeedbackRequest(schemas.DictSchema): dict, frozendict.frozendict, ], + score: typing.Union[ + MetaOapg.properties.score, + decimal.Decimal, + int, + float, + ], pipelineRunId: typing.Union[ MetaOapg.properties.pipelineRunId, str, uuid.UUID, ], - rating: typing.Union[ - MetaOapg.properties.rating, - str, - ], recordedTime: typing.Union[ MetaOapg.properties.recordedTime, str, @@ -159,8 +153,8 @@ class FeedbackRequest(schemas.DictSchema): return super().__new__( cls, *_args, + score=score, pipelineRunId=pipelineRunId, - rating=rating, recordedTime=recordedTime, details=details, _configuration=_configuration, diff --git a/package/gentrace/model/feedback_response.py b/package/gentrace/model/feedback_response.py index b7d978cc..7c1d37ed 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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ diff --git a/package/gentrace/model/feedback_response.pyi b/package/gentrace/model/feedback_response.pyi index b5b322a9..56dab120 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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ diff --git a/package/gentrace/model/pipeline_run_request.py b/package/gentrace/model/pipeline_run_request.py index 9e2b63a4..f65f879c 100644 --- a/package/gentrace/model/pipeline_run_request.py +++ b/package/gentrace/model/pipeline_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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ @@ -589,9 +589,11 @@ def __new__( def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + id = schemas.UUIDSchema __annotations__ = { "name": name, "stepRuns": stepRuns, + "id": id, } stepRuns: MetaOapg.properties.stepRuns @@ -609,6 +611,12 @@ def __getitem__( ) -> MetaOapg.properties.stepRuns: ... + @typing.overload + def __getitem__( + self, name: typing_extensions.Literal["id"] + ) -> MetaOapg.properties.id: + ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... @@ -619,6 +627,7 @@ def __getitem__( typing_extensions.Literal[ "name", "stepRuns", + "id", ], str, ], @@ -638,6 +647,12 @@ def get_item_oapg( ) -> MetaOapg.properties.stepRuns: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["id"] + ) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: + ... + @typing.overload def get_item_oapg( self, name: str @@ -650,6 +665,7 @@ def get_item_oapg( typing_extensions.Literal[ "name", "stepRuns", + "id", ], str, ], @@ -671,6 +687,9 @@ def __new__( MetaOapg.properties.name, str, ], + id: typing.Union[ + MetaOapg.properties.id, str, uuid.UUID, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -694,6 +713,7 @@ def __new__( *_args, stepRuns=stepRuns, name=name, + id=id, _configuration=_configuration, **kwargs, ) diff --git a/package/gentrace/model/pipeline_run_request.pyi b/package/gentrace/model/pipeline_run_request.pyi index 02771785..282bb24e 100644 --- a/package/gentrace/model/pipeline_run_request.pyi +++ b/package/gentrace/model/pipeline_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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ @@ -534,9 +534,11 @@ class PipelineRunRequest(schemas.DictSchema): ) def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + id = schemas.UUIDSchema __annotations__ = { "name": name, "stepRuns": stepRuns, + "id": id, } stepRuns: MetaOapg.properties.stepRuns name: MetaOapg.properties.name @@ -550,6 +552,10 @@ class PipelineRunRequest(schemas.DictSchema): self, name: typing_extensions.Literal["stepRuns"] ) -> MetaOapg.properties.stepRuns: ... @typing.overload + def __getitem__( + self, name: typing_extensions.Literal["id"] + ) -> MetaOapg.properties.id: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, @@ -557,6 +563,7 @@ class PipelineRunRequest(schemas.DictSchema): typing_extensions.Literal[ "name", "stepRuns", + "id", ], str, ], @@ -572,6 +579,10 @@ class PipelineRunRequest(schemas.DictSchema): self, name: typing_extensions.Literal["stepRuns"] ) -> MetaOapg.properties.stepRuns: ... @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["id"] + ) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + @typing.overload def get_item_oapg( self, name: str ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... @@ -581,6 +592,7 @@ class PipelineRunRequest(schemas.DictSchema): typing_extensions.Literal[ "name", "stepRuns", + "id", ], str, ], @@ -601,6 +613,9 @@ class PipelineRunRequest(schemas.DictSchema): MetaOapg.properties.name, str, ], + id: typing.Union[ + MetaOapg.properties.id, str, uuid.UUID, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -624,6 +639,7 @@ class PipelineRunRequest(schemas.DictSchema): *_args, stepRuns=stepRuns, name=name, + id=id, _configuration=_configuration, **kwargs, ) diff --git a/package/gentrace/model/pipeline_run_response.py b/package/gentrace/model/pipeline_run_response.py index b546afbf..02082ce1 100644 --- a/package/gentrace/model/pipeline_run_response.py +++ b/package/gentrace/model/pipeline_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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ diff --git a/package/gentrace/model/pipeline_run_response.pyi b/package/gentrace/model/pipeline_run_response.pyi index cf4652c7..7fd116ae 100644 --- a/package/gentrace/model/pipeline_run_response.pyi +++ b/package/gentrace/model/pipeline_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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ diff --git a/package/gentrace/rest.py b/package/gentrace/rest.py index 6dcc7e70..e02656be 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.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """ diff --git a/package/gentrace/schemas.py b/package/gentrace/schemas.py index b329a20f..9519bd0d 100644 --- a/package/gentrace/schemas.py +++ b/package/gentrace/schemas.py @@ -5,7 +5,7 @@ These API routes are designed to ingest events from clients. # noqa: E501 - The version of the OpenAPI document: 0.4.1 + The version of the OpenAPI document: 0.4.4 Generated by: https://openapi-generator.tech """