@datalayer/agent-runtimes 1.5.115 → 1.5.118

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.
@@ -3,7 +3,7 @@
3
3
  "title": "Operations",
4
4
  "description": "Manzanita returns an exchange as an operation; Atlas asks Ada about every revision, and sends her approval of that exact revision, performed at most once.",
5
5
  "generator": "examples/personal-agent-protocol/traces/generate.py",
6
- "sdk": "personal-agent-protocol 0.29.0",
6
+ "sdk": "personal-agent-protocol 0.32.0",
7
7
  "parties": [
8
8
  {
9
9
  "id": "user",
@@ -86,7 +86,7 @@
86
86
  "content-type": "application/json"
87
87
  },
88
88
  "body": {
89
- "protocol_version": "0.3",
89
+ "protocol_version": "0.4",
90
90
  "organization": {
91
91
  "name": "Manzanita Outfitters",
92
92
  "domain": "manzanita.example"
@@ -103,7 +103,8 @@
103
103
  "issuer": "https://manzanita.example",
104
104
  "scopes": {
105
105
  "orders:read": "See your orders, returns and exchanges",
106
- "orders:write": "Exchange or return items in your orders"
106
+ "orders:write": "Exchange or return items in your orders",
107
+ "poppy:browser-sign-in": "Use the website signed in, with the other access you approve"
107
108
  },
108
109
  "scope_hints": {
109
110
  "orders:read": {
@@ -138,25 +139,44 @@
138
139
  "url": "https://manzanita.example/poppy/excluded-tasks.json"
139
140
  },
140
141
  "extensions": {
141
- "operations": {
142
- "version": "2"
143
- },
144
- "mediated-sign-in": {
145
- "version": "1",
146
- "fields": [
147
- {
148
- "name": "email",
149
- "label": "Email",
150
- "secret": false
151
- },
152
- {
153
- "name": "password",
154
- "label": "Password",
155
- "secret": true
156
- }
157
- ],
158
- "scopes": ["orders:read", "orders:write"]
159
- }
142
+ "operations": [
143
+ {
144
+ "version": "2"
145
+ }
146
+ ],
147
+ "links": [
148
+ {
149
+ "version": "1"
150
+ }
151
+ ],
152
+ "disclosures": [
153
+ {
154
+ "version": "1"
155
+ }
156
+ ],
157
+ "ucp": [
158
+ {
159
+ "version": "1"
160
+ }
161
+ ],
162
+ "mediated-sign-in": [
163
+ {
164
+ "version": "1",
165
+ "fields": [
166
+ {
167
+ "name": "email",
168
+ "label": "Email",
169
+ "secret": false
170
+ },
171
+ {
172
+ "name": "password",
173
+ "label": "Password",
174
+ "secret": true
175
+ }
176
+ ],
177
+ "scopes": ["orders:read", "orders:write"]
178
+ }
179
+ ]
160
180
  }
161
181
  }
162
182
  }
@@ -180,7 +200,11 @@
180
200
  "body": {
181
201
  "resource": "https://manzanita.example",
182
202
  "authorization_servers": ["https://manzanita.example"],
183
- "scopes_supported": ["orders:read", "orders:write"],
203
+ "scopes_supported": [
204
+ "orders:read",
205
+ "orders:write",
206
+ "poppy:browser-sign-in"
207
+ ],
184
208
  "bearer_methods_supported": ["header"]
185
209
  }
186
210
  }
@@ -211,7 +235,12 @@
211
235
  "urn:ietf:params:oauth:grant-type:device_code",
212
236
  "https://personalagentprotocol.org/grant/mediated-sign-in"
213
237
  ],
