Skip to content

fix: drop stale v2 extract params (markdown_ref, idempotency_key) - #76

Merged
tian-lan-landing merged 1 commit into
mainfrom
fix/v2-drop-stale-extract-params
Jul 15, 2026
Merged

fix: drop stale v2 extract params (markdown_ref, idempotency_key)#76
tian-lan-landing merged 1 commit into
mainfrom
fix/v2-drop-stale-extract-params

Conversation

@tian-lan-landing

Copy link
Copy Markdown
Collaborator

Mirrors landing-ai/ade-python#111. A check of client.v2 against the live AIDE spec surfaced request parameters the API no longer accepts.

Verified against the live AIDE spec (aide.landing.ai/openapi.json):

  • /v2/extract & /v2/extract/jobsschema (required), markdown, markdown_url, model, options (+ service_tier on jobs). No markdown_ref, no idempotency_key.
  • /v2/workflow & /v2/workflow/jobsinputs, steps, output (+ service_tier). No idempotency_key.

Changes

  • Remove markdown_ref + idempotency_key from client.v2.extract / extractJobs.create (V2ExtractParams, buildExtractBody).
  • Remove idempotency_key from client.v2.workflow / workflowJobs.create. (ade-python#111 didn't touch workflow — that repo defers the workflow surface; ade-typescript ships it, so this is a TS-specific hit.)
  • Reword the files.upload docstring and drop the README "File staging" section (both showed the removed markdown_ref flow). /v1/files / files.upload itself stays.
  • password (parse), service_tier, output_save_url are all in the spec → untouched.

No released-surface break — client.v2 is unreleased (added after v2.7.0). Typecheck clean; full suite 280 passed.

Reference: landing-ai/ade-python#111.

🤖 Generated with Claude Code

Verified against the live AIDE spec: /v2/extract and /v2/extract/jobs accept only
schema / markdown / markdown_url / model / options (+ service_tier) — no markdown_ref,
no idempotency_key. Remove both from client.v2.extract / extractJobs.create (mirrors
landing-ai/ade-python#111). files.upload remains (/v1/files still in the spec) but its
docstring and the README no longer claim it feeds extract as markdown_ref.

Also drop idempotency_key from client.v2.workflow / workflowJobs.create — the spec's
/v2/workflow* request bodies don't define it either. (ade-python#111 didn't cover
workflow because that repo defers the workflow surface; ade-typescript ships it.)

No released-surface break: client.v2 is unreleased (added after v2.7.0).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes stale request parameters from the unreleased client.v2 TypeScript surface to match the current live AIDE OpenAPI spec, and updates docs accordingly.

Changes:

  • Removed markdown_ref and idempotency_key from V2 extract request params and request-body construction.
  • Removed idempotency_key from V2 workflow params and request building (JSON + multipart).
  • Updated inline docs and README to reflect the supported inputs (markdown / markdown_url) and removed the outdated markdown_ref staging flow.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/resources/v2/workflow.ts Drops idempotency_key from workflow params and from both JSON and multipart request bodies.
src/resources/v2/v2.ts Updates v2.extract docs to reflect supported input parameters.
src/resources/v2/files.ts Rewords files.upload docstring to remove the deprecated markdown_ref guidance.
src/resources/v2/extract.ts Removes deprecated extract params from types and from buildExtractBody.
README.md Updates V2 extract docs and removes the outdated “File staging” section for markdown_ref.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tian-lan-landing
tian-lan-landing merged commit 9b97cc9 into main Jul 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants