@deepraxis/sdk 0.1.1-dev.80337c3 → 0.1.1-dev.830431a
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 +18 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +35 -5
- package/dist/generated/sdk.gen.js +82 -4
- package/dist/generated/types.gen.d.ts +543 -3
- package/dist/operations.generated.js +163 -4
- package/dist/resources.generated.d.ts +23 -0
- package/dist/resources.generated.js +16 -0
- package/package.json +1 -1
|
@@ -1020,8 +1020,8 @@ export const operations = [
|
|
|
1020
1020
|
{
|
|
1021
1021
|
"resource": "agent.agents.events",
|
|
1022
1022
|
"method": "stream",
|
|
1023
|
-
"summary": "Follow
|
|
1024
|
-
"description": "Follow
|
|
1023
|
+
"summary": "Follow an agent live",
|
|
1024
|
+
"description": "Follow an agent live over Server-Sent Events. For a personal or general agent it is the stream of your own main session with that agent, the same stream sessions.events.stream opens, event_deltas[] previews included; read past events with agents.events.list. An assume agent has no main session: its body is its MCP connections, and this stream is its broadcast point, which every live connection of the agent hears at once. It carries two events, each with an SSE id: inbox.letter_delivered { letter_id, sender, sender_name, summary, thread, create_time } when a letter arrives (the letter stays unread; take it with the agent's inbox tool, the body is not in the event), and cognition.ritual_held { ritual, owner, title, engram, create_time } when a domain gives the agent a memory. Reconnect with the Last-Event-ID header to receive what you missed from a short recent buffer (about an hour); a first connection replays nothing, so read agents.inbox.letters.list for mail already waiting. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service agent answers 400. Closing the stream only drops your subscription and does not stop the agent.",
|
|
1025
1025
|
"http": "GET",
|
|
1026
1026
|
"path": "/agent/v1/agents/{agent_id}/events/stream",
|
|
1027
1027
|
"streaming": "always",
|
|
@@ -1047,6 +1047,40 @@ export const operations = [
|
|
|
1047
1047
|
}
|
|
1048
1048
|
]
|
|
1049
1049
|
},
|
|
1050
|
+
{
|
|
1051
|
+
"resource": "agent.agents.inbox.letters",
|
|
1052
|
+
"method": "list",
|
|
1053
|
+
"summary": "List an assume agent's waiting letters",
|
|
1054
|
+
"description": "Check whether mail waits for an assume agent without taking it: answers unread, the count of delivered letters the agent has not read, and letters, the newest unread ones (id, sender address, summary, thread, create_time; never the body). Nothing is marked read, so calling it again answers the same until the agent reads its mail with its own inbox tool (praxis_assume_inbox, action \"read\"). Use it when something outside the agent has to learn that mail arrived: the local `praxis agent events wait` reads it once on start and after every reconnect to its agent's event stream, so no letter that arrived while nothing listened is missed. {agent_id} takes the agent_… id, the eight character identity number or the handle of an assume agent in your organization; any other kind answers 400 ASSUME_AGENT_REQUIRED. To read or answer the letters, use the agent's inbox tool, not this read. Example: GET /agent/v1/agents/R1M9TQ2X/inbox/letters?unread=true&limit=5.",
|
|
1055
|
+
"http": "GET",
|
|
1056
|
+
"path": "/agent/v1/agents/{agent_id}/inbox/letters",
|
|
1057
|
+
"streaming": "no",
|
|
1058
|
+
"pagination": false,
|
|
1059
|
+
"pathParams": [
|
|
1060
|
+
{
|
|
1061
|
+
"name": "agent_id",
|
|
1062
|
+
"sdkName": "agent_id",
|
|
1063
|
+
"description": "The assume agent: its agent_… id, eight character identity number or handle, from agents.list or the praxis-assume MCP URL; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"query": [
|
|
1067
|
+
{
|
|
1068
|
+
"name": "unread",
|
|
1069
|
+
"type": "boolean",
|
|
1070
|
+
"enum": [
|
|
1071
|
+
true
|
|
1072
|
+
],
|
|
1073
|
+
"required": false,
|
|
1074
|
+
"description": "Only true is accepted, which is also the default; this read lists waiting (unread) letters and nothing else."
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"name": "limit",
|
|
1078
|
+
"type": "integer",
|
|
1079
|
+
"required": false,
|
|
1080
|
+
"description": "How many of the newest unread letters to return, 1 to 50 (default 20); unread always counts every waiting letter."
|
|
1081
|
+
}
|
|
1082
|
+
]
|
|
1083
|
+
},
|
|
1050
1084
|
{
|
|
1051
1085
|
"resource": "agent.agents.unarchive",
|
|
1052
1086
|
"method": "create",
|
|
@@ -2587,7 +2621,7 @@ export const operations = [
|
|
|
2587
2621
|
"resource": "agent.sessions.events",
|
|
2588
2622
|
"method": "list",
|
|
2589
2623
|
"summary": "List session events",
|
|
2590
|
-
"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; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), 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. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
|
|
2624
|
+
"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; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), 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, system.notification_suppressed (pending background notifications that hit the wake quota and started no run), system.notification_recorded, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
|
|
2591
2625
|
"http": "GET",
|
|
2592
2626
|
"path": "/agent/v1/sessions/{session_id}/events",
|
|
2593
2627
|
"streaming": "no",
|
|
@@ -15081,7 +15115,7 @@ export const operations = [
|
|
|
15081
15115
|
"resource": "devops.units",
|
|
15082
15116
|
"method": "push",
|
|
15083
15117
|
"summary": "Push a unit's branch",
|
|
15084
|
-
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that
|
|
15118
|
+
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.",
|
|
15085
15119
|
"http": "POST",
|
|
15086
15120
|
"path": "/devops/v1/units/{id}:push",
|
|
15087
15121
|
"streaming": "no",
|
|
@@ -25554,6 +25588,131 @@ export const operations = [
|
|
|
25554
25588
|
]
|
|
25555
25589
|
}
|
|
25556
25590
|
},
|
|
25591
|
+
{
|
|
25592
|
+
"resource": "share.permissions",
|
|
25593
|
+
"method": "list",
|
|
25594
|
+
"summary": "List shares",
|
|
25595
|
+
"description": "Find the shares of this organization, newest first, for example every link that exposes one file before you decide which to revoke. Filter by resource_type, resource_id and status; filters combine with AND. Continue with next_page_token as page_token until next_page_token is null. Records never include link.web_url. A credential bound to specific files must pass resource_type and resource_id of a bound file, and an unbound file answers 404.",
|
|
25596
|
+
"http": "GET",
|
|
25597
|
+
"path": "/share/v1/permissions",
|
|
25598
|
+
"streaming": "no",
|
|
25599
|
+
"pagination": false,
|
|
25600
|
+
"pathParams": [],
|
|
25601
|
+
"query": [
|
|
25602
|
+
{
|
|
25603
|
+
"name": "resource_type",
|
|
25604
|
+
"type": "string",
|
|
25605
|
+
"enum": [
|
|
25606
|
+
"file",
|
|
25607
|
+
"artifact",
|
|
25608
|
+
"canvas",
|
|
25609
|
+
"media_asset"
|
|
25610
|
+
],
|
|
25611
|
+
"required": false,
|
|
25612
|
+
"description": "Only shares of this object type; file, canvas and media_asset create today."
|
|
25613
|
+
},
|
|
25614
|
+
{
|
|
25615
|
+
"name": "resource_id",
|
|
25616
|
+
"type": "string",
|
|
25617
|
+
"required": false,
|
|
25618
|
+
"description": "Only shares of the object with this id, for example a file id from the File API or a media asset's library_id/asset_id; combine with resource_type."
|
|
25619
|
+
},
|
|
25620
|
+
{
|
|
25621
|
+
"name": "status",
|
|
25622
|
+
"type": "string",
|
|
25623
|
+
"enum": [
|
|
25624
|
+
"active",
|
|
25625
|
+
"expired",
|
|
25626
|
+
"revoked"
|
|
25627
|
+
],
|
|
25628
|
+
"required": false,
|
|
25629
|
+
"description": "Only shares in this state; omit to list every state."
|
|
25630
|
+
},
|
|
25631
|
+
{
|
|
25632
|
+
"name": "page_size",
|
|
25633
|
+
"type": "integer",
|
|
25634
|
+
"required": false,
|
|
25635
|
+
"description": "Maximum shares in one page, from 1 to 100; defaults to 50."
|
|
25636
|
+
},
|
|
25637
|
+
{
|
|
25638
|
+
"name": "page_token",
|
|
25639
|
+
"type": "string",
|
|
25640
|
+
"required": false,
|
|
25641
|
+
"description": "Opaque next_page_token from the preceding page with the same filters; omit on the first request."
|
|
25642
|
+
}
|
|
25643
|
+
]
|
|
25644
|
+
},
|
|
25645
|
+
{
|
|
25646
|
+
"resource": "share.permissions",
|
|
25647
|
+
"method": "create",
|
|
25648
|
+
"summary": "Create share",
|
|
25649
|
+
"description": "Make one file readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id}, with the file id from the File API. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). The link is anonymous and read-only. A type other than file answers 400 RESOURCE_TYPE_UNSUPPORTED, and a file that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.",
|
|
25650
|
+
"http": "POST",
|
|
25651
|
+
"path": "/share/v1/permissions",
|
|
25652
|
+
"streaming": "no",
|
|
25653
|
+
"pagination": false,
|
|
25654
|
+
"pathParams": [],
|
|
25655
|
+
"query": [],
|
|
25656
|
+
"body": {
|
|
25657
|
+
"required": true,
|
|
25658
|
+
"fields": [
|
|
25659
|
+
{
|
|
25660
|
+
"name": "resource",
|
|
25661
|
+
"type": "object",
|
|
25662
|
+
"required": true,
|
|
25663
|
+
"description": "The object a share exposes, named by a type and an id."
|
|
25664
|
+
},
|
|
25665
|
+
{
|
|
25666
|
+
"name": "expire_time",
|
|
25667
|
+
"type": "string",
|
|
25668
|
+
"required": false,
|
|
25669
|
+
"description": "ISO 8601 instant after which the link answers 410; omit or null for a link that never expires, and it must be in the future."
|
|
25670
|
+
},
|
|
25671
|
+
{
|
|
25672
|
+
"name": "prevents_download",
|
|
25673
|
+
"type": "boolean",
|
|
25674
|
+
"required": false,
|
|
25675
|
+
"description": "Ask viewers to open the content without a download prompt; a limit, not a guarantee, because anyone who can read it can save it. Defaults to false."
|
|
25676
|
+
}
|
|
25677
|
+
]
|
|
25678
|
+
}
|
|
25679
|
+
},
|
|
25680
|
+
{
|
|
25681
|
+
"resource": "share.permissions",
|
|
25682
|
+
"method": "delete",
|
|
25683
|
+
"summary": "Delete share",
|
|
25684
|
+
"description": "Take a link back so nobody can open it again. This revokes the share, the record stays readable with status revoked, and opening the link answers 410. Repeating the call on a revoked share is harmless and answers 204 again. Content addresses already signed when the link was opened expire on their own within five minutes. Take the id from shares.create or shares.list.",
|
|
25685
|
+
"http": "DELETE",
|
|
25686
|
+
"path": "/share/v1/permissions/{id}",
|
|
25687
|
+
"streaming": "no",
|
|
25688
|
+
"pagination": false,
|
|
25689
|
+
"pathParams": [
|
|
25690
|
+
{
|
|
25691
|
+
"name": "id",
|
|
25692
|
+
"sdkName": "id",
|
|
25693
|
+
"description": "Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted."
|
|
25694
|
+
}
|
|
25695
|
+
],
|
|
25696
|
+
"query": []
|
|
25697
|
+
},
|
|
25698
|
+
{
|
|
25699
|
+
"resource": "share.permissions",
|
|
25700
|
+
"method": "retrieve",
|
|
25701
|
+
"summary": "Retrieve share",
|
|
25702
|
+
"description": "Read one share to see whether its link is still active, when it expires, and how many times it was opened. Take the id from shares.create or shares.list. The record never includes link.web_url, because the address is shown once at creation. A share that does not exist or belongs to another organization answers 404 PERMISSION_NOT_FOUND.",
|
|
25703
|
+
"http": "GET",
|
|
25704
|
+
"path": "/share/v1/permissions/{id}",
|
|
25705
|
+
"streaming": "no",
|
|
25706
|
+
"pagination": false,
|
|
25707
|
+
"pathParams": [
|
|
25708
|
+
{
|
|
25709
|
+
"name": "id",
|
|
25710
|
+
"sdkName": "id",
|
|
25711
|
+
"description": "Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted."
|
|
25712
|
+
}
|
|
25713
|
+
],
|
|
25714
|
+
"query": []
|
|
25715
|
+
},
|
|
25557
25716
|
{
|
|
25558
25717
|
"resource": "studio.codexes",
|
|
25559
25718
|
"method": "list",
|
|
@@ -734,6 +734,20 @@ export declare function createAgent(transport: Transport): {
|
|
|
734
734
|
}>;
|
|
735
735
|
stream: (options: import("./core/transport.js").StreamOptions<Types.StreamAgentEventsData>) => AsyncIterable<Types.AgentSseEvent>;
|
|
736
736
|
};
|
|
737
|
+
inbox: {
|
|
738
|
+
letters: {
|
|
739
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListAgentInboxLettersData>) => Promise<{
|
|
740
|
+
unread: number;
|
|
741
|
+
letters: Array<{
|
|
742
|
+
id: string;
|
|
743
|
+
sender: string;
|
|
744
|
+
summary: string;
|
|
745
|
+
thread: string | null;
|
|
746
|
+
create_time: string;
|
|
747
|
+
}>;
|
|
748
|
+
}>;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
737
751
|
list: (options?: import("./core/transport.js").CallOptions<Types.AgentsListData> | undefined) => Promise<{
|
|
738
752
|
data: Array<{
|
|
739
753
|
id: string;
|
|
@@ -6082,6 +6096,14 @@ export declare function createSearch(transport: Transport): {
|
|
|
6082
6096
|
}>;
|
|
6083
6097
|
};
|
|
6084
6098
|
};
|
|
6099
|
+
export declare function createShare(transport: Transport): {
|
|
6100
|
+
permissions: {
|
|
6101
|
+
create: (options: import("./core/transport.js").CallOptions<Types.ShareCreatePermissionData>) => Promise<Types.ShareSharePermission>;
|
|
6102
|
+
delete: (options: import("./core/transport.js").CallOptions<Types.ShareDeletePermissionData>) => Promise<void>;
|
|
6103
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.ShareListPermissionsData> | undefined) => Promise<Types.ShareSharePermissionPage>;
|
|
6104
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.ShareRetrievePermissionData>) => Promise<Types.ShareSharePermission>;
|
|
6105
|
+
};
|
|
6106
|
+
};
|
|
6085
6107
|
export declare function createStudio(transport: Transport): {
|
|
6086
6108
|
codexes: {
|
|
6087
6109
|
create: (options: import("./core/transport.js").CallOptions<Types.StudioCodexesCreateData>) => Promise<Types.StudioCodex>;
|
|
@@ -6388,6 +6410,7 @@ export declare const resourceFactories: {
|
|
|
6388
6410
|
organization: typeof createOrganization;
|
|
6389
6411
|
sandbox: typeof createSandbox;
|
|
6390
6412
|
search: typeof createSearch;
|
|
6413
|
+
share: typeof createShare;
|
|
6391
6414
|
studio: typeof createStudio;
|
|
6392
6415
|
ticket: typeof createTicket;
|
|
6393
6416
|
vault: typeof createVault;
|
|
@@ -43,6 +43,11 @@ export function createAgent(transport) {
|
|
|
43
43
|
send: bind(transport, sdk.sendAgentEvents),
|
|
44
44
|
stream: bindStream(transport, sdk.streamAgentEvents),
|
|
45
45
|
},
|
|
46
|
+
inbox: {
|
|
47
|
+
letters: {
|
|
48
|
+
list: bind(transport, sdk.listAgentInboxLetters),
|
|
49
|
+
},
|
|
50
|
+
},
|
|
46
51
|
list: bind(transport, sdk.agentsList),
|
|
47
52
|
retrieve: bind(transport, sdk.agentsRetrieve),
|
|
48
53
|
retrieveAppearance: bind(transport, sdk.getAgentAppearance),
|
|
@@ -1295,6 +1300,16 @@ export function createSearch(transport) {
|
|
|
1295
1300
|
},
|
|
1296
1301
|
};
|
|
1297
1302
|
}
|
|
1303
|
+
export function createShare(transport) {
|
|
1304
|
+
return {
|
|
1305
|
+
permissions: {
|
|
1306
|
+
create: bind(transport, sdk.shareCreatePermission),
|
|
1307
|
+
delete: bind(transport, sdk.shareDeletePermission),
|
|
1308
|
+
list: bind(transport, sdk.shareListPermissions),
|
|
1309
|
+
retrieve: bind(transport, sdk.shareRetrievePermission),
|
|
1310
|
+
},
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1298
1313
|
export function createStudio(transport) {
|
|
1299
1314
|
return {
|
|
1300
1315
|
codexes: {
|
|
@@ -1565,6 +1580,7 @@ export const resourceFactories = {
|
|
|
1565
1580
|
organization: createOrganization,
|
|
1566
1581
|
sandbox: createSandbox,
|
|
1567
1582
|
search: createSearch,
|
|
1583
|
+
share: createShare,
|
|
1568
1584
|
studio: createStudio,
|
|
1569
1585
|
ticket: createTicket,
|
|
1570
1586
|
vault: createVault,
|