214
- "scopes_supported": ["orders:read", "orders:write"],
238
+ "token_endpoint_auth_methods_supported": ["private_key_jwt"],
239
+ "scopes_supported": [
240
+ "orders:read",
241
+ "orders:write",
242
+ "poppy:browser-sign-in"
243
+ ],
215
244
  "protected_resources": [
216
245
  "https://manzanita.example",
217
246
  "https://manzanita.example/mcp"
@@ -227,7 +256,7 @@
227
256
  {
228
257
  "title": "An operation",
229
258
  "channel": "Operations version 2",
230
- "summary": "Both sides list operations version 2 (negotiated: True). Signed in, Manzanita returns the exchange as an operation in its message: nothing is done, and only Ada can approve it.",
259
+ "summary": "The company lists operations version 2 and the Session declares it in Poppy-Extensions (negotiated: True). Signed in, Manzanita returns the exchange as an operation in its message: nothing is done, and only Ada can approve it.",
231
260
  "chat": [
232
261
  {
233
262
  "speaker": "manzanita",
@@ -293,7 +322,7 @@
293
322
  },
294
323
  {
295
324
  "label": "Conversation",
296
- "value": "idle · agent · 4 events"
325
+ "value": "open · handoff none · agent · 2 events"
297
326
  },
298
327
  {
299
328
  "label": "Operation orders.exchange",
@@ -358,12 +387,7 @@
358
387
  "client_name": "Atlas",
359
388
  "jwks_uri": "https://atlas.example/jwks.json",
360
389
  "redirect_uris": ["https://atlas.example/oauth/callback"],
361
- "token_endpoint_auth_method": "private_key_jwt",
362
- "extensions": {
363
- "operations": {
364
- "version": "2"
365
- }
366
- }
390
+ "token_endpoint_auth_method": "private_key_jwt"
367
391
  }
368
392
  }
369
393
  },
@@ -484,8 +508,8 @@
484
508
  "poppy-session": "‹Session JWT›"
485
509
  },
486
510
  "body": {
511
+ "id": "req_VZNyCiPYnHaUHqSwbgj7tw",
487
512
  "message": {
488
- "id": "msg_1",
489
513
  "author": {
490
514
  "type": "human"
491
515
  },
@@ -505,7 +529,7 @@
505
529
  "created_at": "2026-10-11T09:00:10Z",
506
530
  "type": "message",
507
531
  "message": {
508
- "id": "msg_1",
532
+ "id": "req_VZNyCiPYnHaUHqSwbgj7tw",
509
533
  "author": {
510
534
  "type": "human"
511
535
  },
@@ -516,20 +540,14 @@
516
540
  {
517
541
  "id": "evt_2",
518
542
  "created_at": "2026-10-11T09:00:10Z",
519
- "type": "state",
520
- "status": "working",
521
- "responder": "agent"
522
- },
523
- {
524
- "id": "evt_3",
525
- "created_at": "2026-10-11T09:00:10Z",
526
543
  "type": "message",
527
544
  "message": {
528
- "id": "msg_2",
545
+ "id": "msg_1",
529
546
  "author": {
530
547
  "type": "agent"
531
548
  },
532
549
  "role": "company",
550
+ "as_of_request": "req_VZNyCiPYnHaUHqSwbgj7tw",
533
551
  "text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
534
552
  "extensions": {
535
553
  "operations": {
@@ -546,22 +564,24 @@
546
564
  },
547
565
  "expires_at": "2026-10-11T09:15:10Z"
548
566
  }
567
+ },
568
+ "disclosures": {
569
+ "items": [
570
+ {
571
+ "text": "Exchanged items ship once the original jacket is received."
572
+ }
573
+ ]
549
574
  }
550
575
  }
551
576
  }
552
- },
553
- {
554
- "id": "evt_4",
555
- "created_at": "2026-10-11T09:00:10Z",
556
- "type": "state",
557
- "status": "idle",
558
- "responder": "agent"
559
577
  }
560
578
  ],
561
- "cursor": "evt_4",
579
+ "cursor": "evt_2",
562
580
  "has_more": false,
563
- "status": "idle",
564
- "responder": "agent"
581
+ "working": false,
582
+ "handoff": "none",
583
+ "responder": "agent",
584
+ "closed": false
565
585
  }
566
586
  }
567
587
  }
@@ -625,7 +645,7 @@
625
645
  },
626
646
  {
627
647
  "label": "Conversation",
628
- "value": "idle · agent · 4 events"
648
+ "value": "open · handoff none · agent · 2 events"
629
649
  },
