@proofline/sdk 5.11.1 → 5.11.3
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 +3 -1
- package/dist/schema.d.ts +36 -2
- package/dist/transport.js +1 -1
- package/openapi.public.json +18 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -202,7 +202,9 @@ function terminal(review) {
|
|
|
202
202
|
return "INCOMPLETE";
|
|
203
203
|
if (review.assessments.length === 0) {
|
|
204
204
|
const code = codeAssessment(review);
|
|
205
|
-
return code?.status === "COMPLETED" &&
|
|
205
|
+
return code?.status === "COMPLETED" &&
|
|
206
|
+
!code.incompleteness_kind &&
|
|
207
|
+
!code.reason_codes?.length
|
|
206
208
|
? "COMPLETED"
|
|
207
209
|
: "INCOMPLETE";
|
|
208
210
|
}
|
package/dist/schema.d.ts
CHANGED
|
@@ -1928,7 +1928,8 @@ export interface components {
|
|
|
1928
1928
|
group_by: components["schemas"]["FindingOutcomesGroupBy"];
|
|
1929
1929
|
/**
|
|
1930
1930
|
* @description The grouping value: a repository or environment ID, a risk domain, a severity or a
|
|
1931
|
-
* review kind, as `group_by` selects.
|
|
1931
|
+
* review kind, as `group_by` selects. Grouped by environment, code-lane findings, which
|
|
1932
|
+
* belong to no environment, share the key `code_review`.
|
|
1932
1933
|
*/
|
|
1933
1934
|
key: string;
|
|
1934
1935
|
/**
|
|
@@ -1938,7 +1939,8 @@ export interface components {
|
|
|
1938
1939
|
limitations: string[];
|
|
1939
1940
|
/**
|
|
1940
1941
|
* @description The group's display name: the repository's full name (or `Repository` and its ID when
|
|
1941
|
-
* no name is recorded), the environment's display name
|
|
1942
|
+
* no name is recorded), the environment's display name (`Code review` for the code-lane
|
|
1943
|
+
* group), or otherwise `key`.
|
|
1942
1944
|
*/
|
|
1943
1945
|
name: string;
|
|
1944
1946
|
/**
|
|
@@ -4307,16 +4309,32 @@ export interface operations {
|
|
|
4307
4309
|
* findings, FAILED/INCOMPLETE/STOPPED execution, or an earlier reviewed commit.
|
|
4308
4310
|
*/
|
|
4309
4311
|
attention?: string | null;
|
|
4312
|
+
/**
|
|
4313
|
+
* @description `mine` for the caller's own pull requests, or a GitHub user ID. `mine`
|
|
4314
|
+
* needs a person's sign-in or token.
|
|
4315
|
+
*/
|
|
4310
4316
|
author?: string | null;
|
|
4311
4317
|
cursor?: string | null;
|
|
4312
4318
|
environment?: string | null;
|
|
4319
|
+
/**
|
|
4320
|
+
* @description `present` lists reviews with at least one finding; `none` lists reviews
|
|
4321
|
+
* with no finding.
|
|
4322
|
+
*/
|
|
4313
4323
|
findings?: string | null;
|
|
4324
|
+
/**
|
|
4325
|
+
* @description One review kind: `PULL_REQUEST`, `DEPLOYMENT`, `PATCH`, `COMMIT`,
|
|
4326
|
+
* `FILES`, `MERGE_GROUP` or `REVISION_SCAN`.
|
|
4327
|
+
*/
|
|
4314
4328
|
kind?: string | null;
|
|
4315
4329
|
limit?: number | null;
|
|
4316
4330
|
/** @description Qualifiers, quoted values, AND/OR, groups and minus exclusions. */
|
|
4317
4331
|
query?: string | null;
|
|
4318
4332
|
repository?: string | null;
|
|
4319
4333
|
search?: string | null;
|
|
4334
|
+
/**
|
|
4335
|
+
* @description One review status: `PENDING`, `RUNNING`, `COMPLETED`, `INCOMPLETE`,
|
|
4336
|
+
* `FAILED`, `SUPERSEDED`, `STOPPED` or `EXCLUDED`.
|
|
4337
|
+
*/
|
|
4320
4338
|
status?: string | null;
|
|
4321
4339
|
};
|
|
4322
4340
|
header?: never;
|
|
@@ -4385,16 +4403,32 @@ export interface operations {
|
|
|
4385
4403
|
* findings, FAILED/INCOMPLETE/STOPPED execution, or an earlier reviewed commit.
|
|
4386
4404
|
*/
|
|
4387
4405
|
attention?: string | null;
|
|
4406
|
+
/**
|
|
4407
|
+
* @description `mine` for the caller's own pull requests, or a GitHub user ID. `mine`
|
|
4408
|
+
* needs a person's sign-in or token.
|
|
4409
|
+
*/
|
|
4388
4410
|
author?: string | null;
|
|
4389
4411
|
cursor?: string | null;
|
|
4390
4412
|
environment?: string | null;
|
|
4413
|
+
/**
|
|
4414
|
+
* @description `present` lists reviews with at least one finding; `none` lists reviews
|
|
4415
|
+
* with no finding.
|
|
4416
|
+
*/
|
|
4391
4417
|
findings?: string | null;
|
|
4418
|
+
/**
|
|
4419
|
+
* @description One review kind: `PULL_REQUEST`, `DEPLOYMENT`, `PATCH`, `COMMIT`,
|
|
4420
|
+
* `FILES`, `MERGE_GROUP` or `REVISION_SCAN`.
|
|
4421
|
+
*/
|
|
4392
4422
|
kind?: string | null;
|
|
4393
4423
|
limit?: number | null;
|
|
4394
4424
|
/** @description Qualifiers, quoted values, AND/OR, groups and minus exclusions. */
|
|
4395
4425
|
query?: string | null;
|
|
4396
4426
|
repository?: string | null;
|
|
4397
4427
|
search?: string | null;
|
|
4428
|
+
/**
|
|
4429
|
+
* @description One review status: `PENDING`, `RUNNING`, `COMPLETED`, `INCOMPLETE`,
|
|
4430
|
+
* `FAILED`, `SUPERSEDED`, `STOPPED` or `EXCLUDED`.
|
|
4431
|
+
*/
|
|
4398
4432
|
status?: string | null;
|
|
4399
4433
|
};
|
|
4400
4434
|
header?: never;
|
package/dist/transport.js
CHANGED
package/openapi.public.json
CHANGED
|
@@ -2873,7 +2873,7 @@
|
|
|
2873
2873
|
"description": "The dimension that defines this row's group."
|
|
2874
2874
|
},
|
|
2875
2875
|
"key": {
|
|
2876
|
-
"description": "The grouping value: a repository or environment ID, a risk domain, a severity or a\n review kind, as `group_by` selects.",
|
|
2876
|
+
"description": "The grouping value: a repository or environment ID, a risk domain, a severity or a\n review kind, as `group_by` selects. Grouped by environment, code-lane findings, which\n belong to no environment, share the key `code_review`.",
|
|
2877
2877
|
"type": "string"
|
|
2878
2878
|
},
|
|
2879
2879
|
"limitations": {
|
|
@@ -2884,7 +2884,7 @@
|
|
|
2884
2884
|
"type": "array"
|
|
2885
2885
|
},
|
|
2886
2886
|
"name": {
|
|
2887
|
-
"description": "The group's display name: the repository's full name (or `Repository` and its ID when\n no name is recorded), the environment's display name, or otherwise `key`.",
|
|
2887
|
+
"description": "The group's display name: the repository's full name (or `Repository` and its ID when\n no name is recorded), the environment's display name (`Code review` for the code-lane\n group), or otherwise `key`.",
|
|
2888
2888
|
"type": "string"
|
|
2889
2889
|
},
|
|
2890
2890
|
"organization_id": {
|
|
@@ -7305,9 +7305,11 @@
|
|
|
7305
7305
|
"style": "form"
|
|
7306
7306
|
},
|
|
7307
7307
|
{
|
|
7308
|
+
"description": "`mine` for the caller's own pull requests, or a GitHub user ID. `mine`\n needs a person's sign-in or token.",
|
|
7308
7309
|
"in": "query",
|
|
7309
7310
|
"name": "author",
|
|
7310
7311
|
"schema": {
|
|
7312
|
+
"description": "`mine` for the caller's own pull requests, or a GitHub user ID. `mine`\n needs a person's sign-in or token.",
|
|
7311
7313
|
"type": [
|
|
7312
7314
|
"string",
|
|
7313
7315
|
"null"
|
|
@@ -7339,9 +7341,11 @@
|
|
|
7339
7341
|
"style": "form"
|
|
7340
7342
|
},
|
|
7341
7343
|
{
|
|
7344
|
+
"description": "`present` lists reviews with at least one finding; `none` lists reviews\n with no finding.",
|
|
7342
7345
|
"in": "query",
|
|
7343
7346
|
"name": "findings",
|
|
7344
7347
|
"schema": {
|
|
7348
|
+
"description": "`present` lists reviews with at least one finding; `none` lists reviews\n with no finding.",
|
|
7345
7349
|
"type": [
|
|
7346
7350
|
"string",
|
|
7347
7351
|
"null"
|
|
@@ -7350,9 +7354,11 @@
|
|
|
7350
7354
|
"style": "form"
|
|
7351
7355
|
},
|
|
7352
7356
|
{
|
|
7357
|
+
"description": "One review kind: `PULL_REQUEST`, `DEPLOYMENT`, `PATCH`, `COMMIT`,\n `FILES`, `MERGE_GROUP` or `REVISION_SCAN`.",
|
|
7353
7358
|
"in": "query",
|
|
7354
7359
|
"name": "kind",
|
|
7355
7360
|
"schema": {
|
|
7361
|
+
"description": "One review kind: `PULL_REQUEST`, `DEPLOYMENT`, `PATCH`, `COMMIT`,\n `FILES`, `MERGE_GROUP` or `REVISION_SCAN`.",
|
|
7356
7362
|
"type": [
|
|
7357
7363
|
"string",
|
|
7358
7364
|
"null"
|
|
@@ -7409,9 +7415,11 @@
|
|
|
7409
7415
|
"style": "form"
|
|
7410
7416
|
},
|
|
7411
7417
|
{
|
|
7418
|
+
"description": "One review status: `PENDING`, `RUNNING`, `COMPLETED`, `INCOMPLETE`,\n `FAILED`, `SUPERSEDED`, `STOPPED` or `EXCLUDED`.",
|
|
7412
7419
|
"in": "query",
|
|
7413
7420
|
"name": "status",
|
|
7414
7421
|
"schema": {
|
|
7422
|
+
"description": "One review status: `PENDING`, `RUNNING`, `COMPLETED`, `INCOMPLETE`,\n `FAILED`, `SUPERSEDED`, `STOPPED` or `EXCLUDED`.",
|
|
7415
7423
|
"type": [
|
|
7416
7424
|
"string",
|
|
7417
7425
|
"null"
|
|
@@ -7569,9 +7577,11 @@
|
|
|
7569
7577
|
"style": "form"
|
|
7570
7578
|
},
|
|
7571
7579
|
{
|
|
7580
|
+
"description": "`mine` for the caller's own pull requests, or a GitHub user ID. `mine`\n needs a person's sign-in or token.",
|
|
7572
7581
|
"in": "query",
|
|
7573
7582
|
"name": "author",
|
|
7574
7583
|
"schema": {
|
|
7584
|
+
"description": "`mine` for the caller's own pull requests, or a GitHub user ID. `mine`\n needs a person's sign-in or token.",
|
|
7575
7585
|
"type": [
|
|
7576
7586
|
"string",
|
|
7577
7587
|
"null"
|
|
@@ -7603,9 +7613,11 @@
|
|
|
7603
7613
|
"style": "form"
|
|
7604
7614
|
},
|
|
7605
7615
|
{
|
|
7616
|
+
"description": "`present` lists reviews with at least one finding; `none` lists reviews\n with no finding.",
|
|
7606
7617
|
"in": "query",
|
|
7607
7618
|
"name": "findings",
|
|
7608
7619
|
"schema": {
|
|
7620
|
+
"description": "`present` lists reviews with at least one finding; `none` lists reviews\n with no finding.",
|
|
7609
7621
|
"type": [
|
|
7610
7622
|
"string",
|
|
7611
7623
|
"null"
|
|
@@ -7614,9 +7626,11 @@
|
|
|
7614
7626
|
"style": "form"
|
|
7615
7627
|
},
|
|
7616
7628
|
{
|
|
7629
|
+
"description": "One review kind: `PULL_REQUEST`, `DEPLOYMENT`, `PATCH`, `COMMIT`,\n `FILES`, `MERGE_GROUP` or `REVISION_SCAN`.",
|
|
7617
7630
|
"in": "query",
|
|
7618
7631
|
"name": "kind",
|
|
7619
7632
|
"schema": {
|
|
7633
|
+
"description": "One review kind: `PULL_REQUEST`, `DEPLOYMENT`, `PATCH`, `COMMIT`,\n `FILES`, `MERGE_GROUP` or `REVISION_SCAN`.",
|
|
7620
7634
|
"type": [
|
|
7621
7635
|
"string",
|
|
7622
7636
|
"null"
|
|
@@ -7673,9 +7687,11 @@
|
|
|
7673
7687
|
"style": "form"
|
|
7674
7688
|
},
|
|
7675
7689
|
{
|
|
7690
|
+
"description": "One review status: `PENDING`, `RUNNING`, `COMPLETED`, `INCOMPLETE`,\n `FAILED`, `SUPERSEDED`, `STOPPED` or `EXCLUDED`.",
|
|
7676
7691
|
"in": "query",
|
|
7677
7692
|
"name": "status",
|
|
7678
7693
|
"schema": {
|
|
7694
|
+
"description": "One review status: `PENDING`, `RUNNING`, `COMPLETED`, `INCOMPLETE`,\n `FAILED`, `SUPERSEDED`, `STOPPED` or `EXCLUDED`.",
|
|
7679
7695
|
"type": [
|
|
7680
7696
|
"string",
|
|
7681
7697
|
"null"
|