@datalayer/agent-runtimes 1.5.95 → 1.5.97
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/chunks/{index.esm-zOy6kFPv.js → index.esm-BLDeC6q1.js} +1 -1
- package/dist-embed/datalayer-app-main.js +80 -80
- package/lib/apps/apps/appspec.d.ts +11 -12
- package/lib/apps/apps/appspec.js +45 -87
- package/lib/components/cards/ToolApprovalCard.js +4 -2
- package/lib/components/inspector/a2aSpans.d.ts +7 -0
- package/lib/components/inspector/a2aSpans.js +34 -2
- package/lib/components/inspector/agentSpans.d.ts +1 -1
- package/lib/components/inspector/agentSpans.js +1 -0
- package/lib/components/teams/HarnessIcon.d.ts +11 -0
- package/lib/components/teams/HarnessIcon.js +17 -0
- package/lib/components/teams/SceneTranscript.d.ts +1 -1
- package/lib/components/teams/SceneTranscript.js +12 -7
- package/lib/components/teams/SceneView.d.ts +7 -1
- package/lib/components/teams/SceneView.js +2 -2
- package/lib/components/teams/backdrops/hero.js +1 -1
- package/lib/components/teams/backdrops/minimal.js +1 -1
- package/lib/components/teams/backdrops/nodes.js +4 -3
- package/lib/components/teams/backdrops/space.js +1 -1
- package/lib/components/teams/backdrops/types.d.ts +9 -0
- package/lib/components/teams/index.d.ts +2 -0
- package/lib/components/teams/index.js +2 -0
- package/lib/components/teams/memberHarness.d.ts +16 -0
- package/lib/components/teams/memberHarness.js +42 -0
- package/lib/components/teams/sceneTranscriptRules.js +6 -1
- package/lib/components/teams/transcript/LineSelect.d.ts +20 -0
- package/lib/components/teams/transcript/LineSelect.js +20 -0
- package/lib/components/teams/transcript/TranscriptTable.d.ts +11 -5
- package/lib/components/teams/transcript/TranscriptTable.js +24 -7
- package/lib/components/teams/transcript/TranscriptViews.js +1 -1
- package/lib/components/teams/transcript/recordingPlayback.d.ts +13 -0
- package/lib/components/teams/transcript/recordingPlayback.js +32 -0
- package/lib/components/teams/transcript/useSceneRecording.d.ts +1 -1
- package/lib/components/teams/transcript/useSceneRecording.js +19 -11
- package/lib/examples/PapAccountTokensExample.d.ts +1 -1
- package/lib/examples/PapAccountTokensExample.js +3 -3
- package/lib/examples/PapSessionJwtExample.d.ts +4 -0
- package/lib/examples/{PapDpopProofExample.js → PapSessionJwtExample.js} +9 -9
- package/lib/examples/PapSessionLifecycleExample.d.ts +1 -1
- package/lib/examples/PapSessionLifecycleExample.js +2 -2
- package/lib/examples/ScenesExample.js +15 -13
- package/lib/examples/example-selector.js +3 -3
- package/lib/examples/index.d.ts +1 -1
- package/lib/examples/index.js +1 -1
- package/lib/examples/main.js +1 -1
- package/lib/examples/pap/PapAccountTokensView.d.ts +1 -1
- package/lib/examples/pap/PapAuthorizationBoundaryView.js +15 -22
- package/lib/examples/pap/PapGuidedJourneyView.js +61 -60
- package/lib/examples/pap/PapSessionJwtView.d.ts +4 -0
- package/lib/examples/pap/PapSessionJwtView.js +69 -0
- package/lib/examples/pap/PapSessionLifecycleView.js +36 -58
- package/lib/examples/pap/PapSignInDisplayView.d.ts +1 -1
- package/lib/examples/pap/PapSignInDisplayView.js +1 -1
- package/lib/examples/pap/PapTraceView.d.ts +1 -1
- package/lib/examples/pap/PapTraceView.js +1 -1
- package/lib/examples/pap/traces/account-tokens.json +145 -173
- package/lib/examples/pap/traces/conversation-control.json +118 -140
- package/lib/examples/pap/traces/conversation-streaming.json +114 -134
- package/lib/examples/pap/traces/mediated-sign-in.json +151 -166
- package/lib/examples/pap/traces/operations.json +613 -391
- package/lib/examples/pap/traces/two-companies.json +380 -990
- package/lib/examples/pap/traces/user-with-a-company.json +319 -207
- package/lib/models/environments.generated.d.ts +2 -2
- package/lib/models/environments.generated.js +1 -1
- package/lib/pap/index.d.ts +1 -1
- package/lib/pap/index.js +3 -3
- package/lib/portable/displays.d.ts +13 -22
- package/lib/portable/displays.js +17 -65
- package/lib/portable/hosts/approvalRenderers.d.ts +4 -4
- package/lib/portable/hosts/approvalRenderers.js +26 -13
- package/lib/portable/hosts/contracts.json +5 -2
- package/lib/portable/index.d.ts +1 -1
- package/lib/portable/index.js +1 -1
- package/lib/protocols/decks/index.d.ts +37 -0
- package/lib/protocols/decks/index.js +48 -0
- package/lib/protocols/decks/pact-a-personal-agent-at-a-business.d.ts +2 -0
- package/lib/protocols/decks/pact-a-personal-agent-at-a-business.js +148 -0
- package/lib/protocols/decks/ucp-a-purchase-approved.d.ts +2 -0
- package/lib/protocols/decks/ucp-a-purchase-approved.js +154 -0
- package/lib/specs/actions.d.ts +1 -1
- package/lib/specs/actions.js +2 -2
- package/lib/specs/agents/agents.js +3 -3
- package/lib/specs/apps.d.ts +1 -1
- package/lib/specs/apps.js +10 -11
- package/lib/specs/appspecSchema.js +4 -112
- package/lib/specs/envvars.js +2 -2
- package/lib/specs/harnesses.js +9 -9
- package/lib/specs/scenes.js +10 -33
- package/lib/specs/teams/teams.js +2 -2
- package/lib/types/agentspecs.d.ts +91 -127
- package/package.json +409 -409
- package/scripts/codegen/generate_apps.py +6 -7
- package/scripts/validate_pap_examples.py +1 -1
- package/lib/examples/PapDpopProofExample.d.ts +0 -4
- package/lib/examples/pap/PapDpopProofView.d.ts +0 -4
- package/lib/examples/pap/PapDpopProofView.js +0 -61
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"slug": "operations",
|
|
3
3
|
"title": "Operations",
|
|
4
|
-
"description": "Manzanita
|
|
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.
|
|
6
|
+
"sdk": "personal-agent-protocol 0.28.0",
|
|
7
7
|
"parties": [
|
|
8
8
|
{
|
|
9
9
|
"id": "user",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
{
|
|
31
31
|
"title": "Atlas finds Manzanita",
|
|
32
32
|
"channel": "Discovery + Session",
|
|
33
|
-
"summary": "Atlas reads Manzanita's public poppy.json and OAuth metadata
|
|
33
|
+
"summary": "Atlas reads Manzanita's protected resource metadata, public poppy.json and OAuth metadata. A Session is local: Atlas chooses a random sid for Ada's pairwise User ID, and no request is sent. Manzanita verifies Atlas's delegation at its first request.",
|
|
34
34
|
"chat": [
|
|
35
35
|
{
|
|
36
36
|
"speaker": "user",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"label": "Session",
|
|
49
|
-
"value": "signed out ·
|
|
49
|
+
"value": "signed out · a Session JWT on every request"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"label": "Vault (host only)",
|
|
@@ -60,15 +60,11 @@
|
|
|
60
60
|
"manzanita": [
|
|
61
61
|
{
|
|
62
62
|
"label": "Verified client",
|
|
63
|
-
"value": "
|
|
63
|
+
"value": "None yet"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"label": "Sessions",
|
|
67
|
-
"value": "
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"label": "Who is it?",
|
|
71
|
-
"value": "A pairwise identifier only"
|
|
67
|
+
"value": "None"
|
|
72
68
|
}
|
|
73
69
|
]
|
|
74
70
|
},
|
|
@@ -97,22 +93,6 @@
|
|
|
97
93
|
},
|
|
98
94
|
"auth": {
|
|
99
95
|
"issuer": "https://manzanita.example",
|
|
100
|
-
"mediated": {
|
|
101
|
-
"endpoint": "https://manzanita.example/poppy/sign-in",
|
|
102
|
-
"fields": [
|
|
103
|
-
{
|
|
104
|
-
"name": "email",
|
|
105
|
-
"label": "Email",
|
|
106
|
-
"secret": false
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"name": "password",
|
|
110
|
-
"label": "Password",
|
|
111
|
-
"secret": true
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"scopes": ["orders:read", "orders:write"]
|
|
115
|
-
},
|
|
116
96
|
"scopes": {
|
|
117
97
|
"orders:read": "See your orders, returns and exchanges",
|
|
118
98
|
"orders:write": "Exchange or return items in your orders"
|
|
@@ -159,8 +139,23 @@
|
|
|
159
139
|
},
|
|
160
140
|
"extensions": {
|
|
161
141
|
"operations": {
|
|
142
|
+
"version": "2"
|
|
143
|
+
},
|
|
144
|
+
"mediated-sign-in": {
|
|
162
145
|
"version": "1",
|
|
163
|
-
"
|
|
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"]
|
|
164
159
|
}
|
|
165
160
|
}
|
|
166
161
|
}
|
|
@@ -171,7 +166,7 @@
|
|
|
171
166
|
"from": "atlas",
|
|
172
167
|
"to": "manzanita",
|
|
173
168
|
"method": "GET",
|
|
174
|
-
"url": "https://manzanita.example/.well-known/oauth-
|
|
169
|
+
"url": "https://manzanita.example/.well-known/oauth-protected-resource",
|
|
175
170
|
"status": 200,
|
|
176
171
|
"request": {
|
|
177
172
|
"headers": {
|
|
@@ -183,24 +178,10 @@
|
|
|
183
178
|
"content-type": "application/json"
|
|
184
179
|
},
|
|
185
180
|
"body": {
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"revocation_endpoint": "https://manzanita.example/oauth/revoke",
|
|
189
|
-
"grant_types_supported": [
|
|
190
|
-
"urn:ietf:params:oauth:grant-type:jwt-bearer",
|
|
191
|
-
"refresh_token",
|
|
192
|
-
"authorization_code",
|
|
193
|
-
"urn:ietf:params:oauth:grant-type:device_code"
|
|
194
|
-
],
|
|
181
|
+
"resource": "https://manzanita.example",
|
|
182
|
+
"authorization_servers": ["https://manzanita.example"],
|
|
195
183
|
"scopes_supported": ["orders:read", "orders:write"],
|
|
196
|
-
"
|
|
197
|
-
"https://manzanita.example",
|
|
198
|
-
"https://manzanita.example/mcp"
|
|
199
|
-
],
|
|
200
|
-
"dpop_signing_alg_values_supported": ["ES256", "RS256"],
|
|
201
|
-
"authorization_endpoint": "https://manzanita.example/oauth/authorize",
|
|
202
|
-
"code_challenge_methods_supported": ["S256"],
|
|
203
|
-
"device_1": "https://manzanita.example/oauth/device"
|
|
184
|
+
"bearer_methods_supported": ["header"]
|
|
204
185
|
}
|
|
205
186
|
}
|
|
206
187
|
},
|
|
@@ -208,72 +189,8 @@
|
|
|
208
189
|
"kind": "http",
|
|
209
190
|
"from": "atlas",
|
|
210
191
|
"to": "manzanita",
|
|
211
|
-
"method": "POST",
|
|
212
|
-
"url": "https://manzanita.example/oauth/token",
|
|
213
|
-
"status": 200,
|
|
214
|
-
"request": {
|
|
215
|
-
"headers": {
|
|
216
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
217
|
-
"accept": "application/json",
|
|
218
|
-
"dpop": "‹DPoP proof›"
|
|
219
|
-
},
|
|
220
|
-
"body": {
|
|
221
|
-
"grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
|
|
222
|
-
"assertion": "‹session assertion›",
|
|
223
|
-
"client_id": "https://atlas.example/agent.json",
|
|
224
|
-
"client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
|
|
225
|
-
"client_assertion": "‹client assertion›"
|
|
226
|
-
},
|
|
227
|
-
"encoding": "form"
|
|
228
|
-
},
|
|
229
|
-
"response": {
|
|
230
|
-
"headers": {
|
|
231
|
-
"content-type": "application/json",
|
|
232
|
-
"cache-control": "no-store"
|
|
233
|
-
},
|
|
234
|
-
"body": {
|
|
235
|
-
"access_token": "‹session token›",
|
|
236
|
-
"token_type": "DPoP",
|
|
237
|
-
"expires_in": 3600
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"kind": "http",
|
|
243
|
-
"from": "manzanita",
|
|
244
|
-
"to": "atlas",
|
|
245
|
-
"method": "GET",
|
|
246
|
-
"url": "https://atlas.example/agent.json",
|
|
247
|
-
"status": 200,
|
|
248
|
-
"request": {
|
|
249
|
-
"headers": {
|
|
250
|
-
"accept": "application/json"
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
"response": {
|
|
254
|
-
"headers": {
|
|
255
|
-
"content-type": "application/json"
|
|
256
|
-
},
|
|
257
|
-
"body": {
|
|
258
|
-
"client_id": "https://atlas.example/agent.json",
|
|
259
|
-
"client_name": "Atlas",
|
|
260
|
-
"jwks_uri": "https://atlas.example/jwks.json",
|
|
261
|
-
"redirect_uris": ["https://atlas.example/oauth/callback"],
|
|
262
|
-
"token_endpoint_auth_method": "private_key_jwt",
|
|
263
|
-
"extensions": {
|
|
264
|
-
"operations": {
|
|
265
|
-
"version": "1"
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"kind": "http",
|
|
273
|
-
"from": "manzanita",
|
|
274
|
-
"to": "atlas",
|
|
275
192
|
"method": "GET",
|
|
276
|
-
"url": "https://
|
|
193
|
+
"url": "https://manzanita.example/.well-known/oauth-authorization-server",
|
|
277
194
|
"status": 200,
|
|
278
195
|
"request": {
|
|
279
196
|
"headers": {
|
|
@@ -285,26 +202,32 @@
|
|
|
285
202
|
"content-type": "application/json"
|
|
286
203
|
},
|
|
287
204
|
"body": {
|
|
288
|
-
"
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
205
|
+
"issuer": "https://manzanita.example",
|
|
206
|
+
"token_endpoint": "https://manzanita.example/oauth/token",
|
|
207
|
+
"revocation_endpoint": "https://manzanita.example/oauth/revoke",
|
|
208
|
+
"grant_types_supported": [
|
|
209
|
+
"refresh_token",
|
|
210
|
+
"authorization_code",
|
|
211
|
+
"urn:ietf:params:oauth:grant-type:device_code",
|
|
212
|
+
"https://personalagentprotocol.org/grant/mediated-sign-in"
|
|
213
|
+
],
|
|
214
|
+
"scopes_supported": ["orders:read", "orders:write"],
|
|
215
|
+
"protected_resources": [
|
|
216
|
+
"https://manzanita.example",
|
|
217
|
+
"https://manzanita.example/mcp"
|
|
218
|
+
],
|
|
219
|
+
"authorization_endpoint": "https://manzanita.example/oauth/authorize",
|
|
220
|
+
"code_challenge_methods_supported": ["S256"],
|
|
221
|
+
"device_1": "https://manzanita.example/oauth/device"
|
|
299
222
|
}
|
|
300
223
|
}
|
|
301
224
|
}
|
|
302
225
|
]
|
|
303
226
|
},
|
|
304
227
|
{
|
|
305
|
-
"title": "
|
|
306
|
-
"channel": "Operations
|
|
307
|
-
"summary": "Both sides list operations version
|
|
228
|
+
"title": "An operation",
|
|
229
|
+
"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.",
|
|
308
231
|
"chat": [
|
|
309
232
|
{
|
|
310
233
|
"speaker": "manzanita",
|
|
@@ -320,7 +243,7 @@
|
|
|
320
243
|
{
|
|
321
244
|
"speaker": "manzanita",
|
|
322
245
|
"kind": "approval",
|
|
323
|
-
"title": "Revision
|
|
246
|
+
"title": "Revision rev_1 · needs your approval",
|
|
324
247
|
"text": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more."
|
|
325
248
|
}
|
|
326
249
|
],
|
|
@@ -332,7 +255,7 @@
|
|
|
332
255
|
},
|
|
333
256
|
{
|
|
334
257
|
"label": "Session",
|
|
335
|
-
"value": "signed in ·
|
|
258
|
+
"value": "signed in · a Session JWT on every request"
|
|
336
259
|
},
|
|
337
260
|
{
|
|
338
261
|
"label": "Scopes",
|
|
@@ -340,7 +263,7 @@
|
|
|
340
263
|
},
|
|
341
264
|
{
|
|
342
265
|
"label": "Vault (host only)",
|
|
343
|
-
"value": "1
|
|
266
|
+
"value": "1 refresh token by reference"
|
|
344
267
|
},
|
|
345
268
|
{
|
|
346
269
|
"label": "Model sees",
|
|
@@ -354,10 +277,10 @@
|
|
|
354
277
|
},
|
|
355
278
|
{
|
|
356
279
|
"label": "Sessions",
|
|
357
|
-
"value": "1 live
|
|
280
|
+
"value": "1 live"
|
|
358
281
|
},
|
|
359
282
|
{
|
|
360
|
-
"label": "Account behind the
|
|
283
|
+
"label": "Account behind the access token",
|
|
361
284
|
"value": "acct_ada"
|
|
362
285
|
},
|
|
363
286
|
{
|
|
@@ -365,7 +288,7 @@
|
|
|
365
288
|
"value": "orders:read orders:write"
|
|
366
289
|
},
|
|
367
290
|
{
|
|
368
|
-
"label": "
|
|
291
|
+
"label": "Refresh tokens issued",
|
|
369
292
|
"value": "1 · 1 not revoked"
|
|
370
293
|
},
|
|
371
294
|
{
|
|
@@ -374,7 +297,7 @@
|
|
|
374
297
|
},
|
|
375
298
|
{
|
|
376
299
|
"label": "Operation orders.exchange",
|
|
377
|
-
"value": "revision
|
|
300
|
+
"value": "revision rev_1 · open"
|
|
378
301
|
}
|
|
379
302
|
]
|
|
380
303
|
},
|
|
@@ -414,6 +337,67 @@
|
|
|
414
337
|
}
|
|
415
338
|
}
|
|
416
339
|
},
|
|
340
|
+
{
|
|
341
|
+
"kind": "http",
|
|
342
|
+
"from": "manzanita",
|
|
343
|
+
"to": "atlas",
|
|
344
|
+
"method": "GET",
|
|
345
|
+
"url": "https://atlas.example/agent.json",
|
|
346
|
+
"status": 200,
|
|
347
|
+
"request": {
|
|
348
|
+
"headers": {
|
|
349
|
+
"accept": "application/json"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"response": {
|
|
353
|
+
"headers": {
|
|
354
|
+
"content-type": "application/json"
|
|
355
|
+
},
|
|
356
|
+
"body": {
|
|
357
|
+
"client_id": "https://atlas.example/agent.json",
|
|
358
|
+
"client_name": "Atlas",
|
|
359
|
+
"jwks_uri": "https://atlas.example/jwks.json",
|
|
360
|
+
"redirect_uris": ["https://atlas.example/oauth/callback"],
|
|
361
|
+
"token_endpoint_auth_method": "private_key_jwt",
|
|
362
|
+
"extensions": {
|
|
363
|
+
"operations": {
|
|
364
|
+
"version": "2"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"kind": "http",
|
|
372
|
+
"from": "manzanita",
|
|
373
|
+
"to": "atlas",
|
|
374
|
+
"method": "GET",
|
|
375
|
+
"url": "https://atlas.example/jwks.json",
|
|
376
|
+
"status": 200,
|
|
377
|
+
"request": {
|
|
378
|
+
"headers": {
|
|
379
|
+
"accept": "application/json"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"response": {
|
|
383
|
+
"headers": {
|
|
384
|
+
"content-type": "application/json"
|
|
385
|
+
},
|
|
386
|
+
"body": {
|
|
387
|
+
"keys": [
|
|
388
|
+
{
|
|
389
|
+
"kty": "EC",
|
|
390
|
+
"crv": "P-256",
|
|
391
|
+
"x": "‹public key›",
|
|
392
|
+
"y": "‹public key›",
|
|
393
|
+
"kid": "key-1",
|
|
394
|
+
"use": "sig",
|
|
395
|
+
"alg": "ES256"
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
417
401
|
{
|
|
418
402
|
"kind": "http",
|
|
419
403
|
"from": "atlas",
|
|
@@ -424,8 +408,7 @@
|
|
|
424
408
|
"request": {
|
|
425
409
|
"headers": {
|
|
426
410
|
"content-type": "application/x-www-form-urlencoded",
|
|
427
|
-
"accept": "application/json"
|
|
428
|
-
"dpop": "‹DPoP proof›"
|
|
411
|
+
"accept": "application/json"
|
|
429
412
|
},
|
|
430
413
|
"body": {
|
|
431
414
|
"grant_type": "urn:ietf:params:oauth:grant-type:device_code",
|
|
@@ -462,8 +445,7 @@
|
|
|
462
445
|
"request": {
|
|
463
446
|
"headers": {
|
|
464
447
|
"content-type": "application/x-www-form-urlencoded",
|
|
465
|
-
"accept": "application/json"
|
|
466
|
-
"dpop": "‹DPoP proof›"
|
|
448
|
+
"accept": "application/json"
|
|
467
449
|
},
|
|
468
450
|
"body": {
|
|
469
451
|
"grant_type": "urn:ietf:params:oauth:grant-type:device_code",
|
|
@@ -480,11 +462,10 @@
|
|
|
480
462
|
"cache-control": "no-store"
|
|
481
463
|
},
|
|
482
464
|
"body": {
|
|
483
|
-
"access_token": "‹
|
|
484
|
-
"token_type": "
|
|
465
|
+
"access_token": "‹access token›",
|
|
466
|
+
"token_type": "Bearer",
|
|
485
467
|
"expires_in": 3600,
|
|
486
|
-
"refresh_token": "‹
|
|
487
|
-
"refresh_token_expires_in": 7776000
|
|
468
|
+
"refresh_token": "‹refresh token›"
|
|
488
469
|
}
|
|
489
470
|
}
|
|
490
471
|
},
|
|
@@ -499,8 +480,8 @@
|
|
|
499
480
|
"headers": {
|
|
500
481
|
"content-type": "application/json",
|
|
501
482
|
"accept": "*/*",
|
|
502
|
-
"authorization": "
|
|
503
|
-
"
|
|
483
|
+
"authorization": "Bearer ‹access token›",
|
|
484
|
+
"poppy-session": "‹Session JWT›"
|
|
504
485
|
},
|
|
505
486
|
"body": {
|
|
506
487
|
"message": {
|
|
@@ -552,8 +533,7 @@
|
|
|
552
533
|
"text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
|
|
553
534
|
"operation": {
|
|
554
535
|
"operation_id": "op_1",
|
|
555
|
-
"revision":
|
|
556
|
-
"state": "proposed",
|
|
536
|
+
"revision": "rev_1",
|
|
557
537
|
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more.",
|
|
558
538
|
"terms": {
|
|
559
539
|
"order_id": "ord_7Hk2",
|
|
@@ -562,11 +542,7 @@
|
|
|
562
542
|
"currency": "USD"
|
|
563
543
|
}
|
|
564
544
|
},
|
|
565
|
-
"expires_at": "2026-10-11T09:15:10Z"
|
|
566
|
-
"user_approval_required": true,
|
|
567
|
-
"url": "https://manzanita.example/operations/op_1",
|
|
568
|
-
"confirmation": null,
|
|
569
|
-
"result": null
|
|
545
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
570
546
|
}
|
|
571
547
|
}
|
|
572
548
|
},
|
|
@@ -588,26 +564,15 @@
|
|
|
588
564
|
]
|
|
589
565
|
},
|
|
590
566
|
{
|
|
591
|
-
"title": "
|
|
592
|
-
"channel": "
|
|
593
|
-
"summary": "
|
|
567
|
+
"title": "Ada says no",
|
|
568
|
+
"channel": "The approval surface",
|
|
569
|
+
"summary": "Atlas asks Ada in its own interface, and she says no (not_approved). Nothing is sent: no Rule, setting or earlier approval answers for her.",
|
|
594
570
|
"chat": [
|
|
595
571
|
{
|
|
596
572
|
"speaker": "user",
|
|
597
573
|
"kind": "approval",
|
|
598
|
-
"title": "Revision
|
|
574
|
+
"title": "Revision rev_1 · declined",
|
|
599
575
|
"text": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more."
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"speaker": "atlas",
|
|
603
|
-
"kind": "message",
|
|
604
|
-
"text": "Manzanita changed the terms (summary, return_by). Please look again."
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
"speaker": "manzanita",
|
|
608
|
-
"kind": "approval",
|
|
609
|
-
"title": "Revision 2 · needs your approval",
|
|
610
|
-
"text": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more. Return the original by 2026-10-25."
|
|
611
576
|
}
|
|
612
577
|
],
|
|
613
578
|
"views": {
|
|
@@ -618,7 +583,7 @@
|
|
|
618
583
|
},
|
|
619
584
|
{
|
|
620
585
|
"label": "Session",
|
|
621
|
-
"value": "signed in ·
|
|
586
|
+
"value": "signed in · a Session JWT on every request"
|
|
622
587
|
},
|
|
623
588
|
{
|
|
624
589
|
"label": "Scopes",
|
|
@@ -626,7 +591,7 @@
|
|
|
626
591
|
},
|
|
627
592
|
{
|
|
628
593
|
"label": "Vault (host only)",
|
|
629
|
-
"value": "1
|
|
594
|
+
"value": "1 refresh token by reference"
|
|
630
595
|
},
|
|
631
596
|
{
|
|
632
597
|
"label": "Model sees",
|
|
@@ -640,10 +605,10 @@
|
|
|
640
605
|
},
|
|
641
606
|
{
|
|
642
607
|
"label": "Sessions",
|
|
643
|
-
"value": "1 live
|
|
608
|
+
"value": "1 live"
|
|
644
609
|
},
|
|
645
610
|
{
|
|
646
|
-
"label": "Account behind the
|
|
611
|
+
"label": "Account behind the access token",
|
|
647
612
|
"value": "acct_ada"
|
|
648
613
|
},
|
|
649
614
|
{
|
|
@@ -651,7 +616,7 @@
|
|
|
651
616
|
"value": "orders:read orders:write"
|
|
652
617
|
},
|
|
653
618
|
{
|
|
654
|
-
"label": "
|
|
619
|
+
"label": "Refresh tokens issued",
|
|
655
620
|
"value": "1 · 1 not revoked"
|
|
656
621
|
},
|
|
657
622
|
{
|
|
@@ -660,7 +625,7 @@
|
|
|
660
625
|
},
|
|
661
626
|
{
|
|
662
627
|
"label": "Operation orders.exchange",
|
|
663
|
-
"value": "revision
|
|
628
|
+
"value": "revision rev_1 · open"
|
|
664
629
|
}
|
|
665
630
|
]
|
|
666
631
|
},
|
|
@@ -669,74 +634,31 @@
|
|
|
669
634
|
"kind": "action",
|
|
670
635
|
"from": "user",
|
|
671
636
|
"to": "atlas",
|
|
672
|
-
"label": "
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
"kind": "http",
|
|
676
|
-
"from": "atlas",
|
|
677
|
-
"to": "manzanita",
|
|
678
|
-
"method": "POST",
|
|
679
|
-
"url": "https://manzanita.example/poppy/operations/op_1/confirm",
|
|
680
|
-
"status": 409,
|
|
681
|
-
"request": {
|
|
682
|
-
"headers": {
|
|
683
|
-
"content-type": "application/json",
|
|
684
|
-
"accept": "application/json",
|
|
685
|
-
"authorization": "DPoP ‹session token›",
|
|
686
|
-
"dpop": "‹DPoP proof›"
|
|
687
|
-
},
|
|
688
|
-
"body": {
|
|
689
|
-
"revision": 1,
|
|
690
|
-
"approved_by": "user"
|
|
691
|
-
}
|
|
692
|
-
},
|
|
693
|
-
"response": {
|
|
694
|
-
"headers": {
|
|
695
|
-
"content-type": "application/json",
|
|
696
|
-
"cache-control": "no-store"
|
|
697
|
-
},
|
|
698
|
-
"body": {
|
|
699
|
-
"error": "terms_changed",
|
|
700
|
-
"operation": {
|
|
701
|
-
"operation_id": "op_1",
|
|
702
|
-
"revision": 2,
|
|
703
|
-
"state": "proposed",
|
|
704
|
-
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more. Return the original by 2026-10-25.",
|
|
705
|
-
"terms": {
|
|
706
|
-
"order_id": "ord_7Hk2",
|
|
707
|
-
"price_difference": {
|
|
708
|
-
"amount": "70.00",
|
|
709
|
-
"currency": "USD"
|
|
710
|
-
},
|
|
711
|
-
"return_by": "2026-10-25"
|
|
712
|
-
},
|
|
713
|
-
"expires_at": "2026-10-11T09:15:10Z",
|
|
714
|
-
"user_approval_required": true,
|
|
715
|
-
"url": "https://manzanita.example/operations/op_1",
|
|
716
|
-
"confirmation": null,
|
|
717
|
-
"result": null
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
}
|
|
637
|
+
"label": "Says no"
|
|
721
638
|
}
|
|
722
639
|
]
|
|
723
640
|
},
|
|
724
641
|
{
|
|
725
|
-
"title": "
|
|
726
|
-
"channel": "
|
|
727
|
-
"summary": "
|
|
642
|
+
"title": "The terms changed",
|
|
643
|
+
"channel": "A new revision",
|
|
644
|
+
"summary": "Before the approval arrives, Manzanita changes the terms. It performs nothing and answers with a new revision of the same operation; Atlas shows what changed (summary, return_by). Ada's approval covers one revision, so she is asked again.",
|
|
728
645
|
"chat": [
|
|
729
646
|
{
|
|
730
647
|
"speaker": "user",
|
|
731
648
|
"kind": "approval",
|
|
732
|
-
"title": "Revision
|
|
733
|
-
"text": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more.
|
|
649
|
+
"title": "Revision rev_1 · approved",
|
|
650
|
+
"text": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more."
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"speaker": "atlas",
|
|
654
|
+
"kind": "message",
|
|
655
|
+
"text": "Manzanita changed the terms (summary, return_by). Please look again."
|
|
734
656
|
},
|
|
735
657
|
{
|
|
736
658
|
"speaker": "manzanita",
|
|
737
|
-
"kind": "
|
|
738
|
-
"title": "
|
|
739
|
-
"text": "
|
|
659
|
+
"kind": "approval",
|
|
660
|
+
"title": "Revision rev_2 · needs your approval",
|
|
661
|
+
"text": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more. Return the original by 2026-10-25."
|
|
740
662
|
}
|
|
741
663
|
],
|
|
742
664
|
"views": {
|
|
@@ -747,7 +669,7 @@
|
|
|
747
669
|
},
|
|
748
670
|
{
|
|
749
671
|
"label": "Session",
|
|
750
|
-
"value": "signed in ·
|
|
672
|
+
"value": "signed in · a Session JWT on every request"
|
|
751
673
|
},
|
|
752
674
|
{
|
|
753
675
|
"label": "Scopes",
|
|
@@ -755,7 +677,7 @@
|
|
|
755
677
|
},
|
|
756
678
|
{
|
|
757
679
|
"label": "Vault (host only)",
|
|
758
|
-
"value": "1
|
|
680
|
+
"value": "1 refresh token by reference"
|
|
759
681
|
},
|
|
760
682
|
{
|
|
761
683
|
"label": "Model sees",
|
|
@@ -769,10 +691,10 @@
|
|
|
769
691
|
},
|
|
770
692
|
{
|
|
771
693
|
"label": "Sessions",
|
|
772
|
-
"value": "1 live
|
|
694
|
+
"value": "1 live"
|
|
773
695
|
},
|
|
774
696
|
{
|
|
775
|
-
"label": "Account behind the
|
|
697
|
+
"label": "Account behind the access token",
|
|
776
698
|
"value": "acct_ada"
|
|
777
699
|
},
|
|
778
700
|
{
|
|
@@ -780,16 +702,16 @@
|
|
|
780
702
|
"value": "orders:read orders:write"
|
|
781
703
|
},
|
|
782
704
|
{
|
|
783
|
-
"label": "
|
|
705
|
+
"label": "Refresh tokens issued",
|
|
784
706
|
"value": "1 · 1 not revoked"
|
|
785
707
|
},
|
|
786
708
|
{
|
|
787
709
|
"label": "Conversation",
|
|
788
|
-
"value": "idle · agent ·
|
|
710
|
+
"value": "idle · agent · 8 events"
|
|
789
711
|
},
|
|
790
712
|
{
|
|
791
713
|
"label": "Operation orders.exchange",
|
|
792
|
-
"value": "revision
|
|
714
|
+
"value": "revision rev_2 · open"
|
|
793
715
|
}
|
|
794
716
|
]
|
|
795
717
|
},
|
|
@@ -798,25 +720,33 @@
|
|
|
798
720
|
"kind": "action",
|
|
799
721
|
"from": "user",
|
|
800
722
|
"to": "atlas",
|
|
801
|
-
"label": "Approves revision
|
|
723
|
+
"label": "Approves revision rev_1"
|
|
802
724
|
},
|
|
803
725
|
{
|
|
804
726
|
"kind": "http",
|
|
805
727
|
"from": "atlas",
|
|
806
728
|
"to": "manzanita",
|
|
807
729
|
"method": "POST",
|
|
808
|
-
"url": "https://manzanita.example/poppy/
|
|
809
|
-
"status":
|
|
730
|
+
"url": "https://manzanita.example/poppy/conversations/cnv_1/messages?wait=0",
|
|
731
|
+
"status": 202,
|
|
810
732
|
"request": {
|
|
811
733
|
"headers": {
|
|
812
734
|
"content-type": "application/json",
|
|
813
|
-
"accept": "
|
|
814
|
-
"authorization": "
|
|
815
|
-
"
|
|
735
|
+
"accept": "*/*",
|
|
736
|
+
"authorization": "Bearer ‹access token›",
|
|
737
|
+
"poppy-session": "‹Session JWT›"
|
|
816
738
|
},
|
|
817
739
|
"body": {
|
|
818
|
-
"
|
|
819
|
-
|
|
740
|
+
"message": {
|
|
741
|
+
"id": "msg_3",
|
|
742
|
+
"author": {
|
|
743
|
+
"type": "agent"
|
|
744
|
+
},
|
|
745
|
+
"approval": {
|
|
746
|
+
"operation_id": "op_1",
|
|
747
|
+
"revision": "rev_1"
|
|
748
|
+
}
|
|
749
|
+
}
|
|
820
750
|
}
|
|
821
751
|
},
|
|
822
752
|
"response": {
|
|
@@ -824,112 +754,150 @@
|
|
|
824
754
|
"content-type": "application/json"
|
|
825
755
|
},
|
|
826
756
|
"body": {
|
|
827
|
-
"
|
|
828
|
-
"
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
"confirmation": {
|
|
842
|
-
"revision": 2,
|
|
843
|
-
"approved_by": "user",
|
|
844
|
-
"confirmed_at": "2026-10-11T09:00:10Z"
|
|
845
|
-
},
|
|
846
|
-
"result": {
|
|
847
|
-
"summary": "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.",
|
|
848
|
-
"data": {
|
|
849
|
-
"order_id": "ord_7Hk2",
|
|
850
|
-
"charged": {
|
|
851
|
-
"amount": "70.00",
|
|
852
|
-
"currency": "USD"
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
"kind": "http",
|
|
861
|
-
"from": "atlas",
|
|
862
|
-
"to": "manzanita",
|
|
863
|
-
"method": "POST",
|
|
864
|
-
"url": "https://manzanita.example/poppy/operations/op_1/confirm",
|
|
865
|
-
"status": 200,
|
|
866
|
-
"request": {
|
|
867
|
-
"headers": {
|
|
868
|
-
"content-type": "application/json",
|
|
869
|
-
"accept": "application/json",
|
|
870
|
-
"authorization": "DPoP ‹session token›",
|
|
871
|
-
"dpop": "‹DPoP proof›"
|
|
872
|
-
},
|
|
873
|
-
"body": {
|
|
874
|
-
"revision": 2,
|
|
875
|
-
"approved_by": "user"
|
|
876
|
-
}
|
|
877
|
-
},
|
|
878
|
-
"response": {
|
|
879
|
-
"headers": {
|
|
880
|
-
"content-type": "application/json"
|
|
881
|
-
},
|
|
882
|
-
"body": {
|
|
883
|
-
"operation_id": "op_1",
|
|
884
|
-
"revision": 2,
|
|
885
|
-
"state": "succeeded",
|
|
886
|
-
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more. Return the original by 2026-10-25.",
|
|
887
|
-
"terms": {
|
|
888
|
-
"order_id": "ord_7Hk2",
|
|
889
|
-
"price_difference": {
|
|
890
|
-
"amount": "70.00",
|
|
891
|
-
"currency": "USD"
|
|
757
|
+
"conversation_id": "cnv_1",
|
|
758
|
+
"events": [
|
|
759
|
+
{
|
|
760
|
+
"id": "evt_1",
|
|
761
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
762
|
+
"type": "message",
|
|
763
|
+
"message": {
|
|
764
|
+
"id": "msg_1",
|
|
765
|
+
"author": {
|
|
766
|
+
"type": "human"
|
|
767
|
+
},
|
|
768
|
+
"text": "Exchange my jacket for something warmer",
|
|
769
|
+
"role": "user"
|
|
770
|
+
}
|
|
892
771
|
},
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
772
|
+
{
|
|
773
|
+
"id": "evt_2",
|
|
774
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
775
|
+
"type": "state",
|
|
776
|
+
"status": "working",
|
|
777
|
+
"responder": "agent"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"id": "evt_3",
|
|
781
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
782
|
+
"type": "message",
|
|
783
|
+
"message": {
|
|
784
|
+
"id": "msg_2",
|
|
785
|
+
"author": {
|
|
786
|
+
"type": "agent"
|
|
787
|
+
},
|
|
788
|
+
"role": "company",
|
|
789
|
+
"text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
|
|
790
|
+
"operation": {
|
|
791
|
+
"operation_id": "op_1",
|
|
792
|
+
"revision": "rev_1",
|
|
793
|
+
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more.",
|
|
794
|
+
"terms": {
|
|
795
|
+
"order_id": "ord_7Hk2",
|
|
796
|
+
"price_difference": {
|
|
797
|
+
"amount": "70.00",
|
|
798
|
+
"currency": "USD"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"id": "evt_4",
|
|
807
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
808
|
+
"type": "state",
|
|
809
|
+
"status": "idle",
|
|
810
|
+
"responder": "agent"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"id": "evt_5",
|
|
814
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
815
|
+
"type": "message",
|
|
816
|
+
"message": {
|
|
817
|
+
"id": "msg_3",
|
|
818
|
+
"author": {
|
|
819
|
+
"type": "agent"
|
|
820
|
+
},
|
|
821
|
+
"approval": {
|
|
822
|
+
"operation_id": "op_1",
|
|
823
|
+
"revision": "rev_1"
|
|
824
|
+
},
|
|
825
|
+
"role": "user"
|
|
909
826
|
}
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"id": "evt_6",
|
|
830
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
831
|
+
"type": "state",
|
|
832
|
+
"status": "working",
|
|
833
|
+
"responder": "agent"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"id": "evt_7",
|
|
837
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
838
|
+
"type": "message",
|
|
839
|
+
"message": {
|
|
840
|
+
"id": "msg_4",
|
|
841
|
+
"author": {
|
|
842
|
+
"type": "agent"
|
|
843
|
+
},
|
|
844
|
+
"role": "company",
|
|
845
|
+
"text": "That approval doesn't cover these terms. Here they are to approve.",
|
|
846
|
+
"operation": {
|
|
847
|
+
"operation_id": "op_1",
|
|
848
|
+
"revision": "rev_2",
|
|
849
|
+
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more. Return the original by 2026-10-25.",
|
|
850
|
+
"terms": {
|
|
851
|
+
"order_id": "ord_7Hk2",
|
|
852
|
+
"price_difference": {
|
|
853
|
+
"amount": "70.00",
|
|
854
|
+
"currency": "USD"
|
|
855
|
+
},
|
|
856
|
+
"return_by": "2026-10-25"
|
|
857
|
+
},
|
|
858
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"id": "evt_8",
|
|
864
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
865
|
+
"type": "state",
|
|
866
|
+
"status": "idle",
|
|
867
|
+
"responder": "agent"
|
|
910
868
|
}
|
|
911
|
-
|
|
869
|
+
],
|
|
870
|
+
"cursor": "evt_8",
|
|
871
|
+
"has_more": false,
|
|
872
|
+
"status": "idle",
|
|
873
|
+
"responder": "agent"
|
|
912
874
|
}
|
|
913
875
|
}
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"kind": "action",
|
|
879
|
+
"from": "user",
|
|
880
|
+
"to": "atlas",
|
|
881
|
+
"label": "Approves revision rev_2"
|
|
914
882
|
}
|
|
915
883
|
]
|
|
916
884
|
},
|
|
917
885
|
{
|
|
918
|
-
"title": "
|
|
919
|
-
"channel": "
|
|
920
|
-
"summary": "
|
|
886
|
+
"title": "Approved, performed once",
|
|
887
|
+
"channel": "The approval as a message",
|
|
888
|
+
"summary": "Atlas sends Ada's approval of that revision. Sent again with the same message ID, it gets the same answer: the exchange is performed once.",
|
|
921
889
|
"chat": [
|
|
922
890
|
{
|
|
923
|
-
"speaker": "
|
|
891
|
+
"speaker": "user",
|
|
924
892
|
"kind": "approval",
|
|
925
|
-
"title": "Revision
|
|
926
|
-
"text": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more."
|
|
893
|
+
"title": "Revision rev_2 · approved",
|
|
894
|
+
"text": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more. Return the original by 2026-10-25."
|
|
927
895
|
},
|
|
928
896
|
{
|
|
929
897
|
"speaker": "manzanita",
|
|
930
898
|
"kind": "result",
|
|
931
899
|
"title": "Result",
|
|
932
|
-
"text": "
|
|
900
|
+
"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."
|
|
933
901
|
}
|
|
934
902
|
],
|
|
935
903
|
"views": {
|
|
@@ -940,7 +908,7 @@
|
|
|
940
908
|
},
|
|
941
909
|
{
|
|
942
910
|
"label": "Session",
|
|
943
|
-
"value": "signed in ·
|
|
911
|
+
"value": "signed in · a Session JWT on every request"
|
|
944
912
|
},
|
|
945
913
|
{
|
|
946
914
|
"label": "Scopes",
|
|
@@ -948,7 +916,7 @@
|
|
|
948
916
|
},
|
|
949
917
|
{
|
|
950
918
|
"label": "Vault (host only)",
|
|
951
|
-
"value": "1
|
|
919
|
+
"value": "1 refresh token by reference"
|
|
952
920
|
},
|
|
953
921
|
{
|
|
954
922
|
"label": "Model sees",
|
|
@@ -962,10 +930,10 @@
|
|
|
962
930
|
},
|
|
963
931
|
{
|
|
964
932
|
"label": "Sessions",
|
|
965
|
-
"value": "1 live
|
|
933
|
+
"value": "1 live"
|
|
966
934
|
},
|
|
967
935
|
{
|
|
968
|
-
"label": "Account behind the
|
|
936
|
+
"label": "Account behind the access token",
|
|
969
937
|
"value": "acct_ada"
|
|
970
938
|
},
|
|
971
939
|
{
|
|
@@ -973,20 +941,16 @@
|
|
|
973
941
|
"value": "orders:read orders:write"
|
|
974
942
|
},
|
|
975
943
|
{
|
|
976
|
-
"label": "
|
|
944
|
+
"label": "Refresh tokens issued",
|
|
977
945
|
"value": "1 · 1 not revoked"
|
|
978
946
|
},
|
|
979
947
|
{
|
|
980
948
|
"label": "Conversation",
|
|
981
|
-
"value": "idle · agent ·
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
"label": "Operation orders.exchange",
|
|
985
|
-
"value": "revision 2 · succeeded · approved by user"
|
|
949
|
+
"value": "idle · agent · 12 events"
|
|
986
950
|
},
|
|
987
951
|
{
|
|
988
952
|
"label": "Operation orders.exchange",
|
|
989
|
-
"value": "revision
|
|
953
|
+
"value": "revision rev_2 · performed"
|
|
990
954
|
}
|
|
991
955
|
]
|
|
992
956
|
},
|
|
@@ -996,22 +960,25 @@
|
|
|
996
960
|
"from": "atlas",
|
|
997
961
|
"to": "manzanita",
|
|
998
962
|
"method": "POST",
|
|
999
|
-
"url": "https://manzanita.example/poppy/conversations/cnv_1/messages?
|
|
963
|
+
"url": "https://manzanita.example/poppy/conversations/cnv_1/messages?wait=0",
|
|
1000
964
|
"status": 202,
|
|
1001
965
|
"request": {
|
|
1002
966
|
"headers": {
|
|
1003
967
|
"content-type": "application/json",
|
|
1004
968
|
"accept": "*/*",
|
|
1005
|
-
"authorization": "
|
|
1006
|
-
"
|
|
969
|
+
"authorization": "Bearer ‹access token›",
|
|
970
|
+
"poppy-session": "‹Session JWT›"
|
|
1007
971
|
},
|
|
1008
972
|
"body": {
|
|
1009
973
|
"message": {
|
|
1010
|
-
"id": "
|
|
974
|
+
"id": "msg_5",
|
|
1011
975
|
"author": {
|
|
1012
|
-
"type": "
|
|
976
|
+
"type": "agent"
|
|
1013
977
|
},
|
|
1014
|
-
"
|
|
978
|
+
"approval": {
|
|
979
|
+
"operation_id": "op_1",
|
|
980
|
+
"revision": "rev_2"
|
|
981
|
+
}
|
|
1015
982
|
}
|
|
1016
983
|
}
|
|
1017
984
|
},
|
|
@@ -1022,6 +989,59 @@
|
|
|
1022
989
|
"body": {
|
|
1023
990
|
"conversation_id": "cnv_1",
|
|
1024
991
|
"events": [
|
|
992
|
+
{
|
|
993
|
+
"id": "evt_1",
|
|
994
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
995
|
+
"type": "message",
|
|
996
|
+
"message": {
|
|
997
|
+
"id": "msg_1",
|
|
998
|
+
"author": {
|
|
999
|
+
"type": "human"
|
|
1000
|
+
},
|
|
1001
|
+
"text": "Exchange my jacket for something warmer",
|
|
1002
|
+
"role": "user"
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"id": "evt_2",
|
|
1007
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1008
|
+
"type": "state",
|
|
1009
|
+
"status": "working",
|
|
1010
|
+
"responder": "agent"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"id": "evt_3",
|
|
1014
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1015
|
+
"type": "message",
|
|
1016
|
+
"message": {
|
|
1017
|
+
"id": "msg_2",
|
|
1018
|
+
"author": {
|
|
1019
|
+
"type": "agent"
|
|
1020
|
+
},
|
|
1021
|
+
"role": "company",
|
|
1022
|
+
"text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
|
|
1023
|
+
"operation": {
|
|
1024
|
+
"operation_id": "op_1",
|
|
1025
|
+
"revision": "rev_1",
|
|
1026
|
+
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more.",
|
|
1027
|
+
"terms": {
|
|
1028
|
+
"order_id": "ord_7Hk2",
|
|
1029
|
+
"price_difference": {
|
|
1030
|
+
"amount": "70.00",
|
|
1031
|
+
"currency": "USD"
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"id": "evt_4",
|
|
1040
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1041
|
+
"type": "state",
|
|
1042
|
+
"status": "idle",
|
|
1043
|
+
"responder": "agent"
|
|
1044
|
+
},
|
|
1025
1045
|
{
|
|
1026
1046
|
"id": "evt_5",
|
|
1027
1047
|
"created_at": "2026-10-11T09:00:10Z",
|
|
@@ -1029,9 +1049,12 @@
|
|
|
1029
1049
|
"message": {
|
|
1030
1050
|
"id": "msg_3",
|
|
1031
1051
|
"author": {
|
|
1032
|
-
"type": "
|
|
1052
|
+
"type": "agent"
|
|
1053
|
+
},
|
|
1054
|
+
"approval": {
|
|
1055
|
+
"operation_id": "op_1",
|
|
1056
|
+
"revision": "rev_1"
|
|
1033
1057
|
},
|
|
1034
|
-
"text": "Actually, exchange it for something warmer still",
|
|
1035
1058
|
"role": "user"
|
|
1036
1059
|
}
|
|
1037
1060
|
},
|
|
@@ -1052,24 +1075,20 @@
|
|
|
1052
1075
|
"type": "agent"
|
|
1053
1076
|
},
|
|
1054
1077
|
"role": "company",
|
|
1055
|
-
"text": "
|
|
1078
|
+
"text": "That approval doesn't cover these terms. Here they are to approve.",
|
|
1056
1079
|
"operation": {
|
|
1057
|
-
"operation_id": "
|
|
1058
|
-
"revision":
|
|
1059
|
-
"
|
|
1060
|
-
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more.",
|
|
1080
|
+
"operation_id": "op_1",
|
|
1081
|
+
"revision": "rev_2",
|
|
1082
|
+
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more. Return the original by 2026-10-25.",
|
|
1061
1083
|
"terms": {
|
|
1062
1084
|
"order_id": "ord_7Hk2",
|
|
1063
1085
|
"price_difference": {
|
|
1064
1086
|
"amount": "70.00",
|
|
1065
1087
|
"currency": "USD"
|
|
1066
|
-
}
|
|
1088
|
+
},
|
|
1089
|
+
"return_by": "2026-10-25"
|
|
1067
1090
|
},
|
|
1068
|
-
"expires_at": "2026-10-11T09:15:10Z"
|
|
1069
|
-
"user_approval_required": true,
|
|
1070
|
-
"url": "https://manzanita.example/operations/op_2",
|
|
1071
|
-
"confirmation": null,
|
|
1072
|
-
"result": null
|
|
1091
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
1073
1092
|
}
|
|
1074
1093
|
}
|
|
1075
1094
|
},
|
|
@@ -1079,61 +1098,264 @@
|
|
|
1079
1098
|
"type": "state",
|
|
1080
1099
|
"status": "idle",
|
|
1081
1100
|
"responder": "agent"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"id": "evt_9",
|
|
1104
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1105
|
+
"type": "message",
|
|
1106
|
+
"message": {
|
|
1107
|
+
"id": "msg_5",
|
|
1108
|
+
"author": {
|
|
1109
|
+
"type": "agent"
|
|
1110
|
+
},
|
|
1111
|
+
"approval": {
|
|
1112
|
+
"operation_id": "op_1",
|
|
1113
|
+
"revision": "rev_2"
|
|
1114
|
+
},
|
|
1115
|
+
"role": "user"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"id": "evt_10",
|
|
1120
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1121
|
+
"type": "state",
|
|
1122
|
+
"status": "working",
|
|
1123
|
+
"responder": "agent"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"id": "evt_11",
|
|
1127
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1128
|
+
"type": "message",
|
|
1129
|
+
"message": {
|
|
1130
|
+
"id": "msg_6",
|
|
1131
|
+
"author": {
|
|
1132
|
+
"type": "agent"
|
|
1133
|
+
},
|
|
1134
|
+
"role": "company",
|
|
1135
|
+
"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.",
|
|
1136
|
+
"data": {
|
|
1137
|
+
"order_id": "ord_7Hk2",
|
|
1138
|
+
"charged": {
|
|
1139
|
+
"amount": "70.00",
|
|
1140
|
+
"currency": "USD"
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"id": "evt_12",
|
|
1147
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1148
|
+
"type": "state",
|
|
1149
|
+
"status": "idle",
|
|
1150
|
+
"responder": "agent"
|
|
1082
1151
|
}
|
|
1083
1152
|
],
|
|
1084
|
-
"cursor": "
|
|
1153
|
+
"cursor": "evt_12",
|
|
1085
1154
|
"has_more": false,
|
|
1086
1155
|
"status": "idle",
|
|
1087
1156
|
"responder": "agent"
|
|
1088
1157
|
}
|
|
1089
1158
|
}
|
|
1090
1159
|
},
|
|
1091
|
-
{
|
|
1092
|
-
"kind": "action",
|
|
1093
|
-
"from": "user",
|
|
1094
|
-
"to": "atlas",
|
|
1095
|
-
"label": "Declines the second proposal"
|
|
1096
|
-
},
|
|
1097
1160
|
{
|
|
1098
1161
|
"kind": "http",
|
|
1099
1162
|
"from": "atlas",
|
|
1100
1163
|
"to": "manzanita",
|
|
1101
1164
|
"method": "POST",
|
|
1102
|
-
"url": "https://manzanita.example/poppy/
|
|
1103
|
-
"status":
|
|
1165
|
+
"url": "https://manzanita.example/poppy/conversations/cnv_1/messages?wait=0",
|
|
1166
|
+
"status": 202,
|
|
1104
1167
|
"request": {
|
|
1105
1168
|
"headers": {
|
|
1106
1169
|
"content-type": "application/json",
|
|
1107
|
-
"accept": "
|
|
1108
|
-
"authorization": "
|
|
1109
|
-
"
|
|
1170
|
+
"accept": "*/*",
|
|
1171
|
+
"authorization": "Bearer ‹access token›",
|
|
1172
|
+
"poppy-session": "‹Session JWT›"
|
|
1110
1173
|
},
|
|
1111
|
-
"body": {
|
|
1174
|
+
"body": {
|
|
1175
|
+
"message": {
|
|
1176
|
+
"id": "msg_5",
|
|
1177
|
+
"author": {
|
|
1178
|
+
"type": "agent"
|
|
1179
|
+
},
|
|
1180
|
+
"approval": {
|
|
1181
|
+
"operation_id": "op_1",
|
|
1182
|
+
"revision": "rev_2"
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1112
1186
|
},
|
|
1113
1187
|
"response": {
|
|
1114
1188
|
"headers": {
|
|
1115
1189
|
"content-type": "application/json"
|
|
1116
1190
|
},
|
|
1117
1191
|
"body": {
|
|
1118
|
-
"
|
|
1119
|
-
"
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1192
|
+
"conversation_id": "cnv_1",
|
|
1193
|
+
"events": [
|
|
1194
|
+
{
|
|
1195
|
+
"id": "evt_1",
|
|
1196
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1197
|
+
"type": "message",
|
|
1198
|
+
"message": {
|
|
1199
|
+
"id": "msg_1",
|
|
1200
|
+
"author": {
|
|
1201
|
+
"type": "human"
|
|
1202
|
+
},
|
|
1203
|
+
"text": "Exchange my jacket for something warmer",
|
|
1204
|
+
"role": "user"
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"id": "evt_2",
|
|
1209
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1210
|
+
"type": "state",
|
|
1211
|
+
"status": "working",
|
|
1212
|
+
"responder": "agent"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"id": "evt_3",
|
|
1216
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1217
|
+
"type": "message",
|
|
1218
|
+
"message": {
|
|
1219
|
+
"id": "msg_2",
|
|
1220
|
+
"author": {
|
|
1221
|
+
"type": "agent"
|
|
1222
|
+
},
|
|
1223
|
+
"role": "company",
|
|
1224
|
+
"text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
|
|
1225
|
+
"operation": {
|
|
1226
|
+
"operation_id": "op_1",
|
|
1227
|
+
"revision": "rev_1",
|
|
1228
|
+
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more.",
|
|
1229
|
+
"terms": {
|
|
1230
|
+
"order_id": "ord_7Hk2",
|
|
1231
|
+
"price_difference": {
|
|
1232
|
+
"amount": "70.00",
|
|
1233
|
+
"currency": "USD"
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"id": "evt_4",
|
|
1242
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1243
|
+
"type": "state",
|
|
1244
|
+
"status": "idle",
|
|
1245
|
+
"responder": "agent"
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"id": "evt_5",
|
|
1249
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1250
|
+
"type": "message",
|
|
1251
|
+
"message": {
|
|
1252
|
+
"id": "msg_3",
|
|
1253
|
+
"author": {
|
|
1254
|
+
"type": "agent"
|
|
1255
|
+
},
|
|
1256
|
+
"approval": {
|
|
1257
|
+
"operation_id": "op_1",
|
|
1258
|
+
"revision": "rev_1"
|
|
1259
|
+
},
|
|
1260
|
+
"role": "user"
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"id": "evt_6",
|
|
1265
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1266
|
+
"type": "state",
|
|
1267
|
+
"status": "working",
|
|
1268
|
+
"responder": "agent"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"id": "evt_7",
|
|
1272
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1273
|
+
"type": "message",
|
|
1274
|
+
"message": {
|
|
1275
|
+
"id": "msg_4",
|
|
1276
|
+
"author": {
|
|
1277
|
+
"type": "agent"
|
|
1278
|
+
},
|
|
1279
|
+
"role": "company",
|
|
1280
|
+
"text": "That approval doesn't cover these terms. Here they are to approve.",
|
|
1281
|
+
"operation": {
|
|
1282
|
+
"operation_id": "op_1",
|
|
1283
|
+
"revision": "rev_2",
|
|
1284
|
+
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more. Return the original by 2026-10-25.",
|
|
1285
|
+
"terms": {
|
|
1286
|
+
"order_id": "ord_7Hk2",
|
|
1287
|
+
"price_difference": {
|
|
1288
|
+
"amount": "70.00",
|
|
1289
|
+
"currency": "USD"
|
|
1290
|
+
},
|
|
1291
|
+
"return_by": "2026-10-25"
|
|
1292
|
+
},
|
|
1293
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"id": "evt_8",
|
|
1299
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1300
|
+
"type": "state",
|
|
1301
|
+
"status": "idle",
|
|
1302
|
+
"responder": "agent"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"id": "evt_9",
|
|
1306
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1307
|
+
"type": "message",
|
|
1308
|
+
"message": {
|
|
1309
|
+
"id": "msg_5",
|
|
1310
|
+
"author": {
|
|
1311
|
+
"type": "agent"
|
|
1312
|
+
},
|
|
1313
|
+
"approval": {
|
|
1314
|
+
"operation_id": "op_1",
|
|
1315
|
+
"revision": "rev_2"
|
|
1316
|
+
},
|
|
1317
|
+
"role": "user"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"id": "evt_10",
|
|
1322
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1323
|
+
"type": "state",
|
|
1324
|
+
"status": "working",
|
|
1325
|
+
"responder": "agent"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"id": "evt_11",
|
|
1329
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1330
|
+
"type": "message",
|
|
1331
|
+
"message": {
|
|
1332
|
+
"id": "msg_6",
|
|
1333
|
+
"author": {
|
|
1334
|
+
"type": "agent"
|
|
1335
|
+
},
|
|
1336
|
+
"role": "company",
|
|
1337
|
+
"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.",
|
|
1338
|
+
"data": {
|
|
1339
|
+
"order_id": "ord_7Hk2",
|
|
1340
|
+
"charged": {
|
|
1341
|
+
"amount": "70.00",
|
|
1342
|
+
"currency": "USD"
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"id": "evt_12",
|
|
1349
|
+
"created_at": "2026-10-11T09:00:10Z",
|
|
1350
|
+
"type": "state",
|
|
1351
|
+
"status": "idle",
|
|
1352
|
+
"responder": "agent"
|
|
1127
1353
|
}
|
|
1128
|
-
|
|
1129
|
-
"
|
|
1130
|
-
"
|
|
1131
|
-
"
|
|
1132
|
-
"
|
|
1133
|
-
"result": {
|
|
1134
|
-
"summary": "Nothing was changed.",
|
|
1135
|
-
"data": null
|
|
1136
|
-
}
|
|
1354
|
+
],
|
|
1355
|
+
"cursor": "evt_12",
|
|
1356
|
+
"has_more": false,
|
|
1357
|
+
"status": "idle",
|
|
1358
|
+
"responder": "agent"
|
|
1137
1359
|
}
|
|
1138
1360
|
}
|
|
1139
1361
|
}
|