@pingroom/sdk 0.8.0 → 0.9.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.
Files changed (179) hide show
  1. package/README.md +153 -41
  2. package/dist/client.d.ts +14 -348
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +15 -1300
  5. package/dist/client.js.map +1 -1
  6. package/dist/errors.d.ts +32 -3
  7. package/dist/errors.d.ts.map +1 -1
  8. package/dist/errors.js +47 -1
  9. package/dist/errors.js.map +1 -1
  10. package/dist/http.d.ts.map +1 -1
  11. package/dist/http.js +7 -1
  12. package/dist/http.js.map +1 -1
  13. package/dist/index.d.ts +3 -5
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1 -2
  16. package/dist/index.js.map +1 -1
  17. package/dist/internal/guards.d.ts +7 -0
  18. package/dist/internal/guards.d.ts.map +1 -1
  19. package/dist/internal/guards.js +1 -1
  20. package/dist/internal/guards.js.map +1 -1
  21. package/dist/internal/request.d.ts +41 -0
  22. package/dist/internal/request.d.ts.map +1 -0
  23. package/dist/internal/request.js +78 -0
  24. package/dist/internal/request.js.map +1 -0
  25. package/dist/internal/retry.d.ts +9 -2
  26. package/dist/internal/retry.d.ts.map +1 -1
  27. package/dist/internal/retry.js +24 -6
  28. package/dist/internal/retry.js.map +1 -1
  29. package/dist/internal/validate.d.ts +13 -0
  30. package/dist/internal/validate.d.ts.map +1 -0
  31. package/dist/internal/validate.js +36 -0
  32. package/dist/internal/validate.js.map +1 -0
  33. package/dist/liveStatus.d.ts +106 -11
  34. package/dist/liveStatus.d.ts.map +1 -1
  35. package/dist/liveStatus.js +20 -3
  36. package/dist/liveStatus.js.map +1 -1
  37. package/dist/mcp.d.ts.map +1 -1
  38. package/dist/mcp.js +30 -8
  39. package/dist/mcp.js.map +1 -1
  40. package/dist/namespaces/actions.d.ts +50 -0
  41. package/dist/namespaces/actions.d.ts.map +1 -0
  42. package/dist/namespaces/actions.js +219 -0
  43. package/dist/namespaces/actions.js.map +1 -0
  44. package/dist/namespaces/approvals.d.ts +23 -0
  45. package/dist/namespaces/approvals.d.ts.map +1 -0
  46. package/dist/namespaces/approvals.js +78 -0
  47. package/dist/namespaces/approvals.js.map +1 -0
  48. package/dist/namespaces/attachments.d.ts +37 -0
  49. package/dist/namespaces/attachments.d.ts.map +1 -0
  50. package/dist/namespaces/attachments.js +91 -0
  51. package/dist/namespaces/attachments.js.map +1 -0
  52. package/dist/namespaces/auth.d.ts +58 -0
  53. package/dist/namespaces/auth.d.ts.map +1 -0
  54. package/dist/namespaces/auth.js +242 -0
  55. package/dist/namespaces/auth.js.map +1 -0
  56. package/dist/namespaces/directory.d.ts +10 -0
  57. package/dist/namespaces/directory.d.ts.map +1 -0
  58. package/dist/namespaces/directory.js +19 -0
  59. package/dist/namespaces/directory.js.map +1 -0
  60. package/dist/namespaces/handoffs.d.ts +47 -0
  61. package/dist/namespaces/handoffs.d.ts.map +1 -0
  62. package/dist/namespaces/handoffs.js +126 -0
  63. package/dist/namespaces/handoffs.js.map +1 -0
  64. package/dist/namespaces/inbox.d.ts +17 -0
  65. package/dist/namespaces/inbox.d.ts.map +1 -0
  66. package/dist/namespaces/inbox.js +192 -0
  67. package/dist/namespaces/inbox.js.map +1 -0
  68. package/dist/namespaces/live.d.ts +57 -0
  69. package/dist/namespaces/live.d.ts.map +1 -0
  70. package/dist/namespaces/live.js +116 -0
  71. package/dist/namespaces/live.js.map +1 -0
  72. package/dist/namespaces/notifications.d.ts +25 -0
  73. package/dist/namespaces/notifications.d.ts.map +1 -0
  74. package/dist/namespaces/notifications.js +128 -0
  75. package/dist/namespaces/notifications.js.map +1 -0
  76. package/dist/namespaces/profile.d.ts +19 -0
  77. package/dist/namespaces/profile.d.ts.map +1 -0
  78. package/dist/namespaces/profile.js +22 -0
  79. package/dist/namespaces/profile.js.map +1 -0
  80. package/dist/namespaces/questions.d.ts +41 -0
  81. package/dist/namespaces/questions.d.ts.map +1 -0
  82. package/dist/namespaces/questions.js +107 -0
  83. package/dist/namespaces/questions.js.map +1 -0
  84. package/dist/namespaces/rooms.d.ts +13 -0
  85. package/dist/namespaces/rooms.d.ts.map +1 -0
  86. package/dist/namespaces/rooms.js +41 -0
  87. package/dist/namespaces/rooms.js.map +1 -0
  88. package/dist/namespaces/webhooks.d.ts +11 -0
  89. package/dist/namespaces/webhooks.d.ts.map +1 -0
  90. package/dist/namespaces/webhooks.js +32 -0
  91. package/dist/namespaces/webhooks.js.map +1 -0
  92. package/dist/types/approvals.d.ts +62 -0
  93. package/dist/types/approvals.d.ts.map +1 -0
  94. package/dist/types/approvals.js +2 -0
  95. package/dist/types/approvals.js.map +1 -0
  96. package/dist/types/auth.d.ts +185 -0
  97. package/dist/types/auth.d.ts.map +1 -0
  98. package/dist/types/auth.js +2 -0
  99. package/dist/types/auth.js.map +1 -0
  100. package/dist/types/common.d.ts +43 -0
  101. package/dist/types/common.d.ts.map +1 -0
  102. package/dist/types/common.js +2 -0
  103. package/dist/types/common.js.map +1 -0
  104. package/dist/types/handoffs.d.ts +121 -0
  105. package/dist/types/handoffs.d.ts.map +1 -0
  106. package/dist/types/handoffs.js +2 -0
  107. package/dist/types/handoffs.js.map +1 -0
  108. package/dist/types/inbox.d.ts +51 -0
  109. package/dist/types/inbox.d.ts.map +1 -0
  110. package/dist/types/inbox.js +2 -0
  111. package/dist/types/inbox.js.map +1 -0
  112. package/dist/types/notifications.d.ts +376 -0
  113. package/dist/types/notifications.d.ts.map +1 -0
  114. package/dist/types/notifications.js +2 -0
  115. package/dist/types/notifications.js.map +1 -0
  116. package/dist/types/profile.d.ts +30 -0
  117. package/dist/types/profile.d.ts.map +1 -0
  118. package/dist/types/profile.js +3 -0
  119. package/dist/types/profile.js.map +1 -0
  120. package/dist/types/questions.d.ts +210 -0
  121. package/dist/types/questions.d.ts.map +1 -0
  122. package/dist/types/questions.js +2 -0
  123. package/dist/types/questions.js.map +1 -0
  124. package/dist/types/rooms.d.ts +163 -0
  125. package/dist/types/rooms.d.ts.map +1 -0
  126. package/dist/types/rooms.js +3 -0
  127. package/dist/types/rooms.js.map +1 -0
  128. package/dist/types.d.ts +9 -1199
  129. package/dist/types.d.ts.map +1 -1
  130. package/dist/version.d.ts +1 -1
  131. package/dist/version.js +1 -1
  132. package/dist/webhooks.d.ts +14 -4
  133. package/dist/webhooks.d.ts.map +1 -1
  134. package/dist/webhooks.js +30 -5
  135. package/dist/webhooks.js.map +1 -1
  136. package/package.json +4 -2
  137. package/src/client.ts +115 -0
  138. package/src/errors.ts +291 -0
  139. package/src/http.ts +225 -0
  140. package/src/index.ts +97 -0
  141. package/src/internal/async.ts +54 -0
  142. package/src/internal/guards.ts +129 -0
  143. package/src/internal/request.ts +97 -0
  144. package/src/internal/retry.ts +157 -0
  145. package/src/internal/url.ts +78 -0
  146. package/src/internal/validate.ts +42 -0
  147. package/src/linkPing.ts +56 -0
  148. package/src/liveStatus.ts +337 -0
  149. package/src/locationPing.ts +101 -0
  150. package/src/mcp.ts +161 -0
  151. package/src/namespaces/actions.ts +234 -0
  152. package/src/namespaces/approvals.ts +104 -0
  153. package/src/namespaces/attachments.ts +106 -0
  154. package/src/namespaces/auth.ts +284 -0
  155. package/src/namespaces/directory.ts +21 -0
  156. package/src/namespaces/handoffs.ts +160 -0
  157. package/src/namespaces/inbox.ts +253 -0
  158. package/src/namespaces/live.ts +134 -0
  159. package/src/namespaces/notifications.ts +152 -0
  160. package/src/namespaces/profile.ts +24 -0
  161. package/src/namespaces/questions.ts +133 -0
  162. package/src/namespaces/rooms.ts +53 -0
  163. package/src/namespaces/webhooks.ts +38 -0
  164. package/src/types/approvals.ts +67 -0
  165. package/src/types/auth.ts +202 -0
  166. package/src/types/common.ts +74 -0
  167. package/src/types/handoffs.ts +148 -0
  168. package/src/types/inbox.ts +64 -0
  169. package/src/types/notifications.ts +393 -0
  170. package/src/types/profile.ts +37 -0
  171. package/src/types/questions.ts +226 -0
  172. package/src/types/rooms.ts +169 -0
  173. package/src/types.ts +17 -0
  174. package/src/version.ts +2 -0
  175. package/src/webhooks.ts +373 -0
  176. package/dist/liveActivity.d.ts +0 -101
  177. package/dist/liveActivity.d.ts.map +0 -1
  178. package/dist/liveActivity.js +0 -83
  179. package/dist/liveActivity.js.map +0 -1
