From 4dcc3bedba53d6f18f22a92a8f11a6e6d576c8b1 Mon Sep 17 00:00:00 2001 From: KDR Date: Tue, 28 Jul 2026 18:37:14 -0700 Subject: [PATCH 1/2] feat: Query API for SQL over extracted entities (sync spec v0.7.15) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Regenerated from spec v0.7.15 (cloudglue/cloudglue-api-spec#107) and bumped to 0.7.20. Generated (cloudglue/sdk): - New QueryApi: run_query, list_queries, get_query_schema, get_query, cancel_query_export with RunQueryRequest/QueryResult/QueryListItem/ QueryListResponse/QuerySchema(+Table/Collection)/QueryUsage models - Response.output items are now a oneOf of message, function_call, and query_call - DataConnectorFile gains nullable thumbnail_url (ephemeral provider preview URL); /files/{file_id}/sync description refreshed Wrapper (cloudglue/client): - New Query resource (cg.query): run (sql or natural-language), get_schema(collections) joining IDs into the comma-separated param, list, get, cancel, and wait_for_ready for background exports — registered in client/main.py and resources/__init__ Verified against the STAGING API (12/12): schema introspection over the seeded entities collection; SQL and natural-language queries (compiled SQL returned); dry_run; non-SELECT and face-analysis rejections; stored run list/replay; background export cancel; connector listings parse with optional thumbnail_url. --- cloudglue/client/main.py | 4 + cloudglue/client/resources/__init__.py | 2 + cloudglue/client/resources/query.py | 233 +++ cloudglue/sdk/README.md | 22 +- cloudglue/sdk/__init__.py | 18 +- cloudglue/sdk/api/__init__.py | 1 + cloudglue/sdk/api/chat_api.py | 2 +- cloudglue/sdk/api/collections_api.py | 2 +- cloudglue/sdk/api/data_connectors_api.py | 2 +- cloudglue/sdk/api/deep_search_api.py | 2 +- cloudglue/sdk/api/describe_api.py | 2 +- cloudglue/sdk/api/extract_api.py | 2 +- cloudglue/sdk/api/face_detection_api.py | 2 +- cloudglue/sdk/api/face_match_api.py | 2 +- cloudglue/sdk/api/file_segments_api.py | 2 +- cloudglue/sdk/api/files_api.py | 8 +- cloudglue/sdk/api/frames_api.py | 2 +- cloudglue/sdk/api/query_api.py | 1496 +++++++++++++++++ cloudglue/sdk/api/response_api.py | 2 +- cloudglue/sdk/api/search_api.py | 2 +- cloudglue/sdk/api/segmentations_api.py | 2 +- cloudglue/sdk/api/segments_api.py | 2 +- cloudglue/sdk/api/share_api.py | 2 +- cloudglue/sdk/api/tags_api.py | 2 +- cloudglue/sdk/api/thumbnails_api.py | 2 +- cloudglue/sdk/api/transcribe_api.py | 2 +- cloudglue/sdk/api/webhooks_api.py | 2 +- cloudglue/sdk/api_client.py | 2 +- cloudglue/sdk/configuration.py | 4 +- cloudglue/sdk/exceptions.py | 2 +- cloudglue/sdk/models/__init__.py | 17 +- cloudglue/sdk/models/add_collection_file.py | 2 +- .../models/add_you_tube_collection_file.py | 2 +- cloudglue/sdk/models/chapter.py | 2 +- cloudglue/sdk/models/chat_completion_list.py | 2 +- .../models/chat_completion_list_data_inner.py | 2 +- ...ompletion_list_data_inner_choices_inner.py | 2 +- .../chat_completion_list_data_inner_usage.py | 2 +- .../sdk/models/chat_completion_payload.py | 2 +- .../sdk/models/chat_completion_request.py | 2 +- .../models/chat_completion_request_filter.py | 2 +- ...at_completion_request_filter_file_inner.py | 2 +- ...ompletion_request_filter_metadata_inner.py | 2 +- ...pletion_request_filter_video_info_inner.py | 2 +- .../sdk/models/chat_completion_response.py | 2 +- .../chat_completion_response_choices_inner.py | 2 +- ..._response_choices_inner_citations_inner.py | 2 +- ...s_inner_citations_inner_all_of_end_time.py | 2 +- ...ons_inner_all_of_relevant_sources_inner.py | 2 +- ...inner_citations_inner_all_of_start_time.py | 2 +- .../models/chat_completion_response_usage.py | 2 +- cloudglue/sdk/models/chat_message.py | 2 +- cloudglue/sdk/models/collection.py | 2 +- cloudglue/sdk/models/collection_delete.py | 2 +- .../sdk/models/collection_describe_config.py | 2 +- .../sdk/models/collection_entities_list.py | 2 +- .../collection_entities_list_data_inner.py | 2 +- ...ollection_entities_list_data_inner_data.py | 2 +- ..._data_inner_data_segment_entities_inner.py | 2 +- .../sdk/models/collection_extract_config.py | 2 +- .../collection_face_detection_config.py | 2 +- ...etection_config_frame_extraction_config.py | 2 +- ..._frame_extraction_config_uniform_config.py | 2 +- ...face_detection_config_thumbnails_config.py | 2 +- cloudglue/sdk/models/collection_file.py | 2 +- .../sdk/models/collection_file_delete.py | 2 +- cloudglue/sdk/models/collection_file_list.py | 2 +- .../models/collection_file_segmentation.py | 2 +- cloudglue/sdk/models/collection_list.py | 2 +- .../collection_media_descriptions_list.py | 2 +- ...tion_media_descriptions_list_data_inner.py | 2 +- ...media_descriptions_list_data_inner_data.py | 2 +- .../collection_rich_transcripts_list.py | 2 +- ...ection_rich_transcripts_list_data_inner.py | 2 +- ...n_rich_transcripts_list_data_inner_data.py | 2 +- .../models/collection_transcribe_config.py | 2 +- cloudglue/sdk/models/collection_update.py | 2 +- .../sdk/models/create_deep_search_request.py | 2 +- ...eate_deep_search_request_knowledge_base.py | 2 +- .../create_file_frame_extraction_request.py | 2 +- .../create_file_segmentation_request.py | 2 +- .../sdk/models/create_response_request.py | 2 +- .../models/create_response_request_input.py | 2 +- .../models/create_shareable_asset_request.py | 2 +- .../sdk/models/create_video_tag_request.py | 2 +- cloudglue/sdk/models/data_connector.py | 2 +- cloudglue/sdk/models/data_connector_file.py | 11 +- .../sdk/models/data_connector_file_list.py | 2 +- .../models/data_connector_file_metadata.py | 2 +- cloudglue/sdk/models/data_connector_list.py | 2 +- cloudglue/sdk/models/deep_search.py | 2 +- cloudglue/sdk/models/deep_search_error.py | 2 +- .../sdk/models/deep_search_kb_collections.py | 2 +- .../sdk/models/deep_search_kb_default.py | 2 +- cloudglue/sdk/models/deep_search_kb_files.py | 2 +- cloudglue/sdk/models/deep_search_list.py | 2 +- cloudglue/sdk/models/deep_search_list_item.py | 2 +- cloudglue/sdk/models/deep_search_result.py | 2 +- .../models/deep_search_search_query_plan.py | 2 +- cloudglue/sdk/models/deep_search_usage.py | 2 +- .../sdk/models/default_segmentation_config.py | 2 +- .../sdk/models/delete_deep_search_result.py | 2 +- .../sdk/models/delete_describe200_response.py | 2 +- .../sdk/models/delete_extract200_response.py | 2 +- .../delete_face_detection200_response.py | 2 +- .../models/delete_face_match200_response.py | 2 +- .../delete_frame_extraction200_response.py | 2 +- .../sdk/models/delete_response_result.py | 2 +- .../models/delete_segmentation200_response.py | 2 +- .../sdk/models/delete_segments200_response.py | 2 +- .../delete_shareable_asset200_response.py | 2 +- .../sdk/models/delete_tag200_response.py | 2 +- cloudglue/sdk/models/describe.py | 2 +- cloudglue/sdk/models/describe_config.py | 2 +- cloudglue/sdk/models/describe_data.py | 2 +- ...cribe_data_all_of_segment_summary_inner.py | 2 +- .../sdk/models/describe_describe_config.py | 2 +- cloudglue/sdk/models/describe_list.py | 2 +- cloudglue/sdk/models/describe_output.py | 2 +- cloudglue/sdk/models/describe_output_part.py | 2 +- cloudglue/sdk/models/detected_face.py | 2 +- .../sdk/models/dropbox_source_metadata.py | 2 +- .../dropbox_source_metadata_media_info.py | 2 +- .../models/entity_backed_knowledge_config.py | 2 +- .../sdk/models/entity_collection_config.py | 2 +- cloudglue/sdk/models/error.py | 2 +- cloudglue/sdk/models/extract.py | 2 +- .../sdk/models/extract_chapters_inner.py | 2 +- cloudglue/sdk/models/extract_data.py | 2 +- .../extract_data_segment_entities_inner.py | 2 +- .../sdk/models/extract_extract_config.py | 2 +- cloudglue/sdk/models/extract_list.py | 2 +- cloudglue/sdk/models/extract_shots_inner.py | 2 +- cloudglue/sdk/models/face_bounding_box.py | 2 +- cloudglue/sdk/models/face_detection.py | 2 +- cloudglue/sdk/models/face_detection_data.py | 2 +- .../models/face_detection_list_response.py | 2 +- ...ace_detection_list_response_all_of_data.py | 2 +- .../sdk/models/face_detection_request.py | 2 +- cloudglue/sdk/models/face_group_result.py | 2 +- cloudglue/sdk/models/face_match.py | 2 +- cloudglue/sdk/models/face_match_data.py | 2 +- .../sdk/models/face_match_list_response.py | 2 +- .../face_match_list_response_all_of_data.py | 2 +- cloudglue/sdk/models/face_match_request.py | 2 +- cloudglue/sdk/models/face_match_result.py | 2 +- cloudglue/sdk/models/face_search_result.py | 2 +- cloudglue/sdk/models/file.py | 2 +- cloudglue/sdk/models/file_delete.py | 2 +- cloudglue/sdk/models/file_entities.py | 2 +- cloudglue/sdk/models/file_face_detections.py | 2 +- .../file_face_detections_faces_inner.py | 2 +- ...etections_faces_inner_face_bounding_box.py | 2 +- cloudglue/sdk/models/file_list.py | 2 +- cloudglue/sdk/models/file_media_info.py | 2 +- cloudglue/sdk/models/file_search_result.py | 2 +- cloudglue/sdk/models/file_segment.py | 2 +- .../sdk/models/file_segment_list_response.py | 2 +- .../sdk/models/file_segmentation_config.py | 2 +- cloudglue/sdk/models/file_update.py | 2 +- cloudglue/sdk/models/file_video_info.py | 2 +- cloudglue/sdk/models/frame_extraction.py | 2 +- .../sdk/models/frame_extraction_config.py | 2 +- cloudglue/sdk/models/frame_extraction_data.py | 2 +- .../frame_extraction_data_frames_inner.py | 2 +- cloudglue/sdk/models/frame_extraction_list.py | 2 +- .../frame_extraction_list_data_inner.py | 2 +- .../frame_extraction_thumbnails_config.py | 2 +- .../models/frame_extraction_uniform_config.py | 2 +- cloudglue/sdk/models/gong_source_metadata.py | 2 +- .../gong_source_metadata_parties_inner.py | 2 +- .../gong_source_metadata_topics_inner.py | 2 +- .../gong_source_metadata_trackers_inner.py | 2 +- .../models/google_drive_source_metadata.py | 2 +- ...ive_source_metadata_last_modifying_user.py | 2 +- ...ogle_drive_source_metadata_owners_inner.py | 2 +- ...ve_source_metadata_video_media_metadata.py | 2 +- cloudglue/sdk/models/grain_source_metadata.py | 2 +- ...n_source_metadata_ai_action_items_inner.py | 2 +- ...metadata_ai_action_items_inner_assignee.py | 2 +- .../grain_source_metadata_ai_summary.py | 2 +- .../grain_source_metadata_calendar_event.py | 2 +- .../models/grain_source_metadata_hubspot.py | 2 +- .../grain_source_metadata_meeting_type.py | 2 +- ...rain_source_metadata_participants_inner.py | 2 +- .../grain_source_metadata_teams_inner.py | 2 +- .../sdk/models/iconik_source_metadata.py | 2 +- cloudglue/sdk/models/keyframe_config.py | 2 +- .../sdk/models/knowledge_base_collections.py | 2 +- .../sdk/models/knowledge_base_default.py | 2 +- cloudglue/sdk/models/knowledge_base_files.py | 2 +- .../sdk/models/list_video_tags_response.py | 2 +- cloudglue/sdk/models/media_description.py | 2 +- cloudglue/sdk/models/narrative_config.py | 2 +- cloudglue/sdk/models/new_collection.py | 2 +- .../models/new_collection_describe_config.py | 2 +- .../models/new_collection_extract_config.py | 2 +- .../new_collection_face_detection_config.py | 2 +- .../new_collection_transcribe_config.py | 2 +- cloudglue/sdk/models/new_describe.py | 2 +- .../new_describe_all_of_participants.py | 2 +- cloudglue/sdk/models/new_extract.py | 2 +- cloudglue/sdk/models/new_segments.py | 2 +- cloudglue/sdk/models/new_transcribe.py | 2 +- cloudglue/sdk/models/pagination_response.py | 2 +- cloudglue/sdk/models/query_list_item.py | 143 ++ cloudglue/sdk/models/query_list_response.py | 113 ++ cloudglue/sdk/models/query_result.py | 205 +++ .../sdk/models/query_result_columns_inner.py | 89 + cloudglue/sdk/models/query_result_error.py | 89 + cloudglue/sdk/models/query_schema.py | 117 ++ .../sdk/models/query_schema_collection.py | 111 ++ .../query_schema_collection_fields_inner.py | 101 ++ cloudglue/sdk/models/query_schema_table.py | 99 ++ .../query_schema_table_columns_inner.py | 91 + cloudglue/sdk/models/query_usage.py | 95 ++ .../sdk/models/recall_source_metadata.py | 2 +- cloudglue/sdk/models/response.py | 8 +- cloudglue/sdk/models/response_annotation.py | 2 +- cloudglue/sdk/models/response_error.py | 2 +- .../sdk/models/response_function_call.py | 105 ++ .../sdk/models/response_input_content.py | 2 +- .../sdk/models/response_input_message.py | 2 +- .../sdk/models/response_knowledge_base.py | 2 +- cloudglue/sdk/models/response_list.py | 2 +- cloudglue/sdk/models/response_list_item.py | 2 +- .../sdk/models/response_output_content.py | 2 +- cloudglue/sdk/models/response_output_inner.py | 151 ++ .../sdk/models/response_output_message.py | 2 +- cloudglue/sdk/models/response_query_call.py | 131 ++ .../sdk/models/response_tool_definition.py | 2 +- cloudglue/sdk/models/response_usage.py | 2 +- cloudglue/sdk/models/rich_transcript.py | 2 +- cloudglue/sdk/models/run_query_request.py | 110 ++ cloudglue/sdk/models/search_filter.py | 2 +- .../sdk/models/search_filter_criteria.py | 2 +- .../sdk/models/search_filter_file_inner.py | 2 +- .../models/search_filter_metadata_inner.py | 2 +- .../models/search_filter_video_info_inner.py | 2 +- cloudglue/sdk/models/search_request.py | 2 +- .../sdk/models/search_request_source_image.py | 2 +- cloudglue/sdk/models/search_response.py | 2 +- cloudglue/sdk/models/search_response_list.py | 2 +- .../models/search_response_list_data_inner.py | 2 +- .../models/search_response_results_inner.py | 2 +- cloudglue/sdk/models/search_tag_response.py | 2 +- cloudglue/sdk/models/segment.py | 2 +- cloudglue/sdk/models/segment_describe.py | 2 +- cloudglue/sdk/models/segment_describe_data.py | 2 +- .../sdk/models/segment_describe_json_data.py | 2 +- .../models/segment_describe_list_response.py | 2 +- .../models/segment_describe_markdown_data.py | 2 +- .../models/segment_describe_output_entry.py | 2 +- .../models/segment_describe_speech_entry.py | 2 +- cloudglue/sdk/models/segment_group_result.py | 2 +- cloudglue/sdk/models/segment_search_result.py | 2 +- .../segment_search_result_keyframes_inner.py | 2 +- .../segment_search_result_scene_text_inner.py | 2 +- .../segment_search_result_speech_inner.py | 2 +- ..._search_result_visual_description_inner.py | 2 +- cloudglue/sdk/models/segmentation.py | 2 +- cloudglue/sdk/models/segmentation_config.py | 2 +- cloudglue/sdk/models/segmentation_data.py | 2 +- .../segmentation_data_segments_inner.py | 2 +- cloudglue/sdk/models/segmentation_list.py | 2 +- .../sdk/models/segmentation_list_item.py | 2 +- .../sdk/models/segmentation_manual_config.py | 2 +- ...gmentation_manual_config_segments_inner.py | 2 +- .../segmentation_shot_detector_config.py | 2 +- .../sdk/models/segmentation_uniform_config.py | 2 +- cloudglue/sdk/models/segments.py | 2 +- cloudglue/sdk/models/segments_list.py | 2 +- cloudglue/sdk/models/segments_list_item.py | 2 +- cloudglue/sdk/models/shareable_asset.py | 2 +- .../models/shareable_asset_list_response.py | 2 +- cloudglue/sdk/models/shot.py | 2 +- cloudglue/sdk/models/shot_config.py | 2 +- cloudglue/sdk/models/source_image.py | 2 +- cloudglue/sdk/models/source_metadata.py | 2 +- .../sdk/models/source_metadata_response.py | 2 +- cloudglue/sdk/models/speech_output_part.py | 2 +- .../sync_data_connector_file_request.py | 2 +- .../sdk/models/sync_file_from_url_request.py | 2 +- cloudglue/sdk/models/thumbnail.py | 2 +- cloudglue/sdk/models/thumbnail_list.py | 2 +- cloudglue/sdk/models/thumbnails_config.py | 2 +- cloudglue/sdk/models/transcribe.py | 2 +- cloudglue/sdk/models/transcribe_data.py | 2 +- ...cribe_data_all_of_segment_summary_inner.py | 2 +- cloudglue/sdk/models/transcribe_list.py | 2 +- .../models/transcribe_transcribe_config.py | 2 +- .../sdk/models/update_describe_request.py | 2 +- .../sdk/models/update_file_segment_request.py | 2 +- .../models/update_shareable_asset_request.py | 2 +- .../sdk/models/update_video_tag_request.py | 2 +- cloudglue/sdk/models/video_tag.py | 2 +- cloudglue/sdk/models/webhook.py | 2 +- .../sdk/models/webhook_create_request.py | 2 +- .../sdk/models/webhook_delete_response.py | 2 +- cloudglue/sdk/models/webhook_events.py | 2 +- cloudglue/sdk/models/webhook_list.py | 2 +- .../sdk/models/webhook_update_request.py | 2 +- cloudglue/sdk/models/word_timestamp.py | 2 +- cloudglue/sdk/models/zoom_source_metadata.py | 2 +- ...m_source_metadata_recording_files_inner.py | 2 +- cloudglue/sdk/rest.py | 2 +- pyproject.toml | 2 +- spec | 2 +- 308 files changed, 3840 insertions(+), 296 deletions(-) create mode 100644 cloudglue/client/resources/query.py create mode 100644 cloudglue/sdk/api/query_api.py create mode 100644 cloudglue/sdk/models/query_list_item.py create mode 100644 cloudglue/sdk/models/query_list_response.py create mode 100644 cloudglue/sdk/models/query_result.py create mode 100644 cloudglue/sdk/models/query_result_columns_inner.py create mode 100644 cloudglue/sdk/models/query_result_error.py create mode 100644 cloudglue/sdk/models/query_schema.py create mode 100644 cloudglue/sdk/models/query_schema_collection.py create mode 100644 cloudglue/sdk/models/query_schema_collection_fields_inner.py create mode 100644 cloudglue/sdk/models/query_schema_table.py create mode 100644 cloudglue/sdk/models/query_schema_table_columns_inner.py create mode 100644 cloudglue/sdk/models/query_usage.py create mode 100644 cloudglue/sdk/models/response_function_call.py create mode 100644 cloudglue/sdk/models/response_output_inner.py create mode 100644 cloudglue/sdk/models/response_query_call.py create mode 100644 cloudglue/sdk/models/run_query_request.py diff --git a/cloudglue/client/main.py b/cloudglue/client/main.py index ba687292..26b21cc9 100644 --- a/cloudglue/client/main.py +++ b/cloudglue/client/main.py @@ -22,6 +22,7 @@ from cloudglue.sdk.api.share_api import ShareApi from cloudglue.sdk.api.data_connectors_api import DataConnectorsApi from cloudglue.sdk.api.deep_search_api import DeepSearchApi +from cloudglue.sdk.api.query_api import QueryApi from cloudglue.sdk.configuration import Configuration from cloudglue.sdk.api_client import ApiClient @@ -46,6 +47,7 @@ Share, DataConnectors, DeepSearch, + Query, ) from cloudglue._version import __version__ @@ -99,6 +101,7 @@ def __init__( self.share_api = ShareApi(self.api_client) self.data_connectors_api = DataConnectorsApi(self.api_client) self.deep_search_api = DeepSearchApi(self.api_client) + self.query_api = QueryApi(self.api_client) # Set up resources with their respective API clients self.chat = Chat(self.chat_api) @@ -120,6 +123,7 @@ def __init__( self.share = Share(self.share_api) self.data_connectors = DataConnectors(self.data_connectors_api) self.deep_search = DeepSearch(self.deep_search_api) + self.query = Query(self.query_api) def close(self): """Close the API client.""" diff --git a/cloudglue/client/resources/__init__.py b/cloudglue/client/resources/__init__.py index f983c2aa..a008ac19 100644 --- a/cloudglue/client/resources/__init__.py +++ b/cloudglue/client/resources/__init__.py @@ -21,8 +21,10 @@ from cloudglue.client.resources.share import Share from cloudglue.client.resources.data_connectors import DataConnectors from cloudglue.client.resources.deep_search import DeepSearch +from cloudglue.client.resources.query import Query __all__ = [ + "Query", "CloudglueError", "Chat", "Completions", diff --git a/cloudglue/client/resources/query.py b/cloudglue/client/resources/query.py new file mode 100644 index 00000000..d89b4db9 --- /dev/null +++ b/cloudglue/client/resources/query.py @@ -0,0 +1,233 @@ +# cloudglue/client/resources/query.py +"""Query resource for Cloudglue API.""" +import time +from typing import List, Optional + +from cloudglue.sdk.models.run_query_request import RunQueryRequest +from cloudglue.sdk.rest import ApiException + +from cloudglue.client.resources.base import CloudglueError + + +class Query: + """Client for the Cloudglue Query API. + + Runs read-only SQL (or natural-language) queries over the structured data + extracted from collections, against three virtual tables — files, + entities, and segment_entities — built from each file's most recent + completed extraction. + """ + + def __init__(self, api): + """Initialize the Query client. + + Args: + api: The QueryApi instance. + """ + self.api = api + + def run( + self, + collections: List[str], + sql: Optional[str] = None, + query: Optional[str] = None, + format: Optional[str] = None, + max_rows: Optional[int] = None, + background: Optional[bool] = None, + dry_run: Optional[bool] = None, + ): + """Run a read-only SQL query over one or more collections. + + Provide exactly one of `sql` (2 credits) or `query` — a + natural-language question that Cloudglue compiles to SQL against the + same virtual schema (4 credits; the compiled statement is returned in + the result's `sql` field). Results are returned inline and stored, so + completed runs can be re-fetched via `get()`. + + Args: + collections: Collection IDs (1-20) whose extracted data to query. + sql: A single read-only SELECT statement over the virtual tables. + Exactly one of sql or query must be provided. + query: A natural-language question to run instead of sql. + format: Output format ('json', 'csv', 'jsonl') for exports. + max_rows: Maximum number of rows to return (1-10000). + background: Run as a background export; poll with `get()` (or + `wait_for_ready()`) and download via the result's + download_url. + dry_run: Validate (and for natural-language queries, compile) + without executing. + + Returns: + QueryResult object (inline rows, or export state when background). + + Raises: + CloudglueError: On invalid/rejected SQL (400), insufficient + credits (402), unknown collections (404), execution timeout + (408), oversized datasets (409), uncompilable natural-language + queries (422), or rate limits (429). + """ + try: + request = RunQueryRequest( + collections=collections, + sql=sql, + query=query, + format=format, + max_rows=max_rows, + background=background, + dry_run=dry_run, + ) + return self.api.run_query(run_query_request=request) + except ApiException as e: + raise CloudglueError(str(e), e.status, e.data, e.headers, e.reason) + except Exception as e: + raise CloudglueError(str(e)) + + def get_schema(self, collections: List[str]): + """Introspect the virtual tables and per-collection extracted fields. + + Returns column names, entity field names, types, and levels, plus each + collection's verbatim extract schema and prompt — use before writing a + query. + + Args: + collections: Collection IDs (1-20) to introspect. + + Returns: + QuerySchema object. + + Raises: + CloudglueError: If there is an error introspecting the schema. + """ + try: + return self.api.get_query_schema(collections=",".join(collections)) + except ApiException as e: + raise CloudglueError(str(e), e.status, e.data, e.headers, e.reason) + except Exception as e: + raise CloudglueError(str(e)) + + def list( + self, + limit: Optional[int] = None, + offset: Optional[int] = None, + status: Optional[str] = None, + created_before: Optional[str] = None, + created_after: Optional[str] = None, + ): + """List query runs with pagination and filtering. + + List items omit the columns and rows payloads — fetch an individual + run via `get()` for the full result. + + Args: + limit: Maximum number of runs to return (1-100). + offset: Number of runs to skip. + status: Filter by status ('completed', 'failed', 'in_progress', + 'cancelled'). + created_before: Filter runs created before a date (YYYY-MM-DD, UTC). + created_after: Filter runs created after a date (YYYY-MM-DD, UTC). + + Returns: + QueryListResponse object. + + Raises: + CloudglueError: If there is an error listing query runs. + """ + try: + return self.api.list_queries( + limit=limit, + offset=offset, + status=status, + created_before=created_before, + created_after=created_after, + ) + except ApiException as e: + raise CloudglueError(str(e), e.status, e.data, e.headers, e.reason) + except Exception as e: + raise CloudglueError(str(e)) + + def get(self, query_id: str): + """Retrieve a stored query run by ID, including its result rows. + + Results larger than the inline storage cap are replayed truncated + (`truncated: true`). + + Args: + query_id: The ID of the query run. + + Returns: + QueryResult object. + + Raises: + CloudglueError: If there is an error retrieving the run. + """ + try: + return self.api.get_query(id=query_id) + except ApiException as e: + raise CloudglueError(str(e), e.status, e.data, e.headers, e.reason) + except Exception as e: + raise CloudglueError(str(e)) + + def cancel(self, query_id: str): + """Cancel an in-progress background export. + + The run is marked cancelled synchronously, the export stream is + aborted mid-flight (the partial upload is discarded), and reserved + credits are refunded. A run that has already completed or failed is + returned unchanged. + + Args: + query_id: The ID of the query run to cancel. + + Returns: + QueryResult object. + + Raises: + CloudglueError: If there is an error cancelling the run. + """ + try: + return self.api.cancel_query_export(id=query_id) + except ApiException as e: + raise CloudglueError(str(e), e.status, e.data, e.headers, e.reason) + except Exception as e: + raise CloudglueError(str(e)) + + def wait_for_ready( + self, + query_id: str, + poll_interval: int = 5, + timeout: int = 180, + ): + """Wait for a background query run to reach a terminal state. + + Polls `get()` until the run is completed, failed, or cancelled. + + Args: + query_id: The ID of the query run to wait for. + poll_interval: How often to check the run status (in seconds). + timeout: Maximum time to wait (in seconds). + + Returns: + The final QueryResult object. + + Raises: + CloudglueError: If the run fails or the timeout is reached. + """ + try: + elapsed = 0 + while elapsed < timeout: + run = self.get(query_id) + if run.status in ("completed", "failed", "cancelled"): + if run.status == "failed": + raise CloudglueError(f"Query run failed: {query_id}") + return run + time.sleep(poll_interval) + elapsed += poll_interval + raise TimeoutError( + f"Query run did not complete within {timeout} seconds" + ) + except ApiException as e: + raise CloudglueError(str(e), e.status, e.data, e.headers, e.reason) + except CloudglueError: + raise + except Exception as e: + raise CloudglueError(str(e)) diff --git a/cloudglue/sdk/README.md b/cloudglue/sdk/README.md index ea65cc20..758e2192 100644 --- a/cloudglue/sdk/README.md +++ b/cloudglue/sdk/README.md @@ -3,7 +3,7 @@ API for Cloudglue This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 0.7.12 +- API version: 0.7.15 - Package version: 1.0.0 - Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -171,6 +171,11 @@ Class | Method | HTTP request | Description *FilesApi* | [**upload_file**](docs/FilesApi.md#upload_file) | **POST** /files | Upload a video, audio, or image file that can be used with Cloudglue services *FramesApi* | [**delete_frame_extraction**](docs/FramesApi.md#delete_frame_extraction) | **DELETE** /frames/{frame_extraction_id} | Delete a frame extraction *FramesApi* | [**get_frame_extraction**](docs/FramesApi.md#get_frame_extraction) | **GET** /frames/{frame_extraction_id} | Get a specific frame extraction +*QueryApi* | [**cancel_query_export**](docs/QueryApi.md#cancel_query_export) | **POST** /query/{id}/cancel | Cancel a background export +*QueryApi* | [**get_query**](docs/QueryApi.md#get_query) | **GET** /query/{id} | Get a query result by ID +*QueryApi* | [**get_query_schema**](docs/QueryApi.md#get_query_schema) | **GET** /query/schema | Get the query schema +*QueryApi* | [**list_queries**](docs/QueryApi.md#list_queries) | **GET** /query | List query results +*QueryApi* | [**run_query**](docs/QueryApi.md#run_query) | **POST** /query | Run a structured query *ResponseApi* | [**cancel_response**](docs/ResponseApi.md#cancel_response) | **POST** /responses/{id}/cancel | Cancel a response *ResponseApi* | [**create_response**](docs/ResponseApi.md#create_response) | **POST** /responses | Create a response *ResponseApi* | [**delete_response**](docs/ResponseApi.md#delete_response) | **DELETE** /responses/{id} | Delete a response @@ -387,20 +392,35 @@ Class | Method | HTTP request | Description - [NewSegments](docs/NewSegments.md) - [NewTranscribe](docs/NewTranscribe.md) - [PaginationResponse](docs/PaginationResponse.md) + - [QueryListItem](docs/QueryListItem.md) + - [QueryListResponse](docs/QueryListResponse.md) + - [QueryResult](docs/QueryResult.md) + - [QueryResultColumnsInner](docs/QueryResultColumnsInner.md) + - [QueryResultError](docs/QueryResultError.md) + - [QuerySchema](docs/QuerySchema.md) + - [QuerySchemaCollection](docs/QuerySchemaCollection.md) + - [QuerySchemaCollectionFieldsInner](docs/QuerySchemaCollectionFieldsInner.md) + - [QuerySchemaTable](docs/QuerySchemaTable.md) + - [QuerySchemaTableColumnsInner](docs/QuerySchemaTableColumnsInner.md) + - [QueryUsage](docs/QueryUsage.md) - [RecallSourceMetadata](docs/RecallSourceMetadata.md) - [Response](docs/Response.md) - [ResponseAnnotation](docs/ResponseAnnotation.md) - [ResponseError](docs/ResponseError.md) + - [ResponseFunctionCall](docs/ResponseFunctionCall.md) - [ResponseInputContent](docs/ResponseInputContent.md) - [ResponseInputMessage](docs/ResponseInputMessage.md) - [ResponseKnowledgeBase](docs/ResponseKnowledgeBase.md) - [ResponseList](docs/ResponseList.md) - [ResponseListItem](docs/ResponseListItem.md) - [ResponseOutputContent](docs/ResponseOutputContent.md) + - [ResponseOutputInner](docs/ResponseOutputInner.md) - [ResponseOutputMessage](docs/ResponseOutputMessage.md) + - [ResponseQueryCall](docs/ResponseQueryCall.md) - [ResponseToolDefinition](docs/ResponseToolDefinition.md) - [ResponseUsage](docs/ResponseUsage.md) - [RichTranscript](docs/RichTranscript.md) + - [RunQueryRequest](docs/RunQueryRequest.md) - [SearchFilter](docs/SearchFilter.md) - [SearchFilterCriteria](docs/SearchFilterCriteria.md) - [SearchFilterFileInner](docs/SearchFilterFileInner.md) diff --git a/cloudglue/sdk/__init__.py b/cloudglue/sdk/__init__.py index 8955caf3..2a687789 100644 --- a/cloudglue/sdk/__init__.py +++ b/cloudglue/sdk/__init__.py @@ -7,7 +7,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -28,6 +28,7 @@ from cloudglue.sdk.api.file_segments_api import FileSegmentsApi from cloudglue.sdk.api.files_api import FilesApi from cloudglue.sdk.api.frames_api import FramesApi +from cloudglue.sdk.api.query_api import QueryApi from cloudglue.sdk.api.response_api import ResponseApi from cloudglue.sdk.api.search_api import SearchApi from cloudglue.sdk.api.segmentations_api import SegmentationsApi @@ -224,20 +225,35 @@ from cloudglue.sdk.models.new_segments import NewSegments from cloudglue.sdk.models.new_transcribe import NewTranscribe from cloudglue.sdk.models.pagination_response import PaginationResponse +from cloudglue.sdk.models.query_list_item import QueryListItem +from cloudglue.sdk.models.query_list_response import QueryListResponse +from cloudglue.sdk.models.query_result import QueryResult +from cloudglue.sdk.models.query_result_columns_inner import QueryResultColumnsInner +from cloudglue.sdk.models.query_result_error import QueryResultError +from cloudglue.sdk.models.query_schema import QuerySchema +from cloudglue.sdk.models.query_schema_collection import QuerySchemaCollection +from cloudglue.sdk.models.query_schema_collection_fields_inner import QuerySchemaCollectionFieldsInner +from cloudglue.sdk.models.query_schema_table import QuerySchemaTable +from cloudglue.sdk.models.query_schema_table_columns_inner import QuerySchemaTableColumnsInner +from cloudglue.sdk.models.query_usage import QueryUsage from cloudglue.sdk.models.recall_source_metadata import RecallSourceMetadata from cloudglue.sdk.models.response import Response from cloudglue.sdk.models.response_annotation import ResponseAnnotation from cloudglue.sdk.models.response_error import ResponseError +from cloudglue.sdk.models.response_function_call import ResponseFunctionCall from cloudglue.sdk.models.response_input_content import ResponseInputContent from cloudglue.sdk.models.response_input_message import ResponseInputMessage from cloudglue.sdk.models.response_knowledge_base import ResponseKnowledgeBase from cloudglue.sdk.models.response_list import ResponseList from cloudglue.sdk.models.response_list_item import ResponseListItem from cloudglue.sdk.models.response_output_content import ResponseOutputContent +from cloudglue.sdk.models.response_output_inner import ResponseOutputInner from cloudglue.sdk.models.response_output_message import ResponseOutputMessage +from cloudglue.sdk.models.response_query_call import ResponseQueryCall from cloudglue.sdk.models.response_tool_definition import ResponseToolDefinition from cloudglue.sdk.models.response_usage import ResponseUsage from cloudglue.sdk.models.rich_transcript import RichTranscript +from cloudglue.sdk.models.run_query_request import RunQueryRequest from cloudglue.sdk.models.search_filter import SearchFilter from cloudglue.sdk.models.search_filter_criteria import SearchFilterCriteria from cloudglue.sdk.models.search_filter_file_inner import SearchFilterFileInner diff --git a/cloudglue/sdk/api/__init__.py b/cloudglue/sdk/api/__init__.py index 8984c2d8..58096d05 100644 --- a/cloudglue/sdk/api/__init__.py +++ b/cloudglue/sdk/api/__init__.py @@ -12,6 +12,7 @@ from cloudglue.sdk.api.file_segments_api import FileSegmentsApi from cloudglue.sdk.api.files_api import FilesApi from cloudglue.sdk.api.frames_api import FramesApi +from cloudglue.sdk.api.query_api import QueryApi from cloudglue.sdk.api.response_api import ResponseApi from cloudglue.sdk.api.search_api import SearchApi from cloudglue.sdk.api.segmentations_api import SegmentationsApi diff --git a/cloudglue/sdk/api/chat_api.py b/cloudglue/sdk/api/chat_api.py index 22d778c8..d1ba8dd6 100644 --- a/cloudglue/sdk/api/chat_api.py +++ b/cloudglue/sdk/api/chat_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/collections_api.py b/cloudglue/sdk/api/collections_api.py index 963e8f66..d193760c 100644 --- a/cloudglue/sdk/api/collections_api.py +++ b/cloudglue/sdk/api/collections_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/data_connectors_api.py b/cloudglue/sdk/api/data_connectors_api.py index af398798..cdf2c00f 100644 --- a/cloudglue/sdk/api/data_connectors_api.py +++ b/cloudglue/sdk/api/data_connectors_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/deep_search_api.py b/cloudglue/sdk/api/deep_search_api.py index b4aec075..674aa8c8 100644 --- a/cloudglue/sdk/api/deep_search_api.py +++ b/cloudglue/sdk/api/deep_search_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/describe_api.py b/cloudglue/sdk/api/describe_api.py index 8aa72762..102a96f1 100644 --- a/cloudglue/sdk/api/describe_api.py +++ b/cloudglue/sdk/api/describe_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/extract_api.py b/cloudglue/sdk/api/extract_api.py index d1386368..376963aa 100644 --- a/cloudglue/sdk/api/extract_api.py +++ b/cloudglue/sdk/api/extract_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/face_detection_api.py b/cloudglue/sdk/api/face_detection_api.py index 91a1f7af..33ca2889 100644 --- a/cloudglue/sdk/api/face_detection_api.py +++ b/cloudglue/sdk/api/face_detection_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/face_match_api.py b/cloudglue/sdk/api/face_match_api.py index bddd0759..d7e6901e 100644 --- a/cloudglue/sdk/api/face_match_api.py +++ b/cloudglue/sdk/api/face_match_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/file_segments_api.py b/cloudglue/sdk/api/file_segments_api.py index d8305bb3..c36307a3 100644 --- a/cloudglue/sdk/api/file_segments_api.py +++ b/cloudglue/sdk/api/file_segments_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/files_api.py b/cloudglue/sdk/api/files_api.py index ea7dce23..28276500 100644 --- a/cloudglue/sdk/api/files_api.py +++ b/cloudglue/sdk/api/files_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -4718,7 +4718,7 @@ def sync_file_source_metadata( ) -> File: """Refresh a file's connector source metadata - Re-fetches the file's source_metadata live from its data connector (google-drive, dropbox, zoom, gong, recall, grain, or iconik) and updates the stored value. If the file belongs to any metadata collections, their search documents are re-indexed with the refreshed metadata. Works for both metadata-only files and fully ingested connector files. Free — no media is downloaded or processed. + Re-fetches the file's source_metadata live from its data connector (google-drive, dropbox, zoom, gong, recall, grain, or iconik) and updates the stored value. If the file belongs to any metadata collections, their search documents are re-indexed with the refreshed metadata. For iconik files without a thumbnail, the asset's poster keyframe is also copied and set as the file's thumbnail_url. Works for both metadata-only files and fully ingested connector files. Free — no media is downloaded or processed. :param file_id: The ID of the file to sync (required) :type file_id: str @@ -4787,7 +4787,7 @@ def sync_file_source_metadata_with_http_info( ) -> ApiResponse[File]: """Refresh a file's connector source metadata - Re-fetches the file's source_metadata live from its data connector (google-drive, dropbox, zoom, gong, recall, grain, or iconik) and updates the stored value. If the file belongs to any metadata collections, their search documents are re-indexed with the refreshed metadata. Works for both metadata-only files and fully ingested connector files. Free — no media is downloaded or processed. + Re-fetches the file's source_metadata live from its data connector (google-drive, dropbox, zoom, gong, recall, grain, or iconik) and updates the stored value. If the file belongs to any metadata collections, their search documents are re-indexed with the refreshed metadata. For iconik files without a thumbnail, the asset's poster keyframe is also copied and set as the file's thumbnail_url. Works for both metadata-only files and fully ingested connector files. Free — no media is downloaded or processed. :param file_id: The ID of the file to sync (required) :type file_id: str @@ -4856,7 +4856,7 @@ def sync_file_source_metadata_without_preload_content( ) -> RESTResponseType: """Refresh a file's connector source metadata - Re-fetches the file's source_metadata live from its data connector (google-drive, dropbox, zoom, gong, recall, grain, or iconik) and updates the stored value. If the file belongs to any metadata collections, their search documents are re-indexed with the refreshed metadata. Works for both metadata-only files and fully ingested connector files. Free — no media is downloaded or processed. + Re-fetches the file's source_metadata live from its data connector (google-drive, dropbox, zoom, gong, recall, grain, or iconik) and updates the stored value. If the file belongs to any metadata collections, their search documents are re-indexed with the refreshed metadata. For iconik files without a thumbnail, the asset's poster keyframe is also copied and set as the file's thumbnail_url. Works for both metadata-only files and fully ingested connector files. Free — no media is downloaded or processed. :param file_id: The ID of the file to sync (required) :type file_id: str diff --git a/cloudglue/sdk/api/frames_api.py b/cloudglue/sdk/api/frames_api.py index 14ab6531..ef6a160d 100644 --- a/cloudglue/sdk/api/frames_api.py +++ b/cloudglue/sdk/api/frames_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/query_api.py b/cloudglue/sdk/api/query_api.py new file mode 100644 index 00000000..49496cba --- /dev/null +++ b/cloudglue/sdk/api/query_api.py @@ -0,0 +1,1496 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date +from pydantic import Field, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from cloudglue.sdk.models.query_list_response import QueryListResponse +from cloudglue.sdk.models.query_result import QueryResult +from cloudglue.sdk.models.query_schema import QuerySchema +from cloudglue.sdk.models.run_query_request import RunQueryRequest + +from cloudglue.sdk.api_client import ApiClient, RequestSerialized +from cloudglue.sdk.api_response import ApiResponse +from cloudglue.sdk.rest import RESTResponseType + + +class QueryApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def cancel_query_export( + self, + id: Annotated[StrictStr, Field(description="The ID of the query export to cancel")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> QueryResult: + """Cancel a background export + + Cancel an in-progress background export. The run is marked cancelled synchronously, the export stream is aborted mid-flight (the partial upload is discarded), and the reserved credits are refunded. A run that has already completed or failed is returned unchanged. + + :param id: The ID of the query export to cancel (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_query_export_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResult", + '404': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def cancel_query_export_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The ID of the query export to cancel")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[QueryResult]: + """Cancel a background export + + Cancel an in-progress background export. The run is marked cancelled synchronously, the export stream is aborted mid-flight (the partial upload is discarded), and the reserved credits are refunded. A run that has already completed or failed is returned unchanged. + + :param id: The ID of the query export to cancel (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_query_export_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResult", + '404': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def cancel_query_export_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The ID of the query export to cancel")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Cancel a background export + + Cancel an in-progress background export. The run is marked cancelled synchronously, the export stream is aborted mid-flight (the partial upload is discarded), and the reserved credits are refunded. A run that has already completed or failed is returned unchanged. + + :param id: The ID of the query export to cancel (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_query_export_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResult", + '404': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _cancel_query_export_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/query/{id}/cancel', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_query( + self, + id: Annotated[StrictStr, Field(description="The ID of the query result to retrieve")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> QueryResult: + """Get a query result by ID + + Retrieve a stored query run by its ID, including its result rows. Results larger than the inline storage cap are replayed truncated (truncated: true). + + :param id: The ID of the query result to retrieve (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_query_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResult", + '404': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_query_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The ID of the query result to retrieve")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[QueryResult]: + """Get a query result by ID + + Retrieve a stored query run by its ID, including its result rows. Results larger than the inline storage cap are replayed truncated (truncated: true). + + :param id: The ID of the query result to retrieve (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_query_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResult", + '404': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_query_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The ID of the query result to retrieve")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get a query result by ID + + Retrieve a stored query run by its ID, including its result rows. Results larger than the inline storage cap are replayed truncated (truncated: true). + + :param id: The ID of the query result to retrieve (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_query_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResult", + '404': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_query_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/query/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_query_schema( + self, + collections: Annotated[StrictStr, Field(description="Comma-separated list of collection IDs (1-20) to introspect")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> QuerySchema: + """Get the query schema + + Introspect the virtual tables and per-collection extracted fields available to SQL queries over the given collections. Use this to discover column names, entity field names, types, and levels, plus each collection's verbatim extract schema and prompt, before writing a query. Fields with level 'file' appear as rows in the entities table; fields with level 'segment' live inside the segment_entities.entities JSON column. + + :param collections: Comma-separated list of collection IDs (1-20) to introspect (required) + :type collections: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_query_schema_serialize( + collections=collections, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QuerySchema", + '400': "Error", + '404': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_query_schema_with_http_info( + self, + collections: Annotated[StrictStr, Field(description="Comma-separated list of collection IDs (1-20) to introspect")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[QuerySchema]: + """Get the query schema + + Introspect the virtual tables and per-collection extracted fields available to SQL queries over the given collections. Use this to discover column names, entity field names, types, and levels, plus each collection's verbatim extract schema and prompt, before writing a query. Fields with level 'file' appear as rows in the entities table; fields with level 'segment' live inside the segment_entities.entities JSON column. + + :param collections: Comma-separated list of collection IDs (1-20) to introspect (required) + :type collections: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_query_schema_serialize( + collections=collections, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QuerySchema", + '400': "Error", + '404': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_query_schema_without_preload_content( + self, + collections: Annotated[StrictStr, Field(description="Comma-separated list of collection IDs (1-20) to introspect")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the query schema + + Introspect the virtual tables and per-collection extracted fields available to SQL queries over the given collections. Use this to discover column names, entity field names, types, and levels, plus each collection's verbatim extract schema and prompt, before writing a query. Fields with level 'file' appear as rows in the entities table; fields with level 'segment' live inside the segment_entities.entities JSON column. + + :param collections: Comma-separated list of collection IDs (1-20) to introspect (required) + :type collections: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_query_schema_serialize( + collections=collections, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QuerySchema", + '400': "Error", + '404': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_query_schema_serialize( + self, + collections, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if collections is not None: + + _query_params.append(('collections', collections)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/query/schema', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_queries( + self, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of query results to return")] = None, + offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of query results to skip")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by query status")] = None, + created_before: Annotated[Optional[date], Field(description="Filter query results created before a specific date (YYYY-MM-DD format), in UTC timezone")] = None, + created_after: Annotated[Optional[date], Field(description="Filter query results created after a specific date (YYYY-MM-DD format), in UTC timezone")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> QueryListResponse: + """List query results + + List all query runs with pagination and filtering options. List items omit the columns and rows payloads — fetch an individual run via GET /query/{id} for the full result. + + :param limit: Maximum number of query results to return + :type limit: int + :param offset: Number of query results to skip + :type offset: int + :param status: Filter by query status + :type status: str + :param created_before: Filter query results created before a specific date (YYYY-MM-DD format), in UTC timezone + :type created_before: date + :param created_after: Filter query results created after a specific date (YYYY-MM-DD format), in UTC timezone + :type created_after: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_queries_serialize( + limit=limit, + offset=offset, + status=status, + created_before=created_before, + created_after=created_after, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryListResponse", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_queries_with_http_info( + self, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of query results to return")] = None, + offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of query results to skip")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by query status")] = None, + created_before: Annotated[Optional[date], Field(description="Filter query results created before a specific date (YYYY-MM-DD format), in UTC timezone")] = None, + created_after: Annotated[Optional[date], Field(description="Filter query results created after a specific date (YYYY-MM-DD format), in UTC timezone")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[QueryListResponse]: + """List query results + + List all query runs with pagination and filtering options. List items omit the columns and rows payloads — fetch an individual run via GET /query/{id} for the full result. + + :param limit: Maximum number of query results to return + :type limit: int + :param offset: Number of query results to skip + :type offset: int + :param status: Filter by query status + :type status: str + :param created_before: Filter query results created before a specific date (YYYY-MM-DD format), in UTC timezone + :type created_before: date + :param created_after: Filter query results created after a specific date (YYYY-MM-DD format), in UTC timezone + :type created_after: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_queries_serialize( + limit=limit, + offset=offset, + status=status, + created_before=created_before, + created_after=created_after, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryListResponse", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_queries_without_preload_content( + self, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of query results to return")] = None, + offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of query results to skip")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by query status")] = None, + created_before: Annotated[Optional[date], Field(description="Filter query results created before a specific date (YYYY-MM-DD format), in UTC timezone")] = None, + created_after: Annotated[Optional[date], Field(description="Filter query results created after a specific date (YYYY-MM-DD format), in UTC timezone")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List query results + + List all query runs with pagination and filtering options. List items omit the columns and rows payloads — fetch an individual run via GET /query/{id} for the full result. + + :param limit: Maximum number of query results to return + :type limit: int + :param offset: Number of query results to skip + :type offset: int + :param status: Filter by query status + :type status: str + :param created_before: Filter query results created before a specific date (YYYY-MM-DD format), in UTC timezone + :type created_before: date + :param created_after: Filter query results created after a specific date (YYYY-MM-DD format), in UTC timezone + :type created_after: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_queries_serialize( + limit=limit, + offset=offset, + status=status, + created_before=created_before, + created_after=created_after, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryListResponse", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_queries_serialize( + self, + limit, + offset, + status, + created_before, + created_after, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if offset is not None: + + _query_params.append(('offset', offset)) + + if status is not None: + + _query_params.append(('status', status)) + + if created_before is not None: + if isinstance(created_before, date): + _query_params.append( + ( + 'created_before', + created_before.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('created_before', created_before)) + + if created_after is not None: + if isinstance(created_after, date): + _query_params.append( + ( + 'created_after', + created_after.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('created_after', created_after)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/query', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def run_query( + self, + run_query_request: Annotated[RunQueryRequest, Field(description="Query execution parameters")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> QueryResult: + """Run a structured query + + Run a synchronous read-only SQL query over the structured data extracted from one or more collections. Queries execute against three virtual tables — files, entities, and segment_entities — built from each file's most recent completed extraction. Each query costs 2 credits. Results are returned inline and stored, so completed runs can be re-fetched via GET /query/{id}. Use GET /query/schema to discover the queryable tables and per-collection fields. + + :param run_query_request: Query execution parameters (required) + :type run_query_request: RunQueryRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._run_query_serialize( + run_query_request=run_query_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResult", + '400': "Error", + '402': "Error", + '404': "Error", + '408': "Error", + '409': "Error", + '429': "Error", + '500': "Error", + '422': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def run_query_with_http_info( + self, + run_query_request: Annotated[RunQueryRequest, Field(description="Query execution parameters")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[QueryResult]: + """Run a structured query + + Run a synchronous read-only SQL query over the structured data extracted from one or more collections. Queries execute against three virtual tables — files, entities, and segment_entities — built from each file's most recent completed extraction. Each query costs 2 credits. Results are returned inline and stored, so completed runs can be re-fetched via GET /query/{id}. Use GET /query/schema to discover the queryable tables and per-collection fields. + + :param run_query_request: Query execution parameters (required) + :type run_query_request: RunQueryRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._run_query_serialize( + run_query_request=run_query_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResult", + '400': "Error", + '402': "Error", + '404': "Error", + '408': "Error", + '409': "Error", + '429': "Error", + '500': "Error", + '422': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def run_query_without_preload_content( + self, + run_query_request: Annotated[RunQueryRequest, Field(description="Query execution parameters")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Run a structured query + + Run a synchronous read-only SQL query over the structured data extracted from one or more collections. Queries execute against three virtual tables — files, entities, and segment_entities — built from each file's most recent completed extraction. Each query costs 2 credits. Results are returned inline and stored, so completed runs can be re-fetched via GET /query/{id}. Use GET /query/schema to discover the queryable tables and per-collection fields. + + :param run_query_request: Query execution parameters (required) + :type run_query_request: RunQueryRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._run_query_serialize( + run_query_request=run_query_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResult", + '400': "Error", + '402': "Error", + '404': "Error", + '408': "Error", + '409': "Error", + '429': "Error", + '500': "Error", + '422': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _run_query_serialize( + self, + run_query_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if run_query_request is not None: + _body_params = run_query_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/query', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudglue/sdk/api/response_api.py b/cloudglue/sdk/api/response_api.py index 410f2147..f0cbde24 100644 --- a/cloudglue/sdk/api/response_api.py +++ b/cloudglue/sdk/api/response_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/search_api.py b/cloudglue/sdk/api/search_api.py index 7ef1e042..22b40b2d 100644 --- a/cloudglue/sdk/api/search_api.py +++ b/cloudglue/sdk/api/search_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/segmentations_api.py b/cloudglue/sdk/api/segmentations_api.py index 605e48fb..d7f1d30c 100644 --- a/cloudglue/sdk/api/segmentations_api.py +++ b/cloudglue/sdk/api/segmentations_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/segments_api.py b/cloudglue/sdk/api/segments_api.py index 529a2ae2..1f332708 100644 --- a/cloudglue/sdk/api/segments_api.py +++ b/cloudglue/sdk/api/segments_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/share_api.py b/cloudglue/sdk/api/share_api.py index 87e219b9..188b51c8 100644 --- a/cloudglue/sdk/api/share_api.py +++ b/cloudglue/sdk/api/share_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/tags_api.py b/cloudglue/sdk/api/tags_api.py index 23fbbc18..00660416 100644 --- a/cloudglue/sdk/api/tags_api.py +++ b/cloudglue/sdk/api/tags_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/thumbnails_api.py b/cloudglue/sdk/api/thumbnails_api.py index 7533879b..98a72a61 100644 --- a/cloudglue/sdk/api/thumbnails_api.py +++ b/cloudglue/sdk/api/thumbnails_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/transcribe_api.py b/cloudglue/sdk/api/transcribe_api.py index 290b7032..17d66dcd 100644 --- a/cloudglue/sdk/api/transcribe_api.py +++ b/cloudglue/sdk/api/transcribe_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api/webhooks_api.py b/cloudglue/sdk/api/webhooks_api.py index f266a6b4..efcbed14 100644 --- a/cloudglue/sdk/api/webhooks_api.py +++ b/cloudglue/sdk/api/webhooks_api.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/api_client.py b/cloudglue/sdk/api_client.py index 5de31939..daf960a1 100644 --- a/cloudglue/sdk/api_client.py +++ b/cloudglue/sdk/api_client.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/configuration.py b/cloudglue/sdk/configuration.py index 19a46ccb..bd078431 100644 --- a/cloudglue/sdk/configuration.py +++ b/cloudglue/sdk/configuration.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -509,7 +509,7 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.7.12\n"\ + "Version of the API: 0.7.15\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/cloudglue/sdk/exceptions.py b/cloudglue/sdk/exceptions.py index d2eb3c39..81df2527 100644 --- a/cloudglue/sdk/exceptions.py +++ b/cloudglue/sdk/exceptions.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/__init__.py b/cloudglue/sdk/models/__init__.py index d549657d..812ba92d 100644 --- a/cloudglue/sdk/models/__init__.py +++ b/cloudglue/sdk/models/__init__.py @@ -6,7 +6,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -188,20 +188,35 @@ from cloudglue.sdk.models.new_segments import NewSegments from cloudglue.sdk.models.new_transcribe import NewTranscribe from cloudglue.sdk.models.pagination_response import PaginationResponse +from cloudglue.sdk.models.query_list_item import QueryListItem +from cloudglue.sdk.models.query_list_response import QueryListResponse +from cloudglue.sdk.models.query_result import QueryResult +from cloudglue.sdk.models.query_result_columns_inner import QueryResultColumnsInner +from cloudglue.sdk.models.query_result_error import QueryResultError +from cloudglue.sdk.models.query_schema import QuerySchema +from cloudglue.sdk.models.query_schema_collection import QuerySchemaCollection +from cloudglue.sdk.models.query_schema_collection_fields_inner import QuerySchemaCollectionFieldsInner +from cloudglue.sdk.models.query_schema_table import QuerySchemaTable +from cloudglue.sdk.models.query_schema_table_columns_inner import QuerySchemaTableColumnsInner +from cloudglue.sdk.models.query_usage import QueryUsage from cloudglue.sdk.models.recall_source_metadata import RecallSourceMetadata from cloudglue.sdk.models.response import Response from cloudglue.sdk.models.response_annotation import ResponseAnnotation from cloudglue.sdk.models.response_error import ResponseError +from cloudglue.sdk.models.response_function_call import ResponseFunctionCall from cloudglue.sdk.models.response_input_content import ResponseInputContent from cloudglue.sdk.models.response_input_message import ResponseInputMessage from cloudglue.sdk.models.response_knowledge_base import ResponseKnowledgeBase from cloudglue.sdk.models.response_list import ResponseList from cloudglue.sdk.models.response_list_item import ResponseListItem from cloudglue.sdk.models.response_output_content import ResponseOutputContent +from cloudglue.sdk.models.response_output_inner import ResponseOutputInner from cloudglue.sdk.models.response_output_message import ResponseOutputMessage +from cloudglue.sdk.models.response_query_call import ResponseQueryCall from cloudglue.sdk.models.response_tool_definition import ResponseToolDefinition from cloudglue.sdk.models.response_usage import ResponseUsage from cloudglue.sdk.models.rich_transcript import RichTranscript +from cloudglue.sdk.models.run_query_request import RunQueryRequest from cloudglue.sdk.models.search_filter import SearchFilter from cloudglue.sdk.models.search_filter_criteria import SearchFilterCriteria from cloudglue.sdk.models.search_filter_file_inner import SearchFilterFileInner diff --git a/cloudglue/sdk/models/add_collection_file.py b/cloudglue/sdk/models/add_collection_file.py index 305b3f6f..6753d158 100644 --- a/cloudglue/sdk/models/add_collection_file.py +++ b/cloudglue/sdk/models/add_collection_file.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/add_you_tube_collection_file.py b/cloudglue/sdk/models/add_you_tube_collection_file.py index 8ad3f533..8ab39d0f 100644 --- a/cloudglue/sdk/models/add_you_tube_collection_file.py +++ b/cloudglue/sdk/models/add_you_tube_collection_file.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chapter.py b/cloudglue/sdk/models/chapter.py index ee447de2..23b7bc88 100644 --- a/cloudglue/sdk/models/chapter.py +++ b/cloudglue/sdk/models/chapter.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_list.py b/cloudglue/sdk/models/chat_completion_list.py index f4b5169d..cc66355c 100644 --- a/cloudglue/sdk/models/chat_completion_list.py +++ b/cloudglue/sdk/models/chat_completion_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_list_data_inner.py b/cloudglue/sdk/models/chat_completion_list_data_inner.py index 3252a70f..1e19969f 100644 --- a/cloudglue/sdk/models/chat_completion_list_data_inner.py +++ b/cloudglue/sdk/models/chat_completion_list_data_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_list_data_inner_choices_inner.py b/cloudglue/sdk/models/chat_completion_list_data_inner_choices_inner.py index 671d6707..0425d5e3 100644 --- a/cloudglue/sdk/models/chat_completion_list_data_inner_choices_inner.py +++ b/cloudglue/sdk/models/chat_completion_list_data_inner_choices_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_list_data_inner_usage.py b/cloudglue/sdk/models/chat_completion_list_data_inner_usage.py index 167dcc98..aced0b90 100644 --- a/cloudglue/sdk/models/chat_completion_list_data_inner_usage.py +++ b/cloudglue/sdk/models/chat_completion_list_data_inner_usage.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_payload.py b/cloudglue/sdk/models/chat_completion_payload.py index d7d0658f..1e8ee94c 100644 --- a/cloudglue/sdk/models/chat_completion_payload.py +++ b/cloudglue/sdk/models/chat_completion_payload.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_request.py b/cloudglue/sdk/models/chat_completion_request.py index d8daf12f..3f197eb0 100644 --- a/cloudglue/sdk/models/chat_completion_request.py +++ b/cloudglue/sdk/models/chat_completion_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_request_filter.py b/cloudglue/sdk/models/chat_completion_request_filter.py index 87309cdc..0588e9ba 100644 --- a/cloudglue/sdk/models/chat_completion_request_filter.py +++ b/cloudglue/sdk/models/chat_completion_request_filter.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_request_filter_file_inner.py b/cloudglue/sdk/models/chat_completion_request_filter_file_inner.py index 48a6d4af..d13a45ba 100644 --- a/cloudglue/sdk/models/chat_completion_request_filter_file_inner.py +++ b/cloudglue/sdk/models/chat_completion_request_filter_file_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_request_filter_metadata_inner.py b/cloudglue/sdk/models/chat_completion_request_filter_metadata_inner.py index 772f5400..4ebfad64 100644 --- a/cloudglue/sdk/models/chat_completion_request_filter_metadata_inner.py +++ b/cloudglue/sdk/models/chat_completion_request_filter_metadata_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_request_filter_video_info_inner.py b/cloudglue/sdk/models/chat_completion_request_filter_video_info_inner.py index 11b4d4cb..575a48fb 100644 --- a/cloudglue/sdk/models/chat_completion_request_filter_video_info_inner.py +++ b/cloudglue/sdk/models/chat_completion_request_filter_video_info_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_response.py b/cloudglue/sdk/models/chat_completion_response.py index 7009ac56..7dfdad99 100644 --- a/cloudglue/sdk/models/chat_completion_response.py +++ b/cloudglue/sdk/models/chat_completion_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_response_choices_inner.py b/cloudglue/sdk/models/chat_completion_response_choices_inner.py index 7cf401e2..28f8b391 100644 --- a/cloudglue/sdk/models/chat_completion_response_choices_inner.py +++ b/cloudglue/sdk/models/chat_completion_response_choices_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner.py b/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner.py index 16e4b4f0..92c89dd6 100644 --- a/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner.py +++ b/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_end_time.py b/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_end_time.py index 45c26ede..f211ec2d 100644 --- a/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_end_time.py +++ b/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_end_time.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_relevant_sources_inner.py b/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_relevant_sources_inner.py index da874e85..402a516e 100644 --- a/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_relevant_sources_inner.py +++ b/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_relevant_sources_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_start_time.py b/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_start_time.py index e02e4dde..21aca592 100644 --- a/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_start_time.py +++ b/cloudglue/sdk/models/chat_completion_response_choices_inner_citations_inner_all_of_start_time.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_completion_response_usage.py b/cloudglue/sdk/models/chat_completion_response_usage.py index 41ded412..b2a32202 100644 --- a/cloudglue/sdk/models/chat_completion_response_usage.py +++ b/cloudglue/sdk/models/chat_completion_response_usage.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/chat_message.py b/cloudglue/sdk/models/chat_message.py index df5bb92f..6280bb51 100644 --- a/cloudglue/sdk/models/chat_message.py +++ b/cloudglue/sdk/models/chat_message.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection.py b/cloudglue/sdk/models/collection.py index 57f614b7..ee3d5999 100644 --- a/cloudglue/sdk/models/collection.py +++ b/cloudglue/sdk/models/collection.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_delete.py b/cloudglue/sdk/models/collection_delete.py index ce7bef3f..6675b4c9 100644 --- a/cloudglue/sdk/models/collection_delete.py +++ b/cloudglue/sdk/models/collection_delete.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_describe_config.py b/cloudglue/sdk/models/collection_describe_config.py index d585280c..767fe305 100644 --- a/cloudglue/sdk/models/collection_describe_config.py +++ b/cloudglue/sdk/models/collection_describe_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_entities_list.py b/cloudglue/sdk/models/collection_entities_list.py index 8d9f5b31..e95e6006 100644 --- a/cloudglue/sdk/models/collection_entities_list.py +++ b/cloudglue/sdk/models/collection_entities_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_entities_list_data_inner.py b/cloudglue/sdk/models/collection_entities_list_data_inner.py index d4fbdda6..5f31dcd8 100644 --- a/cloudglue/sdk/models/collection_entities_list_data_inner.py +++ b/cloudglue/sdk/models/collection_entities_list_data_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_entities_list_data_inner_data.py b/cloudglue/sdk/models/collection_entities_list_data_inner_data.py index 924eeac5..4df6de0a 100644 --- a/cloudglue/sdk/models/collection_entities_list_data_inner_data.py +++ b/cloudglue/sdk/models/collection_entities_list_data_inner_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_entities_list_data_inner_data_segment_entities_inner.py b/cloudglue/sdk/models/collection_entities_list_data_inner_data_segment_entities_inner.py index 5a05ec84..e53aca78 100644 --- a/cloudglue/sdk/models/collection_entities_list_data_inner_data_segment_entities_inner.py +++ b/cloudglue/sdk/models/collection_entities_list_data_inner_data_segment_entities_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_extract_config.py b/cloudglue/sdk/models/collection_extract_config.py index db1355dd..f6e52c0e 100644 --- a/cloudglue/sdk/models/collection_extract_config.py +++ b/cloudglue/sdk/models/collection_extract_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_face_detection_config.py b/cloudglue/sdk/models/collection_face_detection_config.py index 89217bde..6fa303dd 100644 --- a/cloudglue/sdk/models/collection_face_detection_config.py +++ b/cloudglue/sdk/models/collection_face_detection_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_face_detection_config_frame_extraction_config.py b/cloudglue/sdk/models/collection_face_detection_config_frame_extraction_config.py index 74edcbe3..cf099632 100644 --- a/cloudglue/sdk/models/collection_face_detection_config_frame_extraction_config.py +++ b/cloudglue/sdk/models/collection_face_detection_config_frame_extraction_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_face_detection_config_frame_extraction_config_uniform_config.py b/cloudglue/sdk/models/collection_face_detection_config_frame_extraction_config_uniform_config.py index f76390d9..72c76b07 100644 --- a/cloudglue/sdk/models/collection_face_detection_config_frame_extraction_config_uniform_config.py +++ b/cloudglue/sdk/models/collection_face_detection_config_frame_extraction_config_uniform_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_face_detection_config_thumbnails_config.py b/cloudglue/sdk/models/collection_face_detection_config_thumbnails_config.py index b22cb4f2..b6db1188 100644 --- a/cloudglue/sdk/models/collection_face_detection_config_thumbnails_config.py +++ b/cloudglue/sdk/models/collection_face_detection_config_thumbnails_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_file.py b/cloudglue/sdk/models/collection_file.py index f5130abd..49fa2e9c 100644 --- a/cloudglue/sdk/models/collection_file.py +++ b/cloudglue/sdk/models/collection_file.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_file_delete.py b/cloudglue/sdk/models/collection_file_delete.py index e89bb862..2baf585f 100644 --- a/cloudglue/sdk/models/collection_file_delete.py +++ b/cloudglue/sdk/models/collection_file_delete.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_file_list.py b/cloudglue/sdk/models/collection_file_list.py index 021ad872..001e1052 100644 --- a/cloudglue/sdk/models/collection_file_list.py +++ b/cloudglue/sdk/models/collection_file_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_file_segmentation.py b/cloudglue/sdk/models/collection_file_segmentation.py index dcf579df..c990dc56 100644 --- a/cloudglue/sdk/models/collection_file_segmentation.py +++ b/cloudglue/sdk/models/collection_file_segmentation.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_list.py b/cloudglue/sdk/models/collection_list.py index acfb2d7f..53b8bfde 100644 --- a/cloudglue/sdk/models/collection_list.py +++ b/cloudglue/sdk/models/collection_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_media_descriptions_list.py b/cloudglue/sdk/models/collection_media_descriptions_list.py index bca531ee..5c71224c 100644 --- a/cloudglue/sdk/models/collection_media_descriptions_list.py +++ b/cloudglue/sdk/models/collection_media_descriptions_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_media_descriptions_list_data_inner.py b/cloudglue/sdk/models/collection_media_descriptions_list_data_inner.py index 992c21b3..e173ed8d 100644 --- a/cloudglue/sdk/models/collection_media_descriptions_list_data_inner.py +++ b/cloudglue/sdk/models/collection_media_descriptions_list_data_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_media_descriptions_list_data_inner_data.py b/cloudglue/sdk/models/collection_media_descriptions_list_data_inner_data.py index 9ea1d58b..4c88972b 100644 --- a/cloudglue/sdk/models/collection_media_descriptions_list_data_inner_data.py +++ b/cloudglue/sdk/models/collection_media_descriptions_list_data_inner_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_rich_transcripts_list.py b/cloudglue/sdk/models/collection_rich_transcripts_list.py index 857b49e2..0bd1ea7f 100644 --- a/cloudglue/sdk/models/collection_rich_transcripts_list.py +++ b/cloudglue/sdk/models/collection_rich_transcripts_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_rich_transcripts_list_data_inner.py b/cloudglue/sdk/models/collection_rich_transcripts_list_data_inner.py index 82c7d341..7158d473 100644 --- a/cloudglue/sdk/models/collection_rich_transcripts_list_data_inner.py +++ b/cloudglue/sdk/models/collection_rich_transcripts_list_data_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_rich_transcripts_list_data_inner_data.py b/cloudglue/sdk/models/collection_rich_transcripts_list_data_inner_data.py index ee7d128e..83cdec77 100644 --- a/cloudglue/sdk/models/collection_rich_transcripts_list_data_inner_data.py +++ b/cloudglue/sdk/models/collection_rich_transcripts_list_data_inner_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_transcribe_config.py b/cloudglue/sdk/models/collection_transcribe_config.py index 58109192..6a70b0a1 100644 --- a/cloudglue/sdk/models/collection_transcribe_config.py +++ b/cloudglue/sdk/models/collection_transcribe_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/collection_update.py b/cloudglue/sdk/models/collection_update.py index f7f779e5..a0e169c1 100644 --- a/cloudglue/sdk/models/collection_update.py +++ b/cloudglue/sdk/models/collection_update.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/create_deep_search_request.py b/cloudglue/sdk/models/create_deep_search_request.py index 70f7b606..8a53e725 100644 --- a/cloudglue/sdk/models/create_deep_search_request.py +++ b/cloudglue/sdk/models/create_deep_search_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/create_deep_search_request_knowledge_base.py b/cloudglue/sdk/models/create_deep_search_request_knowledge_base.py index 68fce92e..913e6e81 100644 --- a/cloudglue/sdk/models/create_deep_search_request_knowledge_base.py +++ b/cloudglue/sdk/models/create_deep_search_request_knowledge_base.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/create_file_frame_extraction_request.py b/cloudglue/sdk/models/create_file_frame_extraction_request.py index a64e334d..9886cb82 100644 --- a/cloudglue/sdk/models/create_file_frame_extraction_request.py +++ b/cloudglue/sdk/models/create_file_frame_extraction_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/create_file_segmentation_request.py b/cloudglue/sdk/models/create_file_segmentation_request.py index 77c1310a..ea4fbd4f 100644 --- a/cloudglue/sdk/models/create_file_segmentation_request.py +++ b/cloudglue/sdk/models/create_file_segmentation_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/create_response_request.py b/cloudglue/sdk/models/create_response_request.py index a778df74..4b895f6a 100644 --- a/cloudglue/sdk/models/create_response_request.py +++ b/cloudglue/sdk/models/create_response_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/create_response_request_input.py b/cloudglue/sdk/models/create_response_request_input.py index aa33e1de..a77c0c6c 100644 --- a/cloudglue/sdk/models/create_response_request_input.py +++ b/cloudglue/sdk/models/create_response_request_input.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/create_shareable_asset_request.py b/cloudglue/sdk/models/create_shareable_asset_request.py index 2eb10ef3..e2bcf7c3 100644 --- a/cloudglue/sdk/models/create_shareable_asset_request.py +++ b/cloudglue/sdk/models/create_shareable_asset_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/create_video_tag_request.py b/cloudglue/sdk/models/create_video_tag_request.py index d76c7e4e..eececc2d 100644 --- a/cloudglue/sdk/models/create_video_tag_request.py +++ b/cloudglue/sdk/models/create_video_tag_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/data_connector.py b/cloudglue/sdk/models/data_connector.py index d8314dd1..c6dfcf60 100644 --- a/cloudglue/sdk/models/data_connector.py +++ b/cloudglue/sdk/models/data_connector.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/data_connector_file.py b/cloudglue/sdk/models/data_connector_file.py index 30ad1896..247a568b 100644 --- a/cloudglue/sdk/models/data_connector_file.py +++ b/cloudglue/sdk/models/data_connector_file.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,8 +34,9 @@ class DataConnectorFile(BaseModel): mime_type: Optional[StrictStr] = Field(description="MIME type of the file, if available") size_bytes: Optional[StrictInt] = Field(description="File size in bytes, if available") created_at: Optional[StrictInt] = Field(description="Creation timestamp in milliseconds since epoch, if available") + thumbnail_url: Optional[StrictStr] = Field(default=None, description="Ephemeral preview image for the file — a signed provider URL that expires within hours. Display-only: never store it. Currently populated for iconik (the asset's poster keyframe, honoring a custom keyframe when one is set); null or absent for other connectors.") metadata: DataConnectorFileMetadata - __properties: ClassVar[List[str]] = ["object", "type", "uri", "name", "mime_type", "size_bytes", "created_at", "metadata"] + __properties: ClassVar[List[str]] = ["object", "type", "uri", "name", "mime_type", "size_bytes", "created_at", "thumbnail_url", "metadata"] @field_validator('object') def object_validate_enum(cls, value): @@ -113,6 +114,11 @@ def to_dict(self) -> Dict[str, Any]: if self.created_at is None and "created_at" in self.model_fields_set: _dict['created_at'] = None + # set to None if thumbnail_url (nullable) is None + # and model_fields_set contains the field + if self.thumbnail_url is None and "thumbnail_url" in self.model_fields_set: + _dict['thumbnail_url'] = None + return _dict @classmethod @@ -132,6 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "mime_type": obj.get("mime_type"), "size_bytes": obj.get("size_bytes"), "created_at": obj.get("created_at"), + "thumbnail_url": obj.get("thumbnail_url"), "metadata": DataConnectorFileMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) return _obj diff --git a/cloudglue/sdk/models/data_connector_file_list.py b/cloudglue/sdk/models/data_connector_file_list.py index 75971e3e..304ce140 100644 --- a/cloudglue/sdk/models/data_connector_file_list.py +++ b/cloudglue/sdk/models/data_connector_file_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/data_connector_file_metadata.py b/cloudglue/sdk/models/data_connector_file_metadata.py index 284b431f..484cc275 100644 --- a/cloudglue/sdk/models/data_connector_file_metadata.py +++ b/cloudglue/sdk/models/data_connector_file_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/data_connector_list.py b/cloudglue/sdk/models/data_connector_list.py index 30b9633e..a3865d9c 100644 --- a/cloudglue/sdk/models/data_connector_list.py +++ b/cloudglue/sdk/models/data_connector_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search.py b/cloudglue/sdk/models/deep_search.py index de036a33..f79b28d5 100644 --- a/cloudglue/sdk/models/deep_search.py +++ b/cloudglue/sdk/models/deep_search.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search_error.py b/cloudglue/sdk/models/deep_search_error.py index 10be2698..7ba4f028 100644 --- a/cloudglue/sdk/models/deep_search_error.py +++ b/cloudglue/sdk/models/deep_search_error.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search_kb_collections.py b/cloudglue/sdk/models/deep_search_kb_collections.py index 5af8346a..6f9fdfec 100644 --- a/cloudglue/sdk/models/deep_search_kb_collections.py +++ b/cloudglue/sdk/models/deep_search_kb_collections.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search_kb_default.py b/cloudglue/sdk/models/deep_search_kb_default.py index c6145cfb..806efb80 100644 --- a/cloudglue/sdk/models/deep_search_kb_default.py +++ b/cloudglue/sdk/models/deep_search_kb_default.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search_kb_files.py b/cloudglue/sdk/models/deep_search_kb_files.py index aa1f4853..2abf121c 100644 --- a/cloudglue/sdk/models/deep_search_kb_files.py +++ b/cloudglue/sdk/models/deep_search_kb_files.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search_list.py b/cloudglue/sdk/models/deep_search_list.py index a59bedc1..e9336e93 100644 --- a/cloudglue/sdk/models/deep_search_list.py +++ b/cloudglue/sdk/models/deep_search_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search_list_item.py b/cloudglue/sdk/models/deep_search_list_item.py index 377f2dce..3e2ee562 100644 --- a/cloudglue/sdk/models/deep_search_list_item.py +++ b/cloudglue/sdk/models/deep_search_list_item.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search_result.py b/cloudglue/sdk/models/deep_search_result.py index bbf1058d..02e245da 100644 --- a/cloudglue/sdk/models/deep_search_result.py +++ b/cloudglue/sdk/models/deep_search_result.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search_search_query_plan.py b/cloudglue/sdk/models/deep_search_search_query_plan.py index fe7dceb6..8ef785b9 100644 --- a/cloudglue/sdk/models/deep_search_search_query_plan.py +++ b/cloudglue/sdk/models/deep_search_search_query_plan.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/deep_search_usage.py b/cloudglue/sdk/models/deep_search_usage.py index 7c8074ae..37dc7c11 100644 --- a/cloudglue/sdk/models/deep_search_usage.py +++ b/cloudglue/sdk/models/deep_search_usage.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/default_segmentation_config.py b/cloudglue/sdk/models/default_segmentation_config.py index 6dedb9b1..98671799 100644 --- a/cloudglue/sdk/models/default_segmentation_config.py +++ b/cloudglue/sdk/models/default_segmentation_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_deep_search_result.py b/cloudglue/sdk/models/delete_deep_search_result.py index 06ee2a22..341b6dec 100644 --- a/cloudglue/sdk/models/delete_deep_search_result.py +++ b/cloudglue/sdk/models/delete_deep_search_result.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_describe200_response.py b/cloudglue/sdk/models/delete_describe200_response.py index 658310fc..15f68436 100644 --- a/cloudglue/sdk/models/delete_describe200_response.py +++ b/cloudglue/sdk/models/delete_describe200_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_extract200_response.py b/cloudglue/sdk/models/delete_extract200_response.py index dc2f70bd..711c5d41 100644 --- a/cloudglue/sdk/models/delete_extract200_response.py +++ b/cloudglue/sdk/models/delete_extract200_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_face_detection200_response.py b/cloudglue/sdk/models/delete_face_detection200_response.py index 35d47bd5..893c6775 100644 --- a/cloudglue/sdk/models/delete_face_detection200_response.py +++ b/cloudglue/sdk/models/delete_face_detection200_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_face_match200_response.py b/cloudglue/sdk/models/delete_face_match200_response.py index b451e9b7..93ab6074 100644 --- a/cloudglue/sdk/models/delete_face_match200_response.py +++ b/cloudglue/sdk/models/delete_face_match200_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_frame_extraction200_response.py b/cloudglue/sdk/models/delete_frame_extraction200_response.py index 1391ee9d..422994e5 100644 --- a/cloudglue/sdk/models/delete_frame_extraction200_response.py +++ b/cloudglue/sdk/models/delete_frame_extraction200_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_response_result.py b/cloudglue/sdk/models/delete_response_result.py index 6cd31fce..790907bb 100644 --- a/cloudglue/sdk/models/delete_response_result.py +++ b/cloudglue/sdk/models/delete_response_result.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_segmentation200_response.py b/cloudglue/sdk/models/delete_segmentation200_response.py index 2359a0fa..1fa71196 100644 --- a/cloudglue/sdk/models/delete_segmentation200_response.py +++ b/cloudglue/sdk/models/delete_segmentation200_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_segments200_response.py b/cloudglue/sdk/models/delete_segments200_response.py index efc31b20..e1db9442 100644 --- a/cloudglue/sdk/models/delete_segments200_response.py +++ b/cloudglue/sdk/models/delete_segments200_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_shareable_asset200_response.py b/cloudglue/sdk/models/delete_shareable_asset200_response.py index 3b449eb4..189be09f 100644 --- a/cloudglue/sdk/models/delete_shareable_asset200_response.py +++ b/cloudglue/sdk/models/delete_shareable_asset200_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/delete_tag200_response.py b/cloudglue/sdk/models/delete_tag200_response.py index e7360cb4..44bd690b 100644 --- a/cloudglue/sdk/models/delete_tag200_response.py +++ b/cloudglue/sdk/models/delete_tag200_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/describe.py b/cloudglue/sdk/models/describe.py index f9607439..321266a1 100644 --- a/cloudglue/sdk/models/describe.py +++ b/cloudglue/sdk/models/describe.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/describe_config.py b/cloudglue/sdk/models/describe_config.py index 434a7eb5..247716b4 100644 --- a/cloudglue/sdk/models/describe_config.py +++ b/cloudglue/sdk/models/describe_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/describe_data.py b/cloudglue/sdk/models/describe_data.py index c00b45e5..20a6a32a 100644 --- a/cloudglue/sdk/models/describe_data.py +++ b/cloudglue/sdk/models/describe_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/describe_data_all_of_segment_summary_inner.py b/cloudglue/sdk/models/describe_data_all_of_segment_summary_inner.py index c4e0a768..fb340332 100644 --- a/cloudglue/sdk/models/describe_data_all_of_segment_summary_inner.py +++ b/cloudglue/sdk/models/describe_data_all_of_segment_summary_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/describe_describe_config.py b/cloudglue/sdk/models/describe_describe_config.py index 91934de0..9b08d5f2 100644 --- a/cloudglue/sdk/models/describe_describe_config.py +++ b/cloudglue/sdk/models/describe_describe_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/describe_list.py b/cloudglue/sdk/models/describe_list.py index c3f9de4d..7591bb1c 100644 --- a/cloudglue/sdk/models/describe_list.py +++ b/cloudglue/sdk/models/describe_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/describe_output.py b/cloudglue/sdk/models/describe_output.py index 5a3db7b9..3767725c 100644 --- a/cloudglue/sdk/models/describe_output.py +++ b/cloudglue/sdk/models/describe_output.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/describe_output_part.py b/cloudglue/sdk/models/describe_output_part.py index 14f4837a..aa6bd64c 100644 --- a/cloudglue/sdk/models/describe_output_part.py +++ b/cloudglue/sdk/models/describe_output_part.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/detected_face.py b/cloudglue/sdk/models/detected_face.py index c07ae832..cf07b91e 100644 --- a/cloudglue/sdk/models/detected_face.py +++ b/cloudglue/sdk/models/detected_face.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/dropbox_source_metadata.py b/cloudglue/sdk/models/dropbox_source_metadata.py index 527b8ad2..f940ecc3 100644 --- a/cloudglue/sdk/models/dropbox_source_metadata.py +++ b/cloudglue/sdk/models/dropbox_source_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/dropbox_source_metadata_media_info.py b/cloudglue/sdk/models/dropbox_source_metadata_media_info.py index 00bdaa59..92144a5a 100644 --- a/cloudglue/sdk/models/dropbox_source_metadata_media_info.py +++ b/cloudglue/sdk/models/dropbox_source_metadata_media_info.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/entity_backed_knowledge_config.py b/cloudglue/sdk/models/entity_backed_knowledge_config.py index 51cf3b1a..25a3cdba 100644 --- a/cloudglue/sdk/models/entity_backed_knowledge_config.py +++ b/cloudglue/sdk/models/entity_backed_knowledge_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/entity_collection_config.py b/cloudglue/sdk/models/entity_collection_config.py index 3e810664..5fdf997e 100644 --- a/cloudglue/sdk/models/entity_collection_config.py +++ b/cloudglue/sdk/models/entity_collection_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/error.py b/cloudglue/sdk/models/error.py index 44c5d81d..97e0369a 100644 --- a/cloudglue/sdk/models/error.py +++ b/cloudglue/sdk/models/error.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/extract.py b/cloudglue/sdk/models/extract.py index 1629af30..f13558c0 100644 --- a/cloudglue/sdk/models/extract.py +++ b/cloudglue/sdk/models/extract.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/extract_chapters_inner.py b/cloudglue/sdk/models/extract_chapters_inner.py index aa19b13a..a47bbe12 100644 --- a/cloudglue/sdk/models/extract_chapters_inner.py +++ b/cloudglue/sdk/models/extract_chapters_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/extract_data.py b/cloudglue/sdk/models/extract_data.py index 96efebdd..910b137d 100644 --- a/cloudglue/sdk/models/extract_data.py +++ b/cloudglue/sdk/models/extract_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/extract_data_segment_entities_inner.py b/cloudglue/sdk/models/extract_data_segment_entities_inner.py index be21fb64..737380a5 100644 --- a/cloudglue/sdk/models/extract_data_segment_entities_inner.py +++ b/cloudglue/sdk/models/extract_data_segment_entities_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/extract_extract_config.py b/cloudglue/sdk/models/extract_extract_config.py index d9f4570a..453bc29e 100644 --- a/cloudglue/sdk/models/extract_extract_config.py +++ b/cloudglue/sdk/models/extract_extract_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/extract_list.py b/cloudglue/sdk/models/extract_list.py index 88a3286e..b1081454 100644 --- a/cloudglue/sdk/models/extract_list.py +++ b/cloudglue/sdk/models/extract_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/extract_shots_inner.py b/cloudglue/sdk/models/extract_shots_inner.py index a600146a..b83d4de7 100644 --- a/cloudglue/sdk/models/extract_shots_inner.py +++ b/cloudglue/sdk/models/extract_shots_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_bounding_box.py b/cloudglue/sdk/models/face_bounding_box.py index 73c0943a..359343f1 100644 --- a/cloudglue/sdk/models/face_bounding_box.py +++ b/cloudglue/sdk/models/face_bounding_box.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_detection.py b/cloudglue/sdk/models/face_detection.py index 13fab6e9..b20dc837 100644 --- a/cloudglue/sdk/models/face_detection.py +++ b/cloudglue/sdk/models/face_detection.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_detection_data.py b/cloudglue/sdk/models/face_detection_data.py index fd7039a3..02b22096 100644 --- a/cloudglue/sdk/models/face_detection_data.py +++ b/cloudglue/sdk/models/face_detection_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_detection_list_response.py b/cloudglue/sdk/models/face_detection_list_response.py index 34ed5662..7c9e204b 100644 --- a/cloudglue/sdk/models/face_detection_list_response.py +++ b/cloudglue/sdk/models/face_detection_list_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_detection_list_response_all_of_data.py b/cloudglue/sdk/models/face_detection_list_response_all_of_data.py index 87b5e490..d404a616 100644 --- a/cloudglue/sdk/models/face_detection_list_response_all_of_data.py +++ b/cloudglue/sdk/models/face_detection_list_response_all_of_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_detection_request.py b/cloudglue/sdk/models/face_detection_request.py index 6949e91c..0b6e5acb 100644 --- a/cloudglue/sdk/models/face_detection_request.py +++ b/cloudglue/sdk/models/face_detection_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_group_result.py b/cloudglue/sdk/models/face_group_result.py index 345fe4cb..668cf9a4 100644 --- a/cloudglue/sdk/models/face_group_result.py +++ b/cloudglue/sdk/models/face_group_result.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_match.py b/cloudglue/sdk/models/face_match.py index 8534185e..81ac2cb9 100644 --- a/cloudglue/sdk/models/face_match.py +++ b/cloudglue/sdk/models/face_match.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_match_data.py b/cloudglue/sdk/models/face_match_data.py index 06d17d93..a6346496 100644 --- a/cloudglue/sdk/models/face_match_data.py +++ b/cloudglue/sdk/models/face_match_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_match_list_response.py b/cloudglue/sdk/models/face_match_list_response.py index 8d425d45..d00cd63c 100644 --- a/cloudglue/sdk/models/face_match_list_response.py +++ b/cloudglue/sdk/models/face_match_list_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_match_list_response_all_of_data.py b/cloudglue/sdk/models/face_match_list_response_all_of_data.py index 38d124ff..d5716352 100644 --- a/cloudglue/sdk/models/face_match_list_response_all_of_data.py +++ b/cloudglue/sdk/models/face_match_list_response_all_of_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_match_request.py b/cloudglue/sdk/models/face_match_request.py index d2b9c79c..1f594c3e 100644 --- a/cloudglue/sdk/models/face_match_request.py +++ b/cloudglue/sdk/models/face_match_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_match_result.py b/cloudglue/sdk/models/face_match_result.py index 482a689f..8e3e8dd3 100644 --- a/cloudglue/sdk/models/face_match_result.py +++ b/cloudglue/sdk/models/face_match_result.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/face_search_result.py b/cloudglue/sdk/models/face_search_result.py index 28c7d050..a7700140 100644 --- a/cloudglue/sdk/models/face_search_result.py +++ b/cloudglue/sdk/models/face_search_result.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file.py b/cloudglue/sdk/models/file.py index bb5649d4..dbc48b29 100644 --- a/cloudglue/sdk/models/file.py +++ b/cloudglue/sdk/models/file.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_delete.py b/cloudglue/sdk/models/file_delete.py index 338b3daf..a5e7515c 100644 --- a/cloudglue/sdk/models/file_delete.py +++ b/cloudglue/sdk/models/file_delete.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_entities.py b/cloudglue/sdk/models/file_entities.py index 59aeee1f..970465d2 100644 --- a/cloudglue/sdk/models/file_entities.py +++ b/cloudglue/sdk/models/file_entities.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_face_detections.py b/cloudglue/sdk/models/file_face_detections.py index 73374273..5c8a02d3 100644 --- a/cloudglue/sdk/models/file_face_detections.py +++ b/cloudglue/sdk/models/file_face_detections.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_face_detections_faces_inner.py b/cloudglue/sdk/models/file_face_detections_faces_inner.py index f6bf0143..819b15ba 100644 --- a/cloudglue/sdk/models/file_face_detections_faces_inner.py +++ b/cloudglue/sdk/models/file_face_detections_faces_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_face_detections_faces_inner_face_bounding_box.py b/cloudglue/sdk/models/file_face_detections_faces_inner_face_bounding_box.py index 2eae73f2..2f492168 100644 --- a/cloudglue/sdk/models/file_face_detections_faces_inner_face_bounding_box.py +++ b/cloudglue/sdk/models/file_face_detections_faces_inner_face_bounding_box.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_list.py b/cloudglue/sdk/models/file_list.py index 5b0ad510..a688e90f 100644 --- a/cloudglue/sdk/models/file_list.py +++ b/cloudglue/sdk/models/file_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_media_info.py b/cloudglue/sdk/models/file_media_info.py index ab843665..e081d32e 100644 --- a/cloudglue/sdk/models/file_media_info.py +++ b/cloudglue/sdk/models/file_media_info.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_search_result.py b/cloudglue/sdk/models/file_search_result.py index c6f4bd47..21d0d895 100644 --- a/cloudglue/sdk/models/file_search_result.py +++ b/cloudglue/sdk/models/file_search_result.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_segment.py b/cloudglue/sdk/models/file_segment.py index 19991784..0d54ecb3 100644 --- a/cloudglue/sdk/models/file_segment.py +++ b/cloudglue/sdk/models/file_segment.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_segment_list_response.py b/cloudglue/sdk/models/file_segment_list_response.py index c9abcb16..ea8a3056 100644 --- a/cloudglue/sdk/models/file_segment_list_response.py +++ b/cloudglue/sdk/models/file_segment_list_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_segmentation_config.py b/cloudglue/sdk/models/file_segmentation_config.py index 45fda18b..7b836f98 100644 --- a/cloudglue/sdk/models/file_segmentation_config.py +++ b/cloudglue/sdk/models/file_segmentation_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_update.py b/cloudglue/sdk/models/file_update.py index e41904ac..c2624ab0 100644 --- a/cloudglue/sdk/models/file_update.py +++ b/cloudglue/sdk/models/file_update.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/file_video_info.py b/cloudglue/sdk/models/file_video_info.py index 56e6bbdb..a1d8565b 100644 --- a/cloudglue/sdk/models/file_video_info.py +++ b/cloudglue/sdk/models/file_video_info.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/frame_extraction.py b/cloudglue/sdk/models/frame_extraction.py index f8e5a495..dec17716 100644 --- a/cloudglue/sdk/models/frame_extraction.py +++ b/cloudglue/sdk/models/frame_extraction.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/frame_extraction_config.py b/cloudglue/sdk/models/frame_extraction_config.py index 0155263a..bb000b96 100644 --- a/cloudglue/sdk/models/frame_extraction_config.py +++ b/cloudglue/sdk/models/frame_extraction_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/frame_extraction_data.py b/cloudglue/sdk/models/frame_extraction_data.py index 376af20d..ccefccfe 100644 --- a/cloudglue/sdk/models/frame_extraction_data.py +++ b/cloudglue/sdk/models/frame_extraction_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/frame_extraction_data_frames_inner.py b/cloudglue/sdk/models/frame_extraction_data_frames_inner.py index acc72c68..a79534c0 100644 --- a/cloudglue/sdk/models/frame_extraction_data_frames_inner.py +++ b/cloudglue/sdk/models/frame_extraction_data_frames_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/frame_extraction_list.py b/cloudglue/sdk/models/frame_extraction_list.py index 36ef5082..8edddc9a 100644 --- a/cloudglue/sdk/models/frame_extraction_list.py +++ b/cloudglue/sdk/models/frame_extraction_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/frame_extraction_list_data_inner.py b/cloudglue/sdk/models/frame_extraction_list_data_inner.py index 5effa03f..5e5f4e78 100644 --- a/cloudglue/sdk/models/frame_extraction_list_data_inner.py +++ b/cloudglue/sdk/models/frame_extraction_list_data_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/frame_extraction_thumbnails_config.py b/cloudglue/sdk/models/frame_extraction_thumbnails_config.py index c3e3df25..50884140 100644 --- a/cloudglue/sdk/models/frame_extraction_thumbnails_config.py +++ b/cloudglue/sdk/models/frame_extraction_thumbnails_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/frame_extraction_uniform_config.py b/cloudglue/sdk/models/frame_extraction_uniform_config.py index 0abd6da9..65df8469 100644 --- a/cloudglue/sdk/models/frame_extraction_uniform_config.py +++ b/cloudglue/sdk/models/frame_extraction_uniform_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/gong_source_metadata.py b/cloudglue/sdk/models/gong_source_metadata.py index 48e39c9d..33fc253f 100644 --- a/cloudglue/sdk/models/gong_source_metadata.py +++ b/cloudglue/sdk/models/gong_source_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/gong_source_metadata_parties_inner.py b/cloudglue/sdk/models/gong_source_metadata_parties_inner.py index 0fa60b73..16f1880f 100644 --- a/cloudglue/sdk/models/gong_source_metadata_parties_inner.py +++ b/cloudglue/sdk/models/gong_source_metadata_parties_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/gong_source_metadata_topics_inner.py b/cloudglue/sdk/models/gong_source_metadata_topics_inner.py index 94fb626a..6d85cb29 100644 --- a/cloudglue/sdk/models/gong_source_metadata_topics_inner.py +++ b/cloudglue/sdk/models/gong_source_metadata_topics_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/gong_source_metadata_trackers_inner.py b/cloudglue/sdk/models/gong_source_metadata_trackers_inner.py index 3e88662b..59748ad8 100644 --- a/cloudglue/sdk/models/gong_source_metadata_trackers_inner.py +++ b/cloudglue/sdk/models/gong_source_metadata_trackers_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/google_drive_source_metadata.py b/cloudglue/sdk/models/google_drive_source_metadata.py index 59d2413d..7a19ecc6 100644 --- a/cloudglue/sdk/models/google_drive_source_metadata.py +++ b/cloudglue/sdk/models/google_drive_source_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/google_drive_source_metadata_last_modifying_user.py b/cloudglue/sdk/models/google_drive_source_metadata_last_modifying_user.py index a8fa6450..bc2142c3 100644 --- a/cloudglue/sdk/models/google_drive_source_metadata_last_modifying_user.py +++ b/cloudglue/sdk/models/google_drive_source_metadata_last_modifying_user.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/google_drive_source_metadata_owners_inner.py b/cloudglue/sdk/models/google_drive_source_metadata_owners_inner.py index 4787043a..4ef07778 100644 --- a/cloudglue/sdk/models/google_drive_source_metadata_owners_inner.py +++ b/cloudglue/sdk/models/google_drive_source_metadata_owners_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/google_drive_source_metadata_video_media_metadata.py b/cloudglue/sdk/models/google_drive_source_metadata_video_media_metadata.py index 411616e4..ec64854e 100644 --- a/cloudglue/sdk/models/google_drive_source_metadata_video_media_metadata.py +++ b/cloudglue/sdk/models/google_drive_source_metadata_video_media_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/grain_source_metadata.py b/cloudglue/sdk/models/grain_source_metadata.py index c0ebe918..35c41c9a 100644 --- a/cloudglue/sdk/models/grain_source_metadata.py +++ b/cloudglue/sdk/models/grain_source_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/grain_source_metadata_ai_action_items_inner.py b/cloudglue/sdk/models/grain_source_metadata_ai_action_items_inner.py index 0dccaa83..e1a8b4ae 100644 --- a/cloudglue/sdk/models/grain_source_metadata_ai_action_items_inner.py +++ b/cloudglue/sdk/models/grain_source_metadata_ai_action_items_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/grain_source_metadata_ai_action_items_inner_assignee.py b/cloudglue/sdk/models/grain_source_metadata_ai_action_items_inner_assignee.py index dbc2158d..5d5df0b7 100644 --- a/cloudglue/sdk/models/grain_source_metadata_ai_action_items_inner_assignee.py +++ b/cloudglue/sdk/models/grain_source_metadata_ai_action_items_inner_assignee.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/grain_source_metadata_ai_summary.py b/cloudglue/sdk/models/grain_source_metadata_ai_summary.py index ed13d7cb..cf0d634e 100644 --- a/cloudglue/sdk/models/grain_source_metadata_ai_summary.py +++ b/cloudglue/sdk/models/grain_source_metadata_ai_summary.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/grain_source_metadata_calendar_event.py b/cloudglue/sdk/models/grain_source_metadata_calendar_event.py index b0be24fb..482bf391 100644 --- a/cloudglue/sdk/models/grain_source_metadata_calendar_event.py +++ b/cloudglue/sdk/models/grain_source_metadata_calendar_event.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/grain_source_metadata_hubspot.py b/cloudglue/sdk/models/grain_source_metadata_hubspot.py index a7850535..c97cccf8 100644 --- a/cloudglue/sdk/models/grain_source_metadata_hubspot.py +++ b/cloudglue/sdk/models/grain_source_metadata_hubspot.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/grain_source_metadata_meeting_type.py b/cloudglue/sdk/models/grain_source_metadata_meeting_type.py index a1e8efc4..4ef8d699 100644 --- a/cloudglue/sdk/models/grain_source_metadata_meeting_type.py +++ b/cloudglue/sdk/models/grain_source_metadata_meeting_type.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/grain_source_metadata_participants_inner.py b/cloudglue/sdk/models/grain_source_metadata_participants_inner.py index 79b0cd23..f98f8a86 100644 --- a/cloudglue/sdk/models/grain_source_metadata_participants_inner.py +++ b/cloudglue/sdk/models/grain_source_metadata_participants_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/grain_source_metadata_teams_inner.py b/cloudglue/sdk/models/grain_source_metadata_teams_inner.py index b7a9cb27..ebef37fd 100644 --- a/cloudglue/sdk/models/grain_source_metadata_teams_inner.py +++ b/cloudglue/sdk/models/grain_source_metadata_teams_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/iconik_source_metadata.py b/cloudglue/sdk/models/iconik_source_metadata.py index 9d77c724..6e332a86 100644 --- a/cloudglue/sdk/models/iconik_source_metadata.py +++ b/cloudglue/sdk/models/iconik_source_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/keyframe_config.py b/cloudglue/sdk/models/keyframe_config.py index 21906421..ba1e747b 100644 --- a/cloudglue/sdk/models/keyframe_config.py +++ b/cloudglue/sdk/models/keyframe_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/knowledge_base_collections.py b/cloudglue/sdk/models/knowledge_base_collections.py index 864fdbd7..fba49324 100644 --- a/cloudglue/sdk/models/knowledge_base_collections.py +++ b/cloudglue/sdk/models/knowledge_base_collections.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/knowledge_base_default.py b/cloudglue/sdk/models/knowledge_base_default.py index f256637a..56adef22 100644 --- a/cloudglue/sdk/models/knowledge_base_default.py +++ b/cloudglue/sdk/models/knowledge_base_default.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/knowledge_base_files.py b/cloudglue/sdk/models/knowledge_base_files.py index a703d594..cde027f0 100644 --- a/cloudglue/sdk/models/knowledge_base_files.py +++ b/cloudglue/sdk/models/knowledge_base_files.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/list_video_tags_response.py b/cloudglue/sdk/models/list_video_tags_response.py index 0257cebe..961cd06a 100644 --- a/cloudglue/sdk/models/list_video_tags_response.py +++ b/cloudglue/sdk/models/list_video_tags_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/media_description.py b/cloudglue/sdk/models/media_description.py index 8798d97e..09ad3e7b 100644 --- a/cloudglue/sdk/models/media_description.py +++ b/cloudglue/sdk/models/media_description.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/narrative_config.py b/cloudglue/sdk/models/narrative_config.py index 2aa26282..bcca8390 100644 --- a/cloudglue/sdk/models/narrative_config.py +++ b/cloudglue/sdk/models/narrative_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_collection.py b/cloudglue/sdk/models/new_collection.py index 1eb2ced2..4ebec9ad 100644 --- a/cloudglue/sdk/models/new_collection.py +++ b/cloudglue/sdk/models/new_collection.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_collection_describe_config.py b/cloudglue/sdk/models/new_collection_describe_config.py index eae65342..6334f83a 100644 --- a/cloudglue/sdk/models/new_collection_describe_config.py +++ b/cloudglue/sdk/models/new_collection_describe_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_collection_extract_config.py b/cloudglue/sdk/models/new_collection_extract_config.py index 7f654898..771571fa 100644 --- a/cloudglue/sdk/models/new_collection_extract_config.py +++ b/cloudglue/sdk/models/new_collection_extract_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_collection_face_detection_config.py b/cloudglue/sdk/models/new_collection_face_detection_config.py index c902fd6e..c7f86ceb 100644 --- a/cloudglue/sdk/models/new_collection_face_detection_config.py +++ b/cloudglue/sdk/models/new_collection_face_detection_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_collection_transcribe_config.py b/cloudglue/sdk/models/new_collection_transcribe_config.py index cd8dc05e..127039a0 100644 --- a/cloudglue/sdk/models/new_collection_transcribe_config.py +++ b/cloudglue/sdk/models/new_collection_transcribe_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_describe.py b/cloudglue/sdk/models/new_describe.py index 82a15164..bced404d 100644 --- a/cloudglue/sdk/models/new_describe.py +++ b/cloudglue/sdk/models/new_describe.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_describe_all_of_participants.py b/cloudglue/sdk/models/new_describe_all_of_participants.py index 570ab9f9..138e113c 100644 --- a/cloudglue/sdk/models/new_describe_all_of_participants.py +++ b/cloudglue/sdk/models/new_describe_all_of_participants.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_extract.py b/cloudglue/sdk/models/new_extract.py index 462903c9..d68ded7d 100644 --- a/cloudglue/sdk/models/new_extract.py +++ b/cloudglue/sdk/models/new_extract.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_segments.py b/cloudglue/sdk/models/new_segments.py index d028a433..284bfb12 100644 --- a/cloudglue/sdk/models/new_segments.py +++ b/cloudglue/sdk/models/new_segments.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/new_transcribe.py b/cloudglue/sdk/models/new_transcribe.py index 3dfa9a3d..94988084 100644 --- a/cloudglue/sdk/models/new_transcribe.py +++ b/cloudglue/sdk/models/new_transcribe.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/pagination_response.py b/cloudglue/sdk/models/pagination_response.py index e1cb2c56..45e0d418 100644 --- a/cloudglue/sdk/models/pagination_response.py +++ b/cloudglue/sdk/models/pagination_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/query_list_item.py b/cloudglue/sdk/models/query_list_item.py new file mode 100644 index 00000000..83369074 --- /dev/null +++ b/cloudglue/sdk/models/query_list_item.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudglue.sdk.models.query_result_error import QueryResultError +from cloudglue.sdk.models.query_usage import QueryUsage +from typing import Optional, Set +from typing_extensions import Self + +class QueryListItem(BaseModel): + """ + QueryListItem + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Query result ID") + object: Optional[StrictStr] = Field(default=None, description="Object type identifier") + status: Optional[StrictStr] = Field(default=None, description="Current status") + created_at: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Unix timestamp of creation") + collections: Optional[List[StrictStr]] = Field(default=None, description="Collection IDs the query ran over") + sql: Optional[StrictStr] = Field(default=None, description="The effective SQL that was executed") + row_count: Optional[StrictInt] = Field(default=None, description="Number of rows returned") + truncated: Optional[StrictBool] = Field(default=None, description="Whether the result was truncated") + usage: Optional[QueryUsage] = None + error: Optional[QueryResultError] = None + __properties: ClassVar[List[str]] = ["id", "object", "status", "created_at", "collections", "sql", "row_count", "truncated", "usage", "error"] + + @field_validator('object') + def object_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['query_result']): + raise ValueError("must be one of enum values ('query_result')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['completed', 'failed', 'in_progress', 'cancelled']): + raise ValueError("must be one of enum values ('completed', 'failed', 'in_progress', 'cancelled')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QueryListItem from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of usage + if self.usage: + _dict['usage'] = self.usage.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + # set to None if sql (nullable) is None + # and model_fields_set contains the field + if self.sql is None and "sql" in self.model_fields_set: + _dict['sql'] = None + + # set to None if error (nullable) is None + # and model_fields_set contains the field + if self.error is None and "error" in self.model_fields_set: + _dict['error'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QueryListItem from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "object": obj.get("object"), + "status": obj.get("status"), + "created_at": obj.get("created_at"), + "collections": obj.get("collections"), + "sql": obj.get("sql"), + "row_count": obj.get("row_count"), + "truncated": obj.get("truncated"), + "usage": QueryUsage.from_dict(obj["usage"]) if obj.get("usage") is not None else None, + "error": QueryResultError.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_list_response.py b/cloudglue/sdk/models/query_list_response.py new file mode 100644 index 00000000..dbd35945 --- /dev/null +++ b/cloudglue/sdk/models/query_list_response.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudglue.sdk.models.query_list_item import QueryListItem +from typing import Optional, Set +from typing_extensions import Self + +class QueryListResponse(BaseModel): + """ + QueryListResponse + """ # noqa: E501 + object: Optional[StrictStr] = Field(default=None, description="Object type identifier") + data: Optional[List[QueryListItem]] = Field(default=None, description="Array of query result items (without columns or rows)") + total: Optional[StrictInt] = Field(default=None, description="Total number of query results") + limit: Optional[StrictInt] = Field(default=None, description="Maximum number of items returned") + offset: Optional[StrictInt] = Field(default=None, description="Number of items skipped") + __properties: ClassVar[List[str]] = ["object", "data", "total", "limit", "offset"] + + @field_validator('object') + def object_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['list']): + raise ValueError("must be one of enum values ('list')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QueryListResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QueryListResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "object": obj.get("object"), + "data": [QueryListItem.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "total": obj.get("total"), + "limit": obj.get("limit"), + "offset": obj.get("offset") + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_result.py b/cloudglue/sdk/models/query_result.py new file mode 100644 index 00000000..0ac99476 --- /dev/null +++ b/cloudglue/sdk/models/query_result.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudglue.sdk.models.query_result_columns_inner import QueryResultColumnsInner +from cloudglue.sdk.models.query_result_error import QueryResultError +from cloudglue.sdk.models.query_usage import QueryUsage +from typing import Optional, Set +from typing_extensions import Self + +class QueryResult(BaseModel): + """ + QueryResult + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Query result ID") + object: Optional[StrictStr] = Field(default=None, description="Object type identifier") + status: Optional[StrictStr] = Field(default=None, description="Current status of the query. Synchronous queries return 'completed' or 'failed'.") + created_at: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Unix timestamp of when the query was created") + collections: Optional[List[StrictStr]] = Field(default=None, description="Collection IDs the query ran over") + sql: Optional[StrictStr] = Field(default=None, description="The effective SQL that was executed (echoes the request's sql)") + columns: Optional[List[QueryResultColumnsInner]] = Field(default=None, description="Result columns in select order") + rows: Optional[List[Dict[str, Any]]] = Field(default=None, description="Result rows as objects keyed by column name") + row_count: Optional[StrictInt] = Field(default=None, description="Number of rows returned") + truncated: Optional[StrictBool] = Field(default=None, description="Whether the result was truncated by max_rows or the stored-result size cap") + dry_run: Optional[StrictBool] = Field(default=None, description="True when the query was only validated/compiled (dry_run request): columns holds the output schema and rows is null.") + usage: Optional[QueryUsage] = None + error: Optional[QueryResultError] = None + format: Optional[StrictStr] = Field(default=None, description="The result format ('csv'/'jsonl' for background exports)") + download_url: Optional[StrictStr] = Field(default=None, description="Signed URL to download a completed background export. Valid for 24 hours and not refreshed on read (re-run the export if it expires); null for synchronous runs and until a background export completes") + download_expires_at: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Unix timestamp (ms) when download_url expires") + output_bytes: Optional[StrictInt] = Field(default=None, description="Compressed size of a completed background export, in bytes") + __properties: ClassVar[List[str]] = ["id", "object", "status", "created_at", "collections", "sql", "columns", "rows", "row_count", "truncated", "dry_run", "usage", "error", "format", "download_url", "download_expires_at", "output_bytes"] + + @field_validator('object') + def object_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['query_result']): + raise ValueError("must be one of enum values ('query_result')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['completed', 'failed', 'in_progress', 'cancelled']): + raise ValueError("must be one of enum values ('completed', 'failed', 'in_progress', 'cancelled')") + return value + + @field_validator('format') + def format_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['json', 'csv', 'jsonl']): + raise ValueError("must be one of enum values ('json', 'csv', 'jsonl')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QueryResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in columns (list) + _items = [] + if self.columns: + for _item_columns in self.columns: + if _item_columns: + _items.append(_item_columns.to_dict()) + _dict['columns'] = _items + # override the default output from pydantic by calling `to_dict()` of usage + if self.usage: + _dict['usage'] = self.usage.to_dict() + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + # set to None if sql (nullable) is None + # and model_fields_set contains the field + if self.sql is None and "sql" in self.model_fields_set: + _dict['sql'] = None + + # set to None if columns (nullable) is None + # and model_fields_set contains the field + if self.columns is None and "columns" in self.model_fields_set: + _dict['columns'] = None + + # set to None if rows (nullable) is None + # and model_fields_set contains the field + if self.rows is None and "rows" in self.model_fields_set: + _dict['rows'] = None + + # set to None if error (nullable) is None + # and model_fields_set contains the field + if self.error is None and "error" in self.model_fields_set: + _dict['error'] = None + + # set to None if format (nullable) is None + # and model_fields_set contains the field + if self.format is None and "format" in self.model_fields_set: + _dict['format'] = None + + # set to None if download_url (nullable) is None + # and model_fields_set contains the field + if self.download_url is None and "download_url" in self.model_fields_set: + _dict['download_url'] = None + + # set to None if download_expires_at (nullable) is None + # and model_fields_set contains the field + if self.download_expires_at is None and "download_expires_at" in self.model_fields_set: + _dict['download_expires_at'] = None + + # set to None if output_bytes (nullable) is None + # and model_fields_set contains the field + if self.output_bytes is None and "output_bytes" in self.model_fields_set: + _dict['output_bytes'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QueryResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "object": obj.get("object"), + "status": obj.get("status"), + "created_at": obj.get("created_at"), + "collections": obj.get("collections"), + "sql": obj.get("sql"), + "columns": [QueryResultColumnsInner.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, + "rows": obj.get("rows"), + "row_count": obj.get("row_count"), + "truncated": obj.get("truncated"), + "dry_run": obj.get("dry_run"), + "usage": QueryUsage.from_dict(obj["usage"]) if obj.get("usage") is not None else None, + "error": QueryResultError.from_dict(obj["error"]) if obj.get("error") is not None else None, + "format": obj.get("format"), + "download_url": obj.get("download_url"), + "download_expires_at": obj.get("download_expires_at"), + "output_bytes": obj.get("output_bytes") + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_result_columns_inner.py b/cloudglue/sdk/models/query_result_columns_inner.py new file mode 100644 index 00000000..fdae8f86 --- /dev/null +++ b/cloudglue/sdk/models/query_result_columns_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class QueryResultColumnsInner(BaseModel): + """ + QueryResultColumnsInner + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Column name") + type: Optional[StrictStr] = Field(default=None, description="SQL type of the column") + __properties: ClassVar[List[str]] = ["name", "type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QueryResultColumnsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QueryResultColumnsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type") + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_result_error.py b/cloudglue/sdk/models/query_result_error.py new file mode 100644 index 00000000..9d81a8b5 --- /dev/null +++ b/cloudglue/sdk/models/query_result_error.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class QueryResultError(BaseModel): + """ + Error details if the query failed + """ # noqa: E501 + code: Optional[StrictStr] = None + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["code", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QueryResultError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QueryResultError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "code": obj.get("code"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_schema.py b/cloudglue/sdk/models/query_schema.py new file mode 100644 index 00000000..bdce442c --- /dev/null +++ b/cloudglue/sdk/models/query_schema.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudglue.sdk.models.query_schema_collection import QuerySchemaCollection +from cloudglue.sdk.models.query_schema_table import QuerySchemaTable +from typing import Optional, Set +from typing_extensions import Self + +class QuerySchema(BaseModel): + """ + QuerySchema + """ # noqa: E501 + object: Optional[StrictStr] = Field(default=None, description="Object type identifier") + tables: Optional[List[QuerySchemaTable]] = Field(default=None, description="The virtual tables available to SQL queries") + collections: Optional[List[QuerySchemaCollection]] = Field(default=None, description="Per-collection extracted field summaries and extract configs") + __properties: ClassVar[List[str]] = ["object", "tables", "collections"] + + @field_validator('object') + def object_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['query_schema']): + raise ValueError("must be one of enum values ('query_schema')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QuerySchema from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tables (list) + _items = [] + if self.tables: + for _item_tables in self.tables: + if _item_tables: + _items.append(_item_tables.to_dict()) + _dict['tables'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in collections (list) + _items = [] + if self.collections: + for _item_collections in self.collections: + if _item_collections: + _items.append(_item_collections.to_dict()) + _dict['collections'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QuerySchema from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "object": obj.get("object"), + "tables": [QuerySchemaTable.from_dict(_item) for _item in obj["tables"]] if obj.get("tables") is not None else None, + "collections": [QuerySchemaCollection.from_dict(_item) for _item in obj["collections"]] if obj.get("collections") is not None else None + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_schema_collection.py b/cloudglue/sdk/models/query_schema_collection.py new file mode 100644 index 00000000..dd1ae739 --- /dev/null +++ b/cloudglue/sdk/models/query_schema_collection.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudglue.sdk.models.query_schema_collection_fields_inner import QuerySchemaCollectionFieldsInner +from typing import Optional, Set +from typing_extensions import Self + +class QuerySchemaCollection(BaseModel): + """ + QuerySchemaCollection + """ # noqa: E501 + collection_id: Optional[StrictStr] = Field(default=None, description="Collection ID") + fields: Optional[List[QuerySchemaCollectionFieldsInner]] = Field(default=None, description="Flat summary of the collection's extracted fields") + extract_schema: Optional[Dict[str, Any]] = Field(default=None, description="The collection's extract schema verbatim, showing nested value shapes. Null for collections without one (e.g. metadata collections, which are queried via the files table's metadata and source_metadata JSON columns).") + prompt: Optional[StrictStr] = Field(default=None, description="The collection's extraction prompt verbatim, if one was configured") + __properties: ClassVar[List[str]] = ["collection_id", "fields", "extract_schema", "prompt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QuerySchemaCollection from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in fields (list) + _items = [] + if self.fields: + for _item_fields in self.fields: + if _item_fields: + _items.append(_item_fields.to_dict()) + _dict['fields'] = _items + # set to None if extract_schema (nullable) is None + # and model_fields_set contains the field + if self.extract_schema is None and "extract_schema" in self.model_fields_set: + _dict['extract_schema'] = None + + # set to None if prompt (nullable) is None + # and model_fields_set contains the field + if self.prompt is None and "prompt" in self.model_fields_set: + _dict['prompt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QuerySchemaCollection from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "collection_id": obj.get("collection_id"), + "fields": [QuerySchemaCollectionFieldsInner.from_dict(_item) for _item in obj["fields"]] if obj.get("fields") is not None else None, + "extract_schema": obj.get("extract_schema"), + "prompt": obj.get("prompt") + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_schema_collection_fields_inner.py b/cloudglue/sdk/models/query_schema_collection_fields_inner.py new file mode 100644 index 00000000..649b8298 --- /dev/null +++ b/cloudglue/sdk/models/query_schema_collection_fields_inner.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class QuerySchemaCollectionFieldsInner(BaseModel): + """ + QuerySchemaCollectionFieldsInner + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Entity field name from the collection's extract schema") + type: Optional[StrictStr] = Field(default=None, description="Field value type from the extract schema (e.g. string, list)") + level: Optional[StrictStr] = Field(default=None, description="Where the field lives: 'file' fields appear as rows in the entities table; 'segment' fields live inside the segment_entities.entities JSON column") + __properties: ClassVar[List[str]] = ["name", "type", "level"] + + @field_validator('level') + def level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['file', 'segment']): + raise ValueError("must be one of enum values ('file', 'segment')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QuerySchemaCollectionFieldsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QuerySchemaCollectionFieldsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type"), + "level": obj.get("level") + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_schema_table.py b/cloudglue/sdk/models/query_schema_table.py new file mode 100644 index 00000000..53a4afd6 --- /dev/null +++ b/cloudglue/sdk/models/query_schema_table.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudglue.sdk.models.query_schema_table_columns_inner import QuerySchemaTableColumnsInner +from typing import Optional, Set +from typing_extensions import Self + +class QuerySchemaTable(BaseModel): + """ + QuerySchemaTable + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Virtual table name (files, entities, or segment_entities)") + description: Optional[StrictStr] = Field(default=None, description="What the table contains and how to join it") + columns: Optional[List[QuerySchemaTableColumnsInner]] = Field(default=None, description="Columns of the virtual table") + __properties: ClassVar[List[str]] = ["name", "description", "columns"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QuerySchemaTable from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in columns (list) + _items = [] + if self.columns: + for _item_columns in self.columns: + if _item_columns: + _items.append(_item_columns.to_dict()) + _dict['columns'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QuerySchemaTable from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "columns": [QuerySchemaTableColumnsInner.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_schema_table_columns_inner.py b/cloudglue/sdk/models/query_schema_table_columns_inner.py new file mode 100644 index 00000000..ccf73650 --- /dev/null +++ b/cloudglue/sdk/models/query_schema_table_columns_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class QuerySchemaTableColumnsInner(BaseModel): + """ + QuerySchemaTableColumnsInner + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Column name") + type: Optional[StrictStr] = Field(default=None, description="SQL column type") + description: Optional[StrictStr] = Field(default=None, description="What the column contains") + __properties: ClassVar[List[str]] = ["name", "type", "description"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QuerySchemaTableColumnsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QuerySchemaTableColumnsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type"), + "description": obj.get("description") + }) + return _obj + + diff --git a/cloudglue/sdk/models/query_usage.py b/cloudglue/sdk/models/query_usage.py new file mode 100644 index 00000000..9f440d47 --- /dev/null +++ b/cloudglue/sdk/models/query_usage.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class QueryUsage(BaseModel): + """ + QueryUsage + """ # noqa: E501 + files_scanned: Optional[StrictInt] = Field(default=None, description="Number of files loaded into the files virtual table") + entity_rows: Optional[StrictInt] = Field(default=None, description="Number of rows loaded into the entities virtual table") + segment_entity_rows: Optional[StrictInt] = Field(default=None, description="Number of rows loaded into the segment_entities virtual table") + engine_ms: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="SQL execution time in milliseconds") + total_ms: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total processing time in milliseconds, including dataset preparation") + __properties: ClassVar[List[str]] = ["files_scanned", "entity_rows", "segment_entity_rows", "engine_ms", "total_ms"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QueryUsage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QueryUsage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "files_scanned": obj.get("files_scanned"), + "entity_rows": obj.get("entity_rows"), + "segment_entity_rows": obj.get("segment_entity_rows"), + "engine_ms": obj.get("engine_ms"), + "total_ms": obj.get("total_ms") + }) + return _obj + + diff --git a/cloudglue/sdk/models/recall_source_metadata.py b/cloudglue/sdk/models/recall_source_metadata.py index b09f6aeb..e7d22aec 100644 --- a/cloudglue/sdk/models/recall_source_metadata.py +++ b/cloudglue/sdk/models/recall_source_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response.py b/cloudglue/sdk/models/response.py index bd996f29..5a5ec395 100644 --- a/cloudglue/sdk/models/response.py +++ b/cloudglue/sdk/models/response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from cloudglue.sdk.models.response_error import ResponseError -from cloudglue.sdk.models.response_output_message import ResponseOutputMessage +from cloudglue.sdk.models.response_output_inner import ResponseOutputInner from cloudglue.sdk.models.response_usage import ResponseUsage from typing import Optional, Set from typing_extensions import Self @@ -35,7 +35,7 @@ class Response(BaseModel): created_at: Optional[StrictInt] = Field(default=None, description="Unix timestamp of when the response was created") model: Optional[StrictStr] = Field(default=None, description="The model used for the response") instructions: Optional[StrictStr] = Field(default=None, description="The system instructions used") - output: Optional[List[ResponseOutputMessage]] = Field(default=None, description="The generated output messages") + output: Optional[List[ResponseOutputInner]] = Field(default=None, description="The generated output items: assistant message(s), any echoed function_call items, and one cloudglue_query_call per read-only SQL query the agent ran over structured data. Clients should tolerate unknown output-item types.") usage: Optional[ResponseUsage] = None error: Optional[ResponseError] = None __properties: ClassVar[List[str]] = ["id", "object", "status", "created_at", "model", "instructions", "output", "usage", "error"] @@ -145,7 +145,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "created_at": obj.get("created_at"), "model": obj.get("model"), "instructions": obj.get("instructions"), - "output": [ResponseOutputMessage.from_dict(_item) for _item in obj["output"]] if obj.get("output") is not None else None, + "output": [ResponseOutputInner.from_dict(_item) for _item in obj["output"]] if obj.get("output") is not None else None, "usage": ResponseUsage.from_dict(obj["usage"]) if obj.get("usage") is not None else None, "error": ResponseError.from_dict(obj["error"]) if obj.get("error") is not None else None }) diff --git a/cloudglue/sdk/models/response_annotation.py b/cloudglue/sdk/models/response_annotation.py index d6322c42..e152c1fa 100644 --- a/cloudglue/sdk/models/response_annotation.py +++ b/cloudglue/sdk/models/response_annotation.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_error.py b/cloudglue/sdk/models/response_error.py index 8537b64b..6eb1088e 100644 --- a/cloudglue/sdk/models/response_error.py +++ b/cloudglue/sdk/models/response_error.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_function_call.py b/cloudglue/sdk/models/response_function_call.py new file mode 100644 index 00000000..c36980be --- /dev/null +++ b/cloudglue/sdk/models/response_function_call.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ResponseFunctionCall(BaseModel): + """ + A function/tool call the model emitted (echoed back in output for client-executed tools). + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="The type of output item") + id: Optional[StrictStr] = Field(default=None, description="Identifier for this output item") + call_id: Optional[StrictStr] = Field(default=None, description="Correlates the call with its function_call_output") + name: Optional[StrictStr] = Field(default=None, description="The name of the called function") + arguments: Optional[StrictStr] = Field(default=None, description="JSON-encoded arguments to the function") + __properties: ClassVar[List[str]] = ["type", "id", "call_id", "name", "arguments"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['function_call']): + raise ValueError("must be one of enum values ('function_call')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ResponseFunctionCall from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ResponseFunctionCall from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "id": obj.get("id"), + "call_id": obj.get("call_id"), + "name": obj.get("name"), + "arguments": obj.get("arguments") + }) + return _obj + + diff --git a/cloudglue/sdk/models/response_input_content.py b/cloudglue/sdk/models/response_input_content.py index 1c3c194c..8bf994bc 100644 --- a/cloudglue/sdk/models/response_input_content.py +++ b/cloudglue/sdk/models/response_input_content.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_input_message.py b/cloudglue/sdk/models/response_input_message.py index 56509306..1b272961 100644 --- a/cloudglue/sdk/models/response_input_message.py +++ b/cloudglue/sdk/models/response_input_message.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_knowledge_base.py b/cloudglue/sdk/models/response_knowledge_base.py index beee4c02..0c861d45 100644 --- a/cloudglue/sdk/models/response_knowledge_base.py +++ b/cloudglue/sdk/models/response_knowledge_base.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_list.py b/cloudglue/sdk/models/response_list.py index 837eaa6c..add83e79 100644 --- a/cloudglue/sdk/models/response_list.py +++ b/cloudglue/sdk/models/response_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_list_item.py b/cloudglue/sdk/models/response_list_item.py index cc1df724..587cd7f4 100644 --- a/cloudglue/sdk/models/response_list_item.py +++ b/cloudglue/sdk/models/response_list_item.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_output_content.py b/cloudglue/sdk/models/response_output_content.py index 99b4e001..38a356a5 100644 --- a/cloudglue/sdk/models/response_output_content.py +++ b/cloudglue/sdk/models/response_output_content.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_output_inner.py b/cloudglue/sdk/models/response_output_inner.py new file mode 100644 index 00000000..b7510f3e --- /dev/null +++ b/cloudglue/sdk/models/response_output_inner.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cloudglue.sdk.models.response_function_call import ResponseFunctionCall +from cloudglue.sdk.models.response_output_message import ResponseOutputMessage +from cloudglue.sdk.models.response_query_call import ResponseQueryCall +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +RESPONSEOUTPUTINNER_ONE_OF_SCHEMAS = ["ResponseFunctionCall", "ResponseOutputMessage", "ResponseQueryCall"] + +class ResponseOutputInner(BaseModel): + """ + ResponseOutputInner + """ + # data type: ResponseOutputMessage + oneof_schema_1_validator: Optional[ResponseOutputMessage] = None + # data type: ResponseFunctionCall + oneof_schema_2_validator: Optional[ResponseFunctionCall] = None + # data type: ResponseQueryCall + oneof_schema_3_validator: Optional[ResponseQueryCall] = None + actual_instance: Optional[Union[ResponseFunctionCall, ResponseOutputMessage, ResponseQueryCall]] = None + one_of_schemas: Set[str] = { "ResponseFunctionCall", "ResponseOutputMessage", "ResponseQueryCall" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = ResponseOutputInner.model_construct() + error_messages = [] + match = 0 + # validate data type: ResponseOutputMessage + if not isinstance(v, ResponseOutputMessage): + error_messages.append(f"Error! Input type `{type(v)}` is not `ResponseOutputMessage`") + else: + match += 1 + # validate data type: ResponseFunctionCall + if not isinstance(v, ResponseFunctionCall): + error_messages.append(f"Error! Input type `{type(v)}` is not `ResponseFunctionCall`") + else: + match += 1 + # validate data type: ResponseQueryCall + if not isinstance(v, ResponseQueryCall): + error_messages.append(f"Error! Input type `{type(v)}` is not `ResponseQueryCall`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in ResponseOutputInner with oneOf schemas: ResponseFunctionCall, ResponseOutputMessage, ResponseQueryCall. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in ResponseOutputInner with oneOf schemas: ResponseFunctionCall, ResponseOutputMessage, ResponseQueryCall. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into ResponseOutputMessage + try: + instance.actual_instance = ResponseOutputMessage.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ResponseFunctionCall + try: + instance.actual_instance = ResponseFunctionCall.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ResponseQueryCall + try: + instance.actual_instance = ResponseQueryCall.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into ResponseOutputInner with oneOf schemas: ResponseFunctionCall, ResponseOutputMessage, ResponseQueryCall. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into ResponseOutputInner with oneOf schemas: ResponseFunctionCall, ResponseOutputMessage, ResponseQueryCall. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], ResponseFunctionCall, ResponseOutputMessage, ResponseQueryCall]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudglue/sdk/models/response_output_message.py b/cloudglue/sdk/models/response_output_message.py index edee1633..64a1e786 100644 --- a/cloudglue/sdk/models/response_output_message.py +++ b/cloudglue/sdk/models/response_output_message.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_query_call.py b/cloudglue/sdk/models/response_query_call.py new file mode 100644 index 00000000..0848bd78 --- /dev/null +++ b/cloudglue/sdk/models/response_query_call.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ResponseQueryCall(BaseModel): + """ + A read-only SQL query the nimbus-002 agent ran over the structured (extracted) data. Result rows are not included in v1. + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="The type of output item") + id: Optional[StrictStr] = Field(default=None, description="Identifier for this query call (query_)") + status: Optional[StrictStr] = Field(default=None, description="Whether the query executed successfully") + sql: Optional[StrictStr] = Field(default=None, description="The SQL SELECT that was executed") + row_count: Optional[StrictInt] = Field(default=None, description="Rows returned to the model after truncation") + total_rows: Optional[StrictInt] = Field(default=None, description="True total when the engine saw the whole result; null when truncated") + truncated: Optional[StrictBool] = Field(default=None, description="Whether the result was truncated (row or byte cap) before reaching the model") + error: Optional[StrictStr] = Field(default=None, description="Error message when status is failed; null otherwise") + __properties: ClassVar[List[str]] = ["type", "id", "status", "sql", "row_count", "total_rows", "truncated", "error"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['cloudglue_query_call']): + raise ValueError("must be one of enum values ('cloudglue_query_call')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['completed', 'failed']): + raise ValueError("must be one of enum values ('completed', 'failed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ResponseQueryCall from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if total_rows (nullable) is None + # and model_fields_set contains the field + if self.total_rows is None and "total_rows" in self.model_fields_set: + _dict['total_rows'] = None + + # set to None if error (nullable) is None + # and model_fields_set contains the field + if self.error is None and "error" in self.model_fields_set: + _dict['error'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ResponseQueryCall from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "id": obj.get("id"), + "status": obj.get("status"), + "sql": obj.get("sql"), + "row_count": obj.get("row_count"), + "total_rows": obj.get("total_rows"), + "truncated": obj.get("truncated"), + "error": obj.get("error") + }) + return _obj + + diff --git a/cloudglue/sdk/models/response_tool_definition.py b/cloudglue/sdk/models/response_tool_definition.py index 478b0e55..1f038956 100644 --- a/cloudglue/sdk/models/response_tool_definition.py +++ b/cloudglue/sdk/models/response_tool_definition.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/response_usage.py b/cloudglue/sdk/models/response_usage.py index 67fc98e8..bbd9e7ff 100644 --- a/cloudglue/sdk/models/response_usage.py +++ b/cloudglue/sdk/models/response_usage.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/rich_transcript.py b/cloudglue/sdk/models/rich_transcript.py index f3afb4c8..7d6abab4 100644 --- a/cloudglue/sdk/models/rich_transcript.py +++ b/cloudglue/sdk/models/rich_transcript.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/run_query_request.py b/cloudglue/sdk/models/run_query_request.py new file mode 100644 index 00000000..3acd3975 --- /dev/null +++ b/cloudglue/sdk/models/run_query_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Cloudglue API + + API for Cloudglue + + The version of the OpenAPI document: 0.7.15 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class RunQueryRequest(BaseModel): + """ + RunQueryRequest + """ # noqa: E501 + collections: Annotated[List[StrictStr], Field(min_length=1, max_length=20)] = Field(description="Collection IDs to query over. All collections must belong to your account; face-analysis collections are not supported.") + sql: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=20000)]] = Field(default=None, description="A single read-only SQL SELECT statement over the virtual tables (files, entities, segment_entities). Exactly one of sql or query must be provided.") + query: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=2000)]] = Field(default=None, description="A natural-language question to run instead of sql. Cloudglue compiles it to SQL against the same virtual schema, runs it, and returns the compiled statement in the response's sql field. Exactly one of sql or query must be provided. Costs 4 credits (refunded if compilation fails); returns 422 if it cannot be compiled.") + format: Optional[StrictStr] = Field(default='json', description="Result format. 'json' returns rows inline (synchronous). 'csv' and 'jsonl' are for background exports only and require background: true.") + max_rows: Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]] = Field(default=1000, description="Maximum number of result rows to return inline. Results with more rows are truncated (truncated: true). Does not apply to background exports, which stream the full result.") + background: Optional[StrictBool] = Field(default=False, description="When true, run the query as a background export: the full result streams to a gzipped csv/jsonl file and the response returns immediately with status 'in_progress' and an id to poll. Requires format 'csv' or 'jsonl'. Reserves 4 credits, reconciled to +1 per 100MB of compressed output. Cannot be combined with dry_run.") + dry_run: Optional[StrictBool] = Field(default=False, description="When true, validate (and, for a natural-language query, compile) the statement and return the effective SQL plus its output column schema without executing it over any data. No rows are produced and it is billed at a reduced rate. Cannot be combined with background.") + __properties: ClassVar[List[str]] = ["collections", "sql", "query", "format", "max_rows", "background", "dry_run"] + + @field_validator('format') + def format_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['json', 'csv', 'jsonl']): + raise ValueError("must be one of enum values ('json', 'csv', 'jsonl')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RunQueryRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RunQueryRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "collections": obj.get("collections"), + "sql": obj.get("sql"), + "query": obj.get("query"), + "format": obj.get("format") if obj.get("format") is not None else 'json', + "max_rows": obj.get("max_rows") if obj.get("max_rows") is not None else 1000, + "background": obj.get("background") if obj.get("background") is not None else False, + "dry_run": obj.get("dry_run") if obj.get("dry_run") is not None else False + }) + return _obj + + diff --git a/cloudglue/sdk/models/search_filter.py b/cloudglue/sdk/models/search_filter.py index bf0ef3e1..194fdbd2 100644 --- a/cloudglue/sdk/models/search_filter.py +++ b/cloudglue/sdk/models/search_filter.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_filter_criteria.py b/cloudglue/sdk/models/search_filter_criteria.py index d0f17235..0c99863d 100644 --- a/cloudglue/sdk/models/search_filter_criteria.py +++ b/cloudglue/sdk/models/search_filter_criteria.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_filter_file_inner.py b/cloudglue/sdk/models/search_filter_file_inner.py index 3abc8573..a6aec15f 100644 --- a/cloudglue/sdk/models/search_filter_file_inner.py +++ b/cloudglue/sdk/models/search_filter_file_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_filter_metadata_inner.py b/cloudglue/sdk/models/search_filter_metadata_inner.py index 6e52d0e6..a26ae336 100644 --- a/cloudglue/sdk/models/search_filter_metadata_inner.py +++ b/cloudglue/sdk/models/search_filter_metadata_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_filter_video_info_inner.py b/cloudglue/sdk/models/search_filter_video_info_inner.py index c9cce667..b3a35b6a 100644 --- a/cloudglue/sdk/models/search_filter_video_info_inner.py +++ b/cloudglue/sdk/models/search_filter_video_info_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_request.py b/cloudglue/sdk/models/search_request.py index df04b579..afe99793 100644 --- a/cloudglue/sdk/models/search_request.py +++ b/cloudglue/sdk/models/search_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_request_source_image.py b/cloudglue/sdk/models/search_request_source_image.py index d3f1f60f..a88e79d0 100644 --- a/cloudglue/sdk/models/search_request_source_image.py +++ b/cloudglue/sdk/models/search_request_source_image.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_response.py b/cloudglue/sdk/models/search_response.py index d5e171c4..ae9dd0d5 100644 --- a/cloudglue/sdk/models/search_response.py +++ b/cloudglue/sdk/models/search_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_response_list.py b/cloudglue/sdk/models/search_response_list.py index 837d88a0..d59fec43 100644 --- a/cloudglue/sdk/models/search_response_list.py +++ b/cloudglue/sdk/models/search_response_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_response_list_data_inner.py b/cloudglue/sdk/models/search_response_list_data_inner.py index 7de61703..6c439e72 100644 --- a/cloudglue/sdk/models/search_response_list_data_inner.py +++ b/cloudglue/sdk/models/search_response_list_data_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_response_results_inner.py b/cloudglue/sdk/models/search_response_results_inner.py index 151ea91e..7f6bbbb2 100644 --- a/cloudglue/sdk/models/search_response_results_inner.py +++ b/cloudglue/sdk/models/search_response_results_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/search_tag_response.py b/cloudglue/sdk/models/search_tag_response.py index 83aa035d..34b3d6f4 100644 --- a/cloudglue/sdk/models/search_tag_response.py +++ b/cloudglue/sdk/models/search_tag_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment.py b/cloudglue/sdk/models/segment.py index c78ef051..0553021e 100644 --- a/cloudglue/sdk/models/segment.py +++ b/cloudglue/sdk/models/segment.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_describe.py b/cloudglue/sdk/models/segment_describe.py index 1008c5f1..37dedc9f 100644 --- a/cloudglue/sdk/models/segment_describe.py +++ b/cloudglue/sdk/models/segment_describe.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_describe_data.py b/cloudglue/sdk/models/segment_describe_data.py index e1e1b918..3c1cbb53 100644 --- a/cloudglue/sdk/models/segment_describe_data.py +++ b/cloudglue/sdk/models/segment_describe_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_describe_json_data.py b/cloudglue/sdk/models/segment_describe_json_data.py index 4c72a584..15f9bd43 100644 --- a/cloudglue/sdk/models/segment_describe_json_data.py +++ b/cloudglue/sdk/models/segment_describe_json_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_describe_list_response.py b/cloudglue/sdk/models/segment_describe_list_response.py index 4da3c9d8..3f679579 100644 --- a/cloudglue/sdk/models/segment_describe_list_response.py +++ b/cloudglue/sdk/models/segment_describe_list_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_describe_markdown_data.py b/cloudglue/sdk/models/segment_describe_markdown_data.py index 8516070d..979480c2 100644 --- a/cloudglue/sdk/models/segment_describe_markdown_data.py +++ b/cloudglue/sdk/models/segment_describe_markdown_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_describe_output_entry.py b/cloudglue/sdk/models/segment_describe_output_entry.py index c8e91b45..2ef19cd4 100644 --- a/cloudglue/sdk/models/segment_describe_output_entry.py +++ b/cloudglue/sdk/models/segment_describe_output_entry.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_describe_speech_entry.py b/cloudglue/sdk/models/segment_describe_speech_entry.py index f151daec..4c794947 100644 --- a/cloudglue/sdk/models/segment_describe_speech_entry.py +++ b/cloudglue/sdk/models/segment_describe_speech_entry.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_group_result.py b/cloudglue/sdk/models/segment_group_result.py index 6aad9799..ac88a81e 100644 --- a/cloudglue/sdk/models/segment_group_result.py +++ b/cloudglue/sdk/models/segment_group_result.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_search_result.py b/cloudglue/sdk/models/segment_search_result.py index b2ae3f7f..736e46e4 100644 --- a/cloudglue/sdk/models/segment_search_result.py +++ b/cloudglue/sdk/models/segment_search_result.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_search_result_keyframes_inner.py b/cloudglue/sdk/models/segment_search_result_keyframes_inner.py index ba342c62..07d0fc7a 100644 --- a/cloudglue/sdk/models/segment_search_result_keyframes_inner.py +++ b/cloudglue/sdk/models/segment_search_result_keyframes_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_search_result_scene_text_inner.py b/cloudglue/sdk/models/segment_search_result_scene_text_inner.py index eea961d8..da73e26f 100644 --- a/cloudglue/sdk/models/segment_search_result_scene_text_inner.py +++ b/cloudglue/sdk/models/segment_search_result_scene_text_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_search_result_speech_inner.py b/cloudglue/sdk/models/segment_search_result_speech_inner.py index 2b927349..f893f5d3 100644 --- a/cloudglue/sdk/models/segment_search_result_speech_inner.py +++ b/cloudglue/sdk/models/segment_search_result_speech_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segment_search_result_visual_description_inner.py b/cloudglue/sdk/models/segment_search_result_visual_description_inner.py index 612ec864..a7a829ff 100644 --- a/cloudglue/sdk/models/segment_search_result_visual_description_inner.py +++ b/cloudglue/sdk/models/segment_search_result_visual_description_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation.py b/cloudglue/sdk/models/segmentation.py index d10f588e..7c73c778 100644 --- a/cloudglue/sdk/models/segmentation.py +++ b/cloudglue/sdk/models/segmentation.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation_config.py b/cloudglue/sdk/models/segmentation_config.py index 03478b4a..348d9ee5 100644 --- a/cloudglue/sdk/models/segmentation_config.py +++ b/cloudglue/sdk/models/segmentation_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation_data.py b/cloudglue/sdk/models/segmentation_data.py index 8d7fa01b..8ac2ac99 100644 --- a/cloudglue/sdk/models/segmentation_data.py +++ b/cloudglue/sdk/models/segmentation_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation_data_segments_inner.py b/cloudglue/sdk/models/segmentation_data_segments_inner.py index 162f2d32..c01344c0 100644 --- a/cloudglue/sdk/models/segmentation_data_segments_inner.py +++ b/cloudglue/sdk/models/segmentation_data_segments_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation_list.py b/cloudglue/sdk/models/segmentation_list.py index 2d074133..6b6a34e6 100644 --- a/cloudglue/sdk/models/segmentation_list.py +++ b/cloudglue/sdk/models/segmentation_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation_list_item.py b/cloudglue/sdk/models/segmentation_list_item.py index ac2c6712..220303d3 100644 --- a/cloudglue/sdk/models/segmentation_list_item.py +++ b/cloudglue/sdk/models/segmentation_list_item.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation_manual_config.py b/cloudglue/sdk/models/segmentation_manual_config.py index 513292b3..f0e17704 100644 --- a/cloudglue/sdk/models/segmentation_manual_config.py +++ b/cloudglue/sdk/models/segmentation_manual_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation_manual_config_segments_inner.py b/cloudglue/sdk/models/segmentation_manual_config_segments_inner.py index bc7d784e..acea809d 100644 --- a/cloudglue/sdk/models/segmentation_manual_config_segments_inner.py +++ b/cloudglue/sdk/models/segmentation_manual_config_segments_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation_shot_detector_config.py b/cloudglue/sdk/models/segmentation_shot_detector_config.py index 4c2ddaf9..b0b8f378 100644 --- a/cloudglue/sdk/models/segmentation_shot_detector_config.py +++ b/cloudglue/sdk/models/segmentation_shot_detector_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segmentation_uniform_config.py b/cloudglue/sdk/models/segmentation_uniform_config.py index 44baff33..8e492099 100644 --- a/cloudglue/sdk/models/segmentation_uniform_config.py +++ b/cloudglue/sdk/models/segmentation_uniform_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segments.py b/cloudglue/sdk/models/segments.py index a5b2ba4f..7eeb489c 100644 --- a/cloudglue/sdk/models/segments.py +++ b/cloudglue/sdk/models/segments.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segments_list.py b/cloudglue/sdk/models/segments_list.py index f89e8774..6e0968ec 100644 --- a/cloudglue/sdk/models/segments_list.py +++ b/cloudglue/sdk/models/segments_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/segments_list_item.py b/cloudglue/sdk/models/segments_list_item.py index 62a0b953..372f106b 100644 --- a/cloudglue/sdk/models/segments_list_item.py +++ b/cloudglue/sdk/models/segments_list_item.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/shareable_asset.py b/cloudglue/sdk/models/shareable_asset.py index 29faec39..48d0ef84 100644 --- a/cloudglue/sdk/models/shareable_asset.py +++ b/cloudglue/sdk/models/shareable_asset.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/shareable_asset_list_response.py b/cloudglue/sdk/models/shareable_asset_list_response.py index aea622df..c9fdb9eb 100644 --- a/cloudglue/sdk/models/shareable_asset_list_response.py +++ b/cloudglue/sdk/models/shareable_asset_list_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/shot.py b/cloudglue/sdk/models/shot.py index c7abacdc..360fcc38 100644 --- a/cloudglue/sdk/models/shot.py +++ b/cloudglue/sdk/models/shot.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/shot_config.py b/cloudglue/sdk/models/shot_config.py index c4c5c6f0..04078a8b 100644 --- a/cloudglue/sdk/models/shot_config.py +++ b/cloudglue/sdk/models/shot_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/source_image.py b/cloudglue/sdk/models/source_image.py index 4ab4f2b8..0e9a8337 100644 --- a/cloudglue/sdk/models/source_image.py +++ b/cloudglue/sdk/models/source_image.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/source_metadata.py b/cloudglue/sdk/models/source_metadata.py index e5743f63..ff76b1e2 100644 --- a/cloudglue/sdk/models/source_metadata.py +++ b/cloudglue/sdk/models/source_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/source_metadata_response.py b/cloudglue/sdk/models/source_metadata_response.py index feb5b9f4..1ccb1f9b 100644 --- a/cloudglue/sdk/models/source_metadata_response.py +++ b/cloudglue/sdk/models/source_metadata_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/speech_output_part.py b/cloudglue/sdk/models/speech_output_part.py index 646224d1..846e94f6 100644 --- a/cloudglue/sdk/models/speech_output_part.py +++ b/cloudglue/sdk/models/speech_output_part.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/sync_data_connector_file_request.py b/cloudglue/sdk/models/sync_data_connector_file_request.py index 9f11a26b..401cb655 100644 --- a/cloudglue/sdk/models/sync_data_connector_file_request.py +++ b/cloudglue/sdk/models/sync_data_connector_file_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/sync_file_from_url_request.py b/cloudglue/sdk/models/sync_file_from_url_request.py index f33908f8..0334c15b 100644 --- a/cloudglue/sdk/models/sync_file_from_url_request.py +++ b/cloudglue/sdk/models/sync_file_from_url_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/thumbnail.py b/cloudglue/sdk/models/thumbnail.py index ce897b58..f04408de 100644 --- a/cloudglue/sdk/models/thumbnail.py +++ b/cloudglue/sdk/models/thumbnail.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/thumbnail_list.py b/cloudglue/sdk/models/thumbnail_list.py index 734edf69..cacc4de2 100644 --- a/cloudglue/sdk/models/thumbnail_list.py +++ b/cloudglue/sdk/models/thumbnail_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/thumbnails_config.py b/cloudglue/sdk/models/thumbnails_config.py index db3ab4c9..d15a7db5 100644 --- a/cloudglue/sdk/models/thumbnails_config.py +++ b/cloudglue/sdk/models/thumbnails_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/transcribe.py b/cloudglue/sdk/models/transcribe.py index 20ffbec4..66f501f1 100644 --- a/cloudglue/sdk/models/transcribe.py +++ b/cloudglue/sdk/models/transcribe.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/transcribe_data.py b/cloudglue/sdk/models/transcribe_data.py index 62ab00ff..87c75d37 100644 --- a/cloudglue/sdk/models/transcribe_data.py +++ b/cloudglue/sdk/models/transcribe_data.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/transcribe_data_all_of_segment_summary_inner.py b/cloudglue/sdk/models/transcribe_data_all_of_segment_summary_inner.py index 605331dd..227c8cf1 100644 --- a/cloudglue/sdk/models/transcribe_data_all_of_segment_summary_inner.py +++ b/cloudglue/sdk/models/transcribe_data_all_of_segment_summary_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/transcribe_list.py b/cloudglue/sdk/models/transcribe_list.py index f81e5db8..1b9655d6 100644 --- a/cloudglue/sdk/models/transcribe_list.py +++ b/cloudglue/sdk/models/transcribe_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/transcribe_transcribe_config.py b/cloudglue/sdk/models/transcribe_transcribe_config.py index 6fc07761..c05a21e7 100644 --- a/cloudglue/sdk/models/transcribe_transcribe_config.py +++ b/cloudglue/sdk/models/transcribe_transcribe_config.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/update_describe_request.py b/cloudglue/sdk/models/update_describe_request.py index 278bae4d..f081078b 100644 --- a/cloudglue/sdk/models/update_describe_request.py +++ b/cloudglue/sdk/models/update_describe_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/update_file_segment_request.py b/cloudglue/sdk/models/update_file_segment_request.py index 8019266a..b8edcab5 100644 --- a/cloudglue/sdk/models/update_file_segment_request.py +++ b/cloudglue/sdk/models/update_file_segment_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/update_shareable_asset_request.py b/cloudglue/sdk/models/update_shareable_asset_request.py index e92a13a5..dcf9bbe5 100644 --- a/cloudglue/sdk/models/update_shareable_asset_request.py +++ b/cloudglue/sdk/models/update_shareable_asset_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/update_video_tag_request.py b/cloudglue/sdk/models/update_video_tag_request.py index f2d6df49..a9925960 100644 --- a/cloudglue/sdk/models/update_video_tag_request.py +++ b/cloudglue/sdk/models/update_video_tag_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/video_tag.py b/cloudglue/sdk/models/video_tag.py index 212bdcfb..4731e6bd 100644 --- a/cloudglue/sdk/models/video_tag.py +++ b/cloudglue/sdk/models/video_tag.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/webhook.py b/cloudglue/sdk/models/webhook.py index f63ccce1..8b4ef198 100644 --- a/cloudglue/sdk/models/webhook.py +++ b/cloudglue/sdk/models/webhook.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/webhook_create_request.py b/cloudglue/sdk/models/webhook_create_request.py index f0977838..68554d1d 100644 --- a/cloudglue/sdk/models/webhook_create_request.py +++ b/cloudglue/sdk/models/webhook_create_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/webhook_delete_response.py b/cloudglue/sdk/models/webhook_delete_response.py index d469a288..895c441f 100644 --- a/cloudglue/sdk/models/webhook_delete_response.py +++ b/cloudglue/sdk/models/webhook_delete_response.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/webhook_events.py b/cloudglue/sdk/models/webhook_events.py index 37cc21fc..3b7ca7ed 100644 --- a/cloudglue/sdk/models/webhook_events.py +++ b/cloudglue/sdk/models/webhook_events.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/webhook_list.py b/cloudglue/sdk/models/webhook_list.py index 0f82118a..0a111ede 100644 --- a/cloudglue/sdk/models/webhook_list.py +++ b/cloudglue/sdk/models/webhook_list.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/webhook_update_request.py b/cloudglue/sdk/models/webhook_update_request.py index 70ecefc5..0fac4683 100644 --- a/cloudglue/sdk/models/webhook_update_request.py +++ b/cloudglue/sdk/models/webhook_update_request.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/word_timestamp.py b/cloudglue/sdk/models/word_timestamp.py index 1f0cd2a7..7e84c34f 100644 --- a/cloudglue/sdk/models/word_timestamp.py +++ b/cloudglue/sdk/models/word_timestamp.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/zoom_source_metadata.py b/cloudglue/sdk/models/zoom_source_metadata.py index 6ff1ab91..d334d161 100644 --- a/cloudglue/sdk/models/zoom_source_metadata.py +++ b/cloudglue/sdk/models/zoom_source_metadata.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/models/zoom_source_metadata_recording_files_inner.py b/cloudglue/sdk/models/zoom_source_metadata_recording_files_inner.py index 0e226572..472db94f 100644 --- a/cloudglue/sdk/models/zoom_source_metadata_recording_files_inner.py +++ b/cloudglue/sdk/models/zoom_source_metadata_recording_files_inner.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudglue/sdk/rest.py b/cloudglue/sdk/rest.py index 042a59eb..159ba604 100644 --- a/cloudglue/sdk/rest.py +++ b/cloudglue/sdk/rest.py @@ -5,7 +5,7 @@ API for Cloudglue - The version of the OpenAPI document: 0.7.12 + The version of the OpenAPI document: 0.7.15 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/pyproject.toml b/pyproject.toml index f894ae9a..879bf949 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "cloudglue" -version = "0.7.19" +version = "0.7.20" description = "Python SDK for Cloudglue API" readme = "README.md" requires-python = ">=3.10" diff --git a/spec b/spec index ca47e066..9a44cbc3 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit ca47e0663e5c578fd8e72e8d89d9e1149e9dcea8 +Subproject commit 9a44cbc3a09d38e535d6cafe2fd2758b2441cd8a From 464c0471be164875537fb1ef5a17bd1c2f73d9fe Mon Sep 17 00:00:00 2001 From: KDR Date: Tue, 28 Jul 2026 18:47:43 -0700 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20address=20Bugbot=20feedback=20?= =?UTF-8?q?=E2=80=94=20wait=5Ffor=5Fready=20returns=20failed=20runs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit query.wait_for_ready now returns the final QueryResult for failed runs instead of raising with only the query ID, preserving the fetched error payload (code/message) — matching the other wait helpers in this client (e.g. extract.run) which return terminal objects for inspection. --- cloudglue/client/resources/query.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cloudglue/client/resources/query.py b/cloudglue/client/resources/query.py index d89b4db9..a13e3384 100644 --- a/cloudglue/client/resources/query.py +++ b/cloudglue/client/resources/query.py @@ -199,7 +199,10 @@ def wait_for_ready( ): """Wait for a background query run to reach a terminal state. - Polls `get()` until the run is completed, failed, or cancelled. + Polls `get()` until the run is completed, failed, or cancelled, and + returns the final QueryResult either way — a failed run is returned + with its `error` payload (code/message) intact so callers can inspect + why it failed, matching the other wait helpers in this client. Args: query_id: The ID of the query run to wait for. @@ -207,18 +210,18 @@ def wait_for_ready( timeout: Maximum time to wait (in seconds). Returns: - The final QueryResult object. + The final QueryResult object (status 'completed', 'failed', or + 'cancelled'; on failure, `error` carries the details). Raises: - CloudglueError: If the run fails or the timeout is reached. + CloudglueError: If polling itself errors or the timeout is + reached. """ try: elapsed = 0 while elapsed < timeout: run = self.get(query_id) if run.status in ("completed", "failed", "cancelled"): - if run.status == "failed": - raise CloudglueError(f"Query run failed: {query_id}") return run time.sleep(poll_interval) elapsed += poll_interval