@deepraxis/sdk 0.1.0-dev.449ac38 → 0.1.0-dev.67c7f3b
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/METHODS.md +58 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +101 -7
- package/dist/generated/sdk.gen.js +230 -6
- package/dist/generated/types.gen.d.ts +1661 -221
- package/dist/operations.generated.d.ts +237 -6
- package/dist/operations.generated.js +287 -6
- package/dist/resources.generated.d.ts +218 -1
- package/dist/resources.generated.js +30 -0
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ export const operations = [
|
|
|
61
61
|
"resource": "agent.agents",
|
|
62
62
|
"method": "create",
|
|
63
63
|
"summary": "Create agent",
|
|
64
|
-
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. Unlike Anthropic Managed Agents, nonempty skills attachments
|
|
64
|
+
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. Unlike Anthropic Managed Agents, nonempty skills attachments return 400; the native skill tool is separate from the skills field. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}.",
|
|
65
65
|
"http": "POST",
|
|
66
66
|
"path": "/agent/v1/agents",
|
|
67
67
|
"streaming": "no",
|
|
@@ -207,7 +207,7 @@ export const operations = [
|
|
|
207
207
|
"resource": "agent.agents",
|
|
208
208
|
"method": "update",
|
|
209
209
|
"summary": "Update agent",
|
|
210
|
-
"description": "Update an agent. Send the current version in the body for optimistic concurrency: a stale version returns 409, and an update that changes nothing keeps the version number. Any real change saves a new version; existing sessions keep the version they were created with. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. Unlike Anthropic Managed Agents, nonempty skills attachments
|
|
210
|
+
"description": "Update an agent. Send the current version in the body for optimistic concurrency: a stale version returns 409, and an update that changes nothing keeps the version number. Any real change saves a new version; existing sessions keep the version they were created with. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. Unlike Anthropic Managed Agents, nonempty skills attachments return 400; use the native skill tool for available runtime skills.",
|
|
211
211
|
"http": "POST",
|
|
212
212
|
"path": "/agent/v1/agents/{agent_id}",
|
|
213
213
|
"streaming": "no",
|
|
@@ -353,6 +353,175 @@ export const operations = [
|
|
|
353
353
|
],
|
|
354
354
|
"query": []
|
|
355
355
|
},
|
|
356
|
+
{
|
|
357
|
+
"resource": "agent.agents.endUsers",
|
|
358
|
+
"method": "list",
|
|
359
|
+
"summary": "List End Users",
|
|
360
|
+
"description": "List users who have sessions or token issuance history on a service agent.\n\nOrdered by last_active_at and external_user_id descending. q is a case-sensitive literal prefix, including underscores. limit is 1–100, default 20. Reuse next_page with the same organization, agent, q and limit. Preemptively blocked users without history do not appear. End-user credentials and inaccessible or personal agents return 404.",
|
|
361
|
+
"http": "GET",
|
|
362
|
+
"path": "/agent/v1/agents/{agent_id}/end_users",
|
|
363
|
+
"streaming": "no",
|
|
364
|
+
"pagination": false,
|
|
365
|
+
"pathParams": [
|
|
366
|
+
{
|
|
367
|
+
"name": "agent_id",
|
|
368
|
+
"sdkName": "agent_id"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"query": [
|
|
372
|
+
{
|
|
373
|
+
"name": "limit",
|
|
374
|
+
"type": "integer",
|
|
375
|
+
"required": false,
|
|
376
|
+
"description": "Maximum users per page; defaults to 20."
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "page",
|
|
380
|
+
"type": "string",
|
|
381
|
+
"required": false,
|
|
382
|
+
"description": "next_page from the previous response with the same agent, q and limit."
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"name": "q",
|
|
386
|
+
"type": "string",
|
|
387
|
+
"required": false,
|
|
388
|
+
"description": "Case-sensitive literal prefix of external_user_id; omit or use an empty string for all users."
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"resource": "agent.agents.endUsers",
|
|
394
|
+
"method": "delete",
|
|
395
|
+
"summary": "Delete end-user data",
|
|
396
|
+
"description": "Delete a host application's end-user data from one service agent after explicit confirmation.\n\nDevelop only. Set confirm to the exact external_user_id; missing or mismatched confirmation returns 400. Returns 202 with a pending task id, not completion. Poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the user is blocked before a seven-day recovery snapshot is verified. Sessions including child sessions, conversation data, grants and feedback are then removed. A pre-existing block remains; a temporary block is removed on success. Attachment metadata is recorded and File attachments are retained. No charge is introduced by this operation. Example: DELETE /agent/v1/agents/agent_example/end_users/customer_123?confirm=customer_123.",
|
|
397
|
+
"http": "DELETE",
|
|
398
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
|
|
399
|
+
"streaming": "no",
|
|
400
|
+
"pagination": false,
|
|
401
|
+
"pathParams": [
|
|
402
|
+
{
|
|
403
|
+
"name": "agent_id",
|
|
404
|
+
"sdkName": "agent_id"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "external_user_id",
|
|
408
|
+
"sdkName": "external_user_id"
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
"query": [
|
|
412
|
+
{
|
|
413
|
+
"name": "confirm",
|
|
414
|
+
"type": "string",
|
|
415
|
+
"required": true,
|
|
416
|
+
"description": "Must exactly equal the external_user_id path parameter to confirm destructive deletion."
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"resource": "agent.agents.endUsers",
|
|
422
|
+
"method": "retrieve",
|
|
423
|
+
"summary": "Get End User",
|
|
424
|
+
"description": "Inspect one end user and their twenty most recently updated sessions.\n\nUse external_user_id from listing or your host application. Users without session or issuance history return 404, including preemptively blocked users. End-user credentials and inaccessible or personal agents return 404.",
|
|
425
|
+
"http": "GET",
|
|
426
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
|
|
427
|
+
"streaming": "no",
|
|
428
|
+
"pagination": false,
|
|
429
|
+
"pathParams": [
|
|
430
|
+
{
|
|
431
|
+
"name": "agent_id",
|
|
432
|
+
"sdkName": "agent_id"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"name": "external_user_id",
|
|
436
|
+
"sdkName": "external_user_id"
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"query": []
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"resource": "agent.agents.endUsers.block",
|
|
443
|
+
"method": "create",
|
|
444
|
+
"summary": "Block End User",
|
|
445
|
+
"description": "Block token issuance and session creation, then revoke existing tokens for an end user.\n\nMay block a user before any history exists; timestamps are then null and counts and cost are zero. Requires an embed policy, otherwise returns 409 with setup guidance. Deduplicates the policy blocklist and retains its 1000-user maximum. If revocation returns 502, the user remains blocked; retry to finish revocation. Repeats keep the user blocked and revoke any remaining grants. End-user credentials and inaccessible or personal agents return 404.",
|
|
446
|
+
"http": "POST",
|
|
447
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
|
|
448
|
+
"streaming": "no",
|
|
449
|
+
"pagination": false,
|
|
450
|
+
"pathParams": [
|
|
451
|
+
{
|
|
452
|
+
"name": "agent_id",
|
|
453
|
+
"sdkName": "agent_id"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "external_user_id",
|
|
457
|
+
"sdkName": "external_user_id"
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
"query": []
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"resource": "agent.agents.endUsers",
|
|
464
|
+
"method": "retrieveDeletion",
|
|
465
|
+
"summary": "Get end-user deletion",
|
|
466
|
+
"description": "Poll the latest deletion task for an end user, including after the user data has been removed.\n\nUse the same agent_id and external_user_id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. A failed task remains blocked and resumes when DELETE is retried with matching confirmation. snapshot_key is an operator recovery reference retained for seven days, not a public download URL. End-user credentials, inaccessible or personal agents, and missing tasks return 404. This read does not create a task or charge usage.",
|
|
467
|
+
"http": "GET",
|
|
468
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion",
|
|
469
|
+
"streaming": "no",
|
|
470
|
+
"pagination": false,
|
|
471
|
+
"pathParams": [
|
|
472
|
+
{
|
|
473
|
+
"name": "agent_id",
|
|
474
|
+
"sdkName": "agent_id"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "external_user_id",
|
|
478
|
+
"sdkName": "external_user_id"
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
"query": []
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"resource": "agent.agents.endUsers.revokeTokens",
|
|
485
|
+
"method": "create",
|
|
486
|
+
"summary": "Revoke End User Tokens",
|
|
487
|
+
"description": "Revoke all issued tokens for an end user and terminate their open embed streams.\n\nRevokes credentials before marking grants revoked. Upstream failure returns 502 without changing grant revocation timestamps. Returns the count of newly revoked grants; a repeat without new grants returns zero. Does not block future issuance. End-user credentials and inaccessible or personal agents return 404.",
|
|
488
|
+
"http": "POST",
|
|
489
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
|
|
490
|
+
"streaming": "no",
|
|
491
|
+
"pagination": false,
|
|
492
|
+
"pathParams": [
|
|
493
|
+
{
|
|
494
|
+
"name": "agent_id",
|
|
495
|
+
"sdkName": "agent_id"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "external_user_id",
|
|
499
|
+
"sdkName": "external_user_id"
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"query": []
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"resource": "agent.agents.endUsers.unblock",
|
|
506
|
+
"method": "create",
|
|
507
|
+
"summary": "Unblock End User",
|
|
508
|
+
"description": "Allow an end user to receive new tokens and create new sessions again.\n\nRemoves the user from the blocklist; previously revoked tokens stay revoked. Idempotent. Requires an embed policy, otherwise returns 409 with setup guidance. Returns null timestamps and zero counts and cost when no session or issuance history exists. End-user credentials and inaccessible or personal agents return 404.",
|
|
509
|
+
"http": "POST",
|
|
510
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
|
|
511
|
+
"streaming": "no",
|
|
512
|
+
"pagination": false,
|
|
513
|
+
"pathParams": [
|
|
514
|
+
{
|
|
515
|
+
"name": "agent_id",
|
|
516
|
+
"sdkName": "agent_id"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "external_user_id",
|
|
520
|
+
"sdkName": "external_user_id"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"query": []
|
|
524
|
+
},
|
|
356
525
|
{
|
|
357
526
|
"resource": "agent.agents.versions",
|
|
358
527
|
"method": "list",
|
|
@@ -548,7 +717,7 @@ export const operations = [
|
|
|
548
717
|
"resource": "agent.computers",
|
|
549
718
|
"method": "connect",
|
|
550
719
|
"summary": "Connect computer",
|
|
551
|
-
"description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.",
|
|
720
|
+
"description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.",
|
|
552
721
|
"http": "POST",
|
|
553
722
|
"path": "/agent/v1/computers/{computer_id}/connect",
|
|
554
723
|
"streaming": "no",
|
|
@@ -609,6 +778,48 @@ export const operations = [
|
|
|
609
778
|
}
|
|
610
779
|
]
|
|
611
780
|
},
|
|
781
|
+
{
|
|
782
|
+
"resource": "agent.computers.leases",
|
|
783
|
+
"method": "delete",
|
|
784
|
+
"summary": "Release computer lease",
|
|
785
|
+
"description": "Give the lease back when a connection closes so the full machine can be reclaimed without waiting for it to expire.\n\nOwn-face extension. Idempotent: an unknown or already released lease succeeds as well. Foreign or absent computers return 404.",
|
|
786
|
+
"http": "DELETE",
|
|
787
|
+
"path": "/agent/v1/computers/{computer_id}/leases/{lease_id}",
|
|
788
|
+
"streaming": "no",
|
|
789
|
+
"pagination": false,
|
|
790
|
+
"pathParams": [
|
|
791
|
+
{
|
|
792
|
+
"name": "computer_id",
|
|
793
|
+
"sdkName": "computer_id"
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "lease_id",
|
|
797
|
+
"sdkName": "lease_id"
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"query": []
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"resource": "agent.computers.leases.renew",
|
|
804
|
+
"method": "create",
|
|
805
|
+
"summary": "Renew computer lease",
|
|
806
|
+
"description": "Extend the lease a connection holds so the full machine stays in service while the connection is open.\n\nOwn-face extension. A lease that is no longer valid (released, expired, or the computer moved to another machine) returns 409 LEASE_STALE; call connect again for a new connection and lease. Foreign or absent computers return 404.",
|
|
807
|
+
"http": "POST",
|
|
808
|
+
"path": "/agent/v1/computers/{computer_id}/leases/{lease_id}/renew",
|
|
809
|
+
"streaming": "no",
|
|
810
|
+
"pagination": false,
|
|
811
|
+
"pathParams": [
|
|
812
|
+
{
|
|
813
|
+
"name": "computer_id",
|
|
814
|
+
"sdkName": "computer_id"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"name": "lease_id",
|
|
818
|
+
"sdkName": "lease_id"
|
|
819
|
+
}
|
|
820
|
+
],
|
|
821
|
+
"query": []
|
|
822
|
+
},
|
|
612
823
|
{
|
|
613
824
|
"resource": "agent.deploymentRuns",
|
|
614
825
|
"method": "list",
|
|
@@ -1026,6 +1237,41 @@ export const operations = [
|
|
|
1026
1237
|
],
|
|
1027
1238
|
"query": []
|
|
1028
1239
|
},
|
|
1240
|
+
{
|
|
1241
|
+
"resource": "agent.embed",
|
|
1242
|
+
"method": "retrieveAppearance",
|
|
1243
|
+
"summary": "Read chat appearance",
|
|
1244
|
+
"description": "Load saved appearance for an iframe or Hosted chat page. Supply an end-user embed token as Bearer authorization, or a console-issued publishable key in Praxis-Publishable-Key before anonymous token issuance. The credential selects the agent; identity_number and agent_id query parameters are rejected with 400. Missing appearance returns an empty object. Kit option names retain camelCase. Responses are private and cacheable for 60 seconds. Component hosts configure Kit in their own code instead.",
|
|
1245
|
+
"http": "GET",
|
|
1246
|
+
"path": "/agent/v1/embed/appearance",
|
|
1247
|
+
"streaming": "no",
|
|
1248
|
+
"pagination": false,
|
|
1249
|
+
"pathParams": [],
|
|
1250
|
+
"query": []
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"resource": "agent.embed.exchange",
|
|
1254
|
+
"method": "create",
|
|
1255
|
+
"summary": "Exchange Hosted Code",
|
|
1256
|
+
"description": "Redeem a single-use hosted link credential for an end-user token.\n\nRead code from the c fragment parameter of hosted_url returned by embed token creation with hosted true, then remove the fragment before exchanging. No Authorization header is required; the code authenticates this request. The code expires after 60 seconds and is consumed atomically on exchange, so concurrent attempts have only one winner. Expired, used and unknown codes return the same 404 body. Keep the token in memory and return to the host website for a fresh link when it expires; exchange cannot refresh it. Requests are IP limited per minute using the anonymous entrypoint budget (default 20). Example body is {\"code\":\"<code from hosted_url>\"}.",
|
|
1257
|
+
"http": "POST",
|
|
1258
|
+
"path": "/agent/v1/embed/exchange",
|
|
1259
|
+
"streaming": "no",
|
|
1260
|
+
"pagination": false,
|
|
1261
|
+
"pathParams": [],
|
|
1262
|
+
"query": [],
|
|
1263
|
+
"body": {
|
|
1264
|
+
"required": true,
|
|
1265
|
+
"fields": [
|
|
1266
|
+
{
|
|
1267
|
+
"name": "code",
|
|
1268
|
+
"type": "string",
|
|
1269
|
+
"required": true,
|
|
1270
|
+
"description": "Single-use credential from the c fragment parameter of hosted_url returned by embed token creation. Valid for 60 seconds."
|
|
1271
|
+
}
|
|
1272
|
+
]
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1029
1275
|
{
|
|
1030
1276
|
"resource": "agent.embedTokens",
|
|
1031
1277
|
"method": "list",
|
|
@@ -1067,7 +1313,7 @@ export const operations = [
|
|
|
1067
1313
|
"resource": "agent.embedTokens",
|
|
1068
1314
|
"method": "create",
|
|
1069
1315
|
"summary": "Create Embed Token",
|
|
1070
|
-
"description": "Issue a short-lived credential on your backend for an end user of a service agent.\n\nRequires an active service agent in your organization with an embed policy. Pins the requested version or the latest version and snapshots the policy environment, vaults and resources; metadata comes from the request. Blocked users cannot receive tokens. Keep your API key on the backend and pass only the returned token to the frontend. Every call creates a new grant; issuance is not idempotent.
|
|
1316
|
+
"description": "Issue a short-lived credential on your backend for an end user of a service agent.\n\nRequires an active service agent in your organization with an embed policy. Pins the requested version or the latest version and snapshots the policy environment, vaults and resources; metadata comes from the request. Blocked users cannot receive tokens. Keep your API key on the backend and pass only the returned token to the frontend. Every call creates a new grant; issuance is not idempotent. Set hosted to true to also receive hosted_url; redirect the user there within 60 seconds. The agent must have an identity_number. The URL fragment contains a single-use exchange credential, not the token. Omit hosted or set false for ordinary token issuance.",
|
|
1071
1317
|
"http": "POST",
|
|
1072
1318
|
"path": "/agent/v1/embed_tokens",
|
|
1073
1319
|
"streaming": "no",
|
|
@@ -1077,6 +1323,12 @@ export const operations = [
|
|
|
1077
1323
|
"body": {
|
|
1078
1324
|
"required": true,
|
|
1079
1325
|
"fields": [
|
|
1326
|
+
{
|
|
1327
|
+
"name": "hosted",
|
|
1328
|
+
"type": "boolean",
|
|
1329
|
+
"required": false,
|
|
1330
|
+
"description": "Set true to also return a hosted chat URL with a single-use credential valid for 60 seconds. Defaults to false; the agent must have an identity_number."
|
|
1331
|
+
},
|
|
1080
1332
|
{
|
|
1081
1333
|
"name": "agent",
|
|
1082
1334
|
"type": "string",
|
|
@@ -1136,6 +1388,35 @@ export const operations = [
|
|
|
1136
1388
|
]
|
|
1137
1389
|
}
|
|
1138
1390
|
},
|
|
1391
|
+
{
|
|
1392
|
+
"resource": "agent.embedTokens.anonymous",
|
|
1393
|
+
"method": "create",
|
|
1394
|
+
"summary": "Issue anonymous visitor token",
|
|
1395
|
+
"description": "Obtain a short-lived embedding token for a visitor without an account using the agent owner's publishable key.\n\nNo Authorization header is required. Send the browser Origin allowed by the agent policy. Save a returned visitor_secret and reuse it for refreshes; only new visitors receive one. Unknown secrets create new visitors, and extra fields including visitor_id return 400. Issuance uses the key creator's organization membership, the key session budget and the smaller of the policy TTL maximum and 3600 seconds. IP requests are limited per minute (default 20); UTC daily session and spending caps are checked across the key's primary sessions created that day. Token issuance itself does not create a session or charge usage; subsequent sessions bill the host organization. Example body: {\"publishable_key\":\"pk_praxis_example\"}.",
|
|
1396
|
+
"http": "POST",
|
|
1397
|
+
"path": "/agent/v1/embed_tokens/anonymous",
|
|
1398
|
+
"streaming": "no",
|
|
1399
|
+
"pagination": false,
|
|
1400
|
+
"pathParams": [],
|
|
1401
|
+
"query": [],
|
|
1402
|
+
"body": {
|
|
1403
|
+
"required": true,
|
|
1404
|
+
"fields": [
|
|
1405
|
+
{
|
|
1406
|
+
"name": "publishable_key",
|
|
1407
|
+
"type": "string",
|
|
1408
|
+
"required": true,
|
|
1409
|
+
"description": "Public key created by the service agent owner; safe to include in browser code."
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"name": "visitor_secret",
|
|
1413
|
+
"type": "string",
|
|
1414
|
+
"required": false,
|
|
1415
|
+
"description": "Secret returned by a previous anonymous issuance for this key. Omit for a new visitor; an unknown secret creates a new visitor."
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1139
1420
|
{
|
|
1140
1421
|
"resource": "agent.embedTokens.revoke",
|
|
1141
1422
|
"method": "create",
|
|
@@ -1810,7 +2091,7 @@ export const operations = [
|
|
|
1810
2091
|
"resource": "agent.sessions.events",
|
|
1811
2092
|
"method": "list",
|
|
1812
2093
|
"summary": "List session events",
|
|
1813
|
-
"description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval (session.status_idle with stop_reason requires_action lists their event_ids), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter.",
|
|
2094
|
+
"description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter.",
|
|
1814
2095
|
"http": "GET",
|
|
1815
2096
|
"path": "/agent/v1/sessions/{session_id}/events",
|
|
1816
2097
|
"streaming": "no",
|
|
@@ -1881,7 +2162,7 @@ export const operations = [
|
|
|
1881
2162
|
"resource": "agent.sessions.events",
|
|
1882
2163
|
"method": "send",
|
|
1883
2164
|
"summary": "Send session events",
|
|
1884
|
-
"description": "Send events to a session: user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation to allow or deny a pending tool call, user.steer to inject a queued user.message into a turn that is still running, and user.withdraw to retract a queued message. The response only acknowledges the inputs; read replies with sessions.events.list or sessions.events.stream. A message sent while the session waits for tool approval is queued (processed_at null) and runs in order after the approval is resolved. Archived sessions reject new messages. To approve, read a pending agent.tool_use or agent.mcp_tool_use event and send {type: \"user.tool_confirmation\", tool_use_id: <that event id>, result: \"allow\"} (or deny); include session_thread_id for a child approval. Native confirmations also accept updated_permissions, answers and annotations, which /anthropic/v1 rejects.",
|
|
2165
|
+
"description": "Attach optional praxis_context={items:[{name,value}]} to user.message for untrusted page context on this turn only (maximum 32 items, 4096 UTF-8 JSON bytes). /anthropic/v1 rejects this field. Send events to a session: user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation to allow or deny a pending tool call, user.custom_tool_result to return a custom tool result, user.steer to inject a queued user.message into a turn that is still running, and user.withdraw to retract a queued message. The response only acknowledges the inputs; read replies with sessions.events.list or sessions.events.stream. A message sent while the session waits for tool approval is queued (processed_at null) and runs in order after the approval is resolved. Archived sessions reject new messages. To approve, read a pending agent.tool_use or agent.mcp_tool_use event and send {type: \"user.tool_confirmation\", tool_use_id: <that event id>, result: \"allow\"} (or deny); include session_thread_id for a child approval. Native confirmations also accept updated_permissions, answers and annotations, which /anthropic/v1 rejects. Both faces accept user.custom_tool_result with custom_tool_use_id from agent.custom_tool_use.id or the requires_action stop_reason.event_ids. Unlike Anthropic, result content accepts only text blocks (omit it for an empty array). Omitted or null is_error means false. The server routes child calls by id; session_thread_id is rejected in this input. Unknown call ids return 400; duplicate results or calls no longer waiting return 409.",
|
|
1885
2166
|
"http": "POST",
|
|
1886
2167
|
"path": "/agent/v1/sessions/{session_id}/events",
|
|
1887
2168
|
"streaming": "no",
|