package/dist/client.d.ts CHANGED
@@ -1,353 +1,20 @@
1
- import { HttpClient } from './http.js';
2
- import type { LiveStatusPing, LiveStatusResult, LiveStatusSnapshot } from './liveStatus.js';
3
1
  import { McpClient } from './mcp.js';
4
- import type { AcknowledgementWaitResult, Attachment, ZipManifest, AgentInboxEnsureResult, AgentInboxActivateInput, AgentInboxActivationResult, AgentInboxEnsureInput, AgentConnectionInfo, AgentDisconnectResult, AgentNotification, Approval, ApprovalInput, CreatePublicRoomInput, CreateRoomInput, CreateWebhookInput, Credential, ClaimCompleteParams, ClaimStartParams, AskInput, DirectoryEntry, DirectoryListInput, DirectoryProfile, DirectPingResult, Handoff, ListHandoffsInput, JoinRoomInput, ListNotificationsInput, ListenInput, ListQuestionsInput, NotificationDetail, NotificationHistoryEntry, Paginated, PingInput, PingResult, PingRoomOptions, Question, QuestionInput, QuickAction, RegisterParams, RedeemCodeResult, PairingStart, PairingStatus, PairedCredential, Room, RoomIconCatalog, RequestAckInput, RotateHandleResult, StartPairingParams, TriggerInput, QuickActionInput, UpdateQuickActionInput, UpdateQuickActionLayoutInput, UpdateWebhookInput, UploadAttachmentInput, WaitApprovalInput, WaitHandoffInput, WaitForAcknowledgementInput, WaitForOutcomeOptions, WaitInput, WaitQuestionInput, WaitResult, WaitForPairingOptions, Webhook } from './types.js';
2
+ import type { PingInput, PingResult, PingRoomOptions, RedeemCodeResult } from './types.js';
3
+ import { AuthApi } from './namespaces/auth.js';
4
+ import { RoomsApi } from './namespaces/rooms.js';
5
+ import { ActionsApi } from './namespaces/actions.js';
6
+ import { WebhooksApi } from './namespaces/webhooks.js';
7
+ import { NotificationsApi } from './namespaces/notifications.js';
8
+ import { AttachmentsApi } from './namespaces/attachments.js';
9
+ import { ApprovalsApi } from './namespaces/approvals.js';
10
+ import { QuestionsApi } from './namespaces/questions.js';
11
+ import { HandoffsApi } from './namespaces/handoffs.js';
12
+ import { InboxApi } from './namespaces/inbox.js';
13
+ import { ProfileApi } from './namespaces/profile.js';
14
+ import { LiveApi } from './namespaces/live.js';
15
+ import { DirectoryApi } from './namespaces/directory.js';
5
16
  /** Node's util.inspect hook, named through the global registry so no import is needed. */
