freestyle-sandboxes 0.0.77 → 0.0.79

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 (37) hide show
  1. package/dist/inde.d.cts +1 -0
  2. package/dist/inde.d.mts +1 -0
  3. package/dist/{index-CGc0kRd_.cjs → index-BBXyg0JQ.cjs} +5 -9
  4. package/dist/index-BQHqnjZK.mjs +3231 -0
  5. package/dist/index-CEEa9WHp.cjs +3238 -0
  6. package/dist/{index-jh-93svX.mjs → index-DCF70Xbq.mjs} +5 -9
  7. package/dist/index.cjs +15 -1
  8. package/dist/index.d.cts +1 -0
  9. package/dist/index.d.mts +1 -0
  10. package/dist/index.mjs +15 -1
  11. package/dist/types.gen-1sd31qLV.d.ts +172 -0
  12. package/dist/types.gen-627pxroW.d.ts +830 -0
  13. package/dist/types.gen-BCdfx7yt.d.ts +760 -0
  14. package/dist/{types.gen-0bQ5Wn0o.d.ts → types.gen-BVXmFV7d.d.ts} +17 -18
  15. package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
  16. package/dist/types.gen-BbekD8Sd.d.ts +1119 -0
  17. package/dist/types.gen-BqN1t03N.d.ts +842 -0
  18. package/dist/types.gen-BtK6PMQy.d.ts +195 -0
  19. package/dist/types.gen-C03gaIPq.d.ts +297 -0
  20. package/dist/{types.gen-BJArgpto.d.ts → types.gen-CIf3ciN7.d.ts} +5 -2
  21. package/dist/types.gen-CMuCas4r.d.ts +183 -0
  22. package/dist/{types.gen-DxZanGNF.d.ts → types.gen-CZUnqmzP.d.ts} +6 -9
  23. package/dist/types.gen-CnEkmbco.d.ts +314 -0
  24. package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
  25. package/dist/types.gen-DHmdEOOa.d.ts +172 -0
  26. package/dist/{types.gen-CfrGF-JI.d.ts → types.gen-DLYohMJT.d.ts} +1 -1
  27. package/dist/types.gen-DbTb_SrD.d.ts +156 -0
  28. package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
  29. package/dist/types.gen-DyY7Deri.d.ts +138 -0
  30. package/dist/types.gen-MBZCvIhE.d.ts +311 -0
  31. package/dist/types.gen-YhJAHBw8.d.ts +233 -0
  32. package/dist/types.gen-cCnnhnB6.d.ts +182 -0
  33. package/dist/types.gen-mg_JNXrq.d.ts +830 -0
  34. package/dist/types.gen-uDTr6v-7.d.ts +731 -0
  35. package/package.json +1 -1
  36. package/src/index.ts +58 -40
  37. package/src/temp.ts +0 -10
