@proofline/sdk 3.3.0 → 4.0.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
@@ -705,7 +705,7 @@ export interface components {
705
705
  * @enum {string}
706
706
  */
707
707
  CiFailureAttribution: "CAUSED_BY_CHANGE" | "PRE_EXISTING_ON_BASE" | "FLAKY_OR_INFRASTRUCTURE" | "ENVIRONMENT_STATE" | "UNKNOWN";
708
- /** @description One failed CI job as the Check states it. */
708
+ /** @description One failed CI job in the observation. */
709
709
  CiFailureLine: {
710
710
  /**
711
711
  * @description The recorded cause: `CAUSED_BY_CHANGE`, `PRE_EXISTING_ON_BASE`,
@@ -2650,8 +2650,8 @@ export interface components {
2650
2650
  accepted_risk_count: number;
2651
2651
  /**
2652
2652
  * @description Failed CI jobs diagnosed on the reviewed head, the newest diagnosed
2653
- * attempt of each run, in diagnosis order. The Check states each one;
2654
- * none is a Proofline open item. Absent when no job was diagnosed.
2653
+ * attempt of each run, in diagnosis order. The pull-request Check counts
2654
+ * them; none is a Proofline open item. Absent when no job was diagnosed.
2655
2655
  */
2656
2656
  ci_failures?: components["schemas"]["CiFailureLine"][];
2657
2657
  /**
@@ -3027,7 +3027,7 @@ export interface components {
3027
3027
  * @description Whether an explicit request may reuse a settled review of the live head.
3028
3028
  * @enum {string}
3029
3029
  */
3030
- RunNowMode: "EXISTING_OR_NEW" | "FULL" | "EXTENDED";
3030
+ RunNowMode: "EXISTING_OR_NEW" | "FULL";
3031
3031
  /**
3032
3032
  * @description Why a run-now request created nothing, each reason with what the page
3033
3033
  * needs to link the setting to change.
@@ -3068,13 +3068,6 @@ export interface components {
3068
3068
  } | {
3069
3069
  /** @constant */
3070
3070
  reason: "PULL_REQUEST_CLOSED";
3071
- } | {
3072
- detail: string;
3073
- /** @constant */
3074
- reason: "DEEP_REVIEW_UNAVAILABLE";
3075
- } | {
3076
- /** @constant */
3077
- reason: "DEEP_REVIEW_FOCUS_CONFLICT";
3078
3071
  };
3079
3072
  /**
3080
3073
  * @description A run-now request that created nothing, as the 400 it is answered with.
@@ -3106,15 +3099,9 @@ export interface components {
3106
3099
  };
3107
3100
  /** @description An empty body keeps the run-now behavior existing clients request. */
3108
3101
  RunNowRequest: {
3109
- /**
3110
- * @description Optional investigation focus for EXTENDED, trimmed and frozen at admission.
3111
- * Limited to 500 UTF-16 code units.
3112
- */
3113
- focus_text?: string | null;
3114
3102
  /**
3115
3103
  * @description `EXISTING_OR_NEW`, the default, returns any review that already owns the live head.
3116
3104
  * `FULL` returns a pending or running review of that head or starts a new one.
3117
- * `EXTENDED` admits one funded Deep Review for that head, with optional focus.
3118
3105
  */
3119
3106
  mode?: components["schemas"]["RunNowMode"];
3120
3107
  };
package/dist/transport.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "3.3.0";
1
+ const VERSION = "4.0.0";
2
2
  const MAX_RESPONSE_BYTES = 8 * 1024 * 1024;
3
3
  const MAX_RETRIES = 3;
4
4
  const MAX_RETRY_SECONDS = 60;
@@ -549,7 +549,7 @@
549
549
  "type": "string"
550
550
  },