6
17
  declare const INSPECT: unique symbol;
7
- /** Agent credential lifecycle (auth.md flow). */
8
- declare class AuthApi {
9
- private readonly http;
10
- constructor(http: HttpClient);
11
- /** Register an agent. Anonymous or via an identity assertion (ID-JAG / verified email). Public. */
12
- register(params: RegisterParams): Promise<Credential>;
13
- /** Begin claiming a pre-claim credential onto a human account; emails an OTP. */
14
- claimStart(params: ClaimStartParams): Promise<{
15
- message: string;
16
- expires_in: number;
17
- }>;
18
- /** Complete the claim with the emailed OTP; returns an active credential + handle. */
19
- claimComplete(params: ClaimCompleteParams): Promise<Credential>;
20
- /**
21
- * Register a pending agent and create a short-lived link that opens the
22
- * PingRoom app. The server owns the full grant shown to the approver; this
23
- * client sends no scope list. The pending credential stays private inside the
24
- * client and is replaced automatically once waitForPairing() succeeds.
25
- */
26
- startPairing(params?: StartPairingParams): Promise<PairingStart>;
27
- /** Read the current state of an app pairing using the pending credential. */
28
- pairingStatus(options?: Pick<WaitForPairingOptions, 'signal'>): Promise<PairingStatus>;
29
- /**
30
- * Wait until the person approves in PingRoom, or the short-lived link
31
- * expires. Transient network, 429, and 5xx failures are retried inside the
32
- * server-provided lifetime. On success the client immediately starts using
33
- * the active credential returned by the server.
34
- */
35
- waitForPairing(pairing: PairingStart, options?: WaitForPairingOptions): Promise<PairedCredential>;
36
- /** Rotate to a fresh credential (same scopes/handle). */
37
- refresh(): Promise<Credential>;
38
- /** Revoke the current credential. */
39
- revoke(): Promise<void>;
40
- /**
41
- * What this credential is connected to: the robot, the owner's public id and
42
- * name, the home room and room memberships, and the room grant. Check
43
- * `owner.id` and `handle` against the account and robot you approved before
44
- * sending anything.
45
- */
46
- connection(): Promise<AgentConnectionInfo>;
47
- /**
48
- * Disconnect this agent: revokes the calling credential and its refresh
49
- * credentials. The client keeps the now-revoked token; clear it with
50
- * `setToken(null)` or pair again.
51
- */
52
- disconnect(): Promise<AgentDisconnectResult>;
53
- }
54
- declare class RoomsApi {
55
- private readonly http;
56
- constructor(http: HttpClient);
57
- icons(): Promise<RoomIconCatalog>;
58
- list(): Promise<Room[]>;
59
- get(inviteCode: string): Promise<Room>;
60
- create(input: CreateRoomInput): Promise<Room>;
61
- createPublic(input: CreatePublicRoomInput): Promise<Room>;
62
- join(input: JoinRoomInput): Promise<Room>;
63
- }
64
- declare class ActionsApi {
65
- private readonly http;
66
- constructor(http: HttpClient);
67
- list(inviteCode: string): Promise<QuickAction[]>;
68
- update(inviteCode: string, actionNumber: number, input: UpdateQuickActionInput): Promise<QuickAction>;
69
- /**
70
- * Write up to 16 action slots in one request. The server enforces the room owner's plan.
71
- * Add new pages in complete groups of four; existing slots may be edited individually.
72
- *
73
- * Prefer this over looping `update()`. Each single-slot write enqueues its
74
- * own silent rooms-refresh push, so configuring a room's four Pings one at a
75
- * time wakes room members' devices four times inside a few seconds — four of a
76
- * finite daily background-push budget spent on one logical operation.
77
- *
78
- * Partial and additive: slots absent from `actions` keep their current
79
- * configuration, so this is also the right call for editing a single Ping.
80
- * Nothing here deletes an action, and an empty array is rejected locally
81
- * rather than being sent as a clear. Resolves to the room's full ordered
82
- * action set, not just the slots written.
83
- */
84
- updateMany(inviteCode: string, actions: QuickActionInput[]): Promise<QuickAction[]>;
85
- /**
86
- * Press a slot. When the action has an `input_type`, pass the matching
87
- * detail (`data.location`, `data.url`, or `attachment_ids`) or the server
88
- * refuses the press with `422 quick_action_input_required` and sends nothing.
89
- * Read `input_type` from `list()` first; pass the action's `id` as
90
- * `quick_action_id` to be refused rather than fire the wrong Ping if the
91
- * owner moved pages meanwhile.
92
- */
93
- trigger(inviteCode: string, actionNumber: number, input?: TriggerInput): Promise<PingResult>;
94
- /**
95
- * Replace the room's page layout atomically (room owner on Pro only). See
96
- * `UpdateQuickActionLayoutInput` for the snapshot contract; a stale
97
- * `base_action_ids` is `409 quick_action_layout_changed`, a page still used
98
- * by a time trigger, webhook, agent binding or running live update is
99
- * `409 quick_action_page_in_use`. Prefer `deletePage()`, which builds the
100
- * body from a fresh read.
101
- */
102
- updateLayout(inviteCode: string, input: UpdateQuickActionLayoutInput): Promise<QuickAction[]>;
103
- /**
104
- * Delete one page (1–4) and shift the later pages left, keeping every other
105
- * slot's configuration. Reads the current action set first so the layout
106
- * snapshot is real, then calls `updateLayout()`. Page 1 can be deleted only
107
- * when another page remains.
108
- */
109
- deletePage(inviteCode: string, page: number): Promise<QuickAction[]>;
110
- }
111
- declare class WebhooksApi {
112
- private readonly http;
113
- constructor(http: HttpClient);
114
- list(inviteCode: string): Promise<Webhook[]>;
115
- create(inviteCode: string, input: CreateWebhookInput): Promise<Webhook>;
116
- update(inviteCode: string, webhookId: string, input: UpdateWebhookInput): Promise<Webhook>;
117
- delete(inviteCode: string, webhookId: string): Promise<void>;
118
- }
119
- declare class NotificationsApi {
120
- private readonly http;
121
- constructor(http: HttpClient);
122
- /** Paginated list (polling fallback). Prefer wait()/listen() for real-time. */
123
- list(input?: ListNotificationsInput): Promise<Paginated<NotificationHistoryEntry>>;
124
- /** Fetch one visible notification, including its current acknowledgement state. */
125
- getNotification(notificationId: string): Promise<NotificationDetail>;
126
- /**
127
- * One bounded long-poll for an ack-required ping. The returned state may
128
- * still be `open` when the hold timeout elapses; call again to keep waiting.
129
- */
130
- waitForAcknowledgement(notificationId: string, input?: WaitForAcknowledgementInput): Promise<AcknowledgementWaitResult>;
131
- /** One long-poll: resolves as soon as new pings land, or with an empty list at timeout. */
132
- wait(input?: WaitInput): Promise<WaitResult>;
133
- /**
134
- * Continuous real-time inbound: an async iterator that long-polls in a loop,
135
- * advancing the cursor, yielding each new ping. Stops when `signal` aborts.
136
- *
137
- * for await (const ping of pr.notifications.listen({ signal })) { ... }
138
- */
139
- listen(input?: ListenInput): AsyncGenerator<AgentNotification, void, void>;
140
- }
141
- declare class AgentsApi {
142
- private readonly http;
143
- constructor(http: HttpClient);
144
- /**
145
- * @deprecated Retired server-side — always fails with 410
146
- * `cross_account_ping_retired`. An agent can only reach the account that
147
- * connected it; to reach anyone else, post into a room you both belong to.
148
- */
149
- ping(handle: string, ping: PingInput): Promise<DirectPingResult>;
150
- }
151
- declare class ApprovalsApi {
152
- private readonly http;
153
- constructor(http: HttpClient);
154
- /** Ask the human you act for to decide; returns the pending approval. */
155
- request(inviteCode: string, input: ApprovalInput): Promise<Approval>;
156
- get(approvalId: string): Promise<Approval>;
157
- /** One long-poll for the decision; returns the (possibly still-pending) approval. */
158
- wait(approvalId: string, input?: WaitApprovalInput): Promise<Approval>;
159
- /**
160
- * Block until the human decides (or the request expires or is cancelled),
161
- * looping wait() under the hood, with polls started at least 1 s apart. A
162
- * response that is not this approval in a known status rejects with
163
- * `invalid_response`. Network failures, 429 and 5xx are retried with backoff
164
- * (honouring `retryAfter`), and reported to `onRetry`, until `signal` aborts
165
- * or the outage outlasts the approval's `expires_at` by 5 minutes (15 minutes
166
- * of failures while no `expires_at` has been read); that rejects with
167
- * `unavailable`. See {@link WaitForOutcomeOptions}.
168
- */
169
- waitForDecision(approvalId: string, input?: WaitForOutcomeOptions): Promise<Approval>;
170
- }
171
- /**
172
- * The general human-in-the-loop primitive: ask a human a question with 2–4
173
- * options (or a short typed answer) and block until they tap an answer. An
174
- * {@link ApprovalsApi | approval} is the two-option case; reach for questions
175
- * when you need more choices, a typed reply, or room-scope answering.
176
- */
177
- declare class QuestionsApi {
178
- private readonly http;
179
- constructor(http: HttpClient);
180
- /**
181
- * Ask a Question in a room; returns the pending Question (id + computed
182
- * expiry). Pass `resolution_policy: 'all'` to poll the room: everyone asked
183
- * votes once, and `results` carries the tally on every read.
184
- */
185
- ask(inviteCode: string, input: QuestionInput): Promise<Question>;
186
- /** Fetch a Question's current state. */
187
- get(questionId: string): Promise<Question>;
188
- /** One long-poll for the answer; returns the (possibly still-pending) Question. */
189
- wait(questionId: string, input?: WaitQuestionInput): Promise<Question>;
190
- /**
191
- * Block until the human answers (or the question expires/cancels), looping
192
- * wait() under the hood. Returns the resolved Question — inspect `state` and
193
- * `answer.value` to branch. A poll returns once it closes; its `answer` is the
194
- * leading option, or `null` on a tie, and `results` holds the tally.
195
- *
196
- * Polls start at least 1 s apart. A response that is not this Question in a
197
- * known state rejects with `invalid_response`. Network failures, 429 and 5xx
198
- * are retried with backoff (honouring `retryAfter`), and reported to
199
- * `onRetry`, until `signal` aborts or the outage outlasts the Question's
200
- * `expires_at` by 5 minutes (15 minutes of failures while no `expires_at` has
201
- * been read); that rejects with `unavailable`. See {@link WaitForOutcomeOptions}.
202
- */
203
- waitForAnswer(questionId: string, input?: WaitForOutcomeOptions): Promise<Question>;
204
- /** List the asker's Questions, optionally filtered by state. */
205
- list(input?: ListQuestionsInput): Promise<Question[]>;
206
- /** Withdraw a still-pending Question (409 if it already resolved). */
207
- cancel(questionId: string): Promise<Question>;
208
- }
209
- /**
210
- * The Handoff façade: the Agent → one-human loop. Always DIRECT (exactly one
211
- * human) and PRIVATE (no other room member can read it). Backed by the ack and
212
- * question primitives, so its {@link Handoff.state | state} space is their union
213
- * — kept DISTINCT per {@link Handoff.kind | kind}. A negative answer to a
214
- * question handoff (e.g. `hold`) is a SUCCESSFUL `answered` result, not an error.
215
- *
216
- * const task = await pr.handoffs.requestAck({ prompt, idempotencyKey });
217
- * const result = await pr.handoffs.waitForResult(task.id);
218
- *
219
- * const q = await pr.handoffs.ask({ prompt, options: ['deploy', 'hold'], idempotencyKey });
220
- */
221
- declare class HandoffsApi {
222
- private readonly http;
223
- constructor(http: HttpClient);
224
- /** Ask a human to acknowledge (an `ack` handoff). Resolves on the first acknowledgement. */
225
- requestAck(input: RequestAckInput): Promise<Handoff>;
226
- /**
227
- * Ask a human a multi-option question (a `question` handoff). Resolves on the
228
- * first tapped answer. Bare-string options normalize to `{ value, label }`.
229
- */
230
- ask(input: AskInput): Promise<Handoff>;
231
- /** Fetch a handoff's current state. */
232
- get(id: string): Promise<Handoff>;
233
- /**
234
- * Block until the handoff resolves (or expires/cancels), looping the bounded
235
- * long-poll under the hood. `expired`/`cancelled` and a negative answer (e.g.
236
- * `hold`) all surface as normal terminal results — nothing is thrown for them.
237
- *
238
- * Polls start at least 2.1 s apart, so a short `timeout` stays under the
239
- * route's 30-per-minute limit. A response that is not this handoff in a
240
- * known state rejects with `invalid_response`. Network failures, 429 and 5xx
241
- * are retried with backoff (honouring `retryAfter`), and reported to
242
- * `onRetry`, until `signal` aborts or the outage outlasts the handoff's
243
- * `expires_at` by 5 minutes (15 minutes of failures while no `expires_at` has
244
- * been read); that rejects with `unavailable`. See {@link WaitForOutcomeOptions}.
245
- */
246
- waitForResult(id: string, input?: WaitHandoffInput & WaitForOutcomeOptions): Promise<Handoff>;
247
- /** List the agent's open handoffs or bounded recent history. */
248
- list(input?: ListHandoffsInput): Promise<Handoff[]>;
249
- /** One bounded long-poll; returns the (possibly still-open) handoff. */
250
- private wait;
251
- private create;
252
- }
253
- /** Setup and activation of the bound human's Agent Inbox delivery room. */
254
- declare class InboxApi {
255
- private readonly http;
256
- constructor(http: HttpClient);
257
- /** Replay the viable activation attempt or create its next numbered retry. */
258
- ensure(input?: AgentInboxEnsureInput): Promise<AgentInboxEnsureResult>;
259
- /**
260
- * Ensure the bound human's Agent Inbox, then block on its onboarding
261
- * Question until the server confirms activation, it expires/cancels, or the
262
- * overall deadline elapses. Pairing remains a separate operation so adopting
263
- * a credential never silently waits for a phone response.
264
- */
265
- activate(input?: AgentInboxActivateInput): Promise<AgentInboxActivationResult>;
266
- }
267
- declare class ProfileApi {
268
- private readonly http;
269
- constructor(http: HttpClient);
270
- /**
271
- * Set this agent's own avatar (from the bot avatar set) — the robot face
272
- * its pings and Questions wear. Never touches the bound human's profile
273
- * picture. Returns `{ ok, avatar_id, avatar_url }`.
274
- */
275
- setAvatar(avatarId: string): Promise<{
276
- ok: boolean;
277
- avatar_id: string;
278
- avatar_url: string;
279
- }>;
280
- /** Rotate the agent's handle — the kill-switch for a leaked handle. */
281
- rotateHandle(): Promise<RotateHandleResult>;
282
- }
283
- /**
284
- * Live-status streams — a self-updating card on the room members' lock screen.
285
- *
286
- * Requires the `pingroom:live:write` scope. Free accounts get a small daily
287
- * budget of NEW streams; updates and the terminal ping of an open stream are
288
- * never charged, so a card can never be quota-blocked into hanging open. A
289
- * first ping that is already `done`/`failed` is a new stream and is charged.
290
- */
291
- declare class LiveApi {
292
- private readonly http;
293
- constructor(http: HttpClient);
294
- /**
295
- * Send one stream ping — start, update, or end, chosen by `live_status.state`
296
- * and whether the correlation already exists.
297
- */
298
- push(inviteCode: string, ping: LiveStatusPing): Promise<LiveStatusResult>;
299
- /**
300
- * Read back a stream this credential started, so a restarted producer can
301
- * reconcile instead of opening a duplicate.
302
- *
303
- * Resolves null ONLY for a 404 `stream_not_found` — no stream with that
304
- * correlation id in the last 24 hours. Every other failure throws: a 404 for
305
- * an unknown or deleted room code, and a 403 `room_not_granted`
306
- * ({@link RoomScopedErrorCode}) when the room is outside the grant the human
307
- * gave this agent, both propagate rather than being reported as "no stream".
308
- */
309
- get(inviteCode: string, correlationId: string): Promise<LiveStatusSnapshot | null>;
310
- }
311
- /**
312
- * Private files that a Ping or Question can carry.
313
- *
314
- * Upload first, then pass the returned ids to `broadcast()` / `questions.ask()`
315
- * as `attachment_ids`. Bytes never travel over MCP or a JSON ping body. An
316
- * upload that is never attached expires on its own after 24 hours.
317
- * Each file must be 1 byte–5 MiB with an md/pdf/html/txt/jpg/jpeg/png/zip filename;
318
- * a Ping or Question accepts at most four ids.
319
- *
320
- * Uploading requires the bound account to hold Pro (the API answers 402
321
- * `pro_required` otherwise). Reading and deleting are not gated.
322
- */
323
- declare class AttachmentsApi {
324
- private readonly http;
325
- constructor(http: HttpClient);
326
- /** Upload one file and get back the id a send can claim. */
327
- upload(input: UploadAttachmentInput): Promise<Attachment>;
328
- /**
329
- * Raw bytes for an attachment this credential is allowed to see. Returns the
330
- * undecoded Response so a caller can stream it, or read text/arrayBuffer.
331
- */
332
- content(attachmentId: string, signal?: AbortSignal): Promise<Response>;
333
- /**
334
- * The listing of a `.zip`'s contents, recorded when it was uploaded.
335
- *
336
- * Resolves null for a non-archive, and for an archive whose central
337
- * directory did not parse. Nothing decompresses the file to produce this, so
338
- * the declared sizes are what the archive claims, not verified output.
339
- */
340
- manifest(attachmentId: string, signal?: AbortSignal): Promise<ZipManifest | null>;
341
- /** Discard an upload that has not been attached to a ping yet. */
342
- delete(attachmentId: string): Promise<void>;
343
- }
344
- /** Public, unauthenticated agent directory. */
345
- declare class DirectoryApi {
346
- private readonly http;
347
- constructor(http: HttpClient);
348
- list(input?: DirectoryListInput): Promise<Paginated<DirectoryEntry>>;
349
- get(handle: string): Promise<DirectoryProfile>;
350
- }
351
18
  export declare class PingRoom {
352
19
  readonly auth: AuthApi;
353
20
  readonly rooms: RoomsApi;
@@ -355,7 +22,6 @@ export declare class PingRoom {
355
22
  readonly actions: ActionsApi;
356
23
  readonly notifications: NotificationsApi;
357
24
  readonly attachments: AttachmentsApi;
358
- readonly agents: AgentsApi;
359
25
  readonly approvals: ApprovalsApi;
360
26
  readonly questions: QuestionsApi;
361
27
  readonly handoffs: HandoffsApi;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAevC,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE5F,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EACV,yBAAyB,EACzB,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,uBAAuB,EAEvB,0BAA0B,EAC1B,qBAAqB,EAC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