@proofline/sdk 7.1.0 → 7.3.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/operations.d.ts +2 -0
- package/dist/operations.js +3 -0
- package/dist/schema.d.ts +323 -2
- package/dist/transport.js +1 -1
- package/openapi.public.json +752 -3
- package/package.json +1 -1
package/dist/operations.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type StartAgentSessionBody = NonNullable<paths["/api/v1/organizations/{or
|
|
|
8
8
|
export type GetFindingFixPromptParameters = paths["/api/v1/organizations/{org_id}/findings/{finding_id}/fix-prompt"]["get"]["parameters"];
|
|
9
9
|
export type RequestCommitReviewParameters = paths["/api/v1/organizations/{org_id}/repositories/{repo_id}/commit-reviews"]["post"]["parameters"];
|
|
10
10
|
export type RequestCommitReviewBody = NonNullable<paths["/api/v1/organizations/{org_id}/repositories/{repo_id}/commit-reviews"]["post"]["requestBody"]>["content"]["application/json"];
|
|
11
|
+
export type GetCommitDeployVerificationsParameters = paths["/api/v1/organizations/{org_id}/repositories/{repo_id}/commits/{commit_sha}/deploy-verifications"]["get"]["parameters"];
|
|
11
12
|
export type UploadCoverageReportsParameters = paths["/api/v1/organizations/{org_id}/repositories/{repo_id}/coverage-reports"]["post"]["parameters"];
|
|
12
13
|
export type UploadCoverageReportsBody = NonNullable<paths["/api/v1/organizations/{org_id}/repositories/{repo_id}/coverage-reports"]["post"]["requestBody"]>["content"]["application/json"];
|
|
13
14
|
export type RequestFileReviewParameters = paths["/api/v1/organizations/{org_id}/repositories/{repo_id}/file-reviews"]["post"]["parameters"];
|
|
@@ -38,6 +39,7 @@ export declare class Operations {
|
|
|
38
39
|
startAgentSession(parameters: StartAgentSessionParameters, body: StartAgentSessionBody): Promise<components["schemas"]["AgentSession"]>;
|
|
39
40
|
getFindingFixPrompt(parameters: GetFindingFixPromptParameters): Promise<components["schemas"]["FindingFixPrompt"]>;
|
|
40
41
|
requestCommitReview(parameters: RequestCommitReviewParameters, body: RequestCommitReviewBody): Promise<components["schemas"]["CommitReviewResponse"]>;
|
|
42
|
+
getCommitDeployVerifications(parameters: GetCommitDeployVerificationsParameters): Promise<components["schemas"]["CommitDeployVerifications"]>;
|
|
41
43
|
uploadCoverageReports(parameters: UploadCoverageReportsParameters, body: UploadCoverageReportsBody): Promise<components["schemas"]["CoverageUploadResponse"]>;
|
|
42
44
|
requestFileReview(parameters: RequestFileReviewParameters, body: RequestFileReviewBody): Promise<components["schemas"]["FileReviewResponse"]>;
|
|
43
45
|
requestPatchReview(parameters: RequestPatchReviewParameters, body: RequestPatchReviewBody): Promise<components["schemas"]["PatchReviewResponse"]>;
|
package/dist/operations.js
CHANGED
|
@@ -21,6 +21,9 @@ export class Operations {
|
|
|
21
21
|
requestCommitReview(parameters, body) {
|
|
22
22
|
return this.invoke("POST", "/api/v1/organizations/{org_id}/repositories/{repo_id}/commit-reviews", parameters, body);
|
|
23
23
|
}
|
|
24
|
+
getCommitDeployVerifications(parameters) {
|
|
25
|
+
return this.invoke("GET", "/api/v1/organizations/{org_id}/repositories/{repo_id}/commits/{commit_sha}/deploy-verifications", parameters);
|
|
26
|
+
}
|
|
24
27
|
uploadCoverageReports(parameters, body) {
|
|
25
28
|
return this.invoke("POST", "/api/v1/organizations/{org_id}/repositories/{repo_id}/coverage-reports", parameters, body);
|
|
26
29
|
}
|
package/dist/schema.d.ts
CHANGED
|
@@ -144,6 +144,26 @@ export interface paths {
|
|
|
144
144
|
patch?: never;
|
|
145
145
|
trace?: never;
|
|
146
146
|
};
|
|
147
|
+
"/api/v1/organizations/{org_id}/repositories/{repo_id}/commits/{commit_sha}/deploy-verifications": {
|
|
148
|
+
parameters: {
|
|
149
|
+
query?: never;
|
|
150
|
+
header?: never;
|
|
151
|
+
path?: never;
|
|
152
|
+
cookie?: never;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Get a commit's deploy verifications
|
|
156
|
+
* @description Returns each deploy of one exact commit in the repository that Proofline recorded, across the organization's environments: its environment ID, GitHub Environment, task, workflow run and attempt, where its verification stands, whether a check regressed, each check's result and due time, the gaps that leave it unproven and its console page. `commit_sha` must be a full 40-character lowercase commit SHA; a branch, tag or abbreviated SHA gets 400. A commit with no recorded deploy returns `recorded: false` and no deploys, which is never a result about a deploy. A repository outside the token's repository restriction or organization returns 404.
|
|
157
|
+
*/
|
|
158
|
+
get: operations["get_commit_deploy_verifications"];
|
|
159
|
+
put?: never;
|
|
160
|
+
post?: never;
|
|
161
|
+
delete?: never;
|
|
162
|
+
options?: never;
|
|
163
|
+
head?: never;
|
|
164
|
+
patch?: never;
|
|
165
|
+
trace?: never;
|
|
166
|
+
};
|
|
147
167
|
"/api/v1/organizations/{org_id}/repositories/{repo_id}/coverage-reports": {
|
|
148
168
|
parameters: {
|
|
149
169
|
query?: never;
|
|
@@ -814,6 +834,87 @@ export interface components {
|
|
|
814
834
|
/** @description The reaction as GitHub names it. */
|
|
815
835
|
reaction: components["schemas"]["CommentReaction"];
|
|
816
836
|
};
|
|
837
|
+
/** @description One deploy of the commit and where its verification stands. */
|
|
838
|
+
CommitDeploy: {
|
|
839
|
+
/**
|
|
840
|
+
* @description The four checks in order, each with its recorded result, if any, and
|
|
841
|
+
* when a missing one becomes overdue. Empty when no verification of
|
|
842
|
+
* the deploy exists.
|
|
843
|
+
*/
|
|
844
|
+
checkpoints: components["schemas"]["DeployCoverageCheckpoint"][];
|
|
845
|
+
/** @description The deploy's console page. */
|
|
846
|
+
deploy_url?: string | null;
|
|
847
|
+
/** @description The GitHub deployment's task, such as `deploy` or `deploy:web`. */
|
|
848
|
+
deployment_task?: string | null;
|
|
849
|
+
/**
|
|
850
|
+
* Format: uuid
|
|
851
|
+
* @description The Proofline environment that holds the deploy.
|
|
852
|
+
*/
|
|
853
|
+
environment_id: string;
|
|
854
|
+
/** @description What the checks that leave the deploy unproven name. */
|
|
855
|
+
gaps: components["schemas"]["DeployVerificationGap"][];
|
|
856
|
+
/** @description The GitHub Environment the deployment named. */
|
|
857
|
+
github_environment?: string | null;
|
|
858
|
+
/** @description Whether any check recorded `REGRESSED`, whatever its gaps. */
|
|
859
|
+
regressed: boolean;
|
|
860
|
+
/**
|
|
861
|
+
* @description Present when the deploy is a rollback: the previous deploy of the same
|
|
862
|
+
* task ran a commit that a recorded merge into this commit's branch made
|
|
863
|
+
* after this commit, as the deploy's console page reads it. Absent for a
|
|
864
|
+
* forward deploy and when either merge is unrecorded.
|
|
865
|
+
*/
|
|
866
|
+
rollback?: components["schemas"]["CommitDeployRollback"] | null;
|
|
867
|
+
/** @description Where the deploy's verification stands. */
|
|
868
|
+
state: components["schemas"]["DeployCoverageState"];
|
|
869
|
+
/**
|
|
870
|
+
* Format: int64
|
|
871
|
+
* @description The attempt of that run that created the deployment addressing the
|
|
872
|
+
* deploy; above 1 for a rerun.
|
|
873
|
+
*/
|
|
874
|
+
workflow_run_attempt?: number | null;
|
|
875
|
+
/**
|
|
876
|
+
* @description Each distinct attempt of that run that created one of the deploy's
|
|
877
|
+
* deployments, ascending. A retry of a job that failed belongs to the
|
|
878
|
+
* deploy it retried, and a re-run of a job that had already landed is a
|
|
879
|
+
* deploy of its own. Absent outside Actions and when no recorded
|
|
880
|
+
* deployment of the deploy names its attempt.
|
|
881
|
+
*/
|
|
882
|
+
workflow_run_attempts?: number[];
|
|
883
|
+
/**
|
|
884
|
+
* Format: int64
|
|
885
|
+
* @description The Actions run that created the deploy's deployments; absent outside
|
|
886
|
+
* Actions.
|
|
887
|
+
*/
|
|
888
|
+
workflow_run_id?: number | null;
|
|
889
|
+
};
|
|
890
|
+
/** @description What a rollback deploy rolled back, and what it restored. */
|
|
891
|
+
CommitDeployRollback: {
|
|
892
|
+
/**
|
|
893
|
+
* @description The latest earlier deploy of this commit by the same task, before the
|
|
894
|
+
* deploys this one rolls back, within 30 days. Absent when the ledger
|
|
895
|
+
* holds none.
|
|
896
|
+
*/
|
|
897
|
+
restores?: components["schemas"]["CommitRollbackDeploy"] | null;
|
|
898
|
+
/**
|
|
899
|
+
* @description Each deploy of the same task that landed a commit merged into this
|
|
900
|
+
* commit's branch after it, after `restores` and before this deploy,
|
|
901
|
+
* newest first.
|
|
902
|
+
*/
|
|
903
|
+
rolls_back: components["schemas"]["CommitRollbackDeploy"][];
|
|
904
|
+
};
|
|
905
|
+
/**
|
|
906
|
+
* @description The deploys of one commit that Proofline recorded, across the
|
|
907
|
+
* organization's environments.
|
|
908
|
+
*/
|
|
909
|
+
CommitDeployVerifications: {
|
|
910
|
+
/** @description Each recorded deploy, earliest landing first. */
|
|
911
|
+
deploys: components["schemas"]["CommitDeploy"][];
|
|
912
|
+
/**
|
|
913
|
+
* @description Whether the ledger holds any deploy of the commit. `false` says only
|
|
914
|
+
* that none was recorded, never anything about a deploy.
|
|
915
|
+
*/
|
|
916
|
+
recorded: boolean;
|
|
917
|
+
};
|
|
817
918
|
/**
|
|
818
919
|
* @description Pushed commits to review: the exact base the change is compared with and
|
|
819
920
|
* the exact head it ends at.
|
|
@@ -844,6 +945,18 @@ export interface components {
|
|
|
844
945
|
*/
|
|
845
946
|
review_id: string;
|
|
846
947
|
};
|
|
948
|
+
/** @description One deploy a rollback names. */
|
|
949
|
+
CommitRollbackDeploy: {
|
|
950
|
+
/** @description The commit that deploy ran. */
|
|
951
|
+
commit_sha: string;
|
|
952
|
+
/** @description The deploy's console page. */
|
|
953
|
+
deploy_url?: string | null;
|
|
954
|
+
/**
|
|
955
|
+
* Format: date-time
|
|
956
|
+
* @description When its last deployment first succeeded, or its AWS run ended.
|
|
957
|
+
*/
|
|
958
|
+
landed_at: string;
|
|
959
|
+
};
|
|
847
960
|
/**
|
|
848
961
|
* @description What a review is counted under: the cause its assessments recorded, or
|
|
849
962
|
* `OUT_OF_CREDITS` where an assessment recorded the credit refusal. An
|
|
@@ -1559,7 +1672,8 @@ export interface components {
|
|
|
1559
1672
|
/**
|
|
1560
1673
|
* @description What Proofline still has open for the reviewed head, counted from the
|
|
1561
1674
|
* current finding decisions. Absent while the review is `PENDING` or
|
|
1562
|
-
* `RUNNING
|
|
1675
|
+
* `RUNNING`, and for a repository audit, whose findings are in its
|
|
1676
|
+
* report.
|
|
1563
1677
|
*/
|
|
1564
1678
|
open_items?: components["schemas"]["OpenItemsView"] | null;
|
|
1565
1679
|
/**
|
|
@@ -1672,6 +1786,12 @@ export interface components {
|
|
|
1672
1786
|
* it submitted none.
|
|
1673
1787
|
*/
|
|
1674
1788
|
review_comment_url?: string | null;
|
|
1789
|
+
/**
|
|
1790
|
+
* Format: int64
|
|
1791
|
+
* @description The review work within the total, excluding the separately billed PR
|
|
1792
|
+
* walkthrough. Visible to the same callers as the total.
|
|
1793
|
+
*/
|
|
1794
|
+
review_cost_microcredits?: number | null;
|
|
1675
1795
|
/**
|
|
1676
1796
|
* Format: date-time
|
|
1677
1797
|
* @description When a submitted pull request review was marked retracted, a marker
|
|
@@ -1717,6 +1837,12 @@ export interface components {
|
|
|
1717
1837
|
* repositories, workflow runs, artifacts or deployments.
|
|
1718
1838
|
*/
|
|
1719
1839
|
subjects: components["schemas"]["SubjectView"][];
|
|
1840
|
+
/**
|
|
1841
|
+
* @description Every distinct review Proofline submitted on the pull request for this
|
|
1842
|
+
* run, including the early code publisher's, oldest first. Absent when it
|
|
1843
|
+
* submitted none.
|
|
1844
|
+
*/
|
|
1845
|
+
submitted_reviews?: components["schemas"]["SubmittedReview"][];
|
|
1720
1846
|
/**
|
|
1721
1847
|
* Format: uuid
|
|
1722
1848
|
* @description The newer review that superseded this one. Null when none did or the
|
|
@@ -1754,6 +1880,38 @@ export interface components {
|
|
|
1754
1880
|
};
|
|
1755
1881
|
/** @enum {string} */
|
|
1756
1882
|
DeepReviewEscalationStatus: "UNEVALUATED" | "REFUSED" | "ADMITTED" | "NOT_SELECTED";
|
|
1883
|
+
DeployCheckResult: "HEALTHY" | "REGRESSED" | "SUPERSEDED" | "INCOMPLETE";
|
|
1884
|
+
/**
|
|
1885
|
+
* @description One of the four checks of a deploy.
|
|
1886
|
+
* @enum {string}
|
|
1887
|
+
*/
|
|
1888
|
+
DeployCheckpoint: "LANDING" | "MINUTES_20" | "HOUR_1" | "DAY_1";
|
|
1889
|
+
/** @description One checkpoint of a verified deploy. */
|
|
1890
|
+
DeployCoverageCheckpoint: {
|
|
1891
|
+
checkpoint: components["schemas"]["DeployCheckpoint"];
|
|
1892
|
+
/**
|
|
1893
|
+
* Format: date-time
|
|
1894
|
+
* @description When a missing check becomes overdue, allowing the workflow's read
|
|
1895
|
+
* delay, landing inventory reread, successor wait and transient-read retries.
|
|
1896
|
+
*/
|
|
1897
|
+
due_at: string;
|
|
1898
|
+
/**
|
|
1899
|
+
* @description The gaps this window's check recorded, beside its recorded result;
|
|
1900
|
+
* empty while no check of this window is recorded. The deploy's `gaps`
|
|
1901
|
+
* unite those that leave it unproven.
|
|
1902
|
+
* @default []
|
|
1903
|
+
*/
|
|
1904
|
+
gaps?: components["schemas"]["DeployVerificationGap"][];
|
|
1905
|
+
/** @description The recorded result; absent while no check of this window is recorded. */
|
|
1906
|
+
result?: components["schemas"]["DeployCheckResult"] | null;
|
|
1907
|
+
};
|
|
1908
|
+
/**
|
|
1909
|
+
* @description Where one deploy's verification stands. Each deploy has exactly one, so
|
|
1910
|
+
* the counts add up to the population.
|
|
1911
|
+
*/
|
|
1912
|
+
DeployCoverageState: "VERIFIED" | "VERIFIED_UNTIL_SUPERSEDED" | "SUPERSEDED" | "INCOMPLETE" | "UNRECORDED" | "NOT_YET_DUE" | "UNVERIFIED" | "FAILED" | "INACTIVE";
|
|
1913
|
+
/** @description A named reason a check could not establish part of what it compares. */
|
|
1914
|
+
DeployVerificationGap: "CHANGE_CHECK_MISSING" | "CHANGE_CHECK_INCOMPLETE" | "ENVIRONMENT_NOT_CHECKED" | "RUNNING_REVISION_UNKNOWN" | "RUNTIME_TARGET_UNAVAILABLE" | "RUNTIME_CAPABILITY_UNQUALIFIED" | "AWS_TELEMETRY_CONNECTION_UNAVAILABLE" | "RUNTIME_INVENTORY_UNAVAILABLE" | "RUNTIME_INVENTORY_STALE" | "RUNTIME_INVENTORY_INCOMPLETE" | "RUNTIME_SERVICE_UNKNOWN" | "RUNTIME_TRAFFIC_UNKNOWN" | "RUNTIME_REVISION_UNKNOWN" | "RUNTIME_ROLLOUT_UNSETTLED" | "RUNTIME_COMMIT_BINDING_MISSING" | "RUNTIME_ATTESTATIONS_PERMISSION_PENDING" | "RUNTIME_IMAGE_BUILT_EARLIER" | "RUNTIME_TASK_UNMAPPED" | "TELEMETRY_CONNECTION_UNAVAILABLE" | "TELEMETRY_CREDENTIAL_UNAVAILABLE" | "NO_SIGNALS_CONFIGURED" | "NO_SIGNALS_FOR_TASK_SERVICES" | "SIGNAL_PROJECT_NOT_CONNECTED" | "SIGNAL_CONFIGURATION_INVALID" | "SIGNAL_RESPONSE_INVALID" | "SIGNAL_READ_PARTIAL" | "SIGNAL_READ_UNAVAILABLE" | "SIGNAL_NO_DATA" | "SIGNAL_NOT_SINGLE_SERIES" | "SIGNAL_BUCKET_UNEXPECTED" | "BASELINE_UNAVAILABLE" | "BELOW_TRAFFIC_FLOOR" | "BASELINE_HELD_REGRESSION";
|
|
1757
1915
|
DomainView: {
|
|
1758
1916
|
/** @description The risk domain this evaluation covers. */
|
|
1759
1917
|
domain: string;
|
|
@@ -2303,6 +2461,8 @@ export interface components {
|
|
|
2303
2461
|
* recorded it (`incompleteness_kind`), or `UNKNOWN` when none did.
|
|
2304
2462
|
*/
|
|
2305
2463
|
IncompleteCause: ("NOT_CONFIGURED" | "POLICY_EXCLUDED" | "EVIDENCE_UNAVAILABLE" | "HYPOTHESES_UNRESOLVED" | "MODEL_BUDGET_EXHAUSTED") | "UNKNOWN";
|
|
2464
|
+
/** @description What published a supported Kian finding. */
|
|
2465
|
+
KianFindingSource: "CONFIRMED_REQUIREMENT" | "INVESTIGATION";
|
|
2306
2466
|
/**
|
|
2307
2467
|
* @description The count and outcome of a review's linked-issue receipt. Issue numbers,
|
|
2308
2468
|
* titles and the receipt's gaps stay in the receipt.
|
|
@@ -2340,6 +2500,13 @@ export interface components {
|
|
|
2340
2500
|
iteration: number;
|
|
2341
2501
|
/** @description The local re-verification result; it does not change the original finding. */
|
|
2342
2502
|
outcome: components["schemas"]["LocalReverificationOutcome"];
|
|
2503
|
+
/**
|
|
2504
|
+
* @description The check a code reproduction stored for the finding, which a pushed
|
|
2505
|
+
* head runs again; run its command against the local changes before
|
|
2506
|
+
* pushing. The patch review does not run it. Absent for a finding with
|
|
2507
|
+
* no stored check.
|
|
2508
|
+
*/
|
|
2509
|
+
stored_check?: components["schemas"]["LocalStoredCheck"] | null;
|
|
2343
2510
|
};
|
|
2344
2511
|
/**
|
|
2345
2512
|
* @description `RESOLVED_VERIFIED` needs the re-investigation to reject the finding's
|
|
@@ -2350,6 +2517,23 @@ export interface components {
|
|
|
2350
2517
|
* @enum {string}
|
|
2351
2518
|
*/
|
|
2352
2519
|
LocalReverificationOutcome: "RESOLVED_VERIFIED" | "STILL_PRESENT" | "NOT_VERIFIED" | "PENDING";
|
|
2520
|
+
/**
|
|
2521
|
+
* @description A finding's stored check and the newest result it gave. Its runs show
|
|
2522
|
+
* what the code did under the conditions the test exercised in a sandbox,
|
|
2523
|
+
* and establish no fact about a deployed environment.
|
|
2524
|
+
*/
|
|
2525
|
+
LocalStoredCheck: {
|
|
2526
|
+
/** Format: uuid */
|
|
2527
|
+
check_id: string;
|
|
2528
|
+
/**
|
|
2529
|
+
* @description The command the sandbox ran the test with, as the agent recorded it,
|
|
2530
|
+
* with the reproducing review's protected values withheld, and withheld
|
|
2531
|
+
* whole when that provenance is gone. Untrusted text: render it as text.
|
|
2532
|
+
*/
|
|
2533
|
+
command: string;
|
|
2534
|
+
/** @description Absent only for a check with no recorded run. */
|
|
2535
|
+
last_result?: components["schemas"]["StoredCheckResult"] | null;
|
|
2536
|
+
};
|
|
2353
2537
|
/** @description A local occurrence with the same semantic fingerprint as this finding. */
|
|
2354
2538
|
MatchedLocalFinding: {
|
|
2355
2539
|
/**
|
|
@@ -2937,6 +3121,17 @@ export interface components {
|
|
|
2937
3121
|
citations: components["schemas"]["ReviewInvestigationCitation"][];
|
|
2938
3122
|
/** @description Model text with protected values withheld. Render it as plain text. */
|
|
2939
3123
|
detail: string;
|
|
3124
|
+
/**
|
|
3125
|
+
* @description The delivery target whose confirmed gate requirement the finding
|
|
3126
|
+
* reports. Absent for an investigation's finding.
|
|
3127
|
+
*/
|
|
3128
|
+
requirement?: components["schemas"]["ReviewRequirementTarget"] | null;
|
|
3129
|
+
/**
|
|
3130
|
+
* @description What published the finding: a confirmed gate requirement its
|
|
3131
|
+
* delivery target's services violate, or the environment investigation.
|
|
3132
|
+
* Every listed finding carries it.
|
|
3133
|
+
*/
|
|
3134
|
+
source?: components["schemas"]["KianFindingSource"] | null;
|
|
2940
3135
|
/** @description Model text with protected values withheld. Render it as plain text. */
|
|
2941
3136
|
title: string;
|
|
2942
3137
|
};
|
|
@@ -3059,6 +3254,26 @@ export interface components {
|
|
|
3059
3254
|
/** @description Whether more reviews match the query beyond this page. */
|
|
3060
3255
|
truncated: boolean;
|
|
3061
3256
|
};
|
|
3257
|
+
/**
|
|
3258
|
+
* @description The delivery target whose confirmed entry a finding reports, as its Gate
|
|
3259
|
+
* requirements page addresses it.
|
|
3260
|
+
*/
|
|
3261
|
+
ReviewRequirementTarget: {
|
|
3262
|
+
/**
|
|
3263
|
+
* Format: uuid
|
|
3264
|
+
* @description The delivery target.
|
|
3265
|
+
*/
|
|
3266
|
+
delivery_target_id: string;
|
|
3267
|
+
/**
|
|
3268
|
+
* Format: uuid
|
|
3269
|
+
* @description The environment of the assessment that asked the requirement.
|
|
3270
|
+
*/
|
|
3271
|
+
environment_id: string;
|
|
3272
|
+
/** @description The repository's `owner/name`, which names the target to a reader. */
|
|
3273
|
+
repository_full_name: string;
|
|
3274
|
+
/** @description The repository's name, as the page's address names it. */
|
|
3275
|
+
repository_name: string;
|
|
3276
|
+
};
|
|
3062
3277
|
ReviewRoutingView: {
|
|
3063
3278
|
/** @constant */
|
|
3064
3279
|
status: "NOT_RECORDED";
|
|
@@ -3532,7 +3747,10 @@ export interface components {
|
|
|
3532
3747
|
};
|
|
3533
3748
|
/** @enum {string} */
|
|
3534
3749
|
SpendAccountKind: "DEPLOYMENT" | "TENANT_CREDENTIAL" | "UNATTRIBUTED";
|
|
3535
|
-
/**
|
|
3750
|
+
/**
|
|
3751
|
+
* @description UTC daily debit totals using only the account and transport recorded at
|
|
3752
|
+
* charge time, each split by what paid for it as Billing's Usage splits it.
|
|
3753
|
+
*/
|
|
3536
3754
|
SpendExportRow: {
|
|
3537
3755
|
/** @description Recorded attribution, not a current credential label or inferred account. */
|
|
3538
3756
|
account?: string | null;
|
|
@@ -3553,6 +3771,13 @@ export interface components {
|
|
|
3553
3771
|
* @description The number of debits summed into this row.
|
|
3554
3772
|
*/
|
|
3555
3773
|
debits: number;
|
|
3774
|
+
/**
|
|
3775
|
+
* Format: int64
|
|
3776
|
+
* @description The part the free review month paid: this organization's
|
|
3777
|
+
* `free-review:{debit}` grants for the row's debits.
|
|
3778
|
+
* @default 0
|
|
3779
|
+
*/
|
|
3780
|
+
free_review_microcredits?: number;
|
|
3556
3781
|
/**
|
|
3557
3782
|
* Format: int64
|
|
3558
3783
|
* @description Exact integer charge units; one credit contains one million microcredits.
|
|
@@ -3563,6 +3788,26 @@ export interface components {
|
|
|
3563
3788
|
* @description The organization charged.
|
|
3564
3789
|
*/
|
|
3565
3790
|
organization_id: string;
|
|
3791
|
+
/**
|
|
3792
|
+
* Format: int64
|
|
3793
|
+
* @description The part the organization's shared credit balance paid.
|
|
3794
|
+
* @default 0
|
|
3795
|
+
*/
|
|
3796
|
+
organization_microcredits?: number;
|
|
3797
|
+
/**
|
|
3798
|
+
* Format: int64
|
|
3799
|
+
* @description The part run on this organization's own provider key: a tariff
|
|
3800
|
+
* equivalent its provider bills, not credit spend. The four funding
|
|
3801
|
+
* columns add up to `microcredits`.
|
|
3802
|
+
* @default 0
|
|
3803
|
+
*/
|
|
3804
|
+
own_key_microcredits?: number;
|
|
3805
|
+
/**
|
|
3806
|
+
* Format: int64
|
|
3807
|
+
* @description The part of `microcredits` the workspace allowance or the author's seat paid.
|
|
3808
|
+
* @default 0
|
|
3809
|
+
*/
|
|
3810
|
+
plan_microcredits?: number;
|
|
3566
3811
|
/** @description The model transport recorded at charge time, null when the debit records none. */
|
|
3567
3812
|
transport?: string | null;
|
|
3568
3813
|
};
|
|
@@ -3592,6 +3837,36 @@ export interface components {
|
|
|
3592
3837
|
/** @description Person who stopped the review. */
|
|
3593
3838
|
stopped_by: components["schemas"]["ActorView"];
|
|
3594
3839
|
};
|
|
3840
|
+
/**
|
|
3841
|
+
* @description What the test did: `FAILED` as at the reproduction or otherwise,
|
|
3842
|
+
* `DID_NOT_FAIL` when it exited cleanly, which shows only that this test
|
|
3843
|
+
* did not fail under the conditions it exercised, or `UNAVAILABLE` when it
|
|
3844
|
+
* could not answer.
|
|
3845
|
+
* @enum {string}
|
|
3846
|
+
*/
|
|
3847
|
+
StoredCheckOutcome: "FAILED" | "DID_NOT_FAIL" | "UNAVAILABLE";
|
|
3848
|
+
/**
|
|
3849
|
+
* @description The newest result of a stored check: its newest settled rerun at a later
|
|
3850
|
+
* pull request head, or the reproduction's own head run when it has not
|
|
3851
|
+
* run again.
|
|
3852
|
+
*/
|
|
3853
|
+
StoredCheckResult: {
|
|
3854
|
+
/**
|
|
3855
|
+
* @description The commit the check ran at, or would have run at when a rerun could
|
|
3856
|
+
* not start.
|
|
3857
|
+
*/
|
|
3858
|
+
commit_sha?: string | null;
|
|
3859
|
+
/**
|
|
3860
|
+
* @description Why a rerun did not pass, such as `STILL_FAILS` or
|
|
3861
|
+
* `SERVICE_NOT_STARTED`. Absent for a pass and for the reproduction.
|
|
3862
|
+
*/
|
|
3863
|
+
reason?: string | null;
|
|
3864
|
+
result: components["schemas"]["StoredCheckOutcome"];
|
|
3865
|
+
/** @description `RERUN` or `REPRODUCTION`. */
|
|
3866
|
+
source: components["schemas"]["StoredCheckResultSource"];
|
|
3867
|
+
};
|
|
3868
|
+
/** @enum {string} */
|
|
3869
|
+
StoredCheckResultSource: "REPRODUCTION" | "RERUN";
|
|
3595
3870
|
/**
|
|
3596
3871
|
* @description One assessment's authorization of one subject, by identity.
|
|
3597
3872
|
*
|
|
@@ -3695,6 +3970,12 @@ export interface components {
|
|
|
3695
3970
|
*/
|
|
3696
3971
|
workflow_run_id?: number | null;
|
|
3697
3972
|
};
|
|
3973
|
+
/** @description One review Proofline submitted on the pull request. */
|
|
3974
|
+
SubmittedReview: {
|
|
3975
|
+
/** @description The commit the review was submitted for. */
|
|
3976
|
+
commit_sha?: string | null;
|
|
3977
|
+
url: string;
|
|
3978
|
+
};
|
|
3698
3979
|
/** @enum {string} */
|
|
3699
3980
|
SummaryRoute: "DETERMINISTIC_ONLY" | "SHORT" | "FULL";
|
|
3700
3981
|
/** @enum {string} */
|
|
@@ -4084,6 +4365,46 @@ export interface operations {
|
|
|
4084
4365
|
};
|
|
4085
4366
|
};
|
|
4086
4367
|
};
|
|
4368
|
+
get_commit_deploy_verifications: {
|
|
4369
|
+
parameters: {
|
|
4370
|
+
query?: never;
|
|
4371
|
+
header?: never;
|
|
4372
|
+
path: {
|
|
4373
|
+
/**
|
|
4374
|
+
* @description The full 40-character lowercase commit SHA the job deployed. A branch,
|
|
4375
|
+
* tag or abbreviated SHA is refused.
|
|
4376
|
+
*/
|
|
4377
|
+
commit_sha: string;
|
|
4378
|
+
org_id: string;
|
|
4379
|
+
repo_id: string;
|
|
4380
|
+
};
|
|
4381
|
+
cookie?: never;
|
|
4382
|
+
};
|
|
4383
|
+
requestBody?: never;
|
|
4384
|
+
responses: {
|
|
4385
|
+
/**
|
|
4386
|
+
* @description The deploys of one commit that Proofline recorded, across the
|
|
4387
|
+
* organization's environments.
|
|
4388
|
+
*/
|
|
4389
|
+
200: {
|
|
4390
|
+
headers: {
|
|
4391
|
+
[name: string]: unknown;
|
|
4392
|
+
};
|
|
4393
|
+
content: {
|
|
4394
|
+
"application/json": components["schemas"]["CommitDeployVerifications"];
|
|
4395
|
+
};
|
|
4396
|
+
};
|
|
4397
|
+
/** @description An RFC 9457 problem; the HTTP status remains authoritative. */
|
|
4398
|
+
default: {
|
|
4399
|
+
headers: {
|
|
4400
|
+
[name: string]: unknown;
|
|
4401
|
+
};
|
|
4402
|
+
content: {
|
|
4403
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
4404
|
+
};
|
|
4405
|
+
};
|
|
4406
|
+
};
|
|
4407
|
+
};
|
|
4087
4408
|
upload_coverage_reports: {
|
|
4088
4409
|
parameters: {
|
|
4089
4410
|
query?: never;
|
package/dist/transport.js
CHANGED