freestyle-sandboxes 0.0.59 → 0.0.60

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 (55) hide show
  1. package/dist/ai/inde.d.cts +1 -1
  2. package/dist/ai/inde.d.mts +1 -1
  3. package/dist/ai/index.d.cts +1 -1
  4. package/dist/ai/index.d.mts +1 -1
  5. package/dist/inde.d.cts +2 -2
  6. package/dist/inde.d.mts +2 -2
  7. package/dist/index-BBXyg0JQ.cjs +3253 -0
  8. package/dist/index-BQHqnjZK.mjs +3231 -0
  9. package/dist/index-CEEa9WHp.cjs +3238 -0
  10. package/dist/index-D1ulQeJR.mjs +3247 -0
  11. package/dist/index-DCF70Xbq.mjs +3246 -0
  12. package/dist/index-H7UNEAjs.cjs +3254 -0
  13. package/dist/index.d-CXx1AdyW.d.ts +4210 -0
  14. package/dist/index.d.cts +2 -2
  15. package/dist/index.d.mts +2 -2
  16. package/dist/langgraph/inde.d.cts +1 -1
  17. package/dist/langgraph/inde.d.mts +1 -1
  18. package/dist/langgraph/index.d.cts +1 -1
  19. package/dist/langgraph/index.d.mts +1 -1
  20. package/dist/mastra/inde.d.cts +1 -1
  21. package/dist/mastra/inde.d.mts +1 -1
  22. package/dist/mastra/index.d.cts +1 -1
  23. package/dist/mastra/index.d.mts +1 -1
  24. package/dist/types.gen-1sd31qLV.d.ts +172 -0
  25. package/dist/types.gen-627pxroW.d.ts +830 -0
  26. package/dist/types.gen-BCdfx7yt.d.ts +760 -0
  27. package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
  28. package/dist/types.gen-BbekD8Sd.d.ts +1119 -0
  29. package/dist/types.gen-BtK6PMQy.d.ts +195 -0
  30. package/dist/types.gen-BuhQ5LpB.d.ts +764 -0
  31. package/dist/types.gen-BzRtj_TA.d.ts +725 -0
  32. package/dist/types.gen-C03gaIPq.d.ts +297 -0
  33. package/dist/types.gen-CMuCas4r.d.ts +183 -0
  34. package/dist/types.gen-CZUnqmzP.d.ts +789 -0
  35. package/dist/types.gen-CnEkmbco.d.ts +314 -0
  36. package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
  37. package/dist/types.gen-DHmdEOOa.d.ts +172 -0
  38. package/dist/types.gen-DLYohMJT.d.ts +382 -0
  39. package/dist/types.gen-DbTb_SrD.d.ts +156 -0
  40. package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
  41. package/dist/{types.gen-BoJEFWW-.d.ts → types.gen-DyY7Deri.d.ts} +55 -1
  42. package/dist/types.gen-MBZCvIhE.d.ts +311 -0
  43. package/dist/types.gen-YhJAHBw8.d.ts +233 -0
  44. package/dist/types.gen-cCnnhnB6.d.ts +182 -0
  45. package/dist/types.gen-mg_JNXrq.d.ts +830 -0
  46. package/dist/types.gen-uDTr6v-7.d.ts +731 -0
  47. package/dist/utils/inde.d.cts +1 -1
  48. package/dist/utils/inde.d.mts +1 -1
  49. package/dist/utils/index.d.cts +1 -1
  50. package/dist/utils/index.d.mts +1 -1
  51. package/openapi/sdk.gen.ts +98 -1
  52. package/openapi/types.gen.ts +329 -5
  53. package/openapi.json +1 -1
  54. package/package.json +2 -2
  55. package/.env +0 -1
