@empiricalrun/playwright-utils 0.67.2 → 0.68.1
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/CHANGELOG.md +19 -0
- package/dist/generated/api-worker-openapi.d.ts +742 -450
- package/dist/generated/api-worker-openapi.d.ts.map +1 -1
- package/dist/mcp/index.d.ts +46 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +172 -0
- package/dist/mcp/mcp.spec.d.ts +2 -0
- package/dist/mcp/mcp.spec.d.ts.map +1 -0
- package/dist/mcp/mcp.spec.js +55 -0
- package/dist/mcp/test-server.d.ts +8 -0
- package/dist/mcp/test-server.d.ts.map +1 -0
- package/dist/mcp/test-server.js +166 -0
- package/dist/reporter/empirical-reporter.d.ts.map +1 -1
- package/dist/reporter/empirical-reporter.js +6 -1
- package/package.json +10 -4
- package/playwright.config.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -455,26 +455,6 @@ export interface paths {
|
|
|
455
455
|
patch?: never;
|
|
456
456
|
trace?: never;
|
|
457
457
|
};
|
|
458
|
-
"/api/test-runs/{id}/triage-session": {
|
|
459
|
-
parameters: {
|
|
460
|
-
query?: never;
|
|
461
|
-
header?: never;
|
|
462
|
-
path?: never;
|
|
463
|
-
cookie?: never;
|
|
464
|
-
};
|
|
465
|
-
get?: never;
|
|
466
|
-
put?: never;
|
|
467
|
-
/**
|
|
468
|
-
* ⚙️ Delegate a test run to triage
|
|
469
|
-
* @description Creates the triage chat session for a test run and delivers its first message (awaited, so the 201 means the message landed). The session is stamped `purpose = "triage"` server-side for metering. Re-delegating creates a new session; the newest one is the run's live triage session.
|
|
470
|
-
*/
|
|
471
|
-
post: operations["createTestRunTriageSession"];
|
|
472
|
-
delete?: never;
|
|
473
|
-
options?: never;
|
|
474
|
-
head?: never;
|
|
475
|
-
patch?: never;
|
|
476
|
-
trace?: never;
|
|
477
|
-
};
|
|
478
458
|
"/api/test-runs/{id}/trigger-merge": {
|
|
479
459
|
parameters: {
|
|
480
460
|
query?: never;
|
|
@@ -535,26 +515,6 @@ export interface paths {
|
|
|
535
515
|
patch?: never;
|
|
536
516
|
trace?: never;
|
|
537
517
|
};
|
|
538
|
-
"/api/test-runs/summary-detail": {
|
|
539
|
-
parameters: {
|
|
540
|
-
query?: never;
|
|
541
|
-
header?: never;
|
|
542
|
-
path?: never;
|
|
543
|
-
cookie?: never;
|
|
544
|
-
};
|
|
545
|
-
/**
|
|
546
|
-
* ⚙️ Test run summary detail
|
|
547
|
-
* @description Returns per-test diagnosis details for a single run. Access is derived from the run's project; inaccessible or unknown runs return 404.
|
|
548
|
-
*/
|
|
549
|
-
get: operations["getTestRunSummaryDetail"];
|
|
550
|
-
put?: never;
|
|
551
|
-
post?: never;
|
|
552
|
-
delete?: never;
|
|
553
|
-
options?: never;
|
|
554
|
-
head?: never;
|
|
555
|
-
patch?: never;
|
|
556
|
-
trace?: never;
|
|
557
|
-
};
|
|
558
518
|
"/api/v2/test-cases": {
|
|
559
519
|
parameters: {
|
|
560
520
|
query?: never;
|
|
@@ -1859,6 +1819,26 @@ export interface paths {
|
|
|
1859
1819
|
patch: operations["updateChatSessionTrigger"];
|
|
1860
1820
|
trace?: never;
|
|
1861
1821
|
};
|
|
1822
|
+
"/api/email/messages": {
|
|
1823
|
+
parameters: {
|
|
1824
|
+
query?: never;
|
|
1825
|
+
header?: never;
|
|
1826
|
+
path?: never;
|
|
1827
|
+
cookie?: never;
|
|
1828
|
+
};
|
|
1829
|
+
get?: never;
|
|
1830
|
+
put?: never;
|
|
1831
|
+
/**
|
|
1832
|
+
* 🤖 Send an email to a project member
|
|
1833
|
+
* @description Emails a member of the calling project's org, or an Empirical admin, from agent@mail.empirical.run. Provide user_id and subject to start a thread, or email_thread_id to reply in one. Replies from the recipient are delivered to the sending chat session as a steer message. Sandbox-delegated principals only.
|
|
1834
|
+
*/
|
|
1835
|
+
post: operations["emailSendMessage"];
|
|
1836
|
+
delete?: never;
|
|
1837
|
+
options?: never;
|
|
1838
|
+
head?: never;
|
|
1839
|
+
patch?: never;
|
|
1840
|
+
trace?: never;
|
|
1841
|
+
};
|
|
1862
1842
|
"/api/failure-groups/{id}/matcher-overlap": {
|
|
1863
1843
|
parameters: {
|
|
1864
1844
|
query?: never;
|
|
@@ -2059,6 +2039,26 @@ export interface paths {
|
|
|
2059
2039
|
patch?: never;
|
|
2060
2040
|
trace?: never;
|
|
2061
2041
|
};
|
|
2042
|
+
"/api/projects/initialize-repo": {
|
|
2043
|
+
parameters: {
|
|
2044
|
+
query?: never;
|
|
2045
|
+
header?: never;
|
|
2046
|
+
path?: never;
|
|
2047
|
+
cookie?: never;
|
|
2048
|
+
};
|
|
2049
|
+
get?: never;
|
|
2050
|
+
put?: never;
|
|
2051
|
+
/**
|
|
2052
|
+
* 🤖 Initialize an empty repository
|
|
2053
|
+
* @description Adds an initial README commit on the default branch when the scoped project's repository has no commits, so it can be fetched and branched from. Does nothing for a repository that already has commits.
|
|
2054
|
+
*/
|
|
2055
|
+
post: operations["initializeProjectRepo"];
|
|
2056
|
+
delete?: never;
|
|
2057
|
+
options?: never;
|
|
2058
|
+
head?: never;
|
|
2059
|
+
patch?: never;
|
|
2060
|
+
trace?: never;
|
|
2061
|
+
};
|
|
2062
2062
|
"/api/rules": {
|
|
2063
2063
|
parameters: {
|
|
2064
2064
|
query?: never;
|
|
@@ -2427,6 +2427,26 @@ export interface paths {
|
|
|
2427
2427
|
patch?: never;
|
|
2428
2428
|
trace?: never;
|
|
2429
2429
|
};
|
|
2430
|
+
"/api/v2/test-runs/{id}/rule-matching": {
|
|
2431
|
+
parameters: {
|
|
2432
|
+
query?: never;
|
|
2433
|
+
header?: never;
|
|
2434
|
+
path?: never;
|
|
2435
|
+
cookie?: never;
|
|
2436
|
+
};
|
|
2437
|
+
/**
|
|
2438
|
+
* 🤖 Get rule matching for a test run
|
|
2439
|
+
* @description For every failed and flaky case, which active rules are in scope and how each was evaluated: applied by test ID, matched or not by its matcher, errored, or still pending. Use it to see why a failure has no rule, which matchers error, and what matching is still waiting on.
|
|
2440
|
+
*/
|
|
2441
|
+
get: operations["getTestRunRuleMatching"];
|
|
2442
|
+
put?: never;
|
|
2443
|
+
post?: never;
|
|
2444
|
+
delete?: never;
|
|
2445
|
+
options?: never;
|
|
2446
|
+
head?: never;
|
|
2447
|
+
patch?: never;
|
|
2448
|
+
trace?: never;
|
|
2449
|
+
};
|
|
2430
2450
|
"/api/activity": {
|
|
2431
2451
|
parameters: {
|
|
2432
2452
|
query?: never;
|
|
@@ -3386,6 +3406,26 @@ export interface paths {
|
|
|
3386
3406
|
patch?: never;
|
|
3387
3407
|
trace?: never;
|
|
3388
3408
|
};
|
|
3409
|
+
"/api/email/webhooks": {
|
|
3410
|
+
parameters: {
|
|
3411
|
+
query?: never;
|
|
3412
|
+
header?: never;
|
|
3413
|
+
path?: never;
|
|
3414
|
+
cookie?: never;
|
|
3415
|
+
};
|
|
3416
|
+
get?: never;
|
|
3417
|
+
put?: never;
|
|
3418
|
+
/**
|
|
3419
|
+
* Resend email webhook
|
|
3420
|
+
* @description Receives signature-verified Resend events. email.received replies to an agent email thread are delivered to the thread's chat session; other events are acknowledged and ignored.
|
|
3421
|
+
*/
|
|
3422
|
+
post: operations["resendEmailWebhook"];
|
|
3423
|
+
delete?: never;
|
|
3424
|
+
options?: never;
|
|
3425
|
+
head?: never;
|
|
3426
|
+
patch?: never;
|
|
3427
|
+
trace?: never;
|
|
3428
|
+
};
|
|
3389
3429
|
"/api/environment-variables": {
|
|
3390
3430
|
parameters: {
|
|
3391
3431
|
query?: never;
|
|
@@ -6035,7 +6075,7 @@ export interface paths {
|
|
|
6035
6075
|
put?: never;
|
|
6036
6076
|
/**
|
|
6037
6077
|
* ⚙️ Merge branches
|
|
6038
|
-
* @description Merges a head branch into a base branch for the scoped project
|
|
6078
|
+
* @description Merges the open, non-draft pull request from a head branch into a base branch for the scoped project. Without one it is a no-op.
|
|
6039
6079
|
*/
|
|
6040
6080
|
post: operations["mergeBranches"];
|
|
6041
6081
|
delete?: never;
|
|
@@ -6055,7 +6095,7 @@ export interface paths {
|
|
|
6055
6095
|
put?: never;
|
|
6056
6096
|
/**
|
|
6057
6097
|
* Presign node_modules snapshot URLs
|
|
6058
|
-
* @description Returns presigned
|
|
6098
|
+
* @description Returns presigned URLs for the scoped project's node_modules tarball for a lockfile hash. Sandboxes and test runs restore from them before installing and upload after an npm ci on a miss.
|
|
6059
6099
|
*/
|
|
6060
6100
|
post: operations["getProjectNpmSnapshotUrls"];
|
|
6061
6101
|
delete?: never;
|
|
@@ -8333,7 +8373,10 @@ export interface components {
|
|
|
8333
8373
|
*/
|
|
8334
8374
|
contract_version: number;
|
|
8335
8375
|
} | null;
|
|
8336
|
-
/**
|
|
8376
|
+
/**
|
|
8377
|
+
* Format: date-time
|
|
8378
|
+
* @description When the rule ends, at most 7 days from now.
|
|
8379
|
+
*/
|
|
8337
8380
|
until: string;
|
|
8338
8381
|
scoped_to_environment_id?: number | null;
|
|
8339
8382
|
/** @enum {string} */
|
|
@@ -8357,7 +8400,7 @@ export interface components {
|
|
|
8357
8400
|
CreateSnoozeRequest: {
|
|
8358
8401
|
/** @description Array of Playwright test IDs (41-character hashes) to snooze. */
|
|
8359
8402
|
test_ids: string[];
|
|
8360
|
-
/** @description ISO 8601 timestamp for when the snooze should expire. */
|
|
8403
|
+
/** @description ISO 8601 timestamp for when the snooze should expire, at most 7 days from now. */
|
|
8361
8404
|
snooze_until: string;
|
|
8362
8405
|
/** @description Optional description explaining why the tests are being snoozed. */
|
|
8363
8406
|
description?: string;
|
|
@@ -8520,7 +8563,7 @@ export interface components {
|
|
|
8520
8563
|
*/
|
|
8521
8564
|
url: string;
|
|
8522
8565
|
/** @description Event names this webhook subscribes to. */
|
|
8523
|
-
events:
|
|
8566
|
+
events: components["schemas"]["WebhookEvent"][];
|
|
8524
8567
|
};
|
|
8525
8568
|
CreatedProjectApiKey: {
|
|
8526
8569
|
/** @description API key ID. */
|
|
@@ -8576,7 +8619,7 @@ export interface components {
|
|
|
8576
8619
|
/** @description Endpoint that receives event payloads. */
|
|
8577
8620
|
url: string;
|
|
8578
8621
|
/** @description Event names this webhook subscribes to. */
|
|
8579
|
-
events:
|
|
8622
|
+
events: components["schemas"]["WebhookEvent"][];
|
|
8580
8623
|
/** @description Whether the webhook is active. */
|
|
8581
8624
|
is_active: boolean;
|
|
8582
8625
|
/** @description ISO 8601 creation timestamp. */
|
|
@@ -8899,6 +8942,12 @@ export interface components {
|
|
|
8899
8942
|
id: number;
|
|
8900
8943
|
};
|
|
8901
8944
|
};
|
|
8945
|
+
EmailMessageResult: {
|
|
8946
|
+
/** @description Email thread the message was sent in. */
|
|
8947
|
+
email_thread_id: number;
|
|
8948
|
+
/** @description Resend email ID. */
|
|
8949
|
+
email_id: string;
|
|
8950
|
+
};
|
|
8902
8951
|
EmpiricalOrgInvoice: {
|
|
8903
8952
|
/**
|
|
8904
8953
|
* @description An invoice we issued (order-form billing). (enum property replaced by openapi-typescript)
|
|
@@ -9003,176 +9052,6 @@ export interface components {
|
|
|
9003
9052
|
picture: string;
|
|
9004
9053
|
} | null;
|
|
9005
9054
|
};
|
|
9006
|
-
EnrichedTestRun: {
|
|
9007
|
-
/** @description Test run database ID. */
|
|
9008
|
-
id: number;
|
|
9009
|
-
/** @description External run_id, if assigned. */
|
|
9010
|
-
run_id: number | null;
|
|
9011
|
-
/** @description ECS task ID running the run, if dispatched. */
|
|
9012
|
-
ecs_task_id: string | null;
|
|
9013
|
-
/** @description AWS region of the ECS task, if dispatched. */
|
|
9014
|
-
ecs_task_region: string | null;
|
|
9015
|
-
/** @description Owning project ID. */
|
|
9016
|
-
project_id: number;
|
|
9017
|
-
/** @description Total number of test cases. */
|
|
9018
|
-
total_count: number | null;
|
|
9019
|
-
/** @description Number of unique test cases. */
|
|
9020
|
-
unique_count: number | null;
|
|
9021
|
-
/** @description Number of passed tests. */
|
|
9022
|
-
success_count: number | null;
|
|
9023
|
-
/** @description Number of failed tests. */
|
|
9024
|
-
failed_count: number | null;
|
|
9025
|
-
/** @description Failed tests remaining after applying snoozes. */
|
|
9026
|
-
failed_count_after_snoozing: number | null;
|
|
9027
|
-
/** @description Number of skipped tests. */
|
|
9028
|
-
skipped_count: number | null;
|
|
9029
|
-
/** @description Number of flaky tests. */
|
|
9030
|
-
flaky_count: number | null;
|
|
9031
|
-
/** @description ISO 8601 timestamp when tests started. */
|
|
9032
|
-
run_started_at: string | null;
|
|
9033
|
-
/** @description ISO 8601 timestamp when tests ended. */
|
|
9034
|
-
run_ended_at: string | null;
|
|
9035
|
-
/** @description Run duration in milliseconds. */
|
|
9036
|
-
duration: number | null;
|
|
9037
|
-
/** @description Test repo branch the run executed. */
|
|
9038
|
-
test_run_branch: string;
|
|
9039
|
-
/** @description Head commit SHA of the test repo. */
|
|
9040
|
-
test_run_head_sha: string | null;
|
|
9041
|
-
/** @description Structured test-code provenance. Null for runs created before provenance capture shipped. */
|
|
9042
|
-
test_code: {
|
|
9043
|
-
requested: {
|
|
9044
|
-
branch: string;
|
|
9045
|
-
/** @enum {string} */
|
|
9046
|
-
source: "explicit" | "build" | "project_default" | "legacy";
|
|
9047
|
-
/** @enum {string} */
|
|
9048
|
-
if_missing: "error" | "use_default" | "create";
|
|
9049
|
-
};
|
|
9050
|
-
resolved: {
|
|
9051
|
-
branch: string | null;
|
|
9052
|
-
sha: string | null;
|
|
9053
|
-
/** @enum {string|null} */
|
|
9054
|
-
fallback_reason: "requested_branch_missing" | null;
|
|
9055
|
-
};
|
|
9056
|
-
execution: {
|
|
9057
|
-
ref: string | null;
|
|
9058
|
-
sha: string | null;
|
|
9059
|
-
/** @enum {string|null} */
|
|
9060
|
-
ref_kind: "branch" | "temporary_merge" | null;
|
|
9061
|
-
};
|
|
9062
|
-
merge_base: {
|
|
9063
|
-
branch: string;
|
|
9064
|
-
sha: string | null;
|
|
9065
|
-
} | null;
|
|
9066
|
-
/** @enum {string} */
|
|
9067
|
-
resolution_status: "pending" | "resolved" | "branch_missing" | "merge_conflict" | "provider_error";
|
|
9068
|
-
resolution_error_code: string | null;
|
|
9069
|
-
} | null;
|
|
9070
|
-
/** @description URL of the Playwright JSON report. */
|
|
9071
|
-
summary_url: string | null;
|
|
9072
|
-
/** @description Current run state (queued, started, ended, ...). */
|
|
9073
|
-
state: string | null;
|
|
9074
|
-
/** @description Associated build row ID, if any. */
|
|
9075
|
-
build_id: number | null;
|
|
9076
|
-
/** @description Environment row ID, if any. */
|
|
9077
|
-
environment_id: number | null;
|
|
9078
|
-
/** @description Arbitrary run metadata key/value pairs. */
|
|
9079
|
-
metadata: {
|
|
9080
|
-
[key: string]: string;
|
|
9081
|
-
} | null;
|
|
9082
|
-
/** @description ISO 8601 timestamp the run was created. */
|
|
9083
|
-
created_at: string | null;
|
|
9084
|
-
/** @description User ID that created the run. */
|
|
9085
|
-
created_by: string | null;
|
|
9086
|
-
/** @description User agent that created the run. */
|
|
9087
|
-
created_by_user_agent: string | null;
|
|
9088
|
-
/** @description Environment display name. */
|
|
9089
|
-
environment_name: string | null;
|
|
9090
|
-
/** @description Environment slug. */
|
|
9091
|
-
environment_slug: string | null;
|
|
9092
|
-
/** @description Build commit SHA. */
|
|
9093
|
-
commit: string | null;
|
|
9094
|
-
/** @description Build branch name. */
|
|
9095
|
-
branch: string | null;
|
|
9096
|
-
/** @description Build repository in `org/repo` form. */
|
|
9097
|
-
repo: string | null;
|
|
9098
|
-
/** @description Git branch of the build. */
|
|
9099
|
-
build_branch: string | null;
|
|
9100
|
-
/** @description URL of the deployment tested, i.e. the run's resolved `BUILD_URL` environment variable. */
|
|
9101
|
-
build_url: string | null;
|
|
9102
|
-
/** @description GitHub actor that triggered the run. */
|
|
9103
|
-
github_actor: string | null;
|
|
9104
|
-
/** @description Run-level environment variable overrides. */
|
|
9105
|
-
environment_variables_overrides: {
|
|
9106
|
-
name: string;
|
|
9107
|
-
value: string;
|
|
9108
|
-
}[] | null;
|
|
9109
|
-
/** @description Head branch of the merge commit, if any. */
|
|
9110
|
-
merge_commit_head_branch: string | null;
|
|
9111
|
-
/** @description Base branch of the merge commit, if any. */
|
|
9112
|
-
merge_commit_base_branch: string | null;
|
|
9113
|
-
/** @description Whether the merge commit succeeded. */
|
|
9114
|
-
merge_commit_successful: boolean | null;
|
|
9115
|
-
/** @description Error code if the run failed. */
|
|
9116
|
-
error_code: string | null;
|
|
9117
|
-
/** @description Reason the run was cancelled, if any. */
|
|
9118
|
-
cancellation_reason: string | null;
|
|
9119
|
-
/** @description User ID that cancelled the run, if any. */
|
|
9120
|
-
cancelled_by_user_id: string | null;
|
|
9121
|
-
/** @description ID of the run this run is a rerun of, if any. */
|
|
9122
|
-
rerun_source_id: number | null;
|
|
9123
|
-
/** @description Whether the rerun re-ran only failed tests. */
|
|
9124
|
-
rerun_only_failed: boolean | null;
|
|
9125
|
-
/** @description Feature flags active for this run. */
|
|
9126
|
-
feature_flags: string[];
|
|
9127
|
-
/** @description Artifact storage bucket for the run. */
|
|
9128
|
-
storage_bucket: string | null;
|
|
9129
|
-
/** @description ID of the run that supersedes this one, if any. */
|
|
9130
|
-
superseded_by_test_run_id: number | null;
|
|
9131
|
-
/** @description Tags applied to the run. */
|
|
9132
|
-
tags: string[] | null;
|
|
9133
|
-
/** @description Tags whose tests the run skips. */
|
|
9134
|
-
exclude_tags: string[] | null;
|
|
9135
|
-
/** @description Specific test case ids (Playwright test.id) to run. */
|
|
9136
|
-
test_case_ids: string[] | null;
|
|
9137
|
-
/** @description Concurrency group and policy the run was created with; null when no limit applied. */
|
|
9138
|
-
concurrency: {
|
|
9139
|
-
/** @description Concurrency group the run was scoped to. */
|
|
9140
|
-
group: string;
|
|
9141
|
-
/**
|
|
9142
|
-
* @description Policy toward an active run in the group: cancel it, or wait behind it.
|
|
9143
|
-
* @enum {string}
|
|
9144
|
-
*/
|
|
9145
|
-
on_conflict: "cancel" | "wait";
|
|
9146
|
-
} | null;
|
|
9147
|
-
/** @description The `trigger` the run was created with, or null when none was sent. */
|
|
9148
|
-
trigger: {
|
|
9149
|
-
/**
|
|
9150
|
-
* @description Event that produced the run.
|
|
9151
|
-
* @enum {string}
|
|
9152
|
-
*/
|
|
9153
|
-
event: "pull_request";
|
|
9154
|
-
/** @description Pull request under test. */
|
|
9155
|
-
pull_request: {
|
|
9156
|
-
/** @description Pull request number in the application repository. */
|
|
9157
|
-
number?: number;
|
|
9158
|
-
/** @description Head branch. */
|
|
9159
|
-
head: string;
|
|
9160
|
-
/** @description Base branch. */
|
|
9161
|
-
base: string;
|
|
9162
|
-
};
|
|
9163
|
-
} | null;
|
|
9164
|
-
/** @description Resolved details for the user that created the run. */
|
|
9165
|
-
created_by_user_detail: {
|
|
9166
|
-
/** @description Supabase user ID. */
|
|
9167
|
-
id: string;
|
|
9168
|
-
/** @description User email address. */
|
|
9169
|
-
email: string;
|
|
9170
|
-
/** @description User display name. */
|
|
9171
|
-
name: string;
|
|
9172
|
-
/** @description User avatar URL. */
|
|
9173
|
-
picture: string;
|
|
9174
|
-
} | null;
|
|
9175
|
-
};
|
|
9176
9055
|
Environment: {
|
|
9177
9056
|
/** @description Unique identifier. */
|
|
9178
9057
|
id: number;
|
|
@@ -9580,6 +9459,8 @@ export interface components {
|
|
|
9580
9459
|
last_commit_before_run_started_at: string | null;
|
|
9581
9460
|
/** @description Snoozes matching this case at read time. */
|
|
9582
9461
|
snooze_info: components["schemas"]["TestRunCaseSnoozeInfo"][];
|
|
9462
|
+
/** @description Rules that apply to this case: rules without a matcher apply by test ID; matcher rules apply once their matcher matched, which runs when the case result arrives and again while the run is finalizing. */
|
|
9463
|
+
rule_matches: components["schemas"]["TestRunCaseRuleMatch"][];
|
|
9583
9464
|
/** @description Attempts that never ran because an earlier member of this case's Playwright serial group failed on the same attempt. Null when the case is not in a snapshotted group or when nothing was blocked. */
|
|
9584
9465
|
skipped_attempts: components["schemas"]["TestRunCaseSkippedAttempt"][] | null;
|
|
9585
9466
|
};
|
|
@@ -9742,6 +9623,38 @@ export interface components {
|
|
|
9742
9623
|
created_at: string | null;
|
|
9743
9624
|
updated_at: string | null;
|
|
9744
9625
|
};
|
|
9626
|
+
/** @description GitHub installation metadata (permissions, repos, organization). */
|
|
9627
|
+
GhReporterAppMetadata: {
|
|
9628
|
+
/** @description Permissions granted to the installation. */
|
|
9629
|
+
permissions: {
|
|
9630
|
+
/** @enum {string} */
|
|
9631
|
+
metadata: "read";
|
|
9632
|
+
/** @enum {string} */
|
|
9633
|
+
checks?: "write" | "read";
|
|
9634
|
+
/** @enum {string} */
|
|
9635
|
+
pull_requests?: "write" | "read";
|
|
9636
|
+
/** @enum {string} */
|
|
9637
|
+
contents?: "write" | "read";
|
|
9638
|
+
/** @enum {string} */
|
|
9639
|
+
issues?: "write" | "read";
|
|
9640
|
+
/** @enum {string} */
|
|
9641
|
+
merge_queues?: "write" | "read";
|
|
9642
|
+
/** @enum {string} */
|
|
9643
|
+
repository_custom_properties?: "write" | "read";
|
|
9644
|
+
} & {
|
|
9645
|
+
[key: string]: unknown;
|
|
9646
|
+
};
|
|
9647
|
+
/** @description Repositories the installation can access. */
|
|
9648
|
+
ghRepos: {
|
|
9649
|
+
id: number;
|
|
9650
|
+
node_id: string;
|
|
9651
|
+
name: string;
|
|
9652
|
+
full_name: string;
|
|
9653
|
+
private: boolean;
|
|
9654
|
+
}[] | null;
|
|
9655
|
+
/** @description GitHub account (organization or user) of the install. */
|
|
9656
|
+
ghOrganization: string | null;
|
|
9657
|
+
};
|
|
9745
9658
|
GhReporterCheckRunDelivery: {
|
|
9746
9659
|
id: number;
|
|
9747
9660
|
test_run_id: number;
|
|
@@ -9843,8 +9756,7 @@ export interface components {
|
|
|
9843
9756
|
GhReporterMetadataResponse: {
|
|
9844
9757
|
/** @description Response payload. */
|
|
9845
9758
|
data: {
|
|
9846
|
-
|
|
9847
|
-
ghAppMetadata?: unknown;
|
|
9759
|
+
ghAppMetadata: components["schemas"]["GhReporterAppMetadata"];
|
|
9848
9760
|
};
|
|
9849
9761
|
};
|
|
9850
9762
|
GhReporterPrCommentDelivery: {
|
|
@@ -9934,6 +9846,31 @@ export interface components {
|
|
|
9934
9846
|
/** @description Raw GitHub content mutation response. */
|
|
9935
9847
|
file?: unknown;
|
|
9936
9848
|
};
|
|
9849
|
+
/** @description GitHub git tree object. */
|
|
9850
|
+
GithubGitTree: {
|
|
9851
|
+
/** @description Tree SHA. */
|
|
9852
|
+
sha: string;
|
|
9853
|
+
/** @description GitHub API URL. */
|
|
9854
|
+
url?: string;
|
|
9855
|
+
/** @description Whether GitHub truncated the recursive listing. */
|
|
9856
|
+
truncated: boolean;
|
|
9857
|
+
/** @description Every entry in the tree, recursively. */
|
|
9858
|
+
tree: components["schemas"]["GithubGitTreeEntry"][];
|
|
9859
|
+
};
|
|
9860
|
+
GithubGitTreeEntry: {
|
|
9861
|
+
/** @description Path relative to the repo root. */
|
|
9862
|
+
path: string;
|
|
9863
|
+
/** @description Git file mode. */
|
|
9864
|
+
mode: string;
|
|
9865
|
+
/** @description Object type: `blob`, `tree`, or `commit`. */
|
|
9866
|
+
type: string;
|
|
9867
|
+
/** @description Object SHA. */
|
|
9868
|
+
sha: string;
|
|
9869
|
+
/** @description Blob size in bytes; absent for trees. */
|
|
9870
|
+
size?: number;
|
|
9871
|
+
/** @description GitHub API URL. */
|
|
9872
|
+
url?: string;
|
|
9873
|
+
};
|
|
9937
9874
|
GithubLinkListResponse: {
|
|
9938
9875
|
/** @description Response payload. */
|
|
9939
9876
|
data: components["schemas"]["GithubUserLink"][];
|
|
@@ -10143,8 +10080,7 @@ export interface components {
|
|
|
10143
10080
|
GithubTreeResponse: {
|
|
10144
10081
|
/** @description Response payload. */
|
|
10145
10082
|
data: {
|
|
10146
|
-
|
|
10147
|
-
tree?: unknown;
|
|
10083
|
+
tree: components["schemas"]["GithubGitTree"];
|
|
10148
10084
|
};
|
|
10149
10085
|
};
|
|
10150
10086
|
GithubUserLink: {
|
|
@@ -10248,6 +10184,15 @@ export interface components {
|
|
|
10248
10184
|
message: string;
|
|
10249
10185
|
};
|
|
10250
10186
|
};
|
|
10187
|
+
InitializeRepoResponse: {
|
|
10188
|
+
/** @description Response payload. */
|
|
10189
|
+
data: {
|
|
10190
|
+
/** @description True when this call added the initial commit. False when the repository already had commits. */
|
|
10191
|
+
initialized: boolean;
|
|
10192
|
+
/** @description Default branch of the repository. */
|
|
10193
|
+
default_branch: string;
|
|
10194
|
+
};
|
|
10195
|
+
};
|
|
10251
10196
|
InvoiceBillingLine: {
|
|
10252
10197
|
/** @description Billing line ID. */
|
|
10253
10198
|
id: number;
|
|
@@ -10869,7 +10814,7 @@ export interface components {
|
|
|
10869
10814
|
};
|
|
10870
10815
|
};
|
|
10871
10816
|
LiveTestRun: {
|
|
10872
|
-
/** @description
|
|
10817
|
+
/** @description Unique identifier. */
|
|
10873
10818
|
id: number;
|
|
10874
10819
|
/** @description External run_id, if assigned. */
|
|
10875
10820
|
run_id: number | null;
|
|
@@ -10895,13 +10840,16 @@ export interface components {
|
|
|
10895
10840
|
run_started_at: string | null;
|
|
10896
10841
|
/** @description ISO 8601 timestamp when tests ended. */
|
|
10897
10842
|
run_ended_at: string | null;
|
|
10898
|
-
/** @description
|
|
10843
|
+
/** @description Duration in milliseconds. */
|
|
10899
10844
|
duration: number | null;
|
|
10900
|
-
/** @description URL
|
|
10845
|
+
/** @description URL to download the Playwright JSON report for this run. */
|
|
10901
10846
|
summary_url: string | null;
|
|
10902
|
-
/**
|
|
10903
|
-
|
|
10904
|
-
|
|
10847
|
+
/**
|
|
10848
|
+
* @description Current state of the test run. `finalizing`: every test has finished and results are being merged.
|
|
10849
|
+
* @enum {string|null}
|
|
10850
|
+
*/
|
|
10851
|
+
state: "pending" | "queued" | "cancelling" | "cancelled" | "ended" | "started" | "finalizing" | "error" | "interrupted" | null;
|
|
10852
|
+
/** @description Git commit SHA. */
|
|
10905
10853
|
test_run_head_sha: string | null;
|
|
10906
10854
|
/** @description Head branch of the merge commit, if any. */
|
|
10907
10855
|
merge_commit_head_branch: string | null;
|
|
@@ -11263,7 +11211,7 @@ export interface components {
|
|
|
11263
11211
|
merged?: boolean;
|
|
11264
11212
|
/** @description Human-readable result. */
|
|
11265
11213
|
message: string;
|
|
11266
|
-
/** @description URL of the
|
|
11214
|
+
/** @description URL of the pull request that was found. */
|
|
11267
11215
|
pull_request_url?: string;
|
|
11268
11216
|
};
|
|
11269
11217
|
};
|
|
@@ -11712,11 +11660,6 @@ export interface components {
|
|
|
11712
11660
|
repo_name: string;
|
|
11713
11661
|
/** @description Repository owner/org. */
|
|
11714
11662
|
repo_owner: string;
|
|
11715
|
-
/**
|
|
11716
|
-
* @description Repository host.
|
|
11717
|
-
* @enum {string}
|
|
11718
|
-
*/
|
|
11719
|
-
repo_host: "github" | "pierre_code_storage";
|
|
11720
11663
|
/** @description Default branch name. */
|
|
11721
11664
|
default_branch: string;
|
|
11722
11665
|
/**
|
|
@@ -12085,11 +12028,6 @@ export interface components {
|
|
|
12085
12028
|
repo_name: string;
|
|
12086
12029
|
/** @description Repository owner. */
|
|
12087
12030
|
repo_owner: string;
|
|
12088
|
-
/**
|
|
12089
|
-
* @description Repository host.
|
|
12090
|
-
* @enum {string}
|
|
12091
|
-
*/
|
|
12092
|
-
repo_host: "github" | "pierre_code_storage";
|
|
12093
12031
|
/** @description Default branch of the repository. */
|
|
12094
12032
|
default_branch: string;
|
|
12095
12033
|
/** @description Branches that may not be pushed to through Empirical. Always includes the default branch. */
|
|
@@ -12317,11 +12255,6 @@ export interface components {
|
|
|
12317
12255
|
repo_name: string;
|
|
12318
12256
|
/** @description Repository owner. */
|
|
12319
12257
|
repo_owner: string;
|
|
12320
|
-
/**
|
|
12321
|
-
* @description Repository host.
|
|
12322
|
-
* @enum {string}
|
|
12323
|
-
*/
|
|
12324
|
-
repo_host: "github" | "pierre_code_storage";
|
|
12325
12258
|
/** @description Default branch of the repository. */
|
|
12326
12259
|
default_branch: string;
|
|
12327
12260
|
/** @description Branches that may not be pushed to through Empirical. Always includes the default branch. */
|
|
@@ -12501,9 +12434,9 @@ export interface components {
|
|
|
12501
12434
|
ProjectNpmSnapshotUrlsResponse: {
|
|
12502
12435
|
/** @description Response payload. */
|
|
12503
12436
|
data: {
|
|
12504
|
-
/** @description Presigned GETs to try in order
|
|
12437
|
+
/** @description Presigned GETs to try in order: the tarball test runs share across projects, then (for sandboxes) this project's own. R2 first, then sandboxes get the S3 copies written before the move to R2. */
|
|
12505
12438
|
restore_urls: string[];
|
|
12506
|
-
/** @description Presigned PUT for this project's
|
|
12439
|
+
/** @description Presigned R2 PUT for the caller's tarball: this project's own for a sandbox, the shared one for a test run. */
|
|
12507
12440
|
upload_url: string;
|
|
12508
12441
|
};
|
|
12509
12442
|
};
|
|
@@ -12541,11 +12474,6 @@ export interface components {
|
|
|
12541
12474
|
repo_name: string;
|
|
12542
12475
|
/** @description Repository owner. */
|
|
12543
12476
|
repo_owner: string;
|
|
12544
|
-
/**
|
|
12545
|
-
* @description Repository host.
|
|
12546
|
-
* @enum {string}
|
|
12547
|
-
*/
|
|
12548
|
-
repo_host: "github" | "pierre_code_storage";
|
|
12549
12477
|
/** @description Default branch of the repository. */
|
|
12550
12478
|
default_branch: string;
|
|
12551
12479
|
/** @description Branches that may not be pushed to through Empirical. Always includes the default branch. */
|
|
@@ -13160,6 +13088,10 @@ export interface components {
|
|
|
13160
13088
|
reporter_type: "slack_creator_dm";
|
|
13161
13089
|
})[];
|
|
13162
13090
|
};
|
|
13091
|
+
ResendWebhookAckResponse: {
|
|
13092
|
+
/** @description Outcome. */
|
|
13093
|
+
message: string;
|
|
13094
|
+
};
|
|
13163
13095
|
ResolveMembershipRequest: {
|
|
13164
13096
|
/**
|
|
13165
13097
|
* Format: email
|
|
@@ -13283,6 +13215,8 @@ export interface components {
|
|
|
13283
13215
|
duration: number;
|
|
13284
13216
|
/** @description ISO 8601 timestamp when the retry started. */
|
|
13285
13217
|
startTime: string;
|
|
13218
|
+
/** @description Playwright worker slot (`TestResult.parallelIndex`) the retry ran on. */
|
|
13219
|
+
parallelIndex?: number;
|
|
13286
13220
|
/** @description Error details if the retry failed. */
|
|
13287
13221
|
error?: {
|
|
13288
13222
|
/** @description Error message. */
|
|
@@ -14744,13 +14678,10 @@ export interface components {
|
|
|
14744
14678
|
} | null;
|
|
14745
14679
|
};
|
|
14746
14680
|
TaskChatSessionsResponse: {
|
|
14747
|
-
/** @description
|
|
14748
|
-
data:
|
|
14749
|
-
/** @description Explanatory message when
|
|
14750
|
-
message
|
|
14751
|
-
} | {
|
|
14752
|
-
/** @description Chat sessions for the task. */
|
|
14753
|
-
data: components["schemas"]["TaskChatSessionWithUser"][];
|
|
14681
|
+
/** @description Chat sessions for the task; null when none exist. */
|
|
14682
|
+
data: components["schemas"]["TaskChatSessionWithUser"][] | null;
|
|
14683
|
+
/** @description Explanatory message when no sessions exist. */
|
|
14684
|
+
message?: string;
|
|
14754
14685
|
};
|
|
14755
14686
|
TaskCommentResponse: {
|
|
14756
14687
|
/** @description Response payload. */
|
|
@@ -14985,6 +14916,7 @@ export interface components {
|
|
|
14985
14916
|
result: {
|
|
14986
14917
|
retry: number;
|
|
14987
14918
|
startTime: string;
|
|
14919
|
+
parallelIndex?: number;
|
|
14988
14920
|
};
|
|
14989
14921
|
projectName: string;
|
|
14990
14922
|
shardIndex?: number;
|
|
@@ -15041,6 +14973,7 @@ export interface components {
|
|
|
15041
14973
|
status: components["schemas"]["TestCaseRunEndPayloadStatus"];
|
|
15042
14974
|
duration: number;
|
|
15043
14975
|
startTime: string;
|
|
14976
|
+
parallelIndex?: number;
|
|
15044
14977
|
error?: components["schemas"]["TestCaseRunEndPayloadError"];
|
|
15045
14978
|
errors?: components["schemas"]["TestCaseRunEndPayloadError"][];
|
|
15046
14979
|
annotations?: components["schemas"]["TestCaseRunEndPayloadAnnotation"][];
|
|
@@ -15166,6 +15099,8 @@ export interface components {
|
|
|
15166
15099
|
last_commit_before_run_started_at: string | null;
|
|
15167
15100
|
/** @description Snoozes matching this case at read time. */
|
|
15168
15101
|
snooze_info: components["schemas"]["TestRunCaseSnoozeInfo"][];
|
|
15102
|
+
/** @description Rules that apply to this case: rules without a matcher apply by test ID; matcher rules apply once their matcher matched, which runs when the case result arrives and again while the run is finalizing. */
|
|
15103
|
+
rule_matches: components["schemas"]["TestRunCaseRuleMatch"][];
|
|
15169
15104
|
/** @description Attempts that never ran because an earlier member of this case's Playwright serial group failed on the same attempt. Null when the case is not in a snapshotted group or when nothing was blocked. */
|
|
15170
15105
|
skipped_attempts: components["schemas"]["TestRunCaseSkippedAttempt"][] | null;
|
|
15171
15106
|
};
|
|
@@ -15220,6 +15155,37 @@ export interface components {
|
|
|
15220
15155
|
description?: string;
|
|
15221
15156
|
}[];
|
|
15222
15157
|
};
|
|
15158
|
+
TestRunCaseRuleMatch: {
|
|
15159
|
+
/** @description ID of the matching rule. */
|
|
15160
|
+
rule_id: number;
|
|
15161
|
+
/** @description The rule's one-line title. */
|
|
15162
|
+
description: string | null;
|
|
15163
|
+
/**
|
|
15164
|
+
* @description Where the rule places the failure: app, test or env.
|
|
15165
|
+
* @enum {string|null}
|
|
15166
|
+
*/
|
|
15167
|
+
verdict: "app" | "test" | "env" | null;
|
|
15168
|
+
/**
|
|
15169
|
+
* @description `annotate` labels the case; it never changes counts.
|
|
15170
|
+
* @enum {string}
|
|
15171
|
+
*/
|
|
15172
|
+
effect: "snooze" | "annotate";
|
|
15173
|
+
/** @description ISO 8601 time the rule applied to this case: when its matcher matched, or for a rule without a matcher, when the case finished or the rule was created, whichever is later. */
|
|
15174
|
+
matched_at: string;
|
|
15175
|
+
/** @description ISO 8601 time the rule stops applying. */
|
|
15176
|
+
until: string;
|
|
15177
|
+
/** @description ISO 8601 time the rule was created. */
|
|
15178
|
+
created_at: string;
|
|
15179
|
+
/** @description ID of the user who created the rule. */
|
|
15180
|
+
created_by: string | null;
|
|
15181
|
+
/** @description Environment the rule is scoped to, if any. */
|
|
15182
|
+
scoped_to_environment_id: number | null;
|
|
15183
|
+
/**
|
|
15184
|
+
* @description `window` when the rule was active during the run, `originating_run` when it was created from this run.
|
|
15185
|
+
* @enum {string}
|
|
15186
|
+
*/
|
|
15187
|
+
match_reason: "window" | "originating_run";
|
|
15188
|
+
};
|
|
15223
15189
|
TestRunCaseSkippedAttempt: {
|
|
15224
15190
|
/** @description Attempt index this explains. */
|
|
15225
15191
|
retry_index: number;
|
|
@@ -15325,15 +15291,15 @@ export interface components {
|
|
|
15325
15291
|
id: number;
|
|
15326
15292
|
/**
|
|
15327
15293
|
* @description Current state of the test run. `finalizing`: every test has finished and results are being merged.
|
|
15328
|
-
* @enum {string}
|
|
15294
|
+
* @enum {string|null}
|
|
15329
15295
|
*/
|
|
15330
|
-
state: "pending" | "queued" | "cancelling" | "cancelled" | "ended" | "started" | "finalizing" | "error" | "interrupted";
|
|
15296
|
+
state: "pending" | "queued" | "cancelling" | "cancelled" | "ended" | "started" | "finalizing" | "error" | "interrupted" | null;
|
|
15331
15297
|
/** @description Total number of test cases. */
|
|
15332
|
-
total_count: number;
|
|
15298
|
+
total_count: number | null;
|
|
15333
15299
|
/** @description Number of passed tests. */
|
|
15334
|
-
success_count: number;
|
|
15300
|
+
success_count: number | null;
|
|
15335
15301
|
/** @description Number of failed tests. */
|
|
15336
|
-
failed_count: number;
|
|
15302
|
+
failed_count: number | null;
|
|
15337
15303
|
/** @description Number of skipped tests. */
|
|
15338
15304
|
skipped_count: number | null;
|
|
15339
15305
|
/** @description Number of flaky tests. */
|
|
@@ -15341,7 +15307,7 @@ export interface components {
|
|
|
15341
15307
|
/** @description Duration in milliseconds. */
|
|
15342
15308
|
duration: number | null;
|
|
15343
15309
|
/** @description Git branch being tested. */
|
|
15344
|
-
test_run_branch: string
|
|
15310
|
+
test_run_branch: string;
|
|
15345
15311
|
/** @description Environment identifier. */
|
|
15346
15312
|
environment_slug: string | null;
|
|
15347
15313
|
/** @description Environment display name. */
|
|
@@ -15353,7 +15319,7 @@ export interface components {
|
|
|
15353
15319
|
/** @description Commit SHA. */
|
|
15354
15320
|
commit: string | null;
|
|
15355
15321
|
/** @description ISO 8601 timestamp. */
|
|
15356
|
-
created_at: string;
|
|
15322
|
+
created_at: string | null;
|
|
15357
15323
|
/** @description Concurrency group and policy the run was created with, or null when no limit applied. */
|
|
15358
15324
|
concurrency: {
|
|
15359
15325
|
/** @description Concurrency group the run was scoped to. Runs in the same group are limited to one in progress at a time. */
|
|
@@ -15364,14 +15330,88 @@ export interface components {
|
|
|
15364
15330
|
*/
|
|
15365
15331
|
on_conflict: "cancel" | "wait";
|
|
15366
15332
|
} | null;
|
|
15367
|
-
/** @description
|
|
15368
|
-
|
|
15333
|
+
/** @description External run_id, if assigned. */
|
|
15334
|
+
run_id: number | null;
|
|
15335
|
+
/** @description ECS task ID running the run, if dispatched. */
|
|
15336
|
+
ecs_task_id: string | null;
|
|
15337
|
+
/** @description AWS region of the ECS task, if dispatched. */
|
|
15338
|
+
ecs_task_region: string | null;
|
|
15339
|
+
/** @description Owning project ID. */
|
|
15340
|
+
project_id: number;
|
|
15341
|
+
/** @description Number of unique test cases. */
|
|
15342
|
+
unique_count: number | null;
|
|
15343
|
+
/** @description Failed tests remaining after applying snoozes. */
|
|
15344
|
+
failed_count_after_snoozing: number | null;
|
|
15369
15345
|
/** @description ISO 8601 timestamp when tests started. */
|
|
15370
15346
|
run_started_at: string | null;
|
|
15371
15347
|
/** @description ISO 8601 timestamp when tests ended. */
|
|
15372
15348
|
run_ended_at: string | null;
|
|
15349
|
+
/** @description Git commit SHA. */
|
|
15350
|
+
test_run_head_sha: string | null;
|
|
15373
15351
|
/** @description URL to download the Playwright JSON report for this run. */
|
|
15374
15352
|
summary_url: string | null;
|
|
15353
|
+
/** @description Associated build row ID, if any. */
|
|
15354
|
+
build_id: number | null;
|
|
15355
|
+
/** @description Environment row ID, if any. */
|
|
15356
|
+
environment_id: number | null;
|
|
15357
|
+
/** @description Arbitrary run metadata key/value pairs. */
|
|
15358
|
+
metadata: {
|
|
15359
|
+
[key: string]: string;
|
|
15360
|
+
} | null;
|
|
15361
|
+
/** @description User ID that created the run. */
|
|
15362
|
+
created_by: string | null;
|
|
15363
|
+
/** @description User agent that created the run. */
|
|
15364
|
+
created_by_user_agent: string | null;
|
|
15365
|
+
/** @description Build branch name. */
|
|
15366
|
+
branch: string | null;
|
|
15367
|
+
/** @description Build repository in `org/repo` form. */
|
|
15368
|
+
repo: string | null;
|
|
15369
|
+
/** @description GitHub actor that triggered the run. */
|
|
15370
|
+
github_actor: string | null;
|
|
15371
|
+
/** @description Run-level environment variable overrides. */
|
|
15372
|
+
environment_variables_overrides: {
|
|
15373
|
+
name: string;
|
|
15374
|
+
value: string;
|
|
15375
|
+
}[] | null;
|
|
15376
|
+
/** @description Head branch of the merge commit, if any. */
|
|
15377
|
+
merge_commit_head_branch: string | null;
|
|
15378
|
+
/** @description Base branch of the merge commit, if any. */
|
|
15379
|
+
merge_commit_base_branch: string | null;
|
|
15380
|
+
/** @description Whether the merge commit succeeded. */
|
|
15381
|
+
merge_commit_successful: boolean | null;
|
|
15382
|
+
/** @description Error code if the run failed. */
|
|
15383
|
+
error_code: string | null;
|
|
15384
|
+
/** @description Reason the run was cancelled, if any. */
|
|
15385
|
+
cancellation_reason: string | null;
|
|
15386
|
+
/** @description User ID that cancelled the run, if any. */
|
|
15387
|
+
cancelled_by_user_id: string | null;
|
|
15388
|
+
/** @description ID of the run this run is a rerun of, if any. */
|
|
15389
|
+
rerun_source_id: number | null;
|
|
15390
|
+
/** @description Whether the rerun re-ran only failed tests. */
|
|
15391
|
+
rerun_only_failed: boolean | null;
|
|
15392
|
+
/** @description Feature flags active for this run. */
|
|
15393
|
+
feature_flags: string[];
|
|
15394
|
+
/** @description Artifact storage bucket for the run. */
|
|
15395
|
+
storage_bucket: string | null;
|
|
15396
|
+
/** @description ID of the run that supersedes this one, if any. */
|
|
15397
|
+
superseded_by_test_run_id: number | null;
|
|
15398
|
+
/** @description Tags applied to the run. */
|
|
15399
|
+
tags: string[] | null;
|
|
15400
|
+
/** @description Tags whose tests the run skips. */
|
|
15401
|
+
exclude_tags: string[] | null;
|
|
15402
|
+
/** @description Specific test case ids (Playwright test.id) to run. */
|
|
15403
|
+
test_case_ids: string[] | null;
|
|
15404
|
+
/** @description Resolved details for the user that created the run. */
|
|
15405
|
+
created_by_user_detail: {
|
|
15406
|
+
/** @description Supabase user ID. */
|
|
15407
|
+
id: string;
|
|
15408
|
+
/** @description User email address. */
|
|
15409
|
+
email: string;
|
|
15410
|
+
/** @description User display name. */
|
|
15411
|
+
name: string;
|
|
15412
|
+
/** @description User avatar URL. */
|
|
15413
|
+
picture: string;
|
|
15414
|
+
} | null;
|
|
15375
15415
|
/** @description Branch-resolution provenance. Null only for historical runs created before provenance was recorded. */
|
|
15376
15416
|
test_code: {
|
|
15377
15417
|
requested: {
|
|
@@ -15490,15 +15530,15 @@ export interface components {
|
|
|
15490
15530
|
id: number;
|
|
15491
15531
|
/**
|
|
15492
15532
|
* @description Current state of the test run. `finalizing`: every test has finished and results are being merged.
|
|
15493
|
-
* @enum {string}
|
|
15533
|
+
* @enum {string|null}
|
|
15494
15534
|
*/
|
|
15495
|
-
state: "pending" | "queued" | "cancelling" | "cancelled" | "ended" | "started" | "finalizing" | "error" | "interrupted";
|
|
15535
|
+
state: "pending" | "queued" | "cancelling" | "cancelled" | "ended" | "started" | "finalizing" | "error" | "interrupted" | null;
|
|
15496
15536
|
/** @description Total number of test cases. */
|
|
15497
|
-
total_count: number;
|
|
15537
|
+
total_count: number | null;
|
|
15498
15538
|
/** @description Number of passed tests. */
|
|
15499
|
-
success_count: number;
|
|
15539
|
+
success_count: number | null;
|
|
15500
15540
|
/** @description Number of failed tests. */
|
|
15501
|
-
failed_count: number;
|
|
15541
|
+
failed_count: number | null;
|
|
15502
15542
|
/** @description Number of skipped tests. */
|
|
15503
15543
|
skipped_count: number | null;
|
|
15504
15544
|
/** @description Number of flaky tests. */
|
|
@@ -15506,7 +15546,7 @@ export interface components {
|
|
|
15506
15546
|
/** @description Duration in milliseconds. */
|
|
15507
15547
|
duration: number | null;
|
|
15508
15548
|
/** @description Git branch being tested. */
|
|
15509
|
-
test_run_branch: string
|
|
15549
|
+
test_run_branch: string;
|
|
15510
15550
|
/** @description Environment identifier. */
|
|
15511
15551
|
environment_slug: string | null;
|
|
15512
15552
|
/** @description Environment display name. */
|
|
@@ -15518,7 +15558,7 @@ export interface components {
|
|
|
15518
15558
|
/** @description Commit SHA. */
|
|
15519
15559
|
commit: string | null;
|
|
15520
15560
|
/** @description ISO 8601 timestamp. */
|
|
15521
|
-
created_at: string;
|
|
15561
|
+
created_at: string | null;
|
|
15522
15562
|
/** @description Concurrency group and policy the run was created with, or null when no limit applied. */
|
|
15523
15563
|
concurrency: {
|
|
15524
15564
|
/** @description Concurrency group the run was scoped to. Runs in the same group are limited to one in progress at a time. */
|
|
@@ -15529,6 +15569,88 @@ export interface components {
|
|
|
15529
15569
|
*/
|
|
15530
15570
|
on_conflict: "cancel" | "wait";
|
|
15531
15571
|
} | null;
|
|
15572
|
+
/** @description External run_id, if assigned. */
|
|
15573
|
+
run_id: number | null;
|
|
15574
|
+
/** @description ECS task ID running the run, if dispatched. */
|
|
15575
|
+
ecs_task_id: string | null;
|
|
15576
|
+
/** @description AWS region of the ECS task, if dispatched. */
|
|
15577
|
+
ecs_task_region: string | null;
|
|
15578
|
+
/** @description Owning project ID. */
|
|
15579
|
+
project_id: number;
|
|
15580
|
+
/** @description Number of unique test cases. */
|
|
15581
|
+
unique_count: number | null;
|
|
15582
|
+
/** @description Failed tests remaining after applying snoozes. */
|
|
15583
|
+
failed_count_after_snoozing: number | null;
|
|
15584
|
+
/** @description ISO 8601 timestamp when tests started. */
|
|
15585
|
+
run_started_at: string | null;
|
|
15586
|
+
/** @description ISO 8601 timestamp when tests ended. */
|
|
15587
|
+
run_ended_at: string | null;
|
|
15588
|
+
/** @description Head commit SHA of the test repo. */
|
|
15589
|
+
test_run_head_sha: string | null;
|
|
15590
|
+
/** @description URL of the Playwright JSON report. */
|
|
15591
|
+
summary_url: string | null;
|
|
15592
|
+
/** @description Associated build row ID, if any. */
|
|
15593
|
+
build_id: number | null;
|
|
15594
|
+
/** @description Environment row ID, if any. */
|
|
15595
|
+
environment_id: number | null;
|
|
15596
|
+
/** @description Arbitrary run metadata key/value pairs. */
|
|
15597
|
+
metadata: {
|
|
15598
|
+
[key: string]: string;
|
|
15599
|
+
} | null;
|
|
15600
|
+
/** @description User ID that created the run. */
|
|
15601
|
+
created_by: string | null;
|
|
15602
|
+
/** @description User agent that created the run. */
|
|
15603
|
+
created_by_user_agent: string | null;
|
|
15604
|
+
/** @description Build branch name. */
|
|
15605
|
+
branch: string | null;
|
|
15606
|
+
/** @description Build repository in `org/repo` form. */
|
|
15607
|
+
repo: string | null;
|
|
15608
|
+
/** @description GitHub actor that triggered the run. */
|
|
15609
|
+
github_actor: string | null;
|
|
15610
|
+
/** @description Run-level environment variable overrides. */
|
|
15611
|
+
environment_variables_overrides: {
|
|
15612
|
+
name: string;
|
|
15613
|
+
value: string;
|
|
15614
|
+
}[] | null;
|
|
15615
|
+
/** @description Head branch of the merge commit, if any. */
|
|
15616
|
+
merge_commit_head_branch: string | null;
|
|
15617
|
+
/** @description Base branch of the merge commit, if any. */
|
|
15618
|
+
merge_commit_base_branch: string | null;
|
|
15619
|
+
/** @description Whether the merge commit succeeded. */
|
|
15620
|
+
merge_commit_successful: boolean | null;
|
|
15621
|
+
/** @description Error code if the run failed. */
|
|
15622
|
+
error_code: string | null;
|
|
15623
|
+
/** @description Reason the run was cancelled, if any. */
|
|
15624
|
+
cancellation_reason: string | null;
|
|
15625
|
+
/** @description User ID that cancelled the run, if any. */
|
|
15626
|
+
cancelled_by_user_id: string | null;
|
|
15627
|
+
/** @description ID of the run this run is a rerun of, if any. */
|
|
15628
|
+
rerun_source_id: number | null;
|
|
15629
|
+
/** @description Whether the rerun re-ran only failed tests. */
|
|
15630
|
+
rerun_only_failed: boolean | null;
|
|
15631
|
+
/** @description Feature flags active for this run. */
|
|
15632
|
+
feature_flags: string[];
|
|
15633
|
+
/** @description Artifact storage bucket for the run. */
|
|
15634
|
+
storage_bucket: string | null;
|
|
15635
|
+
/** @description ID of the run that supersedes this one, if any. */
|
|
15636
|
+
superseded_by_test_run_id: number | null;
|
|
15637
|
+
/** @description Tags applied to the run. */
|
|
15638
|
+
tags: string[] | null;
|
|
15639
|
+
/** @description Tags whose tests the run skips. */
|
|
15640
|
+
exclude_tags: string[] | null;
|
|
15641
|
+
/** @description Specific test case ids (Playwright test.id) to run. */
|
|
15642
|
+
test_case_ids: string[] | null;
|
|
15643
|
+
/** @description Resolved details for the user that created the run. */
|
|
15644
|
+
created_by_user_detail: {
|
|
15645
|
+
/** @description Supabase user ID. */
|
|
15646
|
+
id: string;
|
|
15647
|
+
/** @description User email address. */
|
|
15648
|
+
email: string;
|
|
15649
|
+
/** @description User display name. */
|
|
15650
|
+
name: string;
|
|
15651
|
+
/** @description User avatar URL. */
|
|
15652
|
+
picture: string;
|
|
15653
|
+
} | null;
|
|
15532
15654
|
};
|
|
15533
15655
|
TestRunLinkedChangesResponse: {
|
|
15534
15656
|
/** @description Response payload. */
|
|
@@ -15639,6 +15761,8 @@ export interface components {
|
|
|
15639
15761
|
expected_duration_ms?: number | null;
|
|
15640
15762
|
/** @description Unix ms the latest attempt started. A pending or retrying test with a `started_at` is in flight. */
|
|
15641
15763
|
started_at?: number | null;
|
|
15764
|
+
/** @description Playwright worker slot (`TestResult.parallelIndex`) of the attempt `started_at` belongs to. */
|
|
15765
|
+
started_parallel_index?: number | null;
|
|
15642
15766
|
/** @description Resume shard that re-scheduled this test, when `status` is `interrupted`. */
|
|
15643
15767
|
superseded_by_shard?: number | null;
|
|
15644
15768
|
};
|
|
@@ -15736,6 +15860,74 @@ export interface components {
|
|
|
15736
15860
|
/** @description Storage bucket holding the run's artifacts. */
|
|
15737
15861
|
storage_bucket: string | null;
|
|
15738
15862
|
};
|
|
15863
|
+
TestRunRuleMatchingResponse: {
|
|
15864
|
+
/** @description Response payload. */
|
|
15865
|
+
data: {
|
|
15866
|
+
test_run_id: number;
|
|
15867
|
+
state: string | null;
|
|
15868
|
+
summary: {
|
|
15869
|
+
/** @description Failed and flaky cases in the run. */
|
|
15870
|
+
cases: number;
|
|
15871
|
+
/** @description Cases at least one rule applies to (by test ID or match). */
|
|
15872
|
+
covered: number;
|
|
15873
|
+
/** @description Cases no rule applies to, with every matcher evaluated. */
|
|
15874
|
+
uncovered: number;
|
|
15875
|
+
/** @description Cases where at least one matcher errored. */
|
|
15876
|
+
with_errors: number;
|
|
15877
|
+
/** @description Cases with at least one matcher not evaluated yet. */
|
|
15878
|
+
with_pending: number;
|
|
15879
|
+
/** @description Rules active for the run (project, environment and time window, or created from the run). */
|
|
15880
|
+
rules: number;
|
|
15881
|
+
matcher_rules: number;
|
|
15882
|
+
};
|
|
15883
|
+
rules: {
|
|
15884
|
+
rule_id: number;
|
|
15885
|
+
description: string | null;
|
|
15886
|
+
/** @enum {string} */
|
|
15887
|
+
effect: "snooze" | "annotate";
|
|
15888
|
+
/** @enum {string|null} */
|
|
15889
|
+
verdict: "app" | "test" | "env" | null;
|
|
15890
|
+
has_matcher: boolean;
|
|
15891
|
+
until: string;
|
|
15892
|
+
scoped_to_environment_id: number | null;
|
|
15893
|
+
created_from_this_run: boolean;
|
|
15894
|
+
/** @description Failed and flaky cases of this run, by evaluation state. */
|
|
15895
|
+
cases: {
|
|
15896
|
+
applied: number;
|
|
15897
|
+
matched: number;
|
|
15898
|
+
not_matched: number;
|
|
15899
|
+
error: number;
|
|
15900
|
+
pending: number;
|
|
15901
|
+
};
|
|
15902
|
+
}[];
|
|
15903
|
+
cases: {
|
|
15904
|
+
pw_test_id: string;
|
|
15905
|
+
name: string;
|
|
15906
|
+
status: string;
|
|
15907
|
+
is_retrying: boolean;
|
|
15908
|
+
evaluations: {
|
|
15909
|
+
rule_id: number;
|
|
15910
|
+
/**
|
|
15911
|
+
* @description `test_ids`: the rule lists this test and applies without a matcher. `matcher`: the rule's matcher decides.
|
|
15912
|
+
* @enum {string}
|
|
15913
|
+
*/
|
|
15914
|
+
kind: "test_ids" | "matcher";
|
|
15915
|
+
/**
|
|
15916
|
+
* @description `applied` (listed by test ID), `matched` / `not_matched` (matcher result for the rule's current matcher), `error` (the matcher failed or could not read the trace), `pending` (no result yet for the current matcher).
|
|
15917
|
+
* @enum {string}
|
|
15918
|
+
*/
|
|
15919
|
+
state: "applied" | "matched" | "not_matched" | "error" | "pending";
|
|
15920
|
+
error_kind: string | null;
|
|
15921
|
+
error: string | null;
|
|
15922
|
+
duration_ms: number | null;
|
|
15923
|
+
/** @description ISO 8601 time the matcher result was stored. */
|
|
15924
|
+
evaluated_at: string | null;
|
|
15925
|
+
/** @description The matcher's console output, last 100 lines. Empty when `include_logs=false`. */
|
|
15926
|
+
logs: string[];
|
|
15927
|
+
}[];
|
|
15928
|
+
}[];
|
|
15929
|
+
};
|
|
15930
|
+
};
|
|
15739
15931
|
TestRunShard: {
|
|
15740
15932
|
/** @description Shard row ID. */
|
|
15741
15933
|
id: number;
|
|
@@ -15825,57 +16017,6 @@ export interface components {
|
|
|
15825
16017
|
test_case_ids: string[];
|
|
15826
16018
|
};
|
|
15827
16019
|
};
|
|
15828
|
-
TestRunSummaryDetail: {
|
|
15829
|
-
/** @description Diagnosis row ID. */
|
|
15830
|
-
id: number;
|
|
15831
|
-
/** @description ISO 8601 creation timestamp. */
|
|
15832
|
-
created_at: string;
|
|
15833
|
-
/** @description Playwright test ID. */
|
|
15834
|
-
pw_test_id: string | null;
|
|
15835
|
-
/** @description Test run ID. */
|
|
15836
|
-
test_run_id: string;
|
|
15837
|
-
/** @description Test case status. */
|
|
15838
|
-
status: string;
|
|
15839
|
-
/** @description Playwright project the test ran under. */
|
|
15840
|
-
test_project: string | null;
|
|
15841
|
-
/** @description Last commit SHA before the run started. */
|
|
15842
|
-
last_commit_before_run_started_at: string | null;
|
|
15843
|
-
/** @description Source line that triggered the failure. */
|
|
15844
|
-
failing_line: string | null;
|
|
15845
|
-
/** @description Run-time test path `[file, ...suites, title]`. */
|
|
15846
|
-
nesting: string[];
|
|
15847
|
-
/** @description Per-retry details for the failed test. */
|
|
15848
|
-
retry_details: {
|
|
15849
|
-
retries: components["schemas"]["RetryDetail"][];
|
|
15850
|
-
} | null;
|
|
15851
|
-
/** @description Snoozes that apply to this test in this run. */
|
|
15852
|
-
snooze_info: components["schemas"]["TestRunSummaryDetailSnooze"][];
|
|
15853
|
-
};
|
|
15854
|
-
TestRunSummaryDetailResponse: {
|
|
15855
|
-
/** @description Response payload. */
|
|
15856
|
-
data: components["schemas"]["TestRunSummaryDetail"][];
|
|
15857
|
-
};
|
|
15858
|
-
TestRunSummaryDetailSnooze: {
|
|
15859
|
-
/** @description Snooze ID. */
|
|
15860
|
-
snooze_id: number;
|
|
15861
|
-
/** @description Snooze description. */
|
|
15862
|
-
description: string | null;
|
|
15863
|
-
/** @description User ID that created the snooze. */
|
|
15864
|
-
created_by: string | null;
|
|
15865
|
-
/** @description Avatar URL of the snooze creator. */
|
|
15866
|
-
created_by_picture: string | null;
|
|
15867
|
-
/** @description ISO 8601 timestamp the snooze is active until. */
|
|
15868
|
-
snooze_until: string | null;
|
|
15869
|
-
/** @description ISO 8601 timestamp the snooze was created. */
|
|
15870
|
-
created_at: string | null;
|
|
15871
|
-
/**
|
|
15872
|
-
* @description Why the snooze applies: `window` (active window overlapped the run) or `originating_run` (created from this run).
|
|
15873
|
-
* @enum {string}
|
|
15874
|
-
*/
|
|
15875
|
-
match_reason: "window" | "originating_run";
|
|
15876
|
-
/** @description Environment the snooze is scoped to; null applies to all environments. */
|
|
15877
|
-
scoped_to_environment_id: number | null;
|
|
15878
|
-
};
|
|
15879
16020
|
TestRunTestCaseDurationsResponse: {
|
|
15880
16021
|
data: {
|
|
15881
16022
|
/** @description Length of the analytics window the averages cover. */
|
|
@@ -15893,12 +16034,6 @@ export interface components {
|
|
|
15893
16034
|
};
|
|
15894
16035
|
};
|
|
15895
16036
|
};
|
|
15896
|
-
TestRunTriageSessionResponse: {
|
|
15897
|
-
/** @description Response payload. */
|
|
15898
|
-
data: {
|
|
15899
|
-
chat_session: components["schemas"]["ChatSession"];
|
|
15900
|
-
};
|
|
15901
|
-
};
|
|
15902
16037
|
TestRunsListResponse: {
|
|
15903
16038
|
data: {
|
|
15904
16039
|
/** @description The project the runs belong to. */
|
|
@@ -15911,6 +16046,8 @@ export interface components {
|
|
|
15911
16046
|
slug: string;
|
|
15912
16047
|
/** @description Repository name for the project. */
|
|
15913
16048
|
repo_name: string;
|
|
16049
|
+
/** @description Default branch of the test repository. */
|
|
16050
|
+
default_branch: string;
|
|
15914
16051
|
};
|
|
15915
16052
|
/** @description Paginated test runs. */
|
|
15916
16053
|
test_runs: {
|
|
@@ -16147,7 +16284,7 @@ export interface components {
|
|
|
16147
16284
|
/** @description Everything the run detail page renders. */
|
|
16148
16285
|
test_run: {
|
|
16149
16286
|
project: components["schemas"]["UiTestRunProject"];
|
|
16150
|
-
testRun: components["schemas"]["
|
|
16287
|
+
testRun: components["schemas"]["TestRunDetail"];
|
|
16151
16288
|
/** @description Test cases referenced by the ledger first page's pw_test_ids, so the run detail page renders without a follow-up lookup. */
|
|
16152
16289
|
test_cases: components["schemas"]["TestCase"][];
|
|
16153
16290
|
/** @description Resolved details for the user that cancelled the run. */
|
|
@@ -16200,6 +16337,15 @@ export interface components {
|
|
|
16200
16337
|
name: string;
|
|
16201
16338
|
/** @description Repository name backing the project. */
|
|
16202
16339
|
repo_name: string;
|
|
16340
|
+
/** @description Owner of the repository backing the project. */
|
|
16341
|
+
repo_owner: string;
|
|
16342
|
+
/** @description Default branch of the test repository. */
|
|
16343
|
+
default_branch: string;
|
|
16344
|
+
/**
|
|
16345
|
+
* @description Scope at which concurrent test runs are limited.
|
|
16346
|
+
* @enum {string}
|
|
16347
|
+
*/
|
|
16348
|
+
test_run_concurrency_limit: "none" | "project" | "environment" | "branch_environment";
|
|
16203
16349
|
};
|
|
16204
16350
|
UpcomingInvoiceReminder: {
|
|
16205
16351
|
/** @description Invoice ID. */
|
|
@@ -16457,7 +16603,10 @@ export interface components {
|
|
|
16457
16603
|
*/
|
|
16458
16604
|
contract_version: number;
|
|
16459
16605
|
} | null;
|
|
16460
|
-
/**
|
|
16606
|
+
/**
|
|
16607
|
+
* Format: date-time
|
|
16608
|
+
* @description When the rule ends, at most 7 days from now.
|
|
16609
|
+
*/
|
|
16461
16610
|
until?: string;
|
|
16462
16611
|
scoped_to_environment_id?: number | null;
|
|
16463
16612
|
/** @enum {string} */
|
|
@@ -16498,7 +16647,7 @@ export interface components {
|
|
|
16498
16647
|
};
|
|
16499
16648
|
};
|
|
16500
16649
|
UpdateSnoozeRequest: {
|
|
16501
|
-
/** @description ISO 8601 timestamp for when the snooze should expire. */
|
|
16650
|
+
/** @description ISO 8601 timestamp for when the snooze should expire, at most 7 days from now. */
|
|
16502
16651
|
snooze_until?: string;
|
|
16503
16652
|
/** @description Description, or `null` to clear it. */
|
|
16504
16653
|
description?: string | null;
|
|
@@ -16563,7 +16712,7 @@ export interface components {
|
|
|
16563
16712
|
*/
|
|
16564
16713
|
url?: string;
|
|
16565
16714
|
/** @description New set of event names to subscribe to. */
|
|
16566
|
-
events?:
|
|
16715
|
+
events?: components["schemas"]["WebhookEvent"][];
|
|
16567
16716
|
/** @description Whether the webhook is active. */
|
|
16568
16717
|
is_active?: boolean;
|
|
16569
16718
|
};
|
|
@@ -16581,7 +16730,7 @@ export interface components {
|
|
|
16581
16730
|
/** @description Endpoint that receives event payloads. */
|
|
16582
16731
|
url: string;
|
|
16583
16732
|
/** @description Event names this webhook subscribes to. */
|
|
16584
|
-
events:
|
|
16733
|
+
events: components["schemas"]["WebhookEvent"][];
|
|
16585
16734
|
/** @description Whether the webhook is active. */
|
|
16586
16735
|
is_active: boolean;
|
|
16587
16736
|
/** @description ISO 8601 creation timestamp. */
|
|
@@ -16785,7 +16934,7 @@ export interface components {
|
|
|
16785
16934
|
/** @description Endpoint that receives event payloads. */
|
|
16786
16935
|
url: string;
|
|
16787
16936
|
/** @description Event names this webhook subscribes to. */
|
|
16788
|
-
events:
|
|
16937
|
+
events: components["schemas"]["WebhookEvent"][];
|
|
16789
16938
|
/** @description Whether the webhook is active. */
|
|
16790
16939
|
is_active: boolean;
|
|
16791
16940
|
/** @description ISO 8601 creation timestamp. */
|
|
@@ -16809,6 +16958,11 @@ export interface components {
|
|
|
16809
16958
|
success: true;
|
|
16810
16959
|
};
|
|
16811
16960
|
};
|
|
16961
|
+
/**
|
|
16962
|
+
* @description An event a webhook can subscribe to.
|
|
16963
|
+
* @enum {string}
|
|
16964
|
+
*/
|
|
16965
|
+
WebhookEvent: "test_run.queued" | "test_run.started" | "test_run.ended" | "test_run.cancelled" | "test_run.error" | "test_run.interrupted" | "failure_group.created" | "failure_group.updated";
|
|
16812
16966
|
WebhookListResponse: {
|
|
16813
16967
|
/** @description Response payload. */
|
|
16814
16968
|
data: {
|
|
@@ -16926,7 +17080,7 @@ export interface operations {
|
|
|
16926
17080
|
"application/json": components["schemas"]["CreateTestRunResponse"];
|
|
16927
17081
|
};
|
|
16928
17082
|
};
|
|
16929
|
-
/** @description Invalid request, unknown environment,
|
|
17083
|
+
/** @description Invalid request, unknown environment, or the project could not be resolved. */
|
|
16930
17084
|
400: {
|
|
16931
17085
|
headers: {
|
|
16932
17086
|
[name: string]: unknown;
|
|
@@ -17950,47 +18104,6 @@ export interface operations {
|
|
|
17950
18104
|
};
|
|
17951
18105
|
};
|
|
17952
18106
|
};
|
|
17953
|
-
createTestRunTriageSession: {
|
|
17954
|
-
parameters: {
|
|
17955
|
-
query?: never;
|
|
17956
|
-
header?: never;
|
|
17957
|
-
path: {
|
|
17958
|
-
/** @description Test run database ID. */
|
|
17959
|
-
id: number;
|
|
17960
|
-
};
|
|
17961
|
-
cookie?: never;
|
|
17962
|
-
};
|
|
17963
|
-
requestBody?: never;
|
|
17964
|
-
responses: {
|
|
17965
|
-
/** @description The created triage session. */
|
|
17966
|
-
201: {
|
|
17967
|
-
headers: {
|
|
17968
|
-
[name: string]: unknown;
|
|
17969
|
-
};
|
|
17970
|
-
content: {
|
|
17971
|
-
"application/json": components["schemas"]["TestRunTriageSessionResponse"];
|
|
17972
|
-
};
|
|
17973
|
-
};
|
|
17974
|
-
/** @description Invalid database test run ID. */
|
|
17975
|
-
400: {
|
|
17976
|
-
headers: {
|
|
17977
|
-
[name: string]: unknown;
|
|
17978
|
-
};
|
|
17979
|
-
content: {
|
|
17980
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
17981
|
-
};
|
|
17982
|
-
};
|
|
17983
|
-
/** @description Test run not found or inaccessible. */
|
|
17984
|
-
404: {
|
|
17985
|
-
headers: {
|
|
17986
|
-
[name: string]: unknown;
|
|
17987
|
-
};
|
|
17988
|
-
content: {
|
|
17989
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
17990
|
-
};
|
|
17991
|
-
};
|
|
17992
|
-
};
|
|
17993
|
-
};
|
|
17994
18107
|
triggerTestRunMerge: {
|
|
17995
18108
|
parameters: {
|
|
17996
18109
|
query?: never;
|
|
@@ -18122,47 +18235,6 @@ export interface operations {
|
|
|
18122
18235
|
};
|
|
18123
18236
|
};
|
|
18124
18237
|
};
|
|
18125
|
-
getTestRunSummaryDetail: {
|
|
18126
|
-
parameters: {
|
|
18127
|
-
query: {
|
|
18128
|
-
/** @description Test run ID (database primary key). */
|
|
18129
|
-
test_run_id: number;
|
|
18130
|
-
};
|
|
18131
|
-
header?: never;
|
|
18132
|
-
path?: never;
|
|
18133
|
-
cookie?: never;
|
|
18134
|
-
};
|
|
18135
|
-
requestBody?: never;
|
|
18136
|
-
responses: {
|
|
18137
|
-
/** @description Per-test summary details. */
|
|
18138
|
-
200: {
|
|
18139
|
-
headers: {
|
|
18140
|
-
[name: string]: unknown;
|
|
18141
|
-
};
|
|
18142
|
-
content: {
|
|
18143
|
-
"application/json": components["schemas"]["TestRunSummaryDetailResponse"];
|
|
18144
|
-
};
|
|
18145
|
-
};
|
|
18146
|
-
/** @description Invalid request. */
|
|
18147
|
-
400: {
|
|
18148
|
-
headers: {
|
|
18149
|
-
[name: string]: unknown;
|
|
18150
|
-
};
|
|
18151
|
-
content: {
|
|
18152
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
18153
|
-
};
|
|
18154
|
-
};
|
|
18155
|
-
/** @description Test run not found or not accessible. */
|
|
18156
|
-
404: {
|
|
18157
|
-
headers: {
|
|
18158
|
-
[name: string]: unknown;
|
|
18159
|
-
};
|
|
18160
|
-
content: {
|
|
18161
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
18162
|
-
};
|
|
18163
|
-
};
|
|
18164
|
-
};
|
|
18165
|
-
};
|
|
18166
18238
|
listTestCases: {
|
|
18167
18239
|
parameters: {
|
|
18168
18240
|
query?: {
|
|
@@ -21056,7 +21128,7 @@ export interface operations {
|
|
|
21056
21128
|
query?: never;
|
|
21057
21129
|
header?: never;
|
|
21058
21130
|
path: {
|
|
21059
|
-
/** @description Failure group label (e.g. `checkout-api-500`) or ID
|
|
21131
|
+
/** @description Failure group label (e.g. `checkout-api-500`) or ID, resolved within the request's project. A label also resolves when the group had it before a rename or merge. */
|
|
21060
21132
|
id: string;
|
|
21061
21133
|
};
|
|
21062
21134
|
cookie?: never;
|
|
@@ -21072,6 +21144,15 @@ export interface operations {
|
|
|
21072
21144
|
"application/json": components["schemas"]["FailureGroupResponse"];
|
|
21073
21145
|
};
|
|
21074
21146
|
};
|
|
21147
|
+
/** @description x-project-id or x-project-slug header required. */
|
|
21148
|
+
400: {
|
|
21149
|
+
headers: {
|
|
21150
|
+
[name: string]: unknown;
|
|
21151
|
+
};
|
|
21152
|
+
content: {
|
|
21153
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
21154
|
+
};
|
|
21155
|
+
};
|
|
21075
21156
|
/** @description Not found. */
|
|
21076
21157
|
404: {
|
|
21077
21158
|
headers: {
|
|
@@ -21088,7 +21169,7 @@ export interface operations {
|
|
|
21088
21169
|
query?: never;
|
|
21089
21170
|
header?: never;
|
|
21090
21171
|
path: {
|
|
21091
|
-
/** @description Failure group label (e.g. `checkout-api-500`) or ID
|
|
21172
|
+
/** @description Failure group label (e.g. `checkout-api-500`) or ID, resolved within the request's project. A label also resolves when the group had it before a rename or merge. */
|
|
21092
21173
|
id: string;
|
|
21093
21174
|
};
|
|
21094
21175
|
cookie?: never;
|
|
@@ -21120,7 +21201,7 @@ export interface operations {
|
|
|
21120
21201
|
query?: never;
|
|
21121
21202
|
header?: never;
|
|
21122
21203
|
path: {
|
|
21123
|
-
/** @description Failure group label (e.g. `checkout-api-500`) or ID
|
|
21204
|
+
/** @description Failure group label (e.g. `checkout-api-500`) or ID, resolved within the request's project. A label also resolves when the group had it before a rename or merge. */
|
|
21124
21205
|
id: string;
|
|
21125
21206
|
};
|
|
21126
21207
|
cookie?: never;
|
|
@@ -21174,7 +21255,7 @@ export interface operations {
|
|
|
21174
21255
|
query?: never;
|
|
21175
21256
|
header?: never;
|
|
21176
21257
|
path: {
|
|
21177
|
-
/** @description Failure group label (e.g. `checkout-api-500`) or ID
|
|
21258
|
+
/** @description Failure group label (e.g. `checkout-api-500`) or ID, resolved within the request's project. A label also resolves when the group had it before a rename or merge. */
|
|
21178
21259
|
id: string;
|
|
21179
21260
|
};
|
|
21180
21261
|
cookie?: never;
|
|
@@ -21190,6 +21271,15 @@ export interface operations {
|
|
|
21190
21271
|
"application/json": components["schemas"]["FailureGroupActivityResponse"];
|
|
21191
21272
|
};
|
|
21192
21273
|
};
|
|
21274
|
+
/** @description x-project-id or x-project-slug header required. */
|
|
21275
|
+
400: {
|
|
21276
|
+
headers: {
|
|
21277
|
+
[name: string]: unknown;
|
|
21278
|
+
};
|
|
21279
|
+
content: {
|
|
21280
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
21281
|
+
};
|
|
21282
|
+
};
|
|
21193
21283
|
/** @description Not found. */
|
|
21194
21284
|
404: {
|
|
21195
21285
|
headers: {
|
|
@@ -21210,7 +21300,7 @@ export interface operations {
|
|
|
21210
21300
|
};
|
|
21211
21301
|
header?: never;
|
|
21212
21302
|
path: {
|
|
21213
|
-
/** @description Failure group label (e.g. `checkout-api-500`) or ID
|
|
21303
|
+
/** @description Failure group label (e.g. `checkout-api-500`) or ID, resolved within the request's project. A label also resolves when the group had it before a rename or merge. */
|
|
21214
21304
|
id: string;
|
|
21215
21305
|
};
|
|
21216
21306
|
cookie?: never;
|
|
@@ -21242,7 +21332,7 @@ export interface operations {
|
|
|
21242
21332
|
query?: never;
|
|
21243
21333
|
header?: never;
|
|
21244
21334
|
path: {
|
|
21245
|
-
/** @description Failure group label (e.g. `checkout-api-500`) or ID
|
|
21335
|
+
/** @description Failure group label (e.g. `checkout-api-500`) or ID, resolved within the request's project. A label also resolves when the group had it before a rename or merge. */
|
|
21246
21336
|
id: string;
|
|
21247
21337
|
};
|
|
21248
21338
|
cookie?: never;
|
|
@@ -21287,7 +21377,7 @@ export interface operations {
|
|
|
21287
21377
|
query?: never;
|
|
21288
21378
|
header?: never;
|
|
21289
21379
|
path: {
|
|
21290
|
-
/** @description Failure group label (e.g. `checkout-api-500`) or ID
|
|
21380
|
+
/** @description Failure group label (e.g. `checkout-api-500`) or ID, resolved within the request's project. A label also resolves when the group had it before a rename or merge. */
|
|
21291
21381
|
id: string;
|
|
21292
21382
|
};
|
|
21293
21383
|
cookie?: never;
|
|
@@ -22599,12 +22689,100 @@ export interface operations {
|
|
|
22599
22689
|
};
|
|
22600
22690
|
};
|
|
22601
22691
|
};
|
|
22692
|
+
emailSendMessage: {
|
|
22693
|
+
parameters: {
|
|
22694
|
+
query?: never;
|
|
22695
|
+
header?: never;
|
|
22696
|
+
path?: never;
|
|
22697
|
+
cookie?: never;
|
|
22698
|
+
};
|
|
22699
|
+
requestBody?: {
|
|
22700
|
+
content: {
|
|
22701
|
+
"application/json": {
|
|
22702
|
+
/**
|
|
22703
|
+
* Format: uuid
|
|
22704
|
+
* @description Recipient Empirical user UUID. Must be a member of the project's org or an Empirical admin. Starts a new thread.
|
|
22705
|
+
*/
|
|
22706
|
+
user_id: string;
|
|
22707
|
+
/** @description Email subject. */
|
|
22708
|
+
subject: string;
|
|
22709
|
+
/** @description Message body in GitHub-flavored Markdown, sent as HTML with a plain-text fallback. A footer linking this session is appended, so do not add a sign-off or signature. */
|
|
22710
|
+
markdown: string;
|
|
22711
|
+
/** @description Unique per message for the sending session. A retry with the same key and body does not send twice. */
|
|
22712
|
+
idempotency_key: string;
|
|
22713
|
+
} | {
|
|
22714
|
+
/** @description Email thread to reply in. Replies to the thread are routed to the sending session. */
|
|
22715
|
+
email_thread_id: number;
|
|
22716
|
+
/** @description Message body in GitHub-flavored Markdown, sent as HTML with a plain-text fallback. A footer linking this session is appended, so do not add a sign-off or signature. */
|
|
22717
|
+
markdown: string;
|
|
22718
|
+
/** @description Unique per message for the sending session. A retry with the same key and body does not send twice. */
|
|
22719
|
+
idempotency_key: string;
|
|
22720
|
+
};
|
|
22721
|
+
};
|
|
22722
|
+
};
|
|
22723
|
+
responses: {
|
|
22724
|
+
/** @description Email sent. */
|
|
22725
|
+
200: {
|
|
22726
|
+
headers: {
|
|
22727
|
+
[name: string]: unknown;
|
|
22728
|
+
};
|
|
22729
|
+
content: {
|
|
22730
|
+
"application/json": components["schemas"]["EmailMessageResult"];
|
|
22731
|
+
};
|
|
22732
|
+
};
|
|
22733
|
+
/** @description Invalid request or recipient. */
|
|
22734
|
+
400: {
|
|
22735
|
+
headers: {
|
|
22736
|
+
[name: string]: unknown;
|
|
22737
|
+
};
|
|
22738
|
+
content: {
|
|
22739
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
22740
|
+
};
|
|
22741
|
+
};
|
|
22742
|
+
/** @description Sandbox authentication required. */
|
|
22743
|
+
403: {
|
|
22744
|
+
headers: {
|
|
22745
|
+
[name: string]: unknown;
|
|
22746
|
+
};
|
|
22747
|
+
content: {
|
|
22748
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
22749
|
+
};
|
|
22750
|
+
};
|
|
22751
|
+
/** @description Chat session or email thread not found. */
|
|
22752
|
+
404: {
|
|
22753
|
+
headers: {
|
|
22754
|
+
[name: string]: unknown;
|
|
22755
|
+
};
|
|
22756
|
+
content: {
|
|
22757
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
22758
|
+
};
|
|
22759
|
+
};
|
|
22760
|
+
/** @description Idempotency conflict. */
|
|
22761
|
+
409: {
|
|
22762
|
+
headers: {
|
|
22763
|
+
[name: string]: unknown;
|
|
22764
|
+
};
|
|
22765
|
+
content: {
|
|
22766
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
22767
|
+
};
|
|
22768
|
+
};
|
|
22769
|
+
/** @description Resend upstream error. */
|
|
22770
|
+
502: {
|
|
22771
|
+
headers: {
|
|
22772
|
+
[name: string]: unknown;
|
|
22773
|
+
};
|
|
22774
|
+
content: {
|
|
22775
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
22776
|
+
};
|
|
22777
|
+
};
|
|
22778
|
+
};
|
|
22779
|
+
};
|
|
22602
22780
|
checkFailureGroupMatcherOverlap: {
|
|
22603
22781
|
parameters: {
|
|
22604
22782
|
query?: never;
|
|
22605
22783
|
header?: never;
|
|
22606
22784
|
path: {
|
|
22607
|
-
/** @description Failure group label (e.g. `checkout-api-500`) or ID
|
|
22785
|
+
/** @description Failure group label (e.g. `checkout-api-500`) or ID, resolved within the request's project. A label also resolves when the group had it before a rename or merge. */
|
|
22608
22786
|
id: string;
|
|
22609
22787
|
};
|
|
22610
22788
|
cookie?: never;
|
|
@@ -23112,6 +23290,35 @@ export interface operations {
|
|
|
23112
23290
|
};
|
|
23113
23291
|
};
|
|
23114
23292
|
};
|
|
23293
|
+
initializeProjectRepo: {
|
|
23294
|
+
parameters: {
|
|
23295
|
+
query?: never;
|
|
23296
|
+
header?: never;
|
|
23297
|
+
path?: never;
|
|
23298
|
+
cookie?: never;
|
|
23299
|
+
};
|
|
23300
|
+
requestBody?: never;
|
|
23301
|
+
responses: {
|
|
23302
|
+
/** @description Repository state. */
|
|
23303
|
+
200: {
|
|
23304
|
+
headers: {
|
|
23305
|
+
[name: string]: unknown;
|
|
23306
|
+
};
|
|
23307
|
+
content: {
|
|
23308
|
+
"application/json": components["schemas"]["InitializeRepoResponse"];
|
|
23309
|
+
};
|
|
23310
|
+
};
|
|
23311
|
+
/** @description GitHub refused to create the initial commit. */
|
|
23312
|
+
502: {
|
|
23313
|
+
headers: {
|
|
23314
|
+
[name: string]: unknown;
|
|
23315
|
+
};
|
|
23316
|
+
content: {
|
|
23317
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
23318
|
+
};
|
|
23319
|
+
};
|
|
23320
|
+
};
|
|
23321
|
+
};
|
|
23115
23322
|
listRules: {
|
|
23116
23323
|
parameters: {
|
|
23117
23324
|
query?: {
|
|
@@ -24195,6 +24402,50 @@ export interface operations {
|
|
|
24195
24402
|
};
|
|
24196
24403
|
};
|
|
24197
24404
|
};
|
|
24405
|
+
getTestRunRuleMatching: {
|
|
24406
|
+
parameters: {
|
|
24407
|
+
query?: {
|
|
24408
|
+
/** @description Include each matcher's console output (default). Pass `false` for a smaller response. */
|
|
24409
|
+
include_logs?: "true" | "false";
|
|
24410
|
+
};
|
|
24411
|
+
header?: never;
|
|
24412
|
+
path: {
|
|
24413
|
+
/** @description Test run database ID. */
|
|
24414
|
+
id: number;
|
|
24415
|
+
};
|
|
24416
|
+
cookie?: never;
|
|
24417
|
+
};
|
|
24418
|
+
requestBody?: never;
|
|
24419
|
+
responses: {
|
|
24420
|
+
/** @description Rule matching for the run. */
|
|
24421
|
+
200: {
|
|
24422
|
+
headers: {
|
|
24423
|
+
[name: string]: unknown;
|
|
24424
|
+
};
|
|
24425
|
+
content: {
|
|
24426
|
+
"application/json": components["schemas"]["TestRunRuleMatchingResponse"];
|
|
24427
|
+
};
|
|
24428
|
+
};
|
|
24429
|
+
/** @description Invalid request. */
|
|
24430
|
+
400: {
|
|
24431
|
+
headers: {
|
|
24432
|
+
[name: string]: unknown;
|
|
24433
|
+
};
|
|
24434
|
+
content: {
|
|
24435
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24436
|
+
};
|
|
24437
|
+
};
|
|
24438
|
+
/** @description Test run not found. */
|
|
24439
|
+
404: {
|
|
24440
|
+
headers: {
|
|
24441
|
+
[name: string]: unknown;
|
|
24442
|
+
};
|
|
24443
|
+
content: {
|
|
24444
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
24445
|
+
};
|
|
24446
|
+
};
|
|
24447
|
+
};
|
|
24448
|
+
};
|
|
24198
24449
|
listActivity: {
|
|
24199
24450
|
parameters: {
|
|
24200
24451
|
query?: {
|
|
@@ -26658,6 +26909,53 @@ export interface operations {
|
|
|
26658
26909
|
};
|
|
26659
26910
|
};
|
|
26660
26911
|
};
|
|
26912
|
+
resendEmailWebhook: {
|
|
26913
|
+
parameters: {
|
|
26914
|
+
query?: never;
|
|
26915
|
+
header?: never;
|
|
26916
|
+
path?: never;
|
|
26917
|
+
cookie?: never;
|
|
26918
|
+
};
|
|
26919
|
+
requestBody?: {
|
|
26920
|
+
content: {
|
|
26921
|
+
"application/json": {
|
|
26922
|
+
/** @description Event type, e.g. "email.received". */
|
|
26923
|
+
type: string;
|
|
26924
|
+
/** @description Event payload. */
|
|
26925
|
+
data: {
|
|
26926
|
+
email_id?: string;
|
|
26927
|
+
from?: string;
|
|
26928
|
+
to?: string[];
|
|
26929
|
+
cc?: string[];
|
|
26930
|
+
received_for?: string[];
|
|
26931
|
+
message_id?: string;
|
|
26932
|
+
} & {
|
|
26933
|
+
[key: string]: unknown;
|
|
26934
|
+
};
|
|
26935
|
+
};
|
|
26936
|
+
};
|
|
26937
|
+
};
|
|
26938
|
+
responses: {
|
|
26939
|
+
/** @description Event acknowledged. */
|
|
26940
|
+
200: {
|
|
26941
|
+
headers: {
|
|
26942
|
+
[name: string]: unknown;
|
|
26943
|
+
};
|
|
26944
|
+
content: {
|
|
26945
|
+
"application/json": components["schemas"]["ResendWebhookAckResponse"];
|
|
26946
|
+
};
|
|
26947
|
+
};
|
|
26948
|
+
/** @description Missing or invalid webhook signature. */
|
|
26949
|
+
401: {
|
|
26950
|
+
headers: {
|
|
26951
|
+
[name: string]: unknown;
|
|
26952
|
+
};
|
|
26953
|
+
content: {
|
|
26954
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
26955
|
+
};
|
|
26956
|
+
};
|
|
26957
|
+
};
|
|
26958
|
+
};
|
|
26661
26959
|
listEnvironmentVariables: {
|
|
26662
26960
|
parameters: {
|
|
26663
26961
|
query?: never;
|
|
@@ -27522,6 +27820,15 @@ export interface operations {
|
|
|
27522
27820
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
27523
27821
|
};
|
|
27524
27822
|
};
|
|
27823
|
+
/** @description The installation is linked to another organisation. */
|
|
27824
|
+
409: {
|
|
27825
|
+
headers: {
|
|
27826
|
+
[name: string]: unknown;
|
|
27827
|
+
};
|
|
27828
|
+
content: {
|
|
27829
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
27830
|
+
};
|
|
27831
|
+
};
|
|
27525
27832
|
};
|
|
27526
27833
|
};
|
|
27527
27834
|
getMainInstallationMetadata: {
|
|
@@ -27988,6 +28295,15 @@ export interface operations {
|
|
|
27988
28295
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
27989
28296
|
};
|
|
27990
28297
|
};
|
|
28298
|
+
/** @description The installation is linked to another organisation. */
|
|
28299
|
+
409: {
|
|
28300
|
+
headers: {
|
|
28301
|
+
[name: string]: unknown;
|
|
28302
|
+
};
|
|
28303
|
+
content: {
|
|
28304
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
28305
|
+
};
|
|
28306
|
+
};
|
|
27991
28307
|
};
|
|
27992
28308
|
};
|
|
27993
28309
|
getReporterInstallationMetadata: {
|
|
@@ -32433,12 +32749,6 @@ export interface operations {
|
|
|
32433
32749
|
slug: string;
|
|
32434
32750
|
/** @description Repository name (without slashes). Defaults to `<slug>-tests`. */
|
|
32435
32751
|
repo_name?: string;
|
|
32436
|
-
/**
|
|
32437
|
-
* @description Repository host backing the project. A `github` repo is created in the Empirical org.
|
|
32438
|
-
* @default github
|
|
32439
|
-
* @enum {string}
|
|
32440
|
-
*/
|
|
32441
|
-
repo_host?: "github" | "pierre_code_storage";
|
|
32442
32752
|
};
|
|
32443
32753
|
};
|
|
32444
32754
|
};
|
|
@@ -33326,15 +33636,6 @@ export interface operations {
|
|
|
33326
33636
|
"application/json": components["schemas"]["ProjectCloneResponse"];
|
|
33327
33637
|
};
|
|
33328
33638
|
};
|
|
33329
|
-
/** @description Repository host is not supported. */
|
|
33330
|
-
400: {
|
|
33331
|
-
headers: {
|
|
33332
|
-
[name: string]: unknown;
|
|
33333
|
-
};
|
|
33334
|
-
content: {
|
|
33335
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
33336
|
-
};
|
|
33337
|
-
};
|
|
33338
33639
|
};
|
|
33339
33640
|
};
|
|
33340
33641
|
getProjectGitToken: {
|
|
@@ -33355,15 +33656,6 @@ export interface operations {
|
|
|
33355
33656
|
"application/json": components["schemas"]["ProjectGitTokenResponse"];
|
|
33356
33657
|
};
|
|
33357
33658
|
};
|
|
33358
|
-
/** @description Repository host is not supported. */
|
|
33359
|
-
400: {
|
|
33360
|
-
headers: {
|
|
33361
|
-
[name: string]: unknown;
|
|
33362
|
-
};
|
|
33363
|
-
content: {
|
|
33364
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
33365
|
-
};
|
|
33366
|
-
};
|
|
33367
33659
|
/** @description Not authorised to access the repository. */
|
|
33368
33660
|
403: {
|
|
33369
33661
|
headers: {
|