@b3os/sdk 0.2.1 → 0.2.3

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.
Files changed (146) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/core/util.d.ts +1 -1
  3. package/dist/cjs/core/util.js +1 -1
  4. package/dist/cjs/generated/client.d.ts +18 -0
  5. package/dist/cjs/generated/client.js +34 -0
  6. package/dist/cjs/generated/client.js.map +1 -1
  7. package/dist/cjs/generated/errors.d.ts +1 -1
  8. package/dist/cjs/generated/errors.js +120 -0
  9. package/dist/cjs/generated/errors.js.map +1 -1
  10. package/dist/cjs/generated/ids.d.ts +89 -0
  11. package/dist/cjs/generated/ids.js +22 -0
  12. package/dist/cjs/generated/ids.js.map +1 -1
  13. package/dist/cjs/generated/jobs.js +4 -0
  14. package/dist/cjs/generated/jobs.js.map +1 -1
  15. package/dist/cjs/generated/ns/actions.d.ts +267 -33
  16. package/dist/cjs/generated/ns/actions.js +375 -33
  17. package/dist/cjs/generated/ns/actions.js.map +1 -1
  18. package/dist/cjs/generated/ns/agents.d.ts +656 -0
  19. package/dist/cjs/generated/ns/agents.js +989 -0
  20. package/dist/cjs/generated/ns/agents.js.map +1 -0
  21. package/dist/cjs/generated/ns/images.d.ts +162 -0
  22. package/dist/cjs/generated/ns/images.js +246 -0
  23. package/dist/cjs/generated/ns/images.js.map +1 -0
  24. package/dist/cjs/generated/ns/infer.d.ts +71 -3
  25. package/dist/cjs/generated/ns/infer.js +98 -3
  26. package/dist/cjs/generated/ns/infer.js.map +1 -1
  27. package/dist/cjs/generated/ns/keys.d.ts +3 -1
  28. package/dist/cjs/generated/ns/keys.js +3 -1
  29. package/dist/cjs/generated/ns/keys.js.map +1 -1
  30. package/dist/cjs/generated/ns/listeners.d.ts +163 -0
  31. package/dist/cjs/generated/ns/listeners.js +268 -0
  32. package/dist/cjs/generated/ns/listeners.js.map +1 -0
  33. package/dist/cjs/generated/ns/orgs.d.ts +10 -0
  34. package/dist/cjs/generated/ns/orgs.js +26 -1
  35. package/dist/cjs/generated/ns/orgs.js.map +1 -1
  36. package/dist/cjs/generated/ns/projects.d.ts +32 -0
  37. package/dist/cjs/generated/ns/projects.js +66 -0
  38. package/dist/cjs/generated/ns/projects.js.map +1 -1
  39. package/dist/cjs/generated/ns/render.d.ts +192 -21
  40. package/dist/cjs/generated/ns/render.js +267 -24
  41. package/dist/cjs/generated/ns/render.js.map +1 -1
  42. package/dist/cjs/generated/ns/requests.d.ts +3 -1
  43. package/dist/cjs/generated/ns/requests.js +3 -1
  44. package/dist/cjs/generated/ns/requests.js.map +1 -1
  45. package/dist/cjs/generated/ns/routines.d.ts +22 -4
  46. package/dist/cjs/generated/ns/routines.js +22 -4
  47. package/dist/cjs/generated/ns/routines.js.map +1 -1
  48. package/dist/cjs/generated/ns/sandboxes.d.ts +431 -7
  49. package/dist/cjs/generated/ns/sandboxes.js +633 -6
  50. package/dist/cjs/generated/ns/sandboxes.js.map +1 -1
  51. package/dist/cjs/generated/ns/usage.d.ts +1 -1
  52. package/dist/cjs/generated/ns/usage.js +1 -1
  53. package/dist/cjs/generated/ns/vision.d.ts +113 -17
  54. package/dist/cjs/generated/ns/vision.js +152 -21
  55. package/dist/cjs/generated/ns/vision.js.map +1 -1
  56. package/dist/cjs/generated/ns/workspaces.d.ts +225 -0
  57. package/dist/cjs/generated/ns/workspaces.js +410 -0
  58. package/dist/cjs/generated/ns/workspaces.js.map +1 -0
  59. package/dist/cjs/generated/types.d.ts +5259 -605
  60. package/dist/cjs/helpers/sandboxes.d.ts +20 -1
  61. package/dist/cjs/helpers/sandboxes.js +13 -1
  62. package/dist/cjs/helpers/sandboxes.js.map +1 -1
  63. package/dist/esm/core/util.d.ts +1 -1
  64. package/dist/esm/core/util.js +1 -1
  65. package/dist/esm/generated/client.d.ts +18 -0
  66. package/dist/esm/generated/client.js +34 -0
  67. package/dist/esm/generated/client.js.map +1 -1
  68. package/dist/esm/generated/errors.d.ts +1 -1
  69. package/dist/esm/generated/errors.js +120 -0
  70. package/dist/esm/generated/errors.js.map +1 -1
  71. package/dist/esm/generated/ids.d.ts +89 -0
  72. package/dist/esm/generated/ids.js +22 -0
  73. package/dist/esm/generated/ids.js.map +1 -1
  74. package/dist/esm/generated/jobs.js +4 -0
  75. package/dist/esm/generated/jobs.js.map +1 -1
  76. package/dist/esm/generated/ns/actions.d.ts +267 -33
  77. package/dist/esm/generated/ns/actions.js +375 -33
  78. package/dist/esm/generated/ns/actions.js.map +1 -1
  79. package/dist/esm/generated/ns/agents.d.ts +656 -0
  80. package/dist/esm/generated/ns/agents.js +985 -0
  81. package/dist/esm/generated/ns/agents.js.map +1 -0
  82. package/dist/esm/generated/ns/images.d.ts +162 -0
  83. package/dist/esm/generated/ns/images.js +242 -0
  84. package/dist/esm/generated/ns/images.js.map +1 -0
  85. package/dist/esm/generated/ns/infer.d.ts +71 -3
  86. package/dist/esm/generated/ns/infer.js +98 -3
  87. package/dist/esm/generated/ns/infer.js.map +1 -1
  88. package/dist/esm/generated/ns/keys.d.ts +3 -1
  89. package/dist/esm/generated/ns/keys.js +3 -1
  90. package/dist/esm/generated/ns/keys.js.map +1 -1
  91. package/dist/esm/generated/ns/listeners.d.ts +163 -0
  92. package/dist/esm/generated/ns/listeners.js +264 -0
  93. package/dist/esm/generated/ns/listeners.js.map +1 -0
  94. package/dist/esm/generated/ns/orgs.d.ts +10 -0
  95. package/dist/esm/generated/ns/orgs.js +26 -1
  96. package/dist/esm/generated/ns/orgs.js.map +1 -1
  97. package/dist/esm/generated/ns/projects.d.ts +32 -0
  98. package/dist/esm/generated/ns/projects.js +66 -0
  99. package/dist/esm/generated/ns/projects.js.map +1 -1
  100. package/dist/esm/generated/ns/render.d.ts +192 -21
  101. package/dist/esm/generated/ns/render.js +267 -24
  102. package/dist/esm/generated/ns/render.js.map +1 -1
  103. package/dist/esm/generated/ns/requests.d.ts +3 -1
  104. package/dist/esm/generated/ns/requests.js +3 -1
  105. package/dist/esm/generated/ns/requests.js.map +1 -1
  106. package/dist/esm/generated/ns/routines.d.ts +22 -4
  107. package/dist/esm/generated/ns/routines.js +22 -4
  108. package/dist/esm/generated/ns/routines.js.map +1 -1
  109. package/dist/esm/generated/ns/sandboxes.d.ts +431 -7
  110. package/dist/esm/generated/ns/sandboxes.js +633 -6
  111. package/dist/esm/generated/ns/sandboxes.js.map +1 -1
  112. package/dist/esm/generated/ns/usage.d.ts +1 -1
  113. package/dist/esm/generated/ns/usage.js +1 -1
  114. package/dist/esm/generated/ns/vision.d.ts +113 -17
  115. package/dist/esm/generated/ns/vision.js +152 -21
  116. package/dist/esm/generated/ns/vision.js.map +1 -1
  117. package/dist/esm/generated/ns/workspaces.d.ts +225 -0
  118. package/dist/esm/generated/ns/workspaces.js +406 -0
  119. package/dist/esm/generated/ns/workspaces.js.map +1 -0
  120. package/dist/esm/generated/types.d.ts +5259 -605
  121. package/dist/esm/helpers/sandboxes.d.ts +20 -1
  122. package/dist/esm/helpers/sandboxes.js +13 -1
  123. package/dist/esm/helpers/sandboxes.js.map +1 -1
  124. package/package.json +1 -1
  125. package/src/core/util.ts +1 -1
  126. package/src/generated/client.ts +38 -0
  127. package/src/generated/errors.ts +240 -0
  128. package/src/generated/ids.ts +22 -0
  129. package/src/generated/jobs.ts +4 -0
  130. package/src/generated/ns/actions.ts +403 -33
  131. package/src/generated/ns/agents.ts +1102 -0
  132. package/src/generated/ns/images.ts +256 -0
  133. package/src/generated/ns/infer.ts +100 -3
  134. package/src/generated/ns/keys.ts +3 -1
  135. package/src/generated/ns/listeners.ts +300 -0
  136. package/src/generated/ns/orgs.ts +27 -1
  137. package/src/generated/ns/projects.ts +74 -0
  138. package/src/generated/ns/render.ts +277 -24
  139. package/src/generated/ns/requests.ts +3 -1
  140. package/src/generated/ns/routines.ts +22 -4
  141. package/src/generated/ns/sandboxes.ts +694 -7
  142. package/src/generated/ns/usage.ts +1 -1
  143. package/src/generated/ns/vision.ts +159 -21
  144. package/src/generated/ns/workspaces.ts +448 -0
  145. package/src/generated/types.ts +5684 -601
  146. package/src/helpers/sandboxes.ts +31 -2
