@proofline/sdk 5.5.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -45,7 +45,7 @@ export class ProoflineClient extends Operations {
45
45
  throw protocol("the review page has no typed collection metadata");
46
46
  for (const item of page.items) {
47
47
  if (count >= maxItems)
48
- throw protocol("the review collection exceeds maxItems");
48
+ throw paginationLimit("the review collection exceeds maxItems");
49
49
  count += 1;
50
50
  yield item;
51
51
  }
@@ -61,7 +61,7 @@ export class ProoflineClient extends Operations {
61
61
  seen.add(page.next_cursor);
62
62
  cursor = page.next_cursor;
63
63
  }
64
- throw protocol("the review collection exceeds maxPages");
64
+ throw paginationLimit("the review collection exceeds maxPages");
65
65
  }
66
66
  async waitForReview(orgId, reviewId, options = {}) {
67
67
  const timeout = options.timeoutMs ?? 20 * 60_000;
@@ -106,6 +106,10 @@ import { ProoflineError } from "./transport.js";
106
106
  function protocol(detail) {
107
107
  return new ProoflineError(0, "urn:proofline:sdk:invalid-response", detail);
108
108
  }
109
+ // A caller's bound, not a server fault: the collection continues past it.
110
+ function paginationLimit(detail) {
111
+ return new ProoflineError(0, "urn:proofline:sdk:pagination-limit", detail);
112
+ }
109
113
  function integerLimit(value, name) {
110
114
  if (!Number.isSafeInteger(value) || value <= 0)
111
115
  throw new TypeError(`${name} must be a positive integer`);
package/dist/schema.d.ts CHANGED
@@ -2350,7 +2350,7 @@ export interface components {
2350
2350
  * by an earlier identical request keeps the source it recorded.
2351
2351
  * @default null
2352
2352
  */
2353
- trigger_source: components["schemas"]["PatchTriggerSource"] | null;
2353
+ trigger_source?: components["schemas"]["PatchTriggerSource"] | null;
2354
2354
  /**
2355
2355
  * @description Open findings of one pull request in this repository to re-verify
2356
2356
  * against the patch, at most 20. The review re-investigates each one
@@ -2361,7 +2361,7 @@ export interface components {
2361
2361
  * counted with those a coding agent makes through MCP.
2362
2362
  * @default []
2363
2363
  */
2364
- verify_finding_ids: string[];
2364
+ verify_finding_ids?: string[];
2365
2365
  };
2366
2366
  /** @description What a patch review request produced. */
2367
2367
  PatchReviewResponse: {
package/dist/transport.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "5.5.0";
1
+ const VERSION = "5.6.0";
2
2
  const MAX_RESPONSE_BYTES = 8 * 1024 * 1024;
3
3
  const MAX_RETRIES = 3;
4
4
  const MAX_RETRY_SECONDS = 60;
@@ -6006,7 +6006,7 @@
6006
6006
  },
6007
6007
  "info": {
6008
6008
  "title": "Proofline Review API",
6009
- "version": "5.5.0"
6009
+ "version": "5.6.0"
6010
6010
  },
6011
6011
  "openapi": "3.1.0",
6012
6012
  "paths": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofline/sdk",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "Typed clients for the token-scoped Proofline review API",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -28,7 +28,7 @@
28
28
  "openapi.public.json"
29
29
  ],
30
30
  "scripts": {
31
- "generate": "openapi-typescript openapi.public.json -o src/schema.d.ts && node generate.mjs",
31
+ "generate": "openapi-typescript openapi.public.json --default-non-nullable=false -o src/schema.d.ts && node generate.mjs",
32
32
  "build": "node -e \"require('node:fs').rmSync('dist', {recursive: true, force: true})\" && tsc && node -e \"const fs=require('node:fs'); fs.copyFileSync('src/schema.d.ts', 'dist/schema.d.ts')\"",
33
33
  "typecheck": "tsc --noEmit",
34
34
  "test": "node --test tests/*.test.mjs",