@solarisdk/runloop-compat 0.0.0-stage → 0.1.0
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/COMPAT.md +110 -0
- package/LICENSE +17 -0
- package/LICENSE-RUNLOOP +7 -0
- package/NOTICE +14 -0
- package/README.md +46 -2
- package/dist/blueprint-types.d.ts +522 -0
- package/dist/blueprint-types.d.ts.map +1 -0
- package/dist/blueprint-types.js +4 -0
- package/dist/blueprint-types.js.map +1 -0
- package/dist/blueprints.d.ts +71 -0
- package/dist/blueprints.d.ts.map +1 -0
- package/dist/blueprints.js +233 -0
- package/dist/blueprints.js.map +1 -0
- package/dist/client.d.ts +290 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +924 -0
- package/dist/client.js.map +1 -0
- package/dist/context.d.ts +42 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +198 -0
- package/dist/context.js.map +1 -0
- package/dist/dockerfile.d.ts +36 -0
- package/dist/dockerfile.d.ts.map +1 -0
- package/dist/dockerfile.js +338 -0
- package/dist/dockerfile.js.map +1 -0
- package/dist/errors.d.ts +67 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +171 -0
- package/dist/errors.js.map +1 -0
- package/dist/image-ref.d.ts +35 -0
- package/dist/image-ref.d.ts.map +1 -0
- package/dist/image-ref.js +97 -0
- package/dist/image-ref.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/mapping.d.ts +49 -0
- package/dist/mapping.d.ts.map +1 -0
- package/dist/mapping.js +204 -0
- package/dist/mapping.js.map +1 -0
- package/dist/sdk.d.ts +182 -0
- package/dist/sdk.d.ts.map +1 -0
- package/dist/sdk.js +356 -0
- package/dist/sdk.js.map +1 -0
- package/dist/secrets.d.ts +41 -0
- package/dist/secrets.d.ts.map +1 -0
- package/dist/secrets.js +58 -0
- package/dist/secrets.js.map +1 -0
- package/dist/shared-types.d.ts +440 -0
- package/dist/shared-types.d.ts.map +1 -0
- package/dist/shared-types.js +4 -0
- package/dist/shared-types.js.map +1 -0
- package/dist/types.d.ts +920 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/package.json +48 -4
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for automatic Devbox behavior after idle time.
|
|
3
|
+
*
|
|
4
|
+
* @category Shared Types
|
|
5
|
+
*/
|
|
6
|
+
export interface AfterIdle {
|
|
7
|
+
/**
|
|
8
|
+
* After idle_time_seconds, on_idle action will be taken.
|
|
9
|
+
*/
|
|
10
|
+
idle_time_seconds: number;
|
|
11
|
+
/**
|
|
12
|
+
* Action to take after Devbox becomes idle.
|
|
13
|
+
*/
|
|
14
|
+
on_idle: 'shutdown' | 'suspend';
|
|
15
|
+
}
|
|
16
|
+
export interface AgentMount {
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the agent to mount. Either agent_id or name must be set.
|
|
19
|
+
*/
|
|
20
|
+
agent_id: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* The name of the agent to mount. Returns the most recent agent with a matching
|
|
23
|
+
* name if no agent id string provided. Either agent id or name must be set
|
|
24
|
+
*/
|
|
25
|
+
agent_name: string | null;
|
|
26
|
+
type: 'agent_mount';
|
|
27
|
+
/**
|
|
28
|
+
* Path to mount the agent on the Devbox. Required for git and object agents. Use
|
|
29
|
+
* absolute path (e.g., /home/user/agent)
|
|
30
|
+
*/
|
|
31
|
+
agent_path?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Optional auth token for private repositories. Only used for git agents.
|
|
34
|
+
*/
|
|
35
|
+
auth_token?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Agent source configuration.
|
|
39
|
+
*
|
|
40
|
+
* @category Shared Types
|
|
41
|
+
*/
|
|
42
|
+
export interface AgentSource {
|
|
43
|
+
/**
|
|
44
|
+
* Source type: npm, pip, object, or git
|
|
45
|
+
*/
|
|
46
|
+
type: string;
|
|
47
|
+
/**
|
|
48
|
+
* Git-based agent source configuration.
|
|
49
|
+
*/
|
|
50
|
+
git?: AgentSource.Git | null;
|
|
51
|
+
/**
|
|
52
|
+
* NPM-based agent source configuration.
|
|
53
|
+
*/
|
|
54
|
+
npm?: AgentSource.Npm | null;
|
|
55
|
+
/**
|
|
56
|
+
* Object store agent source configuration.
|
|
57
|
+
*/
|
|
58
|
+
object?: AgentSource.Object | null;
|
|
59
|
+
/**
|
|
60
|
+
* Pip-based agent source configuration.
|
|
61
|
+
*/
|
|
62
|
+
pip?: AgentSource.Pip | null;
|
|
63
|
+
}
|
|
64
|
+
export declare namespace AgentSource {
|
|
65
|
+
/**
|
|
66
|
+
* Git-based agent source configuration.
|
|
67
|
+
*/
|
|
68
|
+
interface Git {
|
|
69
|
+
/**
|
|
70
|
+
* Git repository URL
|
|
71
|
+
*/
|
|
72
|
+
repository: string;
|
|
73
|
+
/**
|
|
74
|
+
* Setup commands to run after cloning
|
|
75
|
+
*/
|
|
76
|
+
agent_setup?: Array<string> | null;
|
|
77
|
+
/**
|
|
78
|
+
* Optional Git ref (branch/tag/commit), defaults to main/HEAD
|
|
79
|
+
*/
|
|
80
|
+
ref?: string | null;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* NPM-based agent source configuration.
|
|
84
|
+
*/
|
|
85
|
+
interface Npm {
|
|
86
|
+
/**
|
|
87
|
+
* NPM package name
|
|
88
|
+
*/
|
|
89
|
+
package_name: string;
|
|
90
|
+
/**
|
|
91
|
+
* Setup commands to run after installation
|
|
92
|
+
*/
|
|
93
|
+
agent_setup?: Array<string> | null;
|
|
94
|
+
/**
|
|
95
|
+
* NPM registry URL
|
|
96
|
+
*/
|
|
97
|
+
registry_url?: string | null;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Object store agent source configuration.
|
|
101
|
+
*/
|
|
102
|
+
interface Object {
|
|
103
|
+
/**
|
|
104
|
+
* Object ID
|
|
105
|
+
*/
|
|
106
|
+
object_id: string;
|
|
107
|
+
/**
|
|
108
|
+
* Setup commands to run after unpacking
|
|
109
|
+
*/
|
|
110
|
+
agent_setup?: Array<string> | null;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Pip-based agent source configuration.
|
|
114
|
+
*/
|
|
115
|
+
interface Pip {
|
|
116
|
+
/**
|
|
117
|
+
* Pip package name
|
|
118
|
+
*/
|
|
119
|
+
package_name: string;
|
|
120
|
+
/**
|
|
121
|
+
* Setup commands to run after installation
|
|
122
|
+
*/
|
|
123
|
+
agent_setup?: Array<string> | null;
|
|
124
|
+
/**
|
|
125
|
+
* Pip registry URL
|
|
126
|
+
*/
|
|
127
|
+
registry_url?: string | null;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Defines how the primary credential is applied to requests proxied to the
|
|
132
|
+
* upstream.
|
|
133
|
+
*/
|
|
134
|
+
export interface AuthMechanism {
|
|
135
|
+
/**
|
|
136
|
+
* The type of authentication mechanism: 'header', 'bearer', or 'basic'. For
|
|
137
|
+
* 'basic', store the secret as plain 'user:pass'; the proxy base64-encodes it.
|
|
138
|
+
*/
|
|
139
|
+
type: string;
|
|
140
|
+
/**
|
|
141
|
+
* The header name (e.g., 'x-api-key'). Required for 'header' type; invalid for
|
|
142
|
+
* other types.
|
|
143
|
+
*/
|
|
144
|
+
key?: string | null;
|
|
145
|
+
}
|
|
146
|
+
export interface BrokerMount {
|
|
147
|
+
/**
|
|
148
|
+
* The ID of the axon event stream to mount onto the Devbox.
|
|
149
|
+
*/
|
|
150
|
+
axon_id: string;
|
|
151
|
+
type: 'broker_mount';
|
|
152
|
+
/**
|
|
153
|
+
* Binary to launch the agent (e.g., 'opencode'). Used by protocols that launch a
|
|
154
|
+
* subprocess (acp, claude_json, codex_json, pi_json).
|
|
155
|
+
*/
|
|
156
|
+
agent_binary?: string | null;
|
|
157
|
+
/**
|
|
158
|
+
* Arguments to pass to the agent command (e.g., ['acp']). Used by protocols that
|
|
159
|
+
* launch a subprocess (acp, claude_json, codex_json, pi_json).
|
|
160
|
+
*/
|
|
161
|
+
launch_args?: Array<string> | null;
|
|
162
|
+
/**
|
|
163
|
+
* The protocol used by the broker to deliver events to the agent.
|
|
164
|
+
*/
|
|
165
|
+
protocol?: 'acp' | 'claude_json' | 'codex_json' | 'pi_json' | null;
|
|
166
|
+
/**
|
|
167
|
+
* Working directory in which to launch the agent binary. Defaults to the home
|
|
168
|
+
* directory if not specified.
|
|
169
|
+
*/
|
|
170
|
+
working_directory?: string | null;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Parameters for mounting code from a Git repository.
|
|
174
|
+
*
|
|
175
|
+
* @category Shared Types
|
|
176
|
+
*/
|
|
177
|
+
export interface CodeMountParameters {
|
|
178
|
+
/**
|
|
179
|
+
* The name of the repo to mount. By default, code will be mounted at
|
|
180
|
+
* /home/user/{repo_name}.
|
|
181
|
+
*/
|
|
182
|
+
repo_name: string;
|
|
183
|
+
/**
|
|
184
|
+
* The owner of the repo.
|
|
185
|
+
*/
|
|
186
|
+
repo_owner: string;
|
|
187
|
+
/**
|
|
188
|
+
* The authentication token necessary to pull repo.
|
|
189
|
+
*/
|
|
190
|
+
token?: string | null;
|
|
191
|
+
/**
|
|
192
|
+
* Optional git ref (branch or tag) to checkout. Defaults to the repository default
|
|
193
|
+
* branch.
|
|
194
|
+
*/
|
|
195
|
+
git_ref?: string | null;
|
|
196
|
+
/**
|
|
197
|
+
* Installation command to install and setup repository.
|
|
198
|
+
*/
|
|
199
|
+
install_command?: string | null;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* An additional header applied to upstream requests alongside the primary
|
|
203
|
+
* credential. The value comes from an account secret or a literal string; exactly
|
|
204
|
+
* one of 'secret' and 'value' must be set.
|
|
205
|
+
*/
|
|
206
|
+
export interface CustomHeader {
|
|
207
|
+
/**
|
|
208
|
+
* The header name (e.g., 'DD-APPLICATION-KEY').
|
|
209
|
+
*/
|
|
210
|
+
name: string;
|
|
211
|
+
/**
|
|
212
|
+
* Account secret providing the header value. Accepts a secret name or 'sec*' id on
|
|
213
|
+
* writes; reads always return the 'sec*' id.
|
|
214
|
+
*/
|
|
215
|
+
secret?: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* Literal header value. Stored in plaintext and returned by reads - use 'secret'
|
|
218
|
+
* for credentials or other sensitive values.
|
|
219
|
+
*/
|
|
220
|
+
value?: string | null;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* LaunchParameters enable you to customize the resources available to your Devbox
|
|
224
|
+
* as well as the environment set up that should be completed before the Devbox is
|
|
225
|
+
* marked as 'running'.
|
|
226
|
+
*
|
|
227
|
+
* @category Shared Types
|
|
228
|
+
*/
|
|
229
|
+
export interface LaunchParameters {
|
|
230
|
+
/**
|
|
231
|
+
* Configure Devbox lifecycle based on idle activity. If after_idle is set, Devbox
|
|
232
|
+
* will ignore keep_alive_time_seconds. If both after_idle and lifecycle.after_idle
|
|
233
|
+
* are set, they must have the same value. Use lifecycle.after_idle instead.
|
|
234
|
+
*/
|
|
235
|
+
after_idle?: AfterIdle | null;
|
|
236
|
+
/**
|
|
237
|
+
* The target architecture for the Devbox. If unset, defaults to x86_64.
|
|
238
|
+
*/
|
|
239
|
+
architecture?: 'x86_64' | 'arm64' | null;
|
|
240
|
+
/**
|
|
241
|
+
* [Deprecated] A list of ports to make available on the Devbox. This field is
|
|
242
|
+
* ignored.
|
|
243
|
+
*/
|
|
244
|
+
available_ports?: Array<number> | null;
|
|
245
|
+
/**
|
|
246
|
+
* Custom CPU cores. Must be 0.5, 1, or a multiple of 2. Max is 16.
|
|
247
|
+
*/
|
|
248
|
+
custom_cpu_cores?: number | null;
|
|
249
|
+
/**
|
|
250
|
+
* Custom disk size in GiB. Must be a multiple of 2. Min is 2GiB, max is 64GiB.
|
|
251
|
+
*/
|
|
252
|
+
custom_disk_size?: number | null;
|
|
253
|
+
/**
|
|
254
|
+
* Custom memory size in GiB. Must be 1 or a multiple of 2. Max is 64GiB.
|
|
255
|
+
*/
|
|
256
|
+
custom_gb_memory?: number | null;
|
|
257
|
+
/**
|
|
258
|
+
* Time in seconds after which Devbox will automatically shutdown. Default is 1
|
|
259
|
+
* hour. Maximum is 48 hours (172800 seconds).
|
|
260
|
+
*/
|
|
261
|
+
keep_alive_time_seconds?: number | null;
|
|
262
|
+
/**
|
|
263
|
+
* Set of commands to be run at launch time, before the entrypoint process is run.
|
|
264
|
+
*/
|
|
265
|
+
launch_commands?: Array<string> | null;
|
|
266
|
+
/**
|
|
267
|
+
* Lifecycle configuration for Devbox idle and resume behavior. Configure idle
|
|
268
|
+
* policy via after_idle, resume triggers via resume_triggers, and optional
|
|
269
|
+
* lifecycle hooks via lifecycle_hooks.
|
|
270
|
+
*/
|
|
271
|
+
lifecycle?: LifecycleConfiguration | null;
|
|
272
|
+
/**
|
|
273
|
+
* (Optional) ID of the network policy to apply to Devboxes launched with these
|
|
274
|
+
* parameters. When set on a Blueprint launch parameters, Devboxes created from it
|
|
275
|
+
* will inherit this policy unless explicitly overridden.
|
|
276
|
+
*/
|
|
277
|
+
network_policy_id?: string | null;
|
|
278
|
+
/**
|
|
279
|
+
* (Optional, Alpha) standard is default and flex is lazily provisioned and may be
|
|
280
|
+
* pre-empted. This is an alpha feature and its behavior may change without notice.
|
|
281
|
+
*/
|
|
282
|
+
provisioning_tier?: 'standard' | 'flex' | null;
|
|
283
|
+
/**
|
|
284
|
+
* A list of ContainerizedService names to be started when a Devbox is created. A
|
|
285
|
+
* valid ContainerizedService must be specified in Blueprint to be started.
|
|
286
|
+
*/
|
|
287
|
+
required_services?: Array<string> | null;
|
|
288
|
+
/**
|
|
289
|
+
* The size of the Devbox resources for Runloop to allocate.
|
|
290
|
+
*
|
|
291
|
+
* X_SMALL: 0.5 cpu x 1GiB memory x 4GiB disk SMALL: 1 cpu x 2GiB memory x 4GiB
|
|
292
|
+
* disk MEDIUM: 2 cpu x 4GiB memory x 8GiB disk LARGE: 2 cpu x 8GiB memory x 16GiB
|
|
293
|
+
* disk X_LARGE: 4 cpu x 16GiB memory x 16GiB disk XX_LARGE: 8 cpu x 32GiB memory x
|
|
294
|
+
* 16GiB disk CUSTOM_SIZE: To choose a custom size, set this enum and also the
|
|
295
|
+
* custom_cpu_cores, custom_gb_memory, and optionally custom_disk_size in launch
|
|
296
|
+
* parameters. CPU must be 0.5, 1, or a multiple of 2 (max 16). Memory must be 1 or
|
|
297
|
+
* a multiple of 2 (max 64GiB). Disk must be a multiple of 2 (min 2GiB, max 64GiB).
|
|
298
|
+
* The cpu:memory ratio must be between 1:2 and 1:8 inclusive.
|
|
299
|
+
*/
|
|
300
|
+
resource_size_request?: 'X_SMALL' | 'SMALL' | 'MEDIUM' | 'LARGE' | 'X_LARGE' | 'XX_LARGE' | 'CUSTOM_SIZE' | null;
|
|
301
|
+
/**
|
|
302
|
+
* Configuration for the Linux user in the Devbox environment.
|
|
303
|
+
*/
|
|
304
|
+
user_parameters?: LaunchParameters.UserParameters | null;
|
|
305
|
+
}
|
|
306
|
+
export declare namespace LaunchParameters {
|
|
307
|
+
/**
|
|
308
|
+
* Configuration for the Linux user in the Devbox environment.
|
|
309
|
+
*/
|
|
310
|
+
interface UserParameters {
|
|
311
|
+
/**
|
|
312
|
+
* User ID (UID) for the Linux user. Must be a non-negative integer.
|
|
313
|
+
*/
|
|
314
|
+
uid: number;
|
|
315
|
+
/**
|
|
316
|
+
* Username for the Linux user.
|
|
317
|
+
*/
|
|
318
|
+
username: string;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Lifecycle configuration for Devbox idle and resume behavior. Configure idle
|
|
323
|
+
* policy via after_idle, resume triggers via resume_triggers, and optional
|
|
324
|
+
* lifecycle hooks via lifecycle_hooks.
|
|
325
|
+
*/
|
|
326
|
+
export interface LifecycleConfiguration {
|
|
327
|
+
/**
|
|
328
|
+
* Configure Devbox lifecycle based on idle activity. If both this and the
|
|
329
|
+
* top-level after_idle are set, they must have the same value. Prefer this field
|
|
330
|
+
* for new integrations.
|
|
331
|
+
*/
|
|
332
|
+
after_idle?: AfterIdle | null;
|
|
333
|
+
/**
|
|
334
|
+
* Lifecycle hooks for Devbox suspend. suspend_commands run sequentially as the
|
|
335
|
+
* configured Devbox user before the Devbox suspends; failures are logged but do
|
|
336
|
+
* not block suspending. The suspend_deadline_ms budget defaults to 30000 ms, may
|
|
337
|
+
* not exceed 60000 ms, and covers broker drain plus suspend_commands. If the
|
|
338
|
+
* deadline is exceeded, suspend work is abandoned, the timeout is logged, and the
|
|
339
|
+
* Devbox still proceeds to suspend. launch_commands still run on every startup,
|
|
340
|
+
* including after resume.
|
|
341
|
+
*/
|
|
342
|
+
lifecycle_hooks?: LifecycleHooks | null;
|
|
343
|
+
/**
|
|
344
|
+
* Triggers that can resume a suspended Devbox.
|
|
345
|
+
*/
|
|
346
|
+
resume_triggers?: ResumeTriggers | null;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Lifecycle hooks for Devbox suspend. suspend_commands run sequentially as the
|
|
350
|
+
* configured Devbox user before the Devbox suspends; failures are logged but do
|
|
351
|
+
* not block suspending. The suspend_deadline_ms budget defaults to 30000 ms, may
|
|
352
|
+
* not exceed 60000 ms, and covers broker drain plus suspend_commands. If the
|
|
353
|
+
* deadline is exceeded, suspend work is abandoned, the timeout is logged, and the
|
|
354
|
+
* Devbox still proceeds to suspend. launch_commands still run on every startup,
|
|
355
|
+
* including after resume.
|
|
356
|
+
*/
|
|
357
|
+
export interface LifecycleHooks {
|
|
358
|
+
/**
|
|
359
|
+
* Commands to run through the suspend path before the Devbox suspends (e.g.
|
|
360
|
+
* cleanup, quiesce daemons).
|
|
361
|
+
*/
|
|
362
|
+
suspend_commands?: Array<string> | null;
|
|
363
|
+
/**
|
|
364
|
+
* Deadline in milliseconds for broker drain and suspend_commands during suspend.
|
|
365
|
+
* Defaults to 30000 ms and may not exceed 60000 ms. If exceeded, suspend work is
|
|
366
|
+
* abandoned, the timeout is logged, and the Devbox still proceeds to suspend by
|
|
367
|
+
* shutting down vmagent and killing the VM.
|
|
368
|
+
*/
|
|
369
|
+
suspend_deadline_ms?: number | null;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Mount configuration for attaching files, agents, or code to a Devbox.
|
|
373
|
+
*
|
|
374
|
+
* @category Shared Types
|
|
375
|
+
*/
|
|
376
|
+
export type Mount = ObjectMount | AgentMount | Mount.CodeMount | Mount.FileMount | BrokerMount;
|
|
377
|
+
export declare namespace Mount {
|
|
378
|
+
interface CodeMount {
|
|
379
|
+
/**
|
|
380
|
+
* The name of the repo to mount. By default, code will be mounted at
|
|
381
|
+
* /home/user/{repo_name}.
|
|
382
|
+
*/
|
|
383
|
+
repo_name: string;
|
|
384
|
+
/**
|
|
385
|
+
* The owner of the repo.
|
|
386
|
+
*/
|
|
387
|
+
repo_owner: string;
|
|
388
|
+
type: 'code_mount';
|
|
389
|
+
/**
|
|
390
|
+
* The authentication token necessary to pull repo.
|
|
391
|
+
*/
|
|
392
|
+
token?: string | null;
|
|
393
|
+
/**
|
|
394
|
+
* Optional git ref (branch or tag) to checkout. Defaults to the repository default
|
|
395
|
+
* branch.
|
|
396
|
+
*/
|
|
397
|
+
git_ref?: string | null;
|
|
398
|
+
/**
|
|
399
|
+
* Installation command to install and setup repository.
|
|
400
|
+
*/
|
|
401
|
+
install_command?: string | null;
|
|
402
|
+
}
|
|
403
|
+
interface FileMount {
|
|
404
|
+
/**
|
|
405
|
+
* Content of the file to mount.
|
|
406
|
+
*/
|
|
407
|
+
content: string;
|
|
408
|
+
/**
|
|
409
|
+
* Target path where the file should be mounted.
|
|
410
|
+
*/
|
|
411
|
+
target: string;
|
|
412
|
+
type: 'file_mount';
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
export interface ObjectMount {
|
|
416
|
+
/**
|
|
417
|
+
* The ID of the object to write.
|
|
418
|
+
*/
|
|
419
|
+
object_id: string;
|
|
420
|
+
/**
|
|
421
|
+
* The path to write the object on the Devbox. Use absolute path of object (ie
|
|
422
|
+
* /home/user/object.txt, or directory if archive /home/user/archive_dir)
|
|
423
|
+
*/
|
|
424
|
+
object_path: string;
|
|
425
|
+
type: 'object_mount';
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Triggers that can resume a suspended Devbox.
|
|
429
|
+
*/
|
|
430
|
+
export interface ResumeTriggers {
|
|
431
|
+
/**
|
|
432
|
+
* When true, axon events targeting a suspended Devbox will trigger a resume.
|
|
433
|
+
*/
|
|
434
|
+
axon_event?: boolean | null;
|
|
435
|
+
/**
|
|
436
|
+
* When true, HTTP traffic to a suspended Devbox via tunnel will trigger a resume.
|
|
437
|
+
*/
|
|
438
|
+
http?: boolean | null;
|
|
439
|
+
}
|
|
440
|
+
//# sourceMappingURL=shared-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-types.d.ts","sourceRoot":"","sources":["../src/shared-types.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,OAAO,EAAE,UAAU,GAAG,SAAS,CAAC;CACnC;AACD,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AACD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GA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