@@ -42,6 +42,7 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
42
42
  upstream_too_large: [502, 0, "Upstream response too large"],
43
43
  too_many_redirects: [502, 0, "Too many redirects"],
44
44
  cap_invalid: [407, 0, "Egress capability invalid"],
45
+ lease_token_invalid: [407, 0, "Egress lease token invalid"],
45
46
  node_unavailable: [503, 1, "Node unavailable"],
46
47
  product_unavailable: [503, 1, "Product unavailable"],
47
48
  capacity_unavailable: [503, 1, "No capacity available"],
@@ -60,10 +61,22 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
60
61
  project_not_found: [404, 0, "Project not found"],
61
62
  org_not_found: [404, 0, "Organization not found"],
62
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"],
63
66
  project_not_empty: [409, 0, "Project not empty"],
64
67
  last_project: [409, 0, "Last project"],
65
68
  invite_code_invalid: [400, 0, "Invalid invite code"],
66
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"],
67
80
  email_code_invalid: [400, 0, "Invalid email code"],
68
81
  user_code_not_found: [404, 0, "Device code not found"],
69
82
  device_authorization_finished: [409, 0, "Device login already decided"],
@@ -77,10 +90,16 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
77
90
  turnstile_required: [400, 0, "Turnstile token required"],
78
91
  turnstile_failed: [403, 0, "Turnstile check failed"],
