@empiricalrun/playwright-utils 0.69.1 → 0.70.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.
@@ -424,7 +424,7 @@ export interface paths {
424
424
  };
425
425
  /**
426
426
  * ⚙️ Get test case durations for shard planning
427
- * @description Returns the run's project's 7-day and last-day average duration per test case (skipped results excluded), keyed by the normalized 41-char Playwright test id, addressed by the run's external run_id. Used by the `run_setup` container to pack a shard plan: the analytics token is account-scoped and cannot be handed to a sandbox running customer test code, so the api-worker holds it and serves the numbers. Project-wide rather than per-run — the container filters to the tests it listed. A project with no history returns an empty object; a broken analytics query returns 503, so the container can tell the two apart and fall back rather than plan off nothing.
427
+ * @description Returns the 7-day and last-day average duration per test case in the run's project and environment (project-wide when the run has no environment; skipped results excluded), keyed by the normalized 41-char Playwright test id, addressed by the run's external run_id. Used by the `run_setup` container to pack a shard plan: the analytics token is account-scoped and cannot be handed to a sandbox running customer test code, so the api-worker holds it and serves the numbers. Not filtered to the run's tests — the container filters to the tests it listed. An environment with no history returns an empty object; a broken analytics query returns 503, so the container can tell the two apart and fall back rather than plan off nothing.
428
428
  */
429
429
  get: operations["getTestRunTestCaseDurations"];
430
430
  put?: never;
@@ -1394,6 +1394,94 @@ export interface paths {
1394
1394
  patch?: never;
1395
1395
  trace?: never;
1396
1396
  };
