langsmith 0.7.8 → 0.7.9

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 (228) hide show
  1. package/README.md +161 -15
  2. package/dist/_openapi_client/client.cjs +814 -0
  3. package/dist/_openapi_client/client.d.ts +247 -0
  4. package/dist/_openapi_client/client.js +777 -0
  5. package/dist/_openapi_client/core/api-promise.cjs +100 -0
  6. package/dist/_openapi_client/core/api-promise.d.ts +45 -0
  7. package/dist/_openapi_client/core/api-promise.js +96 -0
  8. package/dist/_openapi_client/core/error.cjs +134 -0
  9. package/dist/_openapi_client/core/error.d.ts +45 -0
  10. package/dist/_openapi_client/core/error.js +118 -0
  11. package/dist/_openapi_client/core/pagination.cjs +374 -0
  12. package/dist/_openapi_client/core/pagination.d.ts +157 -0
  13. package/dist/_openapi_client/core/pagination.js +361 -0
  14. package/dist/_openapi_client/core/resource.cjs +17 -0
  15. package/dist/_openapi_client/core/resource.d.ts +5 -0
  16. package/dist/_openapi_client/core/resource.js +13 -0
  17. package/dist/_openapi_client/core/uploads.cjs +5 -0
  18. package/dist/_openapi_client/core/uploads.d.ts +2 -0
  19. package/dist/_openapi_client/core/uploads.js +1 -0
  20. package/dist/_openapi_client/index.cjs +29 -0
  21. package/dist/_openapi_client/index.d.ts +6 -0
  22. package/dist/_openapi_client/index.js +8 -0
  23. package/dist/_openapi_client/internal/builtin-types.cjs +4 -0
  24. package/dist/_openapi_client/internal/builtin-types.d.ts +72 -0
  25. package/dist/_openapi_client/internal/builtin-types.js +3 -0
  26. package/dist/_openapi_client/internal/detect-platform.cjs +162 -0
  27. package/dist/_openapi_client/internal/detect-platform.d.ts +14 -0
  28. package/dist/_openapi_client/internal/detect-platform.js +157 -0
  29. package/dist/_openapi_client/internal/errors.cjs +41 -0
  30. package/dist/_openapi_client/internal/errors.d.ts +2 -0
  31. package/dist/_openapi_client/internal/errors.js +36 -0
  32. package/dist/_openapi_client/internal/headers.cjs +79 -0
  33. package/dist/_openapi_client/internal/headers.d.ts +5 -0
  34. package/dist/_openapi_client/internal/headers.js +74 -0
  35. package/dist/_openapi_client/internal/parse.cjs +40 -0
  36. package/dist/_openapi_client/internal/parse.d.ts +11 -0
  37. package/dist/_openapi_client/internal/parse.js +37 -0
  38. package/dist/_openapi_client/internal/qs/formats.cjs +12 -0
  39. package/dist/_openapi_client/internal/qs/formats.d.ts +6 -0
  40. package/dist/_openapi_client/internal/qs/formats.js +8 -0
  41. package/dist/_openapi_client/internal/qs/stringify.cjs +277 -0
  42. package/dist/_openapi_client/internal/qs/stringify.d.ts +2 -0
  43. package/dist/_openapi_client/internal/qs/stringify.js +274 -0
  44. package/dist/_openapi_client/internal/qs/types.cjs +2 -0
  45. package/dist/_openapi_client/internal/qs/types.d.ts +56 -0
  46. package/dist/_openapi_client/internal/qs/types.js +1 -0
  47. package/dist/_openapi_client/internal/qs/utils.cjs +230 -0
  48. package/dist/_openapi_client/internal/qs/utils.d.ts +14 -0
  49. package/dist/_openapi_client/internal/qs/utils.js +217 -0
  50. package/dist/_openapi_client/internal/request-options.cjs +14 -0
  51. package/dist/_openapi_client/internal/request-options.d.ts +74 -0
  52. package/dist/_openapi_client/internal/request-options.js +10 -0
  53. package/dist/_openapi_client/internal/shim-types.cjs +4 -0
  54. package/dist/_openapi_client/internal/shim-types.d.ts +16 -0
  55. package/dist/_openapi_client/internal/shim-types.js +3 -0
  56. package/dist/_openapi_client/internal/shims.cjs +92 -0
  57. package/dist/_openapi_client/internal/shims.d.ts +25 -0
  58. package/dist/_openapi_client/internal/shims.js +85 -0
  59. package/dist/_openapi_client/internal/to-file.cjs +91 -0
  60. package/dist/_openapi_client/internal/to-file.d.ts +44 -0
  61. package/dist/_openapi_client/internal/to-file.js +88 -0
  62. package/dist/_openapi_client/internal/types.cjs +4 -0
  63. package/dist/_openapi_client/internal/types.d.ts +62 -0
  64. package/dist/_openapi_client/internal/types.js +3 -0
  65. package/dist/_openapi_client/internal/uploads.cjs +140 -0
  66. package/dist/_openapi_client/internal/uploads.d.ts +41 -0
  67. package/dist/_openapi_client/internal/uploads.js +130 -0
  68. package/dist/_openapi_client/internal/utils/env.cjs +22 -0
  69. package/dist/_openapi_client/internal/utils/env.d.ts +8 -0
  70. package/dist/_openapi_client/internal/utils/env.js +18 -0
  71. package/dist/_openapi_client/internal/utils/log.cjs +88 -0
  72. package/dist/_openapi_client/internal/utils/log.d.ts +36 -0
  73. package/dist/_openapi_client/internal/utils/log.js +82 -0
  74. package/dist/_openapi_client/internal/utils/path.cjs +79 -0
  75. package/dist/_openapi_client/internal/utils/path.d.ts +14 -0
  76. package/dist/_openapi_client/internal/utils/path.js +74 -0
  77. package/dist/_openapi_client/internal/utils/query.cjs +42 -0
  78. package/dist/_openapi_client/internal/utils/query.d.ts +1 -0
  79. package/dist/_openapi_client/internal/utils/query.js +6 -0
  80. package/dist/_openapi_client/internal/utils/sleep.cjs +7 -0
  81. package/dist/_openapi_client/internal/utils/sleep.d.ts +1 -0
  82. package/dist/_openapi_client/internal/utils/sleep.js +3 -0
  83. package/dist/_openapi_client/internal/utils/uuid.cjs +19 -0
  84. package/dist/_openapi_client/internal/utils/uuid.d.ts +4 -0
  85. package/dist/_openapi_client/internal/utils/uuid.js +15 -0
  86. package/dist/_openapi_client/internal/utils/values.cjs +112 -0
  87. package/dist/_openapi_client/internal/utils/values.d.ts +17 -0
  88. package/dist/_openapi_client/internal/utils/values.js +94 -0
  89. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.cjs +138 -0
  90. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.d.ts +367 -0
  91. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.js +101 -0
  92. package/dist/_openapi_client/resources/annotation-queues/runs.cjs +46 -0
  93. package/dist/_openapi_client/resources/annotation-queues/runs.d.ts +128 -0
  94. package/dist/_openapi_client/resources/annotation-queues/runs.js +42 -0
  95. package/dist/_openapi_client/resources/commits.cjs +44 -0
  96. package/dist/_openapi_client/resources/commits.d.ts +204 -0
  97. package/dist/_openapi_client/resources/commits.js +40 -0
  98. package/dist/_openapi_client/resources/datasets/comparative.cjs +22 -0
  99. package/dist/_openapi_client/resources/datasets/comparative.d.ts +55 -0
  100. package/dist/_openapi_client/resources/datasets/comparative.js +18 -0
  101. package/dist/_openapi_client/resources/datasets/datasets.cjs +193 -0
  102. package/dist/_openapi_client/resources/datasets/datasets.d.ts +374 -0
  103. package/dist/_openapi_client/resources/datasets/datasets.js +156 -0
  104. package/dist/_openapi_client/resources/datasets/experiments.cjs +16 -0
  105. package/dist/_openapi_client/resources/datasets/experiments.d.ts +23 -0
  106. package/dist/_openapi_client/resources/datasets/experiments.js +12 -0
  107. package/dist/_openapi_client/resources/datasets/group.cjs +17 -0
  108. package/dist/_openapi_client/resources/datasets/group.d.ts +160 -0
  109. package/dist/_openapi_client/resources/datasets/group.js +13 -0
  110. package/dist/_openapi_client/resources/datasets/runs.cjs +29 -0
  111. package/dist/_openapi_client/resources/datasets/runs.d.ts +216 -0
  112. package/dist/_openapi_client/resources/datasets/runs.js +25 -0
  113. package/dist/_openapi_client/resources/datasets/share.cjs +32 -0
  114. package/dist/_openapi_client/resources/datasets/share.d.ts +28 -0
  115. package/dist/_openapi_client/resources/datasets/share.js +28 -0
  116. package/dist/_openapi_client/resources/datasets/splits.cjs +22 -0
  117. package/dist/_openapi_client/resources/datasets/splits.d.ts +30 -0
  118. package/dist/_openapi_client/resources/datasets/splits.js +18 -0
  119. package/dist/_openapi_client/resources/datasets/versions.cjs +23 -0
  120. package/dist/_openapi_client/resources/datasets/versions.d.ts +36 -0
  121. package/dist/_openapi_client/resources/datasets/versions.js +19 -0
  122. package/dist/_openapi_client/resources/evaluators.cjs +15 -0
  123. package/dist/_openapi_client/resources/evaluators.d.ts +125 -0
  124. package/dist/_openapi_client/resources/evaluators.js +11 -0
  125. package/dist/_openapi_client/resources/examples/bulk.cjs +24 -0
  126. package/dist/_openapi_client/resources/examples/bulk.d.ts +78 -0
  127. package/dist/_openapi_client/resources/examples/bulk.js +20 -0
  128. package/dist/_openapi_client/resources/examples/examples.cjs +124 -0
  129. package/dist/_openapi_client/resources/examples/examples.d.ts +182 -0
  130. package/dist/_openapi_client/resources/examples/examples.js +87 -0
  131. package/dist/_openapi_client/resources/examples/validate.cjs +21 -0
  132. package/dist/_openapi_client/resources/examples/validate.d.ts +38 -0
  133. package/dist/_openapi_client/resources/examples/validate.js +17 -0
  134. package/dist/_openapi_client/resources/feedback/configs.cjs +24 -0
  135. package/dist/_openapi_client/resources/feedback/configs.d.ts +18 -0
  136. package/dist/_openapi_client/resources/feedback/configs.js +20 -0
  137. package/dist/_openapi_client/resources/feedback/feedback.cjs +98 -0
  138. package/dist/_openapi_client/resources/feedback/feedback.d.ts +275 -0
  139. package/dist/_openapi_client/resources/feedback/feedback.js +61 -0
  140. package/dist/_openapi_client/resources/feedback/tokens.cjs +35 -0
  141. package/dist/_openapi_client/resources/feedback/tokens.d.ts +130 -0
  142. package/dist/_openapi_client/resources/feedback/tokens.js +31 -0
  143. package/dist/_openapi_client/resources/index.cjs +35 -0
  144. package/dist/_openapi_client/resources/index.d.ts +15 -0
  145. package/dist/_openapi_client/resources/index.js +17 -0
  146. package/dist/_openapi_client/resources/info.cjs +15 -0
  147. package/dist/_openapi_client/resources/info.d.ts +51 -0
  148. package/dist/_openapi_client/resources/info.js +11 -0
  149. package/dist/_openapi_client/resources/online-evaluators.cjs +70 -0
  150. package/dist/_openapi_client/resources/online-evaluators.d.ts +284 -0
  151. package/dist/_openapi_client/resources/online-evaluators.js +66 -0
  152. package/dist/_openapi_client/resources/public/datasets.cjs +47 -0
  153. package/dist/_openapi_client/resources/public/datasets.d.ts +152 -0
  154. package/dist/_openapi_client/resources/public/datasets.js +43 -0
  155. package/dist/_openapi_client/resources/public/public.cjs +62 -0
  156. package/dist/_openapi_client/resources/public/public.d.ts +32 -0
  157. package/dist/_openapi_client/resources/public/public.js +25 -0
  158. package/dist/_openapi_client/resources/repos/directories.cjs +40 -0
  159. package/dist/_openapi_client/resources/repos/directories.d.ts +72 -0
  160. package/dist/_openapi_client/resources/repos/directories.js +36 -0
  161. package/dist/_openapi_client/resources/repos/repos.cjs +93 -0
  162. package/dist/_openapi_client/resources/repos/repos.d.ts +188 -0
  163. package/dist/_openapi_client/resources/repos/repos.js +56 -0
  164. package/dist/_openapi_client/resources/runs/rules.cjs +9 -0
  165. package/dist/_openapi_client/resources/runs/rules.d.ts +3 -0
  166. package/dist/_openapi_client/resources/runs/rules.js +5 -0
  167. package/dist/_openapi_client/resources/runs/runs.cjs +102 -0
  168. package/dist/_openapi_client/resources/runs/runs.d.ts +542 -0
  169. package/dist/_openapi_client/resources/runs/runs.js +65 -0
  170. package/dist/_openapi_client/resources/sandboxes/boxes.cjs +86 -0
  171. package/dist/_openapi_client/resources/sandboxes/boxes.d.ts +1121 -0
  172. package/dist/_openapi_client/resources/sandboxes/boxes.js +82 -0
  173. package/dist/_openapi_client/resources/sandboxes/sandboxes.cjs +63 -0
  174. package/dist/_openapi_client/resources/sandboxes/sandboxes.d.ts +13 -0
  175. package/dist/_openapi_client/resources/sandboxes/sandboxes.js +26 -0
  176. package/dist/_openapi_client/resources/sandboxes/snapshots.cjs +39 -0
  177. package/dist/_openapi_client/resources/sandboxes/snapshots.d.ts +130 -0
  178. package/dist/_openapi_client/resources/sandboxes/snapshots.js +35 -0
  179. package/dist/_openapi_client/resources/sessions/insights.cjs +54 -0
  180. package/dist/_openapi_client/resources/sessions/insights.d.ts +246 -0
  181. package/dist/_openapi_client/resources/sessions/insights.js +50 -0
  182. package/dist/_openapi_client/resources/sessions/sessions.cjs +109 -0
  183. package/dist/_openapi_client/resources/sessions/sessions.d.ts +674 -0
  184. package/dist/_openapi_client/resources/sessions/sessions.js +72 -0
  185. package/dist/_openapi_client/resources/settings.cjs +15 -0
  186. package/dist/_openapi_client/resources/settings.d.ts +18 -0
  187. package/dist/_openapi_client/resources/settings.js +11 -0
  188. package/dist/_openapi_client/resources/workspaces.cjs +35 -0
  189. package/dist/_openapi_client/resources/workspaces.d.ts +84 -0
  190. package/dist/_openapi_client/resources/workspaces.js +31 -0
  191. package/dist/_openapi_client/version.cjs +5 -0
  192. package/dist/_openapi_client/version.d.ts +1 -0
  193. package/dist/_openapi_client/version.js +2 -0
  194. package/dist/client.cjs +48 -19
  195. package/dist/client.d.ts +5 -0
  196. package/dist/client.js +29 -0
  197. package/dist/env.cjs +3 -3
  198. package/dist/env.d.ts +1 -1
  199. package/dist/env.js +1 -1
  200. package/dist/experimental/otel/exporter.cjs +1 -1
  201. package/dist/experimental/otel/exporter.js +2 -2
  202. package/dist/experimental/vercel/telemetry.cjs +1 -1
  203. package/dist/experimental/vercel/telemetry.js +2 -2
  204. package/dist/index.cjs +4 -2
  205. package/dist/index.d.ts +2 -1
  206. package/dist/index.js +2 -1
  207. package/dist/run_trees.cjs +1 -1
  208. package/dist/run_trees.js +2 -2
  209. package/dist/sandbox/client.cjs +11 -3
  210. package/dist/sandbox/client.js +11 -3
  211. package/dist/sandbox/index.cjs +8 -2
  212. package/dist/sandbox/index.d.ts +3 -2
  213. package/dist/sandbox/index.js +2 -1
  214. package/dist/sandbox/mounts.cjs +114 -0
  215. package/dist/sandbox/mounts.d.ts +24 -0
  216. package/dist/sandbox/mounts.js +109 -0
  217. package/dist/sandbox/proxy_config.cjs +90 -5
  218. package/dist/sandbox/proxy_config.d.ts +19 -4
  219. package/dist/sandbox/proxy_config.js +86 -4
  220. package/dist/sandbox/types.d.ts +92 -3
  221. package/dist/traceable.cjs +1 -1
  222. package/dist/traceable.js +2 -2
  223. package/dist/utils/guard.cjs +13 -0
  224. package/dist/utils/guard.d.ts +6 -0
  225. package/dist/utils/guard.js +10 -0
  226. package/dist/utils/jestlike/globals.cjs +1 -1
  227. package/dist/utils/jestlike/globals.js +2 -2
  228. package/package.json +1 -1
