diff --git a/README.md b/README.md index 6a2eb49..1e5fca2 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Trieve OpenAPI Specification. This document describes all of the operations avai This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 0.6.7 -- Package version: 0.6.7 +- API version: 0.6.9 +- Package version: 0.6.9 - Generator version: 7.4.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://trieve.ai](https://trieve.ai) diff --git a/docs/CreateDatasetRequest.md b/docs/CreateDatasetRequest.md index 7bbdc5e..9fa0514 100644 --- a/docs/CreateDatasetRequest.md +++ b/docs/CreateDatasetRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **dataset_name** | **str** | Name of the dataset. Must be unique within the organization. | **organization_id** | **str** | Organization ID that the dataset will belong to. | **server_configuration** | **object** | Server configuration for the dataset, can be arbitrary JSON. We recommend setting to `{}` to start. See docs.trieve.ai for more information or adjust with the admin dashboard. | +**tracking_id** | **str** | Optional tracking ID for the dataset. Can be used to track the dataset in external systems. | [optional] ## Example diff --git a/docs/Dataset.md b/docs/Dataset.md index 54a9570..8d58c91 100644 --- a/docs/Dataset.md +++ b/docs/Dataset.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **name** | **str** | | **organization_id** | **str** | | **server_configuration** | **object** | | +**tracking_id** | **str** | | [optional] **updated_at** | **datetime** | | ## Example diff --git a/docs/DatasetDTO.md b/docs/DatasetDTO.md index da87eb2..edd6c8d 100644 --- a/docs/DatasetDTO.md +++ b/docs/DatasetDTO.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **id** | **str** | | **name** | **str** | | **organization_id** | **str** | | +**tracking_id** | **str** | | [optional] **updated_at** | **datetime** | | ## Example diff --git a/docs/RecommendChunksRequest.md b/docs/RecommendChunksRequest.md index 0c05fcd..89971b9 100644 --- a/docs/RecommendChunksRequest.md +++ b/docs/RecommendChunksRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **negative_tracking_ids** | **List[str]** | The tracking_ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks. | [optional] **positive_chunk_ids** | **List[str]** | The ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks. | [optional] **positive_tracking_ids** | **List[str]** | The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks. | [optional] +**recommend_type** | **str** | The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`. | [optional] **slim_chunks** | **bool** | Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false. | [optional] **strategy** | **str** | Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives. | [optional] diff --git a/docs/RecommendGroupChunksRequest.md b/docs/RecommendGroupChunksRequest.md index 6e00161..fa197a1 100644 --- a/docs/RecommendGroupChunksRequest.md +++ b/docs/RecommendGroupChunksRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **negative_group_tracking_ids** | **List[str]** | The ids of the groups to be used as negative examples for the recommendation. The groups in this array will be used to filter out similar groups. | [optional] **positive_group_ids** | **List[str]** | The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups. | [optional] **positive_group_tracking_ids** | **List[str]** | The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups. | [optional] +**recommend_type** | **str** | The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`. | [optional] **slim_chunks** | **bool** | Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false. | [optional] **strategy** | **str** | Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives. | [optional] diff --git a/docs/UpdateDatasetRequest.md b/docs/UpdateDatasetRequest.md index be90bdb..b3bf08f 100644 --- a/docs/UpdateDatasetRequest.md +++ b/docs/UpdateDatasetRequest.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client_configuration** | **object** | The new client configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the client configuration will not be updated. | [optional] -**dataset_id** | **str** | The id of the dataset you want to update. | +**dataset_id** | **str** | The id of the dataset you want to update. | [optional] **dataset_name** | **str** | The new name of the dataset. Must be unique within the organization. If not provided, the name will not be updated. | [optional] **server_configuration** | **object** | The new server configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the server configuration will not be updated. | [optional] +**tracking_id** | **str** | tracking ID for the dataset. Can be used to track the dataset in external systems. | [optional] ## Example diff --git a/openapi-generator.yaml b/openapi-generator.yaml index 6021f0a..cbfd030 100644 --- a/openapi-generator.yaml +++ b/openapi-generator.yaml @@ -1,7 +1,7 @@ generatorName: python outputDir: ./generated-code/python-client packageName: trieve_py_client -packageVersion: 0.6.7 +packageVersion: 0.6.9 additionalProperties: projectName: trieve_py_client @@ -10,4 +10,4 @@ additionalProperties: packageDescription: "Python client for Trieve API generated from its OpenAPI specification using openapi-generator." packageAuthor: "Trieve" packageAuthorEmail: "developers@trieve.ai" - packageVersion: "0.6.7" + packageVersion: "0.6.9" diff --git a/openapi.json b/openapi.json index f439437..33325ce 100644 --- a/openapi.json +++ b/openapi.json @@ -12,7 +12,7 @@ "name": "BSL", "url": "https://github.com/devflowinc/trieve/blob/main/LICENSE.txt" }, - "version": "0.6.7" + "version": "0.6.9" }, "servers": [ { @@ -4726,6 +4726,11 @@ }, "server_configuration": { "description": "Server configuration for the dataset, can be arbitrary JSON. We recommend setting to `{}` to start. See docs.trieve.ai for more information or adjust with the admin dashboard." + }, + "tracking_id": { + "type": "string", + "description": "Optional tracking ID for the dataset. Can be used to track the dataset in external systems.", + "nullable": true } }, "example": { @@ -4840,6 +4845,10 @@ "format": "uuid" }, "server_configuration": {}, + "tracking_id": { + "type": "string", + "nullable": true + }, "updated_at": { "type": "string", "format": "date-time" @@ -4856,6 +4865,7 @@ "server_configuration": { "key": "value" }, + "tracking_id": "3", "updated_at": "2021-01-01T00:00:00" } }, @@ -4918,6 +4928,10 @@ "type": "string", "format": "uuid" }, + "tracking_id": { + "type": "string", + "nullable": true + }, "updated_at": { "type": "string", "format": "date-time" @@ -4931,6 +4945,7 @@ "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3", "name": "Trieve", "organization_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3", + "tracking_id": "3", "updated_at": "2021-01-01T00:00:00" } }, @@ -5788,6 +5803,11 @@ "description": "The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.", "nullable": true }, + "recommend_type": { + "type": "string", + "description": "The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`.", + "nullable": true + }, "slim_chunks": { "type": "boolean", "description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.", @@ -5859,6 +5879,11 @@ "description": "The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups.", "nullable": true }, + "recommend_type": { + "type": "string", + "description": "The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`.", + "nullable": true + }, "slim_chunks": { "type": "boolean", "description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.", @@ -7048,9 +7073,6 @@ }, "UpdateDatasetRequest": { "type": "object", - "required": [ - "dataset_id" - ], "properties": { "client_configuration": { "description": "The new client configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the client configuration will not be updated.", @@ -7059,7 +7081,8 @@ "dataset_id": { "type": "string", "format": "uuid", - "description": "The id of the dataset you want to update." + "description": "The id of the dataset you want to update.", + "nullable": true }, "dataset_name": { "type": "string", @@ -7069,6 +7092,11 @@ "server_configuration": { "description": "The new server configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the server configuration will not be updated.", "nullable": true + }, + "tracking_id": { + "type": "string", + "description": "tracking ID for the dataset. Can be used to track the dataset in external systems.", + "nullable": true } }, "example": { diff --git a/pyproject.toml b/pyproject.toml index c009958..20b8502 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "trieve_py_client" -version = "0.6.7" +version = "0.6.9" description = "Trieve API" authors = ["Trieve Team "] license = "BSL" diff --git a/setup.py b/setup.py index 66ee298..efac069 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "trieve_py_client" -VERSION = "0.6.7" +VERSION = "0.6.9" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/trieve_py_client/__init__.py b/trieve_py_client/__init__.py index 0988192..dd7122a 100644 --- a/trieve_py_client/__init__.py +++ b/trieve_py_client/__init__.py @@ -7,7 +7,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "0.6.7" +__version__ = "0.6.9" # import apis into sdk package from trieve_py_client.api.auth_api import AuthApi diff --git a/trieve_py_client/api/auth_api.py b/trieve_py_client/api/auth_api.py index 2c46760..fab30c6 100644 --- a/trieve_py_client/api/auth_api.py +++ b/trieve_py_client/api/auth_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/chunk_api.py b/trieve_py_client/api/chunk_api.py index 060ee4e..ea82e13 100644 --- a/trieve_py_client/api/chunk_api.py +++ b/trieve_py_client/api/chunk_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/chunk_group_api.py b/trieve_py_client/api/chunk_group_api.py index 20a6c3b..c0e4f6a 100644 --- a/trieve_py_client/api/chunk_group_api.py +++ b/trieve_py_client/api/chunk_group_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/dataset_api.py b/trieve_py_client/api/dataset_api.py index 6201e3a..7469734 100644 --- a/trieve_py_client/api/dataset_api.py +++ b/trieve_py_client/api/dataset_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/events_api.py b/trieve_py_client/api/events_api.py index c0ef45c..b1390a7 100644 --- a/trieve_py_client/api/events_api.py +++ b/trieve_py_client/api/events_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/file_api.py b/trieve_py_client/api/file_api.py index 1acb78a..c07870b 100644 --- a/trieve_py_client/api/file_api.py +++ b/trieve_py_client/api/file_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/health_api.py b/trieve_py_client/api/health_api.py index 7c1d1cb..f141826 100644 --- a/trieve_py_client/api/health_api.py +++ b/trieve_py_client/api/health_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/invitation_api.py b/trieve_py_client/api/invitation_api.py index 578cdda..089e543 100644 --- a/trieve_py_client/api/invitation_api.py +++ b/trieve_py_client/api/invitation_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/message_api.py b/trieve_py_client/api/message_api.py index b6c9f23..6813ad2 100644 --- a/trieve_py_client/api/message_api.py +++ b/trieve_py_client/api/message_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/organization_api.py b/trieve_py_client/api/organization_api.py index 0dc7814..061a9e9 100644 --- a/trieve_py_client/api/organization_api.py +++ b/trieve_py_client/api/organization_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/stripe_api.py b/trieve_py_client/api/stripe_api.py index 651ad7f..98a90ea 100644 --- a/trieve_py_client/api/stripe_api.py +++ b/trieve_py_client/api/stripe_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/topic_api.py b/trieve_py_client/api/topic_api.py index 291c18d..ec542d0 100644 --- a/trieve_py_client/api/topic_api.py +++ b/trieve_py_client/api/topic_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api/user_api.py b/trieve_py_client/api/user_api.py index 0aa51af..7552747 100644 --- a/trieve_py_client/api/user_api.py +++ b/trieve_py_client/api/user_api.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/api_client.py b/trieve_py_client/api_client.py index 702ad6f..cd3ecd8 100644 --- a/trieve_py_client/api_client.py +++ b/trieve_py_client/api_client.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -88,7 +88,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.6.7/python' + self.user_agent = 'OpenAPI-Generator/0.6.9/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/trieve_py_client/configuration.py b/trieve_py_client/configuration.py index 89575db..7943d26 100644 --- a/trieve_py_client/configuration.py +++ b/trieve_py_client/configuration.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.6.7\n"\ - "SDK Package Version: 0.6.7".\ + "Version of the API: 0.6.9\n"\ + "SDK Package Version: 0.6.9".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/trieve_py_client/exceptions.py b/trieve_py_client/exceptions.py index d33b291..ae15b7d 100644 --- a/trieve_py_client/exceptions.py +++ b/trieve_py_client/exceptions.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/__init__.py b/trieve_py_client/models/__init__.py index f7ea86b..8d683e3 100644 --- a/trieve_py_client/models/__init__.py +++ b/trieve_py_client/models/__init__.py @@ -6,7 +6,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/add_chunk_to_group_data.py b/trieve_py_client/models/add_chunk_to_group_data.py index 177bd9a..4e83de2 100644 --- a/trieve_py_client/models/add_chunk_to_group_data.py +++ b/trieve_py_client/models/add_chunk_to_group_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/api_key_dto.py b/trieve_py_client/models/api_key_dto.py index b98e0fc..fc4c223 100644 --- a/trieve_py_client/models/api_key_dto.py +++ b/trieve_py_client/models/api_key_dto.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/auth_query.py b/trieve_py_client/models/auth_query.py index 9c68635..76f964d 100644 --- a/trieve_py_client/models/auth_query.py +++ b/trieve_py_client/models/auth_query.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/batch_queued_chunk_response.py b/trieve_py_client/models/batch_queued_chunk_response.py index 65ac254..aa1cc49 100644 --- a/trieve_py_client/models/batch_queued_chunk_response.py +++ b/trieve_py_client/models/batch_queued_chunk_response.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/bookmark_data.py b/trieve_py_client/models/bookmark_data.py index 64339b8..1d116cf 100644 --- a/trieve_py_client/models/bookmark_data.py +++ b/trieve_py_client/models/bookmark_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/bookmark_group_result.py b/trieve_py_client/models/bookmark_group_result.py index 3d61a28..19156dc 100644 --- a/trieve_py_client/models/bookmark_group_result.py +++ b/trieve_py_client/models/bookmark_group_result.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/chat_message_proxy.py b/trieve_py_client/models/chat_message_proxy.py index b914a0a..c493dee 100644 --- a/trieve_py_client/models/chat_message_proxy.py +++ b/trieve_py_client/models/chat_message_proxy.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/chunk_data.py b/trieve_py_client/models/chunk_data.py index 172b7ae..5ac2eb9 100644 --- a/trieve_py_client/models/chunk_data.py +++ b/trieve_py_client/models/chunk_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/chunk_filter.py b/trieve_py_client/models/chunk_filter.py index bff8d44..eabaf91 100644 --- a/trieve_py_client/models/chunk_filter.py +++ b/trieve_py_client/models/chunk_filter.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/chunk_group.py b/trieve_py_client/models/chunk_group.py index f80ec5c..cd3178b 100644 --- a/trieve_py_client/models/chunk_group.py +++ b/trieve_py_client/models/chunk_group.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/chunk_group_and_file.py b/trieve_py_client/models/chunk_group_and_file.py index 3dcf78b..b4c3940 100644 --- a/trieve_py_client/models/chunk_group_and_file.py +++ b/trieve_py_client/models/chunk_group_and_file.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/chunk_metadata.py b/trieve_py_client/models/chunk_metadata.py index d48dc58..4b690da 100644 --- a/trieve_py_client/models/chunk_metadata.py +++ b/trieve_py_client/models/chunk_metadata.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/chunk_metadata_with_score.py b/trieve_py_client/models/chunk_metadata_with_score.py index 10881ff..629ab0e 100644 --- a/trieve_py_client/models/chunk_metadata_with_score.py +++ b/trieve_py_client/models/chunk_metadata_with_score.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/client_dataset_configuration.py b/trieve_py_client/models/client_dataset_configuration.py index 806acd6..7c1d30b 100644 --- a/trieve_py_client/models/client_dataset_configuration.py +++ b/trieve_py_client/models/client_dataset_configuration.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/create_chunk_data.py b/trieve_py_client/models/create_chunk_data.py index 367e585..ab382f2 100644 --- a/trieve_py_client/models/create_chunk_data.py +++ b/trieve_py_client/models/create_chunk_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/create_chunk_group_data.py b/trieve_py_client/models/create_chunk_group_data.py index 1f019b3..df55670 100644 --- a/trieve_py_client/models/create_chunk_group_data.py +++ b/trieve_py_client/models/create_chunk_group_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/create_dataset_request.py b/trieve_py_client/models/create_dataset_request.py index d884a68..ee75a0c 100644 --- a/trieve_py_client/models/create_dataset_request.py +++ b/trieve_py_client/models/create_dataset_request.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,7 +31,8 @@ class CreateDatasetRequest(BaseModel): dataset_name: StrictStr = Field(description="Name of the dataset. Must be unique within the organization.") organization_id: StrictStr = Field(description="Organization ID that the dataset will belong to.") server_configuration: Optional[Any] = Field(description="Server configuration for the dataset, can be arbitrary JSON. We recommend setting to `{}` to start. See docs.trieve.ai for more information or adjust with the admin dashboard.") - __properties: ClassVar[List[str]] = ["client_configuration", "dataset_name", "organization_id", "server_configuration"] + tracking_id: Optional[StrictStr] = Field(default=None, description="Optional tracking ID for the dataset. Can be used to track the dataset in external systems.") + __properties: ClassVar[List[str]] = ["client_configuration", "dataset_name", "organization_id", "server_configuration", "tracking_id"] model_config = ConfigDict( populate_by_name=True, @@ -82,6 +83,11 @@ def to_dict(self) -> Dict[str, Any]: if self.server_configuration is None and "server_configuration" in self.model_fields_set: _dict['server_configuration'] = None + # set to None if tracking_id (nullable) is None + # and model_fields_set contains the field + if self.tracking_id is None and "tracking_id" in self.model_fields_set: + _dict['tracking_id'] = None + return _dict @classmethod @@ -97,7 +103,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "client_configuration": obj.get("client_configuration"), "dataset_name": obj.get("dataset_name"), "organization_id": obj.get("organization_id"), - "server_configuration": obj.get("server_configuration") + "server_configuration": obj.get("server_configuration"), + "tracking_id": obj.get("tracking_id") }) return _obj diff --git a/trieve_py_client/models/create_message_data.py b/trieve_py_client/models/create_message_data.py index 360a771..3e0acbb 100644 --- a/trieve_py_client/models/create_message_data.py +++ b/trieve_py_client/models/create_message_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/create_organization_data.py b/trieve_py_client/models/create_organization_data.py index 5edb524..0d2108e 100644 --- a/trieve_py_client/models/create_organization_data.py +++ b/trieve_py_client/models/create_organization_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/create_topic_data.py b/trieve_py_client/models/create_topic_data.py index 52f2784..10ba11a 100644 --- a/trieve_py_client/models/create_topic_data.py +++ b/trieve_py_client/models/create_topic_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/dataset.py b/trieve_py_client/models/dataset.py index ea4738b..21016bc 100644 --- a/trieve_py_client/models/dataset.py +++ b/trieve_py_client/models/dataset.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,8 +34,9 @@ class Dataset(BaseModel): name: StrictStr organization_id: StrictStr server_configuration: Optional[Any] + tracking_id: Optional[StrictStr] = None updated_at: datetime - __properties: ClassVar[List[str]] = ["client_configuration", "created_at", "id", "name", "organization_id", "server_configuration", "updated_at"] + __properties: ClassVar[List[str]] = ["client_configuration", "created_at", "id", "name", "organization_id", "server_configuration", "tracking_id", "updated_at"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,11 @@ def to_dict(self) -> Dict[str, Any]: if self.server_configuration is None and "server_configuration" in self.model_fields_set: _dict['server_configuration'] = None + # set to None if tracking_id (nullable) is None + # and model_fields_set contains the field + if self.tracking_id is None and "tracking_id" in self.model_fields_set: + _dict['tracking_id'] = None + return _dict @classmethod @@ -104,6 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "organization_id": obj.get("organization_id"), "server_configuration": obj.get("server_configuration"), + "tracking_id": obj.get("tracking_id"), "updated_at": obj.get("updated_at") }) return _obj diff --git a/trieve_py_client/models/dataset_and_usage.py b/trieve_py_client/models/dataset_and_usage.py index dd725c2..37d7619 100644 --- a/trieve_py_client/models/dataset_and_usage.py +++ b/trieve_py_client/models/dataset_and_usage.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/dataset_dto.py b/trieve_py_client/models/dataset_dto.py index de6236d..e77f546 100644 --- a/trieve_py_client/models/dataset_dto.py +++ b/trieve_py_client/models/dataset_dto.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -33,8 +33,9 @@ class DatasetDTO(BaseModel): id: StrictStr name: StrictStr organization_id: StrictStr + tracking_id: Optional[StrictStr] = None updated_at: datetime - __properties: ClassVar[List[str]] = ["client_configuration", "created_at", "id", "name", "organization_id", "updated_at"] + __properties: ClassVar[List[str]] = ["client_configuration", "created_at", "id", "name", "organization_id", "tracking_id", "updated_at"] model_config = ConfigDict( populate_by_name=True, @@ -80,6 +81,11 @@ def to_dict(self) -> Dict[str, Any]: if self.client_configuration is None and "client_configuration" in self.model_fields_set: _dict['client_configuration'] = None + # set to None if tracking_id (nullable) is None + # and model_fields_set contains the field + if self.tracking_id is None and "tracking_id" in self.model_fields_set: + _dict['tracking_id'] = None + return _dict @classmethod @@ -97,6 +103,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "name": obj.get("name"), "organization_id": obj.get("organization_id"), + "tracking_id": obj.get("tracking_id"), "updated_at": obj.get("updated_at") }) return _obj diff --git a/trieve_py_client/models/dataset_usage_count.py b/trieve_py_client/models/dataset_usage_count.py index 8504302..b46bc55 100644 --- a/trieve_py_client/models/dataset_usage_count.py +++ b/trieve_py_client/models/dataset_usage_count.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/delete_topic_data.py b/trieve_py_client/models/delete_topic_data.py index 78a26d0..b476c22 100644 --- a/trieve_py_client/models/delete_topic_data.py +++ b/trieve_py_client/models/delete_topic_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/delete_user_api_key_request.py b/trieve_py_client/models/delete_user_api_key_request.py index 87737f2..7ce8b8a 100644 --- a/trieve_py_client/models/delete_user_api_key_request.py +++ b/trieve_py_client/models/delete_user_api_key_request.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/edit_message_data.py b/trieve_py_client/models/edit_message_data.py index f21bcea..cb2d6ed 100644 --- a/trieve_py_client/models/edit_message_data.py +++ b/trieve_py_client/models/edit_message_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/error_response_body.py b/trieve_py_client/models/error_response_body.py index df2300d..c006963 100644 --- a/trieve_py_client/models/error_response_body.py +++ b/trieve_py_client/models/error_response_body.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/event.py b/trieve_py_client/models/event.py index 4692e37..d49d6d7 100644 --- a/trieve_py_client/models/event.py +++ b/trieve_py_client/models/event.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/event_return.py b/trieve_py_client/models/event_return.py index 6b0b98c..c4fcaa3 100644 --- a/trieve_py_client/models/event_return.py +++ b/trieve_py_client/models/event_return.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/field_condition.py b/trieve_py_client/models/field_condition.py index 61e6697..90dcbf5 100644 --- a/trieve_py_client/models/field_condition.py +++ b/trieve_py_client/models/field_condition.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/file.py b/trieve_py_client/models/file.py index 5c0b931..2403fa1 100644 --- a/trieve_py_client/models/file.py +++ b/trieve_py_client/models/file.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/file_dto.py b/trieve_py_client/models/file_dto.py index 3aaf565..d68d9de 100644 --- a/trieve_py_client/models/file_dto.py +++ b/trieve_py_client/models/file_dto.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/generate_chunks_request.py b/trieve_py_client/models/generate_chunks_request.py index 60e31e7..17956fd 100644 --- a/trieve_py_client/models/generate_chunks_request.py +++ b/trieve_py_client/models/generate_chunks_request.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/get_events_data.py b/trieve_py_client/models/get_events_data.py index 1fd1d3c..5152039 100644 --- a/trieve_py_client/models/get_events_data.py +++ b/trieve_py_client/models/get_events_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/get_groups_for_chunks_data.py b/trieve_py_client/models/get_groups_for_chunks_data.py index a931b7f..a4b245e 100644 --- a/trieve_py_client/models/get_groups_for_chunks_data.py +++ b/trieve_py_client/models/get_groups_for_chunks_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/group_data.py b/trieve_py_client/models/group_data.py index 60074df..4caadde 100644 --- a/trieve_py_client/models/group_data.py +++ b/trieve_py_client/models/group_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/group_score_chunk.py b/trieve_py_client/models/group_score_chunk.py index 7d4dab6..4f508dc 100644 --- a/trieve_py_client/models/group_score_chunk.py +++ b/trieve_py_client/models/group_score_chunk.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/group_score_slim_chunks.py b/trieve_py_client/models/group_score_slim_chunks.py index 29bfb5b..0d83e0c 100644 --- a/trieve_py_client/models/group_score_slim_chunks.py +++ b/trieve_py_client/models/group_score_slim_chunks.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/invitation_data.py b/trieve_py_client/models/invitation_data.py index a2d7852..b6fe958 100644 --- a/trieve_py_client/models/invitation_data.py +++ b/trieve_py_client/models/invitation_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/match_condition.py b/trieve_py_client/models/match_condition.py index c9a2d78..773737a 100644 --- a/trieve_py_client/models/match_condition.py +++ b/trieve_py_client/models/match_condition.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/message.py b/trieve_py_client/models/message.py index a7ab348..b652421 100644 --- a/trieve_py_client/models/message.py +++ b/trieve_py_client/models/message.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/organization.py b/trieve_py_client/models/organization.py index 36b00ad..14b77e2 100644 --- a/trieve_py_client/models/organization.py +++ b/trieve_py_client/models/organization.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/organization_usage_count.py b/trieve_py_client/models/organization_usage_count.py index b218f45..25f843a 100644 --- a/trieve_py_client/models/organization_usage_count.py +++ b/trieve_py_client/models/organization_usage_count.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/range.py b/trieve_py_client/models/range.py index db03d57..094269e 100644 --- a/trieve_py_client/models/range.py +++ b/trieve_py_client/models/range.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/range_condition.py b/trieve_py_client/models/range_condition.py index 50ffbbc..e14db54 100644 --- a/trieve_py_client/models/range_condition.py +++ b/trieve_py_client/models/range_condition.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/recommend_chunks_request.py b/trieve_py_client/models/recommend_chunks_request.py index 1ee617b..f62bdb0 100644 --- a/trieve_py_client/models/recommend_chunks_request.py +++ b/trieve_py_client/models/recommend_chunks_request.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,9 +35,10 @@ class RecommendChunksRequest(BaseModel): negative_tracking_ids: Optional[List[StrictStr]] = Field(default=None, description="The tracking_ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks.") positive_chunk_ids: Optional[List[StrictStr]] = Field(default=None, description="The ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.") positive_tracking_ids: Optional[List[StrictStr]] = Field(default=None, description="The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.") + recommend_type: Optional[StrictStr] = Field(default=None, description="The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`.") slim_chunks: Optional[StrictBool] = Field(default=None, description="Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.") strategy: Optional[StrictStr] = Field(default=None, description="Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives.") - __properties: ClassVar[List[str]] = ["filters", "limit", "negative_chunk_ids", "negative_tracking_ids", "positive_chunk_ids", "positive_tracking_ids", "slim_chunks", "strategy"] + __properties: ClassVar[List[str]] = ["filters", "limit", "negative_chunk_ids", "negative_tracking_ids", "positive_chunk_ids", "positive_tracking_ids", "recommend_type", "slim_chunks", "strategy"] model_config = ConfigDict( populate_by_name=True, @@ -111,6 +112,11 @@ def to_dict(self) -> Dict[str, Any]: if self.positive_tracking_ids is None and "positive_tracking_ids" in self.model_fields_set: _dict['positive_tracking_ids'] = None + # set to None if recommend_type (nullable) is None + # and model_fields_set contains the field + if self.recommend_type is None and "recommend_type" in self.model_fields_set: + _dict['recommend_type'] = None + # set to None if slim_chunks (nullable) is None # and model_fields_set contains the field if self.slim_chunks is None and "slim_chunks" in self.model_fields_set: @@ -139,6 +145,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "negative_tracking_ids": obj.get("negative_tracking_ids"), "positive_chunk_ids": obj.get("positive_chunk_ids"), "positive_tracking_ids": obj.get("positive_tracking_ids"), + "recommend_type": obj.get("recommend_type"), "slim_chunks": obj.get("slim_chunks"), "strategy": obj.get("strategy") }) diff --git a/trieve_py_client/models/recommend_group_chunks_request.py b/trieve_py_client/models/recommend_group_chunks_request.py index c2f781d..a88ec28 100644 --- a/trieve_py_client/models/recommend_group_chunks_request.py +++ b/trieve_py_client/models/recommend_group_chunks_request.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,9 +36,10 @@ class RecommendGroupChunksRequest(BaseModel): negative_group_tracking_ids: Optional[List[StrictStr]] = Field(default=None, description="The ids of the groups to be used as negative examples for the recommendation. The groups in this array will be used to filter out similar groups.") positive_group_ids: Optional[List[StrictStr]] = Field(default=None, description="The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups.") positive_group_tracking_ids: Optional[List[StrictStr]] = Field(default=None, description="The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups.") + recommend_type: Optional[StrictStr] = Field(default=None, description="The type of recommendation to make. This lets you choose whether to recommend based off of `semantic` or `fulltext` similarity. The default is `semantic`.") slim_chunks: Optional[StrictBool] = Field(default=None, description="Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.") strategy: Optional[StrictStr] = Field(default=None, description="Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives.") - __properties: ClassVar[List[str]] = ["filters", "group_size", "limit", "negative_group_ids", "negative_group_tracking_ids", "positive_group_ids", "positive_group_tracking_ids", "slim_chunks", "strategy"] + __properties: ClassVar[List[str]] = ["filters", "group_size", "limit", "negative_group_ids", "negative_group_tracking_ids", "positive_group_ids", "positive_group_tracking_ids", "recommend_type", "slim_chunks", "strategy"] model_config = ConfigDict( populate_by_name=True, @@ -117,6 +118,11 @@ def to_dict(self) -> Dict[str, Any]: if self.positive_group_tracking_ids is None and "positive_group_tracking_ids" in self.model_fields_set: _dict['positive_group_tracking_ids'] = None + # set to None if recommend_type (nullable) is None + # and model_fields_set contains the field + if self.recommend_type is None and "recommend_type" in self.model_fields_set: + _dict['recommend_type'] = None + # set to None if slim_chunks (nullable) is None # and model_fields_set contains the field if self.slim_chunks is None and "slim_chunks" in self.model_fields_set: @@ -146,6 +152,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "negative_group_tracking_ids": obj.get("negative_group_tracking_ids"), "positive_group_ids": obj.get("positive_group_ids"), "positive_group_tracking_ids": obj.get("positive_group_tracking_ids"), + "recommend_type": obj.get("recommend_type"), "slim_chunks": obj.get("slim_chunks"), "strategy": obj.get("strategy") }) diff --git a/trieve_py_client/models/regenerate_message_data.py b/trieve_py_client/models/regenerate_message_data.py index 923eb0e..0dcf3cd 100644 --- a/trieve_py_client/models/regenerate_message_data.py +++ b/trieve_py_client/models/regenerate_message_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/return_queued_chunk.py b/trieve_py_client/models/return_queued_chunk.py index 0ca6f5e..0b500e6 100644 --- a/trieve_py_client/models/return_queued_chunk.py +++ b/trieve_py_client/models/return_queued_chunk.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/score_chunk_dto.py b/trieve_py_client/models/score_chunk_dto.py index 0736726..259f099 100644 --- a/trieve_py_client/models/score_chunk_dto.py +++ b/trieve_py_client/models/score_chunk_dto.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/score_slim_chunks.py b/trieve_py_client/models/score_slim_chunks.py index 4bfe7b9..9f40d89 100644 --- a/trieve_py_client/models/score_slim_chunks.py +++ b/trieve_py_client/models/score_slim_chunks.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/search_chunk_data.py b/trieve_py_client/models/search_chunk_data.py index 690802b..d29a80d 100644 --- a/trieve_py_client/models/search_chunk_data.py +++ b/trieve_py_client/models/search_chunk_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/search_chunk_query_response_body.py b/trieve_py_client/models/search_chunk_query_response_body.py index 6ef4581..912f20e 100644 --- a/trieve_py_client/models/search_chunk_query_response_body.py +++ b/trieve_py_client/models/search_chunk_query_response_body.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/search_over_groups_data.py b/trieve_py_client/models/search_over_groups_data.py index 722d90e..7ee547f 100644 --- a/trieve_py_client/models/search_over_groups_data.py +++ b/trieve_py_client/models/search_over_groups_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/search_over_groups_results.py b/trieve_py_client/models/search_over_groups_results.py index 048c4fc..d577842 100644 --- a/trieve_py_client/models/search_over_groups_results.py +++ b/trieve_py_client/models/search_over_groups_results.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/search_over_groups_slim_results.py b/trieve_py_client/models/search_over_groups_slim_results.py index 408fa71..a3debab 100644 --- a/trieve_py_client/models/search_over_groups_slim_results.py +++ b/trieve_py_client/models/search_over_groups_slim_results.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/search_slim_chunk_query_response_body.py b/trieve_py_client/models/search_slim_chunk_query_response_body.py index 8040685..8deda47 100644 --- a/trieve_py_client/models/search_slim_chunk_query_response_body.py +++ b/trieve_py_client/models/search_slim_chunk_query_response_body.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/search_within_group_data.py b/trieve_py_client/models/search_within_group_data.py index 0bcc26a..138b139 100644 --- a/trieve_py_client/models/search_within_group_data.py +++ b/trieve_py_client/models/search_within_group_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/search_within_group_results.py b/trieve_py_client/models/search_within_group_results.py index 536a7ab..6992776 100644 --- a/trieve_py_client/models/search_within_group_results.py +++ b/trieve_py_client/models/search_within_group_results.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/search_within_group_slim_results.py b/trieve_py_client/models/search_within_group_slim_results.py index f8bfaf4..3020086 100644 --- a/trieve_py_client/models/search_within_group_slim_results.py +++ b/trieve_py_client/models/search_within_group_slim_results.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/set_user_api_key_request.py b/trieve_py_client/models/set_user_api_key_request.py index 57b9286..b390011 100644 --- a/trieve_py_client/models/set_user_api_key_request.py +++ b/trieve_py_client/models/set_user_api_key_request.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/set_user_api_key_response.py b/trieve_py_client/models/set_user_api_key_response.py index 178377c..d124abe 100644 --- a/trieve_py_client/models/set_user_api_key_response.py +++ b/trieve_py_client/models/set_user_api_key_response.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/single_queued_chunk_response.py b/trieve_py_client/models/single_queued_chunk_response.py index 85b3956..0465a06 100644 --- a/trieve_py_client/models/single_queued_chunk_response.py +++ b/trieve_py_client/models/single_queued_chunk_response.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/slim_chunk_metadata.py b/trieve_py_client/models/slim_chunk_metadata.py index 598a218..02a652e 100644 --- a/trieve_py_client/models/slim_chunk_metadata.py +++ b/trieve_py_client/models/slim_chunk_metadata.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/slim_chunk_metadata_with_score.py b/trieve_py_client/models/slim_chunk_metadata_with_score.py index f2efcdc..cf14ede 100644 --- a/trieve_py_client/models/slim_chunk_metadata_with_score.py +++ b/trieve_py_client/models/slim_chunk_metadata_with_score.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/slim_group.py b/trieve_py_client/models/slim_group.py index 3b29557..e6d0003 100644 --- a/trieve_py_client/models/slim_group.py +++ b/trieve_py_client/models/slim_group.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/slim_user.py b/trieve_py_client/models/slim_user.py index cc49f05..b56a129 100644 --- a/trieve_py_client/models/slim_user.py +++ b/trieve_py_client/models/slim_user.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/stripe_plan.py b/trieve_py_client/models/stripe_plan.py index 9fcaa04..e83d444 100644 --- a/trieve_py_client/models/stripe_plan.py +++ b/trieve_py_client/models/stripe_plan.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/suggested_queries_request.py b/trieve_py_client/models/suggested_queries_request.py index 17d3821..a3ab14a 100644 --- a/trieve_py_client/models/suggested_queries_request.py +++ b/trieve_py_client/models/suggested_queries_request.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/suggested_queries_response.py b/trieve_py_client/models/suggested_queries_response.py index 4ab803a..4df97fd 100644 --- a/trieve_py_client/models/suggested_queries_response.py +++ b/trieve_py_client/models/suggested_queries_response.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/topic.py b/trieve_py_client/models/topic.py index 750cf42..13bc48a 100644 --- a/trieve_py_client/models/topic.py +++ b/trieve_py_client/models/topic.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/update_chunk_by_tracking_id_data.py b/trieve_py_client/models/update_chunk_by_tracking_id_data.py index fa05e86..fd23ecf 100644 --- a/trieve_py_client/models/update_chunk_by_tracking_id_data.py +++ b/trieve_py_client/models/update_chunk_by_tracking_id_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/update_chunk_data.py b/trieve_py_client/models/update_chunk_data.py index 878cf32..26dfe14 100644 --- a/trieve_py_client/models/update_chunk_data.py +++ b/trieve_py_client/models/update_chunk_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/update_chunk_group_data.py b/trieve_py_client/models/update_chunk_group_data.py index 9576d49..694bdc4 100644 --- a/trieve_py_client/models/update_chunk_group_data.py +++ b/trieve_py_client/models/update_chunk_group_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/update_dataset_request.py b/trieve_py_client/models/update_dataset_request.py index d104856..4b17a3c 100644 --- a/trieve_py_client/models/update_dataset_request.py +++ b/trieve_py_client/models/update_dataset_request.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,10 +28,11 @@ class UpdateDatasetRequest(BaseModel): UpdateDatasetRequest """ # noqa: E501 client_configuration: Optional[Any] = Field(default=None, description="The new client configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the client configuration will not be updated.") - dataset_id: StrictStr = Field(description="The id of the dataset you want to update.") + dataset_id: Optional[StrictStr] = Field(default=None, description="The id of the dataset you want to update.") dataset_name: Optional[StrictStr] = Field(default=None, description="The new name of the dataset. Must be unique within the organization. If not provided, the name will not be updated.") server_configuration: Optional[Any] = Field(default=None, description="The new server configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the server configuration will not be updated.") - __properties: ClassVar[List[str]] = ["client_configuration", "dataset_id", "dataset_name", "server_configuration"] + tracking_id: Optional[StrictStr] = Field(default=None, description="tracking ID for the dataset. Can be used to track the dataset in external systems.") + __properties: ClassVar[List[str]] = ["client_configuration", "dataset_id", "dataset_name", "server_configuration", "tracking_id"] model_config = ConfigDict( populate_by_name=True, @@ -77,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: if self.client_configuration is None and "client_configuration" in self.model_fields_set: _dict['client_configuration'] = None + # set to None if dataset_id (nullable) is None + # and model_fields_set contains the field + if self.dataset_id is None and "dataset_id" in self.model_fields_set: + _dict['dataset_id'] = None + # set to None if dataset_name (nullable) is None # and model_fields_set contains the field if self.dataset_name is None and "dataset_name" in self.model_fields_set: @@ -87,6 +93,11 @@ def to_dict(self) -> Dict[str, Any]: if self.server_configuration is None and "server_configuration" in self.model_fields_set: _dict['server_configuration'] = None + # set to None if tracking_id (nullable) is None + # and model_fields_set contains the field + if self.tracking_id is None and "tracking_id" in self.model_fields_set: + _dict['tracking_id'] = None + return _dict @classmethod @@ -102,7 +113,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "client_configuration": obj.get("client_configuration"), "dataset_id": obj.get("dataset_id"), "dataset_name": obj.get("dataset_name"), - "server_configuration": obj.get("server_configuration") + "server_configuration": obj.get("server_configuration"), + "tracking_id": obj.get("tracking_id") }) return _obj diff --git a/trieve_py_client/models/update_group_by_tracking_id_data.py b/trieve_py_client/models/update_group_by_tracking_id_data.py index 4acb44c..e6dd63e 100644 --- a/trieve_py_client/models/update_group_by_tracking_id_data.py +++ b/trieve_py_client/models/update_group_by_tracking_id_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/update_organization_data.py b/trieve_py_client/models/update_organization_data.py index 80a32a3..c4ec1d2 100644 --- a/trieve_py_client/models/update_organization_data.py +++ b/trieve_py_client/models/update_organization_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/update_topic_data.py b/trieve_py_client/models/update_topic_data.py index 8af2116..eab4885 100644 --- a/trieve_py_client/models/update_topic_data.py +++ b/trieve_py_client/models/update_topic_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/update_user_data.py b/trieve_py_client/models/update_user_data.py index 6679eaa..823e6ef 100644 --- a/trieve_py_client/models/update_user_data.py +++ b/trieve_py_client/models/update_user_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/upload_file_data.py b/trieve_py_client/models/upload_file_data.py index be4d766..eba8361 100644 --- a/trieve_py_client/models/upload_file_data.py +++ b/trieve_py_client/models/upload_file_data.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/upload_file_result.py b/trieve_py_client/models/upload_file_result.py index 62a8079..713fa72 100644 --- a/trieve_py_client/models/upload_file_result.py +++ b/trieve_py_client/models/upload_file_result.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/models/user_organization.py b/trieve_py_client/models/user_organization.py index ffcaf4d..2db49bd 100644 --- a/trieve_py_client/models/user_organization.py +++ b/trieve_py_client/models/user_organization.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/trieve_py_client/rest.py b/trieve_py_client/rest.py index 3b540ab..8ef2ca3 100644 --- a/trieve_py_client/rest.py +++ b/trieve_py_client/rest.py @@ -5,7 +5,7 @@ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API. - The version of the OpenAPI document: 0.6.7 + The version of the OpenAPI document: 0.6.9 Contact: developers@trieve.ai Generated by OpenAPI Generator (https://openapi-generator.tech)