@b3os/sdk 0.2.0 → 0.2.2
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/dist/cjs/core/sse.d.ts +2 -0
- package/dist/cjs/core/sse.js +17 -5
- package/dist/cjs/core/sse.js.map +1 -1
- package/dist/cjs/core/util.d.ts +1 -1
- package/dist/cjs/core/util.js +1 -1
- package/dist/cjs/generated/client.d.ts +13 -0
- package/dist/cjs/generated/client.js +25 -0
- package/dist/cjs/generated/client.js.map +1 -1
- package/dist/cjs/generated/errors.d.ts +1 -1
- package/dist/cjs/generated/errors.js +95 -0
- package/dist/cjs/generated/errors.js.map +1 -1
- package/dist/cjs/generated/ids.d.ts +61 -0
- package/dist/cjs/generated/ids.js +15 -0
- package/dist/cjs/generated/ids.js.map +1 -1
- package/dist/cjs/generated/jobs.js +4 -0
- package/dist/cjs/generated/jobs.js.map +1 -1
- package/dist/cjs/generated/ns/actions.d.ts +303 -4
- package/dist/cjs/generated/ns/actions.js +446 -4
- package/dist/cjs/generated/ns/actions.js.map +1 -1
- package/dist/cjs/generated/ns/agents.d.ts +229 -0
- package/dist/cjs/generated/ns/agents.js +402 -0
- package/dist/cjs/generated/ns/agents.js.map +1 -0
- package/dist/cjs/generated/ns/images.d.ts +81 -0
- package/dist/cjs/generated/ns/images.js +122 -0
- package/dist/cjs/generated/ns/images.js.map +1 -0
- package/dist/cjs/generated/ns/infer.d.ts +71 -3
- package/dist/cjs/generated/ns/infer.js +98 -3
- package/dist/cjs/generated/ns/infer.js.map +1 -1
- package/dist/cjs/generated/ns/keys.d.ts +3 -1
- package/dist/cjs/generated/ns/keys.js +3 -1
- package/dist/cjs/generated/ns/keys.js.map +1 -1
- package/dist/cjs/generated/ns/listeners.d.ts +159 -0
- package/dist/cjs/generated/ns/listeners.js +264 -0
- package/dist/cjs/generated/ns/listeners.js.map +1 -0
- package/dist/cjs/generated/ns/orgs.d.ts +10 -0
- package/dist/cjs/generated/ns/orgs.js +26 -1
- package/dist/cjs/generated/ns/orgs.js.map +1 -1
- package/dist/cjs/generated/ns/projects.d.ts +32 -0
- package/dist/cjs/generated/ns/projects.js +66 -0
- package/dist/cjs/generated/ns/projects.js.map +1 -1
- package/dist/cjs/generated/ns/render.d.ts +192 -21
- package/dist/cjs/generated/ns/render.js +267 -24
- package/dist/cjs/generated/ns/render.js.map +1 -1
- package/dist/cjs/generated/ns/requests.d.ts +3 -1
- package/dist/cjs/generated/ns/requests.js +3 -1
- package/dist/cjs/generated/ns/requests.js.map +1 -1
- package/dist/cjs/generated/ns/routines.d.ts +11 -4
- package/dist/cjs/generated/ns/routines.js +11 -4
- package/dist/cjs/generated/ns/routines.js.map +1 -1
- package/dist/cjs/generated/ns/sandboxes.d.ts +292 -7
- package/dist/cjs/generated/ns/sandboxes.js +444 -6
- package/dist/cjs/generated/ns/sandboxes.js.map +1 -1
- package/dist/cjs/generated/ns/usage.d.ts +1 -1
- package/dist/cjs/generated/ns/usage.js +1 -1
- package/dist/cjs/generated/ns/vision.d.ts +59 -17
- package/dist/cjs/generated/ns/vision.js +59 -21
- package/dist/cjs/generated/ns/vision.js.map +1 -1
- package/dist/cjs/generated/types.d.ts +2787 -85
- package/dist/cjs/helpers/sandboxes.d.ts +46 -3
- package/dist/cjs/helpers/sandboxes.js +127 -14
- package/dist/cjs/helpers/sandboxes.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/core/sse.d.ts +2 -0
- package/dist/esm/core/sse.js +17 -5
- package/dist/esm/core/sse.js.map +1 -1
- package/dist/esm/core/util.d.ts +1 -1
- package/dist/esm/core/util.js +1 -1
- package/dist/esm/generated/client.d.ts +13 -0
- package/dist/esm/generated/client.js +25 -0
- package/dist/esm/generated/client.js.map +1 -1
- package/dist/esm/generated/errors.d.ts +1 -1
- package/dist/esm/generated/errors.js +95 -0
- package/dist/esm/generated/errors.js.map +1 -1
- package/dist/esm/generated/ids.d.ts +61 -0
- package/dist/esm/generated/ids.js +15 -0
- package/dist/esm/generated/ids.js.map +1 -1
- package/dist/esm/generated/jobs.js +4 -0
- package/dist/esm/generated/jobs.js.map +1 -1
- package/dist/esm/generated/ns/actions.d.ts +303 -4
- package/dist/esm/generated/ns/actions.js +446 -4
- package/dist/esm/generated/ns/actions.js.map +1 -1
- package/dist/esm/generated/ns/agents.d.ts +229 -0
- package/dist/esm/generated/ns/agents.js +398 -0
- package/dist/esm/generated/ns/agents.js.map +1 -0
- package/dist/esm/generated/ns/images.d.ts +81 -0
- package/dist/esm/generated/ns/images.js +118 -0
- package/dist/esm/generated/ns/images.js.map +1 -0
- package/dist/esm/generated/ns/infer.d.ts +71 -3
- package/dist/esm/generated/ns/infer.js +98 -3
- package/dist/esm/generated/ns/infer.js.map +1 -1
- package/dist/esm/generated/ns/keys.d.ts +3 -1
- package/dist/esm/generated/ns/keys.js +3 -1
- package/dist/esm/generated/ns/keys.js.map +1 -1
- package/dist/esm/generated/ns/listeners.d.ts +159 -0
- package/dist/esm/generated/ns/listeners.js +260 -0
- package/dist/esm/generated/ns/listeners.js.map +1 -0
- package/dist/esm/generated/ns/orgs.d.ts +10 -0
- package/dist/esm/generated/ns/orgs.js +26 -1
- package/dist/esm/generated/ns/orgs.js.map +1 -1
- package/dist/esm/generated/ns/projects.d.ts +32 -0
- package/dist/esm/generated/ns/projects.js +66 -0
- package/dist/esm/generated/ns/projects.js.map +1 -1
- package/dist/esm/generated/ns/render.d.ts +192 -21
- package/dist/esm/generated/ns/render.js +267 -24
- package/dist/esm/generated/ns/render.js.map +1 -1
- package/dist/esm/generated/ns/requests.d.ts +3 -1
- package/dist/esm/generated/ns/requests.js +3 -1
- package/dist/esm/generated/ns/requests.js.map +1 -1
- package/dist/esm/generated/ns/routines.d.ts +11 -4
- package/dist/esm/generated/ns/routines.js +11 -4
- package/dist/esm/generated/ns/routines.js.map +1 -1
- package/dist/esm/generated/ns/sandboxes.d.ts +292 -7
- package/dist/esm/generated/ns/sandboxes.js +444 -6
- package/dist/esm/generated/ns/sandboxes.js.map +1 -1
- package/dist/esm/generated/ns/usage.d.ts +1 -1
- package/dist/esm/generated/ns/usage.js +1 -1
- package/dist/esm/generated/ns/vision.d.ts +59 -17
- package/dist/esm/generated/ns/vision.js +59 -21
- package/dist/esm/generated/ns/vision.js.map +1 -1
- package/dist/esm/generated/types.d.ts +2787 -85
- package/dist/esm/helpers/sandboxes.d.ts +46 -3
- package/dist/esm/helpers/sandboxes.js +126 -13
- package/dist/esm/helpers/sandboxes.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/sse.ts +17 -5
- package/src/core/util.ts +1 -1
- package/src/generated/client.ts +28 -0
- package/src/generated/errors.ts +190 -0
- package/src/generated/ids.ts +15 -0
- package/src/generated/jobs.ts +4 -0
- package/src/generated/ns/actions.ts +483 -4
- package/src/generated/ns/agents.ts +461 -0
- package/src/generated/ns/images.ts +128 -0
- package/src/generated/ns/infer.ts +100 -3
- package/src/generated/ns/keys.ts +3 -1
- package/src/generated/ns/listeners.ts +296 -0
- package/src/generated/ns/orgs.ts +27 -1
- package/src/generated/ns/projects.ts +74 -0
- package/src/generated/ns/render.ts +277 -24
- package/src/generated/ns/requests.ts +3 -1
- package/src/generated/ns/routines.ts +11 -4
- package/src/generated/ns/sandboxes.ts +492 -7
- package/src/generated/ns/usage.ts +1 -1
- package/src/generated/ns/vision.ts +59 -21
- package/src/generated/types.ts +3511 -575
- package/src/helpers/sandboxes.ts +167 -14
- package/src/index.ts +1 -0
package/src/generated/errors.ts
CHANGED
|
@@ -12,6 +12,7 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
12
12
|
payload_too_large: [413, 0, "Payload too large"],
|
|
13
13
|
route_not_found: [404, 0, "Route not found"],
|
|
14
14
|
feature_not_enabled: [404, 0, "Feature not enabled"],
|
|
15
|
+
flags_unavailable: [503, 1, "Feature flags unavailable"],
|
|
15
16
|
method_not_allowed: [405, 0, "Method not allowed"],
|
|
16
17
|
edge_only: [421, 0, "Served by beta-api.b3os.org"],
|
|
17
18
|
limit_exceeded: [422, 0, "Limit exceeded"],
|
|
@@ -41,6 +42,7 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
41
42
|
upstream_too_large: [502, 0, "Upstream response too large"],
|
|
42
43
|
too_many_redirects: [502, 0, "Too many redirects"],
|
|
43
44
|
cap_invalid: [407, 0, "Egress capability invalid"],
|
|
45
|
+
lease_token_invalid: [407, 0, "Egress lease token invalid"],
|
|
44
46
|
node_unavailable: [503, 1, "Node unavailable"],
|
|
45
47
|
product_unavailable: [503, 1, "Product unavailable"],
|
|
46
48
|
capacity_unavailable: [503, 1, "No capacity available"],
|
|
@@ -59,10 +61,22 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
59
61
|
project_not_found: [404, 0, "Project not found"],
|
|
60
62
|
org_not_found: [404, 0, "Organization not found"],
|
|
61
63
|
request_not_found: [404, 0, "Request not found"],
|
|
64
|
+
llm_call_not_found: [404, 0, "Model call not found"],
|
|
65
|
+
invalid_option: [422, 0, "Invalid option"],
|
|
62
66
|
project_not_empty: [409, 0, "Project not empty"],
|
|
63
67
|
last_project: [409, 0, "Last project"],
|
|
64
68
|
invite_code_invalid: [400, 0, "Invalid invite code"],
|
|
65
69
|
invite_code_used: [409, 0, "Invite code already used"],
|
|
70
|
+
member_not_found: [404, 0, "Member not found"],
|
|
71
|
+
last_owner: [409, 0, "Last owner"],
|
|
72
|
+
already_member: [409, 0, "Already a member"],
|
|
73
|
+
org_invite_exists: [409, 0, "Invite already pending"],
|
|
74
|
+
org_invite_not_found: [404, 0, "Invite not found"],
|
|
75
|
+
org_invite_invalid: [400, 0, "Invalid invite"],
|
|
76
|
+
org_invite_expired: [410, 0, "Invite expired"],
|
|
77
|
+
org_invite_wrong_account: [403, 0, "Invite is for another address"],
|
|
78
|
+
org_invite_code_required: [403, 0, "Accept code required"],
|
|
79
|
+
org_invite_code_invalid: [400, 0, "Invalid accept code"],
|
|
66
80
|
email_code_invalid: [400, 0, "Invalid email code"],
|
|
67
81
|
user_code_not_found: [404, 0, "Device code not found"],
|
|
68
82
|
device_authorization_finished: [409, 0, "Device login already decided"],
|
|
@@ -76,16 +90,43 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
76
90
|
turnstile_required: [400, 0, "Turnstile token required"],
|
|
77
91
|
turnstile_failed: [403, 0, "Turnstile check failed"],
|
|
78
92
|
turnstile_unavailable: [503, 1, "Turnstile unavailable"],
|
|
93
|
+
playground_limited: [429, 1, "Playground limit reached"],
|
|
79
94
|
github_app_not_configured: [503, 0, "GitHub App not configured"],
|
|
80
95
|
github_installation_not_found: [404, 0, "GitHub installation not found"],
|
|
81
96
|
github_repository_not_accessible: [404, 0, "GitHub repository not accessible"],
|
|
82
97
|
repository_link_not_found: [404, 0, "Repository link not found"],
|
|
98
|
+
github_write_not_permitted: [403, 0, "GitHub write not permitted"],
|
|
99
|
+
manifest_changed: [409, 0, "b3os.yaml changed"],
|
|
100
|
+
too_many_open_changes: [409, 0, "Too many open changes"],
|
|
101
|
+
change_not_found: [404, 0, "Change not found"],
|
|
102
|
+
change_not_mergeable: [409, 0, "Change not mergeable"],
|
|
83
103
|
eval_run_not_found: [404, 0, "Eval run not found"],
|
|
84
104
|
alert_destination_not_found: [404, 0, "Alert destination not found"],
|
|
85
105
|
trace_not_found: [404, 0, "Trace not found"],
|
|
86
106
|
deploy_not_found: [404, 0, "Deploy not found"],
|
|
87
107
|
deploy_not_rollbackable: [409, 0, "Deploy cannot be rolled back to"],
|
|
88
108
|
deploy_not_updatable: [409, 0, "Deploy cannot change this way"],
|
|
109
|
+
app_host_label_taken: [409, 0, "Address label taken"],
|
|
110
|
+
app_host_label_reserved: [422, 0, "Address label reserved"],
|
|
111
|
+
app_host_conflict: [409, 0, "Address label is fixed"],
|
|
112
|
+
app_host_route_conflict: [409, 1, "Address switched by another call"],
|
|
113
|
+
app_host_not_found: [404, 0, "Address not found"],
|
|
114
|
+
app_icon_not_found: [404, 0, "Application icon not found"],
|
|
115
|
+
app_host_blocked: [403, 0, "Address blocked"],
|
|
116
|
+
app_host_public_needs_spend_cap: [422, 0, "Public address needs a spend cap"],
|
|
117
|
+
app_host_port_public: [422, 0, "Address port is public"],
|
|
118
|
+
app_domain_invalid: [422, 0, "Custom domain refused"],
|
|
119
|
+
app_domain_taken: [409, 0, "Custom domain taken"],
|
|
120
|
+
app_domain_not_found: [404, 0, "Custom domain not found"],
|
|
121
|
+
app_domain_unavailable: [503, 1, "Custom domains unavailable"],
|
|
122
|
+
sandbox_routed: [409, 0, "Sandbox serves an address"],
|
|
123
|
+
app_not_found: [404, 0, "No app at this address"],
|
|
124
|
+
app_link_required: [401, 0, "App shared by link"],
|
|
125
|
+
app_deploying: [503, 1, "App not live yet"],
|
|
126
|
+
app_not_running: [503, 1, "App not running"],
|
|
127
|
+
app_blocked: [410, 0, "Address unavailable"],
|
|
128
|
+
app_unavailable: [503, 1, "App unavailable"],
|
|
129
|
+
app_request_refused: [403, 0, "Request not served"],
|
|
89
130
|
authorization_pending: [400, 1, "Authorization pending"],
|
|
90
131
|
slow_down: [400, 1, "Slow down"],
|
|
91
132
|
access_denied: [400, 0, "Access denied"],
|
|
@@ -104,6 +145,8 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
104
145
|
batch_not_found: [404, 0, "Batch scrape not found"],
|
|
105
146
|
robots_disallowed: [403, 0, "Disallowed by robots.txt"],
|
|
106
147
|
content_type_unsupported: [422, 0, "Content type not supported"],
|
|
148
|
+
pdf_unreadable: [422, 0, "PDF could not be read"],
|
|
149
|
+
pdf_encrypted: [422, 0, "PDF is password-protected"],
|
|
107
150
|
navigation_failed: [502, 1, "Navigation failed"],
|
|
108
151
|
scrape_timeout: [504, 1, "Scrape timed out"],
|
|
109
152
|
target_not_found: [422, 0, "Target not found"],
|
|
@@ -112,13 +155,19 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
112
155
|
act_step_failed: [422, 0, "Browser action failed"],
|
|
113
156
|
cdp_method_blocked: [403, 0, "CDP method not allowed"],
|
|
114
157
|
extraction_failed: [502, 1, "Extraction failed"],
|
|
158
|
+
extract_fields_missing: [422, 0, "Extraction incomplete"],
|
|
115
159
|
scrape_no_cached_data: [404, 0, "No cached copy"],
|
|
116
160
|
scrape_lockdown_cache_miss: [404, 0, "Not in the cache (lockdown)"],
|
|
117
161
|
search_unavailable: [503, 1, "Search unavailable"],
|
|
118
162
|
search_failed: [502, 1, "Search failed"],
|
|
119
163
|
search_answer_too_large: [413, 0, "Search answer too large"],
|
|
164
|
+
proxy_unreachable: [502, 1, "Proxy unreachable"],
|
|
165
|
+
proxy_auth_failed: [502, 0, "Proxy authentication failed"],
|
|
166
|
+
proxy_refused: [502, 0, "Proxy refused the request"],
|
|
167
|
+
proxy_not_allowed: [403, 0, "Not read from a residential address"],
|
|
120
168
|
screenshot_not_found: [404, 0, "Screenshot not found"],
|
|
121
169
|
video_not_found: [404, 0, "Video not found"],
|
|
170
|
+
video_not_ready: [409, 1, "Video not ready"],
|
|
122
171
|
artifact_not_found: [404, 0, "Artifact not found"],
|
|
123
172
|
artifact_expired: [410, 0, "Artifact expired"],
|
|
124
173
|
capture_failed: [502, 1, "Capture failed"],
|
|
@@ -128,9 +177,22 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
128
177
|
restyle_unavailable: [409, 0, "Restyle not available"],
|
|
129
178
|
background_unavailable: [503, 1, "Background unavailable"],
|
|
130
179
|
style_invalid: [422, 0, "Invalid style"],
|
|
180
|
+
alias_not_found: [404, 0, "Alias not found"],
|
|
181
|
+
share_not_found: [404, 0, "Share not found"],
|
|
182
|
+
share_blocked: [403, 0, "Share taken down"],
|
|
183
|
+
goal_unplanned: [422, 0, "Goal could not be planned"],
|
|
131
184
|
sandbox_not_found: [404, 0, "Sandbox not found"],
|
|
132
185
|
sandbox_not_running: [409, 0, "Sandbox not running"],
|
|
186
|
+
lease_holder_changed: [409, 0, "Lease holder changed"],
|
|
133
187
|
template_not_found: [404, 0, "Template not found"],
|
|
188
|
+
memory_too_small: [422, 0, "Memory too small for this template"],
|
|
189
|
+
template_warmup_failed: [503, 1, "Template could not be prepared at this size"],
|
|
190
|
+
volume_not_found: [404, 0, "Volume not found"],
|
|
191
|
+
volume_name_taken: [409, 0, "Volume name taken"],
|
|
192
|
+
volume_in_use: [409, 1, "Volume in use"],
|
|
193
|
+
volume_attached: [409, 0, "Volume attached"],
|
|
194
|
+
volume_drive_missing: [409, 0, "Snapshot predates volumes"],
|
|
195
|
+
volume_unmountable: [409, 0, "Volume could not be mounted"],
|
|
134
196
|
snapshot_not_found: [404, 0, "Snapshot not found"],
|
|
135
197
|
snapshot_damaged: [409, 0, "Snapshot damaged"],
|
|
136
198
|
file_not_found: [404, 0, "File not found"],
|
|
@@ -141,14 +203,35 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
141
203
|
guest_outdated: [409, 0, "Sandbox agent predates the operation"],
|
|
142
204
|
file_too_large: [413, 0, "File too large"],
|
|
143
205
|
port_not_exposed: [404, 0, "Port not exposed"],
|
|
206
|
+
app_token_invalid: [403, 0, "App address credential refused"],
|
|
144
207
|
upstream_first_byte_timeout: [504, 0, "Upstream first byte timeout"],
|
|
145
208
|
process_not_found: [404, 0, "Process not found"],
|
|
146
209
|
kernel_unavailable: [409, 0, "Code kernel unavailable"],
|
|
147
210
|
language_unsupported: [422, 0, "Language not supported"],
|
|
211
|
+
shell_unavailable: [422, 0, "Shell unavailable"],
|
|
148
212
|
guest_unreachable: [502, 1, "Sandbox agent unreachable"],
|
|
149
213
|
snapshot_failed: [500, 1, "Snapshot failed"],
|
|
150
214
|
fork_unavailable: [409, 0, "Fork not available"],
|
|
215
|
+
swarm_not_found: [404, 0, "Swarm not found"],
|
|
151
216
|
envd_token_invalid: [401, 0, "envd access token invalid"],
|
|
217
|
+
image_not_found: [404, 0, "Image not found"],
|
|
218
|
+
image_not_ready: [409, 1, "Image not ready"],
|
|
219
|
+
image_in_use: [409, 0, "Image in use"],
|
|
220
|
+
image_refused: [422, 0, "Image refused"],
|
|
221
|
+
import_failed: [502, 1, "Import failed"],
|
|
222
|
+
agent_not_found: [404, 0, "Agent not found"],
|
|
223
|
+
agent_exists: [409, 0, "Agent exists"],
|
|
224
|
+
instance_not_found: [404, 0, "Instance not found"],
|
|
225
|
+
instance_key_invalid: [400, 0, "Instance key invalid"],
|
|
226
|
+
instance_busy: [429, 1, "Instance busy"],
|
|
227
|
+
instance_wake_failed: [503, 1, "Instance did not wake"],
|
|
228
|
+
instance_lost: [502, 0, "Instance lost"],
|
|
229
|
+
harness_error: [502, 0, "Harness error"],
|
|
230
|
+
session_timeout: [504, 0, "Session timed out"],
|
|
231
|
+
session_interrupted: [502, 0, "Session interrupted"],
|
|
232
|
+
agent_session_not_found: [404, 0, "Agent session not found"],
|
|
233
|
+
instance_self_message: [409, 0, "Instance messaged itself"],
|
|
234
|
+
credential_revoked: [403, 0, "Credential revoked"],
|
|
152
235
|
routine_not_found: [404, 0, "Routine not found"],
|
|
153
236
|
routine_version_not_found: [404, 0, "Routine version not found"],
|
|
154
237
|
run_not_found: [404, 0, "Run not found"],
|
|
@@ -173,9 +256,16 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
173
256
|
step_outcome_unknown: [409, 0, "Step outcome unknown"],
|
|
174
257
|
internal_recovery_failed: [500, 0, "Recovery failed"],
|
|
175
258
|
hook_attestation_unverifiable: [503, 1, "Webhook replay cannot be checked yet"],
|
|
259
|
+
listener_not_found: [404, 0, "Listener not found"],
|
|
260
|
+
listener_event_not_found: [404, 0, "Listener event not found"],
|
|
261
|
+
listener_invalid: [422, 0, "Listener invalid"],
|
|
262
|
+
listener_not_active: [409, 0, "Listener not active"],
|
|
263
|
+
listener_wrong_source: [409, 0, "Wrong source type"],
|
|
264
|
+
listener_backlog_full: [429, 1, "Listener backlog full"],
|
|
176
265
|
pack_not_found: [404, 0, "Pack not found"],
|
|
177
266
|
pack_version_not_found: [404, 0, "Pack version not found"],
|
|
178
267
|
action_not_found: [404, 0, "Action not found"],
|
|
268
|
+
action_not_allowed: [403, 0, "Action not allowed"],
|
|
179
269
|
trigger_not_found: [404, 0, "Trigger not found"],
|
|
180
270
|
trigger_subscription_not_found: [404, 0, "Trigger subscription not found"],
|
|
181
271
|
action_ref_invalid: [400, 0, "Invalid action reference"],
|
|
@@ -186,8 +276,13 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
|
|
|
186
276
|
connection_mismatch: [422, 0, "Connection does not match"],
|
|
187
277
|
pack_unavailable: [503, 1, "Pack unavailable"],
|
|
188
278
|
action_expression_error: [422, 0, "Action expression failed"],
|
|
279
|
+
tool_failed: [502, 0, "Hosted tool failed"],
|
|
280
|
+
tool_timed_out: [504, 0, "Hosted tool timed out"],
|
|
281
|
+
tool_unavailable: [503, 1, "Hosted tool unavailable"],
|
|
282
|
+
tool_blocked: [451, 0, "Tool removed"],
|
|
189
283
|
connection_not_found: [404, 0, "Connection not found"],
|
|
190
284
|
connection_invalid: [422, 0, "Invalid connection"],
|
|
285
|
+
connection_host_bound: [422, 0, "Connection is bound to hosts"],
|
|
191
286
|
blob_not_found: [404, 0, "Stored object not found"],
|
|
192
287
|
blob_too_large: [413, 0, "Stored object too large"],
|
|
193
288
|
vault_unavailable: [503, 1, "Vault unavailable"],
|
|
@@ -209,6 +304,7 @@ export type B3OSServerErrorCode =
|
|
|
209
304
|
| "payload_too_large"
|
|
210
305
|
| "route_not_found"
|
|
211
306
|
| "feature_not_enabled"
|
|
307
|
+
| "flags_unavailable"
|
|
212
308
|
| "method_not_allowed"
|
|
213
309
|
| "edge_only"
|
|
214
310
|
| "limit_exceeded"
|
|
@@ -238,6 +334,7 @@ export type B3OSServerErrorCode =
|
|
|
238
334
|
| "upstream_too_large"
|
|
239
335
|
| "too_many_redirects"
|
|
240
336
|
| "cap_invalid"
|
|
337
|
+
| "lease_token_invalid"
|
|
241
338
|
| "node_unavailable"
|
|
242
339
|
| "product_unavailable"
|
|
243
340
|
| "capacity_unavailable"
|
|
@@ -256,10 +353,22 @@ export type B3OSServerErrorCode =
|
|
|
256
353
|
| "project_not_found"
|
|
257
354
|
| "org_not_found"
|
|
258
355
|
| "request_not_found"
|
|
356
|
+
| "llm_call_not_found"
|
|
357
|
+
| "invalid_option"
|
|
259
358
|
| "project_not_empty"
|
|
260
359
|
| "last_project"
|
|
261
360
|
| "invite_code_invalid"
|
|
262
361
|
| "invite_code_used"
|
|
362
|
+
| "member_not_found"
|
|
363
|
+
| "last_owner"
|
|
364
|
+
| "already_member"
|
|
365
|
+
| "org_invite_exists"
|
|
366
|
+
| "org_invite_not_found"
|
|
367
|
+
| "org_invite_invalid"
|
|
368
|
+
| "org_invite_expired"
|
|
369
|
+
| "org_invite_wrong_account"
|
|
370
|
+
| "org_invite_code_required"
|
|
371
|
+
| "org_invite_code_invalid"
|
|
263
372
|
| "email_code_invalid"
|
|
264
373
|
| "user_code_not_found"
|
|
265
374
|
| "device_authorization_finished"
|
|
@@ -273,16 +382,43 @@ export type B3OSServerErrorCode =
|
|
|
273
382
|
| "turnstile_required"
|
|
274
383
|
| "turnstile_failed"
|
|
275
384
|
| "turnstile_unavailable"
|
|
385
|
+
| "playground_limited"
|
|
276
386
|
| "github_app_not_configured"
|
|
277
387
|
| "github_installation_not_found"
|
|
278
388
|
| "github_repository_not_accessible"
|
|
279
389
|
| "repository_link_not_found"
|
|
390
|
+
| "github_write_not_permitted"
|
|
391
|
+
| "manifest_changed"
|
|
392
|
+
| "too_many_open_changes"
|
|
393
|
+
| "change_not_found"
|
|
394
|
+
| "change_not_mergeable"
|
|
280
395
|
| "eval_run_not_found"
|
|
281
396
|
| "alert_destination_not_found"
|
|
282
397
|
| "trace_not_found"
|
|
283
398
|
| "deploy_not_found"
|
|
284
399
|
| "deploy_not_rollbackable"
|
|
285
400
|
| "deploy_not_updatable"
|
|
401
|
+
| "app_host_label_taken"
|
|
402
|
+
| "app_host_label_reserved"
|
|
403
|
+
| "app_host_conflict"
|
|
404
|
+
| "app_host_route_conflict"
|
|
405
|
+
| "app_host_not_found"
|
|
406
|
+
| "app_icon_not_found"
|
|
407
|
+
| "app_host_blocked"
|
|
408
|
+
| "app_host_public_needs_spend_cap"
|
|
409
|
+
| "app_host_port_public"
|
|
410
|
+
| "app_domain_invalid"
|
|
411
|
+
| "app_domain_taken"
|
|
412
|
+
| "app_domain_not_found"
|
|
413
|
+
| "app_domain_unavailable"
|
|
414
|
+
| "sandbox_routed"
|
|
415
|
+
| "app_not_found"
|
|
416
|
+
| "app_link_required"
|
|
417
|
+
| "app_deploying"
|
|
418
|
+
| "app_not_running"
|
|
419
|
+
| "app_blocked"
|
|
420
|
+
| "app_unavailable"
|
|
421
|
+
| "app_request_refused"
|
|
286
422
|
| "authorization_pending"
|
|
287
423
|
| "slow_down"
|
|
288
424
|
| "access_denied"
|
|
@@ -301,6 +437,8 @@ export type B3OSServerErrorCode =
|
|
|
301
437
|
| "batch_not_found"
|
|
302
438
|
| "robots_disallowed"
|
|
303
439
|
| "content_type_unsupported"
|
|
440
|
+
| "pdf_unreadable"
|
|
441
|
+
| "pdf_encrypted"
|
|
304
442
|
| "navigation_failed"
|
|
305
443
|
| "scrape_timeout"
|
|
306
444
|
| "target_not_found"
|
|
@@ -309,13 +447,19 @@ export type B3OSServerErrorCode =
|
|
|
309
447
|
| "act_step_failed"
|
|
310
448
|
| "cdp_method_blocked"
|
|
311
449
|
| "extraction_failed"
|
|
450
|
+
| "extract_fields_missing"
|
|
312
451
|
| "scrape_no_cached_data"
|
|
313
452
|
| "scrape_lockdown_cache_miss"
|
|
314
453
|
| "search_unavailable"
|
|
315
454
|
| "search_failed"
|
|
316
455
|
| "search_answer_too_large"
|
|
456
|
+
| "proxy_unreachable"
|
|
457
|
+
| "proxy_auth_failed"
|
|
458
|
+
| "proxy_refused"
|
|
459
|
+
| "proxy_not_allowed"
|
|
317
460
|
| "screenshot_not_found"
|
|
318
461
|
| "video_not_found"
|
|
462
|
+
| "video_not_ready"
|
|
319
463
|
| "artifact_not_found"
|
|
320
464
|
| "artifact_expired"
|
|
321
465
|
| "capture_failed"
|
|
@@ -325,9 +469,22 @@ export type B3OSServerErrorCode =
|
|
|
325
469
|
| "restyle_unavailable"
|
|
326
470
|
| "background_unavailable"
|
|
327
471
|
| "style_invalid"
|
|
472
|
+
| "alias_not_found"
|
|
473
|
+
| "share_not_found"
|
|
474
|
+
| "share_blocked"
|
|
475
|
+
| "goal_unplanned"
|
|
328
476
|
| "sandbox_not_found"
|
|
329
477
|
| "sandbox_not_running"
|
|
478
|
+
| "lease_holder_changed"
|
|
330
479
|
| "template_not_found"
|
|
480
|
+
| "memory_too_small"
|
|
481
|
+
| "template_warmup_failed"
|
|
482
|
+
| "volume_not_found"
|
|
483
|
+
| "volume_name_taken"
|
|
484
|
+
| "volume_in_use"
|
|
485
|
+
| "volume_attached"
|
|
486
|
+
| "volume_drive_missing"
|
|
487
|
+
| "volume_unmountable"
|
|
331
488
|
| "snapshot_not_found"
|
|
332
489
|
| "snapshot_damaged"
|
|
333
490
|
| "file_not_found"
|
|
@@ -338,14 +495,35 @@ export type B3OSServerErrorCode =
|
|
|
338
495
|
| "guest_outdated"
|
|
339
496
|
| "file_too_large"
|
|
340
497
|
| "port_not_exposed"
|
|
498
|
+
| "app_token_invalid"
|
|
341
499
|
| "upstream_first_byte_timeout"
|
|
342
500
|
| "process_not_found"
|
|
343
501
|
| "kernel_unavailable"
|
|
344
502
|
| "language_unsupported"
|
|
503
|
+
| "shell_unavailable"
|
|
345
504
|
| "guest_unreachable"
|
|
346
505
|
| "snapshot_failed"
|
|
347
506
|
| "fork_unavailable"
|
|
507
|
+
| "swarm_not_found"
|
|
348
508
|
| "envd_token_invalid"
|
|
509
|
+
| "image_not_found"
|
|
510
|
+
| "image_not_ready"
|
|
511
|
+
| "image_in_use"
|
|
512
|
+
| "image_refused"
|
|
513
|
+
| "import_failed"
|
|
514
|
+
| "agent_not_found"
|
|
515
|
+
| "agent_exists"
|
|
516
|
+
| "instance_not_found"
|
|
517
|
+
| "instance_key_invalid"
|
|
518
|
+
| "instance_busy"
|
|
519
|
+
| "instance_wake_failed"
|
|
520
|
+
| "instance_lost"
|
|
521
|
+
| "harness_error"
|
|
522
|
+
| "session_timeout"
|
|
523
|
+
| "session_interrupted"
|
|
524
|
+
| "agent_session_not_found"
|
|
525
|
+
| "instance_self_message"
|
|
526
|
+
| "credential_revoked"
|
|
349
527
|
| "routine_not_found"
|
|
350
528
|
| "routine_version_not_found"
|
|
351
529
|
| "run_not_found"
|
|
@@ -370,9 +548,16 @@ export type B3OSServerErrorCode =
|
|
|
370
548
|
| "step_outcome_unknown"
|
|
371
549
|
| "internal_recovery_failed"
|
|
372
550
|
| "hook_attestation_unverifiable"
|
|
551
|
+
| "listener_not_found"
|
|
552
|
+
| "listener_event_not_found"
|
|
553
|
+
| "listener_invalid"
|
|
554
|
+
| "listener_not_active"
|
|
555
|
+
| "listener_wrong_source"
|
|
556
|
+
| "listener_backlog_full"
|
|
373
557
|
| "pack_not_found"
|
|
374
558
|
| "pack_version_not_found"
|
|
375
559
|
| "action_not_found"
|
|
560
|
+
| "action_not_allowed"
|
|
376
561
|
| "trigger_not_found"
|
|
377
562
|
| "trigger_subscription_not_found"
|
|
378
563
|
| "action_ref_invalid"
|
|
@@ -383,8 +568,13 @@ export type B3OSServerErrorCode =
|
|
|
383
568
|
| "connection_mismatch"
|
|
384
569
|
| "pack_unavailable"
|
|
385
570
|
| "action_expression_error"
|
|
571
|
+
| "tool_failed"
|
|
572
|
+
| "tool_timed_out"
|
|
573
|
+
| "tool_unavailable"
|
|
574
|
+
| "tool_blocked"
|
|
386
575
|
| "connection_not_found"
|
|
387
576
|
| "connection_invalid"
|
|
577
|
+
| "connection_host_bound"
|
|
388
578
|
| "blob_not_found"
|
|
389
579
|
| "blob_too_large"
|
|
390
580
|
| "vault_unavailable"
|
package/src/generated/ids.ts
CHANGED
|
@@ -12,15 +12,27 @@ export const ID_PREFIXES = {
|
|
|
12
12
|
shot: { object: "screenshot", product: "render" },
|
|
13
13
|
vid: { object: "video", product: "render" },
|
|
14
14
|
art: { object: "artifact", product: "render" },
|
|
15
|
+
ins: { object: "inspection", product: "render" },
|
|
16
|
+
shr: { object: "video_share", product: "render", secret: true },
|
|
17
|
+
als: { object: "video_alias", product: "render" },
|
|
15
18
|
sbx: { object: "sandbox", product: "sandboxes" },
|
|
16
19
|
snap: { object: "snapshot", product: "sandboxes" },
|
|
17
20
|
tpl: { object: "template", product: "sandboxes" },
|
|
21
|
+
vol: { object: "volume", product: "sandboxes" },
|
|
22
|
+
swm: { object: "swarm", product: "sandboxes" },
|
|
23
|
+
img: { object: "image", product: "images" },
|
|
24
|
+
agt: { object: "agent", product: "agents" },
|
|
25
|
+
inst: { object: "agent_instance", product: "agents" },
|
|
26
|
+
ses: { object: "agent_session", product: "agents" },
|
|
18
27
|
rtn: { object: "routine", product: "routines" },
|
|
19
28
|
ver: { object: "routine_version", product: "routines" },
|
|
20
29
|
run: { object: "routine_run", product: "routines" },
|
|
21
30
|
hk: { object: "hook", product: "routines", secret: true },
|
|
22
31
|
conn: { object: "connection", product: "vault" },
|
|
23
32
|
tsub: { object: "trigger_subscription", product: "actions" },
|
|
33
|
+
lsn: { object: "listener", product: "listeners" },
|
|
34
|
+
tfile: { object: "tool_file", product: "actions" },
|
|
35
|
+
tblk: { object: "tool_block", product: "actions" },
|
|
24
36
|
clink: { object: "connect_link", product: "vault" },
|
|
25
37
|
org: { object: "organization", product: "platform" },
|
|
26
38
|
prj: { object: "project", product: "platform" },
|
|
@@ -34,6 +46,9 @@ export const ID_PREFIXES = {
|
|
|
34
46
|
dep: { object: "deploy", product: "platform" },
|
|
35
47
|
evr: { object: "eval_run", product: "platform" },
|
|
36
48
|
alt: { object: "alert", product: "platform" },
|
|
49
|
+
chg: { object: "app_change", product: "platform" },
|
|
50
|
+
inv: { object: "org_invite", product: "platform" },
|
|
51
|
+
aud: { object: "audit_entry", product: "platform" },
|
|
37
52
|
} as const;
|
|
38
53
|
|
|
39
54
|
export type IdPrefix = keyof typeof ID_PREFIXES;
|
package/src/generated/jobs.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// Generated by packages/sdk/scripts/generate.mjs from packages/spec/dist. Do not edit; run `pnpm generate`.
|
|
2
2
|
|
|
3
3
|
import type { JobOps } from "../core/op.ts";
|
|
4
|
+
import { agentsOps } from "./ns/agents.ts";
|
|
4
5
|
import { renderOps } from "./ns/render.ts";
|
|
5
6
|
import { routinesOps } from "./ns/routines.ts";
|
|
7
|
+
import { sandboxesOps } from "./ns/sandboxes.ts";
|
|
6
8
|
import { visionOps } from "./ns/vision.ts";
|
|
7
9
|
|
|
8
10
|
/** Job operations by job ID prefix (`crawl_` → the crawl's get, events and cancel operations). */
|
|
@@ -10,6 +12,8 @@ export const JOB_OPS: Readonly<Record<string, JobOps>> = {
|
|
|
10
12
|
batch: visionOps.createBatch.job as JobOps,
|
|
11
13
|
crawl: visionOps.createCrawl.job as JobOps,
|
|
12
14
|
vid: renderOps.createVideo.job as JobOps,
|
|
15
|
+
swm: sandboxesOps.createSwarm.job as JobOps,
|
|
16
|
+
ses: agentsOps.sendMessage.job as JobOps,
|
|
13
17
|
run: routinesOps.replayRun.job as JobOps,
|
|
14
18
|
};
|
|
15
19
|
|