@@ -0,0 +1,1121 @@
1
+ import { APIResource } from '../../core/resource.js';
2
+ import { APIPromise } from '../../core/api-promise.js';
3
+ import { RequestOptions } from '../../internal/request-options.js';
4
+ export declare class Boxes extends APIResource {
5
+ /**
6
+ * Create a new sandbox from a snapshot. Provide at most one of `snapshot_id` or
7
+ * `snapshot_name`; if neither is provided, the server uses the default static
8
+ * blueprint.
9
+ */
10
+ create(body: BoxCreateParams, options?: RequestOptions): APIPromise<BoxCreateResponse>;
11
+ /**
12
+ * Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.
13
+ */
14
+ retrieve(name: string, options?: RequestOptions): APIPromise<BoxRetrieveResponse>;
15
+ /**
16
+ * Update a sandbox's display name. The name must be unique within the tenant.
17
+ */
18
+ update(name: string, body: BoxUpdateParams, options?: RequestOptions): APIPromise<BoxUpdateResponse>;
19
+ /**
20
+ * List sandboxes for the authenticated tenant, with optional filtering, sorting,
21
+ * and pagination.
22
+ */
23
+ list(query?: BoxListParams | null | undefined, options?: RequestOptions): APIPromise<BoxListResponse>;
24
+ /**
25
+ * Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the
26
+ * DB record.
27
+ */
28
+ delete(name: string, options?: RequestOptions): APIPromise<void>;
29
+ /**
30
+ * Create a snapshot by capturing the current state of a sandbox or promoting an
31
+ * existing checkpoint.
32
+ */
33
+ createSnapshot(name: string, body: BoxCreateSnapshotParams, options?: RequestOptions): APIPromise<BoxCreateSnapshotResponse>;
34
+ /**
35
+ * Create a short-lived JWT for accessing an HTTP service running on a specific
36
+ * port inside a sandbox. Returns a browser_url (sets auth cookie via redirect), a
37
+ * service_url (for use with the X-Langsmith-Sandbox-Service-Token header), the raw
38
+ * token, and its expiry.
39
+ */
40
+ generateServiceURL(name: string, body: BoxGenerateServiceURLParams, options?: RequestOptions): APIPromise<BoxGenerateServiceURLResponse>;
41
+ /**
42
+ * Retrieve the lightweight status of a sandbox for polling.
43
+ */
44
+ getStatus(name: string, options?: RequestOptions): APIPromise<BoxGetStatusResponse>;
45
+ /**
46
+ * Start a stopped or failed sandbox. This endpoint is not idempotent.
47
+ */
48
+ start(name: string, options?: RequestOptions): APIPromise<BoxStartResponse>;
49
+ /**
50
+ * Stop a ready sandbox. This endpoint is not idempotent; the filesystem is
51
+ * preserved for later restart.
52
+ */
53
+ stop(name: string, options?: RequestOptions): APIPromise<void>;
54
+ }
55
+ export interface BoxCreateResponse {
56
+ id?: string;
57
+ created_at?: string;
58
+ created_by?: string;
59
+ dataplane_url?: string;
60
+ delete_after_stop_seconds?: number;
61
+ fs_capacity_bytes?: number;
62
+ idle_ttl_seconds?: number;
63
+ mem_bytes?: number;
64
+ mounts?: Array<BoxCreateResponse.SandboxapiS3BucketMountSpec | BoxCreateResponse.SandboxapiGcsBucketMountSpec>;
65
+ name?: string;
66
+ proxy_config?: BoxCreateResponse.ProxyConfig;
67
+ size_class?: string;
68
+ snapshot_id?: string;
69
+ status?: string;
70
+ status_message?: string;
71
+ stopped_at?: string;
72
+ updated_at?: string;
73
+ updated_by?: string;
74
+ vcpus?: number;
75
+ }
76
+ export declare namespace BoxCreateResponse {
77
+ interface SandboxapiS3BucketMountSpec {
78
+ id: string;
79
+ mount_path: string;
80
+ s3: SandboxapiS3BucketMountSpec.S3;
81
+ type: 's3' | 'gcs';
82
+ cache?: SandboxapiS3BucketMountSpec.Cache;
83
+ gcs?: SandboxapiS3BucketMountSpec.Gcs;
84
+ read_only?: boolean;
85
+ }
86
+ namespace SandboxapiS3BucketMountSpec {
87
+ interface S3 {
88
+ bucket: string;
89
+ endpoint_url: string;
90
+ region: string;
91
+ path_style?: boolean;
92
+ prefix?: string;
93
+ }
94
+ interface Cache {
95
+ max_size_bytes?: number;
96
+ writeback_seconds?: number;
97
+ }
98
+ interface Gcs {
99
+ bucket: string;
100
+ prefix?: string;
101
+ }
102
+ }
103
+ interface SandboxapiGcsBucketMountSpec {
104
+ id: string;
105
+ gcs: SandboxapiGcsBucketMountSpec.Gcs;
106
+ mount_path: string;
107
+ type: 's3' | 'gcs';
108
+ cache?: SandboxapiGcsBucketMountSpec.Cache;
109
+ read_only?: boolean;
110
+ s3?: SandboxapiGcsBucketMountSpec.S3;
111
+ }
112
+ namespace SandboxapiGcsBucketMountSpec {
113
+ interface Gcs {
114
+ bucket: string;
115
+ prefix?: string;
116
+ }
117
+ interface Cache {
118
+ max_size_bytes?: number;
119
+ writeback_seconds?: number;
120
+ }
121
+ interface S3 {
122
+ bucket: string;
123
+ endpoint_url: string;
124
+ region: string;
125
+ path_style?: boolean;
126
+ prefix?: string;
127
+ }
128
+ }
129
+ interface ProxyConfig {
130
+ access_control?: ProxyConfig.AccessControl;
131
+ callbacks?: Array<ProxyConfig.Callback>;
132
+ no_proxy?: Array<string>;
133
+ rules?: Array<ProxyConfig.Rule>;
134
+ }
135
+ namespace ProxyConfig {
136
+ interface AccessControl {
137
+ allow_list?: Array<string>;
138
+ deny_list?: Array<string>;
139
+ }
140
+ interface Callback {
141
+ match_hosts: Array<string>;
142
+ ttl_seconds: number;
143
+ url: string;
144
+ full_request?: boolean;
145
+ request_headers?: Array<Callback.RequestHeader>;
146
+ }
147
+ namespace Callback {
148
+ interface RequestHeader {
149
+ name: string;
150
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
151
+ is_set?: boolean;
152
+ value?: string;
153
+ }
154
+ }
155
+ interface Rule {
156
+ name: string;
157
+ aws?: Rule.Aws;
158
+ enabled?: boolean;
159
+ gcp?: Rule.Gcp;
160
+ headers?: Array<Rule.Header>;
161
+ match_hosts?: Array<string>;
162
+ match_paths?: Array<string>;
163
+ type?: string;
164
+ }
165
+ namespace Rule {
166
+ interface Aws {
167
+ access_key_id: Aws.AccessKeyID;
168
+ secret_access_key: Aws.SecretAccessKey;
169
+ }
170
+ namespace Aws {
171
+ interface AccessKeyID {
172
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
173
+ is_set?: boolean;
174
+ value?: string;
175
+ }
176
+ interface SecretAccessKey {
177
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
178
+ is_set?: boolean;
179
+ value?: string;
180
+ }
181
+ }
182
+ interface Gcp {
183
+ scopes: Array<string>;
184
+ service_account_json: Gcp.ServiceAccountJson;
185
+ }
186
+ namespace Gcp {
187
+ interface ServiceAccountJson {
188
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
189
+ is_set?: boolean;
190
+ value?: string;
191
+ }
192
+ }
193
+ interface Header {
194
+ name: string;
195
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
196
+ is_set?: boolean;
197
+ value?: string;
198
+ }
199
+ }
200
+ }
201
+ }
202
+ export interface BoxRetrieveResponse {
203
+ id?: string;
204
+ created_at?: string;
205
+ created_by?: string;
206
+ dataplane_url?: string;
207
+ delete_after_stop_seconds?: number;
208
+ fs_capacity_bytes?: number;
209
+ idle_ttl_seconds?: number;
210
+ mem_bytes?: number;
211
+ mounts?: Array<BoxRetrieveResponse.SandboxapiS3BucketMountSpec | BoxRetrieveResponse.SandboxapiGcsBucketMountSpec>;
212
+ name?: string;
213
+ proxy_config?: BoxRetrieveResponse.ProxyConfig;
214
+ size_class?: string;
215
+ snapshot_id?: string;
216
+ status?: string;
217
+ status_message?: string;
218
+ stopped_at?: string;
219
+ updated_at?: string;
220
+ updated_by?: string;
221
+ vcpus?: number;
222
+ }
223
+ export declare namespace BoxRetrieveResponse {
224
+ interface SandboxapiS3BucketMountSpec {
225
+ id: string;
226
+ mount_path: string;
227
+ s3: SandboxapiS3BucketMountSpec.S3;
228
+ type: 's3' | 'gcs';
229
+ cache?: SandboxapiS3BucketMountSpec.Cache;
230
+ gcs?: SandboxapiS3BucketMountSpec.Gcs;
231
+ read_only?: boolean;
232
+ }
233
+ namespace SandboxapiS3BucketMountSpec {
234
+ interface S3 {
235
+ bucket: string;
236
+ endpoint_url: string;
237
+ region: string;
238
+ path_style?: boolean;
239
+ prefix?: string;
240
+ }
241
+ interface Cache {
242
+ max_size_bytes?: number;
243
+ writeback_seconds?: number;
244
+ }
245
+ interface Gcs {
246
+ bucket: string;
247
+ prefix?: string;
248
+ }
249
+ }
250
+ interface SandboxapiGcsBucketMountSpec {
251
+ id: string;
252
+ gcs: SandboxapiGcsBucketMountSpec.Gcs;
253
+ mount_path: string;
254
+ type: 's3' | 'gcs';
255
+ cache?: SandboxapiGcsBucketMountSpec.Cache;
256
+ read_only?: boolean;
257
+ s3?: SandboxapiGcsBucketMountSpec.S3;
258
+ }
259
+ namespace SandboxapiGcsBucketMountSpec {
260
+ interface Gcs {
261
+ bucket: string;
262
+ prefix?: string;
263
+ }
264
+ interface Cache {
265
+ max_size_bytes?: number;
266
+ writeback_seconds?: number;
267
+ }
268
+ interface S3 {
269
+ bucket: string;
270
+ endpoint_url: string;
271
+ region: string;
272
+ path_style?: boolean;
273
+ prefix?: string;
274
+ }
275
+ }
276
+ interface ProxyConfig {
277
+ access_control?: ProxyConfig.AccessControl;
278
+ callbacks?: Array<ProxyConfig.Callback>;
279
+ no_proxy?: Array<string>;
280
+ rules?: Array<ProxyConfig.Rule>;
281
+ }
282
+ namespace ProxyConfig {
283
+ interface AccessControl {
284
+ allow_list?: Array<string>;
285
+ deny_list?: Array<string>;
286
+ }
287
+ interface Callback {
288
+ match_hosts: Array<string>;
289
+ ttl_seconds: number;
290
+ url: string;
291
+ full_request?: boolean;
292
+ request_headers?: Array<Callback.RequestHeader>;
293
+ }
294
+ namespace Callback {
295
+ interface RequestHeader {
296
+ name: string;
297
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
298
+ is_set?: boolean;
299
+ value?: string;
300
+ }
301
+ }
302
+ interface Rule {
303
+ name: string;
304
+ aws?: Rule.Aws;
305
+ enabled?: boolean;
306
+ gcp?: Rule.Gcp;
307
+ headers?: Array<Rule.Header>;
308
+ match_hosts?: Array<string>;
309
+ match_paths?: Array<string>;
310
+ type?: string;
311
+ }
312
+ namespace Rule {
313
+ interface Aws {
314
+ access_key_id: Aws.AccessKeyID;
315
+ secret_access_key: Aws.SecretAccessKey;
316
+ }
317
+ namespace Aws {
318
+ interface AccessKeyID {
319
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
320
+ is_set?: boolean;
321
+ value?: string;
322
+ }
323
+ interface SecretAccessKey {
324
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
325
+ is_set?: boolean;
326
+ value?: string;
327
+ }
328
+ }
329
+ interface Gcp {
330
+ scopes: Array<string>;
331
+ service_account_json: Gcp.ServiceAccountJson;
332
+ }
333
+ namespace Gcp {
334
+ interface ServiceAccountJson {
335
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
336
+ is_set?: boolean;
337
+ value?: string;
338
+ }
339
+ }
340
+ interface Header {
341
+ name: string;
342
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
343
+ is_set?: boolean;
344
+ value?: string;
345
+ }
346
+ }
347
+ }
348
+ }
349
+ export interface BoxUpdateResponse {
350
+ id?: string;
351
+ created_at?: string;
352
+ created_by?: string;
353
+ dataplane_url?: string;
354
+ delete_after_stop_seconds?: number;
355
+ fs_capacity_bytes?: number;
356
+ idle_ttl_seconds?: number;
357
+ mem_bytes?: number;
358
+ mounts?: Array<BoxUpdateResponse.SandboxapiS3BucketMountSpec | BoxUpdateResponse.SandboxapiGcsBucketMountSpec>;
359
+ name?: string;
360
+ proxy_config?: BoxUpdateResponse.ProxyConfig;
361
+ size_class?: string;
362
+ snapshot_id?: string;
363
+ status?: string;
364
+ status_message?: string;
365
+ stopped_at?: string;
366
+ updated_at?: string;
367
+ updated_by?: string;
368
+ vcpus?: number;
369
+ }
370
+ export declare namespace BoxUpdateResponse {
371
+ interface SandboxapiS3BucketMountSpec {
372
+ id: string;
373
+ mount_path: string;
374
+ s3: SandboxapiS3BucketMountSpec.S3;
375
+ type: 's3' | 'gcs';
376
+ cache?: SandboxapiS3BucketMountSpec.Cache;
377
+ gcs?: SandboxapiS3BucketMountSpec.Gcs;
378
+ read_only?: boolean;
379
+ }
380
+ namespace SandboxapiS3BucketMountSpec {
381
+ interface S3 {
382
+ bucket: string;
383
+ endpoint_url: string;
384
+ region: string;
385
+ path_style?: boolean;
386
+ prefix?: string;
387
+ }
388
+ interface Cache {
389
+ max_size_bytes?: number;
390
+ writeback_seconds?: number;
391
+ }
392
+ interface Gcs {
393
+ bucket: string;
394
+ prefix?: string;
395
+ }
396
+ }
397
+ interface SandboxapiGcsBucketMountSpec {
398
+ id: string;
399
+ gcs: SandboxapiGcsBucketMountSpec.Gcs;
400
+ mount_path: string;
401
+ type: 's3' | 'gcs';
402
+ cache?: SandboxapiGcsBucketMountSpec.Cache;
403
+ read_only?: boolean;
404
+ s3?: SandboxapiGcsBucketMountSpec.S3;
405
+ }
406
+ namespace SandboxapiGcsBucketMountSpec {
407
+ interface Gcs {
408
+ bucket: string;
409
+ prefix?: string;
410
+ }
411
+ interface Cache {
412
+ max_size_bytes?: number;
413
+ writeback_seconds?: number;
414
+ }
415
+ interface S3 {
416
+ bucket: string;
417
+ endpoint_url: string;
418
+ region: string;
419
+ path_style?: boolean;
420
+ prefix?: string;
421
+ }
422
+ }
423
+ interface ProxyConfig {
424
+ access_control?: ProxyConfig.AccessControl;
425
+ callbacks?: Array<ProxyConfig.Callback>;
426
+ no_proxy?: Array<string>;
427
+ rules?: Array<ProxyConfig.Rule>;
428
+ }
429
+ namespace ProxyConfig {
430
+ interface AccessControl {
431
+ allow_list?: Array<string>;
432
+ deny_list?: Array<string>;
433
+ }
434
+ interface Callback {
435
+ match_hosts: Array<string>;
436
+ ttl_seconds: number;
437
+ url: string;
438
+ full_request?: boolean;
439
+ request_headers?: Array<Callback.RequestHeader>;
440
+ }
441
+ namespace Callback {
442
+ interface RequestHeader {
443
+ name: string;
444
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
445
+ is_set?: boolean;
446
+ value?: string;
447
+ }
448
+ }
449
+ interface Rule {
450
+ name: string;
451
+ aws?: Rule.Aws;
452
+ enabled?: boolean;
453
+ gcp?: Rule.Gcp;
454
+ headers?: Array<Rule.Header>;
455
+ match_hosts?: Array<string>;
456
+ match_paths?: Array<string>;
457
+ type?: string;
458
+ }
459
+ namespace Rule {
460
+ interface Aws {
461
+ access_key_id: Aws.AccessKeyID;
462
+ secret_access_key: Aws.SecretAccessKey;
463
+ }
464
+ namespace Aws {
465
+ interface AccessKeyID {
466
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
467
+ is_set?: boolean;
468
+ value?: string;
469
+ }
470
+ interface SecretAccessKey {
471
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
472
+ is_set?: boolean;
473
+ value?: string;
474
+ }
475
+ }
476
+ interface Gcp {
477
+ scopes: Array<string>;
478
+ service_account_json: Gcp.ServiceAccountJson;
479
+ }
480
+ namespace Gcp {
481
+ interface ServiceAccountJson {
482
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
483
+ is_set?: boolean;
484
+ value?: string;
485
+ }
486
+ }
487
+ interface Header {
488
+ name: string;
489
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
490
+ is_set?: boolean;
491
+ value?: string;
492
+ }
493
+ }
494
+ }
495
+ }
496
+ export interface BoxListResponse {
497
+ offset?: number;
498
+ sandboxes?: Array<BoxListResponse.Sandbox>;
499
+ }
500
+ export declare namespace BoxListResponse {
501
+ interface Sandbox {
502
+ id?: string;
503
+ created_at?: string;
504
+ created_by?: string;
505
+ dataplane_url?: string;
506
+ delete_after_stop_seconds?: number;
507
+ fs_capacity_bytes?: number;
508
+ idle_ttl_seconds?: number;
509
+ mem_bytes?: number;
510
+ mounts?: Array<Sandbox.SandboxapiS3BucketMountSpec | Sandbox.SandboxapiGcsBucketMountSpec>;
511
+ name?: string;
512
+ proxy_config?: Sandbox.ProxyConfig;
513
+ size_class?: string;
514
+ snapshot_id?: string;
515
+ status?: string;
516
+ status_message?: string;
517
+ stopped_at?: string;
518
+ updated_at?: string;
519
+ updated_by?: string;
520
+ vcpus?: number;
521
+ }
522
+ namespace Sandbox {
523
+ interface SandboxapiS3BucketMountSpec {
524
+ id: string;
525
+ mount_path: string;
526
+ s3: SandboxapiS3BucketMountSpec.S3;
527
+ type: 's3' | 'gcs';
528
+ cache?: SandboxapiS3BucketMountSpec.Cache;
529
+ gcs?: SandboxapiS3BucketMountSpec.Gcs;
530
+ read_only?: boolean;
531
+ }
532
+ namespace SandboxapiS3BucketMountSpec {
533
+ interface S3 {
534
+ bucket: string;
535
+ endpoint_url: string;
536
+ region: string;
537
+ path_style?: boolean;
538
+ prefix?: string;
539
+ }
540
+ interface Cache {
541
+ max_size_bytes?: number;
542
+ writeback_seconds?: number;
543
+ }
544
+ interface Gcs {
545
+ bucket: string;
546
+ prefix?: string;
547
+ }
548
+ }
549
+ interface SandboxapiGcsBucketMountSpec {
550
+ id: string;
551
+ gcs: SandboxapiGcsBucketMountSpec.Gcs;
552
+ mount_path: string;
553
+ type: 's3' | 'gcs';
554
+ cache?: SandboxapiGcsBucketMountSpec.Cache;
555
+ read_only?: boolean;
556
+ s3?: SandboxapiGcsBucketMountSpec.S3;
557
+ }
558
+ namespace SandboxapiGcsBucketMountSpec {
559
+ interface Gcs {
560
+ bucket: string;
561
+ prefix?: string;
562
+ }
563
+ interface Cache {
564
+ max_size_bytes?: number;
565
+ writeback_seconds?: number;
566
+ }
567
+ interface S3 {
568
+ bucket: string;
569
+ endpoint_url: string;
570
+ region: string;
571
+ path_style?: boolean;
572
+ prefix?: string;
573
+ }
574
+ }
575
+ interface ProxyConfig {
576
+ access_control?: ProxyConfig.AccessControl;
577
+ callbacks?: Array<ProxyConfig.Callback>;
578
+ no_proxy?: Array<string>;
579
+ rules?: Array<ProxyConfig.Rule>;
580
+ }
581
+ namespace ProxyConfig {
582
+ interface AccessControl {
583
+ allow_list?: Array<string>;
584
+ deny_list?: Array<string>;
585
+ }
586
+ interface Callback {
587
+ match_hosts: Array<string>;
588
+ ttl_seconds: number;
589
+ url: string;
590
+ full_request?: boolean;
591
+ request_headers?: Array<Callback.RequestHeader>;
592
+ }
593
+ namespace Callback {
594
+ interface RequestHeader {
595
+ name: string;
596
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
597
+ is_set?: boolean;
598
+ value?: string;
599
+ }
600
+ }
601
+ interface Rule {
602
+ name: string;
603
+ aws?: Rule.Aws;
604
+ enabled?: boolean;
605
+ gcp?: Rule.Gcp;
606
+ headers?: Array<Rule.Header>;
607
+ match_hosts?: Array<string>;
608
+ match_paths?: Array<string>;
609
+ type?: string;
610
+ }
611
+ namespace Rule {
612
+ interface Aws {
613
+ access_key_id: Aws.AccessKeyID;
614
+ secret_access_key: Aws.SecretAccessKey;
615
+ }
616
+ namespace Aws {
617
+ interface AccessKeyID {
618
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
619
+ is_set?: boolean;
620
+ value?: string;
621
+ }
622
+ interface SecretAccessKey {
623
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
624
+ is_set?: boolean;
625
+ value?: string;
626
+ }
627
+ }
628
+ interface Gcp {
629
+ scopes: Array<string>;
630
+ service_account_json: Gcp.ServiceAccountJson;
631
+ }
632
+ namespace Gcp {
633
+ interface ServiceAccountJson {
634
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
635
+ is_set?: boolean;
636
+ value?: string;
637
+ }
638
+ }
639
+ interface Header {
640
+ name: string;
641
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
642
+ is_set?: boolean;
643
+ value?: string;
644
+ }
645
+ }
646
+ }
647
+ }
648
+ }
649
+ export interface BoxCreateSnapshotResponse {
650
+ id?: string;
651
+ created_at?: string;
652
+ created_by?: string;
653
+ docker_image?: string;
654
+ fs_capacity_bytes?: number;
655
+ fs_used_bytes?: number;
656
+ image_digest?: string;
657
+ /**
658
+ * MemorySnapshotSizeBytes is non-nil iff the snapshot was captured with VM memory
659
+ * state. A non-nil value is the canonical signal that this snapshot can
660
+ * warm-restore from memory; nil means rootfs only.
661
+ */
662
+ memory_snapshot_size_bytes?: number;
663
+ name?: string;
664
+ registry_id?: string;
665
+ source_sandbox_id?: string;
666
+ status?: string;
667
+ status_message?: string;
668
+ updated_at?: string;
669
+ }
670
+ export interface BoxGenerateServiceURLResponse {
671
+ token?: string;
672
+ browser_url?: string;
673
+ expires_at?: string;
674
+ service_url?: string;
675
+ }
676
+ export interface BoxGetStatusResponse {
677
+ status?: string;
678
+ status_message?: string;
679
+ }
680
+ export interface BoxStartResponse {
681
+ id?: string;
682
+ created_at?: string;
683
+ created_by?: string;
684
+ dataplane_url?: string;
685
+ delete_after_stop_seconds?: number;
686
+ fs_capacity_bytes?: number;
687
+ idle_ttl_seconds?: number;
688
+ mem_bytes?: number;
689
+ mounts?: Array<BoxStartResponse.SandboxapiS3BucketMountSpec | BoxStartResponse.SandboxapiGcsBucketMountSpec>;
690
+ name?: string;
691
+ proxy_config?: BoxStartResponse.ProxyConfig;
692
+ size_class?: string;
693
+ snapshot_id?: string;
694
+ status?: string;
695
+ status_message?: string;
696
+ stopped_at?: string;
697
+ updated_at?: string;
698
+ updated_by?: string;
699
+ vcpus?: number;
700
+ }
701
+ export declare namespace BoxStartResponse {
702
+ interface SandboxapiS3BucketMountSpec {
703
+ id: string;
704
+ mount_path: string;
705
+ s3: SandboxapiS3BucketMountSpec.S3;
706
+ type: 's3' | 'gcs';
707
+ cache?: SandboxapiS3BucketMountSpec.Cache;
708
+ gcs?: SandboxapiS3BucketMountSpec.Gcs;
709
+ read_only?: boolean;
710
+ }
711
+ namespace SandboxapiS3BucketMountSpec {
712
+ interface S3 {
713
+ bucket: string;
714
+ endpoint_url: string;
715
+ region: string;
716
+ path_style?: boolean;
717
+ prefix?: string;
718
+ }
719
+ interface Cache {
720
+ max_size_bytes?: number;
721
+ writeback_seconds?: number;
722
+ }
723
+ interface Gcs {
724
+ bucket: string;
725
+ prefix?: string;
726
+ }
727
+ }
728
+ interface SandboxapiGcsBucketMountSpec {
729
+ id: string;
730
+ gcs: SandboxapiGcsBucketMountSpec.Gcs;
731
+ mount_path: string;
732
+ type: 's3' | 'gcs';
733
+ cache?: SandboxapiGcsBucketMountSpec.Cache;
734
+ read_only?: boolean;
735
+ s3?: SandboxapiGcsBucketMountSpec.S3;
736
+ }
737
+ namespace SandboxapiGcsBucketMountSpec {
738
+ interface Gcs {
739
+ bucket: string;
740
+ prefix?: string;
741
+ }
742
+ interface Cache {
743
+ max_size_bytes?: number;
744
+ writeback_seconds?: number;
745
+ }
746
+ interface S3 {
747
+ bucket: string;
748
+ endpoint_url: string;
749
+ region: string;
750
+ path_style?: boolean;
751
+ prefix?: string;
752
+ }
753
+ }
754
+ interface ProxyConfig {
755
+ access_control?: ProxyConfig.AccessControl;
756
+ callbacks?: Array<ProxyConfig.Callback>;
757
+ no_proxy?: Array<string>;
758
+ rules?: Array<ProxyConfig.Rule>;
759
+ }
760
+ namespace ProxyConfig {
761
+ interface AccessControl {
762
+ allow_list?: Array<string>;
763
+ deny_list?: Array<string>;
764
+ }
765
+ interface Callback {
766
+ match_hosts: Array<string>;
767
+ ttl_seconds: number;
768
+ url: string;
769
+ full_request?: boolean;
770
+ request_headers?: Array<Callback.RequestHeader>;
771
+ }
772
+ namespace Callback {
773
+ interface RequestHeader {
774
+ name: string;
775
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
776
+ is_set?: boolean;
777
+ value?: string;
778
+ }
779
+ }
780
+ interface Rule {
781
+ name: string;
782
+ aws?: Rule.Aws;
783
+ enabled?: boolean;
784
+ gcp?: Rule.Gcp;
785
+ headers?: Array<Rule.Header>;
786
+ match_hosts?: Array<string>;
787
+ match_paths?: Array<string>;
788
+ type?: string;
789
+ }
790
+ namespace Rule {
791
+ interface Aws {
792
+ access_key_id: Aws.AccessKeyID;
793
+ secret_access_key: Aws.SecretAccessKey;
794
+ }
795
+ namespace Aws {
796
+ interface AccessKeyID {
797
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
798
+ is_set?: boolean;
799
+ value?: string;
800
+ }
801
+ interface SecretAccessKey {
802
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
803
+ is_set?: boolean;
804
+ value?: string;
805
+ }
806
+ }
807
+ interface Gcp {
808
+ scopes: Array<string>;
809
+ service_account_json: Gcp.ServiceAccountJson;
810
+ }
811
+ namespace Gcp {
812
+ interface ServiceAccountJson {
813
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
814
+ is_set?: boolean;
815
+ value?: string;
816
+ }
817
+ }
818
+ interface Header {
819
+ name: string;
820
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
821
+ is_set?: boolean;
822
+ value?: string;
823
+ }
824
+ }
825
+ }
826
+ }
827
+ export interface BoxCreateParams {
828
+ delete_after_stop_seconds?: number;
829
+ env_vars?: {
830
+ [key: string]: string;
831
+ };
832
+ fs_capacity_bytes?: number;
833
+ idle_ttl_seconds?: number;
834
+ mem_bytes?: number;
835
+ mounts?: Array<BoxCreateParams.SandboxapiS3BucketMountSpec | BoxCreateParams.SandboxapiGcsBucketMountSpec>;
836
+ name?: string;
837
+ proxy_config?: BoxCreateParams.ProxyConfig;
838
+ /**
839
+ * RestoreMemory selects how the sandbox handles a snapshot's captured memory:
840
+ *
841
+ * nil → if-present: resume from memory when the snapshot has it, else cold-boot
842
+ * (default). true → always: resume from memory; rejected if the snapshot has none.
843
+ * false → never: always cold-boot.
844
+ *
845
+ * Applies to this request only.
846
+ */
847
+ restore_memory?: boolean;
848
+ snapshot_id?: string;
849
+ snapshot_name?: string;
850
+ tag_value_ids?: Array<string>;
851
+ vcpus?: number;
852
+ }
853
+ export declare namespace BoxCreateParams {
854
+ interface SandboxapiS3BucketMountSpec {
855
+ id: string;
856
+ mount_path: string;
857
+ s3: SandboxapiS3BucketMountSpec.S3;
858
+ type: 's3' | 'gcs';
859
+ cache?: SandboxapiS3BucketMountSpec.Cache;
860
+ gcs?: SandboxapiS3BucketMountSpec.Gcs;
861
+ read_only?: boolean;
862
+ }
863
+ namespace SandboxapiS3BucketMountSpec {
864
+ interface S3 {
865
+ bucket: string;
866
+ endpoint_url: string;
867
+ region: string;
868
+ path_style?: boolean;
869
+ prefix?: string;
870
+ }
871
+ interface Cache {
872
+ max_size_bytes?: number;
873
+ writeback_seconds?: number;
874
+ }
875
+ interface Gcs {
876
+ bucket: string;
877
+ prefix?: string;
878
+ }
879
+ }
880
+ interface SandboxapiGcsBucketMountSpec {
881
+ id: string;
882
+ gcs: SandboxapiGcsBucketMountSpec.Gcs;
883
+ mount_path: string;
884
+ type: 's3' | 'gcs';
885
+ cache?: SandboxapiGcsBucketMountSpec.Cache;
886
+ read_only?: boolean;
887
+ s3?: SandboxapiGcsBucketMountSpec.S3;
888
+ }
889
+ namespace SandboxapiGcsBucketMountSpec {
890
+ interface Gcs {
891
+ bucket: string;
892
+ prefix?: string;
893
+ }
894
+ interface Cache {
895
+ max_size_bytes?: number;
896
+ writeback_seconds?: number;
897
+ }
898
+ interface S3 {
899
+ bucket: string;
900
+ endpoint_url: string;
901
+ region: string;
902
+ path_style?: boolean;
903
+ prefix?: string;
904
+ }
905
+ }
906
+ interface ProxyConfig {
907
+ access_control?: ProxyConfig.AccessControl;
908
+ callbacks?: Array<ProxyConfig.Callback>;
909
+ no_proxy?: Array<string>;
910
+ rules?: Array<ProxyConfig.Rule>;
911
+ }
912
+ namespace ProxyConfig {
913
+ interface AccessControl {
914
+ allow_list?: Array<string>;
915
+ deny_list?: Array<string>;
916
+ }
917
+ interface Callback {
918
+ match_hosts: Array<string>;
919
+ ttl_seconds: number;
920
+ url: string;
921
+ full_request?: boolean;
922
+ request_headers?: Array<Callback.RequestHeader>;
923
+ }
924
+ namespace Callback {
925
+ interface RequestHeader {
926
+ name: string;
927
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
928
+ is_set?: boolean;
929
+ value?: string;
930
+ }
931
+ }
932
+ interface Rule {
933
+ name: string;
934
+ aws?: Rule.Aws;
935
+ enabled?: boolean;
936
+ gcp?: Rule.Gcp;
937
+ headers?: Array<Rule.Header>;
938
+ match_hosts?: Array<string>;
939
+ match_paths?: Array<string>;
940
+ type?: string;
941
+ }
942
+ namespace Rule {
943
+ interface Aws {
944
+ access_key_id: Aws.AccessKeyID;
945
+ secret_access_key: Aws.SecretAccessKey;
946
+ }
947
+ namespace Aws {
948
+ interface AccessKeyID {
949
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
950
+ is_set?: boolean;
951
+ value?: string;
952
+ }
953
+ interface SecretAccessKey {
954
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
955
+ is_set?: boolean;
956
+ value?: string;
957
+ }
958
+ }
959
+ interface Gcp {
960
+ scopes: Array<string>;
961
+ service_account_json: Gcp.ServiceAccountJson;
962
+ }
963
+ namespace Gcp {
964
+ interface ServiceAccountJson {
965
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
966
+ is_set?: boolean;
967
+ value?: string;
968
+ }
969
+ }
970
+ interface Header {
971
+ name: string;
972
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
973
+ is_set?: boolean;
974
+ value?: string;
975
+ }
976
+ }
977
+ }
978
+ }
979
+ export interface BoxUpdateParams {
980
+ delete_after_stop_seconds?: number;
981
+ fs_capacity_bytes?: number;
982
+ idle_ttl_seconds?: number;
983
+ mem_bytes?: number;
984
+ name?: string;
985
+ proxy_config?: BoxUpdateParams.ProxyConfig;
986
+ tag_value_ids?: Array<string>;
987
+ vcpus?: number;
988
+ }
989
+ export declare namespace BoxUpdateParams {
990
+ interface ProxyConfig {
991
+ access_control?: ProxyConfig.AccessControl;
992
+ callbacks?: Array<ProxyConfig.Callback>;
993
+ no_proxy?: Array<string>;
994
+ rules?: Array<ProxyConfig.Rule>;
995
+ }
996
+ namespace ProxyConfig {
997
+ interface AccessControl {
998
+ allow_list?: Array<string>;
999
+ deny_list?: Array<string>;
1000
+ }
1001
+ interface Callback {
1002
+ match_hosts: Array<string>;
1003
+ ttl_seconds: number;
1004
+ url: string;
1005
+ full_request?: boolean;
1006
+ request_headers?: Array<Callback.RequestHeader>;
1007
+ }
1008
+ namespace Callback {
1009
+ interface RequestHeader {
1010
+ name: string;
1011
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
1012
+ is_set?: boolean;
1013
+ value?: string;
1014
+ }
1015
+ }
1016
+ interface Rule {
1017
+ name: string;
1018
+ aws?: Rule.Aws;
1019
+ enabled?: boolean;
1020
+ gcp?: Rule.Gcp;
1021
+ headers?: Array<Rule.Header>;
1022
+ match_hosts?: Array<string>;
1023
+ match_paths?: Array<string>;
1024
+ type?: string;
1025
+ }
1026
+ namespace Rule {
1027
+ interface Aws {
1028
+ access_key_id: Aws.AccessKeyID;
1029
+ secret_access_key: Aws.SecretAccessKey;
1030
+ }
1031
+ namespace Aws {
1032
+ interface AccessKeyID {
1033
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
1034
+ is_set?: boolean;
1035
+ value?: string;
1036
+ }
1037
+ interface SecretAccessKey {
1038
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
1039
+ is_set?: boolean;
1040
+ value?: string;
1041
+ }
1042
+ }
1043
+ interface Gcp {
1044
+ scopes: Array<string>;
1045
+ service_account_json: Gcp.ServiceAccountJson;
1046
+ }
1047
+ namespace Gcp {
1048
+ interface ServiceAccountJson {
1049
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
1050
+ is_set?: boolean;
1051
+ value?: string;
1052
+ }
1053
+ }
1054
+ interface Header {
1055
+ name: string;
1056
+ type: 'plaintext' | 'opaque' | 'workspace_secret';
1057
+ is_set?: boolean;
1058
+ value?: string;
1059
+ }
1060
+ }
1061
+ }
1062
+ }
1063
+ export interface BoxListParams {
1064
+ /**
1065
+ * Filter by creator identity. Only 'me' is supported.
1066
+ */
1067
+ created_by?: string;
1068
+ /**
1069
+ * Maximum number of results
1070
+ */
1071
+ limit?: number;
1072
+ /**
1073
+ * Filter by name substring
1074
+ */
1075
+ name_contains?: string;
1076
+ /**
1077
+ * Pagination offset
1078
+ */
1079
+ offset?: number;
1080
+ /**
1081
+ * Sort column (name, status, created_at)
1082
+ */
1083
+ sort_by?: string;
1084
+ /**
1085
+ * Sort direction (asc, desc)
1086
+ */
1087
+ sort_direction?: string;
1088
+ /**
1089
+ * Filter by status (provisioning, ready, failed, stopped, deleting)
1090
+ */
1091
+ status?: string;
1092
+ }
1093
+ export interface BoxCreateSnapshotParams {
1094
+ name: string;
1095
+ /**
1096
+ * if omitted, creates a fresh checkpoint from the running VM
1097
+ */
1098
+ checkpoint?: string;
1099
+ /**
1100
+ * sandbox-local Docker image to export
1101
+ */
1102
+ docker_image?: string;
1103
+ /**
1104
+ * required for Docker image export unless the sandbox has a capacity
1105
+ */
1106
+ fs_capacity_bytes?: number;
1107
+ /**
1108
+ * IncludeMemory, when true, captures a full VM memory snapshot alongside the
1109
+ * filesystem clone. Only honored when the sandbox is running AND Checkpoint is
1110
+ * omitted (i.e. a fresh in-VM checkpoint is requested). Defaults to false to keep
1111
+ * snapshots small unless memory restore is explicitly desired.
1112
+ */
1113
+ include_memory?: boolean;
1114
+ }
1115
+ export interface BoxGenerateServiceURLParams {
1116
+ expires_in_seconds?: number;
1117
+ port?: number;
1118
+ }
1119
+ export declare namespace Boxes {
1120
+ export { type BoxCreateResponse as BoxCreateResponse, type BoxRetrieveResponse as BoxRetrieveResponse, type BoxUpdateResponse as BoxUpdateResponse, type BoxListResponse as BoxListResponse, type BoxCreateSnapshotResponse as BoxCreateSnapshotResponse, type BoxGenerateServiceURLResponse as BoxGenerateServiceURLResponse, type BoxGetStatusResponse as BoxGetStatusResponse, type BoxStartResponse as BoxStartResponse, type BoxCreateParams as BoxCreateParams, type BoxUpdateParams as BoxUpdateParams, type BoxListParams as BoxListParams, type BoxCreateSnapshotParams as BoxCreateSnapshotParams, type BoxGenerateServiceURLParams as BoxGenerateServiceURLParams, };
1121
+ }