freestyle-sandboxes 0.0.96 → 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.
Files changed (69) hide show
  1. package/README.md +39 -48
  2. package/index.cjs +4362 -0
  3. package/index.d.cts +9401 -0
  4. package/index.d.mts +9401 -0
  5. package/index.mjs +4348 -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,2234 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- /**
4
- * Identical to [`RepositoryInfo`], but with the permissions field added.
5
- */
6
- export type AccessibleRepository = {
7
- id: string;
8
- name?: (string) | null;
9
- accountId: string;
10
- permissions: AccessLevel;
11
- visibility: Visibility;
12
- };
13
-
14
- export type AccessLevel = 'read' | 'write';
15
-
16
- export type AccessTokenInfo = {
17
- id: string;
18
- };
19
-
20
- export type Behavior = 'regex' | 'exact';
21
-
22
- /**
23
- * The encoding of a blob from the API. Always `base64`.
24
- */
25
- export type BlobEncoding = 'base64';
26
-
27
- /**
28
- * Blob object
29
- */
30
- export type BlobObject = {
31
- /**
32
- * The content of the blob, base64 encoded.
33
- */
34
- content: string;
35
- /**
36
- * The encoding of the blob. Always `base64`.
37
- */
38
- encoding: BlobEncoding;
39
- /**
40
- * The object's hash.
41
- */
42
- sha: string;
43
- };
44
-
45
- export type BranchDetails = {
46
- default: boolean;
47
- name: string;
48
- target?: (string) | null;
49
- };
50
-
51
- export type CommitList = {
52
- /**
53
- * List of commits
54
- */
55
- commits: Array<CommitObject>;
56
- /**
57
- * Number of commits returned in this page
58
- */
59
- count: number;
60
- /**
61
- * Number of commits skipped (offset)
62
- */
63
- offset: number;
64
- /**
65
- * Maximum number of commits requested (limit)
66
- */
67
- limit: number;
68
- /**
69
- * Total number of commits available in the branch
70
- */
71
- total: number;
72
- };
73
-
74
- /**
75
- * Commit object
76
- */
77
- export type CommitObject = {
78
- /**
79
- * The author of the commit
80
- */
81
- author: Signature;
82
- /**
83
- * The committer
84
- */
85
- committer: Signature;
86
- /**
87
- * The commit message
88
- */
89
- message: string;
90
- /**
91
- * The ID of the tree pointed to by this commit
92
- */
93
- tree: CommitTree;
94
- /**
95
- * Parent commit(s) of this commit
96
- */
97
- parents: Array<CommitParent>;
98
- /**
99
- * The commit's hash ID
100
- */
101
- sha: string;
102
- };
103
-
104
- export type CommitParent = {
105
- /**
106
- * The commit's hash ID
107
- */
108
- sha: string;
109
- };
110
-
111
- export type CommitTree = {
112
- /**
113
- * The tree's hash ID
114
- */
115
- sha: string;
116
- };
117
-
118
- export type ConfigureGithubSyncRequest = {
119
- /**
120
- * The GitHub repository name in "owner/repo" format
121
- */
122
- githubRepoName: string;
123
- };
124
-
125
- export type CreateDomainMappingRequest = {
126
- deploymentId: string;
127
- };
128
-
129
- export type CreatedToken = {
130
- id: string;
131
- token: string;
132
- };
133
-
134
- export type CreateRecordParams = {
135
- domain: string;
136
- record: DnsRecordData;
137
- };
138
-
139
- export type CreateRecordResponse = {
140
- record: DnsRecord;
141
- };
142
-
143
- export type CreateRepoImport = {
144
- /**
145
- * A map of file names to their contents.
146
- */
147
- files: {
148
- [key: string]: (string);
149
- };
150
- commitMessage: string;
151
- authorName?: (string) | null;
152
- authorEmail?: (string) | null;
153
- type: 'files';
154
- } | {
155
- url: string;
156
- dir?: (string) | null;
157
- commitMessage: string;
158
- authorName?: (string) | null;
159
- authorEmail?: (string) | null;
160
- type: 'tar';
161
- } | {
162
- url: string;
163
- dir?: (string) | null;
164
- commitMessage: string;
165
- authorName?: (string) | null;
166
- authorEmail?: (string) | null;
167
- type: 'zip';
168
- } | {
169
- url: string;
170
- branch?: (string) | null;
171
- dir?: (string) | null;
172
- commitMessage: string;
173
- authorName?: (string) | null;
174
- authorEmail?: (string) | null;
175
- type: 'git';
176
- };
177
-
178
- export type type = 'files';
179
-
180
- export type CreateRepoRequest = {
181
- source?: (null | CreateRepoSource);
182
- import?: (null | CreateRepoImport);
183
- defaultBranch?: (string) | null;
184
- };
185
-
186
- export type CreateRepositoryRequest = {
187
- /**
188
- * This name is not visible to users, and is only accessible to you via API and in the
189
- * dashboard. Mostly useful for observability.
190
- */
191
- name?: (string) | null;
192
- public?: boolean;
193
- /**
194
- * The default branch name for the repository. Defaults to "main" if not specified.
195
- */
196
- defaultBranch?: (string) | null;
197
- /**
198
- * Fork from another Git repository. Cannot be used with `import`.
199
- */
200
- source?: CreateRepoSource;
201
- /**
202
- * Import static content with an initial commit. Cannot be used with `source`.
203
- */
204
- import?: CreateRepoImport;
205
- devServers?: DevServerConfiguration;
206
- };
207
-
208
- export type CreateRepositoryResponseSuccess = {
209
- repoId: string;
210
- };
211
-
212
- export type CreateRepoSource = {
213
- url: string;
214
- branch?: (string) | null;
215
- depth?: (number) | null;
216
- };
217
-
218
- export type CreateVmRequest = {
219
- idleTimeoutSeconds?: (number) | null;
220
- /**
221
- * Optional list of ports to expose externally. If not provided, port 3000
222
- * will be exposed on port 443 by default. Pass an empty array to disable
223
- * external ports. Only ports 8081 and 443 can be configured externally for
224
- * now. Any target port is allowed.
225
- */
226
- ports?: Array<PortMapping> | null;
227
- /**
228
- * Whether the api request should wait for the VM to be ready before
229
- * returning. By default, the VM is considered ready when the serial
230
- * console is ready for login.
231
- */
232
- waitForReadySignal?: (boolean) | null;
233
- /**
234
- * How long to wait for the ready signal before timing out. Defaults to 120
235
- * seconds if not provided.
236
- */
237
- readySignalTimeoutSeconds?: (number) | null;
238
- /**
239
- * Optional working directory for the VM. File system and shell commands
240
- * will be executed in this directory.
241
- */
242
- workdir?: (string) | null;
243
- persistence?: (null | VmPersistence);
244
- };
245
-
246
- export type CustomBuildOptions = {
247
- command?: (string) | null;
248
- envVars?: {
249
- [key: string]: (string);
250
- } | null;
251
- outDir?: (string) | null;
252
- };
253
-
254
- export type DeleteRecordResponse = {
255
- message: string;
256
- };
257
-
258
- export type DeploymentBuildOptions = (CustomBuildOptions) | boolean;
259
-
260
- export type DeploymentLogEntry = {
261
- deploymentId: string;
262
- accountId: string;
263
- provisionedAt: string;
264
- timeout: string;
265
- state: DeploymentState;
266
- deployedAt?: (string) | null;
267
- domains: Array<(string)>;
268
- envVars: {
269
- [key: string]: (string);
270
- };
271
- };
272
-
273
- export type DeploymentSource = {
274
- files: {
275
- [key: string]: FreestyleFile;
276
- };
277
- kind: 'files';
278
- } | {
279
- url: string;
280
- kind: 'tar';
281
- } | {
282
- url: string;
283
- branch?: (string) | null;
284
- dir?: (string) | null;
285
- kind: 'git';
286
- };
287
-
288
- export type kind = 'files';
289
-
290
- export type DeploymentState = 'provisioning' | 'deployed' | 'failed';
291
-
292
- export type DescribePermissionResponseSuccess = {
293
- identity: string;
294
- repo: string;
295
- accessLevel?: (null | AccessLevel);
296
- };
297
-
298
- export type DevServer = {
299
- repoId: string;
300
- gitRef?: (string) | null;
301
- kind: 'repo';
302
- };
303
-
304
- export type kind2 = 'repo';
305
-
306
- export type DevServerConfiguration = {
307
- devCommand?: (string) | null;
308
- installCommand?: (string) | null;
309
- timeout?: (number) | null;
310
- envVars?: {
311
- [key: string]: (string);
312
- } | null;
313
- ports?: Array<PortConfig> | null;
314
- preset?: (null | DevServerPreset);
315
- };
316
-
317
- export type DevServerLogsRequest = {
318
- devServer: DevServer;
319
- /**
320
- * Number of log lines to return per page (default 200)
321
- */
322
- count?: (number) | null;
323
- /**
324
- * 1-based page index. page=1 returns the most recent lines (default 1)
325
- */
326
- page?: (number) | null;
327
- };
328
-
329
- export type DevServerPreset = 'auto' | 'nextJs' | 'vite' | 'expo';
330
-
331
- export type DevServerRequest = DevServerConfiguration & {
332
- repoId?: (string) | null;
333
- computeClass?: (string) | null;
334
- /**
335
- * @deprecated
336
- */
337
- domain?: (string) | null;
338
- /**
339
- * @deprecated
340
- */
341
- repo?: (string) | null;
342
- gitRef?: (string) | null;
343
- preDevCommandOnce?: (string) | null;
344
- /**
345
- * @deprecated
346
- */
347
- baseId?: (string) | null;
348
- };
349
-
350
- export type DevServerRestartRequest = {
351
- devServer: DevServer;
352
- };
353
-
354
- export type DevServerStatusRequest = {
355
- devServer: DevServer;
356
- };
357
-
358
- export type DevServerWatchFilesRequest = {
359
- devServer: DevServer;
360
- };
361
-
362
- export type DnsRecord = {
363
- kind: DnsRecordKind;
364
- name: string;
365
- value: string;
366
- ttl: string;
367
- priority?: (number) | null;
368
- managed: boolean;
369
- };
370
-
371
- export type DnsRecordData = {
372
- kind: DnsRecordKind;
373
- name: string;
374
- value: string;
375
- ttl?: (string) | null;
376
- priority?: (number) | null;
377
- };
378
-
379
- export type DnsRecordKind = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'NS';
380
-
381
- export type DomainVerificationRequest = {
382
- id: string;
383
- domain: string;
384
- accountId: string;
385
- verificationCode: string;
386
- createdAt: string;
387
- };
388
-
389
- export type ExecAwaitRequest = {
390
- command: string;
391
- terminal?: (string) | null;
392
- };
393
-
394
- export type ExecRequest = {
395
- devServer: DevServer;
396
- command: string;
397
- /**
398
- * Spawn this command as a background process and return immediately
399
- */
400
- background: boolean;
401
- };
402
-
403
- export type ExecuteLogEntry = {
404
- deployment: string;
405
- accountId: string;
406
- provisionedAt: string;
407
- startedAt?: (string) | null;
408
- duration?: (string) | null;
409
- state: ExecuteRunState;
410
- envVars: {
411
- [key: string]: (string);
412
- };
413
- };
414
-
415
- export type ExecuteRunInfo = {
416
- code: string;
417
- nodeModules: {
418
- [key: string]: (string);
419
- };
420
- };
421
-
422
- export type ExecuteRunState = 'starting' | 'running' | 'complete';
423
-
424
- export type FileReadContent = {
425
- content: string;
426
- encoding: string;
427
- kind: 'file';
428
- } | {
429
- files: Array<(string)>;
430
- kind: 'directory';
431
- };
432
-
433
- export type kind3 = 'file';
434
-
435
- export type ForkVmRequest = {
436
- idleTimeoutSeconds?: (number) | null;
437
- /**
438
- * Optional list of ports to expose externally. If not provided, port 3000
439
- * will be exposed on port 443 by default. Pass an empty array to disable
440
- * external ports. Only ports 8081 and 443 can be configured externally for
441
- * now. Any target port is allowed.
442
- */
443
- ports?: Array<PortMapping> | null;
444
- /**
445
- * Whether the api request should wait for the VM to be ready before
446
- * returning. By default, the VM is considered ready when the serial
447
- * console is ready for login.
448
- */
449
- readySignalTimeoutSeconds?: (number) | null;
450
- /**
451
- * How long to wait for the ready signal before timing out. Defaults to 120
452
- * seconds if not provided.
453
- */
454
- waitForReadySignal?: (boolean) | null;
455
- /**
456
- * Optional working directory for the VM. File system and shell commands
457
- * will be executed in this directory.
458
- */
459
- workdir?: (string) | null;
460
- persistence?: (null | VmPersistence);
461
- };
462
-
463
- export type FreestyleCloudstateDeployConfiguration = {
464
- /**
465
- * ID of the project to deploy, if not provided will create a new project
466
- */
467
- domains?: Array<(string)> | null;
468
- /**
469
- * The environment variables that the cloudstate deploy can access
470
- */
471
- envVars?: {
472
- [key: string]: (string);
473
- };
474
- cloudstateDatabaseId?: (string) | null;
475
- };
476
-
477
- export type FreestyleCloudstateDeployErrorResponse = {
478
- message: string;
479
- };
480
-
481
- export type FreestyleCloudstateDeployRequest = {
482
- classes: string;
483
- config?: FreestyleCloudstateDeployConfiguration;
484
- };
485
-
486
- export type FreestyleCloudstateDeploySuccessResponse = {
487
- deploymentId: string;
488
- cloudstateDatabaseId: string;
489
- };
490
-
491
- export type FreestyleDeleteDomainVerificationRequest = {
492
- /**
493
- * The domain to create a verification code for
494
- */
495
- domain: string;
496
- /**
497
- * The verification code
498
- */
499
- verificationCode: string;
500
- };
501
-
502
- export type FreestyleDeployWebConfiguration = {
503
- /**
504
- * The entrypoint file for the website, if none is provided, we will try to automatically detect it.
505
- */
506
- entrypoint?: (string) | null;
507
- /**
508
- * The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
509
- */
510
- domains?: Array<(string)> | null;
511
- /**
512
- * 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.
513
- * @deprecated
514
- */
515
- projectId?: (string) | null;
516
- /**
517
- * 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.
518
- */
519
- nodeModules?: {
520
- [key: string]: (string);
521
- } | null;
522
- /**
523
- * The environment variables that the website can access
524
- * e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
525
- */
526
- envVars?: {
527
- [key: string]: (string);
528
- } | null;
529
- serverStartCheck?: boolean;
530
- networkPermissions?: Array<FreestyleNetworkPermission> | null;
531
- build?: (null | DeploymentBuildOptions);
532
- /**
533
- * Timeout for the deployment in seconds. If not provided, the default is 10 seconds.
534
- */
535
- timeout?: (number) | null;
536
- /**
537
- * Whether to wait for the deployment to finish before returning. Defaults to true.
538
- */
539
- await?: (boolean) | null;
540
- };
541
-
542
- export type FreestyleDeployWebErrorResponse = {
543
- message: string;
544
- };
545
-
546
- export type FreestyleDeployWebPayload = {
547
- /**
548
- * 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\" } }
549
- *
550
- * **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.
551
- */
552
- files: {
553
- [key: string]: FreestyleFile;
554
- };
555
- config?: FreestyleDeployWebConfiguration;
556
- };
557
-
558
- export type FreestyleDeployWebPayloadV2 = {
559
- /**
560
- * 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\" } }
561
- *
562
- * **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.
563
- */
564
- source: DeploymentSource;
565
- config?: FreestyleDeployWebConfiguration;
566
- };
567
-
568
- export type FreestyleDeployWebSuccessResponseV2 = {
569
- deploymentId: string;
570
- /**
571
- * @deprecated
572
- */
573
- projectId: string;
574
- domains?: Array<(string)> | null;
575
- /**
576
- * The entrypoint file for the website. If not specified we try to automatically detect it.
577
- */
578
- entrypoint: string;
579
- } | {
580
- deploymentId: string;
581
- };
582
-
583
- export type FreestyleDomainVerificationRequest = {
584
- /**
585
- * The domain to create a verification code for
586
- */
587
- domain: string;
588
- };
589
-
590
- export type FreestyleExecuteScriptParams = {
591
- /**
592
- * The JavaScript or TypeScript script to execute
593
- */
594
- script: string;
595
- config?: FreestyleExecuteScriptParamsConfiguration;
596
- };
597
-
598
- export type FreestyleExecuteScriptParamsConfiguration = {
599
- /**
600
- * The environment variables to set for the script
601
- */
602
- envVars?: {
603
- [key: string]: (string);
604
- };
605
- /**
606
- * The node modules to install for the script
607
- */
608
- nodeModules?: {
609
- [key: string]: (string);
610
- };
611
- /**
612
- * Tags for you to organize your scripts, useful for tracking what you're running
613
- */
614
- tags?: Array<(string)>;
615
- /**
616
- * The script timeout
617
- */
618
- timeout?: (number) | null;
619
- /**
620
- * 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.
621
- */
622
- peerDependencyResolution?: boolean;
623
- networkPermissions?: Array<FreestyleNetworkPermission> | null;
624
- /**
625
- * These headers will be added to every fetch request made through the script
626
- */
627
- customHeaders?: {
628
- [key: string]: (string);
629
- };
630
- /**
631
- * Proxy all outgoing requests through this URL
632
- */
633
- proxy?: (string) | null;
634
- };
635
-
636
- export type FreestyleExecuteScriptResultSuccess = {
637
- /**
638
- * The return value of the default export of the script
639
- */
640
- result: unknown;
641
- logs: Array<FreestyleJavaScriptLog>;
642
- };
643
-
644
- export type FreestyleFile = {
645
- /**
646
- * The content of the file
647
- */
648
- content: string;
649
- /**
650
- * The encoding of the file. Either **utf-8** or **base64**
651
- */
652
- encoding?: string;
653
- };
654
-
655
- export type FreestyleGetLogsResponse = {
656
- logs: Array<FreestyleLogResponseObject>;
657
- };
658
-
659
- export type FreestyleJavaScriptLog = {
660
- /**
661
- * The log message
662
- */
663
- message: string;
664
- /**
665
- * The log level
666
- */
667
- type: string;
668
- };
669
-
670
- export type FreestyleLogResponseObject = {
671
- message: string;
672
- timestamp: string;
673
- };
674
-
675
- export type FreestyleNetworkPermission = (NetworkPermissionData & {
676
- action: 'allow';
677
- }) | (NetworkPermissionData & {
678
- action: 'deny';
679
- });
680
-
681
- export type action = 'allow';
682
-
683
- export type FreestyleSandboxDomainMapping = {
684
- id: string;
685
- domain: string;
686
- deploymentId: string;
687
- ownershipId: string;
688
- createdAt: string;
689
- };
690
-
691
- /**
692
- * Verify a domain verification request, can either be done for a domain, or for a specific request
693
- */
694
- export type FreestyleVerifyDomainRequest = {
695
- domain: string;
696
- } | {
697
- id: string;
698
- };
699
-
700
- export type GetDefaultBranchResponse = {
701
- defaultBranch: string;
702
- };
703
-
704
- export type GitCommitPushRequest = {
705
- devServer: DevServer;
706
- message: string;
707
- };
708
-
709
- export type GitContents = {
710
- name: string;
711
- path: string;
712
- /**
713
- * The hash / object ID of the file.
714
- */
715
- sha: string;
716
- size: number;
717
- /**
718
- * Base64-encoded content.
719
- */
720
- content: string;
721
- type: 'file';
722
- } | {
723
- name: string;
724
- path: string;
725
- /**
726
- * The hash / object ID of the directory.
727
- */
728
- sha: string;
729
- entries: Array<GitContentsDirEntryItem>;
730
- type: 'dir';
731
- };
732
-
733
- export type type2 = 'file';
734
-
735
- export type GitContentsDirEntryItem = {
736
- name: string;
737
- path: string;
738
- /**
739
- * The hash / object ID of the file.
740
- */
741
- sha: string;
742
- size: number;
743
- type: 'file';
744
- } | {
745
- name: string;
746
- path: string;
747
- /**
748
- * The hash / object ID of the directory.
749
- */
750
- sha: string;
751
- entries: Array<({
752
- [key: string]: unknown;
753
- })>;
754
- type: 'dir';
755
- };
756
-
757
- export type GithubRepoSyncConfig = {
758
- freestyleRepoId: string;
759
- accountId: string;
760
- installationId: number;
761
- githubRepoId: number;
762
- githubRepoName: string;
763
- createdAt: string;
764
- };
765
-
766
- export type GithubSyncConfigResponse = {
767
- githubRepoName: string;
768
- };
769
-
770
- export type GitIdentity = {
771
- id: string;
772
- managed: boolean;
773
- };
774
-
775
- /**
776
- * A reference to a Git object
777
- */
778
- export type GitReference = {
779
- /**
780
- * The name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")
781
- */
782
- name: string;
783
- /**
784
- * The SHA-1 hash of the Git object this reference points to
785
- */
786
- sha: string;
787
- };
788
-
789
- export type GitRepositoryTrigger = {
790
- repositoryId: string;
791
- trigger: ({
792
- branches?: Array<(string)> | null;
793
- globs?: Array<(string)> | null;
794
- event: 'push';
795
- });
796
- action: ({
797
- endpoint: string;
798
- action: 'webhook';
799
- });
800
- managed: boolean;
801
- id: string;
802
- createdAt: string;
803
- };
804
-
805
- export type event = 'push';
806
-
807
- export type action2 = 'webhook';
808
-
809
- export type GitTrigger = {
810
- branches?: Array<(string)> | null;
811
- globs?: Array<(string)> | null;
812
- event: 'push';
813
- };
814
-
815
- export type GitTriggerAction = {
816
- endpoint: string;
817
- action: 'webhook';
818
- };
819
-
820
- export type GrantPermissionRequest = {
821
- permission: AccessLevel;
822
- };
823
-
824
- export type InternalServerError = string;
825
-
826
- export type ListGitTokensResponseSuccess = {
827
- tokens: Array<AccessTokenInfo>;
828
- };
829
-
830
- export type ListPermissionResponseSuccess = {
831
- repositories: Array<AccessibleRepository>;
832
- };
833
-
834
- export type ListRecordsResponse = {
835
- records: Array<DnsRecord>;
836
- };
837
-
838
- export type NetworkPermissionData = {
839
- query: string;
840
- behavior?: Behavior;
841
- };
842
-
843
- export type PortConfig = {
844
- port: number;
845
- targetPort: number;
846
- };
847
-
848
- export type PortMapping = {
849
- port: number;
850
- targetPort: number;
851
- };
852
-
853
- export type ReadFileEphemeralDevServerResponses = {
854
- id: string;
855
- isNew: boolean;
856
- content: ({
857
- content: string;
858
- encoding: string;
859
- kind: 'file';
860
- } | {
861
- files: Array<(string)>;
862
- kind: 'directory';
863
- });
864
- } | {
865
- id: string;
866
- isNew: boolean;
867
- } | InternalServerError;
868
-
869
- export type RepositoryInfoRaw = {
870
- id: string;
871
- name?: (string) | null;
872
- accountId: string;
873
- visibility: Visibility;
874
- defaultBranch: string;
875
- };
876
-
877
- export type RepositoryMetadata = {
878
- branches: {
879
- [key: string]: BranchDetails;
880
- };
881
- tags: {
882
- [key: string]: TagDetails;
883
- };
884
- defaultBranch: string;
885
- };
886
-
887
- export type ResizeVmRequest = {
888
- sizeMb: number;
889
- };
890
-
891
- export type RevokeGitTokenRequest = {
892
- tokenId: string;
893
- };
894
-
895
- export type SetDefaultBranchRequest = {
896
- defaultBranch: string;
897
- };
898
-
899
- export type SetDefaultBranchResponse = {
900
- [key: string]: unknown;
901
- };
902
-
903
- export type ShutdownDevServerRequest = {
904
- /**
905
- * The dev server to shutdown
906
- */
907
- devServer: DevServer;
908
- };
909
-
910
- export type Signature = {
911
- /**
912
- * The date marker for this signature
913
- */
914
- date: string;
915
- name: string;
916
- email: string;
917
- };
918
-
919
- export type StartVmRequest = {
920
- idleTimeoutSeconds?: (number) | null;
921
- readySignalTimeoutSeconds?: (number) | null;
922
- waitForReadySignal?: (boolean) | null;
923
- };
924
-
925
- export type TagDetails = {
926
- name: string;
927
- target: string;
928
- message?: (string) | null;
929
- };
930
-
931
- /**
932
- * Tag object
933
- */
934
- export type TagObject = {
935
- /**
936
- * The tag name
937
- */
938
- name: string;
939
- tagger?: (null | Signature);
940
- /**
941
- * The tag message
942
- */
943
- message?: (string) | null;
944
- /**
945
- * The object this tag points to
946
- */
947
- target: TagTarget;
948
- /**
949
- * The tag's hash ID
950
- */
951
- sha: string;
952
- };
953
-
954
- export type TagTarget = {
955
- /**
956
- * The target object's hash ID
957
- */
958
- sha: string;
959
- };
960
-
961
- export type TreeEntry = {
962
- path: string;
963
- sha: string;
964
- type: 'blob';
965
- } | {
966
- path: string;
967
- sha: string;
968
- type: 'tree';
969
- };
970
-
971
- export type type3 = 'blob';
972
-
973
- /**
974
- * Tree object
975
- */
976
- export type TreeObject = {
977
- /**
978
- * The tree's entries
979
- */
980
- tree: Array<TreeEntry>;
981
- /**
982
- * The tree's hash ID
983
- */
984
- sha: string;
985
- };
986
-
987
- export type UpdateDevServerConfigRequest = DevServerConfiguration & {
988
- branch?: (string) | null;
989
- };
990
-
991
- export type UpdatePermissionRequest = {
992
- permission: AccessLevel;
993
- };
994
-
995
- export type Visibility = 'public' | 'private';
996
-
997
- export type VmPersistence = {
998
- /**
999
- * Priority for eviction when storage quota is reached. Higher values
1000
- * mean the VM is less likely to be evicted. Range is 0-10, default is
1001
- * 5.
1002
- */
1003
- priority?: (number) | null;
1004
- type: 'sticky';
1005
- } | {
1006
- type: 'ephemeral';
1007
- } | {
1008
- type: 'persistent';
1009
- };
1010
-
1011
- export type type4 = 'sticky';
1012
-
1013
- export type WriteFileRequest = {
1014
- content: string;
1015
- };
1016
-
1017
- export type HandleDeployCloudstateData = {
1018
- body: FreestyleCloudstateDeployRequest;
1019
- };
1020
-
1021
- export type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
1022
-
1023
- export type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
1024
-
1025
- export type HandleBackupCloudstateData = {
1026
- path: {
1027
- id: string;
1028
- };
1029
- };
1030
-
1031
- export type HandleBackupCloudstateResponse = (Array<(number)>);
1032
-
1033
- export type HandleBackupCloudstateError = (unknown);
1034
-
1035
- export type HandleListRecordsData = {
1036
- query: {
1037
- domain: string;
1038
- };
1039
- };
1040
-
1041
- export type HandleListRecordsResponse = (ListRecordsResponse);
1042
-
1043
- export type HandleListRecordsError = ({
1044
- message: string;
1045
- });
1046
-
1047
- export type HandleCreateRecordData = {
1048
- body: CreateRecordParams;
1049
- };
1050
-
1051
- export type HandleCreateRecordResponse = (CreateRecordResponse);
1052
-
1053
- export type HandleCreateRecordError = ({
1054
- domain: string;
1055
- account_id: string;
1056
- } | {
1057
- message: string;
1058
- });
1059
-
1060
- export type HandleDeleteRecordData = {
1061
- query: {
1062
- domain: string;
1063
- record: DnsRecord;
1064
- };
1065
- };
1066
-
1067
- export type HandleDeleteRecordResponse = (DeleteRecordResponse);
1068
-
1069
- export type HandleDeleteRecordError = ({
1070
- domain: string;
1071
- account_id: string;
1072
- } | {
1073
- domain: string;
1074
- name: string;
1075
- });
1076
-
1077
- export type HandleVerifyWildcardData = {
1078
- path: {
1079
- domain: string;
1080
- };
1081
- };
1082
-
1083
- export type HandleVerifyWildcardResponse = ({
1084
- domain: string;
1085
- });
1086
-
1087
- export type HandleVerifyWildcardError = ({
1088
- message: string;
1089
- });
1090
-
1091
- export type HandleListDomainsData = {
1092
- query?: {
1093
- implicitlyOwned?: (boolean) | null;
1094
- limit?: (number) | null;
1095
- offset?: (number) | null;
1096
- };
1097
- };
1098
-
1099
- export type HandleListDomainsResponse = (Array<{
1100
- domain: string;
1101
- accountId: string;
1102
- createdAt: string;
1103
- id: string;
1104
- verifiedDns: boolean;
1105
- implicitlyOwned: boolean;
1106
- deployToDomain: boolean;
1107
- manageDns: boolean;
1108
- deployToSubdomains: boolean;
1109
- }>);
1110
-
1111
- export type HandleListDomainsError = ({
1112
- message: string;
1113
- });
1114
-
1115
- export type HandleListDomainMappingsData = {
1116
- query?: {
1117
- domain?: (string) | null;
1118
- domainOwnership?: (string) | null;
1119
- limit?: (number) | null;
1120
- offset?: (number) | null;
1121
- };
1122
- };
1123
-
1124
- export type HandleListDomainMappingsResponse = (Array<FreestyleSandboxDomainMapping>);
1125
-
1126
- export type HandleListDomainMappingsError = (unknown);
1127
-
1128
- export type HandleInsertDomainMappingData = {
1129
- body: CreateDomainMappingRequest;
1130
- path: {
1131
- domain: string;
1132
- };
1133
- };
1134
-
1135
- export type HandleInsertDomainMappingResponse = (FreestyleSandboxDomainMapping);
1136
-
1137
- export type HandleInsertDomainMappingError = ({
1138
- message: string;
1139
- });
1140
-
1141
- export type HandleDeleteDomainMappingData = {
1142
- path: {
1143
- domain: string;
1144
- };
1145
- };
1146
-
1147
- export type HandleListDomainVerificationRequestsResponse = (Array<{
1148
- verificationCode: string;
1149
- domain: string;
1150
- createdAt: string;
1151
- }>);
1152
-
1153
- export type HandleListDomainVerificationRequestsError = ({
1154
- message: string;
1155
- });
1156
-
1157
- export type HandleVerifyDomainData = {
1158
- body: FreestyleVerifyDomainRequest;
1159
- };
1160
-
1161
- export type HandleVerifyDomainResponse = ({
1162
- domain: string;
1163
- });
1164
-
1165
- export type HandleVerifyDomainError = ({
1166
- message: string;
1167
- });
1168
-
1169
- export type HandleCreateDomainVerificationData = {
1170
- body: FreestyleDomainVerificationRequest;
1171
- };
1172
-
1173
- export type HandleCreateDomainVerificationResponse = (DomainVerificationRequest);
1174
-
1175
- export type HandleCreateDomainVerificationError = ({
1176
- message: string;
1177
- });
1178
-
1179
- export type HandleDeleteDomainVerificationData = {
1180
- body: FreestyleDeleteDomainVerificationRequest;
1181
- };
1182
-
1183
- export type HandleDeleteDomainVerificationResponse = ({
1184
- verificationCode: string;
1185
- domain: string;
1186
- });
1187
-
1188
- export type HandleDeleteDomainVerificationError = ({
1189
- message: string;
1190
- });
1191
-
1192
- export type HandleEphemeralDevServerData = {
1193
- body: DevServerRequest;
1194
- };
1195
-
1196
- export type HandleEphemeralDevServerResponse = ({
1197
- /**
1198
- * @deprecated
1199
- */
1200
- url: string;
1201
- isNew: boolean;
1202
- devCommandRunning: boolean;
1203
- installCommandRunning: boolean;
1204
- mcpEphemeralUrl?: (string) | null;
1205
- ephemeralUrl?: (string) | null;
1206
- vmId?: (string) | null;
1207
- baseId?: (string) | null;
1208
- });
1209
-
1210
- export type HandleEphemeralDevServerError = (InternalServerError);
1211
-
1212
- export type HandleExecOnEphemeralDevServerData = {
1213
- body: ExecRequest;
1214
- };
1215
-
1216
- export type HandleExecOnEphemeralDevServerResponse = ({
1217
- id: string;
1218
- isNew: boolean;
1219
- stdout?: Array<(string)> | null;
1220
- stderr?: Array<(string)> | null;
1221
- });
1222
-
1223
- export type HandleExecOnEphemeralDevServerError = (InternalServerError);
1224
-
1225
- export type HandleWriteFileFromEphemeralDevServerData = {
1226
- path: {
1227
- /**
1228
- * The path to the file to read from the dev server
1229
- */
1230
- filepath: string;
1231
- };
1232
- };
1233
-
1234
- export type HandleWriteFileFromEphemeralDevServerResponse = ({
1235
- id: string;
1236
- isNew: boolean;
1237
- });
1238
-
1239
- export type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
1240
-
1241
- export type HandleReadFileFromEphemeralDevServerData = {
1242
- path: {
1243
- /**
1244
- * The path to the file to read from the dev server
1245
- */
1246
- filepath: string;
1247
- };
1248
- };
1249
-
1250
- export type HandleReadFileFromEphemeralDevServerResponse = ({
1251
- id: string;
1252
- isNew: boolean;
1253
- content: ({
1254
- content: string;
1255
- encoding: string;
1256
- kind: 'file';
1257
- } | {
1258
- files: Array<(string)>;
1259
- kind: 'directory';
1260
- });
1261
- });
1262
-
1263
- export type HandleReadFileFromEphemeralDevServerError = ({
1264
- id: string;
1265
- isNew: boolean;
1266
- } | InternalServerError);
1267
-
1268
- export type HandleGitCommitPushData = {
1269
- body: GitCommitPushRequest;
1270
- };
1271
-
1272
- export type HandleGitCommitPushResponse = ({
1273
- id: string;
1274
- isNew: boolean;
1275
- });
1276
-
1277
- export type HandleGitCommitPushError = (InternalServerError);
1278
-
1279
- export type HandleDevServerLogsData = {
1280
- body: DevServerLogsRequest;
1281
- };
1282
-
1283
- export type HandleDevServerLogsResponse = ({
1284
- logs: Array<(string)>;
1285
- });
1286
-
1287
- export type HandleDevServerLogsError = (InternalServerError);
1288
-
1289
- export type HandleDevServerRestartData = {
1290
- body: DevServerRestartRequest;
1291
- };
1292
-
1293
- export type HandleDevServerRestartResponse = ({
1294
- restarted: boolean;
1295
- });
1296
-
1297
- export type HandleDevServerRestartError = (InternalServerError);
1298
-
1299
- export type HandleShutdownDevServerData = {
1300
- body: ShutdownDevServerRequest;
1301
- };
1302
-
1303
- export type HandleShutdownDevServerResponse = ({
1304
- success: boolean;
1305
- message: string;
1306
- });
1307
-
1308
- export type HandleShutdownDevServerError = ({
1309
- message: string;
1310
- } | InternalServerError);
1311
-
1312
- export type HandleDevServerStatusData = {
1313
- body: DevServerStatusRequest;
1314
- };
1315
-
1316
- export type HandleDevServerStatusResponse = ({
1317
- installing: boolean;
1318
- devRunning: boolean;
1319
- });
1320
-
1321
- export type HandleDevServerStatusError = (InternalServerError);
1322
-
1323
- export type HandleWatchDevServerFilesData = {
1324
- body: DevServerWatchFilesRequest;
1325
- };
1326
-
1327
- export type HandleWatchDevServerFilesResponse = (string);
1328
-
1329
- export type HandleWatchDevServerFilesError = unknown;
1330
-
1331
- export type HandleListExecuteRunsData = {
1332
- query?: {
1333
- limit?: (number) | null;
1334
- offset?: (number) | null;
1335
- };
1336
- };
1337
-
1338
- export type HandleListExecuteRunsResponse = ({
1339
- entries: Array<ExecuteLogEntry>;
1340
- total: number;
1341
- offset: number;
1342
- });
1343
-
1344
- export type HandleListExecuteRunsError = ({
1345
- message: string;
1346
- });
1347
-
1348
- export type HandleGetExecuteRunData = {
1349
- path: {
1350
- deployment: string;
1351
- };
1352
- };
1353
-
1354
- export type HandleGetExecuteRunResponse = ({
1355
- metadata: ExecuteLogEntry;
1356
- code?: (null | ExecuteRunInfo);
1357
- });
1358
-
1359
- export type HandleGetExecuteRunError = ({
1360
- message: string;
1361
- });
1362
-
1363
- export type HandleExecuteScriptData = {
1364
- body: FreestyleExecuteScriptParams;
1365
- };
1366
-
1367
- export type HandleExecuteScriptResponse = ({
1368
- /**
1369
- * The return value of the default export of the script
1370
- */
1371
- result: unknown;
1372
- logs: Array<FreestyleJavaScriptLog>;
1373
- });
1374
-
1375
- export type HandleExecuteScriptError = ({
1376
- error: string;
1377
- logs?: Array<FreestyleJavaScriptLog> | null;
1378
- });
1379
-
1380
- export type HandleListIdentitiesData = {
1381
- query?: {
1382
- includeManaged?: (boolean) | null;
1383
- limit?: (number) | null;
1384
- offset?: (number) | null;
1385
- };
1386
- };
1387
-
1388
- export type HandleListIdentitiesResponse = ({
1389
- identities: Array<GitIdentity>;
1390
- offset: number;
1391
- total: number;
1392
- });
1393
-
1394
- export type HandleListIdentitiesError = ({
1395
- message: string;
1396
- });
1397
-
1398
- export type HandleCreateIdentityResponse = (GitIdentity);
1399
-
1400
- export type HandleCreateIdentityError = ({
1401
- message: string;
1402
- });
1403
-
1404
- export type HandleDeleteIdentityData = {
1405
- path: {
1406
- identity: string;
1407
- };
1408
- };
1409
-
1410
- export type HandleDeleteIdentityResponse = ({
1411
- [key: string]: unknown;
1412
- });
1413
-
1414
- export type HandleDeleteIdentityError = ({
1415
- message: string;
1416
- });
1417
-
1418
- export type HandleListPermissionsData = {
1419
- path: {
1420
- identity: string;
1421
- };
1422
- query?: {
1423
- /**
1424
- * Maximum number of repositories to return
1425
- */
1426
- limit?: number;
1427
- /**
1428
- * Offset for the list of repositories
1429
- */
1430
- offset?: number;
1431
- };
1432
- };
1433
-
1434
- export type HandleListPermissionsResponse = (ListPermissionResponseSuccess);
1435
-
1436
- export type HandleListPermissionsError = ({
1437
- message: string;
1438
- });
1439
-
1440
- export type HandleDescribePermissionData = {
1441
- path: {
1442
- identity: string;
1443
- repo: string;
1444
- };
1445
- };
1446
-
1447
- export type HandleDescribePermissionResponse = (DescribePermissionResponseSuccess);
1448
-
1449
- export type HandleDescribePermissionError = ({
1450
- message: string;
1451
- });
1452
-
1453
- export type HandleGrantPermissionData = {
1454
- body: GrantPermissionRequest;
1455
- path: {
1456
- identity: string;
1457
- repo: string;
1458
- };
1459
- };
1460
-
1461
- export type HandleGrantPermissionResponse = ({
1462
- [key: string]: unknown;
1463
- });
1464
-
1465
- export type HandleGrantPermissionError = ({
1466
- message: string;
1467
- });
1468
-
1469
- export type HandleRevokePermissionData = {
1470
- path: {
1471
- identity: string;
1472
- repo: string;
1473
- };
1474
- };
1475
-
1476
- export type HandleRevokePermissionResponse = ({
1477
- [key: string]: unknown;
1478
- });
1479
-
1480
- export type HandleRevokePermissionError = ({
1481
- message: string;
1482
- });
1483
-
1484
- export type HandleUpdatePermissionData = {
1485
- body: UpdatePermissionRequest;
1486
- path: {
1487
- identity: string;
1488
- repo: string;
1489
- };
1490
- };
1491
-
1492
- export type HandleUpdatePermissionResponse = ({
1493
- [key: string]: unknown;
1494
- });
1495
-
1496
- export type HandleUpdatePermissionError = ({
1497
- message: string;
1498
- });
1499
-
1500
- export type HandleListGitTokensData = {
1501
- path: {
1502
- identity: string;
1503
- };
1504
- };
1505
-
1506
- export type HandleListGitTokensResponse = (ListGitTokensResponseSuccess);
1507
-
1508
- export type HandleListGitTokensError = ({
1509
- message: string;
1510
- });
1511
-
1512
- export type HandleCreateGitTokenData = {
1513
- path: {
1514
- identity: string;
1515
- };
1516
- };
1517
-
1518
- export type HandleCreateGitTokenResponse = (CreatedToken);
1519
-
1520
- export type HandleCreateGitTokenError = ({
1521
- message: string;
1522
- });
1523
-
1524
- export type HandleRevokeGitTokenData = {
1525
- body: RevokeGitTokenRequest;
1526
- path: {
1527
- identity: string;
1528
- };
1529
- };
1530
-
1531
- export type HandleRevokeGitTokenResponse = ({
1532
- [key: string]: unknown;
1533
- });
1534
-
1535
- export type HandleRevokeGitTokenError = ({
1536
- message: string;
1537
- });
1538
-
1539
- export type HandleListRepositoriesData = {
1540
- query?: {
1541
- /**
1542
- * Maximum number of repositories to return
1543
- */
1544
- limit?: number;
1545
- /**
1546
- * Offset for the list of repositories
1547
- */
1548
- offset?: number;
1549
- };
1550
- };
1551
-
1552
- export type HandleListRepositoriesResponse = ({
1553
- repositories: Array<RepositoryMetadata>;
1554
- total: number;
1555
- offset: number;
1556
- });
1557
-
1558
- export type HandleListRepositoriesError = ({
1559
- message: string;
1560
- });
1561
-
1562
- export type HandleCreateRepoData = {
1563
- body: {
1564
- /**
1565
- * This name is not visible to users, and is only accessible to you via API and in the
1566
- * dashboard. Mostly useful for observability.
1567
- */
1568
- name?: (string) | null;
1569
- public?: boolean;
1570
- /**
1571
- * The default branch name for the repository. Defaults to "main" if not specified.
1572
- */
1573
- defaultBranch?: (string) | null;
1574
- /**
1575
- * Fork from another Git repository. Cannot be used with `import`.
1576
- */
1577
- source?: CreateRepoSource;
1578
- /**
1579
- * Import static content with an initial commit. Cannot be used with `source`.
1580
- */
1581
- import?: CreateRepoImport;
1582
- devServers?: DevServerConfiguration;
1583
- };
1584
- };
1585
-
1586
- export type HandleCreateRepoResponse = (CreateRepositoryResponseSuccess);
1587
-
1588
- export type HandleCreateRepoError = ({
1589
- message: string;
1590
- });
1591
-
1592
- export type HandleGetDefaultBranchData = {
1593
- path: {
1594
- /**
1595
- * The repository ID
1596
- */
1597
- repo_id: string;
1598
- };
1599
- };
1600
-
1601
- export type HandleGetDefaultBranchResponse = (GetDefaultBranchResponse);
1602
-
1603
- export type HandleGetDefaultBranchError = unknown;
1604
-
1605
- export type HandleSetDefaultBranchData = {
1606
- body: SetDefaultBranchRequest;
1607
- path: {
1608
- /**
1609
- * The repository ID
1610
- */
1611
- repo_id: string;
1612
- };
1613
- };
1614
-
1615
- export type HandleSetDefaultBranchResponse = (SetDefaultBranchResponse);
1616
-
1617
- export type HandleSetDefaultBranchError = unknown;
1618
-
1619
- export type GetDevServerConfigurationData = {
1620
- path: {
1621
- /**
1622
- * Repository ID
1623
- */
1624
- repo_id: string;
1625
- };
1626
- query: {
1627
- /**
1628
- * Git branch name
1629
- */
1630
- branch: string;
1631
- };
1632
- };
1633
-
1634
- export type GetDevServerConfigurationResponse = (DevServerConfiguration);
1635
-
1636
- export type GetDevServerConfigurationError = (unknown);
1637
-
1638
- export type UpdateDevServerConfigurationData = {
1639
- body: UpdateDevServerConfigRequest;
1640
- path: {
1641
- /**
1642
- * Repository ID
1643
- */
1644
- repo_id: string;
1645
- };
1646
- };
1647
-
1648
- export type UpdateDevServerConfigurationResponse = (unknown);
1649
-
1650
- export type UpdateDevServerConfigurationError = (unknown);
1651
-
1652
- export type DeleteDevServerConfigurationData = {
1653
- path: {
1654
- /**
1655
- * Repository ID
1656
- */
1657
- repo_id: string;
1658
- };
1659
- query: {
1660
- /**
1661
- * Git branch name (optional, defaults to repository default branch)
1662
- */
1663
- branch: string;
1664
- };
1665
- };
1666
-
1667
- export type DeleteDevServerConfigurationResponse = (void);
1668
-
1669
- export type DeleteDevServerConfigurationError = (unknown);
1670
-
1671
- export type GetGithubSyncData = {
1672
- path: {
1673
- /**
1674
- * Repository ID
1675
- */
1676
- repo_id: string;
1677
- };
1678
- };
1679
-
1680
- export type GetGithubSyncResponse = (GithubSyncConfigResponse);
1681
-
1682
- export type GetGithubSyncError = (unknown);
1683
-
1684
- export type ConfigureGithubSyncData = {
1685
- body: ConfigureGithubSyncRequest;
1686
- path: {
1687
- /**
1688
- * Repository ID
1689
- */
1690
- repo_id: string;
1691
- };
1692
- };
1693
-
1694
- export type ConfigureGithubSyncResponse = (unknown);
1695
-
1696
- export type ConfigureGithubSyncError = (unknown);
1697
-
1698
- export type RemoveGithubSyncData = {
1699
- path: {
1700
- /**
1701
- * Repository ID
1702
- */
1703
- repo_id: string;
1704
- };
1705
- };
1706
-
1707
- export type RemoveGithubSyncResponse = (unknown);
1708
-
1709
- export type RemoveGithubSyncError = (unknown);
1710
-
1711
- export type HandleGetRepoInfoData = {
1712
- path: {
1713
- /**
1714
- * The repository id
1715
- */
1716
- repo: string;
1717
- };
1718
- };
1719
-
1720
- export type HandleGetRepoInfoResponse = (RepositoryInfoRaw);
1721
-
1722
- export type HandleGetRepoInfoError = (unknown);
1723
-
1724
- export type HandleDeleteRepoData = {
1725
- path: {
1726
- /**
1727
- * The repository id
1728
- */
1729
- repo: string;
1730
- };
1731
- };
1732
-
1733
- export type HandleDeleteRepoResponse = ({
1734
- [key: string]: unknown;
1735
- });
1736
-
1737
- export type HandleDeleteRepoError = ({
1738
- message: string;
1739
- } | {
1740
- [key: string]: unknown;
1741
- });
1742
-
1743
- export type HandleGetContentsData = {
1744
- path: {
1745
- /**
1746
- * The path to the file or directory. Empty for root.
1747
- */
1748
- path: (string) | null;
1749
- /**
1750
- * The repository ID.
1751
- */
1752
- repo: string;
1753
- };
1754
- query?: {
1755
- /**
1756
- * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1757
- */
1758
- ref?: string;
1759
- };
1760
- };
1761
-
1762
- export type HandleGetContentsResponse = (GitContents);
1763
-
1764
- export type HandleGetContentsError = ({
1765
- message: string;
1766
- });
1767
-
1768
- export type HandleGetBlobData = {
1769
- path: {
1770
- /**
1771
- * The object's hash
1772
- */
1773
- hash: string;
1774
- /**
1775
- * The repository id
1776
- */
1777
- repo: string;
1778
- };
1779
- };
1780
-
1781
- export type HandleGetBlobResponse = (BlobObject);
1782
-
1783
- export type HandleGetBlobError = ({
1784
- message: string;
1785
- });
1786
-
1787
- export type HandleListCommitsData = {
1788
- path: {
1789
- /**
1790
- * The repository id
1791
- */
1792
- repo: string;
1793
- };
1794
- query?: {
1795
- /**
1796
- * Branch name (defaults to HEAD)
1797
- */
1798
- branch?: (string) | null;
1799
- /**
1800
- * Maximum number of commits to return (default: 50, max: 500)
1801
- */
1802
- limit?: (number) | null;
1803
- /**
1804
- * Number of commits to skip (default: 0)
1805
- */
1806
- offset?: (number) | null;
1807
- };
1808
- };
1809
-
1810
- export type HandleListCommitsResponse = (CommitList);
1811
-
1812
- export type HandleListCommitsError = ({
1813
- message: string;
1814
- });
1815
-
1816
- export type HandleGetCommitData = {
1817
- path: {
1818
- /**
1819
- * The object's hash
1820
- */
1821
- hash: string;
1822
- /**
1823
- * The repository id
1824
- */
1825
- repo: string;
1826
- };
1827
- };
1828
-
1829
- export type HandleGetCommitResponse = (CommitObject);
1830
-
1831
- export type HandleGetCommitError = ({
1832
- message: string;
1833
- });
1834
-
1835
- export type HandleGetRefBranchData = {
1836
- path: {
1837
- /**
1838
- * The branch's name
1839
- */
1840
- branch: string;
1841
- /**
1842
- * The repository id
1843
- */
1844
- repo: string;
1845
- };
1846
- };
1847
-
1848
- export type HandleGetRefBranchResponse = (GitReference);
1849
-
1850
- export type HandleGetRefBranchError = (unknown | {
1851
- message: string;
1852
- });
1853
-
1854
- export type HandleGetRefTagData = {
1855
- path: {
1856
- /**
1857
- * The repository id
1858
- */
1859
- repo: string;
1860
- /**
1861
- * The tag's name
1862
- */
1863
- tag: string;
1864
- };
1865
- };
1866
-
1867
- export type HandleGetRefTagResponse = (GitReference);
1868
-
1869
- export type HandleGetRefTagError = (unknown | {
1870
- message: string;
1871
- });
1872
-
1873
- export type HandleGetTagData = {
1874
- path: {
1875
- /**
1876
- * The object's hash
1877
- */
1878
- hash: string;
1879
- /**
1880
- * The repository id
1881
- */
1882
- repo: string;
1883
- };
1884
- };
1885
-
1886
- export type HandleGetTagResponse = (TagObject);
1887
-
1888
- export type HandleGetTagError = ({
1889
- message: string;
1890
- });
1891
-
1892
- export type HandleGetTreeData = {
1893
- path: {
1894
- /**
1895
- * The object's hash
1896
- */
1897
- hash: string;
1898
- /**
1899
- * The repository id
1900
- */
1901
- repo: string;
1902
- };
1903
- };
1904
-
1905
- export type HandleGetTreeResponse = (TreeObject);
1906
-
1907
- export type HandleGetTreeError = ({
1908
- message: string;
1909
- });
1910
-
1911
- export type HandleDownloadTarballData = {
1912
- path: {
1913
- /**
1914
- * The repository id
1915
- */
1916
- repo: string;
1917
- };
1918
- query?: {
1919
- /**
1920
- * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1921
- */
1922
- ref?: string;
1923
- };
1924
- };
1925
-
1926
- export type HandleDownloadTarballResponse = (unknown);
1927
-
1928
- export type HandleDownloadTarballError = ({
1929
- message: string;
1930
- });
1931
-
1932
- export type HandleListGitTriggersData = {
1933
- path: {
1934
- /**
1935
- * The repository id
1936
- */
1937
- repo: string;
1938
- };
1939
- };
1940
-
1941
- export type HandleListGitTriggersResponse = ({
1942
- triggers: Array<GitRepositoryTrigger>;
1943
- });
1944
-
1945
- export type HandleListGitTriggersError = ({
1946
- message: string;
1947
- });
1948
-
1949
- export type HandleCreateGitTriggerData = {
1950
- body: {
1951
- trigger: ({
1952
- branches?: Array<(string)> | null;
1953
- globs?: Array<(string)> | null;
1954
- event: 'push';
1955
- });
1956
- action: ({
1957
- endpoint: string;
1958
- action: 'webhook';
1959
- });
1960
- };
1961
- path: {
1962
- /**
1963
- * The repository id
1964
- */
1965
- repo: string;
1966
- };
1967
- };
1968
-
1969
- export type HandleCreateGitTriggerResponse = ({
1970
- triggerId: string;
1971
- });
1972
-
1973
- export type HandleCreateGitTriggerError = ({
1974
- message: string;
1975
- });
1976
-
1977
- export type HandleDeleteGitTriggerData = {
1978
- path: {
1979
- /**
1980
- * The repository id
1981
- */
1982
- repo: string;
1983
- /**
1984
- * The trigger id
1985
- */
1986
- trigger: string;
1987
- };
1988
- };
1989
-
1990
- export type HandleDeleteGitTriggerResponse = ({
1991
- [key: string]: unknown;
1992
- });
1993
-
1994
- export type HandleDeleteGitTriggerError = ({
1995
- message: string;
1996
- } | {
1997
- [key: string]: unknown;
1998
- });
1999
-
2000
- export type HandleDownloadZipData = {
2001
- path: {
2002
- /**
2003
- * The repository id
2004
- */
2005
- repo: string;
2006
- };
2007
- query?: {
2008
- /**
2009
- * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
2010
- */
2011
- ref?: string;
2012
- };
2013
- };
2014
-
2015
- export type HandleDownloadZipResponse = (unknown);
2016
-
2017
- export type HandleDownloadZipError = ({
2018
- message: string;
2019
- });
2020
-
2021
- export type HandleGetLogsData = {
2022
- query?: {
2023
- deploymentId?: (string) | null;
2024
- domain?: (string) | null;
2025
- };
2026
- };
2027
-
2028
- export type HandleGetLogsResponse = (FreestyleGetLogsResponse);
2029
-
2030
- export type HandleGetLogsError = unknown;
2031
-
2032
- export type CreateVmData = {
2033
- body: CreateVmRequest;
2034
- };
2035
-
2036
- export type ResizeVmData = {
2037
- body: ResizeVmRequest;
2038
- path: {
2039
- id: string;
2040
- };
2041
- };
2042
-
2043
- export type GetVmData = {
2044
- path: {
2045
- vm_id: string;
2046
- };
2047
- };
2048
-
2049
- export type DeleteVmData = {
2050
- path: {
2051
- /**
2052
- * The ID of the VM to delete
2053
- */
2054
- vm_id: string;
2055
- };
2056
- };
2057
-
2058
- export type WaitVmData = {
2059
- path: {
2060
- /**
2061
- * The ID of the VM to wait for
2062
- */
2063
- vm_id: string;
2064
- };
2065
- };
2066
-
2067
- export type ExecAwaitData = {
2068
- body: ExecAwaitRequest;
2069
- path: {
2070
- /**
2071
- * The ID of the VM to execute the command in
2072
- */
2073
- vm_id: string;
2074
- };
2075
- };
2076
-
2077
- export type GetFileData = {
2078
- path: {
2079
- /**
2080
- * The path of the file to get
2081
- */
2082
- filepath: string;
2083
- /**
2084
- * The ID of the VM to get the file from
2085
- */
2086
- vm_id: string;
2087
- };
2088
- };
2089
-
2090
- export type PutFileData = {
2091
- body: WriteFileRequest;
2092
- path: {
2093
- /**
2094
- * The path of the file to put
2095
- */
2096
- filepath: string;
2097
- /**
2098
- * The ID of the VM to put the file to
2099
- */
2100
- vm_id: string;
2101
- };
2102
- };
2103
-
2104
- export type ForkVmData = {
2105
- body: ForkVmRequest;
2106
- path: {
2107
- vm_id: string;
2108
- };
2109
- };
2110
-
2111
- export type OptimizeVmData = {
2112
- path: {
2113
- /**
2114
- * The ID of the VM to optimize
2115
- */
2116
- vm_id: string;
2117
- };
2118
- };
2119
-
2120
- export type StartVmData = {
2121
- body: StartVmRequest;
2122
- path: {
2123
- vm_id: string;
2124
- };
2125
- };
2126
-
2127
- export type StopVmData = {
2128
- path: {
2129
- /**
2130
- * The ID of the VM to stop
2131
- */
2132
- vm_id: string;
2133
- };
2134
- };
2135
-
2136
- export type SuspendVmData = {
2137
- path: {
2138
- /**
2139
- * The ID of the VM to suspend
2140
- */
2141
- vm_id: string;
2142
- };
2143
- };
2144
-
2145
- export type ListTerminalsData = {
2146
- path: {
2147
- /**
2148
- * The ID of the VM
2149
- */
2150
- vm_id: string;
2151
- };
2152
- };
2153
-
2154
- export type GetTerminalLogsData = {
2155
- path: {
2156
- /**
2157
- * The ID of the terminal session
2158
- */
2159
- terminal_id: string;
2160
- /**
2161
- * The ID of the VM
2162
- */
2163
- vm_id: string;
2164
- };
2165
- };
2166
-
2167
- export type GetTerminalXtermData = {
2168
- path: {
2169
- /**
2170
- * The ID of the terminal session
2171
- */
2172
- terminal_id: string;
2173
- /**
2174
- * The ID of the VM
2175
- */
2176
- vm_id: string;
2177
- };
2178
- };
2179
-
2180
- export type WatchFilesData = {
2181
- path: {
2182
- /**
2183
- * The ID of the VM to watch files for
2184
- */
2185
- vm_id: string;
2186
- };
2187
- };
2188
-
2189
- export type HandleDeployWebData = {
2190
- body: FreestyleDeployWebPayload;
2191
- };
2192
-
2193
- export type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponseV2);
2194
-
2195
- export type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
2196
-
2197
- export type HandleDeployWebV2Data = {
2198
- body: FreestyleDeployWebPayloadV2;
2199
- };
2200
-
2201
- export type HandleDeployWebV2Response = (FreestyleDeployWebSuccessResponseV2);
2202
-
2203
- export type HandleDeployWebV2Error = (unknown | {
2204
- domain: string;
2205
- } | FreestyleDeployWebErrorResponse);
2206
-
2207
- export type HandleListWebDeploysData = {
2208
- query: {
2209
- /**
2210
- * Maximum number of repositories to return
2211
- */
2212
- limit: number;
2213
- /**
2214
- * Offset for the list of repositories
2215
- */
2216
- offset: number;
2217
- };
2218
- };
2219
-
2220
- export type HandleListWebDeploysResponse = ({
2221
- entries: Array<DeploymentLogEntry>;
2222
- total: number;
2223
- offset: number;
2224
- });
2225
-
2226
- export type HandleListWebDeploysError = ({
2227
- message: string;
2228
- });
2229
-
2230
- export type HandleGetWebDeployDetailsData = {
2231
- path: {
2232
- deployment_id: string;
2233
- };
2234
- };