freestyle-sandboxes 0.0.97 → 0.1.1

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 (69) hide show
  1. package/README.md +39 -48
  2. package/index.cjs +4381 -0
  3. package/index.d.cts +9404 -0
  4. package/index.d.mts +9404 -0
  5. package/index.mjs +4367 -0
  6. package/package.json +16 -109
  7. package/dist/ai/inde.d.cts +0 -75
  8. package/dist/ai/inde.d.mts +0 -75
  9. package/dist/ai/index.cjs +0 -13
  10. package/dist/ai/index.d.cts +0 -75
  11. package/dist/ai/index.d.mts +0 -75
  12. package/dist/ai/index.mjs +0 -4
  13. package/dist/expo/inde.d.cts +0 -6
  14. package/dist/expo/inde.d.mts +0 -6
  15. package/dist/expo/index.cjs +0 -319
  16. package/dist/expo/index.d.cts +0 -6
  17. package/dist/expo/index.d.mts +0 -6
  18. package/dist/expo/index.mjs +0 -297
  19. package/dist/inde.d.cts +0 -373
  20. package/dist/inde.d.mts +0 -373
  21. package/dist/index-BKAG8L-o.mjs +0 -3061
  22. package/dist/index-DuOpIaWc.cjs +0 -3068
  23. package/dist/index.cjs +0 -1329
  24. package/dist/index.d-9H_wnIbz.d.ts +0 -4223
  25. package/dist/index.d.cts +0 -373
  26. package/dist/index.d.mts +0 -373
  27. package/dist/index.mjs +0 -1327
  28. package/dist/langgraph/inde.d.cts +0 -4180
  29. package/dist/langgraph/inde.d.mts +0 -4180
  30. package/dist/langgraph/index.cjs +0 -17155
  31. package/dist/langgraph/index.d.cts +0 -4180
  32. package/dist/langgraph/index.d.mts +0 -4180
  33. package/dist/langgraph/index.mjs +0 -17153
  34. package/dist/mastra/inde.d.cts +0 -2623
  35. package/dist/mastra/inde.d.mts +0 -2623
  36. package/dist/mastra/index.cjs +0 -55
  37. package/dist/mastra/index.d.cts +0 -2623
  38. package/dist/mastra/index.d.mts +0 -2623
  39. package/dist/mastra/index.mjs +0 -53
  40. package/dist/react/dev-server/index..d.cts +0 -33
  41. package/dist/react/dev-server/index..d.mts +0 -33
  42. package/dist/react/dev-server/index.cjs +0 -148
  43. package/dist/react/dev-server/index.d.cts +0 -33
  44. package/dist/react/dev-server/index.d.mts +0 -33
  45. package/dist/react/dev-server/index.mjs +0 -145
  46. package/dist/types.gen-CJa21P0C.d.ts +0 -1902
  47. package/dist/types.gen-DKjMRuu5.d.ts +0 -1898
  48. package/dist/utils/inde.d.cts +0 -10
  49. package/dist/utils/inde.d.mts +0 -10
  50. package/dist/utils/index.cjs +0 -100
  51. package/dist/utils/index.d.cts +0 -10
  52. package/dist/utils/index.d.mts +0 -10
  53. package/dist/utils/index.mjs +0 -75
  54. package/openapi/index.ts +0 -3
  55. package/openapi/sdk.gen.ts +0 -929
  56. package/openapi/types.gen.ts +0 -2234
  57. package/openapi-ts.config.ts +0 -7
  58. package/openapi.json +0 -1
  59. package/src/ai/index.ts +0 -164
  60. package/src/dev-server.ts +0 -95
  61. package/src/expo/_expo_internals.ts +0 -389
  62. package/src/expo/index.ts +0 -26
  63. package/src/index.ts +0 -1459
  64. package/src/langgraph/index.ts +0 -33
  65. package/src/mastra/index.ts +0 -38
  66. package/src/react/dev-server/index.tsx +0 -195
  67. package/src/react/dev-server/types.ts +0 -5
  68. package/src/utils/index.ts +0 -97
  69. package/tsconfig.json +0 -8