79
92
  turnstile_unavailable: [503, 1, "Turnstile unavailable"],
93
+ playground_limited: [429, 1, "Playground limit reached"],
80
94
  github_app_not_configured: [503, 0, "GitHub App not configured"],
81
95
  github_installation_not_found: [404, 0, "GitHub installation not found"],
82
96
  github_repository_not_accessible: [404, 0, "GitHub repository not accessible"],
83
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"],
84
103
  eval_run_not_found: [404, 0, "Eval run not found"],
85
104
  alert_destination_not_found: [404, 0, "Alert destination not found"],
86
105
  trace_not_found: [404, 0, "Trace not found"],
@@ -92,9 +111,14 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
92
111
  app_host_conflict: [409, 0, "Address label is fixed"],
93
112
  app_host_route_conflict: [409, 1, "Address switched by another call"],
94
113
  app_host_not_found: [404, 0, "Address not found"],
114
+ app_icon_not_found: [404, 0, "Application icon not found"],
95
115
  app_host_blocked: [403, 0, "Address blocked"],
96
116
  app_host_public_needs_spend_cap: [422, 0, "Public address needs a spend cap"],
97
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"],
98
122
  sandbox_routed: [409, 0, "Sandbox serves an address"],
99
123
  app_not_found: [404, 0, "No app at this address"],
100
124
  app_link_required: [401, 0, "App shared by link"],
@@ -102,6 +126,8 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
102
126
  app_not_running: [503, 1, "App not running"],
103
127
  app_blocked: [410, 0, "Address unavailable"],
104
128
  app_unavailable: [503, 1, "App unavailable"],
129
+ app_request_refused: [403, 0, "Request not served"],
130
+ trace_export_unset: [409, 0, "No trace export"],
105
131
  authorization_pending: [400, 1, "Authorization pending"],
106
132
  slow_down: [400, 1, "Slow down"],
107
133
  access_denied: [400, 0, "Access denied"],
@@ -112,6 +138,9 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
112
138
  session_not_found: [404, 0, "Browser session not found"],
113
139
  session_closed: [409, 0, "Browser session closed"],
114
140
  profile_not_found: [404, 0, "Browser profile not found"],
