@deepraxis/sdk 0.1.1-dev.80dd587 → 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 +30 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +50 -6
- package/dist/generated/sdk.gen.js +121 -5
- package/dist/generated/types.gen.d.ts +780 -14
- package/dist/operations.generated.js +230 -6
- package/dist/resources.generated.d.ts +40 -0
- package/dist/resources.generated.js +22 -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), 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",
|
|
@@ -2744,6 +2778,24 @@ export const operations = [
|
|
|
2744
2778
|
]
|
|
2745
2779
|
}
|
|
2746
2780
|
},
|
|
2781
|
+
{
|
|
2782
|
+
"resource": "agent.sessions.requests",
|
|
2783
|
+
"method": "list",
|
|
2784
|
+
"summary": "List Session Requests (Extension)",
|
|
2785
|
+
"description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (question for the ask_user_question tool, approval for any other tool that waits for permission), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.",
|
|
2786
|
+
"http": "GET",
|
|
2787
|
+
"path": "/agent/v1/sessions/{session_id}/requests",
|
|
2788
|
+
"streaming": "no",
|
|
2789
|
+
"pagination": false,
|
|
2790
|
+
"pathParams": [
|
|
2791
|
+
{
|
|
2792
|
+
"name": "session_id",
|
|
2793
|
+
"sdkName": "session_id",
|
|
2794
|
+
"description": "Session id from session creation or listing."
|
|
2795
|
+
}
|
|
2796
|
+
],
|
|
2797
|
+
"query": []
|
|
2798
|
+
},
|
|
2747
2799
|
{
|
|
2748
2800
|
"resource": "agent.sessions.resources",
|
|
2749
2801
|
"method": "list",
|
|
@@ -15063,7 +15115,7 @@ export const operations = [
|
|
|
15063
15115
|
"resource": "devops.units",
|
|
15064
15116
|
"method": "push",
|
|
15065
15117
|
"summary": "Push a unit's branch",
|
|
15066
|
-
"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.",
|
|
15067
15119
|
"http": "POST",
|
|
15068
15120
|
"path": "/devops/v1/units/{id}:push",
|
|
15069
15121
|
"streaming": "no",
|
|
@@ -16968,11 +17020,57 @@ export const operations = [
|
|
|
16968
17020
|
]
|
|
16969
17021
|
}
|
|
16970
17022
|
},
|
|
17023
|
+
{
|
|
17024
|
+
"resource": "media.libraries.assets.align",
|
|
17025
|
+
"method": "create",
|
|
17026
|
+
"summary": "Align asset",
|
|
17027
|
+
"description": "Align two recordings by their sound and learn how they line up, without producing an asset. The route names the source asset; the body names the reference to compare against it. Both must be audio or a video, of the same library; anything else is refused with REFERENCE_TYPE_MISMATCH before a job exists. The call is an analysis: it decides and charges nothing else, bills per second of input, and stores no asset — the completed job carries the answer in result, offset_seconds saying how many seconds later the reference starts (so a caller holding both recordings knows which one to slide) and confidence how sure the correlation is. The analysis is idempotent on the source, the reference and the parameters: asking again with the same pair answers the completed job and its result instead of analysing and charging again. A max_offset_seconds caps how far apart the two may be; alignment needs an alignment model from the platform model catalogue, and with none published the request is refused with OPERATION_NOT_SUPPORTED, 尚未上架. Send Idempotency-Key, or idempotency_key in the body, to retry without analysing twice. The response is 202 with a queued Job whose operation is align; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read result. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/align with {\"reference_asset_id\":\"3f2a9c1e5b7d4e6f8a0b1c2d3e4f5a6b\",\"max_offset_seconds\":30}.",
|
|
17028
|
+
"http": "POST",
|
|
17029
|
+
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/align",
|
|
17030
|
+
"streaming": "no",
|
|
17031
|
+
"pagination": false,
|
|
17032
|
+
"pathParams": [
|
|
17033
|
+
{
|
|
17034
|
+
"name": "library_id",
|
|
17035
|
+
"sdkName": "library_id",
|
|
17036
|
+
"description": "Library ID returned by creation."
|
|
17037
|
+
},
|
|
17038
|
+
{
|
|
17039
|
+
"name": "asset_id",
|
|
17040
|
+
"sdkName": "asset_id",
|
|
17041
|
+
"description": "32-character asset ID."
|
|
17042
|
+
}
|
|
17043
|
+
],
|
|
17044
|
+
"query": [],
|
|
17045
|
+
"body": {
|
|
17046
|
+
"required": true,
|
|
17047
|
+
"fields": [
|
|
17048
|
+
{
|
|
17049
|
+
"name": "reference_asset_id",
|
|
17050
|
+
"type": "string",
|
|
17051
|
+
"required": true,
|
|
17052
|
+
"description": "Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists."
|
|
17053
|
+
},
|
|
17054
|
+
{
|
|
17055
|
+
"name": "max_offset_seconds",
|
|
17056
|
+
"type": "number",
|
|
17057
|
+
"required": false,
|
|
17058
|
+
"description": "Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS."
|
|
17059
|
+
},
|
|
17060
|
+
{
|
|
17061
|
+
"name": "idempotency_key",
|
|
17062
|
+
"type": "string",
|
|
17063
|
+
"required": false,
|
|
17064
|
+
"description": "Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected."
|
|
17065
|
+
}
|
|
17066
|
+
]
|
|
17067
|
+
}
|
|
17068
|
+
},
|
|
16971
17069
|
{
|
|
16972
17070
|
"resource": "media.assets",
|
|
16973
17071
|
"method": "edit",
|
|
16974
17072
|
"summary": "Edit asset",
|
|
16975
|
-
"description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, and to_video, frame and resynthesize on the material each takes; every other type in the operation vocabulary is refused with OPERATION_NOT_SUPPORTED. remove_background on a video produces a portrait matte video for compositing without a green screen: output picks mask (a black-and-white matte as a small H.264 video, person white and background black: use it as a Cut track mask with channel luma under the original video to lay a lecturer over slides — the choice for compositing) or alpha (the default: the person on a transparent background as ProRes 4444, which is very large, about 870 MB per 15 seconds of 1080p, so ask for it only when a transparent file itself is the deliverable), and model picks the matting model from types.matting.models of the generation capabilities — read it first, because a request that names none takes the first available matting model and a video is refused with OPERATION_NOT_SUPPORTED, in the model field, when the platform has published none. output and model mean nothing for an image source and are refused with INVALID_PARAMS naming the field rather than ignored. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals) and the new asset carries it in provenance.cost; when the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
|
|
17073
|
+
"description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe and redact through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe and redact on a video), and to_video, frame and resynthesize on the material each takes; every other type in the operation vocabulary is refused with OPERATION_NOT_SUPPORTED. The processing lane takes its model from the platform model catalogue, judged by the operation’s capability and overridable with operation.model, and bills per second of input; each edit is idempotent on the source, the operation and the parameters, so a second request that would make the same asset answers the asset already made instead of paying again, and an operation whose catalogue list is empty is refused with OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video produces a portrait matte video for compositing without a green screen: output picks mask (a black-and-white matte as a small H.264 video, person white and background black: use it as a Cut track mask with channel luma under the original video to lay a lecturer over slides — the choice for compositing) or alpha (the default: the person on a transparent background as ProRes 4444, which is very large, about 870 MB per 15 seconds of 1080p, so ask for it only when a transparent file itself is the deliverable), and model picks the matting model from types.matting.models of the generation capabilities — read it first, because a request that names none takes the first available matting model and a video is refused with OPERATION_NOT_SUPPORTED, in the model field, when the platform has published none. output and model mean nothing for an image source and are refused with INVALID_PARAMS naming the field rather than ignored. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals) and the new asset carries it in provenance.cost; when the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
|
|
16976
17074
|
"http": "POST",
|
|
16977
17075
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
|
|
16978
17076
|
"streaming": "no",
|
|
@@ -16997,7 +17095,7 @@ export const operations = [
|
|
|
16997
17095
|
"name": "operation",
|
|
16998
17096
|
"type": "object",
|
|
16999
17097
|
"required": true,
|
|
17000
|
-
"description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED."
|
|
17098
|
+
"description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe and redact through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe and redact on a video), and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align."
|
|
17001
17099
|
},
|
|
17002
17100
|
{
|
|
17003
17101
|
"name": "model",
|
|
@@ -19824,6 +19922,7 @@ export const operations = [
|
|
|
19824
19922
|
"openai.images.generations",
|
|
19825
19923
|
"openai.responses",
|
|
19826
19924
|
"openai.videos",
|
|
19925
|
+
"praxis.media.process",
|
|
19827
19926
|
"praxis.video.matting",
|
|
19828
19927
|
"typesafe.systemone",
|
|
19829
19928
|
"volcengine.music",
|
|
@@ -25489,6 +25588,131 @@ export const operations = [
|
|
|
25489
25588
|
]
|
|
25490
25589
|
}
|
|
25491
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
|
+
},
|
|
25492
25716
|
{
|
|
25493
25717
|
"resource": "studio.codexes",
|
|
25494
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;
|
|
@@ -3483,6 +3497,20 @@ export declare function createAgent(transport: Transport): {
|
|
|
3483
3497
|
}>;
|
|
3484
3498
|
next_page: string | null;
|
|
3485
3499
|
}>;
|
|
3500
|
+
requests: {
|
|
3501
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListSessionRequestsData>) => Promise<{
|
|
3502
|
+
data: Array<{
|
|
3503
|
+
id: string;
|
|
3504
|
+
object: "request";
|
|
3505
|
+
kind: "question" | "approval";
|
|
3506
|
+
status: "pending";
|
|
3507
|
+
tool_name: string;
|
|
3508
|
+
input: unknown;
|
|
3509
|
+
create_time: string;
|
|
3510
|
+
expire_time: string | null;
|
|
3511
|
+
}>;
|
|
3512
|
+
}>;
|
|
3513
|
+
};
|
|
3486
3514
|
resources: {
|
|
3487
3515
|
create: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesAddData>) => Promise<Types.AgentManaged176>;
|
|
3488
3516
|
delete: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesDeleteData, {
|
|
@@ -4766,6 +4794,9 @@ export declare function createMedia(transport: Transport): {
|
|
|
4766
4794
|
};
|
|
4767
4795
|
libraries: {
|
|
4768
4796
|
assets: {
|
|
4797
|
+
align: {
|
|
4798
|
+
create: (options: import("./core/transport.js").CallOptions<Types.MediaAlignAssetData>) => Promise<Types.MediaJob>;
|
|
4799
|
+
};
|
|
4769
4800
|
batch: (options: import("./core/transport.js").CallOptions<Types.MediaBatchAssetsData>) => Promise<Types.MediaJob>;
|
|
4770
4801
|
create: (options: import("./core/transport.js").CallOptions<Types.MediaUploadAssetData>) => Promise<Types.MediaUploadResult>;
|
|
4771
4802
|
delete: (options: import("./core/transport.js").CallOptions<Types.MediaDeleteAssetData>) => Promise<Types.MediaDeleted>;
|
|
@@ -6065,6 +6096,14 @@ export declare function createSearch(transport: Transport): {
|
|
|
6065
6096
|
}>;
|
|
6066
6097
|
};
|
|
6067
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
|
+
};
|
|
6068
6107
|
export declare function createStudio(transport: Transport): {
|
|
6069
6108
|
codexes: {
|
|
6070
6109
|
create: (options: import("./core/transport.js").CallOptions<Types.StudioCodexesCreateData>) => Promise<Types.StudioCodex>;
|
|
@@ -6371,6 +6410,7 @@ export declare const resourceFactories: {
|
|
|
6371
6410
|
organization: typeof createOrganization;
|
|
6372
6411
|
sandbox: typeof createSandbox;
|
|
6373
6412
|
search: typeof createSearch;
|
|
6413
|
+
share: typeof createShare;
|
|
6374
6414
|
studio: typeof createStudio;
|
|
6375
6415
|
ticket: typeof createTicket;
|
|
6376
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),
|
|
@@ -131,6 +136,9 @@ export function createAgent(transport) {
|
|
|
131
136
|
},
|
|
132
137
|
fork: bind(transport, sdk.forkSession),
|
|
133
138
|
list: bind(transport, sdk.sessionsList),
|
|
139
|
+
requests: {
|
|
140
|
+
list: bind(transport, sdk.listSessionRequests),
|
|
141
|
+
},
|
|
134
142
|
resources: {
|
|
135
143
|
create: bind(transport, sdk.sessionsResourcesAdd),
|
|
136
144
|
delete: bind(transport, aliasOperation(sdk.sessionsResourcesDelete, { "query": { "session_id": "query_session_id" } })),
|
|
@@ -848,6 +856,9 @@ export function createMedia(transport) {
|
|
|
848
856
|
},
|
|
849
857
|
libraries: {
|
|
850
858
|
assets: {
|
|
859
|
+
align: {
|
|
860
|
+
create: bind(transport, sdk.mediaAlignAsset),
|
|
861
|
+
},
|
|
851
862
|
batch: bind(transport, sdk.mediaBatchAssets),
|
|
852
863
|
create: bind(transport, options => sdk.mediaUploadAsset({ ...options, bodySerializer: multipartBodySerializer, headers: { 'Content-Type': null, ...options.headers } })),
|
|
853
864
|
delete: bind(transport, sdk.mediaDeleteAsset),
|
|
@@ -1289,6 +1300,16 @@ export function createSearch(transport) {
|
|
|
1289
1300
|
},
|
|
1290
1301
|
};
|
|
1291
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
|
+
}
|
|
1292
1313
|
export function createStudio(transport) {
|
|
1293
1314
|
return {
|
|
1294
1315
|
codexes: {
|
|
@@ -1559,6 +1580,7 @@ export const resourceFactories = {
|
|
|
1559
1580
|
organization: createOrganization,
|
|
1560
1581
|
sandbox: createSandbox,
|
|
1561
1582
|
search: createSearch,
|
|
1583
|
+
share: createShare,
|
|
1562
1584
|
studio: createStudio,
|
|
1563
1585
|
ticket: createTicket,
|
|
1564
1586
|
vault: createVault,
|