@deepraxis/sdk 0.2.0-dev.0ea50e2 → 0.2.0-dev.4379954
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.
|
@@ -18886,7 +18886,7 @@ export const operations = [
|
|
|
18886
18886
|
"resource": "file.uploads",
|
|
18887
18887
|
"method": "createSigned",
|
|
18888
18888
|
"summary": "Create a one-time upload URL",
|
|
18889
|
-
"description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns
|
|
18889
|
+
"description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 201 with the same file, because a lost answer must not cost the file. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. An expired upload answers 410 UPLOAD_EXPIRED on its status_url and complete_url while the upload still exists in the caller's organization; revoked, invalid, cross-organization or unknown URLs return 404, including a link whose upload record no longer exists. A signed URL used for another action answers 403 CAPABILITY_MISMATCH, judged before expiry, so a status link posted to complete_url answers it and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
|
|
18890
18890
|
"http": "POST",
|
|
18891
18891
|
"path": "/file/v1/uploads/signed",
|
|
18892
18892
|
"streaming": "no",
|
|
@@ -833,6 +833,13 @@ export declare function createAgent(transport: Transport): {
|
|
|
833
833
|
reason?: "project_removed";
|
|
834
834
|
message_id?: string;
|
|
835
835
|
session_thread_id?: string | null;
|
|
836
|
+
} | {
|
|
837
|
+
id: string;
|
|
838
|
+
type: "session.status_preparing";
|
|
839
|
+
processed_at: string;
|
|
840
|
+
stage: "launching" | "loading" | "ready";
|
|
841
|
+
message_id?: string;
|
|
842
|
+
session_thread_id?: string | null;
|
|
836
843
|
}>;
|
|
837
844
|
next_page: string | null;
|
|
838
845
|
}>;
|
|
@@ -4080,6 +4087,13 @@ export declare function createAgent(transport: Transport): {
|
|
|
4080
4087
|
reason?: "project_removed";
|
|
4081
4088
|
message_id?: string;
|
|
4082
4089
|
session_thread_id?: string | null;
|
|
4090
|
+
} | {
|
|
4091
|
+
id: string;
|
|
4092
|
+
type: "session.status_preparing";
|
|
4093
|
+
processed_at: string;
|
|
4094
|
+
stage: "launching" | "loading" | "ready";
|
|
4095
|
+
message_id?: string;
|
|
4096
|
+
session_thread_id?: string | null;
|
|
4083
4097
|
}>;
|
|
4084
4098
|
next_page: string | null;
|
|
4085
4099
|
}>;
|
|
@@ -5810,6 +5824,13 @@ export declare function createAgent(transport: Transport): {
|
|
|
5810
5824
|
reason?: "project_removed";
|
|
5811
5825
|
message_id?: string;
|
|
5812
5826
|
session_thread_id?: string | null;
|
|
5827
|
+
} | {
|
|
5828
|
+
id: string;
|
|
5829
|
+
type: "session.status_preparing";
|
|
5830
|
+
processed_at: string;
|
|
5831
|
+
stage: "launching" | "loading" | "ready";
|
|
5832
|
+
message_id?: string;
|
|
5833
|
+
session_thread_id?: string | null;
|
|
5813
5834
|
}>;
|
|
5814
5835
|
next_page: string | null;
|
|
5815
5836
|
}>;
|