141
+ identity_not_found: [404, 0, "Stealth identity not found"],
142
+ identity_retired: [409, 0, "Stealth identity retired"],
143
+ stealth_exit_probe_failed: [502, 1, "Stealth exit probe failed"],
115
144
  profile_domain_mismatch: [422, 0, "Profile domain mismatch"],
116
145
  profile_conflict: [409, 0, "Profile changed since it was loaded"],
117
146
  profile_name_taken: [409, 0, "Profile name taken"],
@@ -120,6 +149,8 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
120
149
  batch_not_found: [404, 0, "Batch scrape not found"],
121
150
  robots_disallowed: [403, 0, "Disallowed by robots.txt"],
122
151
  content_type_unsupported: [422, 0, "Content type not supported"],
152
+ pdf_unreadable: [422, 0, "PDF could not be read"],
153
+ pdf_encrypted: [422, 0, "PDF is password-protected"],
123
154
  navigation_failed: [502, 1, "Navigation failed"],
124
155
  scrape_timeout: [504, 1, "Scrape timed out"],
125
156
  target_not_found: [422, 0, "Target not found"],
@@ -128,13 +159,19 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
128
159
  act_step_failed: [422, 0, "Browser action failed"],
129
160
  cdp_method_blocked: [403, 0, "CDP method not allowed"],
130
161
  extraction_failed: [502, 1, "Extraction failed"],
162
+ extract_fields_missing: [422, 0, "Extraction incomplete"],
131
163
  scrape_no_cached_data: [404, 0, "No cached copy"],
132
164
  scrape_lockdown_cache_miss: [404, 0, "Not in the cache (lockdown)"],
133
165
  search_unavailable: [503, 1, "Search unavailable"],
134
166
  search_failed: [502, 1, "Search failed"],
135
167
  search_answer_too_large: [413, 0, "Search answer too large"],
168
+ proxy_unreachable: [502, 1, "Proxy unreachable"],
169
+ proxy_auth_failed: [502, 0, "Proxy authentication failed"],
170
+ proxy_refused: [502, 0, "Proxy refused the request"],
171
+ proxy_not_allowed: [403, 0, "Not read from a residential address"],
136
172
  screenshot_not_found: [404, 0, "Screenshot not found"],
137
173
  video_not_found: [404, 0, "Video not found"],
174
+ video_not_ready: [409, 1, "Video not ready"],
138
175
  artifact_not_found: [404, 0, "Artifact not found"],
139
176
  artifact_expired: [410, 0, "Artifact expired"],
140
177
  capture_failed: [502, 1, "Capture failed"],
@@ -144,9 +181,24 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
144
181
  restyle_unavailable: [409, 0, "Restyle not available"],
145
182
  background_unavailable: [503, 1, "Background unavailable"],
146
183
  style_invalid: [422, 0, "Invalid style"],
184
+ alias_not_found: [404, 0, "Alias not found"],
185
+ share_not_found: [404, 0, "Share not found"],
186
+ share_blocked: [403, 0, "Share taken down"],
187
+ goal_unplanned: [422, 0, "Goal could not be planned"],
147
188
  sandbox_not_found: [404, 0, "Sandbox not found"],
148
189
  sandbox_not_running: [409, 0, "Sandbox not running"],
190
+ sandbox_restoring: [503, 1, "Sandbox restoring"],
191
+ lease_holder_changed: [409, 0, "Lease holder changed"],
149
192
  template_not_found: [404, 0, "Template not found"],
193
+ template_step_unsupported: [422, 0, "Template step not supported"],
194
+ memory_too_small: [422, 0, "Memory too small for this template"],
195
+ template_warmup_failed: [503, 1, "Template could not be prepared at this size"],
196
+ volume_not_found: [404, 0, "Volume not found"],
197
+ volume_name_taken: [409, 0, "Volume name taken"],
198
+ volume_in_use: [409, 1, "Volume in use"],
199
+ volume_attached: [409, 0, "Volume attached"],
200
+ volume_drive_missing: [409, 0, "Snapshot predates volumes"],
201
+ volume_unmountable: [409, 0, "Volume could not be mounted"],
150
202
  snapshot_not_found: [404, 0, "Snapshot not found"],
151
203
  snapshot_damaged: [409, 0, "Snapshot damaged"],
152
204
  file_not_found: [404, 0, "File not found"],
@@ -162,10 +214,55 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
162
214
  process_not_found: [404, 0, "Process not found"],
163
215
  kernel_unavailable: [409, 0, "Code kernel unavailable"],
164
216
  language_unsupported: [422, 0, "Language not supported"],