630
650
  {
631
651
  "label": "Operation orders.exchange",
@@ -711,7 +731,7 @@
711
731
  },
712
732
  {
713
733
  "label": "Conversation",
714
- "value": "idle · agent · 8 events"
734
+ "value": "open · handoff none · agent · 4 events"
715
735
  },
716
736
  {
717
737
  "label": "Operation orders.exchange",
@@ -741,8 +761,8 @@
741
761
  "poppy-session": "‹Session JWT›"
742
762
  },
743
763
  "body": {
764
+ "id": "req_l-Bmm6Oy_wGOiRuwohz7Zg",
744
765
  "message": {
745
- "id": "msg_3",
746
766
  "author": {
747
767
  "type": "agent"
748
768
  },
@@ -750,7 +770,8 @@
750
770
  "operations": {
751
771
  "approval": {
752
772
  "operation_id": "op_1",
753
- "revision": "rev_1"
773
+ "revision": "rev_1",
774
+ "approved_at": 1791709210
754
775
  }
755
776
  }
756
777
  }
@@ -769,7 +790,7 @@
769
790
  "created_at": "2026-10-11T09:00:10Z",
770
791
  "type": "message",
771
792
  "message": {
772
- "id": "msg_1",
793
+ "id": "req_VZNyCiPYnHaUHqSwbgj7tw",
773
794
  "author": {
774
795
  "type": "human"
775
796
  },
@@ -780,20 +801,14 @@
780
801
  {
781
802
  "id": "evt_2",
782
803
  "created_at": "2026-10-11T09:00:10Z",
783
- "type": "state",
784
- "status": "working",
785
- "responder": "agent"
786
- },
787
- {
788
- "id": "evt_3",
789
- "created_at": "2026-10-11T09:00:10Z",
790
804
  "type": "message",
791
805
  "message": {
792
- "id": "msg_2",
806
+ "id": "msg_1",
793
807
  "author": {
794
808
  "type": "agent"
795
809
  },
796
810
  "role": "company",
811
+ "as_of_request": "req_VZNyCiPYnHaUHqSwbgj7tw",
797
812
  "text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
798
813
  "extensions": {
799
814
  "operations": {
@@ -810,54 +825,49 @@
810
825
  },
811
826
  "expires_at": "2026-10-11T09:15:10Z"
812
827
  }
828
+ },
829
+ "disclosures": {
830
+ "items": [
831
+ {
832
+ "text": "Exchanged items ship once the original jacket is received."
833
+ }
834
+ ]
813
835
  }
814
836
  }
815
837
  }
816
838
  },
817
839
  {
818
- "id": "evt_4",
819
- "created_at": "2026-10-11T09:00:10Z",
820
- "type": "state",
821
- "status": "idle",
822
- "responder": "agent"
823
- },
824
- {
825
- "id": "evt_5",
840
+ "id": "evt_3",
826
841
  "created_at": "2026-10-11T09:00:10Z",
827
842
  "type": "message",
828
843
  "message": {
829
- "id": "msg_3",
844
+ "id": "req_l-Bmm6Oy_wGOiRuwohz7Zg",
830
845
  "author": {
831
846
  "type": "agent"
832
847
  },
833
- "role": "user",
834
848
  "extensions": {
835
849
  "operations": {
836
850
  "approval": {
837
851
  "operation_id": "op_1",
838
- "revision": "rev_1"
852
+ "revision": "rev_1",
853
+ "approved_at": 1791709210
839
854
  }
840
855
  }
841
- }
856
+ },
857
+ "role": "user"
842
858
  }
843
859
  },
