@punchline-analytics/sdk 0.1.1 → 0.1.3
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 +16 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -234,6 +234,18 @@ type CreateHandoffResponse = {
|
|
|
234
234
|
url?: string;
|
|
235
235
|
kind?: string;
|
|
236
236
|
expires_at?: string;
|
|
237
|
+
/** With url: the receipt for agents (handoff spec 0.3). Show it next to what was built; agents pass the link on far more reliably with it. */
|
|
238
|
+
receipt?: {
|
|
239
|
+
kind?: string;
|
|
240
|
+
summary?: string;
|
|
241
|
+
value?: number;
|
|
242
|
+
currency?: string;
|
|
243
|
+
expires_at?: string;
|
|
244
|
+
open_url?: string;
|
|
245
|
+
next_step?: string;
|
|
246
|
+
};
|
|
247
|
+
/** The receipt as text, labelled "Receipt for software agents:", ready to put on the page */
|
|
248
|
+
receipt_text?: string;
|
|
237
249
|
agent?: Record<string, unknown>;
|
|
238
250
|
};
|
|
239
251
|
};
|
|
@@ -246,10 +258,14 @@ type CreateHandoffBody = {
|
|
|
246
258
|
expires_in_days?: number;
|
|
247
259
|
/** A path or https URL on your site; the response adds the token to it */
|
|
248
260
|
url?: string;
|
|
261
|
+
/** What was built, for the receipt: "Team plan + SMS reminders" */
|
|
262
|
+
summary?: string;
|
|
249
263
|
/** The agent's request, used in memory only */
|
|
250
264
|
visitor?: {
|
|
251
265
|
ip: string;
|
|
252
266
|
user_agent: string;
|
|
267
|
+
/** For links minted by an MCP tool: the Mcp-Session-Id header of the agent's request. The link is then tied to the MCP session even when the agent's address changes between calls. */
|
|
268
|
+
mcp_session_id?: string;
|
|
253
269
|
};
|
|
254
270
|
};
|
|
255
271
|
type GetHandoffsResponse = Record<string, unknown>;
|