217
+ shell_unavailable: [422, 0, "Shell unavailable"],
165
218
  guest_unreachable: [502, 1, "Sandbox agent unreachable"],
166
219
  snapshot_failed: [500, 1, "Snapshot failed"],
167
220
  fork_unavailable: [409, 0, "Fork not available"],
221
+ swarm_not_found: [404, 0, "Swarm not found"],
222
+ computer_unavailable: [409, 0, "Computer use unavailable"],
223
+ desktop_unavailable: [503, 1, "Desktop unavailable"],
168
224
  envd_token_invalid: [401, 0, "envd access token invalid"],
225
+ image_not_found: [404, 0, "Image not found"],
226
+ image_not_ready: [409, 1, "Image not ready"],
227
+ image_in_use: [409, 0, "Image in use"],
228
+ image_context_not_found: [404, 0, "Build context not found"],
229
+ image_name_taken: [409, 0, "Image name taken"],
230
+ image_name_reserved: [422, 0, "Image name reserved"],
231
+ image_refused: [422, 0, "Image refused"],
232
+ image_auth_invalid: [422, 0, "Registry connection not usable"],
233
+ import_failed: [502, 1, "Import failed"],
234
+ agent_not_found: [404, 0, "Agent not found"],
235
+ agent_exists: [409, 0, "Agent exists"],
236
+ instance_not_found: [404, 0, "Instance not found"],
237
+ instance_key_invalid: [400, 0, "Instance key invalid"],
238
+ instance_busy: [429, 1, "Instance busy"],
239
+ instance_wake_failed: [503, 1, "Instance did not wake"],
240
+ instance_lost: [502, 0, "Instance lost"],
241
+ harness_error: [502, 0, "Harness error"],
242
+ session_timeout: [504, 0, "Session timed out"],
243
+ session_interrupted: [502, 0, "Session interrupted"],
244
+ agent_session_not_found: [404, 0, "Agent session not found"],
245
+ instance_self_message: [409, 0, "Instance messaged itself"],
246
+ credential_revoked: [403, 0, "Credential revoked"],
247
+ harness_required: [409, 0, "Harness required"],
248
+ harness_version_unavailable: [422, 0, "Harness version unavailable"],
249
+ harness_claude_plan_signin_disabled: [403, 0, "Claude plan sign-in not enabled"],
250
+ harness_signin_unsupported: [422, 0, "Sign-in not supported for this harness"],
251
+ harness_signin_not_personal: [409, 0, "Sign-in needs a personal agent"],
252
+ harness_personal_agent: [403, 0, "Personal agent"],
253
+ harness_plan_credential: [400, 0, "Plan credential refused"],
254
+ harness_profile_unknown: [400, 0, "Profile unknown"],
255
+ harness_profile_unavailable: [409, 0, "Profile unavailable"],
256
+ harness_capability_unsupported: [422, 0, "Not supported by this harness"],
257
+ harness_setup_needs_prepare: [422, 0, "Prepared snapshots not served yet"],
258
+ harness_setup_unpinned: [422, 0, "Source not pinned"],
259
+ harness_prepare_failed: [502, 0, "Harness prepare failed"],
260
+ no_turn_running: [409, 0, "No turn running"],
261
+ decision_not_found: [404, 0, "Decision not found"],
262
+ controller_active: [409, 1, "Terminal controlled elsewhere"],
263
+ grant_not_found: [404, 0, "Grant not found"],
264
+ grant_invalid: [401, 0, "Grant invalid"],
265
+ recording_not_found: [404, 0, "Recording not found"],
169
266
  routine_not_found: [404, 0, "Routine not found"],
170
267
  routine_version_not_found: [404, 0, "Routine version not found"],
171
268
  run_not_found: [404, 0, "Run not found"],
@@ -190,9 +287,30 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
190
287
  step_outcome_unknown: [409, 0, "Step outcome unknown"],
191
288
  internal_recovery_failed: [500, 0, "Recovery failed"],
192
289
  hook_attestation_unverifiable: [503, 1, "Webhook replay cannot be checked yet"],