844
860
  {
845
- "id": "evt_6",
846
- "created_at": "2026-10-11T09:00:10Z",
847
- "type": "state",
848
- "status": "working",
849
- "responder": "agent"
850
- },
851
- {
852
- "id": "evt_7",
861
+ "id": "evt_4",
853
862
  "created_at": "2026-10-11T09:00:10Z",
854
863
  "type": "message",
855
864
  "message": {
856
- "id": "msg_4",
865
+ "id": "msg_2",
857
866
  "author": {
858
867
  "type": "agent"
859
868
  },
860
869
  "role": "company",
870
+ "as_of_request": "req_l-Bmm6Oy_wGOiRuwohz7Zg",
861
871
  "text": "That approval doesn't cover these terms. Here they are to approve.",
862
872
  "extensions": {
863
873
  "operations": {
@@ -878,19 +888,14 @@
878
888
  }
879
889
  }
880
890
  }
881
- },
882
- {
883
- "id": "evt_8",
884
- "created_at": "2026-10-11T09:00:10Z",
885
- "type": "state",
886
- "status": "idle",
887
- "responder": "agent"
888
891
  }
889
892
  ],
890
- "cursor": "evt_8",
893
+ "cursor": "evt_4",
891
894
  "has_more": false,
892
- "status": "idle",
893
- "responder": "agent"
895
+ "working": false,
896
+ "handoff": "none",
897
+ "responder": "agent",
898
+ "closed": false
894
899
  }
895
900
  }
896
901
  },
@@ -966,7 +971,7 @@
966
971
  },
967
972
  {
968
973
  "label": "Conversation",
969
- "value": "idle · agent · 12 events"
974
+ "value": "open · handoff none · agent · 6 events"
970
975
  },
971
976
  {
972
977
  "label": "Operation orders.exchange",
@@ -990,8 +995,8 @@
990
995
  "poppy-session": "‹Session JWT›"
991
996
  },
992
997
  "body": {
998
+ "id": "req_CBQ8vybzSYxlhpgzzo3Now",
993
999
  "message": {
994
- "id": "msg_5",
995
1000
  "author": {
996
1001
  "type": "agent"
997
1002
  },
@@ -999,7 +1004,8 @@
999
1004
  "operations": {
1000
1005
  "approval": {
1001
1006
  "operation_id": "op_1",
1002
- "revision": "rev_2"
1007
+ "revision": "rev_2",
1008
+ "approved_at": 1791709210
1003
1009
  }
1004
1010
  }
1005
1011
  }
@@ -1018,7 +1024,7 @@
1018
1024
  "created_at": "2026-10-11T09:00:10Z",
1019
1025
  "type": "message",
1020
1026
  "message": {
1021
- "id": "msg_1",
1027
+ "id": "req_VZNyCiPYnHaUHqSwbgj7tw",
1022
1028
  "author": {
1023
1029
  "type": "human"
1024
1030
  },
@@ -1029,20 +1035,14 @@
1029
1035
  {
1030
1036
  "id": "evt_2",
1031
1037
  "created_at": "2026-10-11T09:00:10Z",
1032
- "type": "state",
1033
- "status": "working",
1034
- "responder": "agent"
1035
- },
1036
- {
1037
- "id": "evt_3",
1038
- "created_at": "2026-10-11T09:00:10Z",
1039
1038
  "type": "message",
1040
1039
  "message": {
1041
- "id": "msg_2",
1040
+ "id": "msg_1",
1042
1041
  "author": {
1043
1042
  "type": "agent"
1044
1043
  },
1045
1044
  "role": "company",
1045
+ "as_of_request": "req_VZNyCiPYnHaUHqSwbgj7tw",
1046
1046
  "text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
1047
1047
  "extensions": {
1048
1048
  "operations": {
@@ -1059,54 +1059,49 @@
1059
1059
  },
1060
1060
  "expires_at": "2026-10-11T09:15:10Z"
1061
1061
  }
1062
+ },
1063
+ "disclosures": {
1064
+ "items": [
1065
+ {
1066
+ "text": "Exchanged items ship once the original jacket is received."
1067
+ }
1068
+ ]
1062
1069
  }
1063
1070
  }
1064
1071
  }
1065
1072
  },
