Skip to content

[CHORE] add docs for initial_custom_fields - #299

Open
sinankeskin wants to merge 4 commits into
mainfrom
sinan/dev-10929-support-initial-shipment-and-per-container-custom-fields-in
Open

[CHORE] add docs for initial_custom_fields#299
sinankeskin wants to merge 4 commits into
mainfrom
sinan/dev-10929-support-initial-shipment-and-per-container-custom-fields-in

Conversation

@sinankeskin

@sinankeskin sinankeskin commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR documents initial custom fields for tracking requests. The main changes are:

  • Adds shipment and container custom-field guidance to the API reference.
  • Adds the nested initial_custom_fields request schema.
  • Adds an example with targeted and shipment-wide container values.

Confidence Score: 4/5

The OpenAPI and TypeScript SDK request contracts need to be synchronized before merging.

  • The documentation and OpenAPI examples are internally consistent.
  • TypeScript SDK callers cannot represent or send the newly documented request field through createTrackingRequest.

docs/openapi.json and the TypeScript SDK request types

Important Files Changed

Filename Overview
docs/api-docs/api-reference/tracking-requests/create-a-tracking-request.mdx Adds usage guidance and an example for shipment, targeted-container, and all-container custom fields.
docs/openapi.json Adds the request schema and example, but the checked-in TypeScript SDK does not expose the new field.

Fix All in Codex

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
docs/openapi.json:1336
**SDK Contract Omits New Field**

The OpenAPI request now exposes `initial_custom_fields`, but the checked-in TypeScript SDK's `createTrackingRequest` parameters do not accept or forward it. SDK callers following this contract receive an excess-property type error or cannot send the custom fields, so the generated types and public client method need to be updated with this schema change.

Reviews (1): Last reviewed commit: "chore: Auto-generate Postman collection ..." | Re-trigger Greptile

Greptile also left 1 inline comment on this PR.

@sinankeskin sinankeskin self-assigned this Jul 17, 2026
@linear-code

linear-code Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

DEV-10929

@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
api Ready Ready Preview, Comment Jul 17, 2026 5:33pm

Request Review

@mintlify

mintlify Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
terminal49 🟢 Ready View Preview Jul 17, 2026, 4:31 PM

Comment thread docs/openapi.json
"type": "string"
}
},
"initial_custom_fields": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 SDK Contract Omits New Field

The OpenAPI request now exposes initial_custom_fields, but the checked-in TypeScript SDK's createTrackingRequest parameters do not accept or forward it. SDK callers following this contract receive an excess-property type error or cannot send the custom fields, so the generated types and public client method need to be updated with this schema change.

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/openapi.json
Line: 1336

Comment:
**SDK Contract Omits New Field**

The OpenAPI request now exposes `initial_custom_fields`, but the checked-in TypeScript SDK's `createTrackingRequest` parameters do not accept or forward it. SDK callers following this contract receive an excess-property type error or cannot send the custom fields, so the generated types and public client method need to be updated with this schema change.

How can I resolve this? If you propose a fix, please make it concise.

Fix in Codex

@mintlify

mintlify Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
terminal49 🟡 Building Jul 17, 2026, 4:31 PM

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.

1 participant