551
551
  "CiFailureLine": {
552
- "description": "One failed CI job as the Check states it.",
552
+ "description": "One failed CI job in the observation.",
553
553
  "properties": {
554
554
  "attribution": {
555
555
  "allOf": [
@@ -4263,7 +4263,7 @@
4263
4263
  "type": "integer"
4264
4264
  },
4265
4265
  "ci_failures": {
4266
- "description": "Failed CI jobs diagnosed on the reviewed head, the newest diagnosed\n attempt of each run, in diagnosis order. The Check states each one;\n none is a Proofline open item. Absent when no job was diagnosed.",
4266
+ "description": "Failed CI jobs diagnosed on the reviewed head, the newest diagnosed\n attempt of each run, in diagnosis order. The pull-request Check counts\n them; none is a Proofline open item. Absent when no job was diagnosed.",
4267
4267
  "items": {
4268
4268
  "$ref": "#/components/schemas/CiFailureLine"
4269
4269
  },
@@ -4942,8 +4942,7 @@
4942
4942
  "description": "Whether an explicit request may reuse a settled review of the live head.",
4943
4943
  "enum": [
4944
4944
  "EXISTING_OR_NEW",
4945
- "FULL",
4946
- "EXTENDED"
4945
+ "FULL"
4947
4946
  ],
4948
4947
  "type": "string"
4949
4948
  },
@@ -5111,36 +5110,6 @@
5111
5110
  "reason"
5112
5111
  ],
5113
5112
  "type": "object"
5114
- },
5115
- {
5116
- "description": "Deep review policy, funding or worker availability prevents admission.",
5117
- "properties": {
5118
- "detail": {
5119
- "type": "string"
5120
- },
5121
- "reason": {
5122
- "const": "DEEP_REVIEW_UNAVAILABLE",
5123
- "type": "string"
5124
- }
5125
- },
5126
- "required": [
5127
- "reason",
5128
- "detail"
5129
- ],
5130
- "type": "object"
5131
- },
5132
- {
5133
- "description": "The existing review already retains a different focus.",
5134
- "properties": {
5135
- "reason": {
5136
- "const": "DEEP_REVIEW_FOCUS_CONFLICT",
5137
- "type": "string"
5138
- }
5139
- },
5140
- "required": [
5141
- "reason"
5142
- ],
5143
- "type": "object"
5144
5113
  }
5145
5114
  ]
5146
5115
  },
@@ -5188,20 +5157,13 @@
5188
5157
  "additionalProperties": false,
5189
5158
  "description": "An empty body keeps the run-now behavior existing clients request.",
5190
5159
  "properties": {
5191
- "focus_text": {
5192
- "description": "Optional investigation focus for EXTENDED, trimmed and frozen at admission.\n Limited to 500 UTF-16 code units.",
5193
- "type": [
5194
- "string",
5195
- "null"
5196
- ]
5197
- },
5198
5160
  "mode": {
5199
5161
  "allOf": [
5200
5162
  {
5201
5163
  "$ref": "#/components/schemas/RunNowMode"
5202
5164
  }
5203
5165
  ],
5204
- "description": "`EXISTING_OR_NEW`, the default, returns any review that already owns the live head.\n `FULL` returns a pending or running review of that head or starts a new one.\n `EXTENDED` admits one funded Deep Review for that head, with optional focus."
5166
+ "description": "`EXISTING_OR_NEW`, the default, returns any review that already owns the live head.\n `FULL` returns a pending or running review of that head or starts a new one."
5205
5167
  }
5206
5168
  },
5207
5169
  "type": "object"
@@ -5831,7 +5793,7 @@
5831
5793
  },
5832
5794
  "info": {
5833
5795
  "title": "Proofline Review API",
5834
- "version": "3.3.0"
5796
+ "version": "4.0.0"
5835
5797
  },
5836
5798
  "openapi": "3.1.0",
5837
5799
  "paths": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofline/sdk",
3
- "version": "3.3.0",
3
+ "version": "4.0.0",
4
4
  "description": "Typed clients for the token-scoped Proofline review API",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",