freestyle-sandboxes 0.0.44 → 0.0.46
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.
- package/dist/ai/index.d.cts +2 -2
- package/dist/ai/index.d.mts +2 -2
- package/dist/{index-BBXyg0JQ.cjs → index-CGc0kRd_.cjs} +9 -5
- package/dist/{index-DCF70Xbq.mjs → index-jh-93svX.mjs} +9 -5
- package/dist/index.cjs +132 -49
- package/dist/index.d.cts +74 -47
- package/dist/index.d.mts +74 -47
- package/dist/index.mjs +132 -49
- package/dist/langgraph/index.d.cts +1 -1
- package/dist/langgraph/index.d.mts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.mts +1 -1
- package/dist/{types.gen-DkQ-Dbs1.d.ts → types.gen-BJArgpto.d.ts} +50 -10
- package/dist/{types.gen-DLYohMJT.d.ts → types.gen-CfrGF-JI.d.ts} +1 -1
- package/dist/{types.gen-DDYpuDzZ.d.ts → types.gen-DxZanGNF.d.ts} +38 -10
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/openapi/sdk.gen.ts +8 -1
- package/openapi/types.gen.ts +59 -9
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/ai/index.ts +2 -1
- package/src/index.ts +193 -101
- package/dist/index-BQHqnjZK.mjs +0 -3231
- package/dist/index-CEEa9WHp.cjs +0 -3238
- package/dist/types.gen-1sd31qLV.d.ts +0 -172
- package/dist/types.gen-BCdfx7yt.d.ts +0 -760
- package/dist/types.gen-BaMKzqxQ.d.ts +0 -233
- package/dist/types.gen-BtK6PMQy.d.ts +0 -195
- package/dist/types.gen-C03gaIPq.d.ts +0 -297
- package/dist/types.gen-CMuCas4r.d.ts +0 -183
- package/dist/types.gen-CnEkmbco.d.ts +0 -314
- package/dist/types.gen-DHmdEOOa.d.ts +0 -172
- package/dist/types.gen-DbTb_SrD.d.ts +0 -156
- package/dist/types.gen-DyY7Deri.d.ts +0 -138
- package/dist/types.gen-MBZCvIhE.d.ts +0 -311
- package/dist/types.gen-YhJAHBw8.d.ts +0 -233
- package/dist/types.gen-cCnnhnB6.d.ts +0 -182
- package/dist/types.gen-uDTr6v-7.d.ts +0 -731
package/dist/ai/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, b1 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BJArgpto.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
|
@@ -54,7 +54,7 @@ declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration &
|
|
|
54
54
|
* @param config - Configuration for the tool
|
|
55
55
|
* @param config.apiKey - The API key to use
|
|
56
56
|
*/
|
|
57
|
-
declare const deployWebTool: (config:
|
|
57
|
+
declare const deployWebTool: (config: FreestyleDeployWebConfiguration & {
|
|
58
58
|
apiKey: string;
|
|
59
59
|
}) => Tool<z.ZodObject<{
|
|
60
60
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
package/dist/ai/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, b1 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BJArgpto.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
|
@@ -54,7 +54,7 @@ declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration &
|
|
|
54
54
|
* @param config - Configuration for the tool
|
|
55
55
|
* @param config.apiKey - The API key to use
|
|
56
56
|
*/
|
|
57
|
-
declare const deployWebTool: (config:
|
|
57
|
+
declare const deployWebTool: (config: FreestyleDeployWebConfiguration & {
|
|
58
58
|
apiKey: string;
|
|
59
59
|
}) => Tool<z.ZodObject<{
|
|
60
60
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -3169,11 +3169,12 @@ const executeTool = (config) => {
|
|
|
3169
3169
|
return tool({
|
|
3170
3170
|
description: executeCodeDescription(envVars, nodeModules),
|
|
3171
3171
|
parameters: executeCodeSchema,
|
|
3172
|
-
execute: async ({ script, ...otherParams }) => {
|
|
3172
|
+
execute: async ({ script, ...otherParams }, { toolCallId }) => {
|
|
3173
3173
|
try {
|
|
3174
3174
|
const res = await api.executeScript(script, config);
|
|
3175
3175
|
if (config.onResult) {
|
|
3176
3176
|
await config.onResult({
|
|
3177
|
+
toolCallId,
|
|
3177
3178
|
result: res,
|
|
3178
3179
|
input: {
|
|
3179
3180
|
script,
|
|
@@ -3216,10 +3217,13 @@ ${nodeModules.length > 0 ? `You can use the following node modules: ${nodeModule
|
|
|
3216
3217
|
`)
|
|
3217
3218
|
}),
|
|
3218
3219
|
execute: async ({ files }) => {
|
|
3219
|
-
const new_files = Object.keys(files).reduce(
|
|
3220
|
-
acc
|
|
3221
|
-
|
|
3222
|
-
|
|
3220
|
+
const new_files = Object.keys(files).reduce(
|
|
3221
|
+
(acc, key) => {
|
|
3222
|
+
acc[key] = { content: files[key] };
|
|
3223
|
+
return acc;
|
|
3224
|
+
},
|
|
3225
|
+
{}
|
|
3226
|
+
);
|
|
3223
3227
|
try {
|
|
3224
3228
|
const res = await api.deployWeb(
|
|
3225
3229
|
{
|
|
@@ -3167,11 +3167,12 @@ const executeTool = (config) => {
|
|
|
3167
3167
|
return tool({
|
|
3168
3168
|
description: executeCodeDescription(envVars, nodeModules),
|
|
3169
3169
|
parameters: executeCodeSchema,
|
|
3170
|
-
execute: async ({ script, ...otherParams }) => {
|
|
3170
|
+
execute: async ({ script, ...otherParams }, { toolCallId }) => {
|
|
3171
3171
|
try {
|
|
3172
3172
|
const res = await api.executeScript(script, config);
|
|
3173
3173
|
if (config.onResult) {
|
|
3174
3174
|
await config.onResult({
|
|
3175
|
+
toolCallId,
|
|
3175
3176
|
result: res,
|
|
3176
3177
|
input: {
|
|
3177
3178
|
script,
|
|
@@ -3214,10 +3215,13 @@ ${nodeModules.length > 0 ? `You can use the following node modules: ${nodeModule
|
|
|
3214
3215
|
`)
|
|
3215
3216
|
}),
|
|
3216
3217
|
execute: async ({ files }) => {
|
|
3217
|
-
const new_files = Object.keys(files).reduce(
|
|
3218
|
-
acc
|
|
3219
|
-
|
|
3220
|
-
|
|
3218
|
+
const new_files = Object.keys(files).reduce(
|
|
3219
|
+
(acc, key) => {
|
|
3220
|
+
acc[key] = { content: files[key] };
|
|
3221
|
+
return acc;
|
|
3222
|
+
},
|
|
3223
|
+
{}
|
|
3224
|
+
);
|
|
3221
3225
|
try {
|
|
3222
3226
|
const res = await api.deployWeb(
|
|
3223
3227
|
{
|
package/dist/index.cjs
CHANGED
|
@@ -147,6 +147,24 @@ const handleDeleteRepo = (options) => {
|
|
|
147
147
|
url: "/git/v1/repo/{repo}"
|
|
148
148
|
});
|
|
149
149
|
};
|
|
150
|
+
const handleListGitTriggers = (options) => {
|
|
151
|
+
return (options?.client ?? client).get({
|
|
152
|
+
...options,
|
|
153
|
+
url: "/git/v1/repo/{repo}/trigger"
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
const handleCreateGitTrigger = (options) => {
|
|
157
|
+
return (options?.client ?? client).post({
|
|
158
|
+
...options,
|
|
159
|
+
url: "/git/v1/repo/{repo}/trigger"
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
const handleDeleteGitTrigger = (options) => {
|
|
163
|
+
return (options?.client ?? client).delete({
|
|
164
|
+
...options,
|
|
165
|
+
url: "/git/v1/repo/{repo}/trigger/{trigger}"
|
|
166
|
+
});
|
|
167
|
+
};
|
|
150
168
|
const handleGetLogs = (options) => {
|
|
151
169
|
return (options?.client ?? client).get({
|
|
152
170
|
...options,
|
|
@@ -429,14 +447,18 @@ ${response.error.message}`);
|
|
|
429
447
|
}
|
|
430
448
|
/**
|
|
431
449
|
* Create a new git repository.
|
|
432
|
-
*
|
|
433
|
-
* @param name The name of the repository.
|
|
434
450
|
*/
|
|
435
|
-
async createGitRepository(
|
|
451
|
+
async createGitRepository({
|
|
452
|
+
name,
|
|
453
|
+
public: pub = false,
|
|
454
|
+
source
|
|
455
|
+
}) {
|
|
436
456
|
const response = await handleCreateRepo({
|
|
437
457
|
client: this.client,
|
|
438
458
|
body: {
|
|
439
|
-
name
|
|
459
|
+
name,
|
|
460
|
+
public: pub,
|
|
461
|
+
source
|
|
440
462
|
}
|
|
441
463
|
});
|
|
442
464
|
if (response.data) {
|
|
@@ -448,16 +470,16 @@ ${response.error.message}`);
|
|
|
448
470
|
}
|
|
449
471
|
/**
|
|
450
472
|
* List git repositories.
|
|
451
|
-
*
|
|
452
|
-
* @param limit The maximum number of repositories to return. Defaults to 10.
|
|
453
|
-
* @param offset The offset to start at. Defaults to 0.
|
|
454
473
|
*/
|
|
455
|
-
async listGitRepositories(
|
|
474
|
+
async listGitRepositories({
|
|
475
|
+
limit = 10,
|
|
476
|
+
offset = 0
|
|
477
|
+
} = {}) {
|
|
456
478
|
const response = await handleListRepositories({
|
|
457
479
|
client: this.client,
|
|
458
480
|
query: {
|
|
459
|
-
limit
|
|
460
|
-
offset
|
|
481
|
+
limit,
|
|
482
|
+
offset
|
|
461
483
|
}
|
|
462
484
|
});
|
|
463
485
|
if (response.data) {
|
|
@@ -467,21 +489,21 @@ ${response.error.message}`);
|
|
|
467
489
|
}
|
|
468
490
|
/**
|
|
469
491
|
* Delete a git repository.
|
|
470
|
-
*
|
|
471
|
-
* @param repositoryId The ID of the repository to delete.
|
|
472
492
|
*/
|
|
473
|
-
async deleteGitRepository(
|
|
493
|
+
async deleteGitRepository({
|
|
494
|
+
repoId
|
|
495
|
+
}) {
|
|
474
496
|
const response = await handleDeleteRepo({
|
|
475
497
|
client: this.client,
|
|
476
498
|
path: {
|
|
477
|
-
repo:
|
|
499
|
+
repo: repoId
|
|
478
500
|
}
|
|
479
501
|
});
|
|
480
502
|
if (response.data) {
|
|
481
503
|
return response.data;
|
|
482
504
|
}
|
|
483
505
|
throw new Error(
|
|
484
|
-
`Failed to delete git repository ${
|
|
506
|
+
`Failed to delete git repository ${repoId}: ${response.error}`
|
|
485
507
|
);
|
|
486
508
|
}
|
|
487
509
|
/**
|
|
@@ -498,10 +520,10 @@ ${response.error.message}`);
|
|
|
498
520
|
}
|
|
499
521
|
/**
|
|
500
522
|
* Delete a git identity.
|
|
501
|
-
*
|
|
502
|
-
* @param identityId The ID of the identity to delete.
|
|
503
523
|
*/
|
|
504
|
-
async deleteGitIdentity(
|
|
524
|
+
async deleteGitIdentity({
|
|
525
|
+
identityId
|
|
526
|
+
}) {
|
|
505
527
|
const response = await handleDeleteIdentity({
|
|
506
528
|
client: this.client,
|
|
507
529
|
path: {
|
|
@@ -515,12 +537,12 @@ ${response.error.message}`);
|
|
|
515
537
|
}
|
|
516
538
|
/**
|
|
517
539
|
* Grant a git identity access to a repository.
|
|
518
|
-
*
|
|
519
|
-
* @param repoId The ID of the repository to grant access to.
|
|
520
|
-
* @param identityId The ID of the identity grant access to `repoId`.
|
|
521
|
-
* @param permission The permission to grant.
|
|
522
540
|
*/
|
|
523
|
-
async grantGitPermission(
|
|
541
|
+
async grantGitPermission({
|
|
542
|
+
repoId,
|
|
543
|
+
identityId,
|
|
544
|
+
permission
|
|
545
|
+
}) {
|
|
524
546
|
const response = await handleGrantPermission({
|
|
525
547
|
client: this.client,
|
|
526
548
|
path: {
|
|
@@ -540,12 +562,12 @@ ${response.error.message}`);
|
|
|
540
562
|
}
|
|
541
563
|
/**
|
|
542
564
|
* Update a git identity's permissions on a repository.
|
|
543
|
-
*
|
|
544
|
-
* @param repoId The ID of the repository to update permissions for.
|
|
545
|
-
* @param identityId The ID of the identity to whose access to update.
|
|
546
|
-
* @param permission The permission to grant.
|
|
547
565
|
*/
|
|
548
|
-
async updateGitPermission(
|
|
566
|
+
async updateGitPermission({
|
|
567
|
+
repoId,
|
|
568
|
+
identityId,
|
|
569
|
+
permission
|
|
570
|
+
}) {
|
|
549
571
|
const response = await handleUpdatePermission({
|
|
550
572
|
client: this.client,
|
|
551
573
|
path: {
|
|
@@ -565,11 +587,11 @@ ${response.error.message}`);
|
|
|
565
587
|
}
|
|
566
588
|
/**
|
|
567
589
|
* Revoke a git identity's access to a repository.
|
|
568
|
-
*
|
|
569
|
-
* @param repoId The ID of the repository revoke access to.
|
|
570
|
-
* @param identityId The ID of the identity to revoke access from.
|
|
571
590
|
*/
|
|
572
|
-
async revokeGitPermission(
|
|
591
|
+
async revokeGitPermission({
|
|
592
|
+
repoId,
|
|
593
|
+
identityId
|
|
594
|
+
}) {
|
|
573
595
|
const response = await handleRevokePermission({
|
|
574
596
|
client: this.client,
|
|
575
597
|
path: {
|
|
@@ -586,10 +608,10 @@ ${response.error.message}`);
|
|
|
586
608
|
}
|
|
587
609
|
/**
|
|
588
610
|
* List access permissions for a git identity.
|
|
589
|
-
*
|
|
590
|
-
* @param identityId The ID of the identity to list permissions for.
|
|
591
611
|
*/
|
|
592
|
-
async listGitPermissions(
|
|
612
|
+
async listGitPermissions({
|
|
613
|
+
identityId
|
|
614
|
+
}) {
|
|
593
615
|
const response = await handleListPermissions({
|
|
594
616
|
client: this.client,
|
|
595
617
|
path: {
|
|
@@ -605,11 +627,11 @@ ${response.error.message}`);
|
|
|
605
627
|
}
|
|
606
628
|
/**
|
|
607
629
|
* Get the permission of a git identity on a repository.
|
|
608
|
-
*
|
|
609
|
-
* @param repoId The ID of the repository to check permissions for.
|
|
610
|
-
* @param identityId The ID of the identity to check permissions for.
|
|
611
630
|
*/
|
|
612
|
-
async getGitPermission(
|
|
631
|
+
async getGitPermission({
|
|
632
|
+
repoId,
|
|
633
|
+
identityId
|
|
634
|
+
}) {
|
|
613
635
|
const response = await handleDescribePermission({
|
|
614
636
|
client: this.client,
|
|
615
637
|
path: {
|
|
@@ -626,10 +648,10 @@ ${response.error.message}`);
|
|
|
626
648
|
}
|
|
627
649
|
/**
|
|
628
650
|
* Create a new git access token for an identity.
|
|
629
|
-
*
|
|
630
|
-
* @param identityId The ID of the identity to create the token for.
|
|
631
651
|
*/
|
|
632
|
-
async createGitAccessToken(
|
|
652
|
+
async createGitAccessToken({
|
|
653
|
+
identityId
|
|
654
|
+
}) {
|
|
633
655
|
const response = await handleCreateGitToken({
|
|
634
656
|
client: this.client,
|
|
635
657
|
path: {
|
|
@@ -645,11 +667,11 @@ ${response.error.message}`);
|
|
|
645
667
|
}
|
|
646
668
|
/**
|
|
647
669
|
* Revoke a git access token.
|
|
648
|
-
*
|
|
649
|
-
* @param identityId The ID of the identity the token belongs to.
|
|
650
|
-
* @param tokenId The ID of the token to revoke.
|
|
651
670
|
*/
|
|
652
|
-
async revokeGitAccessToken(
|
|
671
|
+
async revokeGitAccessToken({
|
|
672
|
+
identityId,
|
|
673
|
+
tokenId
|
|
674
|
+
}) {
|
|
653
675
|
const response = await handleRevokeGitToken({
|
|
654
676
|
client: this.client,
|
|
655
677
|
body: {
|
|
@@ -668,10 +690,10 @@ ${response.error.message}`);
|
|
|
668
690
|
}
|
|
669
691
|
/**
|
|
670
692
|
* List git access tokens for an identity.
|
|
671
|
-
*
|
|
672
|
-
* @param identityId The ID of the identity to list tokens for.
|
|
673
693
|
*/
|
|
674
|
-
async listGitAccessTokens(
|
|
694
|
+
async listGitAccessTokens({
|
|
695
|
+
identityId
|
|
696
|
+
}) {
|
|
675
697
|
const response = await handleListGitTokens({
|
|
676
698
|
client: this.client,
|
|
677
699
|
path: {
|
|
@@ -685,6 +707,67 @@ ${response.error.message}`);
|
|
|
685
707
|
`Failed to list git access tokens: ${response.error.message}`
|
|
686
708
|
);
|
|
687
709
|
}
|
|
710
|
+
/**
|
|
711
|
+
* List git triggers for a repository.
|
|
712
|
+
*/
|
|
713
|
+
async listGitTriggers({
|
|
714
|
+
repoId
|
|
715
|
+
}) {
|
|
716
|
+
const response = await handleListGitTriggers({
|
|
717
|
+
client: this.client,
|
|
718
|
+
path: {
|
|
719
|
+
repo: repoId
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
if (response.data) {
|
|
723
|
+
return response.data;
|
|
724
|
+
}
|
|
725
|
+
throw new Error(
|
|
726
|
+
`Failed to list git triggers for repository ${repoId}: ${response.error.message}`
|
|
727
|
+
);
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Create a git trigger for a repository.
|
|
731
|
+
*/
|
|
732
|
+
async createGitTrigger({
|
|
733
|
+
repoId,
|
|
734
|
+
trigger,
|
|
735
|
+
action
|
|
736
|
+
}) {
|
|
737
|
+
const response = await handleCreateGitTrigger({
|
|
738
|
+
client: this.client,
|
|
739
|
+
path: {
|
|
740
|
+
repo: repoId
|
|
741
|
+
},
|
|
742
|
+
body: {
|
|
743
|
+
trigger,
|
|
744
|
+
action
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
if (response.data) {
|
|
748
|
+
return response.data;
|
|
749
|
+
}
|
|
750
|
+
throw new Error(
|
|
751
|
+
`Failed to create git trigger for repository ${repoId}: ${response.error.message}`
|
|
752
|
+
);
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Delete a git trigger.
|
|
756
|
+
*/
|
|
757
|
+
async deleteGitTrigger({ triggerId }) {
|
|
758
|
+
const response = await handleDeleteGitTrigger({
|
|
759
|
+
client: this.client,
|
|
760
|
+
path: {
|
|
761
|
+
trigger: triggerId
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
if (response.data) {
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
throw new Error(
|
|
768
|
+
`Failed to delete git trigger ${triggerId}: ${response.error.message}`
|
|
769
|
+
);
|
|
770
|
+
}
|
|
688
771
|
}
|
|
689
772
|
|
|
690
773
|
exports.FreestyleSandboxes = FreestyleSandboxes;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, B as BuildOptions, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess } from './types.gen-
|
|
2
|
-
export {
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, B as BuildOptions, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess, x as HandleListGitTriggersResponse, y as GitTrigger, z as GitTriggerAction, E as HandleCreateGitTriggerResponse } from './types.gen-BJArgpto.js';
|
|
2
|
+
export { J as AccessTokenInfo, I as AccessibleRepository, K as Behavior, M as CreateDomainMappingRequest, N as CreateRecordParams, O as CreateRepoRequest, Q as CreateRepoSource, P as CreateRepositoryRequest, S as DeploymentLogEntry, U as DeploymentState, V as DevServer, W as DnsRecord, X as DnsRecordData, Y as DnsRecordKind, Z as DomainVerificationRequest, _ as ExecuteLogEntry, $ as ExecuteRunInfo, a0 as ExecuteRunState, a1 as FreestyleCloudstateDeployConfiguration, a2 as FreestyleCloudstateDeployErrorResponse, a3 as FreestyleDeleteDomainVerificationRequest, a4 as FreestyleDeployWebErrorResponse, a5 as FreestyleDeployWebPayload, a6 as FreestyleDeployWebPayloadV2, a7 as FreestyleDomainVerificationRequest, a8 as FreestyleExecuteScriptParams, a9 as FreestyleFile, aa as FreestyleGetLogsResponse, ab as FreestyleJavaScriptLog, ac as FreestyleLogResponseObject, ad as FreestyleNetworkPermission, af as FreestyleVerifyDomainRequest, ag as GitRepositoryTrigger, aj as GrantPermissionRequest, au as HandleBackupCloudstateData, av as HandleBackupCloudstateError, aQ as HandleCreateDomainVerificationData, aR as HandleCreateDomainVerificationError, bn as HandleCreateGitTokenData, bp as HandleCreateGitTokenError, bo as HandleCreateGitTokenResponse, bC as HandleCreateGitTriggerData, bD as HandleCreateGitTriggerError, b3 as HandleCreateIdentityError, b2 as HandleCreateIdentityResponse, az as HandleCreateRecordData, aB as HandleCreateRecordError, aA as HandleCreateRecordResponse, bv as HandleCreateRepoData, bx as HandleCreateRepoError, bw as HandleCreateRepoResponse, aL as HandleDeleteDomainMappingData, aN as HandleDeleteDomainMappingError, aM as HandleDeleteDomainMappingResponse, aS as HandleDeleteDomainVerificationData, aT as HandleDeleteDomainVerificationError, bE as HandleDeleteGitTriggerData, bG as HandleDeleteGitTriggerError, bF as HandleDeleteGitTriggerResponse, b4 as HandleDeleteIdentityData, b5 as HandleDeleteIdentityError, aC as HandleDeleteRecordData, aE as HandleDeleteRecordError, aD as HandleDeleteRecordResponse, by as HandleDeleteRepoData, bz as HandleDeleteRepoError, ar as HandleDeployCloudstateData, at as HandleDeployCloudstateError, as as HandleDeployCloudstateResponse, bJ as HandleDeployWebData, bL as HandleDeployWebError, bK as HandleDeployWebResponse, bM as HandleDeployWebV2Data, bO as HandleDeployWebV2Error, bN as HandleDeployWebV2Response, b9 as HandleDescribePermissionData, bb as HandleDescribePermissionError, ba as HandleDescribePermissionResponse, aU as HandleEphemeralDevServerData, aW as HandleEphemeralDevServerError, aV as HandleEphemeralDevServerResponse, a$ as HandleExecuteScriptData, b1 as HandleExecuteScriptError, b0 as HandleExecuteScriptResponse, aZ as HandleGetExecuteRunData, a_ as HandleGetExecuteRunError, bH as HandleGetLogsData, bI as HandleGetLogsError, bR as HandleGetWebDeployDetailsData, bc as HandleGrantPermissionData, bd as HandleGrantPermissionError, aI as HandleInsertDomainMappingData, aK as HandleInsertDomainMappingError, aJ as HandleInsertDomainMappingResponse, aO as HandleListDomainVerificationRequestsError, aH as HandleListDomainsError, aX as HandleListExecuteRunsData, aY as HandleListExecuteRunsError, bk as HandleListGitTokensData, bm as HandleListGitTokensError, bl as HandleListGitTokensResponse, bA as HandleListGitTriggersData, bB as HandleListGitTriggersError, b6 as HandleListPermissionsData, b8 as HandleListPermissionsError, b7 as HandleListPermissionsResponse, aw as HandleListRecordsData, ay as HandleListRecordsError, ax as HandleListRecordsResponse, bt as HandleListRepositoriesData, bu as HandleListRepositoriesError, bP as HandleListWebDeploysData, bQ as HandleListWebDeploysError, bq as HandleRevokeGitTokenData, bs as HandleRevokeGitTokenError, br as HandleRevokeGitTokenResponse, be as HandleRevokePermissionData, bg as HandleRevokePermissionError, bf as HandleRevokePermissionResponse, bh as HandleUpdatePermissionData, bj as HandleUpdatePermissionError, bi as HandleUpdatePermissionResponse, aP as HandleVerifyDomainData, aF as HandleVerifyWildcardData, aG as HandleVerifyWildcardError, ak as InternalServerError, al as ListRecordsResponse, am as NetworkPermissionData, an as RepositoryInfo, ao as RevokeGitTokenRequest, ap as UpdatePermissionRequest, aq as Visibility, ae as action, ai as action2, ah as event, T as kind, R as type } from './types.gen-BJArgpto.js';
|
|
3
3
|
|
|
4
4
|
declare class FreestyleSandboxes {
|
|
5
5
|
private client;
|
|
@@ -69,88 +69,115 @@ declare class FreestyleSandboxes {
|
|
|
69
69
|
provisionWildcard(domain: string): Promise<HandleVerifyWildcardResponse>;
|
|
70
70
|
/**
|
|
71
71
|
* Create a new git repository.
|
|
72
|
-
*
|
|
73
|
-
* @param name The name of the repository.
|
|
74
72
|
*/
|
|
75
|
-
createGitRepository(name:
|
|
73
|
+
createGitRepository({ name, public: pub, source, }: {
|
|
74
|
+
name: string;
|
|
75
|
+
public?: boolean;
|
|
76
|
+
source?: {
|
|
77
|
+
type: "git";
|
|
78
|
+
url: string;
|
|
79
|
+
branch?: string;
|
|
80
|
+
depth?: number;
|
|
81
|
+
};
|
|
82
|
+
}): Promise<CreateRepositoryResponseSuccess>;
|
|
76
83
|
/**
|
|
77
84
|
* List git repositories.
|
|
78
|
-
*
|
|
79
|
-
* @param limit The maximum number of repositories to return. Defaults to 10.
|
|
80
|
-
* @param offset The offset to start at. Defaults to 0.
|
|
81
85
|
*/
|
|
82
|
-
listGitRepositories(limit
|
|
86
|
+
listGitRepositories({ limit, offset, }?: {
|
|
87
|
+
limit?: number;
|
|
88
|
+
offset?: number;
|
|
89
|
+
}): Promise<HandleListRepositoriesResponse>;
|
|
83
90
|
/**
|
|
84
91
|
* Delete a git repository.
|
|
85
|
-
*
|
|
86
|
-
* @param repositoryId The ID of the repository to delete.
|
|
87
92
|
*/
|
|
88
|
-
deleteGitRepository(
|
|
93
|
+
deleteGitRepository({ repoId, }: {
|
|
94
|
+
repoId: string;
|
|
95
|
+
}): Promise<HandleDeleteRepoResponse>;
|
|
89
96
|
/**
|
|
90
97
|
* Create a new git identity.
|
|
91
98
|
*/
|
|
92
99
|
createGitIdentity(): Promise<GitIdentity>;
|
|
93
100
|
/**
|
|
94
101
|
* Delete a git identity.
|
|
95
|
-
*
|
|
96
|
-
* @param identityId The ID of the identity to delete.
|
|
97
102
|
*/
|
|
98
|
-
deleteGitIdentity(identityId
|
|
103
|
+
deleteGitIdentity({ identityId, }: {
|
|
104
|
+
identityId: string;
|
|
105
|
+
}): Promise<HandleDeleteIdentityResponse>;
|
|
99
106
|
/**
|
|
100
107
|
* Grant a git identity access to a repository.
|
|
101
|
-
*
|
|
102
|
-
* @param repoId The ID of the repository to grant access to.
|
|
103
|
-
* @param identityId The ID of the identity grant access to `repoId`.
|
|
104
|
-
* @param permission The permission to grant.
|
|
105
108
|
*/
|
|
106
|
-
grantGitPermission(repoId
|
|
109
|
+
grantGitPermission({ repoId, identityId, permission, }: {
|
|
110
|
+
repoId: string;
|
|
111
|
+
identityId: string;
|
|
112
|
+
permission: AccessLevel;
|
|
113
|
+
}): Promise<HandleGrantPermissionResponse>;
|
|
107
114
|
/**
|
|
108
115
|
* Update a git identity's permissions on a repository.
|
|
109
|
-
*
|
|
110
|
-
* @param repoId The ID of the repository to update permissions for.
|
|
111
|
-
* @param identityId The ID of the identity to whose access to update.
|
|
112
|
-
* @param permission The permission to grant.
|
|
113
116
|
*/
|
|
114
|
-
updateGitPermission(repoId
|
|
117
|
+
updateGitPermission({ repoId, identityId, permission, }: {
|
|
118
|
+
repoId: string;
|
|
119
|
+
identityId: string;
|
|
120
|
+
permission: AccessLevel;
|
|
121
|
+
}): Promise<void>;
|
|
115
122
|
/**
|
|
116
123
|
* Revoke a git identity's access to a repository.
|
|
117
|
-
*
|
|
118
|
-
* @param repoId The ID of the repository revoke access to.
|
|
119
|
-
* @param identityId The ID of the identity to revoke access from.
|
|
120
124
|
*/
|
|
121
|
-
revokeGitPermission(repoId
|
|
125
|
+
revokeGitPermission({ repoId, identityId, }: {
|
|
126
|
+
repoId: string;
|
|
127
|
+
identityId: string;
|
|
128
|
+
}): Promise<void>;
|
|
122
129
|
/**
|
|
123
130
|
* List access permissions for a git identity.
|
|
124
|
-
*
|
|
125
|
-
* @param identityId The ID of the identity to list permissions for.
|
|
126
131
|
*/
|
|
127
|
-
listGitPermissions(identityId
|
|
132
|
+
listGitPermissions({ identityId, }: {
|
|
133
|
+
identityId: string;
|
|
134
|
+
}): Promise<ListPermissionResponseSuccess>;
|
|
128
135
|
/**
|
|
129
136
|
* Get the permission of a git identity on a repository.
|
|
130
|
-
*
|
|
131
|
-
* @param repoId The ID of the repository to check permissions for.
|
|
132
|
-
* @param identityId The ID of the identity to check permissions for.
|
|
133
137
|
*/
|
|
134
|
-
getGitPermission(repoId
|
|
138
|
+
getGitPermission({ repoId, identityId, }: {
|
|
139
|
+
repoId: string;
|
|
140
|
+
identityId: string;
|
|
141
|
+
}): Promise<DescribePermissionResponseSuccess>;
|
|
135
142
|
/**
|
|
136
143
|
* Create a new git access token for an identity.
|
|
137
|
-
*
|
|
138
|
-
* @param identityId The ID of the identity to create the token for.
|
|
139
144
|
*/
|
|
140
|
-
createGitAccessToken(identityId
|
|
145
|
+
createGitAccessToken({ identityId, }: {
|
|
146
|
+
identityId: string;
|
|
147
|
+
}): Promise<CreatedToken>;
|
|
141
148
|
/**
|
|
142
149
|
* Revoke a git access token.
|
|
143
|
-
*
|
|
144
|
-
* @param identityId The ID of the identity the token belongs to.
|
|
145
|
-
* @param tokenId The ID of the token to revoke.
|
|
146
150
|
*/
|
|
147
|
-
revokeGitAccessToken(identityId
|
|
151
|
+
revokeGitAccessToken({ identityId, tokenId, }: {
|
|
152
|
+
identityId: string;
|
|
153
|
+
tokenId: string;
|
|
154
|
+
}): Promise<void>;
|
|
148
155
|
/**
|
|
149
156
|
* List git access tokens for an identity.
|
|
150
|
-
*
|
|
151
|
-
* @param identityId The ID of the identity to list tokens for.
|
|
152
157
|
*/
|
|
153
|
-
listGitAccessTokens(identityId
|
|
158
|
+
listGitAccessTokens({ identityId, }: {
|
|
159
|
+
identityId: string;
|
|
160
|
+
}): Promise<ListGitTokensResponseSuccess>;
|
|
161
|
+
/**
|
|
162
|
+
* List git triggers for a repository.
|
|
163
|
+
*/
|
|
164
|
+
listGitTriggers({ repoId, }: {
|
|
165
|
+
repoId: string;
|
|
166
|
+
}): Promise<HandleListGitTriggersResponse>;
|
|
167
|
+
/**
|
|
168
|
+
* Create a git trigger for a repository.
|
|
169
|
+
*/
|
|
170
|
+
createGitTrigger({ repoId, trigger, action, }: {
|
|
171
|
+
repoId: string;
|
|
172
|
+
trigger: GitTrigger;
|
|
173
|
+
action: GitTriggerAction;
|
|
174
|
+
}): Promise<HandleCreateGitTriggerResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* Delete a git trigger.
|
|
177
|
+
*/
|
|
178
|
+
deleteGitTrigger({ triggerId }: {
|
|
179
|
+
triggerId: string;
|
|
180
|
+
}): Promise<void>;
|
|
154
181
|
}
|
|
155
182
|
|
|
156
|
-
export { AccessLevel, BuildOptions, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
183
|
+
export { AccessLevel, BuildOptions, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|