1066
1073
  {
1067
- "id": "evt_4",
1068
- "created_at": "2026-10-11T09:00:10Z",
1069
- "type": "state",
1070
- "status": "idle",
1071
- "responder": "agent"
1072
- },
1073
- {
1074
- "id": "evt_5",
1074
+ "id": "evt_3",
1075
1075
  "created_at": "2026-10-11T09:00:10Z",
1076
1076
  "type": "message",
1077
1077
  "message": {
1078
- "id": "msg_3",
1078
+ "id": "req_l-Bmm6Oy_wGOiRuwohz7Zg",
1079
1079
  "author": {
1080
1080
  "type": "agent"
1081
1081
  },
1082
- "role": "user",
1083
1082
  "extensions": {
1084
1083
  "operations": {
1085
1084
  "approval": {
1086
1085
  "operation_id": "op_1",
1087
- "revision": "rev_1"
1086
+ "revision": "rev_1",
1087
+ "approved_at": 1791709210
1088
1088
  }
1089
1089
  }
1090
- }
1090
+ },
1091
+ "role": "user"
1091
1092
  }
1092
1093
  },
1093
1094
  {
1094
- "id": "evt_6",
1095
- "created_at": "2026-10-11T09:00:10Z",
1096
- "type": "state",
1097
- "status": "working",
1098
- "responder": "agent"
1099
- },
1100
- {
1101
- "id": "evt_7",
1095
+ "id": "evt_4",
1102
1096
  "created_at": "2026-10-11T09:00:10Z",
1103
1097
  "type": "message",
1104
1098
  "message": {
1105
- "id": "msg_4",
1099
+ "id": "msg_2",
1106
1100
  "author": {
1107
1101
  "type": "agent"
1108
1102
  },
1109
1103
  "role": "company",
1104
+ "as_of_request": "req_l-Bmm6Oy_wGOiRuwohz7Zg",
1110
1105
  "text": "That approval doesn't cover these terms. Here they are to approve.",
1111
1106
  "extensions": {
1112
1107
  "operations": {
@@ -1129,49 +1124,37 @@
1129
1124
  }
1130
1125
  },
1131
1126
  {
1132
- "id": "evt_8",
1133
- "created_at": "2026-10-11T09:00:10Z",
1134
- "type": "state",
1135
- "status": "idle",
1136
- "responder": "agent"
1137
- },
1138
- {
1139
- "id": "evt_9",
1127
+ "id": "evt_5",
1140
1128
  "created_at": "2026-10-11T09:00:10Z",
1141
1129
  "type": "message",
1142
1130
  "message": {
1143
- "id": "msg_5",
1131
+ "id": "req_CBQ8vybzSYxlhpgzzo3Now",
1144
1132
  "author": {
1145
1133
  "type": "agent"
1146
1134
  },
1147
- "role": "user",
1148
1135
  "extensions": {
1149
1136
  "operations": {
1150
1137
  "approval": {
1151
1138
  "operation_id": "op_1",
1152
- "revision": "rev_2"
1139
+ "revision": "rev_2",
1140
+ "approved_at": 1791709210
1153
1141
  }
1154
1142
  }
1155
- }
1143
+ },
1144
+ "role": "user"
1156
1145
  }
1157
1146
  },
1158
1147
  {
1159
- "id": "evt_10",
1160
- "created_at": "2026-10-11T09:00:10Z",
1161
- "type": "state",
1162
- "status": "working",
1163
- "responder": "agent"
1164
- },
1165
- {
1166
- "id": "evt_11",
1148
+ "id": "evt_6",
1167
1149
  "created_at": "2026-10-11T09:00:10Z",
1168
1150
  "type": "message",
1169
1151
  "message": {
1170
- "id": "msg_6",
1152
+ "id": "msg_3",
1171
1153
  "author": {
1172
1154
  "type": "agent"
1173
1155
  },
1174
1156
  "role": "company",
1157
+ "as_of_request": "req_CBQ8vybzSYxlhpgzzo3Now",
1175
1158
  "text": "Exchanged the Ridge Jacket (M) for the insulated Ridge Jacket (M). USD 70.00 charged to the card ending 4242; a return label was emailed.",
1176
1159
  "data": {
1177
1160
  "order_id": "ord_7Hk2",
@@ -1181,19 +1164,14 @@
1181
1164
  }
1182
1165
  }
1183
1166
  }
1184
- },
1185
- {
1186
- "id": "evt_12",
1187
- "created_at": "2026-10-11T09:00:10Z",
1188
- "type": "state",
1189
- "status": "idle",
1190
- "responder": "agent"
1191
1167
  }
