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/index.d.mts
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -145,6 +145,24 @@ const handleDeleteRepo = (options) => {
|
|
|
145
145
|
url: "/git/v1/repo/{repo}"
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
|
+
const handleListGitTriggers = (options) => {
|
|
149
|
+
return (options?.client ?? client).get({
|
|
150
|
+
...options,
|
|
151
|
+
url: "/git/v1/repo/{repo}/trigger"
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
const handleCreateGitTrigger = (options) => {
|
|
155
|
+
return (options?.client ?? client).post({
|
|
156
|
+
...options,
|
|
157
|
+
url: "/git/v1/repo/{repo}/trigger"
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
const handleDeleteGitTrigger = (options) => {
|
|
161
|
+
return (options?.client ?? client).delete({
|
|
162
|
+
...options,
|
|
163
|
+
url: "/git/v1/repo/{repo}/trigger/{trigger}"
|
|
164
|
+
});
|
|
165
|
+
};
|
|
148
166
|
const handleGetLogs = (options) => {
|
|
149
167
|
return (options?.client ?? client).get({
|
|
150
168
|
...options,
|
|
@@ -427,14 +445,18 @@ ${response.error.message}`);
|
|
|
427
445
|
}
|
|
428
446
|
/**
|
|
429
447
|
* Create a new git repository.
|
|
430
|
-
*
|
|
431
|
-
* @param name The name of the repository.
|
|
432
448
|
*/
|
|
433
|
-
async createGitRepository(
|
|
449
|
+
async createGitRepository({
|
|
450
|
+
name,
|
|
451
|
+
public: pub = false,
|
|
452
|
+
source
|
|
453
|
+
}) {
|
|
434
454
|
const response = await handleCreateRepo({
|
|
435
455
|
client: this.client,
|
|
436
456
|
body: {
|
|
437
|
-
name
|
|
457
|
+
name,
|
|
458
|
+
public: pub,
|
|
459
|
+
source
|
|
438
460
|
}
|
|
439
461
|
});
|
|
440
462
|
if (response.data) {
|
|
@@ -446,16 +468,16 @@ ${response.error.message}`);
|
|
|
446
468
|
}
|
|
447
469
|
/**
|
|
448
470
|
* List git repositories.
|
|
449
|
-
*
|
|
450
|
-
* @param limit The maximum number of repositories to return. Defaults to 10.
|
|
451
|
-
* @param offset The offset to start at. Defaults to 0.
|
|
452
471
|
*/
|
|
453
|
-
async listGitRepositories(
|
|
472
|
+
async listGitRepositories({
|
|
473
|
+
limit = 10,
|
|
474
|
+
offset = 0
|
|
475
|
+
} = {}) {
|
|
454
476
|
const response = await handleListRepositories({
|
|
455
477
|
client: this.client,
|
|
456
478
|
query: {
|
|
457
|
-
limit
|
|
458
|
-
offset
|
|
479
|
+
limit,
|
|
480
|
+
offset
|
|
459
481
|
}
|
|
460
482
|
});
|
|
461
483
|
if (response.data) {
|
|
@@ -465,21 +487,21 @@ ${response.error.message}`);
|
|
|
465
487
|
}
|
|
466
488
|
/**
|
|
467
489
|
* Delete a git repository.
|
|
468
|
-
*
|
|
469
|
-
* @param repositoryId The ID of the repository to delete.
|
|
470
490
|
*/
|
|
471
|
-
async deleteGitRepository(
|
|
491
|
+
async deleteGitRepository({
|
|
492
|
+
repoId
|
|
493
|
+
}) {
|
|
472
494
|
const response = await handleDeleteRepo({
|
|
473
495
|
client: this.client,
|
|
474
496
|
path: {
|
|
475
|
-
repo:
|
|
497
|
+
repo: repoId
|
|
476
498
|
}
|
|
477
499
|
});
|
|
478
500
|
if (response.data) {
|
|
479
501
|
return response.data;
|
|
480
502
|
}
|
|
481
503
|
throw new Error(
|
|
482
|
-
`Failed to delete git repository ${
|
|
504
|
+
`Failed to delete git repository ${repoId}: ${response.error}`
|
|
483
505
|
);
|
|
484
506
|
}
|
|
485
507
|
/**
|
|
@@ -496,10 +518,10 @@ ${response.error.message}`);
|
|
|
496
518
|
}
|
|
497
519
|
/**
|
|
498
520
|
* Delete a git identity.
|
|
499
|
-
*
|
|
500
|
-
* @param identityId The ID of the identity to delete.
|
|
501
521
|
*/
|
|
502
|
-
async deleteGitIdentity(
|
|
522
|
+
async deleteGitIdentity({
|
|
523
|
+
identityId
|
|
524
|
+
}) {
|
|
503
525
|
const response = await handleDeleteIdentity({
|
|
504
526
|
client: this.client,
|
|
505
527
|
path: {
|
|
@@ -513,12 +535,12 @@ ${response.error.message}`);
|
|
|
513
535
|
}
|
|
514
536
|
/**
|
|
515
537
|
* Grant a git identity access to a repository.
|
|
516
|
-
*
|
|
517
|
-
* @param repoId The ID of the repository to grant access to.
|
|
518
|
-
* @param identityId The ID of the identity grant access to `repoId`.
|
|
519
|
-
* @param permission The permission to grant.
|
|
520
538
|
*/
|
|
521
|
-
async grantGitPermission(
|
|
539
|
+
async grantGitPermission({
|
|
540
|
+
repoId,
|
|
541
|
+
identityId,
|
|
542
|
+
permission
|
|
543
|
+
}) {
|
|
522
544
|
const response = await handleGrantPermission({
|
|
523
545
|
client: this.client,
|
|
524
546
|
path: {
|
|
@@ -538,12 +560,12 @@ ${response.error.message}`);
|
|
|
538
560
|
}
|
|
539
561
|
/**
|
|
540
562
|
* Update a git identity's permissions on a repository.
|
|
541
|
-
*
|
|
542
|
-
* @param repoId The ID of the repository to update permissions for.
|
|
543
|
-
* @param identityId The ID of the identity to whose access to update.
|
|
544
|
-
* @param permission The permission to grant.
|
|
545
563
|
*/
|
|
546
|
-
async updateGitPermission(
|
|
564
|
+
async updateGitPermission({
|
|
565
|
+
repoId,
|
|
566
|
+
identityId,
|
|
567
|
+
permission
|
|
568
|
+
}) {
|
|
547
569
|
const response = await handleUpdatePermission({
|
|
548
570
|
client: this.client,
|
|
549
571
|
path: {
|
|
@@ -563,11 +585,11 @@ ${response.error.message}`);
|
|
|
563
585
|
}
|
|
564
586
|
/**
|
|
565
587
|
* Revoke a git identity's access to a repository.
|
|
566
|
-
*
|
|
567
|
-
* @param repoId The ID of the repository revoke access to.
|
|
568
|
-
* @param identityId The ID of the identity to revoke access from.
|
|
569
588
|
*/
|
|
570
|
-
async revokeGitPermission(
|
|
589
|
+
async revokeGitPermission({
|
|
590
|
+
repoId,
|
|
591
|
+
identityId
|
|
592
|
+
}) {
|
|
571
593
|
const response = await handleRevokePermission({
|
|
572
594
|
client: this.client,
|
|
573
595
|
path: {
|
|
@@ -584,10 +606,10 @@ ${response.error.message}`);
|
|
|
584
606
|
}
|
|
585
607
|
/**
|
|
586
608
|
* List access permissions for a git identity.
|
|
587
|
-
*
|
|
588
|
-
* @param identityId The ID of the identity to list permissions for.
|
|
589
609
|
*/
|
|
590
|
-
async listGitPermissions(
|
|
610
|
+
async listGitPermissions({
|
|
611
|
+
identityId
|
|
612
|
+
}) {
|
|
591
613
|
const response = await handleListPermissions({
|
|
592
614
|
client: this.client,
|
|
593
615
|
path: {
|
|
@@ -603,11 +625,11 @@ ${response.error.message}`);
|
|
|
603
625
|
}
|
|
604
626
|
/**
|
|
605
627
|
* Get the permission of a git identity on a repository.
|
|
606
|
-
*
|
|
607
|
-
* @param repoId The ID of the repository to check permissions for.
|
|
608
|
-
* @param identityId The ID of the identity to check permissions for.
|
|
609
628
|
*/
|
|
610
|
-
async getGitPermission(
|
|
629
|
+
async getGitPermission({
|
|
630
|
+
repoId,
|
|
631
|
+
identityId
|
|
632
|
+
}) {
|
|
611
633
|
const response = await handleDescribePermission({
|
|
612
634
|
client: this.client,
|
|
613
635
|
path: {
|
|
@@ -624,10 +646,10 @@ ${response.error.message}`);
|
|
|
624
646
|
}
|
|
625
647
|
/**
|
|
626
648
|
* Create a new git access token for an identity.
|
|
627
|
-
*
|
|
628
|
-
* @param identityId The ID of the identity to create the token for.
|
|
629
649
|
*/
|
|
630
|
-
async createGitAccessToken(
|
|
650
|
+
async createGitAccessToken({
|
|
651
|
+
identityId
|
|
652
|
+
}) {
|
|
631
653
|
const response = await handleCreateGitToken({
|
|
632
654
|
client: this.client,
|
|
633
655
|
path: {
|
|
@@ -643,11 +665,11 @@ ${response.error.message}`);
|
|
|
643
665
|
}
|
|
644
666
|
/**
|
|
645
667
|
* Revoke a git access token.
|
|
646
|
-
*
|
|
647
|
-
* @param identityId The ID of the identity the token belongs to.
|
|
648
|
-
* @param tokenId The ID of the token to revoke.
|
|
649
668
|
*/
|
|
650
|
-
async revokeGitAccessToken(
|
|
669
|
+
async revokeGitAccessToken({
|
|
670
|
+
identityId,
|
|
671
|
+
tokenId
|
|
672
|
+
}) {
|
|
651
673
|
const response = await handleRevokeGitToken({
|
|
652
674
|
client: this.client,
|
|
653
675
|
body: {
|
|
@@ -666,10 +688,10 @@ ${response.error.message}`);
|
|
|
666
688
|
}
|
|
667
689
|
/**
|
|
668
690
|
* List git access tokens for an identity.
|
|
669
|
-
*
|
|
670
|
-
* @param identityId The ID of the identity to list tokens for.
|
|
671
691
|
*/
|
|
672
|
-
async listGitAccessTokens(
|
|
692
|
+
async listGitAccessTokens({
|
|
693
|
+
identityId
|
|
694
|
+
}) {
|
|
673
695
|
const response = await handleListGitTokens({
|
|
674
696
|
client: this.client,
|
|
675
697
|
path: {
|
|
@@ -683,6 +705,67 @@ ${response.error.message}`);
|
|
|
683
705
|
`Failed to list git access tokens: ${response.error.message}`
|
|
684
706
|
);
|
|
685
707
|
}
|
|
708
|
+
/**
|
|
709
|
+
* List git triggers for a repository.
|
|
710
|
+
*/
|
|
711
|
+
async listGitTriggers({
|
|
712
|
+
repoId
|
|
713
|
+
}) {
|
|
714
|
+
const response = await handleListGitTriggers({
|
|
715
|
+
client: this.client,
|
|
716
|
+
path: {
|
|
717
|
+
repo: repoId
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
if (response.data) {
|
|
721
|
+
return response.data;
|
|
722
|
+
}
|
|
723
|
+
throw new Error(
|
|
724
|
+
`Failed to list git triggers for repository ${repoId}: ${response.error.message}`
|
|
725
|
+
);
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Create a git trigger for a repository.
|
|
729
|
+
*/
|
|
730
|
+
async createGitTrigger({
|
|
731
|
+
repoId,
|
|
732
|
+
trigger,
|
|
733
|
+
action
|
|
734
|
+
}) {
|
|
735
|
+
const response = await handleCreateGitTrigger({
|
|
736
|
+
client: this.client,
|
|
737
|
+
path: {
|
|
738
|
+
repo: repoId
|
|
739
|
+
},
|
|
740
|
+
body: {
|
|
741
|
+
trigger,
|
|
742
|
+
action
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
if (response.data) {
|
|
746
|
+
return response.data;
|
|
747
|
+
}
|
|
748
|
+
throw new Error(
|
|
749
|
+
`Failed to create git trigger for repository ${repoId}: ${response.error.message}`
|
|
750
|
+
);
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Delete a git trigger.
|
|
754
|
+
*/
|
|
755
|
+
async deleteGitTrigger({ triggerId }) {
|
|
756
|
+
const response = await handleDeleteGitTrigger({
|
|
757
|
+
client: this.client,
|
|
758
|
+
path: {
|
|
759
|
+
trigger: triggerId
|
|
760
|
+
}
|
|
761
|
+
});
|
|
762
|
+
if (response.data) {
|
|
763
|
+
return;
|
|
764
|
+
}
|
|
765
|
+
throw new Error(
|
|
766
|
+
`Failed to delete git trigger ${triggerId}: ${response.error.message}`
|
|
767
|
+
);
|
|
768
|
+
}
|
|
686
769
|
}
|
|
687
770
|
|
|
688
771
|
export { FreestyleSandboxes };
|
package/dist/mastra/index.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
|
|
|
5
5
|
import { EventEmitter } from 'events';
|
|
6
6
|
import { ServerResponse, IncomingMessage } from 'http';
|
|
7
7
|
import { WorkerOptions } from 'worker_threads';
|
|
8
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
8
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-BJArgpto.js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
|
|
11
11
|
// Type definitions for pino-std-serializers 2.4
|
package/dist/mastra/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
|
|
|
5
5
|
import { EventEmitter } from 'events';
|
|
6
6
|
import { ServerResponse, IncomingMessage } from 'http';
|
|
7
7
|
import { WorkerOptions } from 'worker_threads';
|
|
8
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
8
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-BJArgpto.js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
|
|
11
11
|
// Type definitions for pino-std-serializers 2.4
|