@meetkai/mka1 0.54.2 → 0.54.3
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/README.md +281 -275
- package/bin/mcp-server.js +510 -61
- package/bin/mcp-server.js.map +18 -8
- package/dist/commonjs/funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts +18 -0
- package/dist/commonjs/funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js +140 -0
- package/dist/commonjs/funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js.map +1 -0
- package/dist/commonjs/funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts +18 -0
- package/dist/commonjs/funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js +138 -0
- package/dist/commonjs/funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js +63 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js +63 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js.map +1 -0
- package/dist/commonjs/models/components/githubpullrequestrequest.d.ts +34 -0
- package/dist/commonjs/models/components/githubpullrequestrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/githubpullrequestrequest.js +66 -0
- package/dist/commonjs/models/components/githubpullrequestrequest.js.map +1 -0
- package/dist/commonjs/models/components/githubpullrequestresult.d.ts +37 -0
- package/dist/commonjs/models/components/githubpullrequestresult.d.ts.map +1 -0
- package/dist/commonjs/models/components/githubpullrequestresult.js +93 -0
- package/dist/commonjs/models/components/githubpullrequestresult.js.map +1 -0
- package/dist/commonjs/models/components/githubpushrequest.d.ts +35 -0
- package/dist/commonjs/models/components/githubpushrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/githubpushrequest.js +75 -0
- package/dist/commonjs/models/components/githubpushrequest.js.map +1 -0
- package/dist/commonjs/models/components/githubpushresult.d.ts +31 -0
- package/dist/commonjs/models/components/githubpushresult.d.ts.map +1 -0
- package/dist/commonjs/models/components/githubpushresult.js +89 -0
- package/dist/commonjs/models/components/githubpushresult.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.d.ts +25 -0
- package/dist/commonjs/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.js +78 -0
- package/dist/commonjs/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/pushapiv1sandboxsessionssessionidgithubpushpost.d.ts +25 -0
- package/dist/commonjs/models/operations/pushapiv1sandboxsessionssessionidgithubpushpost.d.ts.map +1 -0
- package/dist/commonjs/models/operations/pushapiv1sandboxsessionssessionidgithubpushpost.js +77 -0
- package/dist/commonjs/models/operations/pushapiv1sandboxsessionssessionidgithubpushpost.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts +27 -0
- package/dist/commonjs/react-query/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js +48 -0
- package/dist/commonjs/react-query/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js.map +1 -0
- package/dist/commonjs/react-query/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts +27 -0
- package/dist/commonjs/react-query/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js +48 -0
- package/dist/commonjs/react-query/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js.map +1 -0
- package/dist/commonjs/sdk/schema3other.d.ts +8 -0
- package/dist/commonjs/sdk/schema3other.d.ts.map +1 -1
- package/dist/commonjs/sdk/schema3other.js +14 -0
- package/dist/commonjs/sdk/schema3other.js.map +1 -1
- package/dist/esm/funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts +18 -0
- package/dist/esm/funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js +104 -0
- package/dist/esm/funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js.map +1 -0
- package/dist/esm/funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts +18 -0
- package/dist/esm/funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js +102 -0
- package/dist/esm/funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js +27 -0
- package/dist/esm/mcp-server/tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js +27 -0
- package/dist/esm/mcp-server/tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js.map +1 -0
- package/dist/esm/models/components/githubpullrequestrequest.d.ts +34 -0
- package/dist/esm/models/components/githubpullrequestrequest.d.ts.map +1 -0
- package/dist/esm/models/components/githubpullrequestrequest.js +28 -0
- package/dist/esm/models/components/githubpullrequestrequest.js.map +1 -0
- package/dist/esm/models/components/githubpullrequestresult.d.ts +37 -0
- package/dist/esm/models/components/githubpullrequestresult.d.ts.map +1 -0
- package/dist/esm/models/components/githubpullrequestresult.js +55 -0
- package/dist/esm/models/components/githubpullrequestresult.js.map +1 -0
- package/dist/esm/models/components/githubpushrequest.d.ts +35 -0
- package/dist/esm/models/components/githubpushrequest.d.ts.map +1 -0
- package/dist/esm/models/components/githubpushrequest.js +37 -0
- package/dist/esm/models/components/githubpushrequest.js.map +1 -0
- package/dist/esm/models/components/githubpushresult.d.ts +31 -0
- package/dist/esm/models/components/githubpushresult.d.ts.map +1 -0
- package/dist/esm/models/components/githubpushresult.js +51 -0
- package/dist/esm/models/components/githubpushresult.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.d.ts +25 -0
- package/dist/esm/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.d.ts.map +1 -0
- package/dist/esm/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.js +40 -0
- package/dist/esm/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/pushapiv1sandboxsessionssessionidgithubpushpost.d.ts +25 -0
- package/dist/esm/models/operations/pushapiv1sandboxsessionssessionidgithubpushpost.d.ts.map +1 -0
- package/dist/esm/models/operations/pushapiv1sandboxsessionssessionidgithubpushpost.js +39 -0
- package/dist/esm/models/operations/pushapiv1sandboxsessionssessionidgithubpushpost.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts +27 -0
- package/dist/esm/react-query/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js +43 -0
- package/dist/esm/react-query/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js.map +1 -0
- package/dist/esm/react-query/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts +27 -0
- package/dist/esm/react-query/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js +43 -0
- package/dist/esm/react-query/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js.map +1 -0
- package/dist/esm/sdk/schema3other.d.ts +8 -0
- package/dist/esm/sdk/schema3other.d.ts.map +1 -1
- package/dist/esm/sdk/schema3other.js +14 -0
- package/dist/esm/sdk/schema3other.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.ts +202 -0
- package/src/funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.ts +197 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.ts +40 -0
- package/src/mcp-server/tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.ts +40 -0
- package/src/models/components/githubpullrequestrequest.ts +76 -0
- package/src/models/components/githubpullrequestresult.ts +106 -0
- package/src/models/components/githubpushrequest.ts +86 -0
- package/src/models/components/githubpushresult.ts +96 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.ts +90 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/pushapiv1sandboxsessionssessionidgithubpushpost.ts +86 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.ts +129 -0
- package/src/react-query/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.ts +128 -0
- package/src/sdk/schema3other.ts +35 -0
package/src/mcp-server/server.ts
CHANGED
|
@@ -361,9 +361,13 @@ import { tool$sandboxUploadArchive } from "./tools/sandboxUploadArchive.js";
|
|
|
361
361
|
import { tool$sandboxUploadFile } from "./tools/sandboxUploadFile.js";
|
|
362
362
|
import { tool$schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost } from "./tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js";
|
|
363
363
|
import { tool$schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost } from "./tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js";
|
|
364
|
+
import {
|
|
365
|
+
tool$schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost,
|
|
366
|
+
} from "./tools/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js";
|
|
364
367
|
import { tool$schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete } from "./tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js";
|
|
365
368
|
import { tool$schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet } from "./tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js";
|
|
366
369
|
import { tool$schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet } from "./tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js";
|
|
370
|
+
import { tool$schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost } from "./tools/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js";
|
|
367
371
|
import { tool$schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost } from "./tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js";
|
|
368
372
|
import { tool$schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost } from "./tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js";
|
|
369
373
|
import { tool$schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost } from "./tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js";
|
|
@@ -380,7 +384,7 @@ export function createMCPServer(deps: {
|
|
|
380
384
|
}) {
|
|
381
385
|
const server = new McpServer({
|
|
382
386
|
name: "SDK",
|
|
383
|
-
version: "0.54.
|
|
387
|
+
version: "0.54.3",
|
|
384
388
|
});
|
|
385
389
|
|
|
386
390
|
const client = new SDKCore({
|
|
@@ -429,6 +433,10 @@ export function createMCPServer(deps: {
|
|
|
429
433
|
tool(
|
|
430
434
|
tool$schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost,
|
|
431
435
|
);
|
|
436
|
+
tool(tool$schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost);
|
|
437
|
+
tool(
|
|
438
|
+
tool$schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost,
|
|
439
|
+
);
|
|
432
440
|
tool(tool$sandboxCreate);
|
|
433
441
|
tool(tool$sandboxList);
|
|
434
442
|
tool(tool$sandboxGet);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost } from "../../funcs/schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations
|
|
12
|
+
.CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest$inboundSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name:
|
|
18
|
+
"schema-3-other-create-or-update-api-v1-sandbox-sessions-session-id-github-pull-request-post",
|
|
19
|
+
description: `Create Or Update`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] =
|
|
23
|
+
await schema3OtherCreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPost(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const value = result.value;
|
|
37
|
+
|
|
38
|
+
return formatResult(value, apiCall);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost } from "../../funcs/schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations
|
|
12
|
+
.PushApiV1SandboxSessionsSessionIdGithubPushPostRequest$inboundSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name:
|
|
18
|
+
"schema-3-other-push-api-v1-sandbox-sessions-session-id-github-push-post",
|
|
19
|
+
description: `Push`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] =
|
|
23
|
+
await schema3OtherPushApiV1SandboxSessionsSessionIdGithubPushPost(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const value = result.value;
|
|
37
|
+
|
|
38
|
+
return formatResult(value, apiCall);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Public operation request.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*
|
|
15
|
+
* It deliberately has no repository field: the repository is the session's
|
|
16
|
+
* clone binding. The head branch is the caller's — the branch the agent
|
|
17
|
+
* pushed.
|
|
18
|
+
*/
|
|
19
|
+
export type GitHubPullRequestRequest = {
|
|
20
|
+
branch: string;
|
|
21
|
+
title: string;
|
|
22
|
+
body?: string | undefined;
|
|
23
|
+
base?: string | null | undefined;
|
|
24
|
+
draft?: boolean | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const GitHubPullRequestRequest$inboundSchema: z.ZodType<
|
|
29
|
+
GitHubPullRequestRequest,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
branch: z.string(),
|
|
34
|
+
title: z.string(),
|
|
35
|
+
body: z.string().default(""),
|
|
36
|
+
base: z.nullable(z.string()).optional(),
|
|
37
|
+
draft: z.boolean().default(false),
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type GitHubPullRequestRequest$Outbound = {
|
|
41
|
+
branch: string;
|
|
42
|
+
title: string;
|
|
43
|
+
body: string;
|
|
44
|
+
base?: string | null | undefined;
|
|
45
|
+
draft: boolean;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const GitHubPullRequestRequest$outboundSchema: z.ZodType<
|
|
50
|
+
GitHubPullRequestRequest$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
GitHubPullRequestRequest
|
|
53
|
+
> = z.object({
|
|
54
|
+
branch: z.string(),
|
|
55
|
+
title: z.string(),
|
|
56
|
+
body: z.string().default(""),
|
|
57
|
+
base: z.nullable(z.string()).optional(),
|
|
58
|
+
draft: z.boolean().default(false),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function gitHubPullRequestRequestToJSON(
|
|
62
|
+
gitHubPullRequestRequest: GitHubPullRequestRequest,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
GitHubPullRequestRequest$outboundSchema.parse(gitHubPullRequestRequest),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
export function gitHubPullRequestRequestFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<GitHubPullRequestRequest, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => GitHubPullRequestRequest$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'GitHubPullRequestRequest' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GitHubPullRequestResult = {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
repositoryId: number;
|
|
14
|
+
owner: string;
|
|
15
|
+
repository: string;
|
|
16
|
+
number: number;
|
|
17
|
+
url: string;
|
|
18
|
+
state: string;
|
|
19
|
+
draft: boolean;
|
|
20
|
+
headBranch: string;
|
|
21
|
+
baseBranch: string | null;
|
|
22
|
+
created: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const GitHubPullRequestResult$inboundSchema: z.ZodType<
|
|
27
|
+
GitHubPullRequestResult,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
session_id: z.string(),
|
|
32
|
+
repository_id: z.number().int(),
|
|
33
|
+
owner: z.string(),
|
|
34
|
+
repository: z.string(),
|
|
35
|
+
number: z.number().int(),
|
|
36
|
+
url: z.string(),
|
|
37
|
+
state: z.string(),
|
|
38
|
+
draft: z.boolean(),
|
|
39
|
+
head_branch: z.string(),
|
|
40
|
+
base_branch: z.nullable(z.string()),
|
|
41
|
+
created: z.boolean(),
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
"session_id": "sessionId",
|
|
45
|
+
"repository_id": "repositoryId",
|
|
46
|
+
"head_branch": "headBranch",
|
|
47
|
+
"base_branch": "baseBranch",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type GitHubPullRequestResult$Outbound = {
|
|
52
|
+
session_id: string;
|
|
53
|
+
repository_id: number;
|
|
54
|
+
owner: string;
|
|
55
|
+
repository: string;
|
|
56
|
+
number: number;
|
|
57
|
+
url: string;
|
|
58
|
+
state: string;
|
|
59
|
+
draft: boolean;
|
|
60
|
+
head_branch: string;
|
|
61
|
+
base_branch: string | null;
|
|
62
|
+
created: boolean;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const GitHubPullRequestResult$outboundSchema: z.ZodType<
|
|
67
|
+
GitHubPullRequestResult$Outbound,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
GitHubPullRequestResult
|
|
70
|
+
> = z.object({
|
|
71
|
+
sessionId: z.string(),
|
|
72
|
+
repositoryId: z.number().int(),
|
|
73
|
+
owner: z.string(),
|
|
74
|
+
repository: z.string(),
|
|
75
|
+
number: z.number().int(),
|
|
76
|
+
url: z.string(),
|
|
77
|
+
state: z.string(),
|
|
78
|
+
draft: z.boolean(),
|
|
79
|
+
headBranch: z.string(),
|
|
80
|
+
baseBranch: z.nullable(z.string()),
|
|
81
|
+
created: z.boolean(),
|
|
82
|
+
}).transform((v) => {
|
|
83
|
+
return remap$(v, {
|
|
84
|
+
sessionId: "session_id",
|
|
85
|
+
repositoryId: "repository_id",
|
|
86
|
+
headBranch: "head_branch",
|
|
87
|
+
baseBranch: "base_branch",
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export function gitHubPullRequestResultToJSON(
|
|
92
|
+
gitHubPullRequestResult: GitHubPullRequestResult,
|
|
93
|
+
): string {
|
|
94
|
+
return JSON.stringify(
|
|
95
|
+
GitHubPullRequestResult$outboundSchema.parse(gitHubPullRequestResult),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
export function gitHubPullRequestResultFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<GitHubPullRequestResult, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => GitHubPullRequestResult$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'GitHubPullRequestResult' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Public operation request.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
*
|
|
16
|
+
* It deliberately has no credential or repository field: the credential is
|
|
17
|
+
* the caller's stored connection, and the repository is the session's clone
|
|
18
|
+
* binding. ``checkout_path`` names where the repository root sits inside
|
|
19
|
+
* the workspace (empty = the workspace root), because the caller — the
|
|
20
|
+
* agent working in the checkout — knows the layout and the server must not
|
|
21
|
+
* guess it.
|
|
22
|
+
*/
|
|
23
|
+
export type GitHubPushRequest = {
|
|
24
|
+
assignmentGeneration: number;
|
|
25
|
+
branch: string;
|
|
26
|
+
checkoutPath?: string | undefined;
|
|
27
|
+
force?: boolean | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const GitHubPushRequest$inboundSchema: z.ZodType<
|
|
32
|
+
GitHubPushRequest,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
assignment_generation: z.number().int(),
|
|
37
|
+
branch: z.string(),
|
|
38
|
+
checkout_path: z.string().default(""),
|
|
39
|
+
force: z.boolean().default(false),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"assignment_generation": "assignmentGeneration",
|
|
43
|
+
"checkout_path": "checkoutPath",
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type GitHubPushRequest$Outbound = {
|
|
48
|
+
assignment_generation: number;
|
|
49
|
+
branch: string;
|
|
50
|
+
checkout_path: string;
|
|
51
|
+
force: boolean;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const GitHubPushRequest$outboundSchema: z.ZodType<
|
|
56
|
+
GitHubPushRequest$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
GitHubPushRequest
|
|
59
|
+
> = z.object({
|
|
60
|
+
assignmentGeneration: z.number().int(),
|
|
61
|
+
branch: z.string(),
|
|
62
|
+
checkoutPath: z.string().default(""),
|
|
63
|
+
force: z.boolean().default(false),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
assignmentGeneration: "assignment_generation",
|
|
67
|
+
checkoutPath: "checkout_path",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function gitHubPushRequestToJSON(
|
|
72
|
+
gitHubPushRequest: GitHubPushRequest,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
GitHubPushRequest$outboundSchema.parse(gitHubPushRequest),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
export function gitHubPushRequestFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<GitHubPushRequest, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => GitHubPushRequest$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'GitHubPushRequest' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GitHubPushResult = {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
assignmentGeneration: number;
|
|
14
|
+
repositoryId: number;
|
|
15
|
+
owner: string;
|
|
16
|
+
repository: string;
|
|
17
|
+
branch: string;
|
|
18
|
+
remoteHeadSha: string;
|
|
19
|
+
noChanges: boolean;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const GitHubPushResult$inboundSchema: z.ZodType<
|
|
24
|
+
GitHubPushResult,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
session_id: z.string(),
|
|
29
|
+
assignment_generation: z.number().int(),
|
|
30
|
+
repository_id: z.number().int(),
|
|
31
|
+
owner: z.string(),
|
|
32
|
+
repository: z.string(),
|
|
33
|
+
branch: z.string(),
|
|
34
|
+
remote_head_sha: z.string(),
|
|
35
|
+
no_changes: z.boolean(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"session_id": "sessionId",
|
|
39
|
+
"assignment_generation": "assignmentGeneration",
|
|
40
|
+
"repository_id": "repositoryId",
|
|
41
|
+
"remote_head_sha": "remoteHeadSha",
|
|
42
|
+
"no_changes": "noChanges",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type GitHubPushResult$Outbound = {
|
|
47
|
+
session_id: string;
|
|
48
|
+
assignment_generation: number;
|
|
49
|
+
repository_id: number;
|
|
50
|
+
owner: string;
|
|
51
|
+
repository: string;
|
|
52
|
+
branch: string;
|
|
53
|
+
remote_head_sha: string;
|
|
54
|
+
no_changes: boolean;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const GitHubPushResult$outboundSchema: z.ZodType<
|
|
59
|
+
GitHubPushResult$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
GitHubPushResult
|
|
62
|
+
> = z.object({
|
|
63
|
+
sessionId: z.string(),
|
|
64
|
+
assignmentGeneration: z.number().int(),
|
|
65
|
+
repositoryId: z.number().int(),
|
|
66
|
+
owner: z.string(),
|
|
67
|
+
repository: z.string(),
|
|
68
|
+
branch: z.string(),
|
|
69
|
+
remoteHeadSha: z.string(),
|
|
70
|
+
noChanges: z.boolean(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
sessionId: "session_id",
|
|
74
|
+
assignmentGeneration: "assignment_generation",
|
|
75
|
+
repositoryId: "repository_id",
|
|
76
|
+
remoteHeadSha: "remote_head_sha",
|
|
77
|
+
noChanges: "no_changes",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export function gitHubPushResultToJSON(
|
|
82
|
+
gitHubPushResult: GitHubPushResult,
|
|
83
|
+
): string {
|
|
84
|
+
return JSON.stringify(
|
|
85
|
+
GitHubPushResult$outboundSchema.parse(gitHubPushResult),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
export function gitHubPushResultFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<GitHubPushResult, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) => GitHubPushResult$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'GitHubPushResult' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -270,6 +270,10 @@ export * from "./getexportstatusresponse.js";
|
|
|
270
270
|
export * from "./getfeedbackresponse.js";
|
|
271
271
|
export * from "./getguardrailsresponse.js";
|
|
272
272
|
export * from "./getpromptresponse.js";
|
|
273
|
+
export * from "./githubpullrequestrequest.js";
|
|
274
|
+
export * from "./githubpullrequestresult.js";
|
|
275
|
+
export * from "./githubpushrequest.js";
|
|
276
|
+
export * from "./githubpushresult.js";
|
|
273
277
|
export * from "./githubreadclonerequest.js";
|
|
274
278
|
export * from "./githubreadcloneresult.js";
|
|
275
279
|
export * from "./grammarformat.js";
|
package/src/models/operations/createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest =
|
|
13
|
+
{
|
|
14
|
+
sessionId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
17
|
+
*/
|
|
18
|
+
xOnBehalfOf?: string | undefined;
|
|
19
|
+
gitHubPullRequestRequest: components.GitHubPullRequestRequest;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest$inboundSchema:
|
|
24
|
+
z.ZodType<
|
|
25
|
+
CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
session_id: z.string(),
|
|
30
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
31
|
+
GitHubPullRequestRequest: components.GitHubPullRequestRequest$inboundSchema,
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"session_id": "sessionId",
|
|
35
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
36
|
+
"GitHubPullRequestRequest": "gitHubPullRequestRequest",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest$Outbound =
|
|
41
|
+
{
|
|
42
|
+
session_id: string;
|
|
43
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
44
|
+
GitHubPullRequestRequest: components.GitHubPullRequestRequest$Outbound;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest$outboundSchema:
|
|
49
|
+
z.ZodType<
|
|
50
|
+
CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest
|
|
53
|
+
> = z.object({
|
|
54
|
+
sessionId: z.string(),
|
|
55
|
+
xOnBehalfOf: z.string().optional(),
|
|
56
|
+
gitHubPullRequestRequest:
|
|
57
|
+
components.GitHubPullRequestRequest$outboundSchema,
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
sessionId: "session_id",
|
|
61
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
62
|
+
gitHubPullRequestRequest: "GitHubPullRequestRequest",
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export function createOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequestToJSON(
|
|
67
|
+
createOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest:
|
|
68
|
+
CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest$outboundSchema
|
|
72
|
+
.parse(
|
|
73
|
+
createOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest,
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
export function createOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequestFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<
|
|
80
|
+
CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest,
|
|
81
|
+
SDKValidationError
|
|
82
|
+
> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) =>
|
|
86
|
+
CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest$inboundSchema
|
|
87
|
+
.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'CreateOrUpdateApiV1SandboxSessionsSessionIdGithubPullRequestPostRequest' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -52,6 +52,7 @@ export * from "./createmcpcredential.js";
|
|
|
52
52
|
export * from "./createmcpserver.js";
|
|
53
53
|
export * from "./creatememoryentry.js";
|
|
54
54
|
export * from "./creatememorystore.js";
|
|
55
|
+
export * from "./createorupdateapiv1sandboxsessionssessionidgithubpullrequestpost.js";
|
|
55
56
|
export * from "./createprompt.js";
|
|
56
57
|
export * from "./createpromptversion.js";
|
|
57
58
|
export * from "./createrepo.js";
|
|
@@ -277,6 +278,7 @@ export * from "./patchrepo.js";
|
|
|
277
278
|
export * from "./pauseagentschedule.js";
|
|
278
279
|
export * from "./pausefinetuningjob.js";
|
|
279
280
|
export * from "./proxybrowserportrequest.js";
|
|
281
|
+
export * from "./pushapiv1sandboxsessionssessionidgithubpushpost.js";
|
|
280
282
|
export * from "./putcomputetenant.js";
|
|
281
283
|
export * from "./putorgautomodel.js";
|
|
282
284
|
export * from "./readcloneapiv1sandboxsessionssessionidgithubreadclonepost.js";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type PushApiV1SandboxSessionsSessionIdGithubPushPostRequest = {
|
|
13
|
+
sessionId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
16
|
+
*/
|
|
17
|
+
xOnBehalfOf?: string | undefined;
|
|
18
|
+
gitHubPushRequest: components.GitHubPushRequest;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const PushApiV1SandboxSessionsSessionIdGithubPushPostRequest$inboundSchema:
|
|
23
|
+
z.ZodType<
|
|
24
|
+
PushApiV1SandboxSessionsSessionIdGithubPushPostRequest,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
session_id: z.string(),
|
|
29
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
30
|
+
GitHubPushRequest: components.GitHubPushRequest$inboundSchema,
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"session_id": "sessionId",
|
|
34
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
35
|
+
"GitHubPushRequest": "gitHubPushRequest",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type PushApiV1SandboxSessionsSessionIdGithubPushPostRequest$Outbound = {
|
|
40
|
+
session_id: string;
|
|
41
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
42
|
+
GitHubPushRequest: components.GitHubPushRequest$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PushApiV1SandboxSessionsSessionIdGithubPushPostRequest$outboundSchema:
|
|
47
|
+
z.ZodType<
|
|
48
|
+
PushApiV1SandboxSessionsSessionIdGithubPushPostRequest$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
PushApiV1SandboxSessionsSessionIdGithubPushPostRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
sessionId: z.string(),
|
|
53
|
+
xOnBehalfOf: z.string().optional(),
|
|
54
|
+
gitHubPushRequest: components.GitHubPushRequest$outboundSchema,
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
sessionId: "session_id",
|
|
58
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
59
|
+
gitHubPushRequest: "GitHubPushRequest",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function pushApiV1SandboxSessionsSessionIdGithubPushPostRequestToJSON(
|
|
64
|
+
pushApiV1SandboxSessionsSessionIdGithubPushPostRequest:
|
|
65
|
+
PushApiV1SandboxSessionsSessionIdGithubPushPostRequest,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
PushApiV1SandboxSessionsSessionIdGithubPushPostRequest$outboundSchema.parse(
|
|
69
|
+
pushApiV1SandboxSessionsSessionIdGithubPushPostRequest,
|
|
70
|
+
),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
export function pushApiV1SandboxSessionsSessionIdGithubPushPostRequestFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<
|
|
76
|
+
PushApiV1SandboxSessionsSessionIdGithubPushPostRequest,
|
|
77
|
+
SDKValidationError
|
|
78
|
+
> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) =>
|
|
82
|
+
PushApiV1SandboxSessionsSessionIdGithubPushPostRequest$inboundSchema
|
|
83
|
+
.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'PushApiV1SandboxSessionsSessionIdGithubPushPostRequest' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|