freestyle-sandboxes 0.0.97 → 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,1898 +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
- type FreestyleDeployWebErrorResponse = {
479
- message: string;
480
- };
481
- type FreestyleDeployWebPayload = {
482
- /**
483
- * 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\" } }
484
- *
485
- * **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.
486
- */
487
- files: {
488
- [key: string]: FreestyleFile;
489
- };
490
- config?: FreestyleDeployWebConfiguration;
491
- };
492
- type FreestyleDeployWebPayloadV2 = {
493
- /**
494
- * 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\" } }
495
- *
496
- * **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.
497
- */
498
- source: DeploymentSource;
499
- config?: FreestyleDeployWebConfiguration;
500
- };
501
- type FreestyleDeployWebSuccessResponseV2 = {
502
- deploymentId: string;
503
- /**
504
- * @deprecated
505
- */
506
- projectId: string;
507
- domains?: Array<(string)> | null;
508
- /**
509
- * The entrypoint file for the website. If not specified we try to automatically detect it.
510
- */
511
- entrypoint: string;
512
- };
513
- type FreestyleDomainVerificationRequest = {
514
- /**
515
- * The domain to create a verification code for
516
- */
517
- domain: string;
518
- };
519
- type FreestyleExecuteScriptParams = {
520
- /**
521
- * The JavaScript or TypeScript script to execute
522
- */
523
- script: string;
524
- config?: FreestyleExecuteScriptParamsConfiguration;
525
- };
526
- type FreestyleExecuteScriptParamsConfiguration = {
527
- /**
528
- * The environment variables to set for the script
529
- */
530
- envVars?: {
531
- [key: string]: (string);
532
- };
533
- /**
534
- * The node modules to install for the script
535
- */
536
- nodeModules?: {
537
- [key: string]: (string);
538
- };
539
- /**
540
- * Tags for you to organize your scripts, useful for tracking what you're running
541
- */
542
- tags?: Array<(string)>;
543
- /**
544
- * The script timeout
545
- */
546
- timeout?: (number) | null;
547
- /**
548
- * 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.
549
- */
550
- peerDependencyResolution?: boolean;
551
- networkPermissions?: Array<FreestyleNetworkPermission> | null;
552
- /**
553
- * These headers will be added to every fetch request made through the script
554
- */
555
- customHeaders?: {
556
- [key: string]: (string);
557
- };
558
- /**
559
- * Proxy all outgoing requests through this URL
560
- */
561
- proxy?: (string) | null;
562
- };
563
- type FreestyleExecuteScriptResultSuccess = {
564
- /**
565
- * The return value of the default export of the script
566
- */
567
- result: unknown;
568
- logs: Array<FreestyleJavaScriptLog>;
569
- };
570
- type FreestyleFile = {
571
- /**
572
- * The content of the file
573
- */
574
- content: string;
575
- /**
576
- * The encoding of the file. Either **utf-8** or **base64**
577
- */
578
- encoding?: string;
579
- };
580
- type FreestyleGetLogsResponse = {
581
- logs: Array<FreestyleLogResponseObject>;
582
- };
583
- type FreestyleJavaScriptLog = {
584
- /**
585
- * The log message
586
- */
587
- message: string;
588
- /**
589
- * The log level
590
- */
591
- type: string;
592
- };
593
- type FreestyleLogResponseObject = {
594
- message: string;
595
- timestamp: string;
596
- };
597
- type FreestyleNetworkPermission = (NetworkPermissionData & {
598
- action: 'allow';
599
- }) | (NetworkPermissionData & {
600
- action: 'deny';
601
- });
602
- type action = 'allow';
603
- type FreestyleSandboxDomainMapping = {
604
- id: string;
605
- domain: string;
606
- deploymentId: string;
607
- ownershipId: string;
608
- createdAt: string;
609
- };
610
- /**
611
- * Verify a domain verification request, can either be done for a domain, or for a specific request
612
- */
613
- type FreestyleVerifyDomainRequest = {
614
- domain: string;
615
- } | {
616
- id: string;
617
- };
618
- type GetDefaultBranchResponse = {
619
- defaultBranch: string;
620
- };
621
- type GitCommitPushRequest = {
622
- devServer: DevServer;
623
- message: string;
624
- };
625
- type GitContents = {
626
- name: string;
627
- path: string;
628
- /**
629
- * The hash / object ID of the file.
630
- */
631
- sha: string;
632
- size: number;
633
- /**
634
- * Base64-encoded content.
635
- */
636
- content: string;
637
- type: 'file';
638
- } | {
639
- name: string;
640
- path: string;
641
- /**
642
- * The hash / object ID of the directory.
643
- */
644
- sha: string;
645
- entries: Array<GitContentsDirEntryItem>;
646
- type: 'dir';
647
- };
648
- type type2 = 'file';
649
- type GitContentsDirEntryItem = {
650
- name: string;
651
- path: string;
652
- /**
653
- * The hash / object ID of the file.
654
- */
655
- sha: string;
656
- size: number;
657
- type: 'file';
658
- } | {
659
- name: string;
660
- path: string;
661
- /**
662
- * The hash / object ID of the directory.
663
- */
664
- sha: string;
665
- entries: Array<({
666
- [key: string]: unknown;
667
- })>;
668
- type: 'dir';
669
- };
670
- type GithubRepoSyncConfig = {
671
- freestyleRepoId: string;
672
- accountId: string;
673
- installationId: number;
674
- githubRepoId: number;
675
- githubRepoName: string;
676
- createdAt: string;
677
- };
678
- type GithubSyncConfigResponse = {
679
- githubRepoName: string;
680
- };
681
- type GitIdentity = {
682
- id: string;
683
- managed: boolean;
684
- };
685
- /**
686
- * A reference to a Git object
687
- */
688
- type GitReference = {
689
- /**
690
- * The name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")
691
- */
692
- name: string;
693
- /**
694
- * The SHA-1 hash of the Git object this reference points to
695
- */
696
- sha: string;
697
- };
698
- type GitRepositoryTrigger = {
699
- repositoryId: string;
700
- trigger: ({
701
- branches?: Array<(string)> | null;
702
- globs?: Array<(string)> | null;
703
- event: 'push';
704
- });
705
- action: ({
706
- endpoint: string;
707
- action: 'webhook';
708
- });
709
- managed: boolean;
710
- id: string;
711
- createdAt: string;
712
- };
713
- type event = 'push';
714
- type action2 = 'webhook';
715
- type GitTrigger = {
716
- branches?: Array<(string)> | null;
717
- globs?: Array<(string)> | null;
718
- event: 'push';
719
- };
720
- type GitTriggerAction = {
721
- endpoint: string;
722
- action: 'webhook';
723
- };
724
- type GrantPermissionRequest = {
725
- permission: AccessLevel;
726
- };
727
- type InternalServerError = string;
728
- type ListGitTokensResponseSuccess = {
729
- tokens: Array<AccessTokenInfo>;
730
- };
731
- type ListPermissionResponseSuccess = {
732
- repositories: Array<AccessibleRepository>;
733
- };
734
- type ListRecordsResponse = {
735
- records: Array<DnsRecord>;
736
- };
737
- type NetworkPermissionData = {
738
- query: string;
739
- behavior?: Behavior;
740
- };
741
- type PortConfig = {
742
- port: number;
743
- targetPort: number;
744
- };
745
- type PortMapping = {
746
- port: number;
747
- targetPort: number;
748
- };
749
- type ReadFileEphemeralDevServerResponses = {
750
- id: string;
751
- isNew: boolean;
752
- content: ({
753
- content: string;
754
- encoding: string;
755
- kind: 'file';
756
- } | {
757
- files: Array<(string)>;
758
- kind: 'directory';
759
- });
760
- } | {
761
- id: string;
762
- isNew: boolean;
763
- } | InternalServerError;
764
- type RepositoryInfoRaw = {
765
- id: string;
766
- name?: (string) | null;
767
- accountId: string;
768
- visibility: Visibility;
769
- defaultBranch: string;
770
- };
771
- type RepositoryMetadata = {
772
- branches: {
773
- [key: string]: BranchDetails;
774
- };
775
- tags: {
776
- [key: string]: TagDetails;
777
- };
778
- defaultBranch: string;
779
- };
780
- type ResizeVmRequest = {
781
- sizeMb: number;
782
- };
783
- type RevokeGitTokenRequest = {
784
- tokenId: string;
785
- };
786
- type SetDefaultBranchRequest = {
787
- defaultBranch: string;
788
- };
789
- type SetDefaultBranchResponse = {
790
- [key: string]: unknown;
791
- };
792
- type ShutdownDevServerRequest = {
793
- /**
794
- * The dev server to shutdown
795
- */
796
- devServer: DevServer;
797
- };
798
- type Signature = {
799
- /**
800
- * The date marker for this signature
801
- */
802
- date: string;
803
- name: string;
804
- email: string;
805
- };
806
- type StartVmRequest = {
807
- idleTimeoutSeconds?: (number) | null;
808
- readySignalTimeoutSeconds?: (number) | null;
809
- waitForReadySignal?: (boolean) | null;
810
- };
811
- type TagDetails = {
812
- name: string;
813
- target: string;
814
- message?: (string) | null;
815
- };
816
- /**
817
- * Tag object
818
- */
819
- type TagObject = {
820
- /**
821
- * The tag name
822
- */
823
- name: string;
824
- tagger?: (null | Signature);
825
- /**
826
- * The tag message
827
- */
828
- message?: (string) | null;
829
- /**
830
- * The object this tag points to
831
- */
832
- target: TagTarget;
833
- /**
834
- * The tag's hash ID
835
- */
836
- sha: string;
837
- };
838
- type TagTarget = {
839
- /**
840
- * The target object's hash ID
841
- */
842
- sha: string;
843
- };
844
- type TreeEntry = {
845
- path: string;
846
- sha: string;
847
- type: 'blob';
848
- } | {
849
- path: string;
850
- sha: string;
851
- type: 'tree';
852
- };
853
- type type3 = 'blob';
854
- /**
855
- * Tree object
856
- */
857
- type TreeObject = {
858
- /**
859
- * The tree's entries
860
- */
861
- tree: Array<TreeEntry>;
862
- /**
863
- * The tree's hash ID
864
- */
865
- sha: string;
866
- };
867
- type UpdateDevServerConfigRequest = DevServerConfiguration & {
868
- branch?: (string) | null;
869
- };
870
- type UpdatePermissionRequest = {
871
- permission: AccessLevel;
872
- };
873
- type Visibility = 'public' | 'private';
874
- type VmPersistence = {
875
- /**
876
- * Priority for eviction when storage quota is reached. Higher values
877
- * mean the VM is less likely to be evicted. Range is 0-10, default is
878
- * 5.
879
- */
880
- priority?: (number) | null;
881
- type: 'sticky';
882
- } | {
883
- type: 'ephemeral';
884
- } | {
885
- type: 'persistent';
886
- };
887
- type type4 = 'sticky';
888
- type WriteFileRequest = {
889
- content: string;
890
- };
891
- type HandleDeployCloudstateData = {
892
- body: FreestyleCloudstateDeployRequest;
893
- };
894
- type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
895
- type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
896
- type HandleBackupCloudstateData = {
897
- path: {
898
- id: string;
899
- };
900
- };
901
- type HandleBackupCloudstateResponse = (Array<(number)>);
902
- type HandleBackupCloudstateError = (unknown);
903
- type HandleListRecordsData = {
904
- query: {
905
- domain: string;
906
- };
907
- };
908
- type HandleListRecordsResponse = (ListRecordsResponse);
909
- type HandleListRecordsError = ({
910
- message: string;
911
- });
912
- type HandleCreateRecordData = {
913
- body: CreateRecordParams;
914
- };
915
- type HandleCreateRecordResponse = (CreateRecordResponse);
916
- type HandleCreateRecordError = ({
917
- domain: string;
918
- account_id: string;
919
- } | {
920
- message: string;
921
- });
922
- type HandleDeleteRecordData = {
923
- query: {
924
- domain: string;
925
- record: DnsRecord;
926
- };
927
- };
928
- type HandleDeleteRecordResponse = (DeleteRecordResponse);
929
- type HandleDeleteRecordError = ({
930
- domain: string;
931
- account_id: string;
932
- } | {
933
- domain: string;
934
- name: string;
935
- });
936
- type HandleVerifyWildcardData = {
937
- path: {
938
- domain: string;
939
- };
940
- };
941
- type HandleVerifyWildcardResponse = ({
942
- domain: string;
943
- });
944
- type HandleVerifyWildcardError = ({
945
- message: string;
946
- });
947
- type HandleListDomainsData = {
948
- query?: {
949
- implicitlyOwned?: (boolean) | null;
950
- limit?: (number) | null;
951
- offset?: (number) | null;
952
- };
953
- };
954
- type HandleListDomainsResponse = (Array<{
955
- domain: string;
956
- accountId: string;
957
- createdAt: string;
958
- id: string;
959
- verifiedDns: boolean;
960
- implicitlyOwned: boolean;
961
- deployToDomain: boolean;
962
- manageDns: boolean;
963
- deployToSubdomains: boolean;
964
- }>);
965
- type HandleListDomainsError = ({
966
- message: string;
967
- });
968
- type HandleListDomainMappingsData = {
969
- query?: {
970
- domain?: (string) | null;
971
- domainOwnership?: (string) | null;
972
- limit?: (number) | null;
973
- offset?: (number) | null;
974
- };
975
- };
976
- type HandleListDomainMappingsResponse = (Array<FreestyleSandboxDomainMapping>);
977
- type HandleListDomainMappingsError = (unknown);
978
- type HandleInsertDomainMappingData = {
979
- body: CreateDomainMappingRequest;
980
- path: {
981
- domain: string;
982
- };
983
- };
984
- type HandleInsertDomainMappingResponse = (FreestyleSandboxDomainMapping);
985
- type HandleInsertDomainMappingError = ({
986
- message: string;
987
- });
988
- type HandleDeleteDomainMappingData = {
989
- path: {
990
- domain: string;
991
- };
992
- };
993
- type HandleDeleteDomainMappingResponse = (unknown);
994
- type HandleDeleteDomainMappingError = ({
995
- message: string;
996
- });
997
- type HandleListDomainVerificationRequestsResponse = (Array<{
998
- verificationCode: string;
999
- domain: string;
1000
- createdAt: string;
1001
- }>);
1002
- type HandleListDomainVerificationRequestsError = ({
1003
- message: string;
1004
- });
1005
- type HandleVerifyDomainData = {
1006
- body: FreestyleVerifyDomainRequest;
1007
- };
1008
- type HandleVerifyDomainResponse = ({
1009
- domain: string;
1010
- });
1011
- type HandleVerifyDomainError = ({
1012
- message: string;
1013
- });
1014
- type HandleCreateDomainVerificationData = {
1015
- body: FreestyleDomainVerificationRequest;
1016
- };
1017
- type HandleCreateDomainVerificationResponse = (DomainVerificationRequest);
1018
- type HandleCreateDomainVerificationError = ({
1019
- message: string;
1020
- });
1021
- type HandleDeleteDomainVerificationData = {
1022
- body: FreestyleDeleteDomainVerificationRequest;
1023
- };
1024
- type HandleDeleteDomainVerificationResponse = ({
1025
- verificationCode: string;
1026
- domain: string;
1027
- });
1028
- type HandleDeleteDomainVerificationError = ({
1029
- message: string;
1030
- });
1031
- type HandleEphemeralDevServerData = {
1032
- body: DevServerRequest;
1033
- };
1034
- type HandleEphemeralDevServerResponse = ({
1035
- /**
1036
- * @deprecated
1037
- */
1038
- url: string;
1039
- isNew: boolean;
1040
- devCommandRunning: boolean;
1041
- installCommandRunning: boolean;
1042
- mcpEphemeralUrl?: (string) | null;
1043
- ephemeralUrl?: (string) | null;
1044
- vmId?: (string) | null;
1045
- baseId?: (string) | null;
1046
- });
1047
- type HandleEphemeralDevServerError = (InternalServerError);
1048
- type HandleExecOnEphemeralDevServerData = {
1049
- body: ExecRequest;
1050
- };
1051
- type HandleExecOnEphemeralDevServerResponse = ({
1052
- id: string;
1053
- isNew: boolean;
1054
- stdout?: Array<(string)> | null;
1055
- stderr?: Array<(string)> | null;
1056
- });
1057
- type HandleExecOnEphemeralDevServerError = (InternalServerError);
1058
- type HandleWriteFileFromEphemeralDevServerData = {
1059
- path: {
1060
- /**
1061
- * The path to the file to read from the dev server
1062
- */
1063
- filepath: string;
1064
- };
1065
- };
1066
- type HandleWriteFileFromEphemeralDevServerResponse = ({
1067
- id: string;
1068
- isNew: boolean;
1069
- });
1070
- type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
1071
- type HandleReadFileFromEphemeralDevServerData = {
1072
- path: {
1073
- /**
1074
- * The path to the file to read from the dev server
1075
- */
1076
- filepath: string;
1077
- };
1078
- };
1079
- type HandleReadFileFromEphemeralDevServerResponse = ({
1080
- id: string;
1081
- isNew: boolean;
1082
- content: ({
1083
- content: string;
1084
- encoding: string;
1085
- kind: 'file';
1086
- } | {
1087
- files: Array<(string)>;
1088
- kind: 'directory';
1089
- });
1090
- });
1091
- type HandleReadFileFromEphemeralDevServerError = ({
1092
- id: string;
1093
- isNew: boolean;
1094
- } | InternalServerError);
1095
- type HandleGitCommitPushData = {
1096
- body: GitCommitPushRequest;
1097
- };
1098
- type HandleGitCommitPushResponse = ({
1099
- id: string;
1100
- isNew: boolean;
1101
- });
1102
- type HandleGitCommitPushError = (InternalServerError);
1103
- type HandleDevServerLogsData = {
1104
- body: DevServerLogsRequest;
1105
- };
1106
- type HandleDevServerLogsResponse = ({
1107
- logs: Array<(string)>;
1108
- });
1109
- type HandleDevServerLogsError = (InternalServerError);
1110
- type HandleDevServerRestartData = {
1111
- body: DevServerRestartRequest;
1112
- };
1113
- type HandleDevServerRestartResponse = ({
1114
- restarted: boolean;
1115
- });
1116
- type HandleDevServerRestartError = (InternalServerError);
1117
- type HandleShutdownDevServerData = {
1118
- body: ShutdownDevServerRequest;
1119
- };
1120
- type HandleShutdownDevServerResponse = ({
1121
- success: boolean;
1122
- message: string;
1123
- });
1124
- type HandleShutdownDevServerError = ({
1125
- message: string;
1126
- } | InternalServerError);
1127
- type HandleDevServerStatusData = {
1128
- body: DevServerStatusRequest;
1129
- };
1130
- type HandleDevServerStatusResponse = ({
1131
- installing: boolean;
1132
- devRunning: boolean;
1133
- });
1134
- type HandleDevServerStatusError = (InternalServerError);
1135
- type HandleWatchDevServerFilesData = {
1136
- body: DevServerWatchFilesRequest;
1137
- };
1138
- type HandleWatchDevServerFilesResponse = (string);
1139
- type HandleWatchDevServerFilesError = unknown;
1140
- type HandleListExecuteRunsData = {
1141
- query?: {
1142
- limit?: (number) | null;
1143
- offset?: (number) | null;
1144
- };
1145
- };
1146
- type HandleListExecuteRunsResponse = ({
1147
- entries: Array<ExecuteLogEntry>;
1148
- total: number;
1149
- offset: number;
1150
- });
1151
- type HandleListExecuteRunsError = ({
1152
- message: string;
1153
- });
1154
- type HandleGetExecuteRunData = {
1155
- path: {
1156
- deployment: string;
1157
- };
1158
- };
1159
- type HandleGetExecuteRunResponse = ({
1160
- metadata: ExecuteLogEntry;
1161
- code?: (null | ExecuteRunInfo);
1162
- });
1163
- type HandleGetExecuteRunError = ({
1164
- message: string;
1165
- });
1166
- type HandleExecuteScriptData = {
1167
- body: FreestyleExecuteScriptParams;
1168
- };
1169
- type HandleExecuteScriptResponse = ({
1170
- /**
1171
- * The return value of the default export of the script
1172
- */
1173
- result: unknown;
1174
- logs: Array<FreestyleJavaScriptLog>;
1175
- });
1176
- type HandleExecuteScriptError = ({
1177
- error: string;
1178
- logs?: Array<FreestyleJavaScriptLog> | null;
1179
- });
1180
- type HandleListIdentitiesData = {
1181
- query?: {
1182
- includeManaged?: (boolean) | null;
1183
- limit?: (number) | null;
1184
- offset?: (number) | null;
1185
- };
1186
- };
1187
- type HandleListIdentitiesResponse = ({
1188
- identities: Array<GitIdentity>;
1189
- offset: number;
1190
- total: number;
1191
- });
1192
- type HandleListIdentitiesError = ({
1193
- message: string;
1194
- });
1195
- type HandleCreateIdentityResponse = (GitIdentity);
1196
- type HandleCreateIdentityError = ({
1197
- message: string;
1198
- });
1199
- type HandleDeleteIdentityData = {
1200
- path: {
1201
- identity: string;
1202
- };
1203
- };
1204
- type HandleDeleteIdentityResponse = ({
1205
- [key: string]: unknown;
1206
- });
1207
- type HandleDeleteIdentityError = ({
1208
- message: string;
1209
- });
1210
- type HandleListPermissionsData = {
1211
- path: {
1212
- identity: string;
1213
- };
1214
- query?: {
1215
- /**
1216
- * Maximum number of repositories to return
1217
- */
1218
- limit?: number;
1219
- /**
1220
- * Offset for the list of repositories
1221
- */
1222
- offset?: number;
1223
- };
1224
- };
1225
- type HandleListPermissionsResponse = (ListPermissionResponseSuccess);
1226
- type HandleListPermissionsError = ({
1227
- message: string;
1228
- });
1229
- type HandleDescribePermissionData = {
1230
- path: {
1231
- identity: string;
1232
- repo: string;
1233
- };
1234
- };
1235
- type HandleDescribePermissionResponse = (DescribePermissionResponseSuccess);
1236
- type HandleDescribePermissionError = ({
1237
- message: string;
1238
- });
1239
- type HandleGrantPermissionData = {
1240
- body: GrantPermissionRequest;
1241
- path: {
1242
- identity: string;
1243
- repo: string;
1244
- };
1245
- };
1246
- type HandleGrantPermissionResponse = ({
1247
- [key: string]: unknown;
1248
- });
1249
- type HandleGrantPermissionError = ({
1250
- message: string;
1251
- });
1252
- type HandleRevokePermissionData = {
1253
- path: {
1254
- identity: string;
1255
- repo: string;
1256
- };
1257
- };
1258
- type HandleRevokePermissionResponse = ({
1259
- [key: string]: unknown;
1260
- });
1261
- type HandleRevokePermissionError = ({
1262
- message: string;
1263
- });
1264
- type HandleUpdatePermissionData = {
1265
- body: UpdatePermissionRequest;
1266
- path: {
1267
- identity: string;
1268
- repo: string;
1269
- };
1270
- };
1271
- type HandleUpdatePermissionResponse = ({
1272
- [key: string]: unknown;
1273
- });
1274
- type HandleUpdatePermissionError = ({
1275
- message: string;
1276
- });
1277
- type HandleListGitTokensData = {
1278
- path: {
1279
- identity: string;
1280
- };
1281
- };
1282
- type HandleListGitTokensResponse = (ListGitTokensResponseSuccess);
1283
- type HandleListGitTokensError = ({
1284
- message: string;
1285
- });
1286
- type HandleCreateGitTokenData = {
1287
- path: {
1288
- identity: string;
1289
- };
1290
- };
1291
- type HandleCreateGitTokenResponse = (CreatedToken);
1292
- type HandleCreateGitTokenError = ({
1293
- message: string;
1294
- });
1295
- type HandleRevokeGitTokenData = {
1296
- body: RevokeGitTokenRequest;
1297
- path: {
1298
- identity: string;
1299
- };
1300
- };
1301
- type HandleRevokeGitTokenResponse = ({
1302
- [key: string]: unknown;
1303
- });
1304
- type HandleRevokeGitTokenError = ({
1305
- message: string;
1306
- });
1307
- type HandleListRepositoriesData = {
1308
- query?: {
1309
- /**
1310
- * Maximum number of repositories to return
1311
- */
1312
- limit?: number;
1313
- /**
1314
- * Offset for the list of repositories
1315
- */
1316
- offset?: number;
1317
- };
1318
- };
1319
- type HandleListRepositoriesResponse = ({
1320
- repositories: Array<RepositoryMetadata>;
1321
- total: number;
1322
- offset: number;
1323
- });
1324
- type HandleListRepositoriesError = ({
1325
- message: string;
1326
- });
1327
- type HandleCreateRepoData = {
1328
- body: {
1329
- /**
1330
- * This name is not visible to users, and is only accessible to you via API and in the
1331
- * dashboard. Mostly useful for observability.
1332
- */
1333
- name?: (string) | null;
1334
- public?: boolean;
1335
- /**
1336
- * The default branch name for the repository. Defaults to "main" if not specified.
1337
- */
1338
- defaultBranch?: (string) | null;
1339
- /**
1340
- * Fork from another Git repository. Cannot be used with `import`.
1341
- */
1342
- source?: CreateRepoSource;
1343
- /**
1344
- * Import static content with an initial commit. Cannot be used with `source`.
1345
- */
1346
- import?: CreateRepoImport;
1347
- devServers?: DevServerConfiguration;
1348
- };
1349
- };
1350
- type HandleCreateRepoResponse = (CreateRepositoryResponseSuccess);
1351
- type HandleCreateRepoError = ({
1352
- message: string;
1353
- });
1354
- type HandleGetDefaultBranchData = {
1355
- path: {
1356
- /**
1357
- * The repository ID
1358
- */
1359
- repo_id: string;
1360
- };
1361
- };
1362
- type HandleGetDefaultBranchResponse = (GetDefaultBranchResponse);
1363
- type HandleGetDefaultBranchError = unknown;
1364
- type HandleSetDefaultBranchData = {
1365
- body: SetDefaultBranchRequest;
1366
- path: {
1367
- /**
1368
- * The repository ID
1369
- */
1370
- repo_id: string;
1371
- };
1372
- };
1373
- type HandleSetDefaultBranchResponse = (SetDefaultBranchResponse);
1374
- type HandleSetDefaultBranchError = unknown;
1375
- type GetDevServerConfigurationData = {
1376
- path: {
1377
- /**
1378
- * Repository ID
1379
- */
1380
- repo_id: string;
1381
- };
1382
- query: {
1383
- /**
1384
- * Git branch name
1385
- */
1386
- branch: string;
1387
- };
1388
- };
1389
- type GetDevServerConfigurationResponse = (DevServerConfiguration);
1390
- type GetDevServerConfigurationError = (unknown);
1391
- type UpdateDevServerConfigurationData = {
1392
- body: UpdateDevServerConfigRequest;
1393
- path: {
1394
- /**
1395
- * Repository ID
1396
- */
1397
- repo_id: string;
1398
- };
1399
- };
1400
- type UpdateDevServerConfigurationResponse = (unknown);
1401
- type UpdateDevServerConfigurationError = (unknown);
1402
- type DeleteDevServerConfigurationData = {
1403
- path: {
1404
- /**
1405
- * Repository ID
1406
- */
1407
- repo_id: string;
1408
- };
1409
- query: {
1410
- /**
1411
- * Git branch name (optional, defaults to repository default branch)
1412
- */
1413
- branch: string;
1414
- };
1415
- };
1416
- type DeleteDevServerConfigurationResponse = (void);
1417
- type DeleteDevServerConfigurationError = (unknown);
1418
- type GetGithubSyncData = {
1419
- path: {
1420
- /**
1421
- * Repository ID
1422
- */
1423
- repo_id: string;
1424
- };
1425
- };
1426
- type GetGithubSyncResponse = (GithubSyncConfigResponse);
1427
- type GetGithubSyncError = (unknown);
1428
- type ConfigureGithubSyncData = {
1429
- body: ConfigureGithubSyncRequest;
1430
- path: {
1431
- /**
1432
- * Repository ID
1433
- */
1434
- repo_id: string;
1435
- };
1436
- };
1437
- type ConfigureGithubSyncResponse = (unknown);
1438
- type ConfigureGithubSyncError = (unknown);
1439
- type RemoveGithubSyncData = {
1440
- path: {
1441
- /**
1442
- * Repository ID
1443
- */
1444
- repo_id: string;
1445
- };
1446
- };
1447
- type RemoveGithubSyncResponse = (unknown);
1448
- type RemoveGithubSyncError = (unknown);
1449
- type HandleGetRepoInfoData = {
1450
- path: {
1451
- /**
1452
- * The repository id
1453
- */
1454
- repo: string;
1455
- };
1456
- };
1457
- type HandleGetRepoInfoResponse = (RepositoryInfoRaw);
1458
- type HandleGetRepoInfoError = (unknown);
1459
- type HandleDeleteRepoData = {
1460
- path: {
1461
- /**
1462
- * The repository id
1463
- */
1464
- repo: string;
1465
- };
1466
- };
1467
- type HandleDeleteRepoResponse = ({
1468
- [key: string]: unknown;
1469
- });
1470
- type HandleDeleteRepoError = ({
1471
- message: string;
1472
- } | {
1473
- [key: string]: unknown;
1474
- });
1475
- type HandleGetContentsData = {
1476
- path: {
1477
- /**
1478
- * The path to the file or directory. Empty for root.
1479
- */
1480
- path: (string) | null;
1481
- /**
1482
- * The repository ID.
1483
- */
1484
- repo: string;
1485
- };
1486
- query?: {
1487
- /**
1488
- * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1489
- */
1490
- ref?: string;
1491
- };
1492
- };
1493
- type HandleGetContentsResponse = (GitContents);
1494
- type HandleGetContentsError = ({
1495
- message: string;
1496
- });
1497
- type HandleGetBlobData = {
1498
- path: {
1499
- /**
1500
- * The object's hash
1501
- */
1502
- hash: string;
1503
- /**
1504
- * The repository id
1505
- */
1506
- repo: string;
1507
- };
1508
- };
1509
- type HandleGetBlobResponse = (BlobObject);
1510
- type HandleGetBlobError = ({
1511
- message: string;
1512
- });
1513
- type HandleListCommitsData = {
1514
- path: {
1515
- /**
1516
- * The repository id
1517
- */
1518
- repo: string;
1519
- };
1520
- query?: {
1521
- /**
1522
- * Branch name (defaults to HEAD)
1523
- */
1524
- branch?: (string) | null;
1525
- /**
1526
- * Maximum number of commits to return (default: 50, max: 500)
1527
- */
1528
- limit?: (number) | null;
1529
- /**
1530
- * Number of commits to skip (default: 0)
1531
- */
1532
- offset?: (number) | null;
1533
- };
1534
- };
1535
- type HandleListCommitsResponse = (CommitList);
1536
- type HandleListCommitsError = ({
1537
- message: string;
1538
- });
1539
- type HandleGetCommitData = {
1540
- path: {
1541
- /**
1542
- * The object's hash
1543
- */
1544
- hash: string;
1545
- /**
1546
- * The repository id
1547
- */
1548
- repo: string;
1549
- };
1550
- };
1551
- type HandleGetCommitResponse = (CommitObject);
1552
- type HandleGetCommitError = ({
1553
- message: string;
1554
- });
1555
- type HandleGetRefBranchData = {
1556
- path: {
1557
- /**
1558
- * The branch's name
1559
- */
1560
- branch: string;
1561
- /**
1562
- * The repository id
1563
- */
1564
- repo: string;
1565
- };
1566
- };
1567
- type HandleGetRefBranchResponse = (GitReference);
1568
- type HandleGetRefBranchError = (unknown | {
1569
- message: string;
1570
- });
1571
- type HandleGetRefTagData = {
1572
- path: {
1573
- /**
1574
- * The repository id
1575
- */
1576
- repo: string;
1577
- /**
1578
- * The tag's name
1579
- */
1580
- tag: string;
1581
- };
1582
- };
1583
- type HandleGetRefTagResponse = (GitReference);
1584
- type HandleGetRefTagError = (unknown | {
1585
- message: string;
1586
- });
1587
- type HandleGetTagData = {
1588
- path: {
1589
- /**
1590
- * The object's hash
1591
- */
1592
- hash: string;
1593
- /**
1594
- * The repository id
1595
- */
1596
- repo: string;
1597
- };
1598
- };
1599
- type HandleGetTagResponse = (TagObject);
1600
- type HandleGetTagError = ({
1601
- message: string;
1602
- });
1603
- type HandleGetTreeData = {
1604
- path: {
1605
- /**
1606
- * The object's hash
1607
- */
1608
- hash: string;
1609
- /**
1610
- * The repository id
1611
- */
1612
- repo: string;
1613
- };
1614
- };
1615
- type HandleGetTreeResponse = (TreeObject);
1616
- type HandleGetTreeError = ({
1617
- message: string;
1618
- });
1619
- type HandleDownloadTarballData = {
1620
- path: {
1621
- /**
1622
- * The repository id
1623
- */
1624
- repo: string;
1625
- };
1626
- query?: {
1627
- /**
1628
- * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1629
- */
1630
- ref?: string;
1631
- };
1632
- };
1633
- type HandleDownloadTarballResponse = (unknown);
1634
- type HandleDownloadTarballError = ({
1635
- message: string;
1636
- });
1637
- type HandleListGitTriggersData = {
1638
- path: {
1639
- /**
1640
- * The repository id
1641
- */
1642
- repo: string;
1643
- };
1644
- };
1645
- type HandleListGitTriggersResponse = ({
1646
- triggers: Array<GitRepositoryTrigger>;
1647
- });
1648
- type HandleListGitTriggersError = ({
1649
- message: string;
1650
- });
1651
- type HandleCreateGitTriggerData = {
1652
- body: {
1653
- trigger: ({
1654
- branches?: Array<(string)> | null;
1655
- globs?: Array<(string)> | null;
1656
- event: 'push';
1657
- });
1658
- action: ({
1659
- endpoint: string;
1660
- action: 'webhook';
1661
- });
1662
- };
1663
- path: {
1664
- /**
1665
- * The repository id
1666
- */
1667
- repo: string;
1668
- };
1669
- };
1670
- type HandleCreateGitTriggerResponse = ({
1671
- triggerId: string;
1672
- });
1673
- type HandleCreateGitTriggerError = ({
1674
- message: string;
1675
- });
1676
- type HandleDeleteGitTriggerData = {
1677
- path: {
1678
- /**
1679
- * The repository id
1680
- */
1681
- repo: string;
1682
- /**
1683
- * The trigger id
1684
- */
1685
- trigger: string;
1686
- };
1687
- };
1688
- type HandleDeleteGitTriggerResponse = ({
1689
- [key: string]: unknown;
1690
- });
1691
- type HandleDeleteGitTriggerError = ({
1692
- message: string;
1693
- } | {
1694
- [key: string]: unknown;
1695
- });
1696
- type HandleDownloadZipData = {
1697
- path: {
1698
- /**
1699
- * The repository id
1700
- */
1701
- repo: string;
1702
- };
1703
- query?: {
1704
- /**
1705
- * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1706
- */
1707
- ref?: string;
1708
- };
1709
- };
1710
- type HandleDownloadZipResponse = (unknown);
1711
- type HandleDownloadZipError = ({
1712
- message: string;
1713
- });
1714
- type HandleGetLogsData = {
1715
- query?: {
1716
- deploymentId?: (string) | null;
1717
- domain?: (string) | null;
1718
- };
1719
- };
1720
- type HandleGetLogsResponse = (FreestyleGetLogsResponse);
1721
- type HandleGetLogsError = unknown;
1722
- type CreateVmData = {
1723
- body: CreateVmRequest;
1724
- };
1725
- type ResizeVmData = {
1726
- body: ResizeVmRequest;
1727
- path: {
1728
- id: string;
1729
- };
1730
- };
1731
- type GetVmData = {
1732
- path: {
1733
- vm_id: string;
1734
- };
1735
- };
1736
- type DeleteVmData = {
1737
- path: {
1738
- /**
1739
- * The ID of the VM to delete
1740
- */
1741
- vm_id: string;
1742
- };
1743
- };
1744
- type WaitVmData = {
1745
- path: {
1746
- /**
1747
- * The ID of the VM to wait for
1748
- */
1749
- vm_id: string;
1750
- };
1751
- };
1752
- type ExecAwaitData = {
1753
- body: ExecAwaitRequest;
1754
- path: {
1755
- /**
1756
- * The ID of the VM to execute the command in
1757
- */
1758
- vm_id: string;
1759
- };
1760
- };
1761
- type GetFileData = {
1762
- path: {
1763
- /**
1764
- * The path of the file to get
1765
- */
1766
- filepath: string;
1767
- /**
1768
- * The ID of the VM to get the file from
1769
- */
1770
- vm_id: string;
1771
- };
1772
- };
1773
- type PutFileData = {
1774
- body: WriteFileRequest;
1775
- path: {
1776
- /**
1777
- * The path of the file to put
1778
- */
1779
- filepath: string;
1780
- /**
1781
- * The ID of the VM to put the file to
1782
- */
1783
- vm_id: string;
1784
- };
1785
- };
1786
- type ForkVmData = {
1787
- body: ForkVmRequest;
1788
- path: {
1789
- vm_id: string;
1790
- };
1791
- };
1792
- type OptimizeVmData = {
1793
- path: {
1794
- /**
1795
- * The ID of the VM to optimize
1796
- */
1797
- vm_id: string;
1798
- };
1799
- };
1800
- type StartVmData = {
1801
- body: StartVmRequest;
1802
- path: {
1803
- vm_id: string;
1804
- };
1805
- };
1806
- type StopVmData = {
1807
- path: {
1808
- /**
1809
- * The ID of the VM to stop
1810
- */
1811
- vm_id: string;
1812
- };
1813
- };
1814
- type SuspendVmData = {
1815
- path: {
1816
- /**
1817
- * The ID of the VM to suspend
1818
- */
1819
- vm_id: string;
1820
- };
1821
- };
1822
- type ListTerminalsData = {
1823
- path: {
1824
- /**
1825
- * The ID of the VM
1826
- */
1827
- vm_id: string;
1828
- };
1829
- };
1830
- type GetTerminalLogsData = {
1831
- path: {
1832
- /**
1833
- * The ID of the terminal session
1834
- */
1835
- terminal_id: string;
1836
- /**
1837
- * The ID of the VM
1838
- */
1839
- vm_id: string;
1840
- };
1841
- };
1842
- type GetTerminalXtermData = {
1843
- path: {
1844
- /**
1845
- * The ID of the terminal session
1846
- */
1847
- terminal_id: string;
1848
- /**
1849
- * The ID of the VM
1850
- */
1851
- vm_id: string;
1852
- };
1853
- };
1854
- type WatchFilesData = {
1855
- path: {
1856
- /**
1857
- * The ID of the VM to watch files for
1858
- */
1859
- vm_id: string;
1860
- };
1861
- };
1862
- type HandleDeployWebData = {
1863
- body: FreestyleDeployWebPayload;
1864
- };
1865
- type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponseV2);
1866
- type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
1867
- type HandleDeployWebV2Data = {
1868
- body: FreestyleDeployWebPayloadV2;
1869
- };
1870
- type HandleDeployWebV2Response = (FreestyleDeployWebSuccessResponseV2);
1871
- type HandleDeployWebV2Error = (FreestyleDeployWebErrorResponse);
1872
- type HandleListWebDeploysData = {
1873
- query: {
1874
- /**
1875
- * Maximum number of repositories to return
1876
- */
1877
- limit: number;
1878
- /**
1879
- * Offset for the list of repositories
1880
- */
1881
- offset: number;
1882
- };
1883
- };
1884
- type HandleListWebDeploysResponse = ({
1885
- entries: Array<DeploymentLogEntry>;
1886
- total: number;
1887
- offset: number;
1888
- });
1889
- type HandleListWebDeploysError = ({
1890
- message: string;
1891
- });
1892
- type HandleGetWebDeployDetailsData = {
1893
- path: {
1894
- deployment_id: string;
1895
- };
1896
- };
1897
-
1898
- export type { CommitParent as $, AccessLevel as A, DescribePermissionResponseSuccess as B, CreateRepoSource as C, DeploymentSource as D, CreatedToken as E, FreestyleExecuteScriptParamsConfiguration as F, GitIdentity as G, HandleBackupCloudstateResponse as H, ListGitTokensResponseSuccess as I, HandleListGitTriggersResponse as J, GitTrigger as K, ListPermissionResponseSuccess as L, GitTriggerAction as M, HandleCreateGitTriggerResponse as N, HandleGetContentsResponse as O, GetGithubSyncResponse as P, DeploymentBuildOptions as Q, HandleListDomainMappingsData as R, SetDefaultBranchRequest as S, AccessibleRepository as T, AccessTokenInfo as U, Behavior as V, BlobEncoding as W, BlobObject as X, BranchDetails as Y, CommitList as Z, CommitObject as _, FreestyleExecuteScriptResultSuccess as a, ListRecordsResponse as a$, CommitTree as a0, ConfigureGithubSyncRequest as a1, CreateDomainMappingRequest as a2, CreateRecordParams as a3, CreateRecordResponse as a4, type as a5, CreateRepoRequest as a6, CreateRepositoryRequest as a7, CreateVmRequest as a8, CustomBuildOptions as a9, FreestyleDeleteDomainVerificationRequest as aA, FreestyleDeployWebErrorResponse as aB, FreestyleDeployWebPayload as aC, FreestyleDeployWebPayloadV2 as aD, FreestyleDomainVerificationRequest as aE, FreestyleExecuteScriptParams as aF, FreestyleFile as aG, FreestyleGetLogsResponse as aH, FreestyleJavaScriptLog as aI, FreestyleLogResponseObject as aJ, FreestyleNetworkPermission as aK, action as aL, FreestyleSandboxDomainMapping as aM, FreestyleVerifyDomainRequest as aN, GetDefaultBranchResponse as aO, GitCommitPushRequest as aP, GitContents as aQ, type2 as aR, GitContentsDirEntryItem as aS, GithubRepoSyncConfig as aT, GithubSyncConfigResponse as aU, GitReference as aV, GitRepositoryTrigger as aW, event as aX, action2 as aY, GrantPermissionRequest as aZ, InternalServerError as a_, DeleteRecordResponse as aa, DeploymentLogEntry as ab, kind as ac, DeploymentState as ad, DevServer as ae, kind2 as af, DevServerLogsRequest as ag, DevServerPreset as ah, DevServerRequest as ai, DevServerRestartRequest as aj, DevServerStatusRequest as ak, DevServerWatchFilesRequest as al, DnsRecord as am, DnsRecordData as an, DnsRecordKind as ao, DomainVerificationRequest as ap, ExecAwaitRequest as aq, ExecRequest as ar, ExecuteLogEntry as as, ExecuteRunInfo as at, ExecuteRunState as au, FileReadContent as av, kind3 as aw, ForkVmRequest as ax, FreestyleCloudstateDeployConfiguration as ay, FreestyleCloudstateDeployErrorResponse as az, FreestyleDeployWebConfiguration as b, HandleReadFileFromEphemeralDevServerResponse as b$, NetworkPermissionData as b0, PortConfig as b1, PortMapping as b2, ReadFileEphemeralDevServerResponses as b3, RepositoryInfoRaw as b4, RepositoryMetadata as b5, ResizeVmRequest as b6, RevokeGitTokenRequest as b7, SetDefaultBranchResponse as b8, ShutdownDevServerRequest as b9, HandleDeleteRecordResponse as bA, HandleDeleteRecordError as bB, HandleVerifyWildcardData as bC, HandleVerifyWildcardError as bD, HandleListDomainsData as bE, HandleListDomainsError as bF, HandleListDomainMappingsError as bG, HandleInsertDomainMappingData as bH, HandleInsertDomainMappingError as bI, HandleDeleteDomainMappingData as bJ, HandleDeleteDomainMappingError as bK, HandleListDomainVerificationRequestsError as bL, HandleVerifyDomainData as bM, HandleCreateDomainVerificationData as bN, HandleCreateDomainVerificationError as bO, HandleDeleteDomainVerificationData as bP, HandleDeleteDomainVerificationError as bQ, HandleEphemeralDevServerData as bR, HandleEphemeralDevServerResponse as bS, HandleEphemeralDevServerError as bT, HandleExecOnEphemeralDevServerData as bU, HandleExecOnEphemeralDevServerResponse as bV, HandleExecOnEphemeralDevServerError as bW, HandleWriteFileFromEphemeralDevServerData as bX, HandleWriteFileFromEphemeralDevServerResponse as bY, HandleWriteFileFromEphemeralDevServerError as bZ, HandleReadFileFromEphemeralDevServerData as b_, Signature as ba, StartVmRequest as bb, TagDetails as bc, TagObject as bd, TagTarget as be, TreeEntry as bf, type3 as bg, TreeObject as bh, UpdateDevServerConfigRequest as bi, UpdatePermissionRequest as bj, Visibility as bk, VmPersistence as bl, type4 as bm, WriteFileRequest as bn, HandleDeployCloudstateData as bo, HandleDeployCloudstateResponse as bp, HandleDeployCloudstateError as bq, HandleBackupCloudstateData as br, HandleBackupCloudstateError as bs, HandleListRecordsData as bt, HandleListRecordsResponse as bu, HandleListRecordsError as bv, HandleCreateRecordData as bw, HandleCreateRecordResponse as bx, HandleCreateRecordError as by, HandleDeleteRecordData as bz, FreestyleDeployWebSuccessResponseV2 as c, HandleGetDefaultBranchError as c$, HandleReadFileFromEphemeralDevServerError as c0, HandleGitCommitPushData as c1, HandleGitCommitPushResponse as c2, HandleGitCommitPushError as c3, HandleDevServerLogsData as c4, HandleDevServerLogsResponse as c5, HandleDevServerLogsError as c6, HandleDevServerRestartData as c7, HandleDevServerRestartResponse as c8, HandleDevServerRestartError as c9, HandleDescribePermissionData as cA, HandleDescribePermissionResponse as cB, HandleDescribePermissionError as cC, HandleGrantPermissionData as cD, HandleGrantPermissionError as cE, HandleRevokePermissionData as cF, HandleRevokePermissionResponse as cG, HandleRevokePermissionError as cH, HandleUpdatePermissionData as cI, HandleUpdatePermissionResponse as cJ, HandleUpdatePermissionError as cK, HandleListGitTokensData as cL, HandleListGitTokensResponse as cM, HandleListGitTokensError as cN, HandleCreateGitTokenData as cO, HandleCreateGitTokenResponse as cP, HandleCreateGitTokenError as cQ, HandleRevokeGitTokenData as cR, HandleRevokeGitTokenResponse as cS, HandleRevokeGitTokenError as cT, HandleListRepositoriesData as cU, HandleListRepositoriesError as cV, HandleCreateRepoData as cW, HandleCreateRepoResponse as cX, HandleCreateRepoError as cY, HandleGetDefaultBranchData as cZ, HandleGetDefaultBranchResponse as c_, HandleShutdownDevServerData as ca, HandleShutdownDevServerResponse as cb, HandleShutdownDevServerError as cc, HandleDevServerStatusData as cd, HandleDevServerStatusResponse as ce, HandleDevServerStatusError as cf, HandleWatchDevServerFilesData as cg, HandleWatchDevServerFilesResponse as ch, HandleWatchDevServerFilesError as ci, HandleListExecuteRunsData as cj, HandleListExecuteRunsError as ck, HandleGetExecuteRunData as cl, HandleGetExecuteRunError as cm, HandleExecuteScriptData as cn, HandleExecuteScriptResponse as co, HandleExecuteScriptError as cp, HandleListIdentitiesData as cq, HandleListIdentitiesResponse as cr, HandleListIdentitiesError as cs, HandleCreateIdentityResponse as ct, HandleCreateIdentityError as cu, HandleDeleteIdentityData as cv, HandleDeleteIdentityError as cw, HandleListPermissionsData as cx, HandleListPermissionsResponse as cy, HandleListPermissionsError as cz, FreestyleCloudstateDeployRequest as d, HandleGetLogsError as d$, HandleSetDefaultBranchData as d0, HandleSetDefaultBranchResponse as d1, HandleSetDefaultBranchError as d2, GetDevServerConfigurationData as d3, GetDevServerConfigurationResponse as d4, GetDevServerConfigurationError as d5, UpdateDevServerConfigurationData as d6, UpdateDevServerConfigurationResponse as d7, UpdateDevServerConfigurationError as d8, DeleteDevServerConfigurationData as d9, HandleGetCommitError as dA, HandleGetRefBranchData as dB, HandleGetRefBranchResponse as dC, HandleGetRefBranchError as dD, HandleGetRefTagData as dE, HandleGetRefTagResponse as dF, HandleGetRefTagError as dG, HandleGetTagData as dH, HandleGetTagResponse as dI, HandleGetTagError as dJ, HandleGetTreeData as dK, HandleGetTreeResponse as dL, HandleGetTreeError as dM, HandleDownloadTarballData as dN, HandleDownloadTarballResponse as dO, HandleDownloadTarballError as dP, HandleListGitTriggersData as dQ, HandleListGitTriggersError as dR, HandleCreateGitTriggerData as dS, HandleCreateGitTriggerError as dT, HandleDeleteGitTriggerData as dU, HandleDeleteGitTriggerResponse as dV, HandleDeleteGitTriggerError as dW, HandleDownloadZipData as dX, HandleDownloadZipResponse as dY, HandleDownloadZipError as dZ, HandleGetLogsData as d_, DeleteDevServerConfigurationResponse as da, DeleteDevServerConfigurationError as db, GetGithubSyncData as dc, GetGithubSyncError as dd, ConfigureGithubSyncData as de, ConfigureGithubSyncResponse as df, ConfigureGithubSyncError as dg, RemoveGithubSyncData as dh, RemoveGithubSyncResponse as di, RemoveGithubSyncError as dj, HandleGetRepoInfoData as dk, HandleGetRepoInfoResponse as dl, HandleGetRepoInfoError as dm, HandleDeleteRepoData as dn, HandleDeleteRepoError as dp, HandleGetContentsData as dq, HandleGetContentsError as dr, HandleGetBlobData as ds, HandleGetBlobResponse as dt, HandleGetBlobError as du, HandleListCommitsData as dv, HandleListCommitsResponse as dw, HandleListCommitsError as dx, HandleGetCommitData as dy, HandleGetCommitResponse as dz, FreestyleCloudstateDeploySuccessResponse as e, CreateVmData as e0, ResizeVmData as e1, GetVmData as e2, DeleteVmData as e3, WaitVmData as e4, ExecAwaitData as e5, GetFileData as e6, PutFileData as e7, ForkVmData as e8, OptimizeVmData as e9, StartVmData as ea, StopVmData as eb, SuspendVmData as ec, ListTerminalsData as ed, GetTerminalLogsData as ee, GetTerminalXtermData as ef, WatchFilesData as eg, HandleDeployWebData as eh, HandleDeployWebResponse as ei, HandleDeployWebError as ej, HandleDeployWebV2Data as ek, HandleDeployWebV2Response as el, HandleDeployWebV2Error as em, HandleListWebDeploysData as en, HandleListWebDeploysError as eo, HandleGetWebDeployDetailsData as ep, 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, HandleDeleteDomainMappingResponse as r, HandleListDomainMappingsResponse as s, DevServerConfiguration as t, CreateRepoImport as u, CreateRepositoryResponseSuccess as v, HandleListRepositoriesResponse as w, HandleDeleteRepoResponse as x, HandleDeleteIdentityResponse as y, HandleGrantPermissionResponse as z };