@@ -0,0 +1,731 @@
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
+ type CreateDomainMappingRequest = {
17
+ deploymentId: string;
18
+ };
19
+ type CreatedToken = {
20
+ id: string;
21
+ token: string;
22
+ };
23
+ type CreateRepositoryRequest = {
24
+ /**
25
+ * This name is not visible to users, and is only accessible to you via API and in the
26
+ * dashboard. Mostly useful for observability.
27
+ */
28
+ name?: (string) | null;
29
+ public?: boolean;
30
+ };
31
+ type CreateRepositoryResponseSuccess = {
32
+ repoId: string;
33
+ };
34
+ type DeploymentLogEntry = {
35
+ deploymentId: string;
36
+ accountId: string;
37
+ provisionedAt: string;
38
+ timeout: string;
39
+ state: DeploymentState;
40
+ deployedAt?: (string) | null;
41
+ domains: Array<(string)>;
42
+ envVars: {
43
+ [key: string]: (string);
44
+ };
45
+ };
46
+ type DeploymentState = 'provisioning' | 'deployed' | 'failed';
47
+ type DescribePermissionResponseSuccess = {
48
+ identity: string;
49
+ repo: string;
50
+ accessLevel?: (null | AccessLevel);
51
+ };
52
+ type DnsRecord = {
53
+ kind: DnsRecordKind;
54
+ name: string;
55
+ value: string;
56
+ ttl: string;
57
+ priority?: (number) | null;
58
+ managed: boolean;
59
+ };
60
+ type DnsRecordKind = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'NS';
61
+ type DomainVerificationRequest = {
62
+ id: string;
63
+ domain: string;
64
+ accountId: string;
65
+ verificationCode: string;
66
+ createdAt: number;
67
+ };
68
+ type ExecuteLogEntry = {
69
+ deployment: string;
70
+ accountId: string;
71
+ provisionedAt: string;
72
+ startedAt?: (string) | null;
73
+ duration?: (string) | null;
74
+ state: ExecuteRunState;
75
+ envVars: {
76
+ [key: string]: (string);
77
+ };
78
+ };
79
+ type ExecuteRunInfo = {
80
+ code: string;
81
+ nodeModules: {
82
+ [key: string]: (string);
83
+ };
84
+ };
85
+ type ExecuteRunState = 'starting' | 'running' | 'complete';
86
+ type FreestyleCloudstateDeployConfiguration = {
87
+ /**
88
+ * ID of the project to deploy, if not provided will create a new project
89
+ */
90
+ domains?: Array<(string)> | null;
91
+ /**
92
+ * The environment variables that the cloudstate deploy can access
93
+ */
94
+ envVars?: {
95
+ [key: string]: (string);
96
+ };
97
+ cloudstateDatabaseId?: (string) | null;
98
+ };
99
+ type FreestyleCloudstateDeployErrorResponse = {
100
+ message: string;
101
+ };
102
+ type FreestyleCloudstateDeployRequest = {
103
+ classes: string;
104
+ config?: FreestyleCloudstateDeployConfiguration;
105
+ };
106
+ type FreestyleCloudstateDeploySuccessResponse = {
107
+ deploymentId: string;
108
+ cloudstateDatabaseId: string;
109
+ };
110
+ type FreestyleDeleteDomainVerificationRequest = {
111
+ /**
112
+ * The domain to create a verification code for
113
+ */
114
+ domain: string;
115
+ /**
116
+ * The verification code
117
+ */
118
+ verificationCode: string;
119
+ };
120
+ type FreestyleDeployWebConfiguration = {
121
+ /**
122
+ * The entrypoint file for the website
123
+ */
124
+ entrypoint?: (string) | null;
125
+ /**
126
+ * The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
127
+ */
128
+ domains?: Array<(string)> | null;
129
+ /**
130
+ * 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.
131
+ * @deprecated
132
+ */
133
+ projectId?: (string) | null;
134
+ /**
135
+ * 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.
136
+ */
137
+ nodeModules?: {
138
+ [key: string]: (string);
139
+ } | null;
140
+ /**
141
+ * The environment variables that the website can access
142
+ * e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
143
+ */
144
+ envVars?: {
145
+ [key: string]: (string);
146
+ } | null;
147
+ serverStartCheck?: boolean;
148
+ networkPermissions?: Array<FreestyleNetworkPermission> | null;
149
+ };
150
+ type FreestyleDeployWebErrorResponse = {
151
+ message: string;
152
+ };
153
+ type FreestyleDeployWebPayload = {
154
+ /**
155
+ * 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\" } }
156
+ *
157
+ * **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.
158
+ */
159
+ files: {
160
+ [key: string]: FreestyleFile;
161
+ };
162
+ config?: FreestyleDeployWebConfiguration;
163
+ };
164
+ type FreestyleDeployWebSuccessResponse = {
165
+ deploymentId: string;
166
+ domains?: Array<(string)> | null;
167
+ /**
168
+ * @deprecated
169
+ */
170
+ projectId?: (string) | null;
171
+ };
172
+ type FreestyleDomainVerificationRequest = {
173
+ /**
174
+ * The domain to create a verification code for
175
+ */
176
+ domain: string;
177
+ };
178
+ type FreestyleExecuteScriptParams = {
179
+ /**
180
+ * The JavaScript or TypeScript script to execute
181
+ */
182
+ script: string;
183
+ config?: FreestyleExecuteScriptParamsConfiguration;
184
+ };
185
+ type FreestyleExecuteScriptParamsConfiguration = {
186
+ /**
187
+ * The environment variables to set for the script
188
+ */
189
+ envVars?: {
190
+ [key: string]: (string);
191
+ };
192
+ /**
193
+ * The node modules to install for the script
194
+ */
195
+ nodeModules?: {
196
+ [key: string]: (string);
197
+ };
198
+ /**
199
+ * Tags for you to organize your scripts, useful for tracking what you're running
200
+ */
201
+ tags?: Array<(string)>;
202
+ /**
203
+ * The script timeout
204
+ */
205
+ timeout?: (string) | null;
206
+ /**
207
+ * 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.
208
+ */
209
+ peerDependencyResolution?: boolean;
210
+ networkPermissions?: Array<FreestyleNetworkPermission> | null;
211
+ /**
212
+ * These headers will be added to every fetch request made through the script
213
+ */
214
+ customHeaders?: {
215
+ [key: string]: (string);
216
+ };
217
+ };
218
+ type FreestyleExecuteScriptResultSuccess = {
219
+ /**
220
+ * The return value of the default export of the script
221
+ */
222
+ result: unknown;
223
+ logs: Array<FreestyleJavaScriptLog>;
224
+ };
225
+ type FreestyleFile = {
226
+ /**
227
+ * The content of the file
228
+ */
229
+ content: string;
230
+ /**
231
+ * The encoding of the file. Either **utf-8** or **base64**
232
+ */
233
+ encoding?: string;
234
+ };
235
+ type FreestyleGetLogsResponse = {
236
+ logs: Array<FreestyleLogResponseObject>;
237
+ };
238
+ type FreestyleJavaScriptLog = {
239
+ /**
240
+ * The log message
241
+ */
242
+ message: string;
243
+ /**
244
+ * The log level
245
+ */
246
+ type: string;
247
+ };
248
+ type FreestyleLogResponseObject = {
249
+ message: string;
250
+ timestamp: string;
251
+ };
252
+ type FreestyleNetworkPermission = (NetworkPermissionData & {
253
+ action: 'allow';
254
+ }) | (NetworkPermissionData & {
255
+ action: 'deny';
256
+ });
257
+ type action = 'allow';
258
+ /**
259
+ * Verify a domain verification request, can either be done for a domain, or for a specific request
260
+ */
261
+ type FreestyleVerifyDomainRequest = {
262
+ domain: string;
263
+ } | {
264
+ id: string;
265
+ };
266
+ type GitIdentity = {
267
+ id: string;
268
+ };
269
+ type GitRepositoryTrigger = {
270
+ repositoryId: string;
271
+ trigger: ({
272
+ branches?: Array<(string)> | null;
273
+ globs?: Array<(string)> | null;
274
+ event: 'push';
275
+ });
276
+ action: ({
277
+ endpoint: string;
278
+ action: 'webhook';
279
+ });
280
+ managed: boolean;
281
+ id: string;
282
+ createdAt: number;
283
+ };
284
+ type event = 'push';
285
+ type action2 = 'webhook';
286
+ type GitTrigger = {
287
+ branches?: Array<(string)> | null;
288
+ globs?: Array<(string)> | null;
289
+ event: 'push';
290
+ };
291
+ type GitTriggerAction = {
292
+ endpoint: string;
293
+ action: 'webhook';
294
+ };
295
+ type GrantPermissionRequest = {
296
+ permission: AccessLevel;
297
+ };
298
+ type ListGitTokensResponseSuccess = {
299
+ tokens: Array<AccessTokenInfo>;
300
+ };
301
+ type ListPermissionResponseSuccess = {
302
+ repositories: Array<AccessibleRepository>;
303
+ };
304
+ type ListRecordsResponse = {
305
+ records: Array<DnsRecord>;
306
+ };
307
+ type NetworkPermissionData = {
308
+ query: string;
309
+ behavior?: Behavior;
310
+ };
311
+ type RepositoryInfo = {
312
+ id: string;
313
+ name?: (string) | null;
314
+ accountId: string;
315
+ visibility: Visibility;
316
+ };
317
+ type RevokeGitTokenRequest = {
318
+ tokenId: string;
319
+ };
320
+ type UpdatePermissionRequest = {
321
+ permission: AccessLevel;
322
+ };
323
+ type Visibility = 'public' | 'private';
324
+ type HandleDeployCloudstateData = {
325
+ body: FreestyleCloudstateDeployRequest;
326
+ };
327
+ type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
328
+ type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
329
+ type HandleBackupCloudstateData = {
330
+ path: {
331
+ id: string;
332
+ };
333
+ };
334
+ type HandleBackupCloudstateResponse = (Array<(number)>);
335
+ type HandleBackupCloudstateError = (unknown);
336
+ type HandleListRecordsData = {
337
+ query: {
338
+ domain: string;
339
+ };
340
+ };
341
+ type HandleListRecordsResponse = (ListRecordsResponse);
342
+ type HandleListRecordsError = ({
343
+ message: string;
344
+ });
345
+ type HandleCreateRecordData = {
346
+ query: {
347
+ domain: string;
348
+ record: DnsRecord;
349
+ };
350
+ };
351
+ type HandleCreateRecordResponse = ({
352
+ record: DnsRecord;
353
+ });
354
+ type HandleCreateRecordError = ({
355
+ message: string;
356
+ });
357
+ type HandleDeleteRecordData = {
358
+ query: {
359
+ domain: string;
360
+ record: DnsRecord;
361
+ };
362
+ };
363
+ type HandleDeleteRecordResponse = ({
364
+ message: string;
365
+ });
366
+ type HandleDeleteRecordError = ({
367
+ message: string;
368
+ });
369
+ type HandleVerifyWildcardData = {
370
+ path: {
371
+ domain: string;
372
+ };
373
+ };
374
+ type HandleVerifyWildcardResponse = ({
375
+ domain: string;
376
+ });
377
+ type HandleVerifyWildcardError = ({
378
+ message: string;
379
+ });
380
+ type HandleListDomainsResponse = (Array<{
381
+ domain: string;
382
+ createdAt: number;
383
+ }>);
384
+ type HandleListDomainsError = ({
385
+ message: string;
386
+ });
387
+ type HandleInsertDomainMappingData = {
388
+ body: CreateDomainMappingRequest;
389
+ path: {
390
+ domain: string;
391
+ };
392
+ };
393
+ type HandleInsertDomainMappingResponse = (unknown);
394
+ type HandleInsertDomainMappingError = ({
395
+ message: string;
396
+ });
397
+ type HandleDeleteDomainMappingData = {
398
+ path: {
399
+ domain: string;
400
+ };
401
+ };
402
+ type HandleDeleteDomainMappingResponse = (unknown);
403
+ type HandleDeleteDomainMappingError = ({
404
+ message: string;
405
+ });
406
+ type HandleListDomainVerificationRequestsResponse = (Array<{
407
+ verificationCode: string;
408
+ domain: string;
409
+ createdAt: number;
410
+ }>);
411
+ type HandleListDomainVerificationRequestsError = ({
412
+ message: string;
413
+ });
414
+ type HandleVerifyDomainData = {
415
+ body: FreestyleVerifyDomainRequest;
416
+ };
417
+ type HandleVerifyDomainResponse = ({
418
+ domain: string;
419
+ });
420
+ type HandleVerifyDomainError = ({
421
+ message: string;
422
+ });
423
+ type HandleCreateDomainVerificationData = {
424
+ body: FreestyleDomainVerificationRequest;
425
+ };
426
+ type HandleCreateDomainVerificationResponse = (DomainVerificationRequest);
427
+ type HandleCreateDomainVerificationError = ({
428
+ message: string;
429
+ });
430
+ type HandleDeleteDomainVerificationData = {
431
+ body: FreestyleDeleteDomainVerificationRequest;
432
+ };
433
+ type HandleDeleteDomainVerificationResponse = ({
434
+ verificationCode: string;
435
+ domain: string;
436
+ });
437
+ type HandleDeleteDomainVerificationError = ({
438
+ message: string;
439
+ });
440
+ type HandleListExecuteRunsData = {
441
+ query?: {
442
+ limit?: (number) | null;
443
+ offset?: (number) | null;
444
+ };
445
+ };
446
+ type HandleListExecuteRunsResponse = ({
447
+ entries: Array<ExecuteLogEntry>;
448
+ total: number;
449
+ offset: number;
450
+ });
451
+ type HandleListExecuteRunsError = ({
452
+ message: string;
453
+ });
454
+ type HandleGetExecuteRunData = {
455
+ path: {
456
+ deployment: string;
457
+ };
458
+ };
459
+ type HandleGetExecuteRunResponse = ({
460
+ metadata: ExecuteLogEntry;
461
+ code: ExecuteRunInfo;
462
+ });
463
+ type HandleGetExecuteRunError = ({
464
+ message: string;
465
+ });
466
+ type HandleExecuteScriptData = {
467
+ body: FreestyleExecuteScriptParams;
468
+ };
469
+ type HandleExecuteScriptResponse = ({
470
+ /**
471
+ * The return value of the default export of the script
472
+ */
473
+ result: unknown;
474
+ logs: Array<FreestyleJavaScriptLog>;
475
+ });
476
+ type HandleExecuteScriptError = ({
477
+ error: string;
478
+ });
479
+ type HandleCreateIdentityResponse = (GitIdentity);
480
+ type HandleCreateIdentityError = ({
481
+ message: string;
482
+ });
483
+ type HandleDeleteIdentityData = {
484
+ path: {
485
+ identity: string;
486
+ };
487
+ };
488
+ type HandleDeleteIdentityResponse = ({
489
+ [key: string]: unknown;
490
+ });
491
+ type HandleDeleteIdentityError = ({
492
+ message: string;
493
+ });
494
+ type HandleListPermissionsData = {
495
+ path: {
496
+ identity: string;
497
+ };
498
+ query?: {
499
+ /**
500
+ * Maximum number of repositories to return
501
+ */
502
+ limit?: number;
503
+ /**
504
+ * Offset for the list of repositories
505
+ */
506
+ offset?: number;
507
+ };
508
+ };
509
+ type HandleListPermissionsResponse = (ListPermissionResponseSuccess);
510
+ type HandleListPermissionsError = ({
511
+ message: string;
512
+ });
513
+ type HandleDescribePermissionData = {
514
+ path: {
515
+ identity: string;
516
+ repo: string;
517
+ };
518
+ };
519
+ type HandleDescribePermissionResponse = (DescribePermissionResponseSuccess);
520
+ type HandleDescribePermissionError = ({
521
+ message: string;
522
+ });
523
+ type HandleGrantPermissionData = {
524
+ body: GrantPermissionRequest;
525
+ path: {
526
+ identity: string;
527
+ repo: string;
528
+ };
529
+ };
530
+ type HandleGrantPermissionResponse = ({
531
+ [key: string]: unknown;
532
+ });
533
+ type HandleGrantPermissionError = ({
534
+ message: string;
535
+ });
536
+ type HandleRevokePermissionData = {
537
+ path: {
538
+ identity: string;
539
+ repo: string;
540
+ };
541
+ };
542
+ type HandleRevokePermissionResponse = ({
543
+ [key: string]: unknown;
544
+ });
545
+ type HandleRevokePermissionError = ({
546
+ message: string;
547
+ });
548
+ type HandleUpdatePermissionData = {
549
+ body: UpdatePermissionRequest;
550
+ path: {
551
+ identity: string;
552
+ repo: string;
553
+ };
554
+ };
555
+ type HandleUpdatePermissionResponse = ({
556
+ [key: string]: unknown;
557
+ });
558
+ type HandleUpdatePermissionError = ({
559
+ message: string;
560
+ });
561
+ type HandleListGitTokensData = {
562
+ path: {
563
+ identity: string;
564
+ };
565
+ };
566
+ type HandleListGitTokensResponse = (ListGitTokensResponseSuccess);
567
+ type HandleListGitTokensError = ({
568
+ message: string;
569
+ });
570
+ type HandleCreateGitTokenData = {
571
+ path: {
572
+ identity: string;
573
+ };
574
+ };
575
+ type HandleCreateGitTokenResponse = (CreatedToken);
576
+ type HandleCreateGitTokenError = ({
577
+ message: string;
578
+ });
579
+ type HandleRevokeGitTokenData = {
580
+ body: RevokeGitTokenRequest;
581
+ path: {
582
+ identity: string;
583
+ };
584
+ };
585
+ type HandleRevokeGitTokenResponse = ({
586
+ [key: string]: unknown;
587
+ });
588
+ type HandleRevokeGitTokenError = ({
589
+ message: string;
590
+ });
591
+ type HandleListRepositoriesData = {
592
+ query?: {
593
+ /**
594
+ * Maximum number of repositories to return
595
+ */
596
+ limit?: number;
597
+ /**
598
+ * Offset for the list of repositories
599
+ */
600
+ offset?: number;
601
+ };
602
+ };
603
+ type HandleListRepositoriesResponse = ({
604
+ repositories: Array<RepositoryInfo>;
605
+ offset: number;
606
+ });
607
+ type HandleListRepositoriesError = ({
608
+ message: string;
609
+ });
610
+ type HandleCreateRepoData = {
611
+ body: CreateRepositoryRequest;
612
+ };
613
+ type HandleCreateRepoResponse = (CreateRepositoryResponseSuccess);
614
+ type HandleCreateRepoError = ({
615
+ message: string;
616
+ });
617
+ type HandleDeleteRepoData = {
618
+ path: {
619
+ /**
620
+ * The repository id
621
+ */
622
+ repo: string;
623
+ };
624
+ };
625
+ type HandleDeleteRepoResponse = ({
626
+ [key: string]: unknown;
627
+ });
628
+ type HandleDeleteRepoError = ({
629
+ message: string;
630
+ } | {
631
+ [key: string]: unknown;
632
+ });
633
+ type HandleListGitTriggersData = {
634
+ path: {
635
+ /**
636
+ * The repository id
637
+ */
638
+ repo: string;
639
+ };
640
+ };
641
+ type HandleListGitTriggersResponse = ({
642
+ triggers: Array<GitRepositoryTrigger>;
643
+ });
644
+ type HandleListGitTriggersError = ({
645
+ message: string;
646
+ });
647
+ type HandleCreateGitTriggerData = {
648
+ body: {
649
+ trigger: ({
650
+ branches?: Array<(string)> | null;
651
+ globs?: Array<(string)> | null;
652
+ event: 'push';
653
+ });
654
+ action: ({
655
+ endpoint: string;
656
+ action: 'webhook';
657
+ });
658
+ };
659
+ path: {
660
+ /**
661
+ * The repository id
662
+ */
663
+ repo: string;
664
+ };
665
+ };
666
+ type HandleCreateGitTriggerResponse = ({
667
+ triggerId: string;
668
+ });
669
+ type HandleCreateGitTriggerError = ({
670
+ message: string;
671
+ });
672
+ type HandleDeleteGitTriggerData = {
673
+ path: {
674
+ /**
675
+ * The repository id
676
+ */
677
+ repo: string;
678
+ /**
679
+ * The trigger id
680
+ */
681
+ trigger: string;
682
+ };
683
+ };
684
+ type HandleDeleteGitTriggerResponse = ({
685
+ [key: string]: unknown;
686
+ });
687
+ type HandleDeleteGitTriggerError = ({
688
+ message: string;
689
+ } | {
690
+ [key: string]: unknown;
691
+ });
692
+ type HandleGetLogsData = {
693
+ query?: {
694
+ deploymentId?: (string) | null;
695
+ domain?: (string) | null;
696
+ };
697
+ };
698
+ type HandleGetLogsResponse = (FreestyleGetLogsResponse);
699
+ type HandleGetLogsError = unknown;
700
+ type HandleDeployWebData = {
701
+ body: FreestyleDeployWebPayload;
702
+ };
703
+ type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
704
+ type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
705
+ type HandleListWebDeploysData = {
706
+ query: {
707
+ /**
708
+ * Maximum number of repositories to return
709
+ */
710
+ limit: number;
711
+ /**
712
+ * Offset for the list of repositories
713
+ */
714
+ offset: number;
715
+ };
716
+ };
717
+ type HandleListWebDeploysResponse = ({
718
+ entries: Array<DeploymentLogEntry>;
719
+ total: number;
720
+ offset: number;
721
+ });
722
+ type HandleListWebDeploysError = ({
723
+ message: string;
724
+ });
725
+ type HandleGetWebDeployDetailsData = {
726
+ path: {
727
+ deployment_id: string;
728
+ };
729
+ };
730
+
731
+ export type { FreestyleNetworkPermission as $, AccessLevel as A, Behavior as B, CreateRepositoryResponseSuccess as C, DescribePermissionResponseSuccess as D, DeploymentLogEntry as E, FreestyleExecuteScriptParamsConfiguration as F, GitIdentity as G, HandleBackupCloudstateResponse as H, DeploymentState as I, DnsRecord as J, DnsRecordKind as K, ListPermissionResponseSuccess as L, DomainVerificationRequest as M, ExecuteLogEntry as N, ExecuteRunInfo as O, ExecuteRunState as P, FreestyleCloudstateDeployConfiguration as Q, FreestyleCloudstateDeployErrorResponse as R, FreestyleDeleteDomainVerificationRequest as S, FreestyleDeployWebErrorResponse as T, FreestyleDeployWebPayload as U, FreestyleDomainVerificationRequest as V, FreestyleExecuteScriptParams as W, FreestyleFile as X, FreestyleGetLogsResponse as Y, FreestyleJavaScriptLog as Z, FreestyleLogResponseObject as _, FreestyleExecuteScriptResultSuccess as a, HandleRevokePermissionResponse as a$, action as a0, FreestyleVerifyDomainRequest as a1, GitRepositoryTrigger as a2, event as a3, action2 as a4, GitTrigger as a5, GitTriggerAction as a6, GrantPermissionRequest as a7, ListRecordsResponse as a8, NetworkPermissionData as a9, HandleDeleteDomainMappingError as aA, HandleListDomainVerificationRequestsError as aB, HandleVerifyDomainData as aC, HandleCreateDomainVerificationData as aD, HandleCreateDomainVerificationError as aE, HandleDeleteDomainVerificationData as aF, HandleDeleteDomainVerificationError as aG, HandleListExecuteRunsData as aH, HandleListExecuteRunsError as aI, HandleGetExecuteRunData as aJ, HandleGetExecuteRunError as aK, HandleExecuteScriptData as aL, HandleExecuteScriptResponse as aM, HandleExecuteScriptError as aN, HandleCreateIdentityResponse as aO, HandleCreateIdentityError as aP, HandleDeleteIdentityData as aQ, HandleDeleteIdentityError as aR, HandleListPermissionsData as aS, HandleListPermissionsResponse as aT, HandleListPermissionsError as aU, HandleDescribePermissionData as aV, HandleDescribePermissionResponse as aW, HandleDescribePermissionError as aX, HandleGrantPermissionData as aY, HandleGrantPermissionError as aZ, HandleRevokePermissionData as a_, RepositoryInfo as aa, RevokeGitTokenRequest as ab, UpdatePermissionRequest as ac, Visibility as ad, HandleDeployCloudstateData as ae, HandleDeployCloudstateResponse as af, HandleDeployCloudstateError as ag, HandleBackupCloudstateData as ah, HandleBackupCloudstateError as ai, HandleListRecordsData as aj, HandleListRecordsResponse as ak, HandleListRecordsError as al, HandleCreateRecordData as am, HandleCreateRecordResponse as an, HandleCreateRecordError as ao, HandleDeleteRecordData as ap, HandleDeleteRecordResponse as aq, HandleDeleteRecordError as ar, HandleVerifyWildcardData as as, HandleVerifyWildcardError as at, HandleListDomainsError as au, HandleInsertDomainMappingData as av, HandleInsertDomainMappingResponse as aw, HandleInsertDomainMappingError as ax, HandleDeleteDomainMappingData as ay, HandleDeleteDomainMappingResponse as az, FreestyleDeployWebConfiguration as b, HandleRevokePermissionError as b0, HandleUpdatePermissionData as b1, HandleUpdatePermissionResponse as b2, HandleUpdatePermissionError as b3, HandleListGitTokensData as b4, HandleListGitTokensResponse as b5, HandleListGitTokensError as b6, HandleCreateGitTokenData as b7, HandleCreateGitTokenResponse as b8, HandleCreateGitTokenError as b9, HandleGetWebDeployDetailsData as bA, HandleRevokeGitTokenData as ba, HandleRevokeGitTokenResponse as bb, HandleRevokeGitTokenError as bc, HandleListRepositoriesData as bd, HandleListRepositoriesError as be, HandleCreateRepoData as bf, HandleCreateRepoResponse as bg, HandleCreateRepoError as bh, HandleDeleteRepoData as bi, HandleDeleteRepoError as bj, HandleListGitTriggersData as bk, HandleListGitTriggersResponse as bl, HandleListGitTriggersError as bm, HandleCreateGitTriggerData as bn, HandleCreateGitTriggerResponse as bo, HandleCreateGitTriggerError as bp, HandleDeleteGitTriggerData as bq, HandleDeleteGitTriggerResponse as br, HandleDeleteGitTriggerError as bs, HandleGetLogsData as bt, HandleGetLogsError as bu, HandleDeployWebData as bv, HandleDeployWebResponse as bw, HandleDeployWebError as bx, HandleListWebDeploysData as by, HandleListWebDeploysError as bz, FreestyleDeployWebSuccessResponse as c, 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, CreatedToken as u, ListGitTokensResponseSuccess as v, AccessibleRepository as w, AccessTokenInfo as x, CreateDomainMappingRequest as y, CreateRepositoryRequest as z };