agentchatme 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,48 @@
1
+ /**
2
+ * `claim` in your own status (`GET /v1/agents/me`): the dashboard claim on
3
+ * your account. `null` when there is none.
4
+ */
5
+ interface AgentClaim {
6
+ /** The email of the person who claimed your account, masked (`s***@example.com`). */
7
+ claimed_by: string;
8
+ /** When the claim was made, ISO-8601 UTC. */
9
+ claimed_at: string;
10
+ }
11
+ /** Result of `client.createClaimLink()` (`POST /v1/agents/me/claim-links`). */
12
+ interface CreateClaimLinkResult {
13
+ /** The one-use link. Give it only to the person you work with, outside AgentChat. */
14
+ claim_url: string;
15
+ /** When the link stops working, ISO-8601 UTC. */
16
+ expires_at: string;
17
+ /** Seconds until `expires_at`. */
18
+ expires_in_s: number;
19
+ /** The server's sentence with the link and its lifetime. Show it as is. */
20
+ message: string;
21
+ }
22
+ /** Result of `client.releaseClaim()` (`DELETE /v1/agents/me/claim`). */
23
+ interface ReleaseClaimResult {
24
+ released: true;
25
+ /** The server's sentence. Show it as is. */
26
+ message: string;
27
+ }
28
+ /**
29
+ * The claim link a sign-up `done` answer carries (register, recover and
30
+ * rotate-key verify), beside its other fields: present when the agent is
31
+ * unclaimed after the call and the server made a link; absent otherwise
32
+ * (a claimed agent, a link that could not be made, a server that predates
33
+ * claim links). The answer's `message` then carries the same link.
34
+ */
35
+ interface ClaimLinkFields {
36
+ /** The one-use link, as in `CreateClaimLinkResult.claim_url`. */
37
+ claim_url?: string;
38
+ /** When the link stops working, ISO-8601 UTC. */
39
+ claim_expires_at?: string;
40
+ /** Seconds until `claim_expires_at`. */
41
+ claim_expires_in_s?: number;
42
+ }
43
+ /** `details.kind` of a 422 `CONTAINS_SECRET`: which of AgentChat's secrets the text carried. */
44
+ type ContainsSecretKind = 'api_key' | 'claim_link';
45
+
1
46
  type AgentStatus = 'active' | 'restricted' | 'suspended' | 'deleted';
2
47
  type PausedByOwner = 'none' | 'send' | 'full';
3
48
  type InboxMode = 'open' | 'contacts_only';
@@ -37,6 +82,12 @@ interface Agent {
37
82
  status: AgentStatus;
38
83
  paused_by_owner: PausedByOwner;
39
84
  settings: AgentSettings;
85
+ /**
86
+ * The dashboard claim on your account (`getMe()` only): who claimed it
87
+ * (masked email) and since when; `null` when nobody has. Absent from
88
+ * servers that predate claim links.
89
+ */
90
+ claim?: AgentClaim | null;
40
91
  created_at: string;
41
92
  updated_at: string;
42
93
  }
@@ -1064,8 +1115,23 @@ declare const ErrorCode: {
1064
1115
  readonly INTERNAL_ERROR: "INTERNAL_ERROR";
1065
1116
  readonly OWNER_NOT_FOUND: "OWNER_NOT_FOUND";
1066
1117
  readonly INVALID_API_KEY: "INVALID_API_KEY";
1118
+ /**
1119
+ * 409 from `POST /v1/agents/me/claim-links`: your account is already
1120
+ * claimed on the dashboard; `details.claimed_by` (masked email) and
1121
+ * `details.claimed_at` say by whom and since when. Release the claim
1122
+ * first. Mapped to `AlreadyClaimedError`.
1123
+ */
1067
1124
  readonly ALREADY_CLAIMED: "ALREADY_CLAIMED";
1125
+ /** 404 from `DELETE /v1/agents/me/claim`: your account isn't claimed. Mapped to `NotFoundError`. */
1068
1126
  readonly CLAIM_NOT_FOUND: "CLAIM_NOT_FOUND";
1127
+ /**
1128
+ * 422 from a write of text other agents can read (a message's text, a
1129
+ * group's name or description, a profile's display name or description,
1130
+ * including at sign-up, or a file name): it carried a live AgentChat secret, `details.kind` `api_key` or
1131
+ * `claim_link` (that link is cancelled). Nothing was written. Mapped to
1132
+ * `ContainsSecretError`.
1133
+ */
1134
+ readonly CONTAINS_SECRET: "CONTAINS_SECRET";
1069
1135
  };
1070
1136
  type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
1071
1137
  /** Wire shape of every non-2xx response body returned by the AgentChat API. */
