@datalayer/agent-runtimes 1.5.115 → 1.5.121
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-embed/datalayer-app-main.js +52 -52
- package/lib/api/runtimes/runtimes.d.ts +5 -0
- package/lib/apps/apps/appspec.js +4 -0
- package/lib/examples/pap/PapAgentIdentityView.js +0 -1
- package/lib/examples/pap/PapCompanyDiscoveryView.js +5 -4
- package/lib/examples/pap/PapGuidedJourneyView.js +31 -17
- package/lib/examples/pap/PapSessionLifecycleView.js +1 -1
- package/lib/examples/pap/traces/account-tokens.json +54 -30
- package/lib/examples/pap/traces/conversation-control.json +171 -220
- package/lib/examples/pap/traces/conversation-streaming.json +66 -44
- package/lib/examples/pap/traces/mediated-sign-in.json +54 -30
- package/lib/examples/pap/traces/operations.json +174 -223
- package/lib/examples/pap/traces/two-companies.json +252 -306
- package/lib/examples/pap/traces/user-with-a-company.json +159 -162
- package/lib/hooks/useCheckpoints.d.ts +2 -0
- package/lib/pap/index.d.ts +8 -0
- package/lib/pap/index.js +3 -6
- package/lib/portable/direct.d.ts +9 -3
- package/lib/portable/direct.js +9 -4
- package/lib/specs/actions.js +72 -9
- package/lib/specs/agents/agents.js +32 -9
- package/lib/specs/apps.js +18 -8
- package/lib/specs/appspecSchema.js +13 -1
- package/lib/specs/battles.js +6 -6
- package/lib/specs/mcpServers.js +66 -31
- package/lib/specs/models.d.ts +8 -1
- package/lib/specs/models.js +40 -2
- package/lib/specs/protocols.js +1 -1
- package/lib/specs/scenes.js +1 -5
- package/lib/types/agentspecs.d.ts +10 -0
- package/package.json +2 -2
- package/scripts/codegen/generate_apps.py +2 -0
- package/scripts/codegen/generate_models.py +17 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"slug": "two-companies",
|
|
3
3
|
"title": "Two companies working together",
|
|
4
|
-
"description": "Ledgerly, an accounting firm, is a PAP company to Ada's agent Atlas and a PAP personal agent at Northwind Bank for her. Every approval is Ada's. This is composition: 0.
|
|
4
|
+
"description": "Ledgerly, an accounting firm, is a PAP company to Ada's agent Atlas and a PAP personal agent at Northwind Bank for her. Every approval is Ada's. This is composition: draft 0.4 defines no company-to-company protocol.",
|
|
5
5
|
"generator": "examples/personal-agent-protocol/traces/generate.py",
|
|
6
|
-
"sdk": "personal-agent-protocol 0.
|
|
6
|
+
"sdk": "personal-agent-protocol 0.32.0",
|
|
7
7
|
"parties": [
|
|
8
8
|
{
|
|
9
9
|
"id": "user",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"content-type": "application/json"
|
|
116
116
|
},
|
|
117
117
|
"body": {
|
|
118
|
-
"protocol_version": "0.
|
|
118
|
+
"protocol_version": "0.4",
|
|
119
119
|
"organization": {
|
|
120
120
|
"name": "Ledgerly",
|
|
121
121
|
"domain": "ledgerly.example"
|
|
@@ -149,9 +149,11 @@
|
|
|
149
149
|
"endpoint": "https://ledgerly.example/poppy/feedback"
|
|
150
150
|
},
|
|
151
151
|
"extensions": {
|
|
152
|
-
"operations":
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
"operations": [
|
|
153
|
+
{
|
|
154
|
+
"version": "2"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
159
|
}
|
|
@@ -205,6 +207,7 @@
|
|
|
205
207
|
"authorization_code",
|
|
206
208
|
"urn:ietf:params:oauth:grant-type:device_code"
|
|
207
209
|
],
|
|
210
|
+
"token_endpoint_auth_methods_supported": ["private_key_jwt"],
|
|
208
211
|
"scopes_supported": ["books:read", "payments:write"],
|
|
209
212
|
"protected_resources": ["https://ledgerly.example"],
|
|
210
213
|
"authorization_endpoint": "https://ledgerly.example/oauth/authorize",
|
|
@@ -355,12 +358,7 @@
|
|
|
355
358
|
"client_name": "Atlas",
|
|
356
359
|
"jwks_uri": "https://atlas.example/jwks.json",
|
|
357
360
|
"redirect_uris": ["https://atlas.example/oauth/callback"],
|
|
358
|
-
"token_endpoint_auth_method": "private_key_jwt"
|
|
359
|
-
"extensions": {
|
|
360
|
-
"operations": {
|
|
361
|
-
"version": "2"
|
|
362
|
-
}
|
|
363
|
-
}
|
|
361
|
+
"token_endpoint_auth_method": "private_key_jwt"
|
|
364
362
|
}
|
|
365
363
|
}
|
|
366
364
|
},
|
|
@@ -504,7 +502,7 @@
|
|
|
504
502
|
},
|
|
505
503
|
{
|
|
506
504
|
"label": "Conversation",
|
|
507
|
-
"value": "
|
|
505
|
+
"value": "open · handoff none · agent · 2 events",
|
|
508
506
|
"group": "As a company to Atlas"
|
|
509
507
|
},
|
|
510
508
|
{
|
|
@@ -545,8 +543,8 @@
|
|
|
545
543
|
"poppy-session": "‹Session JWT›"
|
|
546
544
|
},
|
|
547
545
|
"body": {
|
|
546
|
+
"id": "req_isGVOx1vvk3h1jz4bwMfzA",
|
|
548
547
|
"message": {
|
|
549
|
-
"id": "msg_1",
|
|
550
548
|
"author": {
|
|
551
549
|
"type": "human"
|
|
552
550
|
},
|
|
@@ -566,7 +564,7 @@
|
|
|
566
564
|
"created_at": "2026-10-11T09:00:05Z",
|
|
567
565
|
"type": "message",
|
|
568
566
|
"message": {
|
|
569
|
-
"id": "
|
|
567
|
+
"id": "req_isGVOx1vvk3h1jz4bwMfzA",
|
|
570
568
|
"author": {
|
|
571
569
|
"type": "human"
|
|
572
570
|
},
|
|
@@ -577,20 +575,14 @@
|
|
|
577
575
|
{
|
|
578
576
|
"id": "evt_2",
|
|
579
577
|
"created_at": "2026-10-11T09:00:05Z",
|
|
580
|
-
"type": "state",
|
|
581
|
-
"status": "working",
|
|
582
|
-
"responder": "agent"
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
"id": "evt_3",
|
|
586
|
-
"created_at": "2026-10-11T09:00:05Z",
|
|
587
578
|
"type": "message",
|
|
588
579
|
"message": {
|
|
589
|
-
"id": "
|
|
580
|
+
"id": "msg_1",
|
|
590
581
|
"author": {
|
|
591
582
|
"type": "agent"
|
|
592
583
|
},
|
|
593
584
|
"role": "company",
|
|
585
|
+
"as_of_request": "req_isGVOx1vvk3h1jz4bwMfzA",
|
|
594
586
|
"text": "To pay from your Northwind account, let Ledgerly connect to it: open https://northwind.example/device and enter the code shown with this message. Tell me when done.",
|
|
595
587
|
"data": {
|
|
596
588
|
"connect": {
|
|
@@ -600,19 +592,14 @@
|
|
|
600
592
|
}
|
|
601
593
|
}
|
|
602
594
|
}
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
"id": "evt_4",
|
|
606
|
-
"created_at": "2026-10-11T09:00:05Z",
|
|
607
|
-
"type": "state",
|
|
608
|
-
"status": "idle",
|
|
609
|
-
"responder": "agent"
|
|
610
595
|
}
|
|
611
596
|
],
|
|
612
|
-
"cursor": "
|
|
597
|
+
"cursor": "evt_2",
|
|
613
598
|
"has_more": false,
|
|
614
|
-
"
|
|
615
|
-
"
|
|
599
|
+
"working": false,
|
|
600
|
+
"handoff": "none",
|
|
601
|
+
"responder": "agent",
|
|
602
|
+
"closed": false
|
|
616
603
|
}
|
|
617
604
|
}
|
|
618
605
|
},
|
|
@@ -633,7 +620,7 @@
|
|
|
633
620
|
"content-type": "application/json"
|
|
634
621
|
},
|
|
635
622
|
"body": {
|
|
636
|
-
"protocol_version": "0.
|
|
623
|
+
"protocol_version": "0.4",
|
|
637
624
|
"organization": {
|
|
638
625
|
"name": "Northwind Bank",
|
|
639
626
|
"domain": "northwind.example"
|
|
@@ -670,25 +657,29 @@
|
|
|
670
657
|
"url": "https://northwind.example/poppy/excluded-tasks.json"
|
|
671
658
|
},
|
|
672
659
|
"extensions": {
|
|
673
|
-
"operations":
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
660
|
+
"operations": [
|
|
661
|
+
{
|
|
662
|
+
"version": "2"
|
|
663
|
+
}
|
|
664
|
+
],
|
|
665
|
+
"mediated-sign-in": [
|
|
666
|
+
{
|
|
667
|
+
"version": "1",
|
|
668
|
+
"fields": [
|
|
669
|
+
{
|
|
670
|
+
"name": "account_number",
|
|
671
|
+
"label": "Account number",
|
|
672
|
+
"secret": false
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"name": "pin",
|
|
676
|
+
"label": "PIN",
|
|
677
|
+
"secret": true
|
|
678
|
+
}
|
|
679
|
+
],
|
|
680
|
+
"scopes": ["accounts:read"]
|
|
681
|
+
}
|
|
682
|
+
]
|
|
692
683
|
}
|
|
693
684
|
}
|
|
694
685
|
}
|
|
@@ -743,6 +734,7 @@
|
|
|
743
734
|
"urn:ietf:params:oauth:grant-type:device_code",
|
|
744
735
|
"https://personalagentprotocol.org/grant/mediated-sign-in"
|
|
745
736
|
],
|
|
737
|
+
"token_endpoint_auth_methods_supported": ["private_key_jwt"],
|
|
746
738
|
"scopes_supported": ["accounts:read", "payments:write"],
|
|
747
739
|
"protected_resources": ["https://northwind.example"],
|
|
748
740
|
"authorization_endpoint": "https://northwind.example/oauth/authorize",
|
|
@@ -807,12 +799,7 @@
|
|
|
807
799
|
"client_name": "Ledgerly",
|
|
808
800
|
"jwks_uri": "https://ledgerly.example/jwks.json",
|
|
809
801
|
"redirect_uris": ["https://ledgerly.example/oauth/callback"],
|
|
810
|
-
"token_endpoint_auth_method": "private_key_jwt"
|
|
811
|
-
"extensions": {
|
|
812
|
-
"operations": {
|
|
813
|
-
"version": "2"
|
|
814
|
-
}
|
|
815
|
-
}
|
|
802
|
+
"token_endpoint_auth_method": "private_key_jwt"
|
|
816
803
|
}
|
|
817
804
|
}
|
|
818
805
|
},
|
|
@@ -912,7 +899,7 @@
|
|
|
912
899
|
},
|
|
913
900
|
{
|
|
914
901
|
"label": "Conversation",
|
|
915
|
-
"value": "
|
|
902
|
+
"value": "open · handoff none · agent · 2 events",
|
|
916
903
|
"group": "As a company to Atlas"
|
|
917
904
|
},
|
|
918
905
|
{
|
|
@@ -1019,7 +1006,7 @@
|
|
|
1019
1006
|
},
|
|
1020
1007
|
{
|
|
1021
1008
|
"label": "Conversation",
|
|
1022
|
-
"value": "
|
|
1009
|
+
"value": "open · handoff none · agent · 4 events",
|
|
1023
1010
|
"group": "As a company to Atlas"
|
|
1024
1011
|
},
|
|
1025
1012
|
{
|
|
@@ -1061,7 +1048,7 @@
|
|
|
1061
1048
|
},
|
|
1062
1049
|
{
|
|
1063
1050
|
"label": "Conversation",
|
|
1064
|
-
"value": "
|
|
1051
|
+
"value": "open · handoff none · agent · 2 events"
|
|
1065
1052
|
},
|
|
1066
1053
|
{
|
|
1067
1054
|
"label": "Operation payments.transfer",
|
|
@@ -1075,7 +1062,7 @@
|
|
|
1075
1062
|
"from": "atlas",
|
|
1076
1063
|
"to": "ledgerly",
|
|
1077
1064
|
"method": "POST",
|
|
1078
|
-
"url": "https://ledgerly.example/poppy/conversations/cnv_1/messages?cursor=
|
|
1065
|
+
"url": "https://ledgerly.example/poppy/conversations/cnv_1/messages?cursor=evt_2&wait=0",
|
|
1079
1066
|
"status": 202,
|
|
1080
1067
|
"request": {
|
|
1081
1068
|
"headers": {
|
|
@@ -1085,8 +1072,8 @@
|
|
|
1085
1072
|
"poppy-session": "‹Session JWT›"
|
|
1086
1073
|
},
|
|
1087
1074
|
"body": {
|
|
1075
|
+
"id": "req_y8FmA8b2T7PHObFb23bPfw",
|
|
1088
1076
|
"message": {
|
|
1089
|
-
"id": "msg_3",
|
|
1090
1077
|
"author": {
|
|
1091
1078
|
"type": "human"
|
|
1092
1079
|
},
|
|
@@ -1102,11 +1089,11 @@
|
|
|
1102
1089
|
"conversation_id": "cnv_1",
|
|
1103
1090
|
"events": [
|
|
1104
1091
|
{
|
|
1105
|
-
"id": "
|
|
1092
|
+
"id": "evt_3",
|
|
1106
1093
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1107
1094
|
"type": "message",
|
|
1108
1095
|
"message": {
|
|
1109
|
-
"id": "
|
|
1096
|
+
"id": "req_y8FmA8b2T7PHObFb23bPfw",
|
|
1110
1097
|
"author": {
|
|
1111
1098
|
"type": "human"
|
|
1112
1099
|
},
|
|
@@ -1115,54 +1102,47 @@
|
|
|
1115
1102
|
}
|
|
1116
1103
|
},
|
|
1117
1104
|
{
|
|
1118
|
-
"id": "
|
|
1119
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1120
|
-
"type": "state",
|
|
1121
|
-
"status": "working",
|
|
1122
|
-
"responder": "agent"
|
|
1123
|
-
},
|
|
1124
|
-
{
|
|
1125
|
-
"id": "evt_7",
|
|
1105
|
+
"id": "evt_4",
|
|
1126
1106
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1127
1107
|
"type": "message",
|
|
1128
1108
|
"message": {
|
|
1129
|
-
"id": "
|
|
1109
|
+
"id": "msg_2",
|
|
1130
1110
|
"author": {
|
|
1131
1111
|
"type": "agent"
|
|
1132
1112
|
},
|
|
1133
1113
|
"role": "company",
|
|
1114
|
+
"as_of_request": "req_y8FmA8b2T7PHObFb23bPfw",
|
|
1134
1115
|
"text": "Northwind Bank asks approval for this payment.",
|
|
1135
|
-
"
|
|
1136
|
-
"
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1116
|
+
"extensions": {
|
|
1117
|
+
"operations": {
|
|
1118
|
+
"operation": {
|
|
1119
|
+
"operation_id": "op_1",
|
|
1120
|
+
"revision": "rev_1",
|
|
1121
|
+
"summary": "At Northwind Bank: Pay EUR 1250.00 to Acme GmbH for INV-0042 from the current account DE89 3704 0044 0532 0130 00, today. Payments cannot be recalled once sent.",
|
|
1122
|
+
"terms": {
|
|
1123
|
+
"northwind_operation_id": "op_2",
|
|
1124
|
+
"northwind_revision": "rev_2",
|
|
1125
|
+
"amount": {
|
|
1126
|
+
"amount": "1250.00",
|
|
1127
|
+
"currency": "EUR"
|
|
1128
|
+
},
|
|
1129
|
+
"payee": "Acme GmbH",
|
|
1130
|
+
"reference": "INV-0042",
|
|
1131
|
+
"from_account": "DE89 3704 0044 0532 0130 00"
|
|
1132
|
+
},
|
|
1133
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1151
1136
|
}
|
|
1152
1137
|
}
|
|
1153
|
-
},
|
|
1154
|
-
{
|
|
1155
|
-
"id": "evt_8",
|
|
1156
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1157
|
-
"type": "state",
|
|
1158
|
-
"status": "idle",
|
|
1159
|
-
"responder": "agent"
|
|
1160
1138
|
}
|
|
1161
1139
|
],
|
|
1162
|
-
"cursor": "
|
|
1140
|
+
"cursor": "evt_4",
|
|
1163
1141
|
"has_more": false,
|
|
1164
|
-
"
|
|
1165
|
-
"
|
|
1142
|
+
"working": false,
|
|
1143
|
+
"handoff": "none",
|
|
1144
|
+
"responder": "agent",
|
|
1145
|
+
"closed": false
|
|
1166
1146
|
}
|
|
1167
1147
|
}
|
|
1168
1148
|
},
|
|
@@ -1215,8 +1195,8 @@
|
|
|
1215
1195
|
"poppy-session": "‹Session JWT›"
|
|
1216
1196
|
},
|
|
1217
1197
|
"body": {
|
|
1198
|
+
"id": "req_22gRTYwagFoSZ3ml8DLRmA",
|
|
1218
1199
|
"message": {
|
|
1219
|
-
"id": "msg_5",
|
|
1220
1200
|
"author": {
|
|
1221
1201
|
"type": "agent"
|
|
1222
1202
|
},
|
|
@@ -1232,11 +1212,11 @@
|
|
|
1232
1212
|
"conversation_id": "cnv_2",
|
|
1233
1213
|
"events": [
|
|
1234
1214
|
{
|
|
1235
|
-
"id": "
|
|
1215
|
+
"id": "evt_5",
|
|
1236
1216
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1237
1217
|
"type": "message",
|
|
1238
1218
|
"message": {
|
|
1239
|
-
"id": "
|
|
1219
|
+
"id": "req_22gRTYwagFoSZ3ml8DLRmA",
|
|
1240
1220
|
"author": {
|
|
1241
1221
|
"type": "agent"
|
|
1242
1222
|
},
|
|
@@ -1245,52 +1225,45 @@
|
|
|
1245
1225
|
}
|
|
1246
1226
|
},
|
|
1247
1227
|
{
|
|
1248
|
-
"id": "
|
|
1249
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1250
|
-
"type": "state",
|
|
1251
|
-
"status": "working",
|
|
1252
|
-
"responder": "agent"
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
"id": "evt_11",
|
|
1228
|
+
"id": "evt_6",
|
|
1256
1229
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1257
1230
|
"type": "message",
|
|
1258
1231
|
"message": {
|
|
1259
|
-
"id": "
|
|
1232
|
+
"id": "msg_3",
|
|
1260
1233
|
"author": {
|
|
1261
1234
|
"type": "agent"
|
|
1262
1235
|
},
|
|
1263
1236
|
"role": "company",
|
|
1237
|
+
"as_of_request": "req_22gRTYwagFoSZ3ml8DLRmA",
|
|
1264
1238
|
"text": "Ready to pay INV-0042.",
|
|
1265
|
-
"
|
|
1266
|
-
"
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
"
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1239
|
+
"extensions": {
|
|
1240
|
+
"operations": {
|
|
1241
|
+
"operation": {
|
|
1242
|
+
"operation_id": "op_2",
|
|
1243
|
+
"revision": "rev_2",
|
|
1244
|
+
"summary": "Pay EUR 1250.00 to Acme GmbH for INV-0042 from the current account DE89 3704 0044 0532 0130 00, today. Payments cannot be recalled once sent.",
|
|
1245
|
+
"terms": {
|
|
1246
|
+
"amount": {
|
|
1247
|
+
"amount": "1250.00",
|
|
1248
|
+
"currency": "EUR"
|
|
1249
|
+
},
|
|
1250
|
+
"payee": "Acme GmbH",
|
|
1251
|
+
"reference": "INV-0042",
|
|
1252
|
+
"from_account": "DE89 3704 0044 0532 0130 00"
|
|
1253
|
+
},
|
|
1254
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1279
1257
|
}
|
|
1280
1258
|
}
|
|
1281
|
-
},
|
|
1282
|
-
{
|
|
1283
|
-
"id": "evt_12",
|
|
1284
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1285
|
-
"type": "state",
|
|
1286
|
-
"status": "idle",
|
|
1287
|
-
"responder": "agent"
|
|
1288
1259
|
}
|
|
1289
1260
|
],
|
|
1290
|
-
"cursor": "
|
|
1261
|
+
"cursor": "evt_6",
|
|
1291
1262
|
"has_more": false,
|
|
1292
|
-
"
|
|
1293
|
-
"
|
|
1263
|
+
"working": false,
|
|
1264
|
+
"handoff": "none",
|
|
1265
|
+
"responder": "agent",
|
|
1266
|
+
"closed": false
|
|
1294
1267
|
}
|
|
1295
1268
|
}
|
|
1296
1269
|
}
|
|
@@ -1365,7 +1338,7 @@
|
|
|
1365
1338
|
},
|
|
1366
1339
|
{
|
|
1367
1340
|
"label": "Conversation",
|
|
1368
|
-
"value": "
|
|
1341
|
+
"value": "open · handoff none · agent · 6 events",
|
|
1369
1342
|
"group": "As a company to Atlas"
|
|
1370
1343
|
},
|
|
1371
1344
|
{
|
|
@@ -1407,7 +1380,7 @@
|
|
|
1407
1380
|
},
|
|
1408
1381
|
{
|
|
1409
1382
|
"label": "Conversation",
|
|
1410
|
-
"value": "
|
|
1383
|
+
"value": "open · handoff none · agent · 4 events"
|
|
1411
1384
|
},
|
|
1412
1385
|
{
|
|
1413
1386
|
"label": "Operation payments.transfer",
|
|
@@ -1427,7 +1400,7 @@
|
|
|
1427
1400
|
"from": "atlas",
|
|
1428
1401
|
"to": "ledgerly",
|
|
1429
1402
|
"method": "POST",
|
|
1430
|
-
"url": "https://ledgerly.example/poppy/conversations/cnv_1/messages?cursor=
|
|
1403
|
+
"url": "https://ledgerly.example/poppy/conversations/cnv_1/messages?cursor=evt_4&wait=0",
|
|
1431
1404
|
"status": 202,
|
|
1432
1405
|
"request": {
|
|
1433
1406
|
"headers": {
|
|
@@ -1437,14 +1410,19 @@
|
|
|
1437
1410
|
"poppy-session": "‹Session JWT›"
|
|
1438
1411
|
},
|
|
1439
1412
|
"body": {
|
|
1413
|
+
"id": "req_xUzra5hgAoTheFL4XhYniA",
|
|
1440
1414
|
"message": {
|
|
1441
|
-
"id": "msg_7",
|
|
1442
1415
|
"author": {
|
|
1443
1416
|
"type": "agent"
|
|
1444
1417
|
},
|
|
1445
|
-
"
|
|
1446
|
-
"
|
|
1447
|
-
|
|
1418
|
+
"extensions": {
|
|
1419
|
+
"operations": {
|
|
1420
|
+
"approval": {
|
|
1421
|
+
"operation_id": "op_1",
|
|
1422
|
+
"revision": "rev_1",
|
|
1423
|
+
"approved_at": 1791709210
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1448
1426
|
}
|
|
1449
1427
|
}
|
|
1450
1428
|
}
|
|
@@ -1457,56 +1435,50 @@
|
|
|
1457
1435
|
"conversation_id": "cnv_1",
|
|
1458
1436
|
"events": [
|
|
1459
1437
|
{
|
|
1460
|
-
"id": "
|
|
1438
|
+
"id": "evt_7",
|
|
1461
1439
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1462
1440
|
"type": "message",
|
|
1463
1441
|
"message": {
|
|
1464
|
-
"id": "
|
|
1442
|
+
"id": "req_xUzra5hgAoTheFL4XhYniA",
|
|
1465
1443
|
"author": {
|
|
1466
1444
|
"type": "agent"
|
|
1467
1445
|
},
|
|
1468
|
-
"
|
|
1469
|
-
"
|
|
1470
|
-
|
|
1446
|
+
"extensions": {
|
|
1447
|
+
"operations": {
|
|
1448
|
+
"approval": {
|
|
1449
|
+
"operation_id": "op_1",
|
|
1450
|
+
"revision": "rev_1",
|
|
1451
|
+
"approved_at": 1791709210
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1471
1454
|
},
|
|
1472
1455
|
"role": "user"
|
|
1473
1456
|
}
|
|
1474
1457
|
},
|
|
1475
1458
|
{
|
|
1476
|
-
"id": "
|
|
1477
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1478
|
-
"type": "state",
|
|
1479
|
-
"status": "working",
|
|
1480
|
-
"responder": "agent"
|
|
1481
|
-
},
|
|
1482
|
-
{
|
|
1483
|
-
"id": "evt_15",
|
|
1459
|
+
"id": "evt_8",
|
|
1484
1460
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1485
1461
|
"type": "message",
|
|
1486
1462
|
"message": {
|
|
1487
|
-
"id": "
|
|
1463
|
+
"id": "msg_4",
|
|
1488
1464
|
"author": {
|
|
1489
1465
|
"type": "agent"
|
|
1490
1466
|
},
|
|
1491
1467
|
"role": "company",
|
|
1468
|
+
"as_of_request": "req_xUzra5hgAoTheFL4XhYniA",
|
|
1492
1469
|
"text": "Northwind Bank: Sent EUR 1250.00 to Acme GmbH for INV-0042 from DE89 3704 0044 0532 0130 00. Bank reference NW-0001.",
|
|
1493
1470
|
"data": {
|
|
1494
1471
|
"bank_reference": "NW-0001"
|
|
1495
1472
|
}
|
|
1496
1473
|
}
|
|
1497
|
-
},
|
|
1498
|
-
{
|
|
1499
|
-
"id": "evt_16",
|
|
1500
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1501
|
-
"type": "state",
|
|
1502
|
-
"status": "idle",
|
|
1503
|
-
"responder": "agent"
|
|
1504
1474
|
}
|
|
1505
1475
|
],
|
|
1506
|
-
"cursor": "
|
|
1476
|
+
"cursor": "evt_8",
|
|
1507
1477
|
"has_more": false,
|
|
1508
|
-
"
|
|
1509
|
-
"
|
|
1478
|
+
"working": false,
|
|
1479
|
+
"handoff": "none",
|
|
1480
|
+
"responder": "agent",
|
|
1481
|
+
"closed": false
|
|
1510
1482
|
}
|
|
1511
1483
|
}
|
|
1512
1484
|
},
|
|
@@ -1525,14 +1497,18 @@
|
|
|
1525
1497
|
"poppy-session": "‹Session JWT›"
|
|
1526
1498
|
},
|
|
1527
1499
|
"body": {
|
|
1500
|
+
"id": "req_ozy9jN8k5JHxbfNkZziwfA",
|
|
1528
1501
|
"message": {
|
|
1529
|
-
"id": "msg_9",
|
|
1530
1502
|
"author": {
|
|
1531
1503
|
"type": "agent"
|
|
1532
1504
|
},
|
|
1533
|
-
"
|
|
1534
|
-
"
|
|
1535
|
-
|
|
1505
|
+
"extensions": {
|
|
1506
|
+
"operations": {
|
|
1507
|
+
"approval": {
|
|
1508
|
+
"operation_id": "op_2",
|
|
1509
|
+
"revision": "rev_2"
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1536
1512
|
}
|
|
1537
1513
|
}
|
|
1538
1514
|
}
|
|
@@ -1545,11 +1521,11 @@
|
|
|
1545
1521
|
"conversation_id": "cnv_2",
|
|
1546
1522
|
"events": [
|
|
1547
1523
|
{
|
|
1548
|
-
"id": "
|
|
1524
|
+
"id": "evt_5",
|
|
1549
1525
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1550
1526
|
"type": "message",
|
|
1551
1527
|
"message": {
|
|
1552
|
-
"id": "
|
|
1528
|
+
"id": "req_22gRTYwagFoSZ3ml8DLRmA",
|
|
1553
1529
|
"author": {
|
|
1554
1530
|
"type": "agent"
|
|
1555
1531
|
},
|
|
@@ -1558,98 +1534,82 @@
|
|
|
1558
1534
|
}
|
|
1559
1535
|
},
|
|
1560
1536
|
{
|
|
1561
|
-
"id": "
|
|
1562
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1563
|
-
"type": "state",
|
|
1564
|
-
"status": "working",
|
|
1565
|
-
"responder": "agent"
|
|
1566
|
-
},
|
|
1567
|
-
{
|
|
1568
|
-
"id": "evt_11",
|
|
1537
|
+
"id": "evt_6",
|
|
1569
1538
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1570
1539
|
"type": "message",
|
|
1571
1540
|
"message": {
|
|
1572
|
-
"id": "
|
|
1541
|
+
"id": "msg_3",
|
|
1573
1542
|
"author": {
|
|
1574
1543
|
"type": "agent"
|
|
1575
1544
|
},
|
|
1576
1545
|
"role": "company",
|
|
1546
|
+
"as_of_request": "req_22gRTYwagFoSZ3ml8DLRmA",
|
|
1577
1547
|
"text": "Ready to pay INV-0042.",
|
|
1578
|
-
"
|
|
1579
|
-
"
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
"
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1548
|
+
"extensions": {
|
|
1549
|
+
"operations": {
|
|
1550
|
+
"operation": {
|
|
1551
|
+
"operation_id": "op_2",
|
|
1552
|
+
"revision": "rev_2",
|
|
1553
|
+
"summary": "Pay EUR 1250.00 to Acme GmbH for INV-0042 from the current account DE89 3704 0044 0532 0130 00, today. Payments cannot be recalled once sent.",
|
|
1554
|
+
"terms": {
|
|
1555
|
+
"amount": {
|
|
1556
|
+
"amount": "1250.00",
|
|
1557
|
+
"currency": "EUR"
|
|
1558
|
+
},
|
|
1559
|
+
"payee": "Acme GmbH",
|
|
1560
|
+
"reference": "INV-0042",
|
|
1561
|
+
"from_account": "DE89 3704 0044 0532 0130 00"
|
|
1562
|
+
},
|
|
1563
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1592
1566
|
}
|
|
1593
1567
|
}
|
|
1594
1568
|
},
|
|
1595
1569
|
{
|
|
1596
|
-
"id": "
|
|
1597
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1598
|
-
"type": "state",
|
|
1599
|
-
"status": "idle",
|
|
1600
|
-
"responder": "agent"
|
|
1601
|
-
},
|
|
1602
|
-
{
|
|
1603
|
-
"id": "evt_17",
|
|
1570
|
+
"id": "evt_9",
|
|
1604
1571
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1605
1572
|
"type": "message",
|
|
1606
1573
|
"message": {
|
|
1607
|
-
"id": "
|
|
1574
|
+
"id": "req_ozy9jN8k5JHxbfNkZziwfA",
|
|
1608
1575
|
"author": {
|
|
1609
1576
|
"type": "agent"
|
|
1610
1577
|
},
|
|
1611
|
-
"
|
|
1612
|
-
"
|
|
1613
|
-
|
|
1578
|
+
"extensions": {
|
|
1579
|
+
"operations": {
|
|
1580
|
+
"approval": {
|
|
1581
|
+
"operation_id": "op_2",
|
|
1582
|
+
"revision": "rev_2"
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1614
1585
|
},
|
|
1615
1586
|
"role": "user"
|
|
1616
1587
|
}
|
|
1617
1588
|
},
|
|
1618
1589
|
{
|
|
1619
|
-
"id": "
|
|
1620
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1621
|
-
"type": "state",
|
|
1622
|
-
"status": "working",
|
|
1623
|
-
"responder": "agent"
|
|
1624
|
-
},
|
|
1625
|
-
{
|
|
1626
|
-
"id": "evt_19",
|
|
1590
|
+
"id": "evt_10",
|
|
1627
1591
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1628
1592
|
"type": "message",
|
|
1629
1593
|
"message": {
|
|
1630
|
-
"id": "
|
|
1594
|
+
"id": "msg_5",
|
|
1631
1595
|
"author": {
|
|
1632
1596
|
"type": "agent"
|
|
1633
1597
|
},
|
|
1634
1598
|
"role": "company",
|
|
1599
|
+
"as_of_request": "req_ozy9jN8k5JHxbfNkZziwfA",
|
|
1635
1600
|
"text": "Sent EUR 1250.00 to Acme GmbH for INV-0042 from DE89 3704 0044 0532 0130 00. Bank reference NW-0001.",
|
|
1636
1601
|
"data": {
|
|
1637
1602
|
"bank_reference": "NW-0001"
|
|
1638
1603
|
}
|
|
1639
1604
|
}
|
|
1640
|
-
},
|
|
1641
|
-
{
|
|
1642
|
-
"id": "evt_20",
|
|
1643
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1644
|
-
"type": "state",
|
|
1645
|
-
"status": "idle",
|
|
1646
|
-
"responder": "agent"
|
|
1647
1605
|
}
|
|
1648
1606
|
],
|
|
1649
|
-
"cursor": "
|
|
1607
|
+
"cursor": "evt_10",
|
|
1650
1608
|
"has_more": false,
|
|
1651
|
-
"
|
|
1652
|
-
"
|
|
1609
|
+
"working": false,
|
|
1610
|
+
"handoff": "none",
|
|
1611
|
+
"responder": "agent",
|
|
1612
|
+
"closed": false
|
|
1653
1613
|
}
|
|
1654
1614
|
}
|
|
1655
1615
|
}
|
|
@@ -1728,7 +1688,7 @@
|
|
|
1728
1688
|
},
|
|
1729
1689
|
{
|
|
1730
1690
|
"label": "Conversation",
|
|
1731
|
-
"value": "
|
|
1691
|
+
"value": "open · handoff none · agent · 8 events",
|
|
1732
1692
|
"group": "As a company to Atlas"
|
|
1733
1693
|
},
|
|
1734
1694
|
{
|
|
@@ -1775,11 +1735,11 @@
|
|
|
1775
1735
|
},
|
|
1776
1736
|
{
|
|
1777
1737
|
"label": "Conversation",
|
|
1778
|
-
"value": "
|
|
1738
|
+
"value": "open · handoff none · agent · 4 events"
|
|
1779
1739
|
},
|
|
1780
1740
|
{
|
|
1781
1741
|
"label": "Conversation",
|
|
1782
|
-
"value": "
|
|
1742
|
+
"value": "open · handoff none · agent · 2 events"
|
|
1783
1743
|
},
|
|
1784
1744
|
{
|
|
1785
1745
|
"label": "Operation payments.transfer",
|
|
@@ -1797,7 +1757,7 @@
|
|
|
1797
1757
|
"from": "atlas",
|
|
1798
1758
|
"to": "ledgerly",
|
|
1799
1759
|
"method": "POST",
|
|
1800
|
-
"url": "https://ledgerly.example/poppy/conversations/cnv_1/messages?cursor=
|
|
1760
|
+
"url": "https://ledgerly.example/poppy/conversations/cnv_1/messages?cursor=evt_8&wait=0",
|
|
1801
1761
|
"status": 202,
|
|
1802
1762
|
"request": {
|
|
1803
1763
|
"headers": {
|
|
@@ -1807,8 +1767,8 @@
|
|
|
1807
1767
|
"poppy-session": "‹Session JWT›"
|
|
1808
1768
|
},
|
|
1809
1769
|
"body": {
|
|
1770
|
+
"id": "req_xaabhAV7X80xJ8zZO3FJ8A",
|
|
1810
1771
|
"message": {
|
|
1811
|
-
"id": "msg_11",
|
|
1812
1772
|
"author": {
|
|
1813
1773
|
"type": "human"
|
|
1814
1774
|
},
|
|
@@ -1824,11 +1784,11 @@
|
|
|
1824
1784
|
"conversation_id": "cnv_1",
|
|
1825
1785
|
"events": [
|
|
1826
1786
|
{
|
|
1827
|
-
"id": "
|
|
1787
|
+
"id": "evt_11",
|
|
1828
1788
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1829
1789
|
"type": "message",
|
|
1830
1790
|
"message": {
|
|
1831
|
-
"id": "
|
|
1791
|
+
"id": "req_xaabhAV7X80xJ8zZO3FJ8A",
|
|
1832
1792
|
"author": {
|
|
1833
1793
|
"type": "human"
|
|
1834
1794
|
},
|
|
@@ -1837,54 +1797,47 @@
|
|
|
1837
1797
|
}
|
|
1838
1798
|
},
|
|
1839
1799
|
{
|
|
1840
|
-
"id": "
|
|
1841
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1842
|
-
"type": "state",
|
|
1843
|
-
"status": "working",
|
|
1844
|
-
"responder": "agent"
|
|
1845
|
-
},
|
|
1846
|
-
{
|
|
1847
|
-
"id": "evt_23",
|
|
1800
|
+
"id": "evt_12",
|
|
1848
1801
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1849
1802
|
"type": "message",
|
|
1850
1803
|
"message": {
|
|
1851
|
-
"id": "
|
|
1804
|
+
"id": "msg_6",
|
|
1852
1805
|
"author": {
|
|
1853
1806
|
"type": "agent"
|
|
1854
1807
|
},
|
|
1855
1808
|
"role": "company",
|
|
1809
|
+
"as_of_request": "req_xaabhAV7X80xJ8zZO3FJ8A",
|
|
1856
1810
|
"text": "Northwind Bank asks approval for this payment.",
|
|
1857
|
-
"
|
|
1858
|
-
"
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1811
|
+
"extensions": {
|
|
1812
|
+
"operations": {
|
|
1813
|
+
"operation": {
|
|
1814
|
+
"operation_id": "op_3",
|
|
1815
|
+
"revision": "rev_3",
|
|
1816
|
+
"summary": "At Northwind Bank: Pay EUR 980.00 to Acme GmbH for INV-0043 from the current account DE89 3704 0044 0532 0130 00, today. Payments cannot be recalled once sent.",
|
|
1817
|
+
"terms": {
|
|
1818
|
+
"northwind_operation_id": "op_4",
|
|
1819
|
+
"northwind_revision": "rev_4",
|
|
1820
|
+
"amount": {
|
|
1821
|
+
"amount": "980.00",
|
|
1822
|
+
"currency": "EUR"
|
|
1823
|
+
},
|
|
1824
|
+
"payee": "Acme GmbH",
|
|
1825
|
+
"reference": "INV-0043",
|
|
1826
|
+
"from_account": "DE89 3704 0044 0532 0130 00"
|
|
1827
|
+
},
|
|
1828
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1873
1831
|
}
|
|
1874
1832
|
}
|
|
1875
|
-
},
|
|
1876
|
-
{
|
|
1877
|
-
"id": "evt_24",
|
|
1878
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1879
|
-
"type": "state",
|
|
1880
|
-
"status": "idle",
|
|
1881
|
-
"responder": "agent"
|
|
1882
1833
|
}
|
|
1883
1834
|
],
|
|
1884
|
-
"cursor": "
|
|
1835
|
+
"cursor": "evt_12",
|
|
1885
1836
|
"has_more": false,
|
|
1886
|
-
"
|
|
1887
|
-
"
|
|
1837
|
+
"working": false,
|
|
1838
|
+
"handoff": "none",
|
|
1839
|
+
"responder": "agent",
|
|
1840
|
+
"closed": false
|
|
1888
1841
|
}
|
|
1889
1842
|
}
|
|
1890
1843
|
},
|
|
@@ -1903,8 +1856,8 @@
|
|
|
1903
1856
|
"poppy-session": "‹Session JWT›"
|
|
1904
1857
|
},
|
|
1905
1858
|
"body": {
|
|
1859
|
+
"id": "req_NifQ6-CIbcGOFlajTc3qRQ",
|
|
1906
1860
|
"message": {
|
|
1907
|
-
"id": "msg_13",
|
|
1908
1861
|
"author": {
|
|
1909
1862
|
"type": "agent"
|
|
1910
1863
|
},
|
|
@@ -1920,11 +1873,11 @@
|
|
|
1920
1873
|
"conversation_id": "cnv_3",
|
|
1921
1874
|
"events": [
|
|
1922
1875
|
{
|
|
1923
|
-
"id": "
|
|
1876
|
+
"id": "evt_13",
|
|
1924
1877
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1925
1878
|
"type": "message",
|
|
1926
1879
|
"message": {
|
|
1927
|
-
"id": "
|
|
1880
|
+
"id": "req_NifQ6-CIbcGOFlajTc3qRQ",
|
|
1928
1881
|
"author": {
|
|
1929
1882
|
"type": "agent"
|
|
1930
1883
|
},
|
|
@@ -1933,52 +1886,45 @@
|
|
|
1933
1886
|
}
|
|
1934
1887
|
},
|
|
1935
1888
|
{
|
|
1936
|
-
"id": "
|
|
1937
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1938
|
-
"type": "state",
|
|
1939
|
-
"status": "working",
|
|
1940
|
-
"responder": "agent"
|
|
1941
|
-
},
|
|
1942
|
-
{
|
|
1943
|
-
"id": "evt_27",
|
|
1889
|
+
"id": "evt_14",
|
|
1944
1890
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1945
1891
|
"type": "message",
|
|
1946
1892
|
"message": {
|
|
1947
|
-
"id": "
|
|
1893
|
+
"id": "msg_7",
|
|
1948
1894
|
"author": {
|
|
1949
1895
|
"type": "agent"
|
|
1950
1896
|
},
|
|
1951
1897
|
"role": "company",
|
|
1898
|
+
"as_of_request": "req_NifQ6-CIbcGOFlajTc3qRQ",
|
|
1952
1899
|
"text": "Ready to pay INV-0043.",
|
|
1953
|
-
"
|
|
1954
|
-
"
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
"
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1900
|
+
"extensions": {
|
|
1901
|
+
"operations": {
|
|
1902
|
+
"operation": {
|
|
1903
|
+
"operation_id": "op_4",
|
|
1904
|
+
"revision": "rev_4",
|
|
1905
|
+
"summary": "Pay EUR 980.00 to Acme GmbH for INV-0043 from the current account DE89 3704 0044 0532 0130 00, today. Payments cannot be recalled once sent.",
|
|
1906
|
+
"terms": {
|
|
1907
|
+
"amount": {
|
|
1908
|
+
"amount": "980.00",
|
|
1909
|
+
"currency": "EUR"
|
|
1910
|
+
},
|
|
1911
|
+
"payee": "Acme GmbH",
|
|
1912
|
+
"reference": "INV-0043",
|
|
1913
|
+
"from_account": "DE89 3704 0044 0532 0130 00"
|
|
1914
|
+
},
|
|
1915
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1967
1918
|
}
|
|
1968
1919
|
}
|
|
1969
|
-
},
|
|
1970
|
-
{
|
|
1971
|
-
"id": "evt_28",
|
|
1972
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1973
|
-
"type": "state",
|
|
1974
|
-
"status": "idle",
|
|
1975
|
-
"responder": "agent"
|
|
1976
1920
|
}
|
|
1977
1921
|
],
|
|
1978
|
-
"cursor": "
|
|
1922
|
+
"cursor": "evt_14",
|
|
1979
1923
|
"has_more": false,
|
|
1980
|
-
"
|
|
1981
|
-
"
|
|
1924
|
+
"working": false,
|
|
1925
|
+
"handoff": "none",
|
|
1926
|
+
"responder": "agent",
|
|
1927
|
+
"closed": false
|
|
1982
1928
|
}
|
|
1983
1929
|
}
|
|
1984
1930
|
}
|