@@ -1,1902 +0,0 @@
1
- /**
2
- * Identical to [`RepositoryInfo`], but with the permissions field added.
3
- */
4
- type AccessibleRepository = {
5
- id: string;
6
- name?: (string) | null;
7
- accountId: string;
8
- permissions: AccessLevel;
9
- visibility: Visibility;
10
- };
11
- type AccessLevel = 'read' | 'write';
12
- type AccessTokenInfo = {
13
- id: string;
14
- };
15
- type Behavior = 'regex' | 'exact';
16
- /**
17
- * The encoding of a blob from the API. Always `base64`.
18
- */
19
- type BlobEncoding = 'base64';
20
- /**
21
- * Blob object
22
- */
23
- type BlobObject = {
24
- /**
25
- * The content of the blob, base64 encoded.
26
- */
27
- content: string;
28
- /**
29
- * The encoding of the blob. Always `base64`.
30
- */
31
- encoding: BlobEncoding;
32
- /**
33
- * The object's hash.
34
- */
35
- sha: string;
36
- };
37
- type BranchDetails = {
38
- default: boolean;
39
- name: string;
40
- target?: (string) | null;
41
- };
42
- type CommitList = {
43
- /**
44
- * List of commits
45
- */
46
- commits: Array<CommitObject>;
47
- /**
48
- * Number of commits returned in this page
49
- */
50
- count: number;
51
- /**
52
- * Number of commits skipped (offset)
53
- */
54
- offset: number;
55
- /**
56
- * Maximum number of commits requested (limit)
57
- */
58
- limit: number;
59
- /**
60
- * Total number of commits available in the branch
61
- */
62
- total: number;
63
- };
64
- /**
65
- * Commit object
66
- */
67
- type CommitObject = {
68
- /**
69
- * The author of the commit
70
- */
71
- author: Signature;
72
- /**
73
- * The committer
74
- */
75
- committer: Signature;
76
- /**
77
- * The commit message
78
- */
79
- message: string;
80
- /**
81
- * The ID of the tree pointed to by this commit
82
- */
83
- tree: CommitTree;
84
- /**
85
- * Parent commit(s) of this commit
86
- */
87
- parents: Array<CommitParent>;
88
- /**
89
- * The commit's hash ID
90
- */
91
- sha: string;
92
- };
93
- type CommitParent = {
94
- /**
95
- * The commit's hash ID
96
- */
97
- sha: string;
98
- };
99
- type CommitTree = {
100
- /**
101
- * The tree's hash ID
102
- */
103
- sha: string;
104
- };
105
- type ConfigureGithubSyncRequest = {
106
- /**
107
- * The GitHub repository name in "owner/repo" format
108
- */
109
- githubRepoName: string;
110
- };
111
- type CreateDomainMappingRequest = {
112
- deploymentId: string;
113
- };
114
- type CreatedToken = {
115
- id: string;
116
- token: string;
117
- };
118
- type CreateRecordParams = {
119
- domain: string;
120
- record: DnsRecordData;
121
- };
122
- type CreateRecordResponse = {
123
- record: DnsRecord;
124
- };
125
- type CreateRepoImport = {
126
- /**
127
- * A map of file names to their contents.
128
- */
129
- files: {
130
- [key: string]: (string);
131
- };
132
- commitMessage: string;
133
- authorName?: (string) | null;
134
- authorEmail?: (string) | null;
135
- type: 'files';
136
- } | {
137
- url: string;
138
- dir?: (string) | null;
139
- commitMessage: string;
140
- authorName?: (string) | null;
141
- authorEmail?: (string) | null;
142
- type: 'tar';
143
- } | {
144
- url: string;
145
- dir?: (string) | null;
146
- commitMessage: string;
147
- authorName?: (string) | null;
148
- authorEmail?: (string) | null;
149
- type: 'zip';
150
- } | {
151
- url: string;
152
- branch?: (string) | null;
153
- dir?: (string) | null;
154
- commitMessage: string;
155
- authorName?: (string) | null;
156
- authorEmail?: (string) | null;
157
- type: 'git';
158
- };
159
- type type = 'files';
160
- type CreateRepoRequest = {
161
- source?: (null | CreateRepoSource);
162
- import?: (null | CreateRepoImport);
163
- defaultBranch?: (string) | null;
164
- };
165
- type CreateRepositoryRequest = {
166
- /**
167
- * This name is not visible to users, and is only accessible to you via API and in the
168
- * dashboard. Mostly useful for observability.
169
- */
170
- name?: (string) | null;
171
- public?: boolean;
172
- /**
173
- * The default branch name for the repository. Defaults to "main" if not specified.
174
- */
175
- defaultBranch?: (string) | null;
176
- /**
177
- * Fork from another Git repository. Cannot be used with `import`.
178
- */
179
- source?: CreateRepoSource;
180
- /**
181
- * Import static content with an initial commit. Cannot be used with `source`.
182
- */
183
- import?: CreateRepoImport;
184
- devServers?: DevServerConfiguration;
185
- };
186
- type CreateRepositoryResponseSuccess = {
187
- repoId: string;
188
- };
189
- type CreateRepoSource = {
190
- url: string;
191
- branch?: (string) | null;
192
- depth?: (number) | null;
193
- };
194
- type CreateVmRequest = {
195
- idleTimeoutSeconds?: (number) | null;
196
- /**
197
- * Optional list of ports to expose externally. If not provided, port 3000
198
- * will be exposed on port 443 by default. Pass an empty array to disable
199
- * external ports. Only ports 8081 and 443 can be configured externally for
200
- * now. Any target port is allowed.
201
- */
202
- ports?: Array<PortMapping> | null;
203
- /**
204
- * Whether the api request should wait for the VM to be ready before
205
- * returning. By default, the VM is considered ready when the serial
206
- * console is ready for login.
207
- */
208
- waitForReadySignal?: (boolean) | null;
209
- /**
210
- * How long to wait for the ready signal before timing out. Defaults to 120
211
- * seconds if not provided.
212
- */
213
- readySignalTimeoutSeconds?: (number) | null;
214
- /**
215
- * Optional working directory for the VM. File system and shell commands
216
- * will be executed in this directory.
217
- */
218
- workdir?: (string) | null;
219
- persistence?: (null | VmPersistence);
220
- };
221
- type CustomBuildOptions = {
222
- command?: (string) | null;
223
- envVars?: {
224
- [key: string]: (string);
225
- } | null;
226
- outDir?: (string) | null;
227
- };
228
- type DeleteRecordResponse = {
229
- message: string;
230
- };
231
- type DeploymentBuildOptions = (CustomBuildOptions) | boolean;
232
- type DeploymentLogEntry = {
233
- deploymentId: string;
234
- accountId: string;
235
- provisionedAt: string;
236
- timeout: string;
237
- state: DeploymentState;
238
- deployedAt?: (string) | null;
239
- domains: Array<(string)>;
240
- envVars: {
241
- [key: string]: (string);
242
- };
243
- };
244
- type DeploymentSource = {
245
- files: {
246
- [key: string]: FreestyleFile;
247
- };
248
- kind: 'files';
249
- } | {
250
- url: string;
251
- kind: 'tar';
252
- } | {
253
- url: string;
254
- branch?: (string) | null;
255
- dir?: (string) | null;
256
- kind: 'git';
257
- };
258
- type kind = 'files';
259
- type DeploymentState = 'provisioning' | 'deployed' | 'failed';
260
- type DescribePermissionResponseSuccess = {
261
- identity: string;
262
- repo: string;
263
- accessLevel?: (null | AccessLevel);
264
- };
265
- type DevServer = {
266
- repoId: string;
267
- gitRef?: (string) | null;
268
- kind: 'repo';
269
- };
270
- type kind2 = 'repo';
271
- type DevServerConfiguration = {
272
- devCommand?: (string) | null;
273
- installCommand?: (string) | null;
274
- timeout?: (number) | null;
275
- envVars?: {
276
- [key: string]: (string);
277
- } | null;
278
- ports?: Array<PortConfig> | null;
279
- preset?: (null | DevServerPreset);
280
- };
281
- type DevServerLogsRequest = {
282
- devServer: DevServer;
283
- /**
284
- * Number of log lines to return per page (default 200)
285
- */
286
- count?: (number) | null;
287
- /**
288
- * 1-based page index. page=1 returns the most recent lines (default 1)
289
- */
290
- page?: (number) | null;
291
- };
292
- type DevServerPreset = 'auto' | 'nextJs' | 'vite' | 'expo';
293
- type DevServerRequest = DevServerConfiguration & {
294
- repoId?: (string) | null;
295
- computeClass?: (string) | null;
296
- /**
297
- * @deprecated
298
- */
299
- domain?: (string) | null;
300
- /**
301
- * @deprecated
302
- */
303
- repo?: (string) | null;
304
- gitRef?: (string) | null;
305
- preDevCommandOnce?: (string) | null;
306
- /**
307
- * @deprecated
308
- */
309
- baseId?: (string) | null;
310
- };
311
- type DevServerRestartRequest = {
312
- devServer: DevServer;
313
- };
314
- type DevServerStatusRequest = {
315
- devServer: DevServer;
316
- };
317
- type DevServerWatchFilesRequest = {
318
- devServer: DevServer;
319
- };
320
- type DnsRecord = {
321
- kind: DnsRecordKind;
322
- name: string;
323
- value: string;
324
- ttl: string;
325
- priority?: (number) | null;
326
- managed: boolean;
327
- };
328
- type DnsRecordData = {
329
- kind: DnsRecordKind;
330
- name: string;
331
- value: string;
332
- ttl?: (string) | null;
333
- priority?: (number) | null;
334
- };
335
- type DnsRecordKind = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'NS';
336
- type DomainVerificationRequest = {
337
- id: string;
338
- domain: string;
339
- accountId: string;
340
- verificationCode: string;
341
- createdAt: string;
342
- };
343
- type ExecAwaitRequest = {
344
- command: string;
345
- terminal?: (string) | null;
346
- };
347
- type ExecRequest = {
348
- devServer: DevServer;
349
- command: string;
350
- /**
351
- * Spawn this command as a background process and return immediately
352
- */
353
- background: boolean;
354
- };
355
- type ExecuteLogEntry = {
356
- deployment: string;
357
- accountId: string;
358
- provisionedAt: string;
359
- startedAt?: (string) | null;
360
- duration?: (string) | null;
361
- state: ExecuteRunState;
362
- envVars: {
363
- [key: string]: (string);
364
- };
365
- };
366
- type ExecuteRunInfo = {
367
- code: string;
368
- nodeModules: {
369
- [key: string]: (string);
370
- };
371
- };
372
- type ExecuteRunState = 'starting' | 'running' | 'complete';
373
- type FileReadContent = {
374
- content: string;
375
- encoding: string;
376
- kind: 'file';
377
- } | {
378
- files: Array<(string)>;
379
- kind: 'directory';
380
- };
381
- type kind3 = 'file';
382
- type ForkVmRequest = {
383
- idleTimeoutSeconds?: (number) | null;
384
- /**
385
- * Optional list of ports to expose externally. If not provided, port 3000
386
- * will be exposed on port 443 by default. Pass an empty array to disable
387
- * external ports. Only ports 8081 and 443 can be configured externally for
388
- * now. Any target port is allowed.
389
- */
390
- ports?: Array<PortMapping> | null;
391
- /**
392
- * Whether the api request should wait for the VM to be ready before
393
- * returning. By default, the VM is considered ready when the serial
394
- * console is ready for login.
395
- */
396
- readySignalTimeoutSeconds?: (number) | null;
397
- /**
398
- * How long to wait for the ready signal before timing out. Defaults to 120
399
- * seconds if not provided.
400
- */
401
- waitForReadySignal?: (boolean) | null;
402
- /**
403
- * Optional working directory for the VM. File system and shell commands
404
- * will be executed in this directory.
405
- */
406
- workdir?: (string) | null;
407
- persistence?: (null | VmPersistence);
408
- };
409
- type FreestyleCloudstateDeployConfiguration = {
410
- /**
411
- * ID of the project to deploy, if not provided will create a new project
412
- */
413
- domains?: Array<(string)> | null;
414
- /**
415
- * The environment variables that the cloudstate deploy can access
416
- */
417
- envVars?: {
418
- [key: string]: (string);
419
- };
420
- cloudstateDatabaseId?: (string) | null;
421
- };
422
- type FreestyleCloudstateDeployErrorResponse = {
423
- message: string;
424
- };
425
- type FreestyleCloudstateDeployRequest = {
426
- classes: string;
427
- config?: FreestyleCloudstateDeployConfiguration;
428
- };
429
- type FreestyleCloudstateDeploySuccessResponse = {
430
- deploymentId: string;
431
- cloudstateDatabaseId: string;
432
- };
433
- type FreestyleDeleteDomainVerificationRequest = {
434
- /**
435
- * The domain to create a verification code for
436
- */
437
- domain: string;
438
- /**
439
- * The verification code
440
- */
441
- verificationCode: string;
442
- };
443
- type FreestyleDeployWebConfiguration = {
444
- /**
445
- * The entrypoint file for the website, if none is provided, we will try to automatically detect it.
446
- */
447
- entrypoint?: (string) | null;
448
- /**
449
- * The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
450
- */
451
- domains?: Array<(string)> | null;
452
- /**
453
- * Project ID was our original way of tracking deployments together, it is now deprecated and will be removed in the future. Please use the domains field to specify the domains for your project.
454
- * @deprecated
455
- */
456
- projectId?: (string) | null;
457
- /**
458
- * Node Modules to install for the website, a map of package names to versions, e.g. { \"express\": \"4.17.1\" }. If this and a package-lock.json are provided, the package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock is also provided, the versions here will override the versions in those lock files.
459
- */
460
- nodeModules?: {
461
- [key: string]: (string);
462
- } | null;
463
- /**
464
- * The environment variables that the website can access
465
- * e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
466
- */
467
- envVars?: {
468
- [key: string]: (string);
469
- } | null;
470
- serverStartCheck?: boolean;
471
- networkPermissions?: Array<FreestyleNetworkPermission> | null;
472
- build?: (null | DeploymentBuildOptions);
473
- /**
474
- * Timeout for the deployment in seconds. If not provided, the default is 10 seconds.
475
- */
476
- timeout?: (number) | null;
477
- /**
478
- * Whether to wait for the deployment to finish before returning. Defaults to true.
479
- */
480
- await?: (boolean) | null;
481
- };
482
- type FreestyleDeployWebErrorResponse = {
483
- message: string;
484
- };
485
- type FreestyleDeployWebPayload = {
486
- /**
487
- * The files to deploy, a map of file paths to file contents, e.g. { \"index.js\": {\"content\": \"your main\", \"encoding\": \"utf-8\"}, \"file2.js\": {\"content\": \"your helper\" } }
488
- *
489
- * **Do not include node modules in this bundle, they will not work**. Instead, includes a package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock, the node modules for the project will be installed from that lock file, or use the node_modules field in the configuration to specify the node modules to install.
490
- */
491
- files: {
492
- [key: string]: FreestyleFile;
493
- };
494
- config?: FreestyleDeployWebConfiguration;
495
- };
496
- type FreestyleDeployWebPayloadV2 = {
497
- /**
498
- * The files to deploy, a map of file paths to file contents, e.g. { \"index.js\": {\"content\": \"your main\", \"encoding\": \"utf-8\"}, \"file2.js\": {\"content\": \"your helper\" } }
499
- *
500
- * **Do not include node modules in this bundle, they will not work**. Instead, includes a package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock, the node modules for the project will be installed from that lock file, or use the node_modules field in the configuration to specify the node modules to install.
501
- */
502
- source: DeploymentSource;
503
- config?: FreestyleDeployWebConfiguration;
504
- };
505
- type FreestyleDeployWebSuccessResponseV2 = {
506
- deploymentId: string;
507
- /**
508
- * @deprecated
509
- */
510
- projectId: string;
511
- domains?: Array<(string)> | null;
512
- /**
513
- * The entrypoint file for the website. If not specified we try to automatically detect it.
514
- */
515
- entrypoint: string;
516
- } | {
517
- deploymentId: string;
518
- };
519
- type FreestyleDomainVerificationRequest = {
520
- /**
521
- * The domain to create a verification code for
522
- */
523
- domain: string;
524
- };
525
- type FreestyleExecuteScriptParams = {
526
- /**
527
- * The JavaScript or TypeScript script to execute
528
- */
529
- script: string;
530
- config?: FreestyleExecuteScriptParamsConfiguration;
531
- };
532
- type FreestyleExecuteScriptParamsConfiguration = {
533
- /**
534
- * The environment variables to set for the script
535
- */
536
- envVars?: {
537
- [key: string]: (string);
538
- };
539
- /**
540
- * The node modules to install for the script
541
- */
542
- nodeModules?: {
543
- [key: string]: (string);
544
- };
545
- /**
546
- * Tags for you to organize your scripts, useful for tracking what you're running
547
- */
548
- tags?: Array<(string)>;
549
- /**
550
- * The script timeout
551
- */
552
- timeout?: (number) | null;
553
- /**
554
- * If false, we'll not resolve peer dependencies for the packages given, this can speed up execute performance, but will break packages with peers unless the peers are manually specified.
555
- */
556
- peerDependencyResolution?: boolean;
557
- networkPermissions?: Array<FreestyleNetworkPermission> | null;
558
- /**
559
- * These headers will be added to every fetch request made through the script
560
- */
561
- customHeaders?: {
562
- [key: string]: (string);
563
- };
564
- /**
565
- * Proxy all outgoing requests through this URL
566
- */
567
- proxy?: (string) | null;
568
- };
569
- type FreestyleExecuteScriptResultSuccess = {
570
- /**
571
- * The return value of the default export of the script
572
- */
573
- result: unknown;
574
- logs: Array<FreestyleJavaScriptLog>;
575
- };
576
- type FreestyleFile = {
577
- /**
578
- * The content of the file
579
- */
580
- content: string;
581
- /**
582
- * The encoding of the file. Either **utf-8** or **base64**
583
- */
584
- encoding?: string;
585
- };
586
- type FreestyleGetLogsResponse = {
587
- logs: Array<FreestyleLogResponseObject>;
588
- };
589
- type FreestyleJavaScriptLog = {
590
- /**
591
- * The log message
592
- */
593
- message: string;
594
- /**
595
- * The log level
596
- */
597
- type: string;
598
- };
599
- type FreestyleLogResponseObject = {
600
- message: string;
601
- timestamp: string;
602
- };
603
- type FreestyleNetworkPermission = (NetworkPermissionData & {
604
- action: 'allow';
605
- }) | (NetworkPermissionData & {
606
- action: 'deny';
607
- });
608
- type action = 'allow';
609
- type FreestyleSandboxDomainMapping = {
610
- id: string;
611
- domain: string;
612
- deploymentId: string;
613
- ownershipId: string;
614
- createdAt: string;
615
- };
616
- /**
617
- * Verify a domain verification request, can either be done for a domain, or for a specific request
618
- */
619
- type FreestyleVerifyDomainRequest = {
620
- domain: string;
621
- } | {
622
- id: string;
623
- };
624
- type GetDefaultBranchResponse = {
625
- defaultBranch: string;
626
- };
627
- type GitCommitPushRequest = {
628
- devServer: DevServer;
629
- message: string;
630
- };
631
- type GitContents = {
632
- name: string;
633
- path: string;
634
- /**
635
- * The hash / object ID of the file.
636
- */
637
- sha: string;
638
- size: number;
639
- /**
640
- * Base64-encoded content.
641
- */
642
- content: string;
643
- type: 'file';
644
- } | {
645
- name: string;
646
- path: string;
647
- /**
648
- * The hash / object ID of the directory.
649
- */
650
- sha: string;
651
- entries: Array<GitContentsDirEntryItem>;
652
- type: 'dir';
653
- };
654
- type type2 = 'file';
655
- type GitContentsDirEntryItem = {
656
- name: string;
657
- path: string;
658
- /**
659
- * The hash / object ID of the file.
660
- */
661
- sha: string;
662
- size: number;
663
- type: 'file';
664
- } | {
665
- name: string;
666
- path: string;
667
- /**
668
- * The hash / object ID of the directory.
669
- */
670
- sha: string;
671
- entries: Array<({
672
- [key: string]: unknown;
673
- })>;
674
- type: 'dir';
675
- };
676
- type GithubRepoSyncConfig = {
677
- freestyleRepoId: string;
678
- accountId: string;
679
- installationId: number;
680
- githubRepoId: number;
681
- githubRepoName: string;
682
- createdAt: string;
683
- };
684
- type GithubSyncConfigResponse = {
685
- githubRepoName: string;
686
- };
687
- type GitIdentity = {
688
- id: string;
689
- managed: boolean;
690
- };
691
- /**
692
- * A reference to a Git object
693
- */
694
- type GitReference = {
695
- /**
696
- * The name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")
697
- */
698
- name: string;
699
- /**
700
- * The SHA-1 hash of the Git object this reference points to
701
- */
702
- sha: string;
703
- };
704
- type GitRepositoryTrigger = {
705
- repositoryId: string;
706
- trigger: ({
707
- branches?: Array<(string)> | null;
708
- globs?: Array<(string)> | null;
709
- event: 'push';
710
- });
711
- action: ({
712
- endpoint: string;
713
- action: 'webhook';
714
- });
715
- managed: boolean;
716
- id: string;
717
- createdAt: string;
718
- };
719
- type event = 'push';
720
- type action2 = 'webhook';
721
- type GitTrigger = {
722
- branches?: Array<(string)> | null;
723
- globs?: Array<(string)> | null;
724
- event: 'push';
725
- };
726
- type GitTriggerAction = {
727
- endpoint: string;
728
- action: 'webhook';
729
- };
730
- type GrantPermissionRequest = {
731
- permission: AccessLevel;
732
- };
733
- type InternalServerError = string;
734
- type ListGitTokensResponseSuccess = {
735
- tokens: Array<AccessTokenInfo>;
736
- };
737
- type ListPermissionResponseSuccess = {
738
- repositories: Array<AccessibleRepository>;
739
- };
740
- type ListRecordsResponse = {
741
- records: Array<DnsRecord>;
742
- };
743
- type NetworkPermissionData = {
744
- query: string;
745
- behavior?: Behavior;
746
- };
747
- type PortConfig = {
748
- port: number;
749
- targetPort: number;
750
- };
751
- type PortMapping = {
752
- port: number;
753
- targetPort: number;
754
- };
755
- type ReadFileEphemeralDevServerResponses = {
756
- id: string;
757
- isNew: boolean;
758
- content: ({
759
- content: string;
760
- encoding: string;
761
- kind: 'file';
762
- } | {
763
- files: Array<(string)>;
764
- kind: 'directory';
765
- });
766
- } | {
767
- id: string;
768
- isNew: boolean;
769
- } | InternalServerError;
770
- type RepositoryInfoRaw = {
771
- id: string;
772
- name?: (string) | null;
773
- accountId: string;
774
- visibility: Visibility;
775
- defaultBranch: string;
776
- };
777
- type RepositoryMetadata = {
778
- branches: {
779
- [key: string]: BranchDetails;
780
- };
781
- tags: {
782
- [key: string]: TagDetails;
783
- };
784
- defaultBranch: string;
785
- };
786
- type ResizeVmRequest = {
787
- sizeMb: number;
788
- };
789
- type RevokeGitTokenRequest = {
790
- tokenId: string;
791
- };
792
- type SetDefaultBranchRequest = {
793
- defaultBranch: string;
794
- };
795
- type SetDefaultBranchResponse = {
796
- [key: string]: unknown;
797
- };
798
- type ShutdownDevServerRequest = {
799
- /**
800
- * The dev server to shutdown
801
- */
802
- devServer: DevServer;
803
- };
804
- type Signature = {
805
- /**
806
- * The date marker for this signature
807
- */
808
- date: string;
809
- name: string;
810
- email: string;
811
- };
812
- type StartVmRequest = {
813
- idleTimeoutSeconds?: (number) | null;
814
- readySignalTimeoutSeconds?: (number) | null;
815
- waitForReadySignal?: (boolean) | null;
816
- };
817
- type TagDetails = {
818
- name: string;
819
- target: string;
820
- message?: (string) | null;
821
- };
822
- /**
823
- * Tag object
824
- */
825
- type TagObject = {
826
- /**
827
- * The tag name
828
- */
829
- name: string;
830
- tagger?: (null | Signature);
831
- /**
832
- * The tag message
833
- */
834
- message?: (string) | null;
835
- /**
836
- * The object this tag points to
837
- */
838
- target: TagTarget;
839
- /**
840
- * The tag's hash ID
841
- */
842
- sha: string;
843
- };
844
- type TagTarget = {
845
- /**
846
- * The target object's hash ID
847
- */
848
- sha: string;
849
- };
850
- type TreeEntry = {
851
- path: string;
852
- sha: string;
853
- type: 'blob';
854
- } | {
855
- path: string;
856
- sha: string;
857
- type: 'tree';
858
- };
859
- type type3 = 'blob';
860
- /**
861
- * Tree object
862
- */
863
- type TreeObject = {
864
- /**
865
- * The tree's entries
866
- */
867
- tree: Array<TreeEntry>;
868
- /**
869
- * The tree's hash ID
870
- */
871
- sha: string;
872
- };
873
- type UpdateDevServerConfigRequest = DevServerConfiguration & {
874
- branch?: (string) | null;
875
- };
876
- type UpdatePermissionRequest = {
877
- permission: AccessLevel;
878
- };
879
- type Visibility = 'public' | 'private';
880
- type VmPersistence = {
881
- /**
882
- * Priority for eviction when storage quota is reached. Higher values
883
- * mean the VM is less likely to be evicted. Range is 0-10, default is
884
- * 5.
885
- */
886
- priority?: (number) | null;
887
- type: 'sticky';
888
- } | {
889
- type: 'ephemeral';
890
- } | {
891
- type: 'persistent';
892
- };
893
- type type4 = 'sticky';
894
- type WriteFileRequest = {
895
- content: string;
896
- };
897
- type HandleDeployCloudstateData = {
898
- body: FreestyleCloudstateDeployRequest;
899
- };
900
- type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
901
- type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
902
- type HandleBackupCloudstateData = {
903
- path: {
904
- id: string;
905
- };
906
- };
907
- type HandleBackupCloudstateResponse = (Array<(number)>);
908
- type HandleBackupCloudstateError = (unknown);
909
- type HandleListRecordsData = {
910
- query: {
911
- domain: string;
912
- };
913
- };
914
- type HandleListRecordsResponse = (ListRecordsResponse);
915
- type HandleListRecordsError = ({
916
- message: string;
917
- });
918
- type HandleCreateRecordData = {
919
- body: CreateRecordParams;
920
- };
921
- type HandleCreateRecordResponse = (CreateRecordResponse);
922
- type HandleCreateRecordError = ({
923
- domain: string;
924
- account_id: string;
925
- } | {
926
- message: string;
927
- });
928
- type HandleDeleteRecordData = {
929
- query: {
930
- domain: string;
931
- record: DnsRecord;
932
- };
933
- };
934
- type HandleDeleteRecordResponse = (DeleteRecordResponse);
935
- type HandleDeleteRecordError = ({
936
- domain: string;
937
- account_id: string;
938
- } | {
939
- domain: string;
940
- name: string;
941
- });
942
- type HandleVerifyWildcardData = {
943
- path: {
944
- domain: string;
945
- };
946
- };
947
- type HandleVerifyWildcardResponse = ({
948
- domain: string;
949
- });
950
- type HandleVerifyWildcardError = ({
951
- message: string;
952
- });
953
- type HandleListDomainsData = {
954
- query?: {
955
- implicitlyOwned?: (boolean) | null;
956
- limit?: (number) | null;
957
- offset?: (number) | null;
958
- };
959
- };
960
- type HandleListDomainsResponse = (Array<{
961
- domain: string;
962
- accountId: string;
963
- createdAt: string;
964
- id: string;
965
- verifiedDns: boolean;
966
- implicitlyOwned: boolean;
967
- deployToDomain: boolean;
968
- manageDns: boolean;
969
- deployToSubdomains: boolean;
970
- }>);
971
- type HandleListDomainsError = ({
972
- message: string;
973
- });
974
- type HandleListDomainMappingsData = {
975
- query?: {
976
- domain?: (string) | null;
977
- domainOwnership?: (string) | null;
978
- limit?: (number) | null;
979
- offset?: (number) | null;
980
- };
981
- };
982
- type HandleListDomainMappingsResponse = (Array<FreestyleSandboxDomainMapping>);
983
- type HandleListDomainMappingsError = (unknown);
984
- type HandleInsertDomainMappingData = {
985
- body: CreateDomainMappingRequest;
986
- path: {
987
- domain: string;
988
- };
989
- };
990
- type HandleInsertDomainMappingResponse = (FreestyleSandboxDomainMapping);
991
- type HandleInsertDomainMappingError = ({
992
- message: string;
993
- });
994
- type HandleDeleteDomainMappingData = {
995
- path: {
996
- domain: string;
997
- };
998
- };
999
- type HandleListDomainVerificationRequestsResponse = (Array<{
1000
- verificationCode: string;
1001
- domain: string;
1002
- createdAt: string;
1003
- }>);
1004
- type HandleListDomainVerificationRequestsError = ({
1005
- message: string;
1006
- });
1007
- type HandleVerifyDomainData = {
1008
- body: FreestyleVerifyDomainRequest;
1009
- };
1010
- type HandleVerifyDomainResponse = ({
1011
- domain: string;
1012
- });
1013
- type HandleVerifyDomainError = ({
1014
- message: string;
1015
- });
1016
- type HandleCreateDomainVerificationData = {
1017
- body: FreestyleDomainVerificationRequest;
1018
- };
1019
- type HandleCreateDomainVerificationResponse = (DomainVerificationRequest);
1020
- type HandleCreateDomainVerificationError = ({
1021
- message: string;
1022
- });
1023
- type HandleDeleteDomainVerificationData = {
1024
- body: FreestyleDeleteDomainVerificationRequest;
1025
- };
1026
- type HandleDeleteDomainVerificationResponse = ({
1027
- verificationCode: string;
1028
- domain: string;
1029
- });
1030
- type HandleDeleteDomainVerificationError = ({
1031
- message: string;
1032
- });
1033
- type HandleEphemeralDevServerData = {
1034
- body: DevServerRequest;
1035
- };
1036
- type HandleEphemeralDevServerResponse = ({
1037
- /**
1038
- * @deprecated
1039
- */
1040
- url: string;
1041
- isNew: boolean;
1042
- devCommandRunning: boolean;
1043
- installCommandRunning: boolean;
1044
- mcpEphemeralUrl?: (string) | null;
1045
- ephemeralUrl?: (string) | null;
1046
- vmId?: (string) | null;
1047
- baseId?: (string) | null;
1048
- });
1049
- type HandleEphemeralDevServerError = (InternalServerError);
1050
- type HandleExecOnEphemeralDevServerData = {
1051
- body: ExecRequest;
1052
- };
1053
- type HandleExecOnEphemeralDevServerResponse = ({
1054
- id: string;
1055
- isNew: boolean;
1056
- stdout?: Array<(string)> | null;
1057
- stderr?: Array<(string)> | null;
1058
- });
1059
- type HandleExecOnEphemeralDevServerError = (InternalServerError);
1060
- type HandleWriteFileFromEphemeralDevServerData = {
1061
- path: {
1062
- /**
1063
- * The path to the file to read from the dev server
1064
- */
1065
- filepath: string;
1066
- };
1067
- };
1068
- type HandleWriteFileFromEphemeralDevServerResponse = ({
1069
- id: string;
1070
- isNew: boolean;
1071
- });
1072
- type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
1073
- type HandleReadFileFromEphemeralDevServerData = {
1074
- path: {
1075
- /**
1076
- * The path to the file to read from the dev server
1077
- */
1078
- filepath: string;
1079
- };
1080
- };
1081
- type HandleReadFileFromEphemeralDevServerResponse = ({
1082
- id: string;
1083
- isNew: boolean;
1084
- content: ({
1085
- content: string;
1086
- encoding: string;
1087
- kind: 'file';
1088
- } | {
1089
- files: Array<(string)>;
1090
- kind: 'directory';
1091
- });
1092
- });
1093
- type HandleReadFileFromEphemeralDevServerError = ({
1094
- id: string;
1095
- isNew: boolean;
1096
- } | InternalServerError);
1097
- type HandleGitCommitPushData = {
1098
- body: GitCommitPushRequest;
1099
- };
1100
- type HandleGitCommitPushResponse = ({
1101
- id: string;
1102
- isNew: boolean;
1103
- });
1104
- type HandleGitCommitPushError = (InternalServerError);
1105
- type HandleDevServerLogsData = {
1106
- body: DevServerLogsRequest;
1107
- };
1108
- type HandleDevServerLogsResponse = ({
1109
- logs: Array<(string)>;
1110
- });
1111
- type HandleDevServerLogsError = (InternalServerError);
1112
- type HandleDevServerRestartData = {
1113
- body: DevServerRestartRequest;
1114
- };
1115
- type HandleDevServerRestartResponse = ({
1116
- restarted: boolean;
1117
- });
1118
- type HandleDevServerRestartError = (InternalServerError);
1119
- type HandleShutdownDevServerData = {
1120
- body: ShutdownDevServerRequest;
1121
- };
1122
- type HandleShutdownDevServerResponse = ({
1123
- success: boolean;
1124
- message: string;
1125
- });
1126
- type HandleShutdownDevServerError = ({
1127
- message: string;
1128
- } | InternalServerError);
1129
- type HandleDevServerStatusData = {
1130
- body: DevServerStatusRequest;
1131
- };
1132
- type HandleDevServerStatusResponse = ({
1133
- installing: boolean;
1134
- devRunning: boolean;
1135
- });
1136
- type HandleDevServerStatusError = (InternalServerError);
1137
- type HandleWatchDevServerFilesData = {
1138
- body: DevServerWatchFilesRequest;
1139
- };
1140
- type HandleWatchDevServerFilesResponse = (string);
1141
- type HandleWatchDevServerFilesError = unknown;
1142
- type HandleListExecuteRunsData = {
1143
- query?: {
1144
- limit?: (number) | null;
1145
- offset?: (number) | null;
1146
- };
1147
- };
1148
- type HandleListExecuteRunsResponse = ({
1149
- entries: Array<ExecuteLogEntry>;
1150
- total: number;
1151
- offset: number;
1152
- });
1153
- type HandleListExecuteRunsError = ({
1154
- message: string;
1155
- });
1156
- type HandleGetExecuteRunData = {
1157
- path: {
1158
- deployment: string;
1159
- };
1160
- };
1161
- type HandleGetExecuteRunResponse = ({
1162
- metadata: ExecuteLogEntry;
1163
- code?: (null | ExecuteRunInfo);
1164
- });
1165
- type HandleGetExecuteRunError = ({
1166
- message: string;
1167
- });
1168
- type HandleExecuteScriptData = {
1169
- body: FreestyleExecuteScriptParams;
1170
- };
1171
- type HandleExecuteScriptResponse = ({
1172
- /**
1173
- * The return value of the default export of the script
1174
- */
1175
- result: unknown;
1176
- logs: Array<FreestyleJavaScriptLog>;
1177
- });
1178
- type HandleExecuteScriptError = ({
1179
- error: string;
1180
- logs?: Array<FreestyleJavaScriptLog> | null;
1181
- });
1182
- type HandleListIdentitiesData = {
1183
- query?: {
1184
- includeManaged?: (boolean) | null;
1185
- limit?: (number) | null;
1186
- offset?: (number) | null;
1187
- };
1188
- };
1189
- type HandleListIdentitiesResponse = ({
1190
- identities: Array<GitIdentity>;
1191
- offset: number;
1192
- total: number;
1193
- });
1194
- type HandleListIdentitiesError = ({
1195
- message: string;
1196
- });
1197
- type HandleCreateIdentityResponse = (GitIdentity);
1198
- type HandleCreateIdentityError = ({
1199
- message: string;
1200
- });
1201
- type HandleDeleteIdentityData = {
1202
- path: {
1203
- identity: string;
1204
- };
1205
- };
1206
- type HandleDeleteIdentityResponse = ({
1207
- [key: string]: unknown;
1208
- });
1209
- type HandleDeleteIdentityError = ({
1210
- message: string;
1211
- });
1212
- type HandleListPermissionsData = {
1213
- path: {
1214
- identity: string;
1215
- };
1216
- query?: {
1217
- /**
1218
- * Maximum number of repositories to return
1219
- */
1220
- limit?: number;
1221
- /**
1222
- * Offset for the list of repositories
1223
- */
1224
- offset?: number;
1225
- };
1226
- };
1227
- type HandleListPermissionsResponse = (ListPermissionResponseSuccess);
1228
- type HandleListPermissionsError = ({
1229
- message: string;
1230
- });
1231
- type HandleDescribePermissionData = {
1232
- path: {
1233
- identity: string;
1234
- repo: string;
1235
- };
1236
- };
1237
- type HandleDescribePermissionResponse = (DescribePermissionResponseSuccess);
1238
- type HandleDescribePermissionError = ({
1239
- message: string;
1240
- });
1241
- type HandleGrantPermissionData = {
1242
- body: GrantPermissionRequest;
1243
- path: {
1244
- identity: string;
1245
- repo: string;
1246
- };
1247
- };
1248
- type HandleGrantPermissionResponse = ({
1249
- [key: string]: unknown;
1250
- });
1251
- type HandleGrantPermissionError = ({
1252
- message: string;
1253
- });
1254
- type HandleRevokePermissionData = {
1255
- path: {
1256
- identity: string;
1257
- repo: string;
1258
- };
1259
- };
1260
- type HandleRevokePermissionResponse = ({
1261
- [key: string]: unknown;
1262
- });
1263
- type HandleRevokePermissionError = ({
1264
- message: string;
1265
- });
1266
- type HandleUpdatePermissionData = {
1267
- body: UpdatePermissionRequest;
1268
- path: {
1269
- identity: string;
1270
- repo: string;
1271
- };
1272
- };
1273
- type HandleUpdatePermissionResponse = ({
1274
- [key: string]: unknown;
1275
- });
1276
- type HandleUpdatePermissionError = ({
1277
- message: string;
1278
- });
1279
- type HandleListGitTokensData = {
1280
- path: {
1281
- identity: string;
1282
- };
1283
- };
1284
- type HandleListGitTokensResponse = (ListGitTokensResponseSuccess);
1285
- type HandleListGitTokensError = ({
1286
- message: string;
1287
- });
1288
- type HandleCreateGitTokenData = {
1289
- path: {
1290
- identity: string;
1291
- };
1292
- };
1293
- type HandleCreateGitTokenResponse = (CreatedToken);
1294
- type HandleCreateGitTokenError = ({
1295
- message: string;
1296
- });
1297
- type HandleRevokeGitTokenData = {
1298
- body: RevokeGitTokenRequest;
1299
- path: {
1300
- identity: string;
1301
- };
1302
- };
1303
- type HandleRevokeGitTokenResponse = ({
1304
- [key: string]: unknown;
1305
- });
1306
- type HandleRevokeGitTokenError = ({
1307
- message: string;
1308
- });
1309
- type HandleListRepositoriesData = {
1310
- query?: {
1311
- /**
1312
- * Maximum number of repositories to return
1313
- */
1314
- limit?: number;
1315
- /**
1316
- * Offset for the list of repositories
1317
- */
1318
- offset?: number;
1319
- };
1320
- };
1321
- type HandleListRepositoriesResponse = ({
1322
- repositories: Array<RepositoryMetadata>;
1323
- total: number;
1324
- offset: number;
1325
- });
1326
- type HandleListRepositoriesError = ({
1327
- message: string;
1328
- });
1329
- type HandleCreateRepoData = {
1330
- body: {
1331
- /**
1332
- * This name is not visible to users, and is only accessible to you via API and in the
1333
- * dashboard. Mostly useful for observability.
1334
- */
1335
- name?: (string) | null;
1336
- public?: boolean;
1337
- /**
1338
- * The default branch name for the repository. Defaults to "main" if not specified.
1339
- */
1340
- defaultBranch?: (string) | null;
1341
- /**
1342
- * Fork from another Git repository. Cannot be used with `import`.
1343
- */
1344
- source?: CreateRepoSource;
1345
- /**
1346
- * Import static content with an initial commit. Cannot be used with `source`.
1347
- */
1348
- import?: CreateRepoImport;
1349
- devServers?: DevServerConfiguration;
1350
- };
1351
- };
1352
- type HandleCreateRepoResponse = (CreateRepositoryResponseSuccess);
1353
- type HandleCreateRepoError = ({
1354
- message: string;
1355
- });
1356
- type HandleGetDefaultBranchData = {
1357
- path: {
1358
- /**
1359
- * The repository ID
1360
- */
1361
- repo_id: string;
1362
- };
1363
- };
1364
- type HandleGetDefaultBranchResponse = (GetDefaultBranchResponse);
1365
- type HandleGetDefaultBranchError = unknown;
1366
- type HandleSetDefaultBranchData = {
1367
- body: SetDefaultBranchRequest;
1368
- path: {
1369
- /**
1370
- * The repository ID
1371
- */
1372
- repo_id: string;
1373
- };
1374
- };
1375
- type HandleSetDefaultBranchResponse = (SetDefaultBranchResponse);
1376
- type HandleSetDefaultBranchError = unknown;
1377
- type GetDevServerConfigurationData = {
1378
- path: {
1379
- /**
1380
- * Repository ID
1381
- */
1382
- repo_id: string;
1383
- };
1384
- query: {
1385
- /**
1386
- * Git branch name
1387
- */
1388
- branch: string;
1389
- };
1390
- };
1391
- type GetDevServerConfigurationResponse = (DevServerConfiguration);
1392
- type GetDevServerConfigurationError = (unknown);
1393
- type UpdateDevServerConfigurationData = {
1394
- body: UpdateDevServerConfigRequest;
1395
- path: {
1396
- /**
1397
- * Repository ID
1398
- */
1399
- repo_id: string;
1400
- };
1401
- };
1402
- type UpdateDevServerConfigurationResponse = (unknown);
1403
- type UpdateDevServerConfigurationError = (unknown);
1404
- type DeleteDevServerConfigurationData = {
1405
- path: {
1406
- /**
1407
- * Repository ID
1408
- */
1409
- repo_id: string;
1410
- };
1411
- query: {
1412
- /**
1413
- * Git branch name (optional, defaults to repository default branch)
1414
- */
1415
- branch: string;
1416
- };
1417
- };
1418
- type DeleteDevServerConfigurationResponse = (void);
1419
- type DeleteDevServerConfigurationError = (unknown);
1420
- type GetGithubSyncData = {
1421
- path: {
1422
- /**
1423
- * Repository ID
1424
- */
1425
- repo_id: string;
1426
- };
1427
- };
1428
- type GetGithubSyncResponse = (GithubSyncConfigResponse);
1429
- type GetGithubSyncError = (unknown);
1430
- type ConfigureGithubSyncData = {
1431
- body: ConfigureGithubSyncRequest;
1432
- path: {
1433
- /**
1434
- * Repository ID
1435
- */
1436
- repo_id: string;
1437
- };
1438
- };
1439
- type ConfigureGithubSyncResponse = (unknown);
1440
- type ConfigureGithubSyncError = (unknown);
1441
- type RemoveGithubSyncData = {
1442
- path: {
1443
- /**
1444
- * Repository ID
1445
- */
1446
- repo_id: string;
1447
- };
1448
- };
1449
- type RemoveGithubSyncResponse = (unknown);
1450
- type RemoveGithubSyncError = (unknown);
1451
- type HandleGetRepoInfoData = {
1452
- path: {
1453
- /**
1454
- * The repository id
1455
- */
1456
- repo: string;
1457
- };
1458
- };
1459
- type HandleGetRepoInfoResponse = (RepositoryInfoRaw);
1460
- type HandleGetRepoInfoError = (unknown);
1461
- type HandleDeleteRepoData = {
1462
- path: {
1463
- /**
1464
- * The repository id
1465
- */
1466
- repo: string;
1467
- };
1468
- };
1469
- type HandleDeleteRepoResponse = ({
1470
- [key: string]: unknown;
1471
- });
1472
- type HandleDeleteRepoError = ({
1473
- message: string;
1474
- } | {
1475
- [key: string]: unknown;
1476
- });
1477
- type HandleGetContentsData = {
1478
- path: {
1479
- /**
1480
- * The path to the file or directory. Empty for root.
1481
- */
1482
- path: (string) | null;
1483
- /**
1484
- * The repository ID.
1485
- */
1486
- repo: string;
1487
- };
1488
- query?: {
1489
- /**
1490
- * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1491
- */
1492
- ref?: string;
1493
- };
1494
- };
1495
- type HandleGetContentsResponse = (GitContents);
1496
- type HandleGetContentsError = ({
1497
- message: string;
1498
- });
1499
- type HandleGetBlobData = {
1500
- path: {
1501
- /**
1502
- * The object's hash
1503
- */
1504
- hash: string;
1505
- /**
1506
- * The repository id
1507
- */
1508
- repo: string;
1509
- };
1510
- };
1511
- type HandleGetBlobResponse = (BlobObject);
1512
- type HandleGetBlobError = ({
1513
- message: string;
1514
- });
1515
- type HandleListCommitsData = {
1516
- path: {
1517
- /**
1518
- * The repository id
1519
- */
1520
- repo: string;
1521
- };
1522
- query?: {
1523
- /**
1524
- * Branch name (defaults to HEAD)
1525
- */
1526
- branch?: (string) | null;
1527
- /**
1528
- * Maximum number of commits to return (default: 50, max: 500)
1529
- */
1530
- limit?: (number) | null;
1531
- /**
1532
- * Number of commits to skip (default: 0)
1533
- */
1534
- offset?: (number) | null;
1535
- };
1536
- };
1537
- type HandleListCommitsResponse = (CommitList);
1538
- type HandleListCommitsError = ({
1539
- message: string;
1540
- });
1541
- type HandleGetCommitData = {
1542
- path: {
1543
- /**
1544
- * The object's hash
1545
- */
1546
- hash: string;
1547
- /**
1548
- * The repository id
1549
- */
1550
- repo: string;
1551
- };
1552
- };
1553
- type HandleGetCommitResponse = (CommitObject);
1554
- type HandleGetCommitError = ({
1555
- message: string;
1556
- });
1557
- type HandleGetRefBranchData = {
1558
- path: {
1559
- /**
1560
- * The branch's name
1561
- */
1562
- branch: string;
1563
- /**
1564
- * The repository id
1565
- */
1566
- repo: string;
1567
- };
1568
- };
1569
- type HandleGetRefBranchResponse = (GitReference);
1570
- type HandleGetRefBranchError = (unknown | {
1571
- message: string;
1572
- });
1573
- type HandleGetRefTagData = {
1574
- path: {
1575
- /**
1576
- * The repository id
1577
- */
1578
- repo: string;
1579
- /**
1580
- * The tag's name
1581
- */
1582
- tag: string;
1583
- };
1584
- };
1585
- type HandleGetRefTagResponse = (GitReference);
1586
- type HandleGetRefTagError = (unknown | {
1587
- message: string;
1588
- });
1589
- type HandleGetTagData = {
1590
- path: {
1591
- /**
1592
- * The object's hash
1593
- */
1594
- hash: string;
1595
- /**
1596
- * The repository id
1597
- */
1598
- repo: string;
1599
- };
1600
- };
1601
- type HandleGetTagResponse = (TagObject);
1602
- type HandleGetTagError = ({
1603
- message: string;
1604
- });
1605
- type HandleGetTreeData = {
1606
- path: {
1607
- /**
1608
- * The object's hash
1609
- */
1610
- hash: string;
1611
- /**
1612
- * The repository id
1613
- */
1614
- repo: string;
1615
- };
1616
- };
1617
- type HandleGetTreeResponse = (TreeObject);
1618
- type HandleGetTreeError = ({
1619
- message: string;
1620
- });
1621
- type HandleDownloadTarballData = {
1622
- path: {
1623
- /**
1624
- * The repository id
1625
- */
1626
- repo: string;
1627
- };
1628
- query?: {
1629
- /**
1630
- * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1631
- */
1632
- ref?: string;
1633
- };
1634
- };
1635
- type HandleDownloadTarballResponse = (unknown);
1636
- type HandleDownloadTarballError = ({
1637
- message: string;
1638
- });
1639
- type HandleListGitTriggersData = {
1640
- path: {
1641
- /**
1642
- * The repository id
1643
- */
1644
- repo: string;
1645
- };
1646
- };
1647
- type HandleListGitTriggersResponse = ({
1648
- triggers: Array<GitRepositoryTrigger>;
1649
- });
1650
- type HandleListGitTriggersError = ({
1651
- message: string;
1652
- });
1653
- type HandleCreateGitTriggerData = {
1654
- body: {
1655
- trigger: ({
1656
- branches?: Array<(string)> | null;
1657
- globs?: Array<(string)> | null;
1658
- event: 'push';
1659
- });
1660
- action: ({
1661
- endpoint: string;
1662
- action: 'webhook';
1663
- });
1664
- };
1665
- path: {
1666
- /**
1667
- * The repository id
1668
- */
1669
- repo: string;
1670
- };
1671
- };
1672
- type HandleCreateGitTriggerResponse = ({
1673
- triggerId: string;
1674
- });
1675
- type HandleCreateGitTriggerError = ({
1676
- message: string;
1677
- });
1678
- type HandleDeleteGitTriggerData = {
1679
- path: {
1680
- /**
1681
- * The repository id
1682
- */
1683
- repo: string;
1684
- /**
1685
- * The trigger id
1686
- */
1687
- trigger: string;
1688
- };
1689
- };
1690
- type HandleDeleteGitTriggerResponse = ({
1691
- [key: string]: unknown;
1692
- });
1693
- type HandleDeleteGitTriggerError = ({
1694
- message: string;
1695
- } | {
1696
- [key: string]: unknown;
1697
- });
1698
- type HandleDownloadZipData = {
1699
- path: {
1700
- /**
1701
- * The repository id
1702
- */
1703
- repo: string;
1704
- };
1705
- query?: {
1706
- /**
1707
- * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1708
- */
1709
- ref?: string;
1710
- };
1711
- };
1712
- type HandleDownloadZipResponse = (unknown);
1713
- type HandleDownloadZipError = ({
1714
- message: string;
1715
- });
1716
- type HandleGetLogsData = {
1717
- query?: {
1718
- deploymentId?: (string) | null;
1719
- domain?: (string) | null;
1720
- };
1721
- };
1722
- type HandleGetLogsResponse = (FreestyleGetLogsResponse);
1723
- type HandleGetLogsError = unknown;
1724
- type CreateVmData = {
1725
- body: CreateVmRequest;
1726
- };
1727
- type ResizeVmData = {
1728
- body: ResizeVmRequest;
1729
- path: {
1730
- id: string;
1731
- };
1732
- };
1733
- type GetVmData = {
1734
- path: {
1735
- vm_id: string;
1736
- };
1737
- };
1738
- type DeleteVmData = {
1739
- path: {
1740
- /**
1741
- * The ID of the VM to delete
1742
- */
1743
- vm_id: string;
1744
- };
1745
- };
1746
- type WaitVmData = {
1747
- path: {
1748
- /**
1749
- * The ID of the VM to wait for
1750
- */
1751
- vm_id: string;
1752
- };
1753
- };
1754
- type ExecAwaitData = {
1755
- body: ExecAwaitRequest;
1756
- path: {
1757
- /**
1758
- * The ID of the VM to execute the command in
1759
- */
1760
- vm_id: string;
1761
- };
1762
- };
1763
- type GetFileData = {
1764
- path: {
1765
- /**
1766
- * The path of the file to get
1767
- */
1768
- filepath: string;
1769
- /**
1770
- * The ID of the VM to get the file from
1771
- */
1772
- vm_id: string;
1773
- };
1774
- };
1775
- type PutFileData = {
1776
- body: WriteFileRequest;
1777
- path: {
1778
- /**
1779
- * The path of the file to put
1780
- */
1781
- filepath: string;
1782
- /**
1783
- * The ID of the VM to put the file to
1784
- */
1785
- vm_id: string;
1786
- };
1787
- };
1788
- type ForkVmData = {
1789
- body: ForkVmRequest;
1790
- path: {
1791
- vm_id: string;
1792
- };
1793
- };
1794
- type OptimizeVmData = {
1795
- path: {
1796
- /**
1797
- * The ID of the VM to optimize
1798
- */
1799
- vm_id: string;
1800
- };
1801
- };
1802
- type StartVmData = {
1803
- body: StartVmRequest;
1804
- path: {
1805
- vm_id: string;
1806
- };
1807
- };
1808
- type StopVmData = {
1809
- path: {
1810
- /**
1811
- * The ID of the VM to stop
1812
- */
1813
- vm_id: string;
1814
- };
1815
- };
1816
- type SuspendVmData = {
1817
- path: {
1818
- /**
1819
- * The ID of the VM to suspend
1820
- */
1821
- vm_id: string;
1822
- };
1823
- };
1824
- type ListTerminalsData = {
1825
- path: {
1826
- /**
1827
- * The ID of the VM
1828
- */
1829
- vm_id: string;
1830
- };
1831
- };
1832
- type GetTerminalLogsData = {
1833
- path: {
1834
- /**
1835
- * The ID of the terminal session
1836
- */
1837
- terminal_id: string;
1838
- /**
1839
- * The ID of the VM
1840
- */
1841
- vm_id: string;
1842
- };
1843
- };
1844
- type GetTerminalXtermData = {
1845
- path: {
1846
- /**
1847
- * The ID of the terminal session
1848
- */
1849
- terminal_id: string;
1850
- /**
1851
- * The ID of the VM
1852
- */
1853
- vm_id: string;
1854
- };
1855
- };
1856
- type WatchFilesData = {
1857
- path: {
1858
- /**
1859
- * The ID of the VM to watch files for
1860
- */
1861
- vm_id: string;
1862
- };
1863
- };
1864
- type HandleDeployWebData = {
1865
- body: FreestyleDeployWebPayload;
1866
- };
1867
- type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponseV2);
1868
- type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
1869
- type HandleDeployWebV2Data = {
1870
- body: FreestyleDeployWebPayloadV2;
1871
- };
1872
- type HandleDeployWebV2Response = (FreestyleDeployWebSuccessResponseV2);
1873
- type HandleDeployWebV2Error = (unknown | {
1874
- domain: string;
1875
- } | FreestyleDeployWebErrorResponse);
1876
- type HandleListWebDeploysData = {
1877
- query: {
1878
- /**
1879
- * Maximum number of repositories to return
1880
- */
1881
- limit: number;
1882
- /**
1883
- * Offset for the list of repositories
1884
- */
1885
- offset: number;
1886
- };
1887
- };
1888
- type HandleListWebDeploysResponse = ({
1889
- entries: Array<DeploymentLogEntry>;
1890
- total: number;
1891
- offset: number;
1892
- });
1893
- type HandleListWebDeploysError = ({
1894
- message: string;
1895
- });
1896
- type HandleGetWebDeployDetailsData = {
1897
- path: {
1898
- deployment_id: string;
1899
- };
1900
- };
1901
-
1902
- export type { CommitTree as $, AccessLevel as A, CreatedToken as B, CreateRepoSource as C, DeploymentSource as D, ListGitTokensResponseSuccess as E, FreestyleExecuteScriptParamsConfiguration as F, GitIdentity as G, HandleBackupCloudstateResponse as H, HandleListGitTriggersResponse as I, GitTrigger as J, GitTriggerAction as K, ListPermissionResponseSuccess as L, HandleCreateGitTriggerResponse as M, HandleGetContentsResponse as N, GetGithubSyncResponse as O, DeploymentBuildOptions as P, HandleListDomainMappingsData as Q, AccessibleRepository as R, SetDefaultBranchRequest as S, AccessTokenInfo as T, Behavior as U, BlobEncoding as V, BlobObject as W, BranchDetails as X, CommitList as Y, CommitObject as Z, CommitParent as _, FreestyleExecuteScriptResultSuccess as a, NetworkPermissionData as a$, ConfigureGithubSyncRequest as a0, CreateDomainMappingRequest as a1, CreateRecordParams as a2, CreateRecordResponse as a3, type as a4, CreateRepoRequest as a5, CreateRepositoryRequest as a6, CreateVmRequest as a7, CustomBuildOptions as a8, DeleteRecordResponse as a9, FreestyleDeployWebErrorResponse as aA, FreestyleDeployWebPayload as aB, FreestyleDeployWebPayloadV2 as aC, FreestyleDomainVerificationRequest as aD, FreestyleExecuteScriptParams as aE, FreestyleFile as aF, FreestyleGetLogsResponse as aG, FreestyleJavaScriptLog as aH, FreestyleLogResponseObject as aI, FreestyleNetworkPermission as aJ, action as aK, FreestyleSandboxDomainMapping as aL, FreestyleVerifyDomainRequest as aM, GetDefaultBranchResponse as aN, GitCommitPushRequest as aO, GitContents as aP, type2 as aQ, GitContentsDirEntryItem as aR, GithubRepoSyncConfig as aS, GithubSyncConfigResponse as aT, GitReference as aU, GitRepositoryTrigger as aV, event as aW, action2 as aX, GrantPermissionRequest as aY, InternalServerError as aZ, ListRecordsResponse as a_, DeploymentLogEntry as aa, kind as ab, DeploymentState as ac, DevServer as ad, kind2 as ae, DevServerLogsRequest as af, DevServerPreset as ag, DevServerRequest as ah, DevServerRestartRequest as ai, DevServerStatusRequest as aj, DevServerWatchFilesRequest as ak, DnsRecord as al, DnsRecordData as am, DnsRecordKind as an, DomainVerificationRequest as ao, ExecAwaitRequest as ap, ExecRequest as aq, ExecuteLogEntry as ar, ExecuteRunInfo as as, ExecuteRunState as at, FileReadContent as au, kind3 as av, ForkVmRequest as aw, FreestyleCloudstateDeployConfiguration as ax, FreestyleCloudstateDeployErrorResponse as ay, FreestyleDeleteDomainVerificationRequest as az, FreestyleDeployWebConfiguration as b, HandleGitCommitPushData as b$, PortConfig as b0, PortMapping as b1, ReadFileEphemeralDevServerResponses as b2, RepositoryInfoRaw as b3, RepositoryMetadata as b4, ResizeVmRequest as b5, RevokeGitTokenRequest as b6, SetDefaultBranchResponse as b7, ShutdownDevServerRequest as b8, Signature as b9, HandleDeleteRecordError as bA, HandleVerifyWildcardData as bB, HandleVerifyWildcardError as bC, HandleListDomainsData as bD, HandleListDomainsError as bE, HandleListDomainMappingsError as bF, HandleInsertDomainMappingData as bG, HandleInsertDomainMappingError as bH, HandleDeleteDomainMappingData as bI, HandleListDomainVerificationRequestsError as bJ, HandleVerifyDomainData as bK, HandleCreateDomainVerificationData as bL, HandleCreateDomainVerificationError as bM, HandleDeleteDomainVerificationData as bN, HandleDeleteDomainVerificationError as bO, HandleEphemeralDevServerData as bP, HandleEphemeralDevServerResponse as bQ, HandleEphemeralDevServerError as bR, HandleExecOnEphemeralDevServerData as bS, HandleExecOnEphemeralDevServerResponse as bT, HandleExecOnEphemeralDevServerError as bU, HandleWriteFileFromEphemeralDevServerData as bV, HandleWriteFileFromEphemeralDevServerResponse as bW, HandleWriteFileFromEphemeralDevServerError as bX, HandleReadFileFromEphemeralDevServerData as bY, HandleReadFileFromEphemeralDevServerResponse as bZ, HandleReadFileFromEphemeralDevServerError as b_, StartVmRequest as ba, TagDetails as bb, TagObject as bc, TagTarget as bd, TreeEntry as be, type3 as bf, TreeObject as bg, UpdateDevServerConfigRequest as bh, UpdatePermissionRequest as bi, Visibility as bj, VmPersistence as bk, type4 as bl, WriteFileRequest as bm, HandleDeployCloudstateData as bn, HandleDeployCloudstateResponse as bo, HandleDeployCloudstateError as bp, HandleBackupCloudstateData as bq, HandleBackupCloudstateError as br, HandleListRecordsData as bs, HandleListRecordsResponse as bt, HandleListRecordsError as bu, HandleCreateRecordData as bv, HandleCreateRecordResponse as bw, HandleCreateRecordError as bx, HandleDeleteRecordData as by, HandleDeleteRecordResponse as bz, FreestyleDeployWebSuccessResponseV2 as c, HandleSetDefaultBranchResponse as c$, HandleGitCommitPushResponse as c0, HandleGitCommitPushError as c1, HandleDevServerLogsData as c2, HandleDevServerLogsResponse as c3, HandleDevServerLogsError as c4, HandleDevServerRestartData as c5, HandleDevServerRestartResponse as c6, HandleDevServerRestartError as c7, HandleShutdownDevServerData as c8, HandleShutdownDevServerResponse as c9, HandleDescribePermissionError as cA, HandleGrantPermissionData as cB, HandleGrantPermissionError as cC, HandleRevokePermissionData as cD, HandleRevokePermissionResponse as cE, HandleRevokePermissionError as cF, HandleUpdatePermissionData as cG, HandleUpdatePermissionResponse as cH, HandleUpdatePermissionError as cI, HandleListGitTokensData as cJ, HandleListGitTokensResponse as cK, HandleListGitTokensError as cL, HandleCreateGitTokenData as cM, HandleCreateGitTokenResponse as cN, HandleCreateGitTokenError as cO, HandleRevokeGitTokenData as cP, HandleRevokeGitTokenResponse as cQ, HandleRevokeGitTokenError as cR, HandleListRepositoriesData as cS, HandleListRepositoriesError as cT, HandleCreateRepoData as cU, HandleCreateRepoResponse as cV, HandleCreateRepoError as cW, HandleGetDefaultBranchData as cX, HandleGetDefaultBranchResponse as cY, HandleGetDefaultBranchError as cZ, HandleSetDefaultBranchData as c_, HandleShutdownDevServerError as ca, HandleDevServerStatusData as cb, HandleDevServerStatusResponse as cc, HandleDevServerStatusError as cd, HandleWatchDevServerFilesData as ce, HandleWatchDevServerFilesResponse as cf, HandleWatchDevServerFilesError as cg, HandleListExecuteRunsData as ch, HandleListExecuteRunsError as ci, HandleGetExecuteRunData as cj, HandleGetExecuteRunError as ck, HandleExecuteScriptData as cl, HandleExecuteScriptResponse as cm, HandleExecuteScriptError as cn, HandleListIdentitiesData as co, HandleListIdentitiesResponse as cp, HandleListIdentitiesError as cq, HandleCreateIdentityResponse as cr, HandleCreateIdentityError as cs, HandleDeleteIdentityData as ct, HandleDeleteIdentityError as cu, HandleListPermissionsData as cv, HandleListPermissionsResponse as cw, HandleListPermissionsError as cx, HandleDescribePermissionData as cy, HandleDescribePermissionResponse as cz, FreestyleCloudstateDeployRequest as d, ResizeVmData as d$, HandleSetDefaultBranchError as d0, GetDevServerConfigurationData as d1, GetDevServerConfigurationResponse as d2, GetDevServerConfigurationError as d3, UpdateDevServerConfigurationData as d4, UpdateDevServerConfigurationResponse as d5, UpdateDevServerConfigurationError as d6, DeleteDevServerConfigurationData as d7, DeleteDevServerConfigurationResponse as d8, DeleteDevServerConfigurationError as d9, HandleGetRefBranchResponse as dA, HandleGetRefBranchError as dB, HandleGetRefTagData as dC, HandleGetRefTagResponse as dD, HandleGetRefTagError as dE, HandleGetTagData as dF, HandleGetTagResponse as dG, HandleGetTagError as dH, HandleGetTreeData as dI, HandleGetTreeResponse as dJ, HandleGetTreeError as dK, HandleDownloadTarballData as dL, HandleDownloadTarballResponse as dM, HandleDownloadTarballError as dN, HandleListGitTriggersData as dO, HandleListGitTriggersError as dP, HandleCreateGitTriggerData as dQ, HandleCreateGitTriggerError as dR, HandleDeleteGitTriggerData as dS, HandleDeleteGitTriggerResponse as dT, HandleDeleteGitTriggerError as dU, HandleDownloadZipData as dV, HandleDownloadZipResponse as dW, HandleDownloadZipError as dX, HandleGetLogsData as dY, HandleGetLogsError as dZ, CreateVmData as d_, GetGithubSyncData as da, GetGithubSyncError as db, ConfigureGithubSyncData as dc, ConfigureGithubSyncResponse as dd, ConfigureGithubSyncError as de, RemoveGithubSyncData as df, RemoveGithubSyncResponse as dg, RemoveGithubSyncError as dh, HandleGetRepoInfoData as di, HandleGetRepoInfoResponse as dj, HandleGetRepoInfoError as dk, HandleDeleteRepoData as dl, HandleDeleteRepoError as dm, HandleGetContentsData as dn, HandleGetContentsError as dp, HandleGetBlobData as dq, HandleGetBlobResponse as dr, HandleGetBlobError as ds, HandleListCommitsData as dt, HandleListCommitsResponse as du, HandleListCommitsError as dv, HandleGetCommitData as dw, HandleGetCommitResponse as dx, HandleGetCommitError as dy, HandleGetRefBranchData as dz, FreestyleCloudstateDeploySuccessResponse as e, GetVmData as e0, DeleteVmData as e1, WaitVmData as e2, ExecAwaitData as e3, GetFileData as e4, PutFileData as e5, ForkVmData as e6, OptimizeVmData as e7, StartVmData as e8, StopVmData as e9, SuspendVmData as ea, ListTerminalsData as eb, GetTerminalLogsData as ec, GetTerminalXtermData as ed, WatchFilesData as ee, HandleDeployWebData as ef, HandleDeployWebResponse as eg, HandleDeployWebError as eh, HandleDeployWebV2Data as ei, HandleDeployWebV2Response as ej, HandleDeployWebV2Error as ek, HandleListWebDeploysData as el, HandleListWebDeploysError as em, HandleGetWebDeployDetailsData as en, HandleGetLogsResponse as f, HandleCreateDomainVerificationResponse as g, HandleVerifyDomainResponse as h, HandleVerifyDomainError as i, HandleListDomainsResponse as j, HandleListDomainVerificationRequestsResponse as k, HandleDeleteDomainVerificationResponse as l, HandleListWebDeploysResponse as m, HandleListExecuteRunsResponse as n, HandleGetExecuteRunResponse as o, HandleVerifyWildcardResponse as p, HandleInsertDomainMappingResponse as q, HandleListDomainMappingsResponse as r, DevServerConfiguration as s, CreateRepoImport as t, CreateRepositoryResponseSuccess as u, HandleListRepositoriesResponse as v, HandleDeleteRepoResponse as w, HandleDeleteIdentityResponse as x, HandleGrantPermissionResponse as y, DescribePermissionResponseSuccess as z };