290
+ listener_not_found: [404, 0, "Listener not found"],
291
+ listener_event_not_found: [404, 0, "Listener event not found"],
292
+ listener_invalid: [422, 0, "Listener invalid"],
293
+ listener_not_active: [409, 0, "Listener not active"],
294
+ listener_managed: [409, 0, "Listener belongs to a routine"],
295
+ listener_bound: [409, 0, "Listener sink held by a routine"],
296
+ listener_wrong_source: [409, 0, "Wrong source type"],
297
+ listener_backlog_full: [429, 1, "Listener backlog full"],
298
+ workspace_not_found: [404, 0, "Workspace not found"],
299
+ branch_not_found: [404, 0, "Branch not found"],
300
+ commit_not_found: [404, 0, "Commit not found"],
301
+ workspace_path_not_found: [404, 0, "Workspace path not found"],
302
+ workspace_invalid: [422, 0, "Workspace request invalid"],
303
+ branch_held: [409, 1, "Branch held"],
304
+ path_not_writable: [403, 0, "Path not writable"],
305
+ head_moved: [409, 0, "Head moved"],
306
+ merge_conflict: [409, 0, "Merge conflict"],
307
+ append_only_violation: [422, 0, "Append-only file changed"],
308
+ secret_in_commit: [422, 0, "Secret in commit"],
309
+ workspace_view_exceeds_initiator: [403, 0, "View exceeds initiator"],
193
310
  pack_not_found: [404, 0, "Pack not found"],
194
311
  pack_version_not_found: [404, 0, "Pack version not found"],
195
312
  action_not_found: [404, 0, "Action not found"],
313
+ action_not_allowed: [403, 0, "Action not allowed"],
196
314
  trigger_not_found: [404, 0, "Trigger not found"],
197
315
  trigger_subscription_not_found: [404, 0, "Trigger subscription not found"],
198
316
  action_ref_invalid: [400, 0, "Invalid action reference"],