1192
1168
  ],
1193
- "cursor": "evt_12",
1169
+ "cursor": "evt_6",
1194
1170
  "has_more": false,
1195
- "status": "idle",
1196
- "responder": "agent"
1171
+ "working": false,
1172
+ "handoff": "none",
1173
+ "responder": "agent",
1174
+ "closed": false
1197
1175
  }
1198
1176
  }
1199
1177
  },
@@ -1212,8 +1190,8 @@
1212
1190
  "poppy-session": "‹Session JWT›"
1213
1191
  },
1214
1192
  "body": {
1193
+ "id": "req_CBQ8vybzSYxlhpgzzo3Now",
1215
1194
  "message": {
1216
- "id": "msg_5",
1217
1195
  "author": {
1218
1196
  "type": "agent"
1219
1197
  },
@@ -1221,7 +1199,8 @@
1221
1199
  "operations": {
1222
1200
  "approval": {
1223
1201
  "operation_id": "op_1",
1224
- "revision": "rev_2"
1202
+ "revision": "rev_2",
1203
+ "approved_at": 1791709210
1225
1204
  }
1226
1205
  }
1227
1206
  }
@@ -1240,7 +1219,7 @@
1240
1219
  "created_at": "2026-10-11T09:00:10Z",
1241
1220
  "type": "message",
1242
1221
  "message": {
1243
- "id": "msg_1",
1222
+ "id": "req_VZNyCiPYnHaUHqSwbgj7tw",
1244
1223
  "author": {
1245
1224
  "type": "human"
1246
1225
  },
@@ -1251,20 +1230,14 @@
1251
1230
  {
1252
1231
  "id": "evt_2",
1253
1232
  "created_at": "2026-10-11T09:00:10Z",
1254
- "type": "state",
1255
- "status": "working",
1256
- "responder": "agent"
1257
- },
1258
- {
1259
- "id": "evt_3",
1260
- "created_at": "2026-10-11T09:00:10Z",
1261
1233
  "type": "message",
1262
1234
  "message": {
1263
- "id": "msg_2",
1235
+ "id": "msg_1",
1264
1236
  "author": {
1265
1237
  "type": "agent"
1266
1238
  },
1267
1239
  "role": "company",
1240
+ "as_of_request": "req_VZNyCiPYnHaUHqSwbgj7tw",
1268
1241
  "text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
1269
1242
  "extensions": {
1270
1243
  "operations": {
@@ -1281,54 +1254,49 @@
1281
1254
  },
1282
1255
  "expires_at": "2026-10-11T09:15:10Z"
1283
1256
  }
1257
+ },
1258
+ "disclosures": {
1259
+ "items": [
1260
+ {
1261
+ "text": "Exchanged items ship once the original jacket is received."
1262
+ }
1263
+ ]
1284
1264
  }
1285
1265
  }
1286
1266
  }
1287
1267
  },
1288
1268
  {
1289
- "id": "evt_4",
1290
- "created_at": "2026-10-11T09:00:10Z",
1291
- "type": "state",
1292
- "status": "idle",
1293
- "responder": "agent"
1294
- },
1295
- {
1296
- "id": "evt_5",
1269
+ "id": "evt_3",
1297
1270
  "created_at": "2026-10-11T09:00:10Z",
1298
1271
  "type": "message",
1299
1272
  "message": {
1300
- "id": "msg_3",
1273
+ "id": "req_l-Bmm6Oy_wGOiRuwohz7Zg",
1301
1274
  "author": {
1302
1275
  "type": "agent"
1303
1276
  },
1304
- "role": "user",
1305
1277
  "extensions": {
1306
1278
  "operations": {
1307
1279
  "approval": {
1308
1280
  "operation_id": "op_1",
1309
- "revision": "rev_1"
1281
+ "revision": "rev_1",
1282
+ "approved_at": 1791709210
1310
1283
  }
1311
1284
  }
1312
- }
1285
+ },
1286
+ "role": "user"
1313
1287
  }