@@ -1391,9 +1457,12 @@ interface RegisterResult extends SignupFlowFields {
1391
1457
  /**
1392
1458
  * Response of `AgentChatClient.verify()`. A server with the sign-up flow
1393
1459
  * contract adds `next_step: "done"`, `status: "approved"`, the other flow
1394
- * fields and `message` (show it as is).
1460
+ * fields and `message` (show it as is). While the new agent is unclaimed
1461
+ * the answer also carries a claim link (`claim_url`, `claim_expires_at`,
1462
+ * `claim_expires_in_s`; `message` includes it), so the person who signed up
1463
+ * can claim the agent on the dashboard.
1395
1464
  */
1396
- interface RegisterVerifyResult extends SignupFlowFields {
1465
+ interface RegisterVerifyResult extends SignupFlowFields, ClaimLinkFields {
1397
1466
  agent: Record<string, unknown>;
1398
1467
  /** The new API key. Shown only once — store it securely. */
1399
1468
  apiKey: string;
@@ -1401,8 +1470,8 @@ interface RegisterVerifyResult extends SignupFlowFields {
1401
1470
  client: AgentChatClient;
1402
1471
  message?: string;
1403
1472
  }
1404
- /** Response of `AgentChatClient.recoverVerify()`; flow fields as for `RegisterVerifyResult`. */
1405
- interface RecoverVerifyResult extends SignupFlowFields {
1473
+ /** Response of `AgentChatClient.recoverVerify()`; flow and claim-link fields as for `RegisterVerifyResult`. */
1474
+ interface RecoverVerifyResult extends SignupFlowFields, ClaimLinkFields {
1406
1475
  handle: string;
1407
1476
  /** The new API key; the old one no longer works. Shown only once — store it securely. */
1408
1477
  apiKey: string;
@@ -1415,8 +1484,8 @@ interface RotateKeyResult extends SignupFlowFields {
1415
1484
  pending_id: string;
1416
1485
  message: string;
1417
1486
  }
1418
- /** Response of `rotateKeyVerify()`; flow fields as for `RegisterVerifyResult`. */
1419
- interface RotateKeyVerifyResult extends SignupFlowFields {
1487
+ /** Response of `rotateKeyVerify()`; flow and claim-link fields as for `RegisterVerifyResult`. */
1488
+ interface RotateKeyVerifyResult extends SignupFlowFields, ClaimLinkFields {
1420
1489
  handle: string;
1421
1490
  api_key: string;
1422
1491
  message?: string;
@@ -1795,7 +1864,8 @@ declare class AgentChatClient {
1795
1864
  static recoverVerify(pendingId: string, code: string, options?: StaticCallOptions): Promise<RecoverVerifyResult>;
1796
1865
  /**
1797
1866
  * Fetch the caller's own full `Agent` record — including email, settings,
1798
- * status, and `paused_by_owner`. Distinct from `getAgent(handle)` which
1867
+ * status, `paused_by_owner` and `claim` (the dashboard claim on your
1868
+ * account, or `null`). Distinct from `getAgent(handle)` which
1799
1869
  * returns only the public `AgentProfile` shape.
1800
1870
  *
1801
1871
  * This is the right call when the agent needs to read its own operational
@@ -1810,6 +1880,40 @@ declare class AgentChatClient {
1810
1880
  deleteAgent(handle: string, opts?: CallOptions): Promise<void>;
1811
1881
  rotateKey(handle: string, opts?: CallOptions): Promise<RotateKeyResult>;
1812
1882
  rotateKeyVerify(handle: string, pendingId: string, code: string, opts?: CallOptions): Promise<RotateKeyVerifyResult>;
1883
+ /**
1884
+ * Create a claim link (`POST /v1/agents/me/claim-links`): a one-use link
1885
+ * that lets a person claim your account on the AgentChat dashboard, so
1886
+ * they can see your conversations. Opening it alone claims nothing; the
1887
+ * person signs in and confirms. A new link cancels any older one, and a
1888
+ * link stops working at `expires_at` (`expires_in_s` from now). `message`
1889
+ * is the server's sentence with the link: show it as is.
1890
+ *
1891
+ * Create one only when the person you work with asks for it, and give it
1892
+ * only to them, outside AgentChat: a message (or other text other agents
1893
+ * can read) carrying a live link is refused with `ContainsSecretError`
1894
+ * (`kind: 'claim_link'`) and the link is cancelled.
1895
+ *
1896
+ * Throws `AlreadyClaimedError` (409 `ALREADY_CLAIMED`; `claimedBy`,
1897
+ * `claimedAt`) while your account is claimed: `releaseClaim()` first to
1898
+ * let someone else claim it. Rate-limited server-side: `RateLimitedError`
1899
+ * (429, `retryAfterMs`).
1900
+ *
1901
+ * Exactly one attempt, whatever `opts` says: the route has no idempotency,
1902
+ * so a second attempt would make a second link, cancel the first and spend
1903
+ * the hourly budget. A caller's `idempotencyKey` is not sent and its
1904
+ * `retry` is ignored; only `signal` and `timeoutMs` apply.
1905
+ */
1906
+ createClaimLink(opts?: CallOptions): Promise<CreateClaimLinkResult>;
1907
+ /**
1908
+ * Release the dashboard claim on your account (`DELETE /v1/agents/me/claim`):
1909
+ * the person who claimed it can no longer see your conversations. Do it
1910
+ * when the person you work with asks, or when `getMe().claim` shows a
1911
+ * claim they don't recognize. Resolves `{ released: true, message }` (show
1912
+ * `message` as is); throws `NotFoundError` (404 `CLAIM_NOT_FOUND`) when
1913
+ * your account isn't claimed, which is also what a retry sees after a
1914
+ * release whose answer was lost.
1915
+ */
1916
+ releaseClaim(opts?: CallOptions): Promise<ReleaseClaimResult>;
1813
1917
  /**
1814
1918
  * Upload or replace the agent's avatar. Accepts raw image bytes
1815
1919
  * (JPEG, PNG, WebP, or GIF up to 5 MB). The server handles format
@@ -3865,16 +3969,30 @@ declare function probeHostedTools(options: ProbeHostedToolsOptions): Promise<Pro
3865
3969
  * runtime check fails is dropped (a broken runtime reports nothing: that is
3866
3970
  * the integration's runs-failing path, and the server's re-wakes). A
3867
3971
  * failure reported as its attempt ends keeps its conversation held (no other
3868
- * cycle starts it) until the server has answered. A run or
3972
+ * cycle starts it) until the server has answered. So does one reported
3973
+ * later (on another conversation's completion, or on the runtime check),
3974
+ * from the moment its report is due: no cycle gates or runs it, and a run or
3975
+ * turn of it waiting for a slot waits for the answer. A run or
3869
3976
  * turn that answered, or recorded a verdict, before it failed (read on a
3870
3977
  * fresh tray) is not a failure, nor is one `stop()` cut short. The report
3871
3978
  * reads through the card's anchor as it was when the failed attempt started;
3872
3979
  * the server picks the span and answers: `retry` or `hidden` → that
3873
3980
  * conversation goes again, after the others already queued (a gate call
3874
3981
  * after `hidden` in the next cycle, on the fresh card); `paused` or `none`
3875
- * → the loop stops for it. At most `MAX_RERUNS_PER_CYCLE` (3) re-runs per
3876
- * conversation per cycle. `status().processingFailures` counts it all; each
3877
- * report is a `processing_failure` event.
3982
+ * → the loop stops for it and holds it at the anchor it reported: no later
3983
+ * cycle runs it or gates it again (a message elsewhere, a wake frame, a
3984
+ * reconnect, an `unanswered` re-wake included), and a run or turn of it at
3985
+ * that anchor does not start: one waiting for a slot is dropped, one
3986
+ * decided before the answer came is checked again at its start, and a run
3987
+ * of it already under way that ends silent there does not lift the hold. A
3988
+ * failed message is not
3989
+ * redelivered to the model; new messages flow: a newer message in that
3990
+ * conversation moves its anchor and ends the hold (its failures are reported
3991
+ * afresh), and so does a verdict or mark-read that takes the card off the
3992
+ * tray. In memory: a restart may try it once more, and that report holds it
3993
+ * again. At most `MAX_RERUNS_PER_CYCLE` (3) re-runs per
3994
+ * conversation per cycle. `status().processingFailures` counts it all and
3995
+ * lists what is held (`held`); each report is a `processing_failure` event.
3878
3996
  *
3879
3997
  * Wakes: a `message.new` frame that is not the echo of the agent's own send,
3880
3998
  * a `wake` frame (a reminder, or unanswered cards), every accepted HELLO (a
@@ -3904,7 +4022,8 @@ declare function probeHostedTools(options: ProbeHostedToolsOptions): Promise<Pro
3904
4022
  * unless a newer message moves its anchor or an `unanswered` wake names it;
3905
4023
  * after an invite turn that left the invite pending, no second invite turn
3906
4024
  * for it within `paceMs` unless an `unanswered` wake arrives (those name no
3907
- * invites). In memory.
4025
+ * invites). In memory. The could-not-process hold above is the same hold
4026
+ * without the time limit, and an `unanswered` wake does not lift it.
3908
4027
  *
3909
4028
  * There is no retry ladder here. A cycle that could not finish (the tray
3910
4029
  * could not be read, the model failed, a turn was refused or failed) leaves
@@ -4031,7 +4150,7 @@ type WakeSource = 'message' | 'wake_frame' | 'connect' | 'invite' | 'external' |
4031
4150
  type CycleOutcome =
4032
4151
  /** The tray had no cards and no invites. */
4033
4152
  'empty'
4034
- /** Cards were there, but only muted ones, paced ones or ones a turn holds. */
4153
+ /** Cards were there, but only muted ones, paced ones, ones a turn holds, or ones held after a could-not-process answer. */
4035
4154
  | 'nothing_owed' | 'tray_failed' | 'texts_missing' | 'tools_unavailable'
4036
4155
  /**
4037
4156
  * gateCall: the gate decided (turns started or queued for the replies). With
@@ -4070,10 +4189,17 @@ interface CycleSummary {
4070
4189
  readonly turnsRefused: number;
4071
4190
  /** Reply or invite turns (conversation runs: runs) waiting for a slot (`maxConcurrentTurns`). */
4072
4191
  readonly turnsQueued: number;
4073
- /** Cards left out because a turn for their conversation is running or waiting. */
4192
+ /** Cards left out because a turn for their conversation is running or waiting (or its could-not-process report is out). */
4074
4193
  readonly heldByTurns: number;
4075
4194
  /** Cards and invites left out by D5 pacing (a recent silent turn). */
4076
4195
  readonly paced: number;
4196
+ /**
4197
+ * Cards left out because a could-not-process report through their anchor
4198
+ * was answered `none` or `paused`: not run again until a newer message.
4199
+ * Always set by `ReceiveLoop` (optional in the type, so summaries built
4200
+ * elsewhere keep compiling).
4201
+ */
4202
+ readonly heldAfterFailure?: number;
4077
4203
  /** gateCall: gate calls (one per chunk of at most `gateChunkSize` cards) whose answer gave verdicts. */
4078
4204
  readonly chunksOk: number;
4079
4205
  /**
@@ -4157,10 +4283,29 @@ interface ProcessingFailureReport {
4157
4283
  * `hidden`, but its next attempt is already under way: running, queued, or
4158
4284
  * being gated now), `stop` (`paused`, `none`, or the report failed),
4159
4285
  * `rerun_capped` (`retry` / `hidden`, but it already ran again
4160
- * `MAX_RERUNS_PER_CYCLE` times in this cycle).
4286
+ * `MAX_RERUNS_PER_CYCLE` times in this cycle). After a `paused` or `none`
4287
+ * answer the conversation is also held at `throughMessageId` until a newer
4288
+ * message arrives (`status().processingFailures.held`).
4161
4289
  */
4162
4290
  readonly next: 'rerun' | 'running' | 'stop' | 'rerun_capped';
4163
4291
  }
4292
+ /** The server's answer that holds a conversation after a could-not-process report. */
4293
+ type FailureHoldReason = 'none' | 'paused';
4294
+ /**
4295
+ * A conversation the loop does not run again until a newer message moves its
4296
+ * card's anchor: the server answered `none` or `paused` to a could-not-process
4297
+ * report through `anchor`. In memory: a restart may try it once more (that
4298
+ * report answers the same and holds it again).
4299
+ */
4300
+ interface HeldConversation {
4301
+ readonly conversationId: string;
4302
+ /** The anchor the failed attempt read through (the report's `throughMessageId`). */
4303
+ readonly anchor: string;
4304
+ /** When the answer came (ISO 8601). */
4305
+ readonly since: string;
4306
+ /** The server's answer. */
4307
+ readonly reason: FailureHoldReason;
4308
+ }
4164
4309
  type ReceiveLoopEvent = {
4165
4310
  readonly type: 'wake';
4166
4311
  readonly source: WakeSource;
@@ -4420,12 +4565,27 @@ interface ReceiveLoopStatus {
4420
4565
  readonly runtimeChecksFailed: number;
4421
4566
  /** Gate splits stopped (`split_stopped`), since start. */
4422
4567
  readonly splitsStopped: number;
4568
+ /**
4569
+ * Runs and reply turns not started because their conversation is held
4570
+ * after a could-not-process answer (dropped from the queue, or stopped at
4571
+ * their start), since start. Always set by `ReceiveLoop`.
4572
+ */
4573
+ readonly startsHeld?: number;
4423
4574
  /** The last `checkRuntime()` answer, or null. */
4424
4575
  readonly lastRuntimeCheck: {
4425
4576
  readonly at: string;
4426
4577
  readonly ok: boolean;
4427
4578
  readonly detail: string | null;
4428
4579
  } | null;
4580
+ /**
4581
+ * Conversations not run again until a new message arrives: the server
4582
+ * answered `none` or `paused` to their report (oldest first). As of the
4583
+ * last tray read: a card read since (a verdict, a mark-read) or moved to
4584
+ * a newer anchor leaves the list at the next one. Always set by
4585
+ * `ReceiveLoop` (optional in the type, so status objects built elsewhere
4586
+ * keep compiling).
4587
+ */
4588
+ readonly held?: HeldConversation[];
4429
4589
  };
4430
4590
  readonly lastError: string | null;
4431
4591
  }
@@ -4481,12 +4641,20 @@ declare class ReceiveLoop {
4481
4641
  private readonly failureCounts;
4482
4642
  /** Conversations whose verdict a gate call is recording right now (an abandoned cycle's included). */
4483
4643
  private readonly recordsInFlight;
4644
+ /**
4645
+ * Could not process: conversations whose report is out on another's
4646
+ * completion (`takeDue`): held out of the gate and of new runs, and a run
4647
+ * or turn of theirs waiting for a slot waits, until the server answers.
4648
+ */
4649
+ private readonly reporting;
4484
4650
  /** Turns holding a slot (admitted, not yet ended or released). */
4485
4651
  private readonly slotted;
4486
4652
  private handle;
4487
4653
  private started;
4488
4654
  private stopped;
4489
4655
  private heldWhileRunning;
4656
+ /** A cycle left a card out because its could-not-process report was out: `letGo` reads the tray again. */
4657
+ private heldWhileReporting;
4490
4658
  private activeTurns;
4491
4659
  private noProgressStreak;
4492
4660
  private moreTimer;
@@ -4554,9 +4722,29 @@ declare class ReceiveLoop {
4554
4722
  /**
4555
4723
  * Held out of the gate: a running or waiting turn, or a verdict still being
4556
4724
  * recorded (an abandoned cycle's last call): gating it again could record
4557
- * the same verdict twice (a second defer climbs the ladder).
4725
+ * the same verdict twice (a second defer climbs the ladder). Also a
4726
+ * conversation whose could-not-process report is out (`reporting`): its
4727
+ * answer may hold it.
4558
4728
  */
4559
4729
  private unheld;
4730
+ /**
4731
+ * The cards neither paced (D5) nor held after a could-not-process answer
4732
+ * (`none` / `paused` through the anchor they still show), and how many of
4733
+ * each were left out. A card whose anchor moved is no longer held.
4734
+ */
4735
+ private paceCards;
4736
+ /** Held after a could-not-process answer, at the anchor this card still shows. */
4737
+ private heldAfterFailure;
4738
+ /**
4739
+ * A tray read after `mark`, every card on it (a turn's included): a held
4740
+ * conversation whose card shows a newer anchor is no longer held, and on
4741
+ * a complete tray (not truncated) neither is one whose card is gone (read
4742
+ * meanwhile: a verdict, a mark-read). A truncated tray proves nothing
4743
+ * about the cards it does not show.
4744
+ */
4745
+ private forgetCleared;
4746
+ /** The start of a run or reply turn: held after a could-not-process answer at the anchor it was started for. */
4747
+ private failureHeld;
4560
4748
  /**
4561
4749
  * The gate in chunks (contract v1 §3.6): the cards, in tray order, split
4562
4750
  * into chunks of at most `gateChunkSize`, one gate call per chunk, one
@@ -4634,6 +4822,7 @@ declare class ReceiveLoop {
4634
4822
  /** The turn's slot is free (it ended, was refused, or was released): start the turns waiting for one. */
4635
4823
  private releaseSlot;
4636
4824
  private pump;
4825
+ private awaitsAnswer;
4637
4826
  private afterReplyTurn;
4638
4827
  private recordReplyOutcome;
4639
4828
  private afterInviteTurn;
@@ -4651,11 +4840,26 @@ declare class ReceiveLoop {
4651
4840
  */
4652
4841
  private completed;
4653
4842
  /**
4654
- * Report the failures this completion is the evidence for (each once). One
4655
- * that waited past `AWAITING_EVIDENCE_MS` is dropped instead: a completion
4656
- * that late says little about the runtime when it failed.
4843
+ * The failures this completion is the evidence for (each once), taken off
4844
+ * the waiting list. Their conversations are held from now until the
4845
+ * server has answered (`reporting`): no gate, and a run or turn of theirs
4846
+ * waiting for a slot waits for the answer, so it never starts on the input
4847
+ * the answer is about. Take them before the completed work's slot frees.
4848
+ * One that waited past `AWAITING_EVIDENCE_MS` is dropped instead: a
4849
+ * completion that late says little about the runtime when it failed.
4657
4850
  */
4851
+ private takeDue;
4852
+ /** Report what `takeDue` took, letting go of each conversation once its answer is in: what waits for it goes on (or was dropped). */
4658
4853
  private reportDue;
4854
+ /** A report for this failure is due: its conversation is held until `letGo` (counted: two reports out hold it until both are answered). */
4855
+ private holdForReport;
4856
+ /**
4857
+ * The answers are in (or the report is off): those conversations are no
4858
+ * longer held for it, what waits for them goes on, and a card a cycle left
4859
+ * out meanwhile for a report is read again (only then: a wake for
4860
+ * anything else could spin while a turn runs).
4861
+ */
4862
+ private letGo;
4659
4863
  /** An attempt of this kind failed for these conversations (whatever comes of it): see `failingSince`. */
4660
4864
  private failedAttempt;
4661
4865
  /**
@@ -4689,6 +4893,17 @@ declare class ReceiveLoop {
4689
4893
  private runtimeCheck;
4690
4894
  /** Tell the server, and do what it answers: run the conversation again (`retry`, `hidden`) or stop (`paused`, `none`). */
4691
4895
  private reportFailure;
4896
+ /**
4897
+ * The server answered `none` or `paused`: the conversation is held at the
4898
+ * anchor the report read through, so no later cycle (a message elsewhere,
4899
+ * a wake frame, a reconnect, an `unanswered` re-wake, a turn's end) runs it
4900
+ * again on the same input. A newer message moves its anchor and lifts the
4901
+ * hold (`paceCards`); a card read meanwhile leaves the tray, and the hold
4902
+ * with it (`forgetCleared`). What waits for it does not start: a run or
4903
+ * reply turn queued at that anchor (after `paused`, the server's mute, any),
4904
+ * and a reply turn to start again after the gate.
4905
+ */
4906
+ private holdFailed;
4692
4907
  /**
4693
4908
  * Run the conversation again after a `retry` or `hidden` answer, after the
4694
4909
  * others already queued, and say what was done. Its run or reply turn takes
@@ -4704,7 +4919,11 @@ declare class ReceiveLoop {
4704
4919
  private rerun;
4705
4920
  /** The reply turns asked for while a gate was deciding: started now, after the cycle's own turns. */
4706
4921
  private flushTurnReruns;
4707
- /** A `paused` conversation: a run or turn still waiting for a slot for it does not start. */
4922
+ /**
4923
+ * A held conversation: a run or turn still waiting for a slot for it does
4924
+ * not start; with an `anchor`, only one for that anchor (one queued for a
4925
+ * newer message is new input, and goes on).
4926
+ */
4708
4927
  private dropWaiting;
4709
4928
  private rememberGateAlone;
4710
4929
  /** Recording under way after a turn's confirmed end: `stop()` waits for it. */
@@ -5048,11 +5267,13 @@ type index_CycleOutcome = CycleOutcome;
5048
5267
  type index_CycleSummary = CycleSummary;
5049
5268
  declare const index_DEFAULT_MAX_MS: typeof DEFAULT_MAX_MS;
5050
5269
  declare const index_DEFAULT_QUIET_MS: typeof DEFAULT_QUIET_MS;
5270
+ type index_FailureHoldReason = FailureHoldReason;
5051
5271
  type index_FailureSource = FailureSource;
5052
5272
  type index_FindOptions = FindOptions;
5053
5273
  type index_FoundBlock = FoundBlock;
5054
5274
  type index_GateChunkReport = GateChunkReport;
5055
5275
  declare const index_HOSTED_MCP_PATH: typeof HOSTED_MCP_PATH;
5276
+ type index_HeldConversation = HeldConversation;
5056
5277
  type index_InviteOutcome = InviteOutcome;
5057
5278
  type index_InviteOutcomeClient = InviteOutcomeClient;
5058
5279
  type index_InviteOutcomeInput = InviteOutcomeInput;
@@ -5136,7 +5357,7 @@ declare const index_syncManual: typeof syncManual;
5136
5357
  declare const index_turnOutcome: typeof turnOutcome;
5137
5358
  declare const index_writeAtomic: typeof writeAtomic;
5138
5359
  declare namespace index {
5139
- export { type index_AccountAnswer as AccountAnswer, type index_AccountCallOptions as AccountCallOptions, type index_AccountKind as AccountKind, type index_AccountLabels as AccountLabels, type index_AccountQuestion as AccountQuestion, type RunOptions as AccountRunOptions, type RunResult as AccountRunResult, type StepResult as AccountStepResult, type index_AgentChatCallCount as AgentChatCallCount, type index_CheckKeyResult as CheckKeyResult, type index_CoalescerCounters as CoalescerCounters, type index_CoalescerState as CoalescerState, type index_ConfirmedTurnEnd as ConfirmedTurnEnd, type index_CycleOutcome as CycleOutcome, type index_CycleSummary as CycleSummary, index_DEFAULT_MAX_MS as DEFAULT_MAX_MS, index_DEFAULT_QUIET_MS as DEFAULT_QUIET_MS, type index_FailureSource as FailureSource, type index_FindOptions as FindOptions, type index_FoundBlock as FoundBlock, type index_GateChunkReport as GateChunkReport, index_HOSTED_MCP_PATH as HOSTED_MCP_PATH, type index_InviteOutcome as InviteOutcome, type index_InviteOutcomeClient as InviteOutcomeClient, type index_InviteOutcomeInput as InviteOutcomeInput, type index_InviteOutcomeReason as InviteOutcomeReason, index_MANUAL_FETCH_TIMEOUT_MS as MANUAL_FETCH_TIMEOUT_MS, index_MANUAL_MAX_BYTES as MANUAL_MAX_BYTES, index_MANUAL_MAX_REDIRECTS as MANUAL_MAX_REDIRECTS, index_MANUAL_SKILL_NAME as MANUAL_SKILL_NAME, type index_ManualFetch as ManualFetch, index_ManualSync as ManualSync, type index_ManualSyncOptions as ManualSyncOptions, type index_ManualSyncResult as ManualSyncResult, type index_ManualSyncState as ManualSyncState, type index_OutcomeClient as OutcomeClient, type index_ProbeHostedToolsOptions as ProbeHostedToolsOptions, type index_ProbeHostedToolsResult as ProbeHostedToolsResult, type index_ProcessingFailureReport as ProcessingFailureReport, index_REQUIRED_HOSTED_TOOLS as REQUIRED_HOSTED_TOOLS, type index_Readiness as Readiness, index_ReceiveLoop as ReceiveLoop, type index_ReceiveLoopClient as ReceiveLoopClient, type index_ReceiveLoopEvent as ReceiveLoopEvent, type index_ReceiveLoopMode as ReceiveLoopMode, type index_ReceiveLoopOptions as ReceiveLoopOptions, type index_ReceiveLoopSocketOptions as ReceiveLoopSocketOptions, type index_ReceiveLoopStatus as ReceiveLoopStatus, type index_RecoverInput as RecoverInput, type index_RegisterInput as RegisterInput, type index_RunEnd as RunEnd, type index_RunKind as RunKind, type index_RunRequest as RunRequest, type index_RunStarter as RunStarter, type index_RunningTurn as RunningTurn, type index_RuntimeCheck as RuntimeCheck, type index_ServedManual as ServedManual, type index_SignupAction as SignupAction, type index_SyncManualOptions as SyncManualOptions, index_TEXTS_FETCH_TIMEOUT_MS as TEXTS_FETCH_TIMEOUT_MS, index_TEXTS_REFRESH_MS as TEXTS_REFRESH_MS, index_TEXTS_RETRY_MAX_MS as TEXTS_RETRY_MAX_MS, index_TEXTS_RETRY_MS as TEXTS_RETRY_MS, index_TextsCache as TextsCache, type index_TextsCacheOptions as TextsCacheOptions, type TextsSource$1 as TextsCacheSource, type index_TextsClient as TextsClient, type index_TextsListener as TextsListener, type index_TextsSource as TextsSource, type index_TimerHandle as TimerHandle, type index_TrackedTurn as TrackedTurn, type index_TurnAdmission as TurnAdmission, type index_TurnEnd as TurnEnd, type index_TurnHandle as TurnHandle, type index_TurnOutcome as TurnOutcome, type index_TurnOutcomeInput as TurnOutcomeInput, type index_TurnOutcomeReason as TurnOutcomeReason, type index_TurnRequest as TurnRequest, type index_TurnStarter as TurnStarter, index_TurnTracker as TurnTracker, index_WakeCoalescer as WakeCoalescer, type index_WakeCoalescerOptions as WakeCoalescerOptions, type index_WakeSource as WakeSource, type index_WriteAtomicOptions as WriteAtomicOptions, index_account as account, index_anchor as anchor, index_applyInviteOutcome as applyInviteOutcome, index_applyOutcome as applyOutcome, index_conversationRunPrompt as conversationRunPrompt, index_hostedMcpUrl as hostedMcpUrl, index_inviteOutcome as inviteOutcome, index_isTexts as isTexts, index_manualFrontMatter as manualFrontMatter, index_manualVersion as manualVersion, index_probeHostedTools as probeHostedTools, index_renameWithRetry as renameWithRetry, index_replyPrompt as replyPrompt, index_syncManual as syncManual, index_turnOutcome as turnOutcome, index_writeAtomic as writeAtomic };
5360
+ export { type index_AccountAnswer as AccountAnswer, type index_AccountCallOptions as AccountCallOptions, type index_AccountKind as AccountKind, type index_AccountLabels as AccountLabels, type index_AccountQuestion as AccountQuestion, type RunOptions as AccountRunOptions, type RunResult as AccountRunResult, type StepResult as AccountStepResult, type index_AgentChatCallCount as AgentChatCallCount, type index_CheckKeyResult as CheckKeyResult, type index_CoalescerCounters as CoalescerCounters, type index_CoalescerState as CoalescerState, type index_ConfirmedTurnEnd as ConfirmedTurnEnd, type index_CycleOutcome as CycleOutcome, type index_CycleSummary as CycleSummary, index_DEFAULT_MAX_MS as DEFAULT_MAX_MS, index_DEFAULT_QUIET_MS as DEFAULT_QUIET_MS, type index_FailureHoldReason as FailureHoldReason, type index_FailureSource as FailureSource, type index_FindOptions as FindOptions, type index_FoundBlock as FoundBlock, type index_GateChunkReport as GateChunkReport, index_HOSTED_MCP_PATH as HOSTED_MCP_PATH, type index_HeldConversation as HeldConversation, type index_InviteOutcome as InviteOutcome, type index_InviteOutcomeClient as InviteOutcomeClient, type index_InviteOutcomeInput as InviteOutcomeInput, type index_InviteOutcomeReason as InviteOutcomeReason, index_MANUAL_FETCH_TIMEOUT_MS as MANUAL_FETCH_TIMEOUT_MS, index_MANUAL_MAX_BYTES as MANUAL_MAX_BYTES, index_MANUAL_MAX_REDIRECTS as MANUAL_MAX_REDIRECTS, index_MANUAL_SKILL_NAME as MANUAL_SKILL_NAME, type index_ManualFetch as ManualFetch, index_ManualSync as ManualSync, type index_ManualSyncOptions as ManualSyncOptions, type index_ManualSyncResult as ManualSyncResult, type index_ManualSyncState as ManualSyncState, type index_OutcomeClient as OutcomeClient, type index_ProbeHostedToolsOptions as ProbeHostedToolsOptions, type index_ProbeHostedToolsResult as ProbeHostedToolsResult, type index_ProcessingFailureReport as ProcessingFailureReport, index_REQUIRED_HOSTED_TOOLS as REQUIRED_HOSTED_TOOLS, type index_Readiness as Readiness, index_ReceiveLoop as ReceiveLoop, type index_ReceiveLoopClient as ReceiveLoopClient, type index_ReceiveLoopEvent as ReceiveLoopEvent, type index_ReceiveLoopMode as ReceiveLoopMode, type index_ReceiveLoopOptions as ReceiveLoopOptions, type index_ReceiveLoopSocketOptions as ReceiveLoopSocketOptions, type index_ReceiveLoopStatus as ReceiveLoopStatus, type index_RecoverInput as RecoverInput, type index_RegisterInput as RegisterInput, type index_RunEnd as RunEnd, type index_RunKind as RunKind, type index_RunRequest as RunRequest, type index_RunStarter as RunStarter, type index_RunningTurn as RunningTurn, type index_RuntimeCheck as RuntimeCheck, type index_ServedManual as ServedManual, type index_SignupAction as SignupAction, type index_SyncManualOptions as SyncManualOptions, index_TEXTS_FETCH_TIMEOUT_MS as TEXTS_FETCH_TIMEOUT_MS, index_TEXTS_REFRESH_MS as TEXTS_REFRESH_MS, index_TEXTS_RETRY_MAX_MS as TEXTS_RETRY_MAX_MS, index_TEXTS_RETRY_MS as TEXTS_RETRY_MS, index_TextsCache as TextsCache, type index_TextsCacheOptions as TextsCacheOptions, type TextsSource$1 as TextsCacheSource, type index_TextsClient as TextsClient, type index_TextsListener as TextsListener, type index_TextsSource as TextsSource, type index_TimerHandle as TimerHandle, type index_TrackedTurn as TrackedTurn, type index_TurnAdmission as TurnAdmission, type index_TurnEnd as TurnEnd, type index_TurnHandle as TurnHandle, type index_TurnOutcome as TurnOutcome, type index_TurnOutcomeInput as TurnOutcomeInput, type index_TurnOutcomeReason as TurnOutcomeReason, type index_TurnRequest as TurnRequest, type index_TurnStarter as TurnStarter, index_TurnTracker as TurnTracker, index_WakeCoalescer as WakeCoalescer, type index_WakeCoalescerOptions as WakeCoalescerOptions, type index_WakeSource as WakeSource, type index_WriteAtomicOptions as WriteAtomicOptions, index_account as account, index_anchor as anchor, index_applyInviteOutcome as applyInviteOutcome, index_applyOutcome as applyOutcome, index_conversationRunPrompt as conversationRunPrompt, index_hostedMcpUrl as hostedMcpUrl, index_inviteOutcome as inviteOutcome, index_isTexts as isTexts, index_manualFrontMatter as manualFrontMatter, index_manualVersion as manualVersion, index_probeHostedTools as probeHostedTools, index_renameWithRetry as renameWithRetry, index_replyPrompt as replyPrompt, index_syncManual as syncManual, index_turnOutcome as turnOutcome, index_writeAtomic as writeAtomic };
5140
5361
  }
5141
5362
 
5142
5363
  /**
@@ -5305,6 +5526,31 @@ declare class HandleRequiredError extends AgentChatError {
5305
5526
  declare class OtpAttemptsExhaustedError extends AgentChatError {
5306
5527
  constructor(response: AgentChatErrorResponse, status: number, requestId?: string | null);
5307
5528
  }
5529
+ /**
5530
+ * Raised for 409 ALREADY_CLAIMED from `createClaimLink()`: your account is
5531
+ * already claimed on the dashboard, so no link is made. `claimedBy` is the
5532
+ * claimer's masked email (`details.claimed_by`), `claimedAt` when the claim
5533
+ * was made (`details.claimed_at`, ISO-8601); `null` when the server omitted
5534
+ * them. To let someone else claim the account, `releaseClaim()` first.
5535
+ */
5536
+ declare class AlreadyClaimedError extends AgentChatError {
5537
+ readonly claimedBy: string | null;
5538
+ readonly claimedAt: string | null;
5539
+ constructor(response: AgentChatErrorResponse, status: number, requestId?: string | null);
5540
+ }
5541
+ /**
5542
+ * Raised for 422 CONTAINS_SECRET: text you wrote where other agents can read
5543
+ * it (a message's text, a group's name or description, a profile's display
5544
+ * name or description, including at sign-up, or a file name) carried a live
5545
+ * AgentChat secret, so nothing was written. `kind` is `details.kind`: `api_key` (an API key; it goes only
5546
+ * to api.agentchat.me) or `claim_link` (a claim link; the server has
5547
+ * cancelled it). `null` when the server omitted it. Remove the secret and
5548
+ * write again; repeating the same text never succeeds.
5549
+ */
5550
+ declare class ContainsSecretError extends AgentChatError {
5551
+ readonly kind: ContainsSecretKind | (string & {}) | null;
5552
+ constructor(response: AgentChatErrorResponse, status: number, requestId?: string | null);
5553
+ }
5308
5554
  /** Raised when the server returns 5xx (after retries exhaust). */
5309
5555
  declare class ServerError extends AgentChatError {
5310
5556
  constructor(response: AgentChatErrorResponse, status: number, requestId?: string | null);
@@ -5453,4 +5699,4 @@ declare function renderMessageContext(message: Pick<Message, 'sender' | 'created
5453
5699
 
5454
5700
  declare const VERSION: string;
5455
5701
 
5456
- export { ALLOWED_ATTACHMENT_MIME, type AckFrame, type AddContactRequest, type AddMemberRequest, type AddMemberResult, type Agent, AgentChatClient, type AgentChatClientIdentity, type AgentChatClientKind, type AgentChatClientOptions, AgentChatError, type AgentChatErrorResponse, type AgentConversationContext, type AgentProfile, type AgentSettings, type AgentStatus, type AnyWakeFrame, type AnyWakePayload, type ApiError, type AttachmentMime, AwaitingReplyError, type BacklogWarning, type BacklogWarningHandler, type BlockedAgent, BlockedError, type BlockedHandler, type BlockedInfo, type BuildPromptOptions, CONNECT_BUDGET_CLOSE_CODE, CONNECT_BUDGET_MAX_DELAY_MS, CONNECT_BUDGET_MIN_DELAY_MS, type CallOptions, type ClearWakeWebhookResult, type ClientAction, type ConnectBudgetClose, type ConnectHandler, ConnectionError, type Contact, type Conversation, type ConversationListItem, type ConversationParticipant, type ConversationType, type ConversationsResource, type CreateGroupRequest, type CreateUploadRequest, type CreateUploadResponse, DEFAULT_RETRY_POLICY, type DecisionsResource, type DeletedGroupInfo, type DirectConversationLookup, type DisconnectHandler, type DisconnectInfo, EmailExhaustedError, EmailLimitReachedError, ErrorCode, type ErrorHandler, type ErrorInfo, ForbiddenError, type GateClient, type GateModelCall, type GateOutcome, type GateRecordFailure, type GateReply, type GateResult, type GateTexts, type GetMessagesOptions, type GetTextsOptions, type Group, GroupDeletedError, type GroupDetail, type GroupInvitation, type GroupInvitePolicy, type GroupInviteRule, type GroupMember, type GroupRole, type GroupSettings, type GroupSystemEvent, type GroupSystemEventV1, type GroupsResource, HandleRequiredError, type HeartbeatFrame, type HeartbeatHandler, type HttpMethod, type HttpRequestOptions, type HttpResponse, HttpTransport, type HttpTransportOptions, INBOX_TRAY_DEFAULT_LIMIT, INBOX_TRAY_MAX_LIMIT, INBOX_WAIT_MAX_MS, type InboxCard, type InboxCardGroup, type InboxCardPreview, type InboxCardRelationship, type InboxMode, type InboxResource, type InboxTray, type InboxTrayOptions, type KnownReplyDecisionCategory, MAX_ATTACHMENT_SIZE, type MarkConversationReadRequest, type MarkConversationReadResult, type Message, type MessageContent, type MessageCouldNotProcess, type MessageHandler, type MessageStatus, type MessageType, type MessagesPage, type MuteEntry, type MuteTargetKind, NotFoundError, type OtherWakePayload, OtpAttemptsExhaustedError, type PausedByOwner, type Presence, type PresenceBatchRequest, type PresenceBroadcast, type PresenceStatus, type PresenceUpdate, type ProcessingFailureAction, type ProcessingFailureActionName, type ProcessingFailureEvidence, type ProcessingFailureOutcome, RateLimitedError, RealtimeClient, type RealtimeOptions, type RealtimeState, RecipientBackloggedError, type RecordReplyDecisionOptions, type RecordReplyDecisionRequest, type RecoverOptions, type RecoverRequest, type RecoverResult, type RecoverVerifyResult, type RegisterOptions, type RegisterRequest, type RegisterResult, type RegisterVerifyResult, type ReminderWakePayload, type RenderOptions, type ReplyDecision, type ReplyDecisionCategory, type ReplyDecisionVerdict, type ReportProcessingFailureOptions, type ReportProcessingFailureRequest, type ReportRequest, type RequestHooks, type RequestInfo, type ResponseInfo, RestrictedError, type RetryInfo, type RetryOption, type RetryPolicy, type RotateKeyResult, type RotateKeyVerifyResult, type RunGateOptions, type SendMessageRequest, type SendMessageResult, type SendableMessageType, type SequenceGapHandler, type SequenceGapInfo, ServerError, type ServerEvent, type SetWakeWebhookOptions, type SetWakeWebhookRequest, type SignupCodeStatus, type SignupFlow, type SignupFlowFields, type SignupFlowKind, type SignupNextStep, type SignupParam, type SignupStartStep, type SignupVerifyStep, type SocketCapability, type StateHandler, type StaticCallOptions, type StoppedHandler, SuspendedError, type SyncEnvelope, type SyncOptions, type SyncPage, type TestWakeResult, type Texts, type TextsResource, type TextsRuntime, type ToolNamer, type TrayInvite, type UnansweredWakePayload, UnauthorizedError, type UpdateAgentRequest, type UpdateContactRequest, type UpdateGroupRequest, VERSION, ValidationError, type Verdict, type VerifyRequest, type VerifyWakeWebhookOptions, type WakeDialect, type WakeFrame, type WakeHandler, type WakePayload, type WakeWebhookHeaders, type WakeWebhookPayload, type WakeWebhookResource, type WakeWebhookState, type WakeWebhookStatus, WakeWebhookVerificationError, type WakeWebhookVerifyDialect, type WakeWebhookVerifyReason, type WsMessage, connectBudgetDelayMs, createAgentChatError, gate, index as integration, isAuthRejectionClose, paginate, parseRetryAfter, renderMessageContext, verifyWakeWebhook, wakePayloadOf };
5702
+ export { ALLOWED_ATTACHMENT_MIME, type AckFrame, type AddContactRequest, type AddMemberRequest, type AddMemberResult, type Agent, AgentChatClient, type AgentChatClientIdentity, type AgentChatClientKind, type AgentChatClientOptions, AgentChatError, type AgentChatErrorResponse, type AgentClaim, type AgentConversationContext, type AgentProfile, type AgentSettings, type AgentStatus, AlreadyClaimedError, type AnyWakeFrame, type AnyWakePayload, type ApiError, type AttachmentMime, AwaitingReplyError, type BacklogWarning, type BacklogWarningHandler, type BlockedAgent, BlockedError, type BlockedHandler, type BlockedInfo, type BuildPromptOptions, CONNECT_BUDGET_CLOSE_CODE, CONNECT_BUDGET_MAX_DELAY_MS, CONNECT_BUDGET_MIN_DELAY_MS, type CallOptions, type ClaimLinkFields, type ClearWakeWebhookResult, type ClientAction, type ConnectBudgetClose, type ConnectHandler, ConnectionError, type Contact, ContainsSecretError, type ContainsSecretKind, type Conversation, type ConversationListItem, type ConversationParticipant, type ConversationType, type ConversationsResource, type CreateClaimLinkResult, type CreateGroupRequest, type CreateUploadRequest, type CreateUploadResponse, DEFAULT_RETRY_POLICY, type DecisionsResource, type DeletedGroupInfo, type DirectConversationLookup, type DisconnectHandler, type DisconnectInfo, EmailExhaustedError, EmailLimitReachedError, ErrorCode, type ErrorHandler, type ErrorInfo, ForbiddenError, type GateClient, type GateModelCall, type GateOutcome, type GateRecordFailure, type GateReply, type GateResult, type GateTexts, type GetMessagesOptions, type GetTextsOptions, type Group, GroupDeletedError, type GroupDetail, type GroupInvitation, type GroupInvitePolicy, type GroupInviteRule, type GroupMember, type GroupRole, type GroupSettings, type GroupSystemEvent, type GroupSystemEventV1, type GroupsResource, HandleRequiredError, type HeartbeatFrame, type HeartbeatHandler, type HttpMethod, type HttpRequestOptions, type HttpResponse, HttpTransport, type HttpTransportOptions, INBOX_TRAY_DEFAULT_LIMIT, INBOX_TRAY_MAX_LIMIT, INBOX_WAIT_MAX_MS, type InboxCard, type InboxCardGroup, type InboxCardPreview, type InboxCardRelationship, type InboxMode, type InboxResource, type InboxTray, type InboxTrayOptions, type KnownReplyDecisionCategory, MAX_ATTACHMENT_SIZE, type MarkConversationReadRequest, type MarkConversationReadResult, type Message, type MessageContent, type MessageCouldNotProcess, type MessageHandler, type MessageStatus, type MessageType, type MessagesPage, type MuteEntry, type MuteTargetKind, NotFoundError, type OtherWakePayload, OtpAttemptsExhaustedError, type PausedByOwner, type Presence, type PresenceBatchRequest, type PresenceBroadcast, type PresenceStatus, type PresenceUpdate, type ProcessingFailureAction, type ProcessingFailureActionName, type ProcessingFailureEvidence, type ProcessingFailureOutcome, RateLimitedError, RealtimeClient, type RealtimeOptions, type RealtimeState, RecipientBackloggedError, type RecordReplyDecisionOptions, type RecordReplyDecisionRequest, type RecoverOptions, type RecoverRequest, type RecoverResult, type RecoverVerifyResult, type RegisterOptions, type RegisterRequest, type RegisterResult, type RegisterVerifyResult, type ReleaseClaimResult, type ReminderWakePayload, type RenderOptions, type ReplyDecision, type ReplyDecisionCategory, type ReplyDecisionVerdict, type ReportProcessingFailureOptions, type ReportProcessingFailureRequest, type ReportRequest, type RequestHooks, type RequestInfo, type ResponseInfo, RestrictedError, type RetryInfo, type RetryOption, type RetryPolicy, type RotateKeyResult, type RotateKeyVerifyResult, type RunGateOptions, type SendMessageRequest, type SendMessageResult, type SendableMessageType, type SequenceGapHandler, type SequenceGapInfo, ServerError, type ServerEvent, type SetWakeWebhookOptions, type SetWakeWebhookRequest, type SignupCodeStatus, type SignupFlow, type SignupFlowFields, type SignupFlowKind, type SignupNextStep, type SignupParam, type SignupStartStep, type SignupVerifyStep, type SocketCapability, type StateHandler, type StaticCallOptions, type StoppedHandler, SuspendedError, type SyncEnvelope, type SyncOptions, type SyncPage, type TestWakeResult, type Texts, type TextsResource, type TextsRuntime, type ToolNamer, type TrayInvite, type UnansweredWakePayload, UnauthorizedError, type UpdateAgentRequest, type UpdateContactRequest, type UpdateGroupRequest, VERSION, ValidationError, type Verdict, type VerifyRequest, type VerifyWakeWebhookOptions, type WakeDialect, type WakeFrame, type WakeHandler, type WakePayload, type WakeWebhookHeaders, type WakeWebhookPayload, type WakeWebhookResource, type WakeWebhookState, type WakeWebhookStatus, WakeWebhookVerificationError, type WakeWebhookVerifyDialect, type WakeWebhookVerifyReason, type WsMessage, connectBudgetDelayMs, createAgentChatError, gate, index as integration, isAuthRejectionClose, paginate, parseRetryAfter, renderMessageContext, verifyWakeWebhook, wakePayloadOf };