Conversation
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.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4dcc3be. Configure here.
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.
|
Addressed Bugbot's finding in 464c047: Follow-up verification: the new |

Summary
Syncs the SDK to spec v0.7.15 (cloudglue/cloudglue-api-spec#107) and bumps the package to 0.7.20.
The headline is the new Query API — read-only SQL (or natural language) over the structured data extracted from collections, against the
files/entities/segment_entitiesvirtual tables — plus query-call output items on the Response API and an ephemeralthumbnail_urlon data-connector file listings.Generated (cloudglue/sdk)
QueryApi:run_query,list_queries,get_query_schema,get_query,cancel_query_export+ all Query modelsResponse.outputitems:oneOfmessage | function_call | query_callDataConnectorFile.thumbnail_url(nullable, ephemeral signed provider preview)Wrapper (cloudglue/client)
cg.queryresource:run(sql or natural-language),get_schema(collections)(joins IDs into the comma-separated param),list,get,cancel, andwait_for_readyfor background exports — registered inclient/main.pyandresources/__init__Test plan
cg.querywired with all six methods~/Downloads/cloudglue-v0.7.15-sdk-test-results.md): schema introspection lists the three virtual tables + per-collection fields; SQLSELECT COUNT(*)returns inline rows with scan-stat usage; natural-language query returns the compiled SQL;dry_runvalidates without rows; non-SELECT and face-analysis-collection requests 400; list omits rows while get replays them; background CSV export cancels cleanly; gong/recall listings parse with the optionalthumbnail_urlNote
Low Risk
Mostly additive OpenAPI regeneration plus a thin client wrapper; no auth or breaking changes to existing resources.
Overview
Regenerates the Python SDK for OpenAPI 0.7.15 and exposes structured querying on the high-level
Cloudglueclient viacg.query.Query API adds read-only SQL (or natural-language questions compiled to SQL) over collection extraction virtual tables (
files,entities,segment_entities), with schema introspection, stored runs, list/get, background exports (cancel + poll), and dry-run. The hand-writtenQueryresource mirrors the generatedQueryApiwithrun,get_schema,list,get,cancel, andwait_for_ready, wired throughclient/main.py.Smaller spec-driven updates:
Response.outputcan includequery_call(and related models) alongside messages and function calls;DataConnectorFilegains optional ephemeralthumbnail_url;sync_file_source_metadatadocs note iconik poster keyframe thumbnail backfill when missing.Reviewed by Cursor Bugbot for commit 464c047. Bugbot is set up for automated code reviews on this repo. Configure here.