freestyle-sandboxes 0.0.68 → 0.0.69

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.
@@ -0,0 +1,1197 @@
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
+ computeClass?: (string) | null;
165
+ /**
166
+ * Timeout in seconds
167
+ */
168
+ timeout?: (number) | null;
169
+ /**
170
+ * @deprecated
171
+ */
172
+ domain?: (string) | null;
173
+ /**
174
+ * @deprecated
175
+ */
176
+ repo?: (string) | null;
177
+ };
178
+ type DevServerStatusRequest = {
179
+ devServer: DevServer;
180
+ };
181
+ type DnsRecord = {
182
+ kind: DnsRecordKind;
183
+ name: string;
184
+ value: string;
185
+ ttl: string;
186
+ priority?: (number) | null;
187
+ managed: boolean;
188
+ };
189
+ type DnsRecordData = {
190
+ kind: DnsRecordKind;
191
+ name: string;
192
+ value: string;
193
+ ttl?: (string) | null;
194
+ priority?: (number) | null;
195
+ };
196
+ type DnsRecordKind = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'NS';
197
+ type DomainVerificationRequest = {
198
+ id: string;
199
+ domain: string;
200
+ accountId: string;
201
+ verificationCode: string;
202
+ createdAt: number;
203
+ };
204
+ type ExecRequest = {
205
+ devServer: DevServer;
206
+ command: string;
207
+ /**
208
+ * Spawn this command as a background process and return immediately
209
+ */
210
+ background: boolean;
211
+ };
212
+ type ExecuteLogEntry = {
213
+ deployment: string;
214
+ accountId: string;
215
+ provisionedAt: string;
216
+ startedAt?: (string) | null;
217
+ duration?: (string) | null;
218
+ state: ExecuteRunState;
219
+ envVars: {
220
+ [key: string]: (string);
221
+ };
222
+ };
223
+ type ExecuteRunInfo = {
224
+ code: string;
225
+ nodeModules: {
226
+ [key: string]: (string);
227
+ };
228
+ };
229
+ type ExecuteRunState = 'starting' | 'running' | 'complete';
230
+ type FileReadContent = {
231
+ content: string;
232
+ encoding: string;
233
+ kind: 'file';
234
+ } | {
235
+ files: Array<(string)>;
236
+ kind: 'directory';
237
+ };
238
+ type kind3 = 'file';
239
+ type FreestyleCloudstateDeployConfiguration = {
240
+ /**
241
+ * ID of the project to deploy, if not provided will create a new project
242
+ */
243
+ domains?: Array<(string)> | null;
244
+ /**
245
+ * The environment variables that the cloudstate deploy can access
246
+ */
247
+ envVars?: {
248
+ [key: string]: (string);
249
+ };
250
+ cloudstateDatabaseId?: (string) | null;
251
+ };
252
+ type FreestyleCloudstateDeployErrorResponse = {
253
+ message: string;
254
+ };
255
+ type FreestyleCloudstateDeployRequest = {
256
+ classes: string;
257
+ config?: FreestyleCloudstateDeployConfiguration;
258
+ };
259
+ type FreestyleCloudstateDeploySuccessResponse = {
260
+ deploymentId: string;
261
+ cloudstateDatabaseId: string;
262
+ };
263
+ type FreestyleDeleteDomainVerificationRequest = {
264
+ /**
265
+ * The domain to create a verification code for
266
+ */
267
+ domain: string;
268
+ /**
269
+ * The verification code
270
+ */
271
+ verificationCode: string;
272
+ };
273
+ type FreestyleDeployWebConfiguration = {
274
+ /**
275
+ * The entrypoint file for the website
276
+ */
277
+ entrypoint?: (string) | null;
278
+ /**
279
+ * The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
280
+ */
281
+ domains?: Array<(string)> | null;
282
+ /**
283
+ * 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.
284
+ * @deprecated
285
+ */
286
+ projectId?: (string) | null;
287
+ /**
288
+ * 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.
289
+ */
290
+ nodeModules?: {
291
+ [key: string]: (string);
292
+ } | null;
293
+ /**
294
+ * The environment variables that the website can access
295
+ * e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
296
+ */
297
+ envVars?: {
298
+ [key: string]: (string);
299
+ } | null;
300
+ serverStartCheck?: boolean;
301
+ networkPermissions?: Array<FreestyleNetworkPermission> | null;
302
+ build?: (null | DeploymentBuildOptions);
303
+ /**
304
+ * Timeout for the deployment in seconds. If not provided, the default is 10 seconds.
305
+ */
306
+ timeout?: (number) | null;
307
+ };
308
+ type FreestyleDeployWebErrorResponse = {
309
+ message: string;
310
+ };
311
+ type FreestyleDeployWebPayload = {
312
+ /**
313
+ * 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\" } }
314
+ *
315
+ * **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.
316
+ */
317
+ files: {
318
+ [key: string]: FreestyleFile;
319
+ };
320
+ config?: FreestyleDeployWebConfiguration;
321
+ };
322
+ type FreestyleDeployWebPayloadV2 = {
323
+ /**
324
+ * 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\" } }
325
+ *
326
+ * **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.
327
+ */
328
+ source: DeploymentSource;
329
+ config?: FreestyleDeployWebConfiguration;
330
+ };
331
+ type FreestyleDeployWebSuccessResponseV2 = {
332
+ deploymentId: string;
333
+ /**
334
+ * @deprecated
335
+ */
336
+ projectId: string;
337
+ domains?: Array<(string)> | null;
338
+ /**
339
+ * The entrypoint file for the website. If not specified we try to automatically detect it.
340
+ */
341
+ entrypoint: string;
342
+ };
343
+ type FreestyleDomainVerificationRequest = {
344
+ /**
345
+ * The domain to create a verification code for
346
+ */
347
+ domain: string;
348
+ };
349
+ type FreestyleExecuteScriptParams = {
350
+ /**
351
+ * The JavaScript or TypeScript script to execute
352
+ */
353
+ script: string;
354
+ config?: FreestyleExecuteScriptParamsConfiguration;
355
+ };
356
+ type FreestyleExecuteScriptParamsConfiguration = {
357
+ /**
358
+ * The environment variables to set for the script
359
+ */
360
+ envVars?: {
361
+ [key: string]: (string);
362
+ };
363
+ /**
364
+ * The node modules to install for the script
365
+ */
366
+ nodeModules?: {
367
+ [key: string]: (string);
368
+ };
369
+ /**
370
+ * Tags for you to organize your scripts, useful for tracking what you're running
371
+ */
372
+ tags?: Array<(string)>;
373
+ /**
374
+ * The script timeout
375
+ */
376
+ timeout?: (string) | null;
377
+ /**
378
+ * 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.
379
+ */
380
+ peerDependencyResolution?: boolean;
381
+ networkPermissions?: Array<FreestyleNetworkPermission> | null;
382
+ /**
383
+ * These headers will be added to every fetch request made through the script
384
+ */
385
+ customHeaders?: {
386
+ [key: string]: (string);
387
+ };
388
+ /**
389
+ * Proxy all outgoing requests through this URL
390
+ */
391
+ proxy?: (string) | null;
392
+ };
393
+ type FreestyleExecuteScriptResultSuccess = {
394
+ /**
395
+ * The return value of the default export of the script
396
+ */
397
+ result: unknown;
398
+ logs: Array<FreestyleJavaScriptLog>;
399
+ };
400
+ type FreestyleFile = {
401
+ /**
402
+ * The content of the file
403
+ */
404
+ content: string;
405
+ /**
406
+ * The encoding of the file. Either **utf-8** or **base64**
407
+ */
408
+ encoding?: string;
409
+ };
410
+ type FreestyleGetLogsResponse = {
411
+ logs: Array<FreestyleLogResponseObject>;
412
+ };
413
+ type FreestyleJavaScriptLog = {
414
+ /**
415
+ * The log message
416
+ */
417
+ message: string;
418
+ /**
419
+ * The log level
420
+ */
421
+ type: string;
422
+ };
423
+ type FreestyleLogResponseObject = {
424
+ message: string;
425
+ timestamp: string;
426
+ };
427
+ type FreestyleNetworkPermission = (NetworkPermissionData & {
428
+ action: 'allow';
429
+ }) | (NetworkPermissionData & {
430
+ action: 'deny';
431
+ });
432
+ type action = 'allow';
433
+ /**
434
+ * Verify a domain verification request, can either be done for a domain, or for a specific request
435
+ */
436
+ type FreestyleVerifyDomainRequest = {
437
+ domain: string;
438
+ } | {
439
+ id: string;
440
+ };
441
+ type GitCommitPushRequest = {
442
+ devServer: DevServer;
443
+ message: string;
444
+ };
445
+ type GitIdentity = {
446
+ id: string;
447
+ managed: boolean;
448
+ };
449
+ /**
450
+ * A reference to a Git object
451
+ */
452
+ type GitReference = {
453
+ /**
454
+ * The name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")
455
+ */
456
+ name: string;
457
+ /**
458
+ * The SHA-1 hash of the Git object this reference points to
459
+ */
460
+ sha: string;
461
+ };
462
+ type GitRepositoryTrigger = {
463
+ repositoryId: string;
464
+ trigger: ({
465
+ branches?: Array<(string)> | null;
466
+ globs?: Array<(string)> | null;
467
+ event: 'push';
468
+ });
469
+ action: ({
470
+ endpoint: string;
471
+ action: 'webhook';
472
+ });
473
+ managed: boolean;
474
+ id: string;
475
+ createdAt: number;
476
+ };
477
+ type event = 'push';
478
+ type action2 = 'webhook';
479
+ type GitTrigger = {
480
+ branches?: Array<(string)> | null;
481
+ globs?: Array<(string)> | null;
482
+ event: 'push';
483
+ };
484
+ type GitTriggerAction = {
485
+ endpoint: string;
486
+ action: 'webhook';
487
+ };
488
+ type GrantPermissionRequest = {
489
+ permission: AccessLevel;
490
+ };
491
+ type InternalServerError = string;
492
+ type ListGitTokensResponseSuccess = {
493
+ tokens: Array<AccessTokenInfo>;
494
+ };
495
+ type ListPermissionResponseSuccess = {
496
+ repositories: Array<AccessibleRepository>;
497
+ };
498
+ type ListRecordsResponse = {
499
+ records: Array<DnsRecord>;
500
+ };
501
+ type NetworkPermissionData = {
502
+ query: string;
503
+ behavior?: Behavior;
504
+ };
505
+ type ReadFileRequest = {
506
+ devServer: DevServer;
507
+ encoding?: string;
508
+ };
509
+ type RepositoryInfo = {
510
+ id: string;
511
+ name?: (string) | null;
512
+ accountId: string;
513
+ visibility: Visibility;
514
+ };
515
+ type RevokeGitTokenRequest = {
516
+ tokenId: string;
517
+ };
518
+ type ShutdownDevServerRequest = {
519
+ /**
520
+ * The dev server to shutdown
521
+ */
522
+ devServer: DevServer;
523
+ };
524
+ type Signature = {
525
+ /**
526
+ * The date marker for this signature
527
+ */
528
+ date: string;
529
+ name: string;
530
+ email: string;
531
+ };
532
+ /**
533
+ * Tag object
534
+ */
535
+ type TagObject = {
536
+ /**
537
+ * The tag name
538
+ */
539
+ name: string;
540
+ tagger?: (null | Signature);
541
+ /**
542
+ * The tag message
543
+ */
544
+ message?: (string) | null;
545
+ /**
546
+ * The object this tag points to
547
+ */
548
+ target: TagTarget;
549
+ /**
550
+ * The tag's hash ID
551
+ */
552
+ sha: string;
553
+ };
554
+ type TagTarget = {
555
+ /**
556
+ * The target object's hash ID
557
+ */
558
+ sha: string;
559
+ };
560
+ type TreeEntry = {
561
+ path: string;
562
+ sha: string;
563
+ type: 'blob';
564
+ } | {
565
+ path: string;
566
+ sha: string;
567
+ type: 'tree';
568
+ };
569
+ type type2 = 'blob';
570
+ /**
571
+ * Tree object
572
+ */
573
+ type TreeObject = {
574
+ /**
575
+ * The tree's entries
576
+ */
577
+ tree: Array<TreeEntry>;
578
+ /**
579
+ * The tree's hash ID
580
+ */
581
+ sha: string;
582
+ };
583
+ type UpdatePermissionRequest = {
584
+ permission: AccessLevel;
585
+ };
586
+ type Visibility = 'public' | 'private';
587
+ type WriteFileRequest = {
588
+ devServer: DevServer;
589
+ content: string;
590
+ encoding?: string;
591
+ };
592
+ type HandleDeployCloudstateData = {
593
+ body: FreestyleCloudstateDeployRequest;
594
+ };
595
+ type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
596
+ type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
597
+ type HandleBackupCloudstateData = {
598
+ path: {
599
+ id: string;
600
+ };
601
+ };
602
+ type HandleBackupCloudstateResponse = (Array<(number)>);
603
+ type HandleBackupCloudstateError = (unknown);
604
+ type HandleListRecordsData = {
605
+ query: {
606
+ domain: string;
607
+ };
608
+ };
609
+ type HandleListRecordsResponse = (ListRecordsResponse);
610
+ type HandleListRecordsError = ({
611
+ message: string;
612
+ });
613
+ type HandleCreateRecordData = {
614
+ body: CreateRecordParams;
615
+ };
616
+ type HandleCreateRecordResponse = ({
617
+ record: DnsRecord;
618
+ });
619
+ type HandleCreateRecordError = ({
620
+ message: string;
621
+ });
622
+ type HandleDeleteRecordData = {
623
+ query: {
624
+ domain: string;
625
+ record: DnsRecord;
626
+ };
627
+ };
628
+ type HandleDeleteRecordResponse = ({
629
+ message: string;
630
+ });
631
+ type HandleDeleteRecordError = ({
632
+ message: string;
633
+ });
634
+ type HandleVerifyWildcardData = {
635
+ path: {
636
+ domain: string;
637
+ };
638
+ };
639
+ type HandleVerifyWildcardResponse = ({
640
+ domain: string;
641
+ });
642
+ type HandleVerifyWildcardError = ({
643
+ message: string;
644
+ });
645
+ type HandleListDomainsResponse = (Array<{
646
+ domain: string;
647
+ createdAt: number;
648
+ }>);
649
+ type HandleListDomainsError = ({
650
+ message: string;
651
+ });
652
+ type HandleInsertDomainMappingData = {
653
+ body: CreateDomainMappingRequest;
654
+ path: {
655
+ domain: string;
656
+ };
657
+ };
658
+ type HandleInsertDomainMappingResponse = (unknown);
659
+ type HandleInsertDomainMappingError = ({
660
+ message: string;
661
+ });
662
+ type HandleDeleteDomainMappingData = {
663
+ path: {
664
+ domain: string;
665
+ };
666
+ };
667
+ type HandleDeleteDomainMappingResponse = (unknown);
668
+ type HandleDeleteDomainMappingError = ({
669
+ message: string;
670
+ });
671
+ type HandleListDomainVerificationRequestsResponse = (Array<{
672
+ verificationCode: string;
673
+ domain: string;
674
+ createdAt: number;
675
+ }>);
676
+ type HandleListDomainVerificationRequestsError = ({
677
+ message: string;
678
+ });
679
+ type HandleVerifyDomainData = {
680
+ body: FreestyleVerifyDomainRequest;
681
+ };
682
+ type HandleVerifyDomainResponse = ({
683
+ domain: string;
684
+ });
685
+ type HandleVerifyDomainError = ({
686
+ message: string;
687
+ });
688
+ type HandleCreateDomainVerificationData = {
689
+ body: FreestyleDomainVerificationRequest;
690
+ };
691
+ type HandleCreateDomainVerificationResponse = (DomainVerificationRequest);
692
+ type HandleCreateDomainVerificationError = ({
693
+ message: string;
694
+ });
695
+ type HandleDeleteDomainVerificationData = {
696
+ body: FreestyleDeleteDomainVerificationRequest;
697
+ };
698
+ type HandleDeleteDomainVerificationResponse = ({
699
+ verificationCode: string;
700
+ domain: string;
701
+ });
702
+ type HandleDeleteDomainVerificationError = ({
703
+ message: string;
704
+ });
705
+ type HandleEphemeralDevServerData = {
706
+ body: DevServerRequest;
707
+ };
708
+ type HandleEphemeralDevServerResponse = ({
709
+ /**
710
+ * @deprecated
711
+ */
712
+ url: string;
713
+ isNew: boolean;
714
+ devCommandRunning: boolean;
715
+ installCommandRunning: boolean;
716
+ mcpEphemeralUrl?: (string) | null;
717
+ ephemeralUrl?: (string) | null;
718
+ });
719
+ type HandleEphemeralDevServerError = (InternalServerError);
720
+ type HandleExecOnEphemeralDevServerData = {
721
+ body: ExecRequest;
722
+ };
723
+ type HandleExecOnEphemeralDevServerResponse = ({
724
+ id: string;
725
+ isNew: boolean;
726
+ stdout?: Array<(string)> | null;
727
+ stderr?: Array<(string)> | null;
728
+ });
729
+ type HandleExecOnEphemeralDevServerError = (InternalServerError);
730
+ type HandleWriteFileFromEphemeralDevServerData = {
731
+ body: WriteFileRequest;
732
+ path: {
733
+ filepath: unknown;
734
+ };
735
+ };
736
+ type HandleWriteFileFromEphemeralDevServerResponse = ({
737
+ id: string;
738
+ isNew: boolean;
739
+ });
740
+ type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
741
+ type HandleReadFileFromEphemeralDevServerData = {
742
+ body: ReadFileRequest;
743
+ path: {
744
+ filepath: unknown;
745
+ };
746
+ };
747
+ type HandleReadFileFromEphemeralDevServerResponse = ({
748
+ id: string;
749
+ isNew: boolean;
750
+ content: ({
751
+ content: string;
752
+ encoding: string;
753
+ kind: 'file';
754
+ } | {
755
+ files: Array<(string)>;
756
+ kind: 'directory';
757
+ });
758
+ });
759
+ type HandleReadFileFromEphemeralDevServerError = ({
760
+ id: string;
761
+ isNew: boolean;
762
+ } | InternalServerError);
763
+ type HandleGitCommitPushData = {
764
+ body: GitCommitPushRequest;
765
+ };
766
+ type HandleGitCommitPushResponse = ({
767
+ id: string;
768
+ isNew: boolean;
769
+ });
770
+ type HandleGitCommitPushError = (InternalServerError);
771
+ type HandleShutdownDevServerData = {
772
+ body: ShutdownDevServerRequest;
773
+ };
774
+ type HandleShutdownDevServerResponse = ({
775
+ success: boolean;
776
+ message: string;
777
+ });
778
+ type HandleShutdownDevServerError = ({
779
+ message: string;
780
+ } | InternalServerError);
781
+ type HandleDevServerStatusData = {
782
+ body: DevServerStatusRequest;
783
+ };
784
+ type HandleDevServerStatusResponse = ({
785
+ installing: boolean;
786
+ devRunning: boolean;
787
+ });
788
+ type HandleDevServerStatusError = (InternalServerError);
789
+ type HandleListExecuteRunsData = {
790
+ query?: {
791
+ limit?: (number) | null;
792
+ offset?: (number) | null;
793
+ };
794
+ };
795
+ type HandleListExecuteRunsResponse = ({
796
+ entries: Array<ExecuteLogEntry>;
797
+ total: number;
798
+ offset: number;
799
+ });
800
+ type HandleListExecuteRunsError = ({
801
+ message: string;
802
+ });
803
+ type HandleGetExecuteRunData = {
804
+ path: {
805
+ deployment: string;
806
+ };
807
+ };
808
+ type HandleGetExecuteRunResponse = ({
809
+ metadata: ExecuteLogEntry;
810
+ code: ExecuteRunInfo;
811
+ });
812
+ type HandleGetExecuteRunError = ({
813
+ message: string;
814
+ });
815
+ type HandleExecuteScriptData = {
816
+ body: FreestyleExecuteScriptParams;
817
+ };
818
+ type HandleExecuteScriptResponse = ({
819
+ /**
820
+ * The return value of the default export of the script
821
+ */
822
+ result: unknown;
823
+ logs: Array<FreestyleJavaScriptLog>;
824
+ });
825
+ type HandleExecuteScriptError = ({
826
+ error: string;
827
+ logs?: Array<FreestyleJavaScriptLog> | null;
828
+ });
829
+ type HandleListIdentitiesData = {
830
+ query?: {
831
+ includeManaged?: (boolean) | null;
832
+ limit?: (number) | null;
833
+ offset?: (number) | null;
834
+ };
835
+ };
836
+ type HandleListIdentitiesResponse = ({
837
+ identities: Array<GitIdentity>;
838
+ offset: number;
839
+ total: number;
840
+ });
841
+ type HandleListIdentitiesError = ({
842
+ message: string;
843
+ });
844
+ type HandleCreateIdentityResponse = (GitIdentity);
845
+ type HandleCreateIdentityError = ({
846
+ message: string;
847
+ });
848
+ type HandleDeleteIdentityData = {
849
+ path: {
850
+ identity: string;
851
+ };
852
+ };
853
+ type HandleDeleteIdentityResponse = ({
854
+ [key: string]: unknown;
855
+ });
856
+ type HandleDeleteIdentityError = ({
857
+ message: string;
858
+ });
859
+ type HandleListPermissionsData = {
860
+ path: {
861
+ identity: string;
862
+ };
863
+ query?: {
864
+ /**
865
+ * Maximum number of repositories to return
866
+ */
867
+ limit?: number;
868
+ /**
869
+ * Offset for the list of repositories
870
+ */
871
+ offset?: number;
872
+ };
873
+ };
874
+ type HandleListPermissionsResponse = (ListPermissionResponseSuccess);
875
+ type HandleListPermissionsError = ({
876
+ message: string;
877
+ });
878
+ type HandleDescribePermissionData = {
879
+ path: {
880
+ identity: string;
881
+ repo: string;
882
+ };
883
+ };
884
+ type HandleDescribePermissionResponse = (DescribePermissionResponseSuccess);
885
+ type HandleDescribePermissionError = ({
886
+ message: string;
887
+ });
888
+ type HandleGrantPermissionData = {
889
+ body: GrantPermissionRequest;
890
+ path: {
891
+ identity: string;
892
+ repo: string;
893
+ };
894
+ };
895
+ type HandleGrantPermissionResponse = ({
896
+ [key: string]: unknown;
897
+ });
898
+ type HandleGrantPermissionError = ({
899
+ message: string;
900
+ });
901
+ type HandleRevokePermissionData = {
902
+ path: {
903
+ identity: string;
904
+ repo: string;
905
+ };
906
+ };
907
+ type HandleRevokePermissionResponse = ({
908
+ [key: string]: unknown;
909
+ });
910
+ type HandleRevokePermissionError = ({
911
+ message: string;
912
+ });
913
+ type HandleUpdatePermissionData = {
914
+ body: UpdatePermissionRequest;
915
+ path: {
916
+ identity: string;
917
+ repo: string;
918
+ };
919
+ };
920
+ type HandleUpdatePermissionResponse = ({
921
+ [key: string]: unknown;
922
+ });
923
+ type HandleUpdatePermissionError = ({
924
+ message: string;
925
+ });
926
+ type HandleListGitTokensData = {
927
+ path: {
928
+ identity: string;
929
+ };
930
+ };
931
+ type HandleListGitTokensResponse = (ListGitTokensResponseSuccess);
932
+ type HandleListGitTokensError = ({
933
+ message: string;
934
+ });
935
+ type HandleCreateGitTokenData = {
936
+ path: {
937
+ identity: string;
938
+ };
939
+ };
940
+ type HandleCreateGitTokenResponse = (CreatedToken);
941
+ type HandleCreateGitTokenError = ({
942
+ message: string;
943
+ });
944
+ type HandleRevokeGitTokenData = {
945
+ body: RevokeGitTokenRequest;
946
+ path: {
947
+ identity: string;
948
+ };
949
+ };
950
+ type HandleRevokeGitTokenResponse = ({
951
+ [key: string]: unknown;
952
+ });
953
+ type HandleRevokeGitTokenError = ({
954
+ message: string;
955
+ });
956
+ type HandleListRepositoriesData = {
957
+ query?: {
958
+ /**
959
+ * Maximum number of repositories to return
960
+ */
961
+ limit?: number;
962
+ /**
963
+ * Offset for the list of repositories
964
+ */
965
+ offset?: number;
966
+ };
967
+ };
968
+ type HandleListRepositoriesResponse = ({
969
+ repositories: Array<RepositoryInfo>;
970
+ offset: number;
971
+ });
972
+ type HandleListRepositoriesError = ({
973
+ message: string;
974
+ });
975
+ type HandleCreateRepoData = {
976
+ body: {
977
+ /**
978
+ * This name is not visible to users, and is only accessible to you via API and in the
979
+ * dashboard. Mostly useful for observability.
980
+ */
981
+ name?: (string) | null;
982
+ public?: boolean;
983
+ source?: CreateRepoSource;
984
+ };
985
+ };
986
+ type HandleCreateRepoResponse = (CreateRepositoryResponseSuccess);
987
+ type HandleCreateRepoError = ({
988
+ message: string;
989
+ });
990
+ type HandleDeleteRepoData = {
991
+ path: {
992
+ /**
993
+ * The repository id
994
+ */
995
+ repo: string;
996
+ };
997
+ };
998
+ type HandleDeleteRepoResponse = ({
999
+ [key: string]: unknown;
1000
+ });
1001
+ type HandleDeleteRepoError = ({
1002
+ message: string;
1003
+ } | {
1004
+ [key: string]: unknown;
1005
+ });
1006
+ type HandleGetBlobData = {
1007
+ path: {
1008
+ /**
1009
+ * The repository id
1010
+ */
1011
+ repo: string;
1012
+ };
1013
+ };
1014
+ type HandleGetBlobResponse = (BlobObject);
1015
+ type HandleGetBlobError = ({
1016
+ message: string;
1017
+ });
1018
+ type HandleGetCommitData = {
1019
+ path: {
1020
+ /**
1021
+ * The object's hash
1022
+ */
1023
+ hash: string;
1024
+ /**
1025
+ * The repository id
1026
+ */
1027
+ repo: string;
1028
+ };
1029
+ };
1030
+ type HandleGetCommitResponse = (CommitObject);
1031
+ type HandleGetCommitError = ({
1032
+ message: string;
1033
+ });
1034
+ type HandleGetRefBranchData = {
1035
+ path: {
1036
+ /**
1037
+ * The branch's name
1038
+ */
1039
+ branch: string;
1040
+ /**
1041
+ * The repository id
1042
+ */
1043
+ repo: string;
1044
+ };
1045
+ };
1046
+ type HandleGetRefBranchResponse = (GitReference);
1047
+ type HandleGetRefBranchError = (unknown | {
1048
+ message: string;
1049
+ });
1050
+ type HandleGetTagData = {
1051
+ path: {
1052
+ /**
1053
+ * The object's hash
1054
+ */
1055
+ hash: string;
1056
+ /**
1057
+ * The repository id
1058
+ */
1059
+ repo: string;
1060
+ };
1061
+ };
1062
+ type HandleGetTagResponse = (TagObject);
1063
+ type HandleGetTagError = ({
1064
+ message: string;
1065
+ });
1066
+ type HandleGetTreeData = {
1067
+ path: {
1068
+ /**
1069
+ * The object's hash
1070
+ */
1071
+ hash: string;
1072
+ /**
1073
+ * The repository id
1074
+ */
1075
+ repo: string;
1076
+ };
1077
+ };
1078
+ type HandleGetTreeResponse = (TreeObject);
1079
+ type HandleGetTreeError = ({
1080
+ message: string;
1081
+ });
1082
+ type HandleListGitTriggersData = {
1083
+ path: {
1084
+ /**
1085
+ * The repository id
1086
+ */
1087
+ repo: string;
1088
+ };
1089
+ };
1090
+ type HandleListGitTriggersResponse = ({
1091
+ triggers: Array<GitRepositoryTrigger>;
1092
+ });
1093
+ type HandleListGitTriggersError = ({
1094
+ message: string;
1095
+ });
1096
+ type HandleCreateGitTriggerData = {
1097
+ body: {
1098
+ trigger: ({
1099
+ branches?: Array<(string)> | null;
1100
+ globs?: Array<(string)> | null;
1101
+ event: 'push';
1102
+ });
1103
+ action: ({
1104
+ endpoint: string;
1105
+ action: 'webhook';
1106
+ });
1107
+ };
1108
+ path: {
1109
+ /**
1110
+ * The repository id
1111
+ */
1112
+ repo: string;
1113
+ };
1114
+ };
1115
+ type HandleCreateGitTriggerResponse = ({
1116
+ triggerId: string;
1117
+ });
1118
+ type HandleCreateGitTriggerError = ({
1119
+ message: string;
1120
+ });
1121
+ type HandleDeleteGitTriggerData = {
1122
+ path: {
1123
+ /**
1124
+ * The trigger id
1125
+ */
1126
+ trigger: string;
1127
+ };
1128
+ };
1129
+ type HandleDeleteGitTriggerResponse = ({
1130
+ [key: string]: unknown;
1131
+ });
1132
+ type HandleDeleteGitTriggerError = ({
1133
+ message: string;
1134
+ } | {
1135
+ [key: string]: unknown;
1136
+ });
1137
+ type HandleGetLogsData = {
1138
+ query?: {
1139
+ deploymentId?: (string) | null;
1140
+ domain?: (string) | null;
1141
+ };
1142
+ };
1143
+ type HandleGetLogsResponse = (FreestyleGetLogsResponse);
1144
+ type HandleGetLogsError = unknown;
1145
+ type HandleGetRefTagData = {
1146
+ path: {
1147
+ /**
1148
+ * The repository id
1149
+ */
1150
+ repo: string;
1151
+ /**
1152
+ * The tag's name
1153
+ */
1154
+ tag: string;
1155
+ };
1156
+ };
1157
+ type HandleGetRefTagResponse = (GitReference);
1158
+ type HandleGetRefTagError = (unknown | {
1159
+ message: string;
1160
+ });
1161
+ type HandleDeployWebData = {
1162
+ body: FreestyleDeployWebPayload;
1163
+ };
1164
+ type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponseV2);
1165
+ type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
1166
+ type HandleDeployWebV2Data = {
1167
+ body: FreestyleDeployWebPayloadV2;
1168
+ };
1169
+ type HandleDeployWebV2Response = (FreestyleDeployWebSuccessResponseV2);
1170
+ type HandleDeployWebV2Error = (FreestyleDeployWebErrorResponse);
1171
+ type HandleListWebDeploysData = {
1172
+ query: {
1173
+ /**
1174
+ * Maximum number of repositories to return
1175
+ */
1176
+ limit: number;
1177
+ /**
1178
+ * Offset for the list of repositories
1179
+ */
1180
+ offset: number;
1181
+ };
1182
+ };
1183
+ type HandleListWebDeploysResponse = ({
1184
+ entries: Array<DeploymentLogEntry>;
1185
+ total: number;
1186
+ offset: number;
1187
+ });
1188
+ type HandleListWebDeploysError = ({
1189
+ message: string;
1190
+ });
1191
+ type HandleGetWebDeployDetailsData = {
1192
+ path: {
1193
+ deployment_id: string;
1194
+ };
1195
+ };
1196
+
1197
+ 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, HandleDeleteRecordError 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, NetworkPermissionData as aA, ReadFileRequest as aB, RepositoryInfo as aC, RevokeGitTokenRequest as aD, ShutdownDevServerRequest as aE, Signature as aF, TagObject as aG, TagTarget as aH, TreeEntry as aI, type2 as aJ, TreeObject as aK, UpdatePermissionRequest as aL, Visibility as aM, WriteFileRequest as aN, HandleDeployCloudstateData as aO, HandleDeployCloudstateResponse as aP, HandleDeployCloudstateError as aQ, HandleBackupCloudstateData as aR, HandleBackupCloudstateError as aS, HandleListRecordsData as aT, HandleListRecordsResponse as aU, HandleListRecordsError as aV, HandleCreateRecordData as aW, HandleCreateRecordResponse as aX, HandleCreateRecordError as aY, HandleDeleteRecordData as aZ, HandleDeleteRecordResponse 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, GitReference as at, GitRepositoryTrigger as au, event as av, action2 as aw, GrantPermissionRequest as ax, InternalServerError as ay, ListRecordsResponse as az, FreestyleDeployWebConfiguration as b, HandleUpdatePermissionError as b$, HandleVerifyWildcardData as b0, HandleVerifyWildcardError as b1, HandleListDomainsError as b2, HandleInsertDomainMappingData as b3, HandleInsertDomainMappingResponse as b4, HandleInsertDomainMappingError as b5, HandleDeleteDomainMappingData as b6, HandleDeleteDomainMappingResponse as b7, HandleDeleteDomainMappingError as b8, HandleListDomainVerificationRequestsError as b9, HandleListExecuteRunsData as bA, HandleListExecuteRunsError as bB, HandleGetExecuteRunData as bC, HandleGetExecuteRunError as bD, HandleExecuteScriptData as bE, HandleExecuteScriptResponse as bF, HandleExecuteScriptError as bG, HandleListIdentitiesData as bH, HandleListIdentitiesResponse as bI, HandleListIdentitiesError as bJ, HandleCreateIdentityResponse as bK, HandleCreateIdentityError as bL, HandleDeleteIdentityData as bM, HandleDeleteIdentityError as bN, HandleListPermissionsData as bO, HandleListPermissionsResponse as bP, HandleListPermissionsError as bQ, HandleDescribePermissionData as bR, HandleDescribePermissionResponse as bS, HandleDescribePermissionError as bT, HandleGrantPermissionData as bU, HandleGrantPermissionError as bV, HandleRevokePermissionData as bW, HandleRevokePermissionResponse as bX, HandleRevokePermissionError as bY, HandleUpdatePermissionData as bZ, HandleUpdatePermissionResponse as b_, HandleVerifyDomainData as ba, HandleCreateDomainVerificationData as bb, HandleCreateDomainVerificationError as bc, HandleDeleteDomainVerificationData as bd, HandleDeleteDomainVerificationError as be, HandleEphemeralDevServerData as bf, HandleEphemeralDevServerResponse as bg, HandleEphemeralDevServerError as bh, HandleExecOnEphemeralDevServerData as bi, HandleExecOnEphemeralDevServerResponse as bj, HandleExecOnEphemeralDevServerError as bk, HandleWriteFileFromEphemeralDevServerData as bl, HandleWriteFileFromEphemeralDevServerResponse as bm, HandleWriteFileFromEphemeralDevServerError as bn, HandleReadFileFromEphemeralDevServerData as bo, HandleReadFileFromEphemeralDevServerResponse as bp, HandleReadFileFromEphemeralDevServerError as bq, HandleGitCommitPushData as br, HandleGitCommitPushResponse as bs, HandleGitCommitPushError as bt, HandleShutdownDevServerData as bu, HandleShutdownDevServerResponse as bv, HandleShutdownDevServerError as bw, HandleDevServerStatusData as bx, HandleDevServerStatusResponse as by, HandleDevServerStatusError as bz, FreestyleDeployWebSuccessResponseV2 as c, HandleListGitTokensData as c0, HandleListGitTokensResponse as c1, HandleListGitTokensError as c2, HandleCreateGitTokenData as c3, HandleCreateGitTokenResponse as c4, HandleCreateGitTokenError as c5, HandleRevokeGitTokenData as c6, HandleRevokeGitTokenResponse as c7, HandleRevokeGitTokenError as c8, HandleListRepositoriesData as c9, HandleDeleteGitTriggerResponse as cA, HandleDeleteGitTriggerError as cB, HandleGetLogsData as cC, HandleGetLogsError as cD, HandleGetRefTagData as cE, HandleGetRefTagResponse as cF, HandleGetRefTagError as cG, HandleDeployWebData as cH, HandleDeployWebResponse as cI, HandleDeployWebError as cJ, HandleDeployWebV2Data as cK, HandleDeployWebV2Response as cL, HandleDeployWebV2Error as cM, HandleListWebDeploysData as cN, HandleListWebDeploysError as cO, HandleGetWebDeployDetailsData as cP, HandleListRepositoriesError as ca, HandleCreateRepoData as cb, HandleCreateRepoResponse as cc, HandleCreateRepoError as cd, HandleDeleteRepoData as ce, HandleDeleteRepoError as cf, HandleGetBlobData as cg, HandleGetBlobResponse as ch, HandleGetBlobError as ci, HandleGetCommitData as cj, HandleGetCommitResponse as ck, HandleGetCommitError as cl, HandleGetRefBranchData as cm, HandleGetRefBranchResponse as cn, HandleGetRefBranchError as co, HandleGetTagData as cp, HandleGetTagResponse as cq, HandleGetTagError as cr, HandleGetTreeData as cs, HandleGetTreeResponse as ct, HandleGetTreeError as cu, HandleListGitTriggersData as cv, HandleListGitTriggersError as cw, HandleCreateGitTriggerData as cx, HandleCreateGitTriggerError as cy, HandleDeleteGitTriggerData 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 };