@deepraxis/sdk 0.1.0-dev.4cbfc1f → 0.1.0-dev.5dca2b5
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 +15 -1
- package/dist/core/client.d.ts +5 -1
- package/dist/core/client.js +3 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +35 -11
- package/dist/generated/sdk.gen.js +79 -10
- package/dist/generated/types.gen.d.ts +861 -34
- package/dist/helpers/file-upload.d.ts +24 -0
- package/dist/helpers/file-upload.js +113 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/operations.generated.d.ts +168 -14
- package/dist/operations.generated.js +202 -14
- package/dist/resources.generated.d.ts +134 -0
- package/dist/resources.generated.js +8 -0
- package/package.json +1 -1
|
@@ -128,6 +128,27 @@ export const operations = [
|
|
|
128
128
|
"required": false,
|
|
129
129
|
"description": "Tool configurations available to the agent. Maximum of 128 tools\nacross all toolsets allowed."
|
|
130
130
|
},
|
|
131
|
+
{
|
|
132
|
+
"name": "databases",
|
|
133
|
+
"type": "array",
|
|
134
|
+
"itemType": "object",
|
|
135
|
+
"required": false,
|
|
136
|
+
"description": "Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings."
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "vector_stores",
|
|
140
|
+
"type": "array",
|
|
141
|
+
"itemType": "object",
|
|
142
|
+
"required": false,
|
|
143
|
+
"description": "Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings."
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "files",
|
|
147
|
+
"type": "array",
|
|
148
|
+
"itemType": "object",
|
|
149
|
+
"required": false,
|
|
150
|
+
"description": "File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings."
|
|
151
|
+
},
|
|
131
152
|
{
|
|
132
153
|
"name": "kind",
|
|
133
154
|
"type": "string",
|
|
@@ -296,6 +317,27 @@ export const operations = [
|
|
|
296
317
|
"required": false,
|
|
297
318
|
"description": "The agent's current version, used to prevent concurrent overwrites.\nObtain this value from a create or retrieve response. Must be at least 1 if\nspecified. When supplied, the request fails if it does not match the server's\ncurrent version; omit to apply the update unconditionally."
|
|
298
319
|
},
|
|
320
|
+
{
|
|
321
|
+
"name": "databases",
|
|
322
|
+
"type": "array",
|
|
323
|
+
"itemType": "object",
|
|
324
|
+
"required": false,
|
|
325
|
+
"description": "Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings."
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "vector_stores",
|
|
329
|
+
"type": "array",
|
|
330
|
+
"itemType": "object",
|
|
331
|
+
"required": false,
|
|
332
|
+
"description": "Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings."
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "files",
|
|
336
|
+
"type": "array",
|
|
337
|
+
"itemType": "object",
|
|
338
|
+
"required": false,
|
|
339
|
+
"description": "Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings."
|
|
340
|
+
},
|
|
299
341
|
{
|
|
300
342
|
"name": "kind",
|
|
301
343
|
"type": "string",
|
|
@@ -756,7 +798,7 @@ export const operations = [
|
|
|
756
798
|
"resource": "agent.computers",
|
|
757
799
|
"method": "connect",
|
|
758
800
|
"summary": "Connect computer",
|
|
759
|
-
"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.\n\nConnect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {\"need\":\"heavy\"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy.
|
|
801
|
+
"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.\n\nConnect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {\"need\":\"heavy\"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Renew the lease while using the connection and release it with DELETE when finished.",
|
|
760
802
|
"http": "POST",
|
|
761
803
|
"path": "/agent/v1/computers/{computer_id}/connect",
|
|
762
804
|
"streaming": "no",
|
|
@@ -1793,7 +1835,7 @@ export const operations = [
|
|
|
1793
1835
|
"resource": "agent.sessions",
|
|
1794
1836
|
"method": "create",
|
|
1795
1837
|
"summary": "Create session",
|
|
1796
|
-
"description": "Create a session: one conversation with an agent
|
|
1838
|
+
"description": "Create a session: one conversation with an agent. Pass agent as an agent id (latest version) or {id, version, type:\"agent\"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, omission returns environment_id=light; explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.",
|
|
1797
1839
|
"http": "POST",
|
|
1798
1840
|
"path": "/agent/v1/sessions",
|
|
1799
1841
|
"streaming": "no",
|
|
@@ -1813,7 +1855,7 @@ export const operations = [
|
|
|
1813
1855
|
"name": "environment_id",
|
|
1814
1856
|
"type": "string",
|
|
1815
1857
|
"required": false,
|
|
1816
|
-
"description": "
|
|
1858
|
+
"description": "Execution environment id from agent.environments.list or agent.environments.create. For a service agent, omission selects the built-in light environment and returns session.environment_id=light; explicit null allocates no machine and makes machine tools, including codemode and bash, unavailable. Personal agents use their selected Computer."
|
|
1817
1859
|
},
|
|
1818
1860
|
{
|
|
1819
1861
|
"name": "budget",
|
|
@@ -7587,7 +7629,7 @@ export const operations = [
|
|
|
7587
7629
|
"resource": "file.files",
|
|
7588
7630
|
"method": "create",
|
|
7589
7631
|
"summary": "Upload file",
|
|
7590
|
-
"description": "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most
|
|
7632
|
+
"description": "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–2592000), or praxis[expires_in_seconds] (3600–7776000), never both. Without expiry, the file persists until deleted.",
|
|
7591
7633
|
"http": "POST",
|
|
7592
7634
|
"path": "/file/v1/files",
|
|
7593
7635
|
"streaming": "no",
|
|
@@ -7602,7 +7644,7 @@ export const operations = [
|
|
|
7602
7644
|
"name": "file",
|
|
7603
7645
|
"type": "string",
|
|
7604
7646
|
"required": true,
|
|
7605
|
-
"description": "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most
|
|
7647
|
+
"description": "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 100000000 bytes; its content determines the MIME type."
|
|
7606
7648
|
},
|
|
7607
7649
|
{
|
|
7608
7650
|
"name": "purpose",
|
|
@@ -7651,7 +7693,7 @@ export const operations = [
|
|
|
7651
7693
|
"resource": "file.files",
|
|
7652
7694
|
"method": "retrieve",
|
|
7653
7695
|
"summary": "Retrieve file",
|
|
7654
|
-
"description": "Retrieve metadata for a live file owned by your tenant. Use its
|
|
7696
|
+
"description": "Retrieve metadata for a live file owned by your tenant. Use its file- ID from upload or list. Missing, deleted, expired and other-tenant files return 404; use the content endpoint to download the bytes.",
|
|
7655
7697
|
"http": "GET",
|
|
7656
7698
|
"path": "/file/v1/files/{file_id}",
|
|
7657
7699
|
"streaming": "no",
|
|
@@ -7668,7 +7710,7 @@ export const operations = [
|
|
|
7668
7710
|
"resource": "file.files",
|
|
7669
7711
|
"method": "retrieveContent",
|
|
7670
7712
|
"summary": "Retrieve file content",
|
|
7671
|
-
"description": "Download the original bytes of a live file owned by your tenant. Supply its
|
|
7713
|
+
"description": "Download the original bytes of a live file owned by your tenant. Supply its file- ID from upload or list. A single byte Range can return a partial response; a range outside the file returns 416. Missing, deleted, expired and other-tenant files return 404.",
|
|
7672
7714
|
"http": "GET",
|
|
7673
7715
|
"path": "/file/v1/files/{file_id}/content",
|
|
7674
7716
|
"streaming": "no",
|
|
@@ -7681,6 +7723,152 @@ export const operations = [
|
|
|
7681
7723
|
],
|
|
7682
7724
|
"query": []
|
|
7683
7725
|
},
|
|
7726
|
+
{
|
|
7727
|
+
"resource": "file.uploads",
|
|
7728
|
+
"method": "create",
|
|
7729
|
+
"summary": "Create an upload",
|
|
7730
|
+
"description": "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data, assistants and vision purposes. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.",
|
|
7731
|
+
"http": "POST",
|
|
7732
|
+
"path": "/file/v1/uploads",
|
|
7733
|
+
"streaming": "no",
|
|
7734
|
+
"pagination": false,
|
|
7735
|
+
"pathParams": [],
|
|
7736
|
+
"query": [],
|
|
7737
|
+
"body": {
|
|
7738
|
+
"required": true,
|
|
7739
|
+
"fields": [
|
|
7740
|
+
{
|
|
7741
|
+
"name": "bytes",
|
|
7742
|
+
"type": "integer",
|
|
7743
|
+
"required": true,
|
|
7744
|
+
"description": "Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match."
|
|
7745
|
+
},
|
|
7746
|
+
{
|
|
7747
|
+
"name": "filename",
|
|
7748
|
+
"type": "string",
|
|
7749
|
+
"required": true,
|
|
7750
|
+
"description": "Filename for the resulting file, at most 255 UTF-8 bytes."
|
|
7751
|
+
},
|
|
7752
|
+
{
|
|
7753
|
+
"name": "mime_type",
|
|
7754
|
+
"type": "string",
|
|
7755
|
+
"required": true,
|
|
7756
|
+
"description": "Declared MIME type; validated against the assembled content."
|
|
7757
|
+
},
|
|
7758
|
+
{
|
|
7759
|
+
"name": "purpose",
|
|
7760
|
+
"type": "string",
|
|
7761
|
+
"enum": [
|
|
7762
|
+
"user_data",
|
|
7763
|
+
"assistants",
|
|
7764
|
+
"vision"
|
|
7765
|
+
],
|
|
7766
|
+
"required": true,
|
|
7767
|
+
"description": "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images."
|
|
7768
|
+
},
|
|
7769
|
+
{
|
|
7770
|
+
"name": "expires_after",
|
|
7771
|
+
"type": "object",
|
|
7772
|
+
"required": false,
|
|
7773
|
+
"description": "Optional expiry policy for the resulting file; omission retains the file until deletion."
|
|
7774
|
+
},
|
|
7775
|
+
{
|
|
7776
|
+
"name": "part_size",
|
|
7777
|
+
"type": "integer",
|
|
7778
|
+
"required": false,
|
|
7779
|
+
"description": "Optional fixed part size in bytes, 5242880–64000000. Requires part_number on every part; retries of identical bytes at the same number return the same part. Omit to use arbitrary-sized parts."
|
|
7780
|
+
}
|
|
7781
|
+
]
|
|
7782
|
+
}
|
|
7783
|
+
},
|
|
7784
|
+
{
|
|
7785
|
+
"resource": "file.uploads",
|
|
7786
|
+
"method": "cancel",
|
|
7787
|
+
"summary": "Cancel an upload",
|
|
7788
|
+
"description": "Cancel an unfinished upload using upload_id from create and release its reserved storage. Further parts and completion are rejected. Cancelling an already cancelled upload returns the same terminal result; a completed upload cannot be cancelled. Delete its resulting file instead.",
|
|
7789
|
+
"http": "POST",
|
|
7790
|
+
"path": "/file/v1/uploads/{upload_id}/cancel",
|
|
7791
|
+
"streaming": "no",
|
|
7792
|
+
"pagination": false,
|
|
7793
|
+
"pathParams": [
|
|
7794
|
+
{
|
|
7795
|
+
"name": "upload_id",
|
|
7796
|
+
"sdkName": "upload_id"
|
|
7797
|
+
}
|
|
7798
|
+
],
|
|
7799
|
+
"query": []
|
|
7800
|
+
},
|
|
7801
|
+
{
|
|
7802
|
+
"resource": "file.uploads",
|
|
7803
|
+
"method": "complete",
|
|
7804
|
+
"summary": "Complete an upload",
|
|
7805
|
+
"description": "Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.",
|
|
7806
|
+
"http": "POST",
|
|
7807
|
+
"path": "/file/v1/uploads/{upload_id}/complete",
|
|
7808
|
+
"streaming": "no",
|
|
7809
|
+
"pagination": false,
|
|
7810
|
+
"pathParams": [
|
|
7811
|
+
{
|
|
7812
|
+
"name": "upload_id",
|
|
7813
|
+
"sdkName": "upload_id"
|
|
7814
|
+
}
|
|
7815
|
+
],
|
|
7816
|
+
"query": [],
|
|
7817
|
+
"body": {
|
|
7818
|
+
"required": true,
|
|
7819
|
+
"fields": [
|
|
7820
|
+
{
|
|
7821
|
+
"name": "part_ids",
|
|
7822
|
+
"type": "array",
|
|
7823
|
+
"itemType": "string",
|
|
7824
|
+
"required": true,
|
|
7825
|
+
"description": "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order."
|
|
7826
|
+
},
|
|
7827
|
+
{
|
|
7828
|
+
"name": "md5",
|
|
7829
|
+
"type": "string",
|
|
7830
|
+
"required": false,
|
|
7831
|
+
"description": "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly."
|
|
7832
|
+
}
|
|
7833
|
+
]
|
|
7834
|
+
}
|
|
7835
|
+
},
|
|
7836
|
+
{
|
|
7837
|
+
"resource": "file.uploads.parts",
|
|
7838
|
+
"method": "create",
|
|
7839
|
+
"summary": "Add an upload part",
|
|
7840
|
+
"description": "Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.",
|
|
7841
|
+
"http": "POST",
|
|
7842
|
+
"path": "/file/v1/uploads/{upload_id}/parts",
|
|
7843
|
+
"streaming": "no",
|
|
7844
|
+
"pagination": false,
|
|
7845
|
+
"multipart": true,
|
|
7846
|
+
"pathParams": [
|
|
7847
|
+
{
|
|
7848
|
+
"name": "upload_id",
|
|
7849
|
+
"sdkName": "upload_id"
|
|
7850
|
+
}
|
|
7851
|
+
],
|
|
7852
|
+
"query": [
|
|
7853
|
+
{
|
|
7854
|
+
"name": "part_number",
|
|
7855
|
+
"type": "integer",
|
|
7856
|
+
"required": false,
|
|
7857
|
+
"description": "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads."
|
|
7858
|
+
}
|
|
7859
|
+
],
|
|
7860
|
+
"body": {
|
|
7861
|
+
"required": true,
|
|
7862
|
+
"fields": [
|
|
7863
|
+
{
|
|
7864
|
+
"name": "data",
|
|
7865
|
+
"type": "string",
|
|
7866
|
+
"required": true,
|
|
7867
|
+
"description": "Raw bytes of this part, nonempty and at most 64000000 bytes."
|
|
7868
|
+
}
|
|
7869
|
+
]
|
|
7870
|
+
}
|
|
7871
|
+
},
|
|
7684
7872
|
{
|
|
7685
7873
|
"resource": "knowledge.vectorStores",
|
|
7686
7874
|
"method": "list",
|
|
@@ -11811,7 +11999,7 @@ export const operations = [
|
|
|
11811
11999
|
"name": "message",
|
|
11812
12000
|
"type": "string",
|
|
11813
12001
|
"required": true,
|
|
11814
|
-
"description": "Problem description
|
|
12002
|
+
"description": "Problem description, at most 4096 Unicode code points; may be empty only when contexts.praxis.error.message is a non-empty string."
|
|
11815
12003
|
},
|
|
11816
12004
|
{
|
|
11817
12005
|
"name": "contact_email",
|
|
@@ -12109,7 +12297,7 @@ export const operations = [
|
|
|
12109
12297
|
"resource": "sandbox.sandboxes",
|
|
12110
12298
|
"method": "create",
|
|
12111
12299
|
"summary": "Create sandbox (v2)",
|
|
12112
|
-
"description": "
|
|
12300
|
+
"description": "Create a sandbox from the template. All system communication with the sandbox is secured.",
|
|
12113
12301
|
"http": "POST",
|
|
12114
12302
|
"path": "/sandbox/v1/sandboxes",
|
|
12115
12303
|
"streaming": "no",
|
|
@@ -12123,7 +12311,7 @@ export const operations = [
|
|
|
12123
12311
|
"name": "templateID",
|
|
12124
12312
|
"type": "string",
|
|
12125
12313
|
"required": true,
|
|
12126
|
-
"description": "
|
|
12314
|
+
"description": "Identifier of the required template"
|
|
12127
12315
|
},
|
|
12128
12316
|
{
|
|
12129
12317
|
"name": "timeout",
|
|
@@ -12261,7 +12449,7 @@ export const operations = [
|
|
|
12261
12449
|
"resource": "sandbox.sandboxes",
|
|
12262
12450
|
"method": "connect",
|
|
12263
12451
|
"summary": "Connect sandbox (v2)",
|
|
12264
|
-
"description": "
|
|
12452
|
+
"description": "Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The request body is optional; an omitted timeout defaults to 300 seconds.",
|
|
12265
12453
|
"http": "POST",
|
|
12266
12454
|
"path": "/sandbox/v1/sandboxes/{sandboxID}/connect",
|
|
12267
12455
|
"streaming": "no",
|
|
@@ -12420,7 +12608,7 @@ export const operations = [
|
|
|
12420
12608
|
"resource": "sandbox.sandboxes.metrics",
|
|
12421
12609
|
"method": "list",
|
|
12422
12610
|
"summary": "Sandbox metrics",
|
|
12423
|
-
"description": "Read CPU, memory and disk usage over
|
|
12611
|
+
"description": "Read CPU, memory and disk usage samples of a sandbox over a time window. Use it to size a sandbox or find out why it is slow. start and end are Unix timestamps in seconds; without them the recent samples are returned. An unknown id answers 404.",
|
|
12424
12612
|
"http": "GET",
|
|
12425
12613
|
"path": "/sandbox/v1/sandboxes/{sandboxID}/metrics",
|
|
12426
12614
|
"streaming": "no",
|
|
@@ -12504,7 +12692,7 @@ export const operations = [
|
|
|
12504
12692
|
"resource": "sandbox.sandboxes",
|
|
12505
12693
|
"method": "pause",
|
|
12506
12694
|
"summary": "Pause sandbox",
|
|
12507
|
-
"description": "
|
|
12695
|
+
"description": "Pause a running sandbox, keeping its files and memory so that connectSandbox can resume it later. Use it to stop paying for compute without losing state; to discard the sandbox use killSandbox. Success answers 204. A sandbox that is not running answers 409.",
|
|
12508
12696
|
"http": "POST",
|
|
12509
12697
|
"path": "/sandbox/v1/sandboxes/{sandboxID}/pause",
|
|
12510
12698
|
"streaming": "no",
|
|
@@ -12896,7 +13084,7 @@ export const operations = [
|
|
|
12896
13084
|
"resource": "sandbox.templates",
|
|
12897
13085
|
"method": "list",
|
|
12898
13086
|
"summary": "List templates (v2)",
|
|
12899
|
-
"description": "
|
|
13087
|
+
"description": "List the templates you can create sandboxes from. Use it to pick the template id or alias for createSandbox. `base` is the default template that createSandbox uses when templateID is omitted. limit is 1 to 100 (default 100); send the cursor from the response back as nextToken to continue.",
|
|
12900
13088
|
"http": "GET",
|
|
12901
13089
|
"path": "/sandbox/v1/templates",
|
|
12902
13090
|
"streaming": "no",
|
|
@@ -27,6 +27,24 @@ export declare function createAgent(transport: Transport): {
|
|
|
27
27
|
type: "agent";
|
|
28
28
|
updated_at: string;
|
|
29
29
|
version: number;
|
|
30
|
+
databases: Array<{
|
|
31
|
+
id: string;
|
|
32
|
+
access: "read_only" | "read_write";
|
|
33
|
+
instructions?: string;
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
vector_stores: Array<{
|
|
37
|
+
id: string;
|
|
38
|
+
access: "read_only" | "read_write";
|
|
39
|
+
instructions?: string;
|
|
40
|
+
enabled?: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
files: Array<{
|
|
43
|
+
id: string;
|
|
44
|
+
access: "read_only";
|
|
45
|
+
instructions?: string;
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
}>;
|
|
30
48
|
kind: "personal" | "service";
|
|
31
49
|
computer_id?: string;
|
|
32
50
|
subagent_model?: string | null;
|
|
@@ -158,6 +176,24 @@ export declare function createAgent(transport: Transport): {
|
|
|
158
176
|
type: "agent";
|
|
159
177
|
updated_at: string;
|
|
160
178
|
version: number;
|
|
179
|
+
databases: Array<{
|
|
180
|
+
id: string;
|
|
181
|
+
access: "read_only" | "read_write";
|
|
182
|
+
instructions?: string;
|
|
183
|
+
enabled?: boolean;
|
|
184
|
+
}>;
|
|
185
|
+
vector_stores: Array<{
|
|
186
|
+
id: string;
|
|
187
|
+
access: "read_only" | "read_write";
|
|
188
|
+
instructions?: string;
|
|
189
|
+
enabled?: boolean;
|
|
190
|
+
}>;
|
|
191
|
+
files: Array<{
|
|
192
|
+
id: string;
|
|
193
|
+
access: "read_only";
|
|
194
|
+
instructions?: string;
|
|
195
|
+
enabled?: boolean;
|
|
196
|
+
}>;
|
|
161
197
|
kind: "personal" | "service";
|
|
162
198
|
computer_id?: string;
|
|
163
199
|
subagent_model?: string | null;
|
|
@@ -362,6 +398,24 @@ export declare function createAgent(transport: Transport): {
|
|
|
362
398
|
type: "agent";
|
|
363
399
|
updated_at: string;
|
|
364
400
|
version: number;
|
|
401
|
+
databases: Array<{
|
|
402
|
+
id: string;
|
|
403
|
+
access: "read_only" | "read_write";
|
|
404
|
+
instructions?: string;
|
|
405
|
+
enabled?: boolean;
|
|
406
|
+
}>;
|
|
407
|
+
vector_stores: Array<{
|
|
408
|
+
id: string;
|
|
409
|
+
access: "read_only" | "read_write";
|
|
410
|
+
instructions?: string;
|
|
411
|
+
enabled?: boolean;
|
|
412
|
+
}>;
|
|
413
|
+
files: Array<{
|
|
414
|
+
id: string;
|
|
415
|
+
access: "read_only";
|
|
416
|
+
instructions?: string;
|
|
417
|
+
enabled?: boolean;
|
|
418
|
+
}>;
|
|
365
419
|
kind: "personal" | "service";
|
|
366
420
|
computer_id?: string;
|
|
367
421
|
subagent_model?: string | null;
|
|
@@ -495,6 +549,24 @@ export declare function createAgent(transport: Transport): {
|
|
|
495
549
|
type: "agent";
|
|
496
550
|
updated_at: string;
|
|
497
551
|
version: number;
|
|
552
|
+
databases: Array<{
|
|
553
|
+
id: string;
|
|
554
|
+
access: "read_only" | "read_write";
|
|
555
|
+
instructions?: string;
|
|
556
|
+
enabled?: boolean;
|
|
557
|
+
}>;
|
|
558
|
+
vector_stores: Array<{
|
|
559
|
+
id: string;
|
|
560
|
+
access: "read_only" | "read_write";
|
|
561
|
+
instructions?: string;
|
|
562
|
+
enabled?: boolean;
|
|
563
|
+
}>;
|
|
564
|
+
files: Array<{
|
|
565
|
+
id: string;
|
|
566
|
+
access: "read_only";
|
|
567
|
+
instructions?: string;
|
|
568
|
+
enabled?: boolean;
|
|
569
|
+
}>;
|
|
498
570
|
kind: "personal" | "service";
|
|
499
571
|
computer_id?: string;
|
|
500
572
|
subagent_model?: string | null;
|
|
@@ -829,6 +901,24 @@ export declare function createAgent(transport: Transport): {
|
|
|
829
901
|
type: "agent";
|
|
830
902
|
updated_at: string;
|
|
831
903
|
version: number;
|
|
904
|
+
databases: Array<{
|
|
905
|
+
id: string;
|
|
906
|
+
access: "read_only" | "read_write";
|
|
907
|
+
instructions?: string;
|
|
908
|
+
enabled?: boolean;
|
|
909
|
+
}>;
|
|
910
|
+
vector_stores: Array<{
|
|
911
|
+
id: string;
|
|
912
|
+
access: "read_only" | "read_write";
|
|
913
|
+
instructions?: string;
|
|
914
|
+
enabled?: boolean;
|
|
915
|
+
}>;
|
|
916
|
+
files: Array<{
|
|
917
|
+
id: string;
|
|
918
|
+
access: "read_only";
|
|
919
|
+
instructions?: string;
|
|
920
|
+
enabled?: boolean;
|
|
921
|
+
}>;
|
|
832
922
|
kind: "personal" | "service";
|
|
833
923
|
computer_id?: string;
|
|
834
924
|
subagent_model?: string | null;
|
|
@@ -961,6 +1051,24 @@ export declare function createAgent(transport: Transport): {
|
|
|
961
1051
|
type: "agent";
|
|
962
1052
|
updated_at: string;
|
|
963
1053
|
version: number;
|
|
1054
|
+
databases: Array<{
|
|
1055
|
+
id: string;
|
|
1056
|
+
access: "read_only" | "read_write";
|
|
1057
|
+
instructions?: string;
|
|
1058
|
+
enabled?: boolean;
|
|
1059
|
+
}>;
|
|
1060
|
+
vector_stores: Array<{
|
|
1061
|
+
id: string;
|
|
1062
|
+
access: "read_only" | "read_write";
|
|
1063
|
+
instructions?: string;
|
|
1064
|
+
enabled?: boolean;
|
|
1065
|
+
}>;
|
|
1066
|
+
files: Array<{
|
|
1067
|
+
id: string;
|
|
1068
|
+
access: "read_only";
|
|
1069
|
+
instructions?: string;
|
|
1070
|
+
enabled?: boolean;
|
|
1071
|
+
}>;
|
|
964
1072
|
kind: "personal" | "service";
|
|
965
1073
|
computer_id?: string;
|
|
966
1074
|
subagent_model?: string | null;
|
|
@@ -1094,6 +1202,24 @@ export declare function createAgent(transport: Transport): {
|
|
|
1094
1202
|
type: "agent";
|
|
1095
1203
|
updated_at: string;
|
|
1096
1204
|
version: number;
|
|
1205
|
+
databases: Array<{
|
|
1206
|
+
id: string;
|
|
1207
|
+
access: "read_only" | "read_write";
|
|
1208
|
+
instructions?: string;
|
|
1209
|
+
enabled?: boolean;
|
|
1210
|
+
}>;
|
|
1211
|
+
vector_stores: Array<{
|
|
1212
|
+
id: string;
|
|
1213
|
+
access: "read_only" | "read_write";
|
|
1214
|
+
instructions?: string;
|
|
1215
|
+
enabled?: boolean;
|
|
1216
|
+
}>;
|
|
1217
|
+
files: Array<{
|
|
1218
|
+
id: string;
|
|
1219
|
+
access: "read_only";
|
|
1220
|
+
instructions?: string;
|
|
1221
|
+
enabled?: boolean;
|
|
1222
|
+
}>;
|
|
1097
1223
|
kind: "personal" | "service";
|
|
1098
1224
|
computer_id?: string;
|
|
1099
1225
|
subagent_model?: string | null;
|
|
@@ -3455,6 +3581,14 @@ export declare function createFile(transport: Transport): {
|
|
|
3455
3581
|
retrieve: (options: import("./core/transport.js").CallOptions<Types.FileRetrieveFileData>) => Promise<Types.OwnFileOpenAiFile>;
|
|
3456
3582
|
retrieveContent: (options: import("./core/transport.js").CallOptions<Types.FileRetrieveFileContentData>) => Promise<Blob | File>;
|
|
3457
3583
|
};
|
|
3584
|
+
uploads: {
|
|
3585
|
+
cancel: (options: import("./core/transport.js").CallOptions<Types.FileCancelUploadData>) => Promise<Types.OwnFilePraxisUpload>;
|
|
3586
|
+
complete: (options: import("./core/transport.js").CallOptions<Types.FileCompleteUploadData>) => Promise<Types.OwnFilePraxisUpload>;
|
|
3587
|
+
create: (options: import("./core/transport.js").CallOptions<Types.FileCreateUploadData>) => Promise<Types.OwnFilePraxisUpload>;
|
|
3588
|
+
parts: {
|
|
3589
|
+
create: (options: import("./core/transport.js").CallOptions<Types.FileAddUploadPartData>) => Promise<Types.OwnFilePraxisUploadPart>;
|
|
3590
|
+
};
|
|
3591
|
+
};
|
|
3458
3592
|
};
|
|
3459
3593
|
export declare function createKnowledge(transport: Transport): {
|
|
3460
3594
|
vectorStores: {
|
|
@@ -400,6 +400,14 @@ export function createFile(transport) {
|
|
|
400
400
|
retrieve: bind(transport, sdk.fileRetrieveFile),
|
|
401
401
|
retrieveContent: bind(transport, sdk.fileRetrieveFileContent),
|
|
402
402
|
},
|
|
403
|
+
uploads: {
|
|
404
|
+
cancel: bind(transport, sdk.fileCancelUpload),
|
|
405
|
+
complete: bind(transport, sdk.fileCompleteUpload),
|
|
406
|
+
create: bind(transport, sdk.fileCreateUpload),
|
|
407
|
+
parts: {
|
|
408
|
+
create: bind(transport, options => sdk.fileAddUploadPart({ ...options, bodySerializer: multipartBodySerializer, headers: { 'Content-Type': null, ...options.headers } })),
|
|
409
|
+
},
|
|
410
|
+
},
|
|
403
411
|
};
|
|
404
412
|
}
|
|
405
413
|
export function createKnowledge(transport) {
|