Repository navigation
Fix OpenAPI link, document cursor semantics, 402/403 errors and token type - #2
Merged
stromcom merged 1 commit intoOct 16, 2026
Conversation
… type The OpenAPI spec lives at /docs/customer/openapi.json. The lastMessageHash cursor is inclusive and the API has no page size, so paginate_messages.php is rewritten as an incremental sync. README now documents that 402 plan limits and 403 ACTION_FORBIDDEN surface as ApiException, which API key type the SDK needs, and that response meta is not exposed.
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.
Stacked on #1. Merge that first; this PR then retargets to
main.Summary
/docs/customer/openapi.json, notswagger.json.customer(orboth) from/customer/project/{id}/credentials/, used server-side only.lastMessageHashis inclusive and oldest-first, and there is no page size: the server returns everything from the cursor onward (id >= cursor, no LIMIT).examples/paginate_messages.phprewritten as incremental sync. The old version assumed 50-item pages.ACTION_FORBIDDENarrive as a plainApiException. Added a table of codes and a catch example. Removed the "limit reached" wording fromConflictException.meta(warnings,meta.updated).Tests
php -land phpstan at level 9.