feat(sdk): migrate to content-ops query/statement surface#134
Merged
Conversation
Regenerate the SDK against the content-ops hard cutover and repoint the hand-written wrappers at the new API shape: - Query layer: /query -> /query/cypher (executeCypher, CypherStatementRequest) and /tables/query -> /query/sql (executeSql, SqlStatementRequest/Response). QueryClient and TableClient repointed; generate-sdk.sh NDJSON patch now targets api/query/execute_cypher.py. - Content operations: document and file writes moved under the OperationEnvelope surface. DocumentClient upload/update route through index-document (upsert by document_id), delete through delete-document. FileClient presign/ingest/delete route through create-file-upload, ingest-file, and delete-file; presign + staging metadata are read from the envelope result. - Tests updated for the new patch targets and envelope-shaped responses. All unit tests pass; ruff + basedpyright clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Regenerates the Python SDK against the content-ops hard cutover and repoints the hand-written wrappers at the new API shape.
Query layer
/query→/query/cypher(executeCypher,CypherStatementRequest)/tables/query→/query/sql(executeSql,SqlStatementRequest/SqlStatementResponse)QueryClientandTableClientrepointed;generate-sdk.shNDJSON patch now targetsapi/query/execute_cypher.py.Content operations
Document and file writes moved under the
OperationEnvelopesurface:DocumentClient—upload/updateroute throughindex-document(upsert bydocument_id),deletethroughdelete-document. Write methods now returnOperationEnvelope.FileClient— presign/ingest/delete route throughcreate-file-upload,ingest-file,delete-file.file_idmoved into the request body; presign + staging metadata read fromenvelope.result. PublicFileUploadResult/FileInfodataclasses unchanged.Tests
Updated for the new patch targets and envelope-shaped responses. 439 passed, 17 skipped; ruff + basedpyright clean.