@@ -0,0 +1,1119 @@
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
+ /**
38
+ * Commit object
39
+ */
40
+ type CommitObject = {
41
+ /**
42
+ * The author of the commit
43
+ */
44
+ author: Signature;
45
+ /**
46
+ * The committer
47
+ */
48
+ committer: Signature;
49
+ /**
50
+ * The commit message
51
+ */
52
+ message: string;
53
+ /**
54
+ * The ID of the tree pointed to by this commit
55
+ */
56
+ tree: CommitTree;
57
+ /**
58
+ * Parent commit(s) of this commit
59
+ */
60
+ parents: Array<CommitParent>;
61
+ /**
62
+ * The commit's hash ID
63
+ */
64
+ sha: string;
65
+ };
66
+ type CommitParent = {
67
+ /**
68
+ * The commit's hash ID
69
+ */
70
+ sha: string;
71
+ };
72
+ type CommitTree = {
73
+ /**
74
+ * The tree's hash ID
75
+ */
76
+ sha: string;
77
+ };
78
+ type CreateDomainMappingRequest = {
79
+ deploymentId: string;
80
+ };
81
+ type CreatedToken = {
82
+ id: string;
83
+ token: string;
84
+ };
85
+ type CreateRecordParams = {
86
+ domain: string;
87
+ record: DnsRecordData;
88
+ };
89
+ type CreateRepoRequest = {
90
+ source?: (null | CreateRepoSource);
91
+ };
92
+ type CreateRepositoryRequest = {
93
+ /**
94
+ * This name is not visible to users, and is only accessible to you via API and in the
95
+ * dashboard. Mostly useful for observability.
96
+ */
97
+ name?: (string) | null;
98
+ public?: boolean;
99
+ source?: CreateRepoSource;
100
+ };
101
+ type CreateRepositoryResponseSuccess = {
102
+ repoId: string;
103
+ };
104
+ type CreateRepoSource = {
105
+ url: string;
106
+ branch?: (string) | null;
107
+ depth?: (number) | null;
108
+ type: 'git';
109
+ };
110
+ type type = 'git';
111
+ type CustomBuildOptions = {
112
+ command?: (string) | null;
113
+ envVars?: {
114
+ [key: string]: (string);
115
+ } | null;
116
+ outDir?: (string) | null;
117
+ };
118
+ type DeploymentBuildOptions = CustomBuildOptions | boolean;
119
+ type DeploymentLogEntry = {
120
+ deploymentId: string;
121
+ accountId: string;
122
+ provisionedAt: string;
123
+ timeout: string;
124
+ state: DeploymentState;
125
+ deployedAt?: (string) | null;
126
+ domains: Array<(string)>;
127
+ envVars: {
128
+ [key: string]: (string);
129
+ };
130
+ };
131
+ type DeploymentSource = {
132
+ files: {
133
+ [key: string]: FreestyleFile;
134
+ };
135
+ kind: 'files';
136
+ } | {
137
+ url: string;
138
+ kind: 'tar';
139
+ } | {
140
+ url: string;
141
+ branch?: (string) | null;
142
+ kind: 'git';
143
+ };
144
+ type kind = 'files';
145
+ type DeploymentState = 'provisioning' | 'deployed' | 'failed';
146
+ type DescribePermissionResponseSuccess = {
147
+ identity: string;
148
+ repo: string;
149
+ accessLevel?: (null | AccessLevel);
150
+ };
151
+ type DevServer = {
152
+ repoId: string;
153
+ kind: 'repo';
154
+ };
155
+ type kind2 = 'repo';
156
+ type DevServerRequest = {
157
+ devCommand?: (string) | null;
158
+ preDevCommandOnce?: (string) | null;
159
+ baseId?: (string) | null;
160
+ envVars?: {
161
+ [key: string]: (string);
162
+ } | null;
163
+ repoId?: (string) | null;
164
+ /**
165
+ * @deprecated
166
+ */
167
+ domain?: (string) | null;
168
+ /**
169
+ * @deprecated
170
+ */
171
+ repo?: (string) | null;
172
+ };
173
+ type DevServerStatusRequest = {
174
+ devServer: DevServer;
175
+ };
176
+ type DnsRecord = {
177
+ kind: DnsRecordKind;
178
+ name: string;
179
+ value: string;
180
+ ttl: string;
181
+ priority?: (number) | null;
182
+ managed: boolean;
183
+ };
184
+ type DnsRecordData = {
185
+ kind: DnsRecordKind;
186
+ name: string;
187
+ value: string;
188
+ ttl?: (string) | null;
189
+ priority?: (number) | null;
190
+ };
191
+ type DnsRecordKind = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'NS';
192
+ type DomainVerificationRequest = {
193
+ id: string;
194
+ domain: string;
195
+ accountId: string;
196
+ verificationCode: string;
197
+ createdAt: number;
198
+ };
199
+ type ExecRequest = {
200
+ devServer: DevServer;
201
+ command: string;
202
+ /**
203
+ * Spawn this command as a background process and return immediately
204
+ */
205
+ background: boolean;
206
+ };
207
+ type ExecuteLogEntry = {
208
+ deployment: string;
209
+ accountId: string;
210
+ provisionedAt: string;
211
+ startedAt?: (string) | null;
212
+ duration?: (string) | null;
213
+ state: ExecuteRunState;
214
+ envVars: {
215
+ [key: string]: (string);
216
+ };
217
+ };
218
+ type ExecuteRunInfo = {
219
+ code: string;
220
+ nodeModules: {
221
+ [key: string]: (string);
222
+ };
223
+ };
224
+ type ExecuteRunState = 'starting' | 'running' | 'complete';
225
+ type FileReadContent = {
226
+ content: string;
227
+ encoding: string;
228
+ kind: 'file';
229
+ } | {
230
+ files: Array<(string)>;
231
+ kind: 'directory';
232
+ };
233
+ type kind3 = 'file';
234
+ type FreestyleCloudstateDeployConfiguration = {
235
+ /**
236
+ * ID of the project to deploy, if not provided will create a new project
237
+ */
238
+ domains?: Array<(string)> | null;
239
+ /**
240
+ * The environment variables that the cloudstate deploy can access
241
+ */
242
+ envVars?: {
243
+ [key: string]: (string);
244
+ };
245
+ cloudstateDatabaseId?: (string) | null;
246
+ };
247
+ type FreestyleCloudstateDeployErrorResponse = {
248
+ message: string;
249
+ };
250
+ type FreestyleCloudstateDeployRequest = {
251
+ classes: string;
252
+ config?: FreestyleCloudstateDeployConfiguration;
253
+ };
254
+ type FreestyleCloudstateDeploySuccessResponse = {
255
+ deploymentId: string;
256
+ cloudstateDatabaseId: string;
257
+ };
258
+ type FreestyleDeleteDomainVerificationRequest = {
259
+ /**
260
+ * The domain to create a verification code for
261
+ */
262
+ domain: string;
263
+ /**
264
+ * The verification code
265
+ */
266
+ verificationCode: string;
267
+ };
268
+ type FreestyleDeployWebConfiguration = {
269
+ /**
270
+ * The entrypoint file for the website
271
+ */
272
+ entrypoint?: (string) | null;
273
+ /**
274
+ * The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
275
+ */
276
+ domains?: Array<(string)> | null;
277
+ /**
278
+ * 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.
279
+ * @deprecated
280
+ */
281
+ projectId?: (string) | null;
282
+ /**
283
+ * 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.
284
+ */
285
+ nodeModules?: {
286
+ [key: string]: (string);
287
+ } | null;
288
+ /**
289
+ * The environment variables that the website can access
290
+ * e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
291
+ */
292
+ envVars?: {
293
+ [key: string]: (string);
294
+ } | null;
295
+ serverStartCheck?: boolean;
296
+ networkPermissions?: Array<FreestyleNetworkPermission> | null;
297
+ build?: (null | DeploymentBuildOptions);
298
+ /**
299
+ * Timeout for the deployment in seconds. If not provided, the default is 10 seconds.
300
+ */
301
+ timeout?: (number) | null;
302
+ };
303
+ type FreestyleDeployWebErrorResponse = {
304
+ message: string;
305
+ };
306
+ type FreestyleDeployWebPayload = {
307
+ /**
308
+ * 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\" } }
309
+ *
310
+ * **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.
311
+ */
312
+ files: {
313
+ [key: string]: FreestyleFile;
314
+ };
315
+ config?: FreestyleDeployWebConfiguration;
316
+ };
317
+ type FreestyleDeployWebPayloadV2 = {
318
+ /**
319
+ * 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\" } }
320
+ *
321
+ * **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.
322
+ */
323
+ source: DeploymentSource;
324
+ config?: FreestyleDeployWebConfiguration;
325
+ };
326
+ type FreestyleDeployWebSuccessResponseV2 = {
327
+ deploymentId: string;
328
+ /**
329
+ * @deprecated
330
+ */
331
+ projectId: string;
332
+ domains?: Array<(string)> | null;
333
+ /**
334
+ * The entrypoint file for the website. If not specified we try to automatically detect it.
335
+ */
336
+ entrypoint: string;
337
+ };
338
+ type FreestyleDomainVerificationRequest = {
339
+ /**
340
+ * The domain to create a verification code for
341
+ */
342
+ domain: string;
343
+ };
344
+ type FreestyleExecuteScriptParams = {
345
+ /**
346
+ * The JavaScript or TypeScript script to execute
347
+ */
348
+ script: string;
349
+ config?: FreestyleExecuteScriptParamsConfiguration;
350
+ };
351
+ type FreestyleExecuteScriptParamsConfiguration = {
352
+ /**
353
+ * The environment variables to set for the script
354
+ */
355
+ envVars?: {
356
+ [key: string]: (string);
357
+ };
358
+ /**
359
+ * The node modules to install for the script
360
+ */
361
+ nodeModules?: {
362
+ [key: string]: (string);
363
+ };
364
+ /**
365
+ * Tags for you to organize your scripts, useful for tracking what you're running
366
+ */
367
+ tags?: Array<(string)>;
368
+ /**
369
+ * The script timeout
370
+ */
371
+ timeout?: (string) | null;
372
+ /**
373
+ * 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.
374
+ */
375
+ peerDependencyResolution?: boolean;
376
+ networkPermissions?: Array<FreestyleNetworkPermission> | null;
377
+ /**
378
+ * These headers will be added to every fetch request made through the script
379
+ */
380
+ customHeaders?: {
381
+ [key: string]: (string);
382
+ };
383
+ /**
384
+ * Proxy all outgoing requests through this URL
385
+ */
386
+ proxy?: (string) | null;
387
+ };
388
+ type FreestyleExecuteScriptResultSuccess = {
389
+ /**
390
+ * The return value of the default export of the script
391
+ */
392
+ result: unknown;
393
+ logs: Array<FreestyleJavaScriptLog>;
394
+ };
395
+ type FreestyleFile = {
396
+ /**
397
+ * The content of the file
398
+ */
399
+ content: string;
400
+ /**
401
+ * The encoding of the file. Either **utf-8** or **base64**
402
+ */
403
+ encoding?: string;
404
+ };
405
+ type FreestyleGetLogsResponse = {
406
+ logs: Array<FreestyleLogResponseObject>;
407
+ };
408
+ type FreestyleJavaScriptLog = {
409
+ /**
410
+ * The log message
411
+ */
412
+ message: string;
413
+ /**
414
+ * The log level
415
+ */
416
+ type: string;
417
+ };
418
+ type FreestyleLogResponseObject = {
419
+ message: string;
420
+ timestamp: string;
421
+ };
422
+ type FreestyleNetworkPermission = (NetworkPermissionData & {
423
+ action: 'allow';
424
+ }) | (NetworkPermissionData & {
425
+ action: 'deny';
426
+ });
427
+ type action = 'allow';
428
+ /**
429
+ * Verify a domain verification request, can either be done for a domain, or for a specific request
430
+ */
431
+ type FreestyleVerifyDomainRequest = {
432
+ domain: string;
433
+ } | {
434
+ id: string;
435
+ };
436
+ type GitCommitPushRequest = {
437
+ devServer: DevServer;
438
+ message: string;
439
+ };
440
+ type GitIdentity = {
441
+ id: string;
442
+ managed: boolean;
443
+ };
444
+ type GitRepositoryTrigger = {
445
+ repositoryId: string;
446
+ trigger: ({
447
+ branches?: Array<(string)> | null;
448
+ globs?: Array<(string)> | null;
449
+ event: 'push';
450
+ });
451
+ action: ({
452
+ endpoint: string;
453
+ action: 'webhook';
454
+ });
455
+ managed: boolean;
456
+ id: string;
457
+ createdAt: number;
458
+ };
459
+ type event = 'push';
460
+ type action2 = 'webhook';
461
+ type GitTrigger = {
462
+ branches?: Array<(string)> | null;
463
+ globs?: Array<(string)> | null;
464
+ event: 'push';
465
+ };
466
+ type GitTriggerAction = {
467
+ endpoint: string;
468
+ action: 'webhook';
469
+ };
470
+ type GrantPermissionRequest = {
471
+ permission: AccessLevel;
472
+ };
473
+ type InternalServerError = string;
474
+ type ListGitTokensResponseSuccess = {
475
+ tokens: Array<AccessTokenInfo>;
476
+ };
477
+ type ListPermissionResponseSuccess = {
478
+ repositories: Array<AccessibleRepository>;
479
+ };
480
+ type ListRecordsResponse = {
481
+ records: Array<DnsRecord>;
482
+ };
483
+ type NetworkPermissionData = {
484
+ query: string;
485
+ behavior?: Behavior;
486
+ };
487
+ type ReadFileRequest = {
488
+ devServer: DevServer;
489
+ encoding?: string;
490
+ };
491
+ type RepositoryInfo = {
492
+ id: string;
493
+ name?: (string) | null;
494
+ accountId: string;
495
+ visibility: Visibility;
496
+ };
497
+ type RevokeGitTokenRequest = {
498
+ tokenId: string;
499
+ };
500
+ type Signature = {
501
+ /**
502
+ * The date marker for this signature
503
+ */
504
+ date: string;
505
+ name: string;
506
+ email: string;
507
+ };
508
+ /**
509
+ * Tag object
510
+ */
511
+ type TagObject = {
512
+ /**
513
+ * The tag name
514
+ */
515
+ name: string;
516
+ tagger?: (null | Signature);
517
+ /**
518
+ * The tag message
519
+ */
520
+ message?: (string) | null;
521
+ /**
522
+ * The object this tag points to
523
+ */
524
+ target: TagTarget;
525
+ /**
526
+ * The tag's hash ID
527
+ */
528
+ sha: string;
529
+ };
530
+ type TagTarget = {
531
+ /**
532
+ * The target object's hash ID
533
+ */
534
+ sha: string;
535
+ };
536
+ type TreeEntry = {
537
+ path: string;
538
+ sha: string;
539
+ type: 'blob';
540
+ } | {
541
+ path: string;
542
+ sha: string;
543
+ type: 'tree';
544
+ };
545
+ type type2 = 'blob';
546
+ /**
547
+ * Tree object
548
+ */
549
+ type TreeObject = {
550
+ /**
551
+ * The tree's entries
552
+ */
553
+ tree: Array<TreeEntry>;
554
+ /**
555
+ * The tree's hash ID
556
+ */
557
+ sha: string;
558
+ };
559
+ type UpdatePermissionRequest = {
560
+ permission: AccessLevel;
561
+ };
562
+ type Visibility = 'public' | 'private';
563
+ type WriteFileRequest = {
564
+ devServer: DevServer;
565
+ content: string;
566
+ encoding?: string;
567
+ };
568
+ type HandleDeployCloudstateData = {
569
+ body: FreestyleCloudstateDeployRequest;
570
+ };
571
+ type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
572
+ type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
573
+ type HandleBackupCloudstateData = {
574
+ path: {
575
+ id: string;
576
+ };
577
+ };
578
+ type HandleBackupCloudstateResponse = (Array<(number)>);
579
+ type HandleBackupCloudstateError = (unknown);
580
+ type HandleListRecordsData = {
581
+ query: {
582
+ domain: string;
583
+ };
584
+ };
585
+ type HandleListRecordsResponse = (ListRecordsResponse);
586
+ type HandleListRecordsError = ({
587
+ message: string;
588
+ });
589
+ type HandleCreateRecordData = {
590
+ body: CreateRecordParams;
591
+ };
592
+ type HandleCreateRecordResponse = ({
593
+ record: DnsRecord;
594
+ });
595
+ type HandleCreateRecordError = ({
596
+ message: string;
597
+ });
598
+ type HandleDeleteRecordData = {
599
+ query: {
600
+ domain: string;
601
+ record: DnsRecord;
602
+ };
603
+ };
604
+ type HandleDeleteRecordResponse = ({
605
+ message: string;
606
+ });
607
+ type HandleDeleteRecordError = ({
608
+ message: string;
609
+ });
610
+ type HandleVerifyWildcardData = {
611
+ path: {
612
+ domain: string;
613
+ };
614
+ };
615
+ type HandleVerifyWildcardResponse = ({
616
+ domain: string;
617
+ });
618
+ type HandleVerifyWildcardError = ({
619
+ message: string;
620
+ });
621
+ type HandleListDomainsResponse = (Array<{
622
+ domain: string;
623
+ createdAt: number;
624
+ }>);
625
+ type HandleListDomainsError = ({
626
+ message: string;
627
+ });
628
+ type HandleInsertDomainMappingData = {
629
+ body: CreateDomainMappingRequest;
630
+ path: {
631
+ domain: string;
632
+ };
633
+ };
634
+ type HandleInsertDomainMappingResponse = (unknown);
635
+ type HandleInsertDomainMappingError = ({
636
+ message: string;
637
+ });
638
+ type HandleDeleteDomainMappingData = {
639
+ path: {
640
+ domain: string;
641
+ };
642
+ };
643
+ type HandleDeleteDomainMappingResponse = (unknown);
644
+ type HandleDeleteDomainMappingError = ({
645
+ message: string;
646
+ });
647
+ type HandleListDomainVerificationRequestsResponse = (Array<{
648
+ verificationCode: string;
649
+ domain: string;
650
+ createdAt: number;
651
+ }>);
652
+ type HandleListDomainVerificationRequestsError = ({
653
+ message: string;
654
+ });
655
+ type HandleVerifyDomainData = {
656
+ body: FreestyleVerifyDomainRequest;
657
+ };
658
+ type HandleVerifyDomainResponse = ({
659
+ domain: string;
660
+ });
661
+ type HandleVerifyDomainError = ({
662
+ message: string;
663
+ });
664
+ type HandleCreateDomainVerificationData = {
665
+ body: FreestyleDomainVerificationRequest;
666
+ };
667
+ type HandleCreateDomainVerificationResponse = (DomainVerificationRequest);
668
+ type HandleCreateDomainVerificationError = ({
669
+ message: string;
670
+ });
671
+ type HandleDeleteDomainVerificationData = {
672
+ body: FreestyleDeleteDomainVerificationRequest;
673
+ };
674
+ type HandleDeleteDomainVerificationResponse = ({
675
+ verificationCode: string;
676
+ domain: string;
677
+ });
678
+ type HandleDeleteDomainVerificationError = ({
679
+ message: string;
680
+ });
681
+ type HandleEphemeralDevServerData = {
682
+ body: DevServerRequest;
683
+ };
684
+ type HandleEphemeralDevServerResponse = ({
685
+ /**
686
+ * @deprecated
687
+ */
688
+ url: string;
689
+ isNew: boolean;
690
+ devCommandRunning: boolean;
691
+ installCommandRunning: boolean;
692
+ mcpEphemeralUrl?: (string) | null;
693
+ ephemeralUrl?: (string) | null;
694
+ });
695
+ type HandleEphemeralDevServerError = (InternalServerError);
696
+ type HandleExecOnEphemeralDevServerData = {
697
+ body: ExecRequest;
698
+ };
699
+ type HandleExecOnEphemeralDevServerResponse = ({
700
+ id: string;
701
+ isNew: boolean;
702
+ stdout?: Array<(string)> | null;
703
+ stderr?: Array<(string)> | null;
704
+ });
705
+ type HandleExecOnEphemeralDevServerError = (InternalServerError);
706
+ type HandleWriteFileFromEphemeralDevServerData = {
707
+ body: WriteFileRequest;
708
+ };
709
+ type HandleWriteFileFromEphemeralDevServerResponse = ({
710
+ id: string;
711
+ isNew: boolean;
712
+ });
713
+ type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
714
+ type HandleReadFileFromEphemeralDevServerData = {
715
+ body: ReadFileRequest;
716
+ };
717
+ type HandleReadFileFromEphemeralDevServerResponse = ({
718
+ id: string;
719
+ isNew: boolean;
720
+ content?: (null | FileReadContent);
721
+ });
722
+ type HandleReadFileFromEphemeralDevServerError = (InternalServerError);
723
+ type HandleGitCommitPushData = {
724
+ body: GitCommitPushRequest;
725
+ };
726
+ type HandleGitCommitPushResponse = ({
727
+ id: string;
728
+ isNew: boolean;
729
+ });
730
+ type HandleGitCommitPushError = (InternalServerError);
731
+ type HandleDevServerStatusData = {
732
+ body: DevServerStatusRequest;
733
+ };
734
+ type HandleDevServerStatusResponse = ({
735
+ installing: boolean;
736
+ devRunning: boolean;
737
+ });
738
+ type HandleDevServerStatusError = (InternalServerError);
739
+ type HandleListExecuteRunsData = {
740
+ query?: {
741
+ limit?: (number) | null;
742
+ offset?: (number) | null;
743
+ };
744
+ };
745
+ type HandleListExecuteRunsResponse = ({
746
+ entries: Array<ExecuteLogEntry>;
747
+ total: number;
748
+ offset: number;
749
+ });
750
+ type HandleListExecuteRunsError = ({
751
+ message: string;
752
+ });
753
+ type HandleGetExecuteRunData = {
754
+ path: {
755
+ deployment: string;
756
+ };
757
+ };
758
+ type HandleGetExecuteRunResponse = ({
759
+ metadata: ExecuteLogEntry;
760
+ code: ExecuteRunInfo;
761
+ });
762
+ type HandleGetExecuteRunError = ({
763
+ message: string;
764
+ });
765
+ type HandleExecuteScriptData = {
766
+ body: FreestyleExecuteScriptParams;
767
+ };
768
+ type HandleExecuteScriptResponse = ({
769
+ /**
770
+ * The return value of the default export of the script
771
+ */
772
+ result: unknown;
773
+ logs: Array<FreestyleJavaScriptLog>;
774
+ });
775
+ type HandleExecuteScriptError = ({
776
+ error: string;
777
+ logs?: Array<FreestyleJavaScriptLog> | null;
778
+ });
779
+ type HandleListIdentitiesData = {
780
+ query?: {
781
+ includeManaged?: (boolean) | null;
782
+ limit?: (number) | null;
783
+ offset?: (number) | null;
784
+ };
785
+ };
786
+ type HandleListIdentitiesResponse = ({
787
+ identities: Array<GitIdentity>;
788
+ offset: number;
789
+ total: number;
790
+ });
791
+ type HandleListIdentitiesError = ({
792
+ message: string;
793
+ });
794
+ type HandleCreateIdentityResponse = (GitIdentity);
795
+ type HandleCreateIdentityError = ({
796
+ message: string;
797
+ });
798
+ type HandleDeleteIdentityData = {
799
+ path: {
800
+ identity: string;
801
+ };
802
+ };
803
+ type HandleDeleteIdentityResponse = ({
804
+ [key: string]: unknown;
805
+ });
806
+ type HandleDeleteIdentityError = ({
807
+ message: string;
808
+ });
809
+ type HandleListPermissionsData = {
810
+ path: {
811
+ identity: string;
812
+ };
813
+ query?: {
814
+ /**
815
+ * Maximum number of repositories to return
816
+ */
817
+ limit?: number;
818
+ /**
819
+ * Offset for the list of repositories
820
+ */
821
+ offset?: number;
822
+ };
823
+ };
824
+ type HandleListPermissionsResponse = (ListPermissionResponseSuccess);
825
+ type HandleListPermissionsError = ({
826
+ message: string;
827
+ });
828
+ type HandleDescribePermissionData = {
829
+ path: {
830
+ identity: string;
831
+ repo: string;
832
+ };
833
+ };
834
+ type HandleDescribePermissionResponse = (DescribePermissionResponseSuccess);
835
+ type HandleDescribePermissionError = ({
836
+ message: string;
837
+ });
838
+ type HandleGrantPermissionData = {
839
+ body: GrantPermissionRequest;
840
+ path: {
841
+ identity: string;
842
+ repo: string;
843
+ };
844
+ };
845
+ type HandleGrantPermissionResponse = ({
846
+ [key: string]: unknown;
847
+ });
848
+ type HandleGrantPermissionError = ({
849
+ message: string;
850
+ });
851
+ type HandleRevokePermissionData = {
852
+ path: {
853
+ identity: string;
854
+ repo: string;
855
+ };
856
+ };
857
+ type HandleRevokePermissionResponse = ({
858
+ [key: string]: unknown;
859
+ });
860
+ type HandleRevokePermissionError = ({
861
+ message: string;
862
+ });
863
+ type HandleUpdatePermissionData = {
864
+ body: UpdatePermissionRequest;
865
+ path: {
866
+ identity: string;
867
+ repo: string;
868
+ };
869
+ };
870
+ type HandleUpdatePermissionResponse = ({
871
+ [key: string]: unknown;
872
+ });
873
+ type HandleUpdatePermissionError = ({
874
+ message: string;
875
+ });
876
+ type HandleListGitTokensData = {
877
+ path: {
878
+ identity: string;
879
+ };
880
+ };
881
+ type HandleListGitTokensResponse = (ListGitTokensResponseSuccess);
882
+ type HandleListGitTokensError = ({
883
+ message: string;
884
+ });
885
+ type HandleCreateGitTokenData = {
886
+ path: {
887
+ identity: string;
888
+ };
889
+ };
890
+ type HandleCreateGitTokenResponse = (CreatedToken);
891
+ type HandleCreateGitTokenError = ({
892
+ message: string;
893
+ });
894
+ type HandleRevokeGitTokenData = {
895
+ body: RevokeGitTokenRequest;
896
+ path: {
897
+ identity: string;
898
+ };
899
+ };
900
+ type HandleRevokeGitTokenResponse = ({
901
+ [key: string]: unknown;
902
+ });
903
+ type HandleRevokeGitTokenError = ({
904
+ message: string;
905
+ });
906
+ type HandleListRepositoriesData = {
907
+ query?: {
908
+ /**
909
+ * Maximum number of repositories to return
910
+ */
911
+ limit?: number;
912
+ /**
913
+ * Offset for the list of repositories
914
+ */
915
+ offset?: number;
916
+ };
917
+ };
918
+ type HandleListRepositoriesResponse = ({
919
+ repositories: Array<RepositoryInfo>;
920
+ offset: number;
921
+ });
922
+ type HandleListRepositoriesError = ({
923
+ message: string;
924
+ });
925
+ type HandleCreateRepoData = {
926
+ body: {
927
+ /**
928
+ * This name is not visible to users, and is only accessible to you via API and in the
929
+ * dashboard. Mostly useful for observability.
930
+ */
931
+ name?: (string) | null;
932
+ public?: boolean;
933
+ source?: CreateRepoSource;
934
+ };
935
+ };
936
+ type HandleCreateRepoResponse = (CreateRepositoryResponseSuccess);
937
+ type HandleCreateRepoError = ({
938
+ message: string;
939
+ });
940
+ type HandleGetBlobData = {
941
+ path: {
942
+ /**
943
+ * The blob hash
944
+ */
945
+ hash: string;
946
+ /**
947
+ * The repository ID
948
+ */
949
+ repo_id: string;
950
+ };
951
+ };
952
+ type HandleGetBlobResponse = (BlobObject);
953
+ type HandleGetBlobError = ({
954
+ message: string;
955
+ });
956
+ type HandleGetCommitData = {
957
+ path: {
958
+ /**
959
+ * The commit hash
960
+ */
961
+ hash: string;
962
+ /**
963
+ * The repository ID
964
+ */
965
+ repo_id: string;
966
+ };
967
+ };
968
+ type HandleGetCommitResponse = (CommitObject);
969
+ type HandleGetCommitError = ({
970
+ message: string;
971
+ });
972
+ type HandleGetTagData = {
973
+ path: {
974
+ /**
975
+ * The tag hash
976
+ */
977
+ hash: string;
978
+ /**
979
+ * The repository ID
980
+ */
981
+ repo_id: string;
982
+ };
983
+ };
984
+ type HandleGetTagResponse = (TagObject);
985
+ type HandleGetTagError = ({
986
+ message: string;
987
+ });
988
+ type HandleGetTreeData = {
989
+ path: {
990
+ /**
991
+ * The tree hash
992
+ */
993
+ hash: string;
994
+ /**
995
+ * The repository ID
996
+ */
997
+ repo_id: string;
998
+ };
999
+ };
1000
+ type HandleGetTreeResponse = (TreeObject);
1001
+ type HandleGetTreeError = ({
1002
+ message: string;
1003
+ });
1004
+ type HandleDeleteRepoData = {
1005
+ path: {
1006
+ /**
1007
+ * The repository id
1008
+ */
1009
+ repo: string;
1010
+ };
1011
+ };
1012
+ type HandleDeleteRepoResponse = ({
1013
+ [key: string]: unknown;
1014
+ });
1015
+ type HandleDeleteRepoError = ({
1016
+ message: string;
1017
+ } | {
1018
+ [key: string]: unknown;
1019
+ });
1020
+ type HandleListGitTriggersData = {
1021
+ path: {
1022
+ /**
1023
+ * The repository id
1024
+ */
1025
+ repo: string;
1026
+ };
1027
+ };
1028
+ type HandleListGitTriggersResponse = ({
1029
+ triggers: Array<GitRepositoryTrigger>;
1030
+ });
1031
+ type HandleListGitTriggersError = ({
1032
+ message: string;
1033
+ });
1034
+ type HandleCreateGitTriggerData = {
1035
+ body: {
1036
+ trigger: ({
1037
+ branches?: Array<(string)> | null;
1038
+ globs?: Array<(string)> | null;
1039
+ event: 'push';
1040
+ });
1041
+ action: ({
1042
+ endpoint: string;
1043
+ action: 'webhook';
1044
+ });
1045
+ };
1046
+ path: {
1047
+ /**
1048
+ * The repository id
1049
+ */
1050
+ repo: string;
1051
+ };
1052
+ };
1053
+ type HandleCreateGitTriggerResponse = ({
1054
+ triggerId: string;
1055
+ });
1056
+ type HandleCreateGitTriggerError = ({
1057
+ message: string;
1058
+ });
1059
+ type HandleDeleteGitTriggerData = {
1060
+ path: {
1061
+ /**
1062
+ * The trigger id
1063
+ */
1064
+ trigger: string;
1065
+ };
1066
+ };
1067
+ type HandleDeleteGitTriggerResponse = ({
1068
+ [key: string]: unknown;
1069
+ });
1070
+ type HandleDeleteGitTriggerError = ({
1071
+ message: string;
1072
+ } | {
1073
+ [key: string]: unknown;
1074
+ });
1075
+ type HandleGetLogsData = {
1076
+ query?: {
1077
+ deploymentId?: (string) | null;
1078
+ domain?: (string) | null;
1079
+ };
1080
+ };
1081
+ type HandleGetLogsResponse = (FreestyleGetLogsResponse);
1082
+ type HandleGetLogsError = unknown;
1083
+ type HandleDeployWebData = {
1084
+ body: FreestyleDeployWebPayload;
1085
+ };
1086
+ type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponseV2);
1087
+ type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
1088
+ type HandleDeployWebV2Data = {
1089
+ body: FreestyleDeployWebPayloadV2;
1090
+ };
1091
+ type HandleDeployWebV2Response = (FreestyleDeployWebSuccessResponseV2);
1092
+ type HandleDeployWebV2Error = (FreestyleDeployWebErrorResponse);
1093
+ type HandleListWebDeploysData = {
1094
+ query: {
1095
+ /**
1096
+ * Maximum number of repositories to return
1097
+ */
1098
+ limit: number;
1099
+ /**
1100
+ * Offset for the list of repositories
1101
+ */
1102
+ offset: number;
1103
+ };
1104
+ };
1105
+ type HandleListWebDeploysResponse = ({
1106
+ entries: Array<DeploymentLogEntry>;
1107
+ total: number;
1108
+ offset: number;
1109
+ });
1110
+ type HandleListWebDeploysError = ({
1111
+ message: string;
1112
+ });
1113
+ type HandleGetWebDeployDetailsData = {
1114
+ path: {
1115
+ deployment_id: string;
1116
+ };
1117
+ };
1118
+
1119
+ export type { DevServer as $, AccessLevel as A, HandleCreateGitTriggerResponse as B, CreateRepositoryResponseSuccess as C, DeploymentSource as D, DeploymentBuildOptions as E, FreestyleExecuteScriptParamsConfiguration as F, GitIdentity as G, HandleBackupCloudstateResponse as H, AccessibleRepository as I, AccessTokenInfo as J, Behavior as K, ListPermissionResponseSuccess as L, BlobEncoding as M, BlobObject as N, CommitObject as O, CommitParent as P, CommitTree as Q, CreateDomainMappingRequest as R, CreateRecordParams as S, CreateRepoRequest as T, CreateRepositoryRequest as U, CreateRepoSource as V, type as W, CustomBuildOptions as X, DeploymentLogEntry as Y, kind as Z, DeploymentState as _, FreestyleExecuteScriptResultSuccess as a, HandleVerifyWildcardError as a$, kind2 as a0, DevServerRequest as a1, DevServerStatusRequest as a2, DnsRecord as a3, DnsRecordData as a4, DnsRecordKind as a5, DomainVerificationRequest as a6, ExecRequest as a7, ExecuteLogEntry as a8, ExecuteRunInfo as a9, ReadFileRequest as aA, RepositoryInfo as aB, RevokeGitTokenRequest as aC, Signature as aD, TagObject as aE, TagTarget as aF, TreeEntry as aG, type2 as aH, TreeObject as aI, UpdatePermissionRequest as aJ, Visibility as aK, WriteFileRequest as aL, HandleDeployCloudstateData as aM, HandleDeployCloudstateResponse as aN, HandleDeployCloudstateError as aO, HandleBackupCloudstateData as aP, HandleBackupCloudstateError as aQ, HandleListRecordsData as aR, HandleListRecordsResponse as aS, HandleListRecordsError as aT, HandleCreateRecordData as aU, HandleCreateRecordResponse as aV, HandleCreateRecordError as aW, HandleDeleteRecordData as aX, HandleDeleteRecordResponse as aY, HandleDeleteRecordError as aZ, HandleVerifyWildcardData as a_, ExecuteRunState as aa, FileReadContent as ab, kind3 as ac, FreestyleCloudstateDeployConfiguration as ad, FreestyleCloudstateDeployErrorResponse as ae, FreestyleDeleteDomainVerificationRequest as af, FreestyleDeployWebErrorResponse as ag, FreestyleDeployWebPayload as ah, FreestyleDeployWebPayloadV2 as ai, FreestyleDomainVerificationRequest as aj, FreestyleExecuteScriptParams as ak, FreestyleFile as al, FreestyleGetLogsResponse as am, FreestyleJavaScriptLog as an, FreestyleLogResponseObject as ao, FreestyleNetworkPermission as ap, action as aq, FreestyleVerifyDomainRequest as ar, GitCommitPushRequest as as, GitRepositoryTrigger as at, event as au, action2 as av, GrantPermissionRequest as aw, InternalServerError as ax, ListRecordsResponse as ay, NetworkPermissionData as az, FreestyleDeployWebConfiguration as b, HandleCreateGitTokenResponse as b$, HandleListDomainsError as b0, HandleInsertDomainMappingData as b1, HandleInsertDomainMappingResponse as b2, HandleInsertDomainMappingError as b3, HandleDeleteDomainMappingData as b4, HandleDeleteDomainMappingResponse as b5, HandleDeleteDomainMappingError as b6, HandleListDomainVerificationRequestsError as b7, HandleVerifyDomainData as b8, HandleCreateDomainVerificationData as b9, HandleExecuteScriptResponse as bA, HandleExecuteScriptError as bB, HandleListIdentitiesData as bC, HandleListIdentitiesResponse as bD, HandleListIdentitiesError as bE, HandleCreateIdentityResponse as bF, HandleCreateIdentityError as bG, HandleDeleteIdentityData as bH, HandleDeleteIdentityError as bI, HandleListPermissionsData as bJ, HandleListPermissionsResponse as bK, HandleListPermissionsError as bL, HandleDescribePermissionData as bM, HandleDescribePermissionResponse as bN, HandleDescribePermissionError as bO, HandleGrantPermissionData as bP, HandleGrantPermissionError as bQ, HandleRevokePermissionData as bR, HandleRevokePermissionResponse as bS, HandleRevokePermissionError as bT, HandleUpdatePermissionData as bU, HandleUpdatePermissionResponse as bV, HandleUpdatePermissionError as bW, HandleListGitTokensData as bX, HandleListGitTokensResponse as bY, HandleListGitTokensError as bZ, HandleCreateGitTokenData as b_, HandleCreateDomainVerificationError as ba, HandleDeleteDomainVerificationData as bb, HandleDeleteDomainVerificationError as bc, HandleEphemeralDevServerData as bd, HandleEphemeralDevServerResponse as be, HandleEphemeralDevServerError as bf, HandleExecOnEphemeralDevServerData as bg, HandleExecOnEphemeralDevServerResponse as bh, HandleExecOnEphemeralDevServerError as bi, HandleWriteFileFromEphemeralDevServerData as bj, HandleWriteFileFromEphemeralDevServerResponse as bk, HandleWriteFileFromEphemeralDevServerError as bl, HandleReadFileFromEphemeralDevServerData as bm, HandleReadFileFromEphemeralDevServerResponse as bn, HandleReadFileFromEphemeralDevServerError as bo, HandleGitCommitPushData as bp, HandleGitCommitPushResponse as bq, HandleGitCommitPushError as br, HandleDevServerStatusData as bs, HandleDevServerStatusResponse as bt, HandleDevServerStatusError as bu, HandleListExecuteRunsData as bv, HandleListExecuteRunsError as bw, HandleGetExecuteRunData as bx, HandleGetExecuteRunError as by, HandleExecuteScriptData as bz, FreestyleDeployWebSuccessResponseV2 as c, HandleCreateGitTokenError as c0, HandleRevokeGitTokenData as c1, HandleRevokeGitTokenResponse as c2, HandleRevokeGitTokenError as c3, HandleListRepositoriesData as c4, HandleListRepositoriesError as c5, HandleCreateRepoData as c6, HandleCreateRepoResponse as c7, HandleCreateRepoError as c8, HandleGetBlobData as c9, HandleDeployWebV2Response as cA, HandleDeployWebV2Error as cB, HandleListWebDeploysData as cC, HandleListWebDeploysError as cD, HandleGetWebDeployDetailsData as cE, HandleGetBlobResponse as ca, HandleGetBlobError as cb, HandleGetCommitData as cc, HandleGetCommitResponse as cd, HandleGetCommitError as ce, HandleGetTagData as cf, HandleGetTagResponse as cg, HandleGetTagError as ch, HandleGetTreeData as ci, HandleGetTreeResponse as cj, HandleGetTreeError as ck, HandleDeleteRepoData as cl, HandleDeleteRepoError as cm, HandleListGitTriggersData as cn, HandleListGitTriggersError as co, HandleCreateGitTriggerData as cp, HandleCreateGitTriggerError as cq, HandleDeleteGitTriggerData as cr, HandleDeleteGitTriggerResponse as cs, HandleDeleteGitTriggerError as ct, HandleGetLogsData as cu, HandleGetLogsError as cv, HandleDeployWebData as cw, HandleDeployWebResponse as cx, HandleDeployWebError as cy, HandleDeployWebV2Data as cz, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, 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, HandleListRepositoriesResponse as q, HandleDeleteRepoResponse as r, HandleDeleteIdentityResponse as s, HandleGrantPermissionResponse as t, DescribePermissionResponseSuccess as u, CreatedToken as v, ListGitTokensResponseSuccess as w, HandleListGitTriggersResponse as x, GitTrigger as y, GitTriggerAction as z };