@agentfield/sdk 0.1.110 → 0.1.111-rc.2

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/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@agentfield/sdk",
3
- "version": "0.1.110",
3
+ "version": "0.1.111-rc.2",
4
4
  "description": "AgentField TypeScript SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "src/triggers/fixtures"
10
11
  ],
11
12
  "scripts": {
12
13
  "build": "tsup",
@@ -0,0 +1,4 @@
1
+ {
2
+ "cron": "0 9 * * *",
3
+ "fired_at": "2026-04-28T09:00:00Z"
4
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "kind": "internal.notification",
3
+ "notification_id": "notif_demo_77",
4
+ "subject": "Daily reconciliation",
5
+ "body": "All transactions reconciled successfully.",
6
+ "metadata": {
7
+ "source_system": "reconciliation-svc",
8
+ "severity": "info"
9
+ },
10
+ "created_at": "2026-04-28T12:00:00Z"
11
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "event": "order.created",
3
+ "order_id": "ord_demo_42",
4
+ "amount_cents": 5000,
5
+ "currency": "usd",
6
+ "customer": {
7
+ "id": "cust_demo_99",
8
+ "email": "demo@example.com"
9
+ },
10
+ "items": [
11
+ {"sku": "SKU-001", "qty": 1, "price_cents": 5000}
12
+ ],
13
+ "created_at": "2026-04-28T12:00:00Z"
14
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "action": "opened",
3
+ "number": 42,
4
+ "pull_request": {
5
+ "id": 1234567890,
6
+ "node_id": "PR_example",
7
+ "html_url": "https://github.com/Agent-Field/agentfield/pull/42",
8
+ "number": 42,
9
+ "state": "open",
10
+ "title": "Add Phase 5 webhook DX core",
11
+ "user": {
12
+ "login": "demo-user",
13
+ "id": 1000,
14
+ "type": "User"
15
+ },
16
+ "body": "Implements TriggerContext, envelope unwrap, transform kwarg.",
17
+ "base": {
18
+ "ref": "main",
19
+ "sha": "abc123def456"
20
+ },
21
+ "head": {
22
+ "ref": "feat/webhooks",
23
+ "sha": "9d26e619def00"
24
+ },
25
+ "draft": false,
26
+ "merged": false
27
+ },
28
+ "repository": {
29
+ "id": 654321,
30
+ "name": "agentfield",
31
+ "full_name": "Agent-Field/agentfield",
32
+ "private": false,
33
+ "owner": {
34
+ "login": "Agent-Field",
35
+ "type": "Organization"
36
+ }
37
+ },
38
+ "sender": {
39
+ "login": "demo-user",
40
+ "type": "User"
41
+ }
42
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "token": "verification_token_example",
3
+ "team_id": "T01EXAMPLE",
4
+ "api_app_id": "A01EXAMPLE",
5
+ "event": {
6
+ "type": "app_mention",
7
+ "user": "U01EXAMPLE",
8
+ "text": "<@U02BOT> what's the status?",
9
+ "ts": "1735395600.000100",
10
+ "channel": "C01EXAMPLE",
11
+ "event_ts": "1735395600.000100"
12
+ },
13
+ "type": "event_callback",
14
+ "event_id": "Ev01EXAMPLE",
15
+ "event_time": 1735395600,
16
+ "authed_users": ["U02BOT"]
17
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "id": "evt_1NYExample1234567890",
3
+ "object": "event",
4
+ "api_version": "2024-12-18.acacia",
5
+ "created": 1735395600,
6
+ "type": "payment_intent.succeeded",
7
+ "livemode": false,
8
+ "pending_webhooks": 1,
9
+ "request": {
10
+ "id": "req_example",
11
+ "idempotency_key": null
12
+ },
13
+ "data": {
14
+ "object": {
15
+ "id": "pi_3NYExample1234",
16
+ "object": "payment_intent",
17
+ "amount": 5000,
18
+ "amount_received": 5000,
19
+ "currency": "usd",
20
+ "customer": "cus_example1234",
21
+ "status": "succeeded",
22
+ "payment_method": "pm_example1234",
23
+ "metadata": {
24
+ "order_id": "ord_demo_42"
25
+ }
26
+ }
27
+ }
28
+ }