@deepraxis/sdk 0.2.0-dev.0ea50e2 → 0.2.0-dev.6528e7c
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.
|
@@ -640,7 +640,7 @@ export declare const fileRetrieveUpload: <ThrowOnError extends boolean = false>(
|
|
|
640
640
|
/**
|
|
641
641
|
* Create a one-time upload URL
|
|
642
642
|
*
|
|
643
|
-
* 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
|
|
643
|
+
* 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"}.
|
|
644
644
|
*/
|
|
645
645
|
export declare const fileCreateSignedUpload: <ThrowOnError extends boolean = false>(options: Options<FileCreateSignedUploadData, ThrowOnError>) => RequestResult<FileCreateSignedUploadResponses, FileCreateSignedUploadErrors, ThrowOnError>;
|
|
646
646
|
/**
|
|
@@ -1705,7 +1705,7 @@ export const fileRetrieveUpload = (options) => (options.client ?? client).get({
|
|
|
1705
1705
|
/**
|
|
1706
1706
|
* Create a one-time upload URL
|
|
1707
1707
|
*
|
|
1708
|
-
* 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
|
|
1708
|
+
* 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"}.
|
|
1709
1709
|
*/
|
|
1710
1710
|
export const fileCreateSignedUpload = (options) => (options.client ?? client).post({
|
|
1711
1711
|
security: [{
|
|
@@ -3407,6 +3407,40 @@ export type AgentSseEvent = ({
|
|
|
3407
3407
|
*/
|
|
3408
3408
|
session_thread_id?: string | null;
|
|
3409
3409
|
};
|
|
3410
|
+
} | {
|
|
3411
|
+
/**
|
|
3412
|
+
* Always `session.status_preparing`. SSE event name of this frame; its data is a session.status_preparing payload. A device session's local agent is starting; stage says how far it got.
|
|
3413
|
+
*/
|
|
3414
|
+
event?: 'session.status_preparing';
|
|
3415
|
+
/**
|
|
3416
|
+
* Praxis extension (#4737, own face only): a device session's local agent is starting. Only sessions that run on a person's own machine emit it.
|
|
3417
|
+
*/
|
|
3418
|
+
data?: {
|
|
3419
|
+
/**
|
|
3420
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
3421
|
+
*/
|
|
3422
|
+
id: string;
|
|
3423
|
+
/**
|
|
3424
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
3425
|
+
*/
|
|
3426
|
+
type: 'session.status_preparing';
|
|
3427
|
+
/**
|
|
3428
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
3429
|
+
*/
|
|
3430
|
+
processed_at: string;
|
|
3431
|
+
/**
|
|
3432
|
+
* How far the start got.
|
|
3433
|
+
*/
|
|
3434
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
3435
|
+
/**
|
|
3436
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
3437
|
+
*/
|
|
3438
|
+
message_id?: string;
|
|
3439
|
+
/**
|
|
3440
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
3441
|
+
*/
|
|
3442
|
+
session_thread_id?: string | null;
|
|
3443
|
+
};
|
|
3410
3444
|
} | {
|
|
3411
3445
|
/**
|
|
3412
3446
|
* Always `event_start`. SSE event name of this frame; its data is a event_start payload. Preview that an event of the requested delta types has started.
|
|
@@ -3549,7 +3583,7 @@ export type AgentSseEvent = ({
|
|
|
3549
3583
|
/**
|
|
3550
3584
|
* Server-Sent Events event name of this frame.
|
|
3551
3585
|
*/
|
|
3552
|
-
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'cognition.surfaced' | 'cognition.intention_woken' | 'agent.operation_approval_requested' | 'agent.operation_approval_decided' | 'session.prompt_configuration_mismatch' | 'session.prompt_rev_changed' | 'session.computer_tier' | 'agent.artifact_delivered' | 'agent.image_generation' | 'session.image_labeled' | 'session.image_set_planned' | 'session.project_attached' | 'session.project_detached' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
3586
|
+
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'cognition.surfaced' | 'cognition.intention_woken' | 'agent.operation_approval_requested' | 'agent.operation_approval_decided' | 'session.prompt_configuration_mismatch' | 'session.prompt_rev_changed' | 'session.computer_tier' | 'agent.artifact_delivered' | 'agent.image_generation' | 'session.image_labeled' | 'session.image_set_planned' | 'session.project_attached' | 'session.project_detached' | 'session.status_preparing' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
3553
3587
|
data: AgentSseData;
|
|
3554
3588
|
};
|
|
3555
3589
|
/**
|
|
@@ -3830,7 +3864,7 @@ export type BrowserError = {
|
|
|
3830
3864
|
statusCode: number;
|
|
3831
3865
|
error: string;
|
|
3832
3866
|
message: string;
|
|
3833
|
-
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
3867
|
+
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'CONTEXT_READ_ONLY' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
3834
3868
|
};
|
|
3835
3869
|
export type BrowserSession = {
|
|
3836
3870
|
/**
|
|
@@ -4694,7 +4728,7 @@ export type OwnFileSignedUploadResponse = {
|
|
|
4694
4728
|
url: string;
|
|
4695
4729
|
}>;
|
|
4696
4730
|
/**
|
|
4697
|
-
* Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and
|
|
4731
|
+
* Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and a completion replay returns 201 with the same file, because a lost answer must not cost the file.
|
|
4698
4732
|
*/
|
|
4699
4733
|
complete_url: string;
|
|
4700
4734
|
/**
|
|
@@ -29732,6 +29766,31 @@ export type AgentSseData = {
|
|
|
29732
29766
|
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
29733
29767
|
*/
|
|
29734
29768
|
session_thread_id?: string | null;
|
|
29769
|
+
} | {
|
|
29770
|
+
/**
|
|
29771
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
29772
|
+
*/
|
|
29773
|
+
id: string;
|
|
29774
|
+
/**
|
|
29775
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
29776
|
+
*/
|
|
29777
|
+
type: 'session.status_preparing';
|
|
29778
|
+
/**
|
|
29779
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
29780
|
+
*/
|
|
29781
|
+
processed_at: string;
|
|
29782
|
+
/**
|
|
29783
|
+
* How far the start got.
|
|
29784
|
+
*/
|
|
29785
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
29786
|
+
/**
|
|
29787
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
29788
|
+
*/
|
|
29789
|
+
message_id?: string;
|
|
29790
|
+
/**
|
|
29791
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
29792
|
+
*/
|
|
29793
|
+
session_thread_id?: string | null;
|
|
29735
29794
|
} | {
|
|
29736
29795
|
/**
|
|
29737
29796
|
* Always `event_start`. Preview that an event of the requested delta types has started.
|
|
@@ -53577,6 +53636,31 @@ export type ListAgentEventsResponses = {
|
|
|
53577
53636
|
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
53578
53637
|
*/
|
|
53579
53638
|
session_thread_id?: string | null;
|
|
53639
|
+
} | {
|
|
53640
|
+
/**
|
|
53641
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
53642
|
+
*/
|
|
53643
|
+
id: string;
|
|
53644
|
+
/**
|
|
53645
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
53646
|
+
*/
|
|
53647
|
+
type: 'session.status_preparing';
|
|
53648
|
+
/**
|
|
53649
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
53650
|
+
*/
|
|
53651
|
+
processed_at: string;
|
|
53652
|
+
/**
|
|
53653
|
+
* How far the start got.
|
|
53654
|
+
*/
|
|
53655
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
53656
|
+
/**
|
|
53657
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
53658
|
+
*/
|
|
53659
|
+
message_id?: string;
|
|
53660
|
+
/**
|
|
53661
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
53662
|
+
*/
|
|
53663
|
+
session_thread_id?: string | null;
|
|
53580
53664
|
}>;
|
|
53581
53665
|
/**
|
|
53582
53666
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -54007,32 +54091,33 @@ export type CreateAgentLoginIntentErrors = {
|
|
|
54007
54091
|
/**
|
|
54008
54092
|
* INVALID_JSON: the body is not a JSON object. INVALID_PARAMS: the body names a field (agent, organization_id, place or any other) - the caller, its organization and its computer come from the credential, so resend with no field.
|
|
54009
54093
|
*/
|
|
54010
|
-
400:
|
|
54094
|
+
400: AgentError;
|
|
54011
54095
|
/**
|
|
54012
54096
|
* Authentication required: send the platform session's own credential.
|
|
54013
54097
|
*/
|
|
54014
|
-
401:
|
|
54098
|
+
401: AgentError;
|
|
54015
54099
|
/**
|
|
54016
54100
|
* PERMISSION_DENIED: this credential names no agent, or the member driving the session is not the agent's sponsor; open the code from the agent's own codemode session, driven by its sponsor.
|
|
54017
54101
|
*/
|
|
54018
|
-
403:
|
|
54102
|
+
403: AgentError;
|
|
54019
54103
|
/**
|
|
54020
54104
|
* AGENT_NOT_FOUND: the agent the credential names does not exist in this organization; check the agent the session was opened for.
|
|
54021
54105
|
*/
|
|
54022
|
-
404:
|
|
54106
|
+
404: AgentError;
|
|
54023
54107
|
/**
|
|
54024
54108
|
* FAILED_PRECONDITION: the agent has no platform computer of its own (a service agent runs nowhere to log in), or identity refused the create for a state it reports.
|
|
54025
54109
|
*/
|
|
54026
|
-
409:
|
|
54110
|
+
409: AgentError;
|
|
54027
54111
|
/**
|
|
54028
54112
|
* UPSTREAM_UNAVAILABLE: the agent service or identity could not answer; retry once the service is back.
|
|
54029
54113
|
*/
|
|
54030
|
-
502:
|
|
54114
|
+
502: AgentError;
|
|
54031
54115
|
/**
|
|
54032
54116
|
* UNAVAILABLE: identity is not configured in this deployment.
|
|
54033
54117
|
*/
|
|
54034
|
-
503:
|
|
54118
|
+
503: AgentError;
|
|
54035
54119
|
};
|
|
54120
|
+
export type CreateAgentLoginIntentError = CreateAgentLoginIntentErrors[keyof CreateAgentLoginIntentErrors];
|
|
54036
54121
|
export type CreateAgentLoginIntentResponses = {
|
|
54037
54122
|
/**
|
|
54038
54123
|
* The one-time login code and when it stops working; the code is answered once and never again.
|
|
@@ -68777,7 +68862,7 @@ export type BrowserListSessionsErrors = {
|
|
|
68777
68862
|
*/
|
|
68778
68863
|
402: BrowserError;
|
|
68779
68864
|
/**
|
|
68780
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
68865
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68781
68866
|
*/
|
|
68782
68867
|
403: BrowserError;
|
|
68783
68868
|
/**
|
|
@@ -68854,7 +68939,7 @@ export type BrowserCreateSessionErrors = {
|
|
|
68854
68939
|
*/
|
|
68855
68940
|
402: BrowserError;
|
|
68856
68941
|
/**
|
|
68857
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
68942
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68858
68943
|
*/
|
|
68859
68944
|
403: BrowserError;
|
|
68860
68945
|
/**
|
|
@@ -68932,7 +69017,7 @@ export type BrowserGetSessionErrors = {
|
|
|
68932
69017
|
*/
|
|
68933
69018
|
402: BrowserError;
|
|
68934
69019
|
/**
|
|
68935
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69020
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
68936
69021
|
*/
|
|
68937
69022
|
403: BrowserError;
|
|
68938
69023
|
/**
|
|
@@ -69010,7 +69095,7 @@ export type BrowserCloseSessionErrors = {
|
|
|
69010
69095
|
*/
|
|
69011
69096
|
402: BrowserError;
|
|
69012
69097
|
/**
|
|
69013
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69098
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69014
69099
|
*/
|
|
69015
69100
|
403: BrowserError;
|
|
69016
69101
|
/**
|
|
@@ -69083,7 +69168,7 @@ export type BrowserGetDebugErrors = {
|
|
|
69083
69168
|
*/
|
|
69084
69169
|
402: BrowserError;
|
|
69085
69170
|
/**
|
|
69086
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69171
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69087
69172
|
*/
|
|
69088
69173
|
403: BrowserError;
|
|
69089
69174
|
/**
|
|
@@ -69169,7 +69254,7 @@ export type BrowserListEventsErrors = {
|
|
|
69169
69254
|
*/
|
|
69170
69255
|
402: BrowserError;
|
|
69171
69256
|
/**
|
|
69172
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69257
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69173
69258
|
*/
|
|
69174
69259
|
403: BrowserError;
|
|
69175
69260
|
/**
|
|
@@ -69448,7 +69533,7 @@ export type BrowserRunPageActionErrors = {
|
|
|
69448
69533
|
*/
|
|
69449
69534
|
402: BrowserError;
|
|
69450
69535
|
/**
|
|
69451
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69536
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69452
69537
|
*/
|
|
69453
69538
|
403: BrowserError;
|
|
69454
69539
|
/**
|
|
@@ -69666,7 +69751,7 @@ export type BrowserRequestHandoffErrors = {
|
|
|
69666
69751
|
*/
|
|
69667
69752
|
402: BrowserError;
|
|
69668
69753
|
/**
|
|
69669
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69754
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69670
69755
|
*/
|
|
69671
69756
|
403: BrowserError;
|
|
69672
69757
|
/**
|
|
@@ -69739,7 +69824,7 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
69739
69824
|
*/
|
|
69740
69825
|
402: BrowserError;
|
|
69741
69826
|
/**
|
|
69742
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69827
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69743
69828
|
*/
|
|
69744
69829
|
403: BrowserError;
|
|
69745
69830
|
/**
|
|
@@ -69821,7 +69906,7 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
69821
69906
|
*/
|
|
69822
69907
|
402: BrowserError;
|
|
69823
69908
|
/**
|
|
69824
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69909
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69825
69910
|
*/
|
|
69826
69911
|
403: BrowserError;
|
|
69827
69912
|
/**
|
|
@@ -69899,7 +69984,7 @@ export type BrowserGetSessionFrameErrors = {
|
|
|
69899
69984
|
*/
|
|
69900
69985
|
402: BrowserError;
|
|
69901
69986
|
/**
|
|
69902
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
69987
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69903
69988
|
*/
|
|
69904
69989
|
403: BrowserError;
|
|
69905
69990
|
/**
|
|
@@ -69980,7 +70065,7 @@ export type BrowserListContextsErrors = {
|
|
|
69980
70065
|
*/
|
|
69981
70066
|
402: BrowserError;
|
|
69982
70067
|
/**
|
|
69983
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70068
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
69984
70069
|
*/
|
|
69985
70070
|
403: BrowserError;
|
|
69986
70071
|
/**
|
|
@@ -70072,7 +70157,7 @@ export type BrowserCreateContextErrors = {
|
|
|
70072
70157
|
*/
|
|
70073
70158
|
402: BrowserError;
|
|
70074
70159
|
/**
|
|
70075
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70160
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70076
70161
|
*/
|
|
70077
70162
|
403: BrowserError;
|
|
70078
70163
|
/**
|
|
@@ -70145,7 +70230,7 @@ export type BrowserDeleteContextErrors = {
|
|
|
70145
70230
|
*/
|
|
70146
70231
|
402: BrowserError;
|
|
70147
70232
|
/**
|
|
70148
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70233
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70149
70234
|
*/
|
|
70150
70235
|
403: BrowserError;
|
|
70151
70236
|
/**
|
|
@@ -70223,7 +70308,7 @@ export type BrowserGetContextErrors = {
|
|
|
70223
70308
|
*/
|
|
70224
70309
|
402: BrowserError;
|
|
70225
70310
|
/**
|
|
70226
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70311
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70227
70312
|
*/
|
|
70228
70313
|
403: BrowserError;
|
|
70229
70314
|
/**
|
|
@@ -70307,7 +70392,7 @@ export type BrowserUpdateContextErrors = {
|
|
|
70307
70392
|
*/
|
|
70308
70393
|
402: BrowserError;
|
|
70309
70394
|
/**
|
|
70310
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70395
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70311
70396
|
*/
|
|
70312
70397
|
403: BrowserError;
|
|
70313
70398
|
/**
|
|
@@ -70412,7 +70497,7 @@ export type BrowserConnectErrors = {
|
|
|
70412
70497
|
*/
|
|
70413
70498
|
402: BrowserError;
|
|
70414
70499
|
/**
|
|
70415
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70500
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70416
70501
|
*/
|
|
70417
70502
|
403: BrowserError;
|
|
70418
70503
|
/**
|
|
@@ -70487,7 +70572,7 @@ export type BrowserLiveViewErrors = {
|
|
|
70487
70572
|
*/
|
|
70488
70573
|
402: BrowserError;
|
|
70489
70574
|
/**
|
|
70490
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70575
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70491
70576
|
*/
|
|
70492
70577
|
403: BrowserError;
|
|
70493
70578
|
/**
|
|
@@ -70553,7 +70638,7 @@ export type BrowserStreamSessionErrors = {
|
|
|
70553
70638
|
*/
|
|
70554
70639
|
402: BrowserError;
|
|
70555
70640
|
/**
|
|
70556
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70641
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70557
70642
|
*/
|
|
70558
70643
|
403: BrowserError;
|
|
70559
70644
|
/**
|
|
@@ -70626,7 +70711,7 @@ export type BrowserStreamSessionFramesErrors = {
|
|
|
70626
70711
|
*/
|
|
70627
70712
|
402: BrowserError;
|
|
70628
70713
|
/**
|
|
70629
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
70714
|
+
* PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
|
|
70630
70715
|
*/
|
|
70631
70716
|
403: BrowserError;
|
|
70632
70717
|
/**
|
|
@@ -71054,7 +71139,7 @@ export type FileCreateSignedUploadErrors = {
|
|
|
71054
71139
|
*/
|
|
71055
71140
|
401: unknown;
|
|
71056
71141
|
/**
|
|
71057
|
-
* PERMISSION_DENIED or
|
|
71142
|
+
* PERMISSION_DENIED, BINDING_READ_ONLY or CAPABILITY_MISMATCH: the credential lacks create authority, or a signed upload URL was used for another action than the one it names.
|
|
71058
71143
|
*/
|
|
71059
71144
|
403: unknown;
|
|
71060
71145
|
};
|
|
@@ -78009,13 +78094,17 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
78009
78094
|
};
|
|
78010
78095
|
export type ListOrganizationNotificationLettersErrors = {
|
|
78011
78096
|
/**
|
|
78012
|
-
*
|
|
78097
|
+
* A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
78013
78098
|
*/
|
|
78014
78099
|
400: unknown;
|
|
78015
78100
|
/**
|
|
78016
78101
|
* Missing or invalid credential (RFC 9457 problem).
|
|
78017
78102
|
*/
|
|
78018
78103
|
401: unknown;
|
|
78104
|
+
/**
|
|
78105
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
78106
|
+
*/
|
|
78107
|
+
502: unknown;
|
|
78019
78108
|
};
|
|
78020
78109
|
export type ListOrganizationNotificationLettersResponses = {
|
|
78021
78110
|
/**
|
|
@@ -78118,7 +78207,7 @@ export type GetOrganizationNotificationLetterData = {
|
|
|
78118
78207
|
};
|
|
78119
78208
|
export type GetOrganizationNotificationLetterErrors = {
|
|
78120
78209
|
/**
|
|
78121
|
-
* The id is not a letter id (RFC 9457 problem).
|
|
78210
|
+
* The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78122
78211
|
*/
|
|
78123
78212
|
400: unknown;
|
|
78124
78213
|
/**
|
|
@@ -78126,9 +78215,13 @@ export type GetOrganizationNotificationLetterErrors = {
|
|
|
78126
78215
|
*/
|
|
78127
78216
|
401: unknown;
|
|
78128
78217
|
/**
|
|
78129
|
-
* No such letter in your mailbox (RFC 9457 problem).
|
|
78218
|
+
* No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND`, the same answer for a letter that is not yours, is still scheduled, or never existed (RFC 9457 problem).
|
|
78130
78219
|
*/
|
|
78131
78220
|
404: unknown;
|
|
78221
|
+
/**
|
|
78222
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
78223
|
+
*/
|
|
78224
|
+
502: unknown;
|
|
78132
78225
|
};
|
|
78133
78226
|
export type GetOrganizationNotificationLetterResponses = {
|
|
78134
78227
|
/**
|
|
@@ -78218,7 +78311,7 @@ export type ReadOrganizationNotificationLetterData = {
|
|
|
78218
78311
|
};
|
|
78219
78312
|
export type ReadOrganizationNotificationLetterErrors = {
|
|
78220
78313
|
/**
|
|
78221
|
-
* The id is not a letter id (RFC 9457 problem).
|
|
78314
|
+
* The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78222
78315
|
*/
|
|
78223
78316
|
400: unknown;
|
|
78224
78317
|
/**
|
|
@@ -78226,9 +78319,13 @@ export type ReadOrganizationNotificationLetterErrors = {
|
|
|
78226
78319
|
*/
|
|
78227
78320
|
401: unknown;
|
|
78228
78321
|
/**
|
|
78229
|
-
* No such letter in your mailbox (RFC 9457 problem).
|
|
78322
|
+
* No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
78230
78323
|
*/
|
|
78231
78324
|
404: unknown;
|
|
78325
|
+
/**
|
|
78326
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
78327
|
+
*/
|
|
78328
|
+
502: unknown;
|
|
78232
78329
|
};
|
|
78233
78330
|
export type ReadOrganizationNotificationLetterResponses = {
|
|
78234
78331
|
/**
|
|
@@ -78288,7 +78385,7 @@ export type ArchiveOrganizationNotificationLetterData = {
|
|
|
78288
78385
|
};
|
|
78289
78386
|
export type ArchiveOrganizationNotificationLetterErrors = {
|
|
78290
78387
|
/**
|
|
78291
|
-
* The id is not a letter id (RFC 9457 problem).
|
|
78388
|
+
* The id is not a letter id — `INVALID_PARAMS` from the service (RFC 9457 problem).
|
|
78292
78389
|
*/
|
|
78293
78390
|
400: unknown;
|
|
78294
78391
|
/**
|
|
@@ -78296,9 +78393,13 @@ export type ArchiveOrganizationNotificationLetterErrors = {
|
|
|
78296
78393
|
*/
|
|
78297
78394
|
401: unknown;
|
|
78298
78395
|
/**
|
|
78299
|
-
* No such letter in your mailbox (RFC 9457 problem).
|
|
78396
|
+
* No such letter in your mailbox in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
78300
78397
|
*/
|
|
78301
78398
|
404: unknown;
|
|
78399
|
+
/**
|
|
78400
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
78401
|
+
*/
|
|
78402
|
+
502: unknown;
|
|
78302
78403
|
};
|
|
78303
78404
|
export type ArchiveOrganizationNotificationLetterResponses = {
|
|
78304
78405
|
/**
|
|
@@ -78483,7 +78584,7 @@ export type UpdateOrganizationNotificationDefaultsData = {
|
|
|
78483
78584
|
};
|
|
78484
78585
|
export type UpdateOrganizationNotificationDefaultsErrors = {
|
|
78485
78586
|
/**
|
|
78486
|
-
* Invalid default, unknown category or hidden critical category (RFC 9457 problem).
|
|
78587
|
+
* Invalid default, unknown category or hidden critical category (RFC 9457 problem, `INVALID_PARAMS`).
|
|
78487
78588
|
*/
|
|
78488
78589
|
400: unknown;
|
|
78489
78590
|
/**
|
|
@@ -78491,9 +78592,13 @@ export type UpdateOrganizationNotificationDefaultsErrors = {
|
|
|
78491
78592
|
*/
|
|
78492
78593
|
401: unknown;
|
|
78493
78594
|
/**
|
|
78494
|
-
* The caller is not an owner or admin of this organization.
|
|
78595
|
+
* The caller is not an owner or admin of this organization — `PERMISSION_DENIED` from the service (RFC 9457 problem).
|
|
78495
78596
|
*/
|
|
78496
78597
|
403: unknown;
|
|
78598
|
+
/**
|
|
78599
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
78600
|
+
*/
|
|
78601
|
+
502: unknown;
|
|
78497
78602
|
};
|
|
78498
78603
|
export type UpdateOrganizationNotificationDefaultsResponses = {
|
|
78499
78604
|
/**
|
|
@@ -90424,6 +90529,31 @@ export type SessionsEventsListResponses = {
|
|
|
90424
90529
|
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
90425
90530
|
*/
|
|
90426
90531
|
session_thread_id?: string | null;
|
|
90532
|
+
} | {
|
|
90533
|
+
/**
|
|
90534
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
90535
|
+
*/
|
|
90536
|
+
id: string;
|
|
90537
|
+
/**
|
|
90538
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
90539
|
+
*/
|
|
90540
|
+
type: 'session.status_preparing';
|
|
90541
|
+
/**
|
|
90542
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
90543
|
+
*/
|
|
90544
|
+
processed_at: string;
|
|
90545
|
+
/**
|
|
90546
|
+
* How far the start got.
|
|
90547
|
+
*/
|
|
90548
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
90549
|
+
/**
|
|
90550
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
90551
|
+
*/
|
|
90552
|
+
message_id?: string;
|
|
90553
|
+
/**
|
|
90554
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
90555
|
+
*/
|
|
90556
|
+
session_thread_id?: string | null;
|
|
90427
90557
|
}>;
|
|
90428
90558
|
/**
|
|
90429
90559
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -92146,6 +92276,31 @@ export type SessionsThreadsEventsListResponses = {
|
|
|
92146
92276
|
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
92147
92277
|
*/
|
|
92148
92278
|
session_thread_id?: string | null;
|
|
92279
|
+
} | {
|
|
92280
|
+
/**
|
|
92281
|
+
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
92282
|
+
*/
|
|
92283
|
+
id: string;
|
|
92284
|
+
/**
|
|
92285
|
+
* Always `session.status_preparing`. A device session's local agent is starting; stage says how far it got.
|
|
92286
|
+
*/
|
|
92287
|
+
type: 'session.status_preparing';
|
|
92288
|
+
/**
|
|
92289
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
92290
|
+
*/
|
|
92291
|
+
processed_at: string;
|
|
92292
|
+
/**
|
|
92293
|
+
* How far the start got.
|
|
92294
|
+
*/
|
|
92295
|
+
stage: 'launching' | 'loading' | 'ready';
|
|
92296
|
+
/**
|
|
92297
|
+
* Envelope field, not part of this event's own payload: the transcript message id of the row, added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event stamps a message id today, so it is declared for the frame shape rather than produced here.
|
|
92298
|
+
*/
|
|
92299
|
+
message_id?: string;
|
|
92300
|
+
/**
|
|
92301
|
+
* Envelope field, not part of this event's own payload: the public sthr_ thread id of the row (null when the row has none), added by the shared projection in apps/api/src/routes/managed-session-events.ts whenever the row carries one (#4480). No writer of this event runs under a thread today, so it is declared for the frame shape rather than produced here.
|
|
92302
|
+
*/
|
|
92303
|
+
session_thread_id?: string | null;
|
|
92149
92304
|
}>;
|
|
92150
92305
|
/**
|
|
92151
92306
|
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
@@ -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
|
}>;
|