@@ -206,8 +324,10 @@ export const ERROR_CATALOG: Readonly<Record<string, readonly [status: number, re
206
324
  tool_failed: [502, 0, "Hosted tool failed"],
207
325
  tool_timed_out: [504, 0, "Hosted tool timed out"],
208
326
  tool_unavailable: [503, 1, "Hosted tool unavailable"],
327
+ tool_blocked: [451, 0, "Tool removed"],
209
328
  connection_not_found: [404, 0, "Connection not found"],
210
329
  connection_invalid: [422, 0, "Invalid connection"],
330
+ connection_host_bound: [422, 0, "Connection is bound to hosts"],
211
331
  blob_not_found: [404, 0, "Stored object not found"],
212
332
  blob_too_large: [413, 0, "Stored object too large"],
213
333
  vault_unavailable: [503, 1, "Vault unavailable"],
@@ -259,6 +379,7 @@ export type B3OSServerErrorCode =
259
379
  | "upstream_too_large"
260
380
  | "too_many_redirects"
261
381
  | "cap_invalid"
382
+ | "lease_token_invalid"
262
383
  | "node_unavailable"
263
384
  | "product_unavailable"
264
385
  | "capacity_unavailable"
@@ -277,10 +398,22 @@ export type B3OSServerErrorCode =
277
398
  | "project_not_found"
278
399
  | "org_not_found"
279
400
  | "request_not_found"
401
+ | "llm_call_not_found"
402
+ | "invalid_option"
280
403
  | "project_not_empty"
281
404
  | "last_project"
282
405
  | "invite_code_invalid"
283
406
  | "invite_code_used"
407
+ | "member_not_found"
408
+ | "last_owner"
409
+ | "already_member"
410
+ | "org_invite_exists"
411
+ | "org_invite_not_found"
412
+ | "org_invite_invalid"
413
+ | "org_invite_expired"
414
+ | "org_invite_wrong_account"
415
+ | "org_invite_code_required"
416
+ | "org_invite_code_invalid"
284
417
  | "email_code_invalid"
285
418
  | "user_code_not_found"
286
419
  | "device_authorization_finished"
@@ -294,10 +427,16 @@ export type B3OSServerErrorCode =
294
427
  | "turnstile_required"
295
428
  | "turnstile_failed"
296
429
  | "turnstile_unavailable"
430
+ | "playground_limited"
297
431
  | "github_app_not_configured"
298
432
  | "github_installation_not_found"
299
433
  | "github_repository_not_accessible"
300
434
  | "repository_link_not_found"
435
+ | "github_write_not_permitted"
436
+ | "manifest_changed"
437
+ | "too_many_open_changes"
438
+ | "change_not_found"
439
+ | "change_not_mergeable"
301
440
  | "eval_run_not_found"
302
441
  | "alert_destination_not_found"
303
442
  | "trace_not_found"
@@ -309,9 +448,14 @@ export type B3OSServerErrorCode =
309
448
  | "app_host_conflict"
310
449
  | "app_host_route_conflict"
311
450
  | "app_host_not_found"
451
+ | "app_icon_not_found"
312
452
  | "app_host_blocked"
313
453
  | "app_host_public_needs_spend_cap"
314
454
  | "app_host_port_public"
455
+ | "app_domain_invalid"
456
+ | "app_domain_taken"
457
+ | "app_domain_not_found"
458
+ | "app_domain_unavailable"
315
459
  | "sandbox_routed"
316
460
  | "app_not_found"
317
461
  | "app_link_required"
@@ -319,6 +463,8 @@ export type B3OSServerErrorCode =
319
463
  | "app_not_running"
320
464
  | "app_blocked"
321
465
  | "app_unavailable"
466
+ | "app_request_refused"
467
+ | "trace_export_unset"
322
468
  | "authorization_pending"
323
469
  | "slow_down"
324
470
  | "access_denied"
@@ -329,6 +475,9 @@ export type B3OSServerErrorCode =
329
475
  | "session_not_found"
330
476
  | "session_closed"
331
477
  | "profile_not_found"
478
+ | "identity_not_found"
479
+ | "identity_retired"
480
+ | "stealth_exit_probe_failed"
332
481
  | "profile_domain_mismatch"
333
482
  | "profile_conflict"
334
483
  | "profile_name_taken"
@@ -337,6 +486,8 @@ export type B3OSServerErrorCode =
337
486
  | "batch_not_found"
338
487
  | "robots_disallowed"
339
488
  | "content_type_unsupported"
489
+ | "pdf_unreadable"
490
+ | "pdf_encrypted"
340
491
  | "navigation_failed"
341
492
  | "scrape_timeout"
342
493
  | "target_not_found"
@@ -345,13 +496,19 @@ export type B3OSServerErrorCode =
345
496
  | "act_step_failed"
346
497
  | "cdp_method_blocked"
347
498
  | "extraction_failed"
499
+ | "extract_fields_missing"
348
500
  | "scrape_no_cached_data"
349
501
  | "scrape_lockdown_cache_miss"
350
502
  | "search_unavailable"
351
503
  | "search_failed"
352
504
  | "search_answer_too_large"
505
+ | "proxy_unreachable"
506
+ | "proxy_auth_failed"
507
+ | "proxy_refused"
508
+ | "proxy_not_allowed"
353
509
  | "screenshot_not_found"
354
510
  | "video_not_found"
511
+ | "video_not_ready"
355
512
  | "artifact_not_found"
356
513
  | "artifact_expired"
357
514
  | "capture_failed"
@@ -361,9 +518,24 @@ export type B3OSServerErrorCode =
361
518
  | "restyle_unavailable"
362
519
  | "background_unavailable"
363
520
  | "style_invalid"
521
+ | "alias_not_found"
522
+ | "share_not_found"
523
+ | "share_blocked"
524
+ | "goal_unplanned"
364
525
  | "sandbox_not_found"
365
526
  | "sandbox_not_running"
527
+ | "sandbox_restoring"
528
+ | "lease_holder_changed"
366
529
  | "template_not_found"
530
+ | "template_step_unsupported"
531
+ | "memory_too_small"
532
+ | "template_warmup_failed"
533
+ | "volume_not_found"
534
+ | "volume_name_taken"
535
+ | "volume_in_use"
536
+ | "volume_attached"
537
+ | "volume_drive_missing"
538
+ | "volume_unmountable"
367
539
  | "snapshot_not_found"
368
540
  | "snapshot_damaged"
369
541
  | "file_not_found"
@@ -379,10 +551,55 @@ export type B3OSServerErrorCode =
379
551
  | "process_not_found"
380
552
  | "kernel_unavailable"
381
553
  | "language_unsupported"
554
+ | "shell_unavailable"
382
555
  | "guest_unreachable"
383
556
  | "snapshot_failed"
384
557
  | "fork_unavailable"
558
+ | "swarm_not_found"
559
+ | "computer_unavailable"
560
+ | "desktop_unavailable"
385
561
  | "envd_token_invalid"
562
+ | "image_not_found"
563
+ | "image_not_ready"
564
+ | "image_in_use"
565
+ | "image_context_not_found"
566
+ | "image_name_taken"
567
+ | "image_name_reserved"
568
+ | "image_refused"
569
+ | "image_auth_invalid"
570
+ | "import_failed"
571
+ | "agent_not_found"
572
+ | "agent_exists"
573
+ | "instance_not_found"
574
+ | "instance_key_invalid"
575
+ | "instance_busy"
576
+ | "instance_wake_failed"
577
+ | "instance_lost"
578
+ | "harness_error"
579
+ | "session_timeout"
580
+ | "session_interrupted"
581
+ | "agent_session_not_found"
582
+ | "instance_self_message"
583
+ | "credential_revoked"
584
+ | "harness_required"
585
+ | "harness_version_unavailable"
586
+ | "harness_claude_plan_signin_disabled"
587
+ | "harness_signin_unsupported"
588
+ | "harness_signin_not_personal"
589
+ | "harness_personal_agent"
590
+ | "harness_plan_credential"
591
+ | "harness_profile_unknown"
592
+ | "harness_profile_unavailable"
593
+ | "harness_capability_unsupported"
594
+ | "harness_setup_needs_prepare"
595
+ | "harness_setup_unpinned"
596
+ | "harness_prepare_failed"
597
+ | "no_turn_running"
598
+ | "decision_not_found"
599
+ | "controller_active"
600
+ | "grant_not_found"
601
+ | "grant_invalid"
602
+ | "recording_not_found"
386
603
  | "routine_not_found"
387
604
  | "routine_version_not_found"
388
605
  | "run_not_found"
@@ -407,9 +624,30 @@ export type B3OSServerErrorCode =
407
624
  | "step_outcome_unknown"
408
625
  | "internal_recovery_failed"
409
626
  | "hook_attestation_unverifiable"
627
+ | "listener_not_found"
628
+ | "listener_event_not_found"
629
+ | "listener_invalid"
630
+ | "listener_not_active"
631
+ | "listener_managed"
632
+ | "listener_bound"
633
+ | "listener_wrong_source"
634
+ | "listener_backlog_full"
635
+ | "workspace_not_found"
636
+ | "branch_not_found"
637
+ | "commit_not_found"
638
+ | "workspace_path_not_found"
639
+ | "workspace_invalid"
640
+ | "branch_held"
641
+ | "path_not_writable"
642
+ | "head_moved"
643
+ | "merge_conflict"
644
+ | "append_only_violation"
645
+ | "secret_in_commit"
646
+ | "workspace_view_exceeds_initiator"
410
647
  | "pack_not_found"
411
648
  | "pack_version_not_found"
412
649
  | "action_not_found"
650
+ | "action_not_allowed"
413
651
  | "trigger_not_found"
414
652
  | "trigger_subscription_not_found"
415
653
  | "action_ref_invalid"
@@ -423,8 +661,10 @@ export type B3OSServerErrorCode =
423
661
  | "tool_failed"
424
662
  | "tool_timed_out"
425
663
  | "tool_unavailable"
664
+ | "tool_blocked"
426
665
  | "connection_not_found"
427
666
  | "connection_invalid"
667
+ | "connection_host_bound"
428
668
  | "blob_not_found"
429
669
  | "blob_too_large"
430
670
  | "vault_unavailable"
@@ -12,15 +12,34 @@ 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
+ bld: { object: "template_build", product: "sandboxes" },
25
+ agt: { object: "agent", product: "agents" },
26
+ inst: { object: "agent_instance", product: "agents" },
27
+ ses: { object: "agent_session", product: "agents" },
28
+ grt: { object: "agent_grant", product: "agents" },
29
+ rec: { object: "terminal_recording", product: "agents" },
30
+ dec: { object: "harness_decision_request", product: "agents" },
18
31
  rtn: { object: "routine", product: "routines" },
19
32
  ver: { object: "routine_version", product: "routines" },
20
33
  run: { object: "routine_run", product: "routines" },
21
34
  hk: { object: "hook", product: "routines", secret: true },
22
35
  conn: { object: "connection", product: "vault" },
23
36
  tsub: { object: "trigger_subscription", product: "actions" },
37
+ lsn: { object: "listener", product: "listeners" },
38
+ ws: { object: "workspace", product: "workspaces" },
39
+ br: { object: "branch", product: "workspaces" },
40
+ cmt: { object: "commit", product: "workspaces" },
41
+ tfile: { object: "tool_file", product: "actions" },
42
+ tblk: { object: "tool_block", product: "actions" },
24
43
  clink: { object: "connect_link", product: "vault" },
25
44
  org: { object: "organization", product: "platform" },
26
45
  prj: { object: "project", product: "platform" },
@@ -34,6 +53,9 @@ export const ID_PREFIXES = {
34
53
  dep: { object: "deploy", product: "platform" },
35
54
  evr: { object: "eval_run", product: "platform" },
36
55
  alt: { object: "alert", product: "platform" },
56
+ chg: { object: "app_change", product: "platform" },
57
+ inv: { object: "org_invite", product: "platform" },
58
+ aud: { object: "audit_entry", product: "platform" },
37
59
  } as const;
38
60
 
39
61
  export type IdPrefix = keyof typeof ID_PREFIXES;
@@ -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