1314
1288
  },
1315
1289
  {
1316
- "id": "evt_6",
1317
- "created_at": "2026-10-11T09:00:10Z",
1318
- "type": "state",
1319
- "status": "working",
1320
- "responder": "agent"
1321
- },
1322
- {
1323
- "id": "evt_7",
1290
+ "id": "evt_4",
1324
1291
  "created_at": "2026-10-11T09:00:10Z",
1325
1292
  "type": "message",
1326
1293
  "message": {
1327
- "id": "msg_4",
1294
+ "id": "msg_2",
1328
1295
  "author": {
1329
1296
  "type": "agent"
1330
1297
  },
1331
1298
  "role": "company",
1299
+ "as_of_request": "req_l-Bmm6Oy_wGOiRuwohz7Zg",
1332
1300
  "text": "That approval doesn't cover these terms. Here they are to approve.",
1333
1301
  "extensions": {
1334
1302
  "operations": {
@@ -1351,49 +1319,37 @@
1351
1319
  }
1352
1320
  },
1353
1321
  {
1354
- "id": "evt_8",
1355
- "created_at": "2026-10-11T09:00:10Z",
1356
- "type": "state",
1357
- "status": "idle",
1358
- "responder": "agent"
1359
- },
1360
- {
1361
- "id": "evt_9",
1322
+ "id": "evt_5",
1362
1323
  "created_at": "2026-10-11T09:00:10Z",
1363
1324
  "type": "message",
1364
1325
  "message": {
1365
- "id": "msg_5",
1326
+ "id": "req_CBQ8vybzSYxlhpgzzo3Now",
1366
1327
  "author": {
1367
1328
  "type": "agent"
1368
1329
  },
1369
- "role": "user",
1370
1330
  "extensions": {
1371
1331
  "operations": {
1372
1332
  "approval": {
1373
1333
  "operation_id": "op_1",
1374
- "revision": "rev_2"
1334
+ "revision": "rev_2",
1335
+ "approved_at": 1791709210
1375
1336
  }
1376
1337
  }
1377
- }
1338
+ },
1339
+ "role": "user"
1378
1340
  }
1379
1341
  },
1380
1342
  {
1381
- "id": "evt_10",
1382
- "created_at": "2026-10-11T09:00:10Z",
1383
- "type": "state",
1384
- "status": "working",
1385
- "responder": "agent"
1386
- },
1387
- {
1388
- "id": "evt_11",
1343
+ "id": "evt_6",
1389
1344
  "created_at": "2026-10-11T09:00:10Z",
1390
1345
  "type": "message",
1391
1346
  "message": {
1392
- "id": "msg_6",
1347
+ "id": "msg_3",
1393
1348
  "author": {
1394
1349
  "type": "agent"
1395
1350
  },
1396
1351
  "role": "company",
1352
+ "as_of_request": "req_CBQ8vybzSYxlhpgzzo3Now",
1397
1353
  "text": "Exchanged the Ridge Jacket (M) for the insulated Ridge Jacket (M). USD 70.00 charged to the card ending 4242; a return label was emailed.",
1398
1354
  "data": {
1399
1355
  "order_id": "ord_7Hk2",
@@ -1403,19 +1359,14 @@
1403
1359
  }
1404
1360
  }
1405
1361
  }
1406
- },
1407
- {
1408
- "id": "evt_12",
1409
- "created_at": "2026-10-11T09:00:10Z",
1410
- "type": "state",
1411
- "status": "idle",
1412
- "responder": "agent"
1413
1362
  }
1414
1363
  ],
1415
- "cursor": "evt_12",
1364
+ "cursor": "evt_6",
1416
1365
  "has_more": false,
1417
- "status": "idle",
1418
- "responder": "agent"
1366
+ "working": false,
1367
+ "handoff": "none",
1368
+ "responder": "agent",
1369
+ "closed": false
1419
1370
  }
1420
1371
  }
1421
1372
  }