@proofline/sdk 7.0.0 → 7.1.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/schema.d.ts CHANGED
@@ -455,7 +455,7 @@ export interface paths {
455
455
  put?: never;
456
456
  /**
457
457
  * Stop your local review
458
- * @description Stops the holder's own pending or running withheld patch, commit or named-file review. Requires a personal or CLI device token with live GitHub read access to the review's repository. Organization, CI job and MCP OAuth tokens cannot stop reviews. The stopped review retains its findings and exact code identity; requesting the same input returns that stopped review.
458
+ * @description Stops the holder's own pending or running withheld patch, commit or named-file review. Requires a personal or CLI device token with live GitHub read access to the review's repository. Organization, CI job and MCP OAuth tokens cannot stop reviews. A repository audit is refused on this route: only a person with live GitHub write access stops it, through the audit stop, and no token or platform authority does. The stopped review retains its findings and exact code identity; requesting the same input returns that stopped review.
459
459
  */
460
460
  post: operations["stop_review"];
461
461
  delete?: never;
@@ -1430,6 +1430,11 @@ export interface components {
1430
1430
  * @description When the review reached a terminal status. Absent while it is still pending or running.
1431
1431
  */
1432
1432
  completed_at?: string | null;
1433
+ /**
1434
+ * @description What paid for `cost_microcredits`, read from each debit's own funding
1435
+ * records. Present exactly when `cost_microcredits` is.
1436
+ */
1437
+ cost_funding?: components["schemas"]["ReviewCostFunding"] | null;
1433
1438
  /**
1434
1439
  * Format: int64
1435
1440
  * @description The credits this run was charged so far, in microcredits, whoever
@@ -2453,7 +2458,10 @@ export interface components {
2453
2458
  * @description Unresolved recorded finding series, including notification-suppressed
2454
2459
  * findings, decisions whose dismissal or risk acceptance expired, and
2455
2460
  * earlier published series of the pull request that this review did not
2456
- * find again.
2461
+ * find again, and the supported findings its `KIAN` environment
2462
+ * assessments published: each violated confirmed gate requirement the
2463
+ * change does not set and each investigation finding, which have no
2464
+ * severity.
2457
2465
  */
2458
2466
  open_findings: number;
2459
2467
  /**
@@ -2837,6 +2845,28 @@ export interface components {
2837
2845
  */
2838
2846
  validate_findings: boolean;
2839
2847
  };
2848
+ /**
2849
+ * @description What paid for a run's credit cost, as Usage splits a day. The three parts
2850
+ * add up to the cost.
2851
+ */
2852
+ ReviewCostFunding: {
2853
+ /**
2854
+ * Format: int64
2855
+ * @description Paid by the free review month: the same organization's
2856
+ * `free-review:{debit_id}` grants for the run's debits.
2857
+ */
2858
+ free_review_microcredits: number;
2859
+ /**
2860
+ * Format: int64
2861
+ * @description Taken from the organization's shared credit balance.
2862
+ */
2863
+ organization_microcredits: number;
2864
+ /**
2865
+ * Format: int64
2866
+ * @description Paid by the workspace allowance or the author's seat.
2867
+ */
2868
+ plan_microcredits: number;
2869
+ };
2840
2870
  /**
2841
2871
  * @description The depth the applied route plan read a file at.
2842
2872
  * @enum {string}
package/dist/transport.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "7.0.0";
1
+ const VERSION = "7.1.0";
2
2
  const DEFAULT_BASE_URL = "https://proofline.sh";
3
3
  const MAX_RESPONSE_BYTES = 8 * 1024 * 1024;
4
4
  const MAX_RETRIES = 3;
@@ -1783,6 +1783,17 @@
1783
1783
  "null"
1784
1784
  ]
1785
1785
  },
1786
+ "cost_funding": {
1787
+ "anyOf": [
1788
+ {
1789
+ "$ref": "#/components/schemas/ReviewCostFunding"
1790
+ },
1791
+ {
1792
+ "type": "null"
1793
+ }
1794
+ ],
1795
+ "description": "What paid for `cost_microcredits`, read from each debit's own funding\n records. Present exactly when `cost_microcredits` is."
1796
+ },
1786
1797
  "cost_microcredits": {
1787
1798
  "description": "The credits this run was charged so far, in microcredits, whoever\n paid: the plan, the free review month or the organization's credits.\n Null for a caller who is not a member of the organization.",
1788
1799
  "format": "int64",
@@ -3932,7 +3943,7 @@
3932
3943
  "type": "array"
3933
3944
  },
3934
3945
  "open_findings": {
3935
- "description": "Unresolved recorded finding series, including notification-suppressed\n findings, decisions whose dismissal or risk acceptance expired, and\n earlier published series of the pull request that this review did not\n find again.",
3946
+ "description": "Unresolved recorded finding series, including notification-suppressed\n findings, decisions whose dismissal or risk acceptance expired, and\n earlier published series of the pull request that this review did not\n find again, and the supported findings its `KIAN` environment\n assessments published: each violated confirmed gate requirement the\n change does not set and each investigation finding, which have no\n severity.",
3936
3947
  "format": "uint",
3937
3948
  "minimum": 0,
3938
3949
  "type": "integer"
@@ -4659,6 +4670,32 @@
4659
4670
  ],
4660
4671
  "type": "object"
4661
4672
  },
4673
+ "ReviewCostFunding": {
4674
+ "description": "What paid for a run's credit cost, as Usage splits a day. The three parts\n add up to the cost.",
4675
+ "properties": {
4676
+ "free_review_microcredits": {
4677
+ "description": "Paid by the free review month: the same organization's\n `free-review:{debit_id}` grants for the run's debits.",
4678
+ "format": "int64",
4679
+ "type": "integer"
4680
+ },
4681
+ "organization_microcredits": {
4682
+ "description": "Taken from the organization's shared credit balance.",
4683
+ "format": "int64",
4684
+ "type": "integer"
4685
+ },
4686
+ "plan_microcredits": {
4687
+ "description": "Paid by the workspace allowance or the author's seat.",
4688
+ "format": "int64",
4689
+ "type": "integer"
4690
+ }
4691
+ },
4692
+ "required": [
4693
+ "plan_microcredits",
4694
+ "free_review_microcredits",
4695
+ "organization_microcredits"
4696
+ ],
4697
+ "type": "object"
4698
+ },
4662
4699
  "ReviewDepth": {
4663
4700
  "description": "The depth the applied route plan read a file at.",
4664
4701
  "enum": [
@@ -6425,7 +6462,7 @@
6425
6462
  },
6426
6463
  "info": {
6427
6464
  "title": "Proofline Review API",
6428
- "version": "7.0.0"
6465
+ "version": "7.1.0"
6429
6466
  },
6430
6467
  "openapi": "3.1.0",
6431
6468
  "paths": {
@@ -8269,7 +8306,7 @@
8269
8306
  },
8270
8307
  "/api/v1/organizations/{org_id}/reviews/{review_id}/stop": {
8271
8308
  "post": {
8272
- "description": "Stops the holder's own pending or running withheld patch, commit or named-file review. Requires a personal or CLI device token with live GitHub read access to the review's repository. Organization, CI job and MCP OAuth tokens cannot stop reviews. The stopped review retains its findings and exact code identity; requesting the same input returns that stopped review.",
8309
+ "description": "Stops the holder's own pending or running withheld patch, commit or named-file review. Requires a personal or CLI device token with live GitHub read access to the review's repository. Organization, CI job and MCP OAuth tokens cannot stop reviews. A repository audit is refused on this route: only a person with live GitHub write access stops it, through the audit stop, and no token or platform authority does. The stopped review retains its findings and exact code identity; requesting the same input returns that stopped review.",
8273
8310
  "operationId": "stop_review",
8274
8311
  "parameters": [
8275
8312
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofline/sdk",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "Typed clients for the token-scoped Proofline review API",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",