Compatibility inputs
Pin an exact package version from the SDK matrix, then verify its embedded OpenAPI digest, generator version, API major, supported Node.js and browser versions, module format, and compatible product release manifest. The client’s source tag and registry artifact must resolve to the same backend commit. Construct a client with one exact API origin selected from configuration, not user content. Reject embedded credentials, fragments, alternate schemes, or a base origin that differs from the approved environment. Do not globally disable TLS verification or redirect credentials to another origin.Authentication boundary
Server applications use a scoped service-account token provider that returns short-lived credentials just in time. Browser applications use the product’s browser session or an explicitly released public-client flow; they must never embed service-account secrets, refresh tokens, local-runner identity, or signing credentials. The token provider receives operation ID, required scopes, audience, and abort signal. It returns a token through memory without logging it. The client applies it only to the matching origin and removes it on every redirect. Authentication expiry can trigger one provider refresh only when the operation’s retry contract permits it.Planned request pattern
The stored planned API example demonstrates configuration, explicit abort deadline, cursor iteration, and typed error handling without a real package name, API URL, operation, or payload.Cursor pagination
Use the operation’s generated page and cursor types. Start without a cursor, process items in returned order, then pass the exact continuation token until it is absent. Treat the token as opaque: never decode, edit, sort, or combine it with another filter or tenant. Keep the original filters, page size, authorization subject, and target snapshot constant across pages. Detect a repeated cursor, duplicate stable item ID, item outside the filter, or page count above the local bound. Cancellation returns an explicit cancelled result and discards a partial collection unless the caller requested streaming results. Concurrent mutation can change a live collection. Use a released snapshot or consistency option when the operation exposes one; otherwise record the observation window and do not present page completeness as a stable snapshot guarantee.Problem details and typed errors
The client will expose a closed discriminated result for known categories and anunknown-response branch for a response that fails the generated schema.