1397
+ "/api/allowed-recipients": {
1398
+ parameters: {
1399
+ query?: never;
1400
+ header?: never;
1401
+ path?: never;
1402
+ cookie?: never;
1403
+ };
1404
+ /**
1405
+ * List allowed recipients
1406
+ * @description Returns the scoped project's allowed domains and addresses. Pending ones are checked for a verification email first.
1407
+ */
1408
+ get: operations["listAllowedRecipients"];
1409
+ put?: never;
1410
+ /**
1411
+ * Add an allowed recipient
1412
+ * @description Adds a domain or an address and returns its verification address and code. Then send an email from it to the verification address with the code in the subject, or, for an address, request an emailed code. Adding one the project already has returns it, and renews an expired verification.
1413
+ */
1414
+ post: operations["addAllowedRecipient"];
1415
+ delete?: never;
1416
+ options?: never;
1417
+ head?: never;
1418
+ patch?: never;
1419
+ trace?: never;
1420
+ };
1421
+ "/api/allowed-recipients/{id}": {
1422
+ parameters: {
1423
+ query?: never;
1424
+ header?: never;
1425
+ path?: never;
1426
+ cookie?: never;
1427
+ };
1428
+ /**
1429
+ * Get an allowed recipient
1430
+ * @description Returns an allowed recipient. While pending, it checks for the verification email and explains why the latest one didn't count. Poll it after sending the email.
1431
+ */
1432
+ get: operations["getAllowedRecipient"];
1433
+ put?: never;
1434
+ post?: never;
1435
+ /**
1436
+ * Remove an allowed recipient
1437
+ * @description Removes the domain or address. Later sends to it are refused.
1438
+ */
1439
+ delete: operations["deleteAllowedRecipient"];
1440
+ options?: never;
1441
+ head?: never;
1442
+ patch?: never;
1443
+ trace?: never;
1444
+ };
1445
+ "/api/allowed-recipients/{id}/confirm": {
1446
+ parameters: {
1447
+ query?: never;
1448
+ header?: never;
1449
+ path?: never;
1450
+ cookie?: never;
1451
+ };
1452
+ get?: never;
1453
+ put?: never;
1454
+ /**
1455
+ * Confirm an emailed code
1456
+ * @description Verifies an address with the code it received. After 5 wrong codes, request a new one.
1457
+ */
1458
+ post: operations["confirmAllowedRecipientCode"];
1459
+ delete?: never;
1460
+ options?: never;
1461
+ head?: never;
1462
+ patch?: never;
1463
+ trace?: never;
1464
+ };
1465
+ "/api/allowed-recipients/{id}/send-code": {
1466
+ parameters: {
1467
+ query?: never;
1468
+ header?: never;
1469
+ path?: never;
1470
+ cookie?: never;
1471
+ };
1472
+ get?: never;
1473
+ put?: never;
1474
+ /**
1475
+ * Email a verification code
1476
+ * @description For an address that can't send email: emails it a 6-digit code from verify@empiricalrun.email, valid for one hour. Enter it with `confirm`. Each project can send 5 codes per 24 hours, and each address gets at most 3.
1477
+ */
1478
+ post: operations["sendAllowedRecipientCode"];
1479
+ delete?: never;
1480
+ options?: never;
1481
+ head?: never;
1482
+ patch?: never;
1483
+ trace?: never;
1484
+ };
1397
1485
  "/api/badges/projects/{project_slug}/environments/{environment_slug}": {
1398
1486
  parameters: {
1399
1487
  query?: never;
@@ -1477,7 +1565,7 @@ export interface paths {
1477
1565
  put?: never;
1478
1566
  /**
1479
1567
  * Claim an inbox
1480
- * @description Claims a new @empiricalrun.email address for the scoped project. The address is `name` plus a random suffix, so it is unique to this project.
1568
+ * @description Claims a new @empiricalrun.email address for the scoped project. The address is `prefix` plus a random suffix, so it is unique to this project.
1481
1569
  */
1482
1570
  post: operations["claimInbox"];
1483
1571
  delete?: never;
@@ -1550,6 +1638,26 @@ export interface paths {
1550
1638
  patch?: never;
1551
1639
  trace?: never;
1552
1640
  };
1641
+ "/api/inboxes/send": {
1642
+ parameters: {
1643
+ query?: never;
1644
+ header?: never;
1645
+ path?: never;
1646
+ cookie?: never;
1647
+ };
1648
+ get?: never;
1649
+ put?: never;
1650
+ /**
1651
+ * Send an email
1652
+ * @description Sends an email from an @empiricalrun.email address, with optional attachments. Each recipient must be an @empiricalrun.email address, someone who emailed the sender (with DMARC passing), or one of the project's allowed recipients (see Allowed recipients). Use it to test apps that receive email (reply-by-email, email-to-ticket, forwarding). Replies arrive in the sender's inbox; read them with `listAddressMessages`. Limits: 5 recipients and 5 attachments (5 MiB in total) per email; 10 emails per minute and 100 per rolling 24 hours per project. Emails whose recipients are all @empiricalrun.email addresses have separate, higher limits: 60 per minute and 1000 per rolling 24 hours. Over a limit the request fails with 429.
1653
+ */
1654
+ post: operations["sendInboxMessage"];
1655
+ delete?: never;
1656
+ options?: never;
1657
+ head?: never;
1658
+ patch?: never;
1659
+ trace?: never;
1660
+ };
1553
1661
  "/api/infra/static-ips": {
1554
1662
  parameters: {
1555
1663
  query?: never;
@@ -4046,6 +4154,26 @@ export interface paths {
4046
4154
  patch?: never;
4047
4155
  trace?: never;
4048
4156
  };
4157
+ "/api/growth-alerts/slack/interactions": {
4158
+ parameters: {
4159
+ query?: never;
4160
+ header?: never;
4161
+ path?: never;
4162
+ cookie?: never;
4163
+ };
4164
+ get?: never;
4165
+ put?: never;
4166
+ /**
4167
+ * Growth alerts Slack interactions
4168
+ * @description Receives button clicks on Growth alerts messages from Slack (verified by the Growth alerts app's request signature). Only the Empirical workspace may act.
4169
+ */
4170
+ post: operations["growthAlertsSlackInteractions"];
4171
+ delete?: never;
4172
+ options?: never;
4173
+ head?: never;
4174
+ patch?: never;
4175
+ trace?: never;
4176
+ };
4049
4177
  "/api/hive/agents": {
4050
4178
  parameters: {
4051
4179
  query?: never;
@@ -7000,14 +7128,26 @@ export interface components {
7000
7128
  * @description The session's latest state, or what last happened to one of its pull requests. A session with pull requests appears once per pull request.
7001
7129
  * @enum {string}
7002
7130
  */
7003
- action: "created" | "closed" | "pr_opened" | "pr_reopened" | "pr_merged" | "pr_closed";
7131
+ action: "created" | "messaged" | "closed" | "pr_opened" | "pr_reopened" | "pr_merged" | "pr_closed";
7004
7132
  chat_session: {
7005
7133
  id: number;
7006
7134
  title: string | null;
7135
+ created_by: {
7136
+ id: string;
7137
+ name: string;
7138
+ picture: string | null;
7139
+ } | null;
7140
+ /** @description The session that delegated this one, when it runs as an executor. */
7141
+ delegated_by: {
7142
+ id: number;
7143
+ title: string | null;
7144
+ is_manager: boolean;
7145
+ } | null;
7007
7146
  };
7008
7147
  pull_request: {
7009
7148
  number: number;
7010
7149
  url: string | null;
7150
+ title: string | null;
7011
7151
  } | null;
7012
7152
  } | {
7013
7153
  id: string;
@@ -7024,6 +7164,7 @@ export interface components {
7024
7164
  pull_request: {
7025
7165
  number: number;
7026
7166
  url: string | null;
7167
+ title: string | null;
7027
7168
  repo: string;
7028
7169
  head_branch: string;
7029
7170
  };
@@ -7044,6 +7185,11 @@ export interface components {
7044
7185
  title: string;
7045
7186
  source: string;
7046
7187
  status: string;
7188
+ /** @description Sessions linked to the task, oldest first. */
7189
+ sessions: {
7190
+ id: number;
7191
+ title: string | null;
7192
+ }[];
7047
7193
  };
7048
7194
  } | {
7049
7195
  id: string;
@@ -7072,6 +7218,18 @@ export interface components {
7072
7218
  next_cursor: string | null;
7073
7219
  };
7074
7220
  };
7221
+ AddAllowedRecipientRequest: {
7222
+ /**
7223
+ * @description Domain to allow, e.g. `acme.com` or `inbound.acme.com`.
7224
+ * @example acme.com
7225
+ */
7226
+ domain?: string;
7227
+ /**
7228
+ * Format: email
7229
+ * @description Address to allow, e.g. `support@acme.zendesk.com`.
7230
+ */
7231
+ address?: string;
7232
+ };
7075
7233
  AddSnoozeTestCasesRequest: {
7076
7234
  /** @description Test case IDs to add to the snooze. */
7077
7235
  test_case_ids: string[];
@@ -7087,6 +7245,66 @@ export interface components {
7087
7245
  wake_at: string;
7088
7246
  };
7089
7247
  };
7248
+ AllowedRecipient: {
7249
+ /** @description Allowed recipient ID. */
7250
+ id: number;
7251
+ /**
7252
+ * @description Whether this allows a whole domain or one address.
7253
+ * @enum {string}
7254
+ */
7255
+ kind: "domain" | "address";
7256
+ /** @description The domain (exact match), or the address without any `+tag`. */
7257
+ value: string;
7258
+ /**
7259
+ * @description `pending` until verified, `expired` when verification didn't finish within 7 days. Add it again to renew.
7260
+ * @enum {string}
7261
+ */
7262
+ status: "pending" | "verified" | "expired";
7263
+ /** @description Address to send the verification email to. Null once verified. */
7264
+ verification_address: string | null;
7265
+ /** @description Code the verification email's subject must contain. Null once verified. */
7266
+ verification_code: string | null;
7267
+ /** @description ISO 8601 time the pending verification expires. Null once verified. */
7268
+ expires_at: string | null;
7269
+ /** @description ISO 8601 time the emailed 6-digit code expires, if one was sent and the recipient isn't verified yet. */
7270
+ code_expires_at: string | null;
7271
+ /** @description ISO 8601 verification time. */
7272
+ verified_at: string | null;
7273
+ /**
7274
+ * @description `email` when verified by an email from it, `code` when verified with an emailed code.
7275
+ * @enum {string|null}
7276
+ */
7277
+ verified_via: "email" | "code" | null;
7278
+ /** @description Sender of the verification email, when verified by email. */
7279
+ verified_by: string | null;
7280
+ /** @description Why the latest email to the verification address didn't verify it, if one arrived. */
7281
+ last_rejection: string | null;
7282
+ /** @description ISO 8601 time it was added. */
7283
+ created_at: string;
7284
+ };
7285
+ AllowedRecipientDeleteResponse: {
7286
+ /** @description Response payload. */
7287
+ data: {
7288
+ /**
7289
+ * @description Always true on success.
7290
+ * @enum {boolean}
7291
+ */
7292
+ success: true;
7293
+ };
7294
+ };
7295
+ AllowedRecipientListResponse: {
7296
+ /** @description Response payload. */
7297
+ data: {
7298
+ /** @description The project's allowed recipients. */
7299
+ recipients: components["schemas"]["AllowedRecipient"][];
7300
+ };
7301
+ };
7302
+ AllowedRecipientResponse: {
7303
+ /** @description Response payload. */
7304
+ data: {
7305
+ recipient: components["schemas"]["AllowedRecipient"];
7306
+ };
7307
+ };
7090
7308
  AnalyticsDaily: {
7091
7309
  /** @description Date in YYYY-MM-DD format. */
7092
7310
  date: string;
@@ -8009,6 +8227,10 @@ export interface components {
8009
8227
  /** @description GitHub compare URL. */
8010
8228
  comparison_url: string;
8011
8229
  };
8230
+ ConfirmAllowedRecipientCodeRequest: {
8231
+ /** @description The 6-digit code from the email. */
8232
+ code: string;
8233
+ };
8012
8234
  ConnectedGithubAccount: {
8013
8235
  /** @description GitHub numeric user ID. */
8014
8236
  user_id: string;
@@ -10272,6 +10494,12 @@ export interface components {
10272
10494
  /** @description ISO 8601 claim time. Messages received before it are not shown. */
10273
10495
  created_at: string;
10274
10496
  };
10497
+ InboxAttachment: {
10498
+ /** @description File name shown to the recipient. Its extension sets the type and must be one of: csv, doc, docx, eml, gif, heic, ics, jpeg, jpg, json, md, odp, ods, odt, pdf, png, ppt, pptx, tsv, txt, webp, xls, xlsx, xml. */
10499
+ filename: string;
10500
+ /** @description File contents, base64-encoded. */
10501
+ content: string;
10502
+ };
10275
10503
  InboxDeleteResponse: {
10276
10504
  /** @description Response payload. */
10277
10505
  data: {
@@ -10304,6 +10532,15 @@ export interface components {
10304
10532
  html_body: string | null;
10305
10533
  /** @description ISO 8601 time the message arrived. */
10306
10534
  received_at: string;
10535
+ /** @description The email's Message-ID header. Pass it as `in_reply_to` to reply in the same thread. */
10536
+ message_id: string | null;
10537
+ /** @description Address in the email's From header. `from_address` is the envelope sender, often a provider's bounce address. */
10538
+ header_from_address: string | null;
10539
+ /**
10540
+ * @description DMARC result Cloudflare recorded on arrival. Null for mail captured through the SMTP relay.
10541
+ * @enum {string|null}
10542
+ */
10543
+ dmarc: "pass" | "fail" | "none" | null;
10307
10544
  /** @description Links found in the body, such as magic links. */
10308
10545
  links: {
10309
10546
  /** @description Link target. */
@@ -12424,13 +12661,13 @@ export interface components {
12424
12661
  /** @description Generated block content. */
12425
12662
  content: string;
12426
12663
  /**
12427
- * @description Generator that produced the block.
12664
+ * @description Generator that produced the block. "project_settings" blocks are read from the project when a session starts.
12428
12665
  * @enum {string}
12429
12666
  */
12430
- generator: "environments" | "remote_url";
12431
- /** @description Commit the block was generated from. */
12667
+ generator: "environments" | "project_settings";
12668
+ /** @description Commit the block was generated from, null for live blocks. */
12432
12669
  source_sha: string | null;
12433
- /** @description When the block was last generated. */
12670
+ /** @description When the block was last generated, or the current time for live blocks. */
12434
12671
  generated_at: string;
12435
12672
  };
12436
12673
  ProjectBlocksResponse: {
@@ -13553,6 +13790,46 @@ export interface components {
13553
13790
  /** @description The requested channels the caller may subscribe to. Channels left out are unknown, for another environment, or not accessible. */
13554
13791
  channels: string[];
13555
13792
  };
13793
+ SendInboxMessageRequest: {
13794
+ /**
13795
+ * Format: email
13796
+ * @description Sender, an @empiricalrun.email address that is unclaimed or claimed by this project. Replies arrive in its inbox.
13797
+ * @example support-sender-k3f9@empiricalrun.email
13798
+ */
13799
+ from: string;
13800
+ /** @description Recipients. Each must be an @empiricalrun.email address, someone who emailed the sender, or one of the project's allowed recipients. */
13801
+ to: string[];
13802
+ /** @description CC recipients. */
13803
+ cc?: string[];
13804
+ /** @description BCC recipients. */
13805
+ bcc?: string[];
13806
+ /**
13807
+ * Format: email
13808
+ * @description Reply-To address, if not `from`. Must be an @empiricalrun.email address.
13809
+ */
13810
+ reply_to?: string;
13811
+ /** @description Subject line. */
13812
+ subject: string;
13813
+ /** @description Plain-text body. */
13814
+ text?: string;
13815
+ /** @description HTML body. */
13816
+ html?: string;
13817
+ /** @description `message_id` of the email this replies to. Sets In-Reply-To and References so the reply threads. */
13818
+ in_reply_to?: string;
13819
+ /** @description Full References chain, oldest first. Defaults to `in_reply_to`. */
13820
+ references?: string[];
13821
+ /** @description Up to 5 files, 5 MiB in total. */
13822
+ attachments?: components["schemas"]["InboxAttachment"][];
13823
+ };
13824
+ SendInboxMessageResponse: {
13825
+ /** @description Response payload. */
13826
+ data: {
13827
+ /** @description Message-ID of the sent email. Replies to it carry it in In-Reply-To. */
13828
+ message_id: string;
13829
+ /** @description ISO 8601 send time. */
13830
+ sent_at: string;
13831
+ };
13832
+ };
13556
13833
  SendInvoiceResponse: {
13557
13834
  /** @description Human-readable confirmation message. */
13558
13835
  message: string;
@@ -16026,6 +16303,10 @@ export interface components {
16026
16303
  avg_duration_total: number;
16027
16304
  /** @description Mean total duration over the last day, in ms; null without recent results. */
16028
16305
  recent_avg_duration_total?: number | null;
16306
+ /** @description Sample-weighted 75th percentile of total duration over the window, in ms. */
16307
+ p75_duration_total?: number;
16308
+ /** @description Sample-weighted 75th percentile of total duration over the last day, in ms; null without recent results. */
16309
+ recent_p75_duration_total?: number | null;
16029
16310
  /** @description Results the average was taken over. */
16030
16311
  total_runs: number;
16031
16312
  };
@@ -21085,6 +21366,254 @@ export interface operations {
21085
21366
  };
21086
21367
  };
21087
21368
  };
21369
+ listAllowedRecipients: {
21370
+ parameters: {
21371
+ query?: never;
21372
+ header?: never;
21373
+ path?: never;
21374
+ cookie?: never;
21375
+ };
21376
+ requestBody?: never;
21377
+ responses: {
21378
+ /** @description The project's allowed recipients. */
21379
+ 200: {
21380
+ headers: {
21381
+ [name: string]: unknown;
21382
+ };
21383
+ content: {
21384
+ "application/json": components["schemas"]["AllowedRecipientListResponse"];
21385
+ };
21386
+ };
21387
+ };
21388
+ };
21389
+ addAllowedRecipient: {
21390
+ parameters: {
21391
+ query?: never;
21392
+ header?: never;
21393
+ path?: never;
21394
+ cookie?: never;
21395
+ };
21396
+ requestBody?: {
21397
+ content: {
21398
+ "application/json": components["schemas"]["AddAllowedRecipientRequest"];
21399
+ };
21400
+ };
21401
+ responses: {
21402
+ /** @description The project already had this recipient. */
21403
+ 200: {
21404
+ headers: {
21405
+ [name: string]: unknown;
21406
+ };
21407
+ content: {
21408
+ "application/json": components["schemas"]["AllowedRecipientResponse"];
21409
+ };
21410
+ };
21411
+ /** @description The recipient was added. */
21412
+ 201: {
21413
+ headers: {
21414
+ [name: string]: unknown;
21415
+ };
21416
+ content: {
21417
+ "application/json": components["schemas"]["AllowedRecipientResponse"];
21418
+ };
21419
+ };
21420
+ /** @description Invalid domain or address, or one that can't be added. */
21421
+ 400: {
21422
+ headers: {
21423
+ [name: string]: unknown;
21424
+ };
21425
+ content: {
21426
+ "application/json": components["schemas"]["ErrorResponse"];
21427
+ };
21428
+ };
21429
+ };
21430
+ };
21431
+ getAllowedRecipient: {
21432
+ parameters: {
21433
+ query?: never;
21434
+ header?: never;
21435
+ path: {
21436
+ /** @description Allowed recipient ID. */
21437
+ id: number;
21438
+ };
21439
+ cookie?: never;
21440
+ };
21441
+ requestBody?: never;
21442
+ responses: {
21443
+ /** @description The allowed recipient. */
21444
+ 200: {
21445
+ headers: {
21446
+ [name: string]: unknown;
21447
+ };
21448
+ content: {
21449
+ "application/json": components["schemas"]["AllowedRecipientResponse"];
21450
+ };
21451
+ };
21452
+ /** @description Allowed recipient not found. */
21453
+ 404: {
21454
+ headers: {
21455
+ [name: string]: unknown;
21456
+ };
21457
+ content: {
21458
+ "application/json": components["schemas"]["ErrorResponse"];
21459
+ };
21460
+ };
21461
+ };
21462
+ };
21463
+ deleteAllowedRecipient: {
21464
+ parameters: {
21465
+ query?: never;
21466
+ header?: never;
21467
+ path: {
21468
+ /** @description Allowed recipient ID. */
21469
+ id: number;
21470
+ };
21471
+ cookie?: never;
21472
+ };
21473
+ requestBody?: never;
21474
+ responses: {
21475
+ /** @description The recipient was removed. */
21476
+ 200: {
21477
+ headers: {
21478
+ [name: string]: unknown;
21479
+ };
21480
+ content: {
21481
+ "application/json": components["schemas"]["AllowedRecipientDeleteResponse"];
21482
+ };
21483
+ };
21484
+ /** @description Allowed recipient not found. */
21485
+ 404: {
21486
+ headers: {
21487
+ [name: string]: unknown;
21488
+ };
21489
+ content: {
21490
+ "application/json": components["schemas"]["ErrorResponse"];
21491
+ };
21492
+ };
21493
+ };
21494
+ };
21495
+ confirmAllowedRecipientCode: {
21496
+ parameters: {
21497
+ query?: never;
21498
+ header?: never;
21499
+ path: {
21500
+ /** @description Allowed recipient ID. */
21501
+ id: number;
21502
+ };
21503
+ cookie?: never;
21504
+ };
21505
+ requestBody?: {
21506
+ content: {
21507
+ "application/json": components["schemas"]["ConfirmAllowedRecipientCodeRequest"];
21508
+ };
21509
+ };
21510
+ responses: {
21511
+ /** @description The address is verified. */
21512
+ 200: {
21513
+ headers: {
21514
+ [name: string]: unknown;
21515
+ };
21516
+ content: {
21517
+ "application/json": components["schemas"]["AllowedRecipientResponse"];
21518
+ };
21519
+ };
21520
+ /** @description Wrong, expired or missing code. */
21521
+ 400: {
21522
+ headers: {
21523
+ [name: string]: unknown;
21524
+ };
21525
+ content: {
21526
+ "application/json": components["schemas"]["ErrorResponse"];
21527
+ };
21528
+ };
21529
+ /** @description Allowed recipient not found. */
21530
+ 404: {
21531
+ headers: {
21532
+ [name: string]: unknown;
21533
+ };
21534
+ content: {
21535
+ "application/json": components["schemas"]["ErrorResponse"];
21536
+ };
21537
+ };
21538
+ /** @description Too many wrong codes. */
21539
+ 429: {
21540
+ headers: {
21541
+ [name: string]: unknown;
21542
+ };
21543
+ content: {
21544
+ "application/json": components["schemas"]["ErrorResponse"];
21545
+ };
21546
+ };
21547
+ };
21548
+ };
21549
+ sendAllowedRecipientCode: {
21550
+ parameters: {
21551
+ query?: never;
21552
+ header?: never;
21553
+ path: {
21554
+ /** @description Allowed recipient ID. */
21555
+ id: number;
21556
+ };
21557
+ cookie?: never;
21558
+ };
21559
+ requestBody?: never;
21560
+ responses: {
21561
+ /** @description A code was sent. */
21562
+ 200: {
21563
+ headers: {
21564
+ [name: string]: unknown;
21565
+ };
21566
+ content: {
21567
+ "application/json": components["schemas"]["AllowedRecipientResponse"];
21568
+ };
21569
+ };
21570
+ /** @description Codes only verify addresses. */
21571
+ 400: {
21572
+ headers: {
21573
+ [name: string]: unknown;
21574
+ };
21575
+ content: {
21576
+ "application/json": components["schemas"]["ErrorResponse"];
21577
+ };
21578
+ };
21579
+ /** @description Allowed recipient not found. */
21580
+ 404: {
21581
+ headers: {
21582
+ [name: string]: unknown;
21583
+ };
21584
+ content: {
21585
+ "application/json": components["schemas"]["ErrorResponse"];
21586
+ };
21587
+ };
21588
+ /** @description Too many codes sent, or sending is paused. */
21589
+ 429: {
21590
+ headers: {
21591
+ [name: string]: unknown;
21592
+ };
21593
+ content: {
21594
+ "application/json": components["schemas"]["ErrorResponse"];
21595
+ };
21596
+ };
21597
+ /** @description The inbox service is not configured. */
21598
+ 500: {
21599
+ headers: {
21600
+ [name: string]: unknown;
21601
+ };
21602
+ content: {
21603
+ "application/json": components["schemas"]["ErrorResponse"];
21604
+ };
21605
+ };
21606
+ /** @description The code email could not be sent. */
21607
+ 502: {
21608
+ headers: {
21609
+ [name: string]: unknown;
21610
+ };
21611
+ content: {
21612
+ "application/json": components["schemas"]["ErrorResponse"];
21613
+ };
21614
+ };
21615
+ };
21616
+ };
21088
21617
  getEnvironmentBadge: {
21089
21618
  parameters: {
21090
21619
  query?: {
@@ -21530,6 +22059,75 @@ export interface operations {
21530
22059
  };
21531
22060
  };
21532
22061
  };
22062
+ sendInboxMessage: {
22063
+ parameters: {
22064
+ query?: never;
22065
+ header?: never;
22066
+ path?: never;
22067
+ cookie?: never;
22068
+ };
22069
+ requestBody?: {
22070
+ content: {
22071
+ "application/json": components["schemas"]["SendInboxMessageRequest"];
22072
+ };
22073
+ };
22074
+ responses: {
22075
+ /** @description The email was accepted for delivery. */
22076
+ 201: {
22077
+ headers: {
22078
+ [name: string]: unknown;
22079
+ };
22080
+ content: {
22081
+ "application/json": components["schemas"]["SendInboxMessageResponse"];
22082
+ };
22083
+ };
22084
+ /** @description Invalid request. */
22085
+ 400: {
22086
+ headers: {
22087
+ [name: string]: unknown;
22088
+ };
22089
+ content: {
22090
+ "application/json": components["schemas"]["ErrorResponse"];
22091
+ };
22092
+ };
22093
+ /** @description The sender or a recipient is not allowed, or sending is paused for this project. */
22094
+ 403: {
22095
+ headers: {
22096
+ [name: string]: unknown;
22097
+ };
22098
+ content: {
22099
+ "application/json": components["schemas"]["ErrorResponse"];
22100
+ };
22101
+ };
22102
+ /** @description A send rate limit was reached. */
22103
+ 429: {
22104
+ headers: {
22105
+ [name: string]: unknown;
22106
+ };
22107
+ content: {
22108
+ "application/json": components["schemas"]["ErrorResponse"];
22109
+ };
22110
+ };
22111
+ /** @description The inbox service is not configured. */
22112
+ 500: {
22113
+ headers: {
22114
+ [name: string]: unknown;
22115
+ };
22116
+ content: {
22117
+ "application/json": components["schemas"]["ErrorResponse"];
22118
+ };
22119
+ };
22120
+ /** @description The email provider rejected the email. */
22121
+ 502: {
22122
+ headers: {
22123
+ [name: string]: unknown;
22124
+ };
22125
+ content: {
22126
+ "application/json": components["schemas"]["ErrorResponse"];
22127
+ };
22128
+ };
22129
+ };
22130
+ };
21533
22131
  getStaticIps: {
21534
22132
  parameters: {
21535
22133
  query: {
@@ -24733,7 +25331,8 @@ export interface operations {
24733
25331
  requestBody?: {
24734
25332
  content: {
24735
25333
  "application/json": {
24736
- message?: string | null;
25334
+ /** @description First message for the agent. Required: a session without one never starts. */
25335
+ message: string;
24737
25336
  /** @description Hive agent to run, as `<name>` (its `@latest` version) or `<name>@<version>`, e.g. `main-worker@2`. Defaults to `main-worker`. Rejected with a 400 when Hive does not serve that agent or version. The agent version decides the model, tools and prompt; `model` still overrides its model. List agents with `GET /api/hive/agents`. */
24738
25337
  agent?: string | null;
24739
25338
  /**
@@ -25499,7 +26098,7 @@ export interface operations {
25499
26098
  "application/json": components["schemas"]["ErrorResponse"];
25500
26099
  };
25501
26100
  };
25502
- /** @description Manager changed or was already handed off */
26101
+ /** @description Manager changed, was already handed off, or manager handoff is off */
25503
26102
  409: {
25504
26103
  headers: {
25505
26104
  [name: string]: unknown;
@@ -25546,7 +26145,7 @@ export interface operations {
25546
26145
  "application/json": components["schemas"]["ErrorResponse"];
25547
26146
  };
25548
26147
  };
25549
- /** @description Session is not an open manager */
26148
+ /** @description Session is not an open manager, or manager handoff is off */
25550
26149
  409: {
25551
26150
  headers: {
25552
26151
  [name: string]: unknown;
@@ -28489,6 +29088,61 @@ export interface operations {
28489
29088
  };
28490
29089
  };
28491
29090
  };
29091
+ growthAlertsSlackInteractions: {
29092
+ parameters: {
29093
+ query?: never;
29094
+ header?: never;
29095
+ path?: never;
29096
+ cookie?: never;
29097
+ };
29098
+ requestBody?: {
29099
+ content: {
29100
+ "application/x-www-form-urlencoded": {
29101
+ payload: string;
29102
+ };
29103
+ };
29104
+ };
29105
+ responses: {
29106
+ /** @description Interaction accepted. */
29107
+ 200: {
29108
+ headers: {
29109
+ [name: string]: unknown;
29110
+ };
29111
+ content: {
29112
+ "application/json": {
29113
+ ok: boolean;
29114
+ };
29115
+ };
29116
+ };
29117
+ /** @description Unknown or malformed interaction. */
29118
+ 400: {
29119
+ headers: {
29120
+ [name: string]: unknown;
29121
+ };
29122
+ content: {
29123
+ "application/json": components["schemas"]["ErrorResponse"];
29124
+ };
29125
+ };
29126
+ /** @description Invalid Slack signature. */
29127
+ 401: {
29128
+ headers: {
29129
+ [name: string]: unknown;
29130
+ };
29131
+ content: {
29132
+ "application/json": components["schemas"]["ErrorResponse"];
29133
+ };
29134
+ };
29135
+ /** @description The interaction came from another Slack workspace. */
29136
+ 403: {
29137
+ headers: {
29138
+ [name: string]: unknown;
29139
+ };
29140
+ content: {
29141
+ "application/json": components["schemas"]["ErrorResponse"];
29142
+ };
29143
+ };
29144
+ };
29145
+ };
28492
29146
  listHiveAgents: {
28493
29147
  parameters: {
28494
29148
  query?: never;
@@ -31733,6 +32387,15 @@ export interface operations {
31733
32387
  "application/json": components["schemas"]["ErrorResponse"];
31734
32388
  };
31735
32389
  };
32390
+ /** @description An email domain could not be verified right now. */
32391
+ 503: {
32392
+ headers: {
32393
+ [name: string]: unknown;
32394
+ };
32395
+ content: {
32396
+ "application/json": components["schemas"]["ErrorResponse"];
32397
+ };
32398
+ };
31736
32399
  };
31737
32400
  };
31738
32401
  listOrgInvites: {