@agentforge-io/sdk-server 4.27.0 → 4.28.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.
|
@@ -6,6 +6,12 @@ export interface SetAppWebhookInput {
|
|
|
6
6
|
events: AppWebhookEventName[];
|
|
7
7
|
/** 32–256 characters; the App keeps it to verify deliveries. */
|
|
8
8
|
secret: string;
|
|
9
|
+
/**
|
|
10
|
+
* Where the App shows a receipt: a URL template with `{token}` and optionally
|
|
11
|
+
* `{team}` (the team's public address), e.g. `https://app.example.com/{team}/r/{token}`.
|
|
12
|
+
* Omit (or null) for none.
|
|
13
|
+
*/
|
|
14
|
+
receiptLink?: string | null;
|
|
9
15
|
}
|
|
10
16
|
export declare class WebhookResource {
|
|
11
17
|
private readonly client;
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
// (AGF-APP-WEBHOOKS). One webhook per App; it receives the events of every
|
|
4
4
|
// tenant the App is installed in, and of its home tenant.
|
|
5
5
|
//
|
|
6
|
-
// - `set({ url, events, secret })` — `PUT /api/v1/webhook`. The
|
|
7
|
-
// its own secret (32–256 chars) and keeps it: the platform never
|
|
8
|
-
// it. Idempotent: calling it on every boot is fine.
|
|
6
|
+
// - `set({ url, events, secret, receiptLink? })` — `PUT /api/v1/webhook`. The
|
|
7
|
+
// App brings its own secret (32–256 chars) and keeps it: the platform never
|
|
8
|
+
// returns it. Idempotent: calling it on every boot is fine. `receiptLink`
|
|
9
|
+
// (AGF-CASE-RECEIPT R5) is where the App shows a receipt; the platform puts
|
|
10
|
+
// it under case notices on channels without the receipt card (WhatsApp…).
|
|
9
11
|
// - `get()` — the current webhook (url, events, active), or null.
|
|
10
12
|
// - `remove()` — stop receiving events.
|
|
11
13
|
//
|
package/dist/types.d.ts
CHANGED
|
@@ -1699,6 +1699,8 @@ export type AppWebhookEventName = 'case.submitted' | 'case.state_changed' | 'cas
|
|
|
1699
1699
|
export interface AppWebhook {
|
|
1700
1700
|
url: string;
|
|
1701
1701
|
events: AppWebhookEventName[];
|
|
1702
|
+
/** Where the App shows a receipt (`{team}`, `{token}`), when it set one (AGF-CASE-RECEIPT R5). */
|
|
1703
|
+
receiptLink?: string | null;
|
|
1702
1704
|
active: boolean;
|
|
1703
1705
|
createdAt: string;
|
|
1704
1706
|
updatedAt: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentforge-io/sdk-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.28.0",
|
|
4
4
|
"description": "Server-side SDK for backend apps integrating with AgentForge platform. Auth via ChatToken, ak_live_ API key or App secret (sk_live_), with App installations across tenants.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|