@meetkai/mka1 0.53.18 → 0.53.20
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 +232 -226
- package/bin/mcp-server.js +357 -27
- package/bin/mcp-server.js.map +22 -13
- package/dist/commonjs/funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts +16 -0
- package/dist/commonjs/funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js +138 -0
- package/dist/commonjs/funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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 +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js +63 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js.map +1 -0
- package/dist/commonjs/models/components/createsessionrequest.d.ts +3 -0
- package/dist/commonjs/models/components/createsessionrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createsessionrequest.js +5 -0
- package/dist/commonjs/models/components/createsessionrequest.js.map +1 -1
- package/dist/commonjs/models/components/createsessionresponse.d.ts +2 -2
- package/dist/commonjs/models/components/createsessionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/createsessionresponse.js +2 -2
- package/dist/commonjs/models/components/createsessionresponse.js.map +1 -1
- package/dist/commonjs/models/components/githubreadclonerequest.d.ts +30 -0
- package/dist/commonjs/models/components/githubreadclonerequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/githubreadclonerequest.js +83 -0
- package/dist/commonjs/models/components/githubreadclonerequest.js.map +1 -0
- package/dist/commonjs/models/components/githubreadcloneresult.d.ts +27 -0
- package/dist/commonjs/models/components/githubreadcloneresult.d.ts.map +1 -0
- package/dist/commonjs/models/components/githubreadcloneresult.js +83 -0
- package/dist/commonjs/models/components/githubreadcloneresult.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +6 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +6 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/managedservicename.d.ts +11 -0
- package/dist/commonjs/models/components/managedservicename.d.ts.map +1 -0
- package/dist/commonjs/models/components/managedservicename.js +48 -0
- package/dist/commonjs/models/components/managedservicename.js.map +1 -0
- package/dist/commonjs/models/components/managedservicerecord.d.ts +27 -0
- package/dist/commonjs/models/components/managedservicerecord.d.ts.map +1 -0
- package/dist/commonjs/models/components/managedservicerecord.js +81 -0
- package/dist/commonjs/models/components/managedservicerecord.js.map +1 -0
- package/dist/commonjs/models/components/managedservicestatus.d.ts +14 -0
- package/dist/commonjs/models/components/managedservicestatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/managedservicestatus.js +51 -0
- package/dist/commonjs/models/components/managedservicestatus.js.map +1 -0
- package/dist/commonjs/models/components/sandboxresourceclass.d.ts +29 -0
- package/dist/commonjs/models/components/sandboxresourceclass.d.ts.map +1 -0
- package/dist/commonjs/models/components/sandboxresourceclass.js +57 -0
- package/dist/commonjs/models/components/sandboxresourceclass.js.map +1 -0
- package/dist/commonjs/models/components/sessionkind.d.ts +1 -0
- package/dist/commonjs/models/components/sessionkind.d.ts.map +1 -1
- package/dist/commonjs/models/components/sessionkind.js +1 -0
- package/dist/commonjs/models/components/sessionkind.js.map +1 -1
- package/dist/commonjs/models/components/sessionrecord.d.ts +8 -0
- package/dist/commonjs/models/components/sessionrecord.d.ts.map +1 -1
- package/dist/commonjs/models/components/sessionrecord.js +14 -0
- package/dist/commonjs/models/components/sessionrecord.js.map +1 -1
- package/dist/commonjs/models/components/terminatesessionrequest.d.ts +3 -0
- package/dist/commonjs/models/components/terminatesessionrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/terminatesessionrequest.js +5 -0
- package/dist/commonjs/models/components/terminatesessionrequest.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/readcloneapiv1sandboxsessionssessionidgithubreadclonepost.d.ts +25 -0
- package/dist/commonjs/models/operations/readcloneapiv1sandboxsessionssessionidgithubreadclonepost.d.ts.map +1 -0
- package/dist/commonjs/models/operations/readcloneapiv1sandboxsessionssessionidgithubreadclonepost.js +78 -0
- package/dist/commonjs/models/operations/readcloneapiv1sandboxsessionssessionidgithubreadclonepost.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts +27 -0
- package/dist/commonjs/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js +48 -0
- package/dist/commonjs/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js.map +1 -0
- package/dist/commonjs/sdk/schema3other.d.ts +10 -0
- package/dist/commonjs/sdk/schema3other.d.ts.map +1 -0
- package/dist/commonjs/sdk/schema3other.js +19 -0
- package/dist/commonjs/sdk/schema3other.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts +16 -0
- package/dist/esm/funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js +102 -0
- package/dist/esm/funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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 +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js +27 -0
- package/dist/esm/mcp-server/tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js.map +1 -0
- package/dist/esm/models/components/createsessionrequest.d.ts +3 -0
- package/dist/esm/models/components/createsessionrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createsessionrequest.js +5 -0
- package/dist/esm/models/components/createsessionrequest.js.map +1 -1
- package/dist/esm/models/components/createsessionresponse.d.ts +2 -2
- package/dist/esm/models/components/createsessionresponse.d.ts.map +1 -1
- package/dist/esm/models/components/createsessionresponse.js +2 -2
- package/dist/esm/models/components/createsessionresponse.js.map +1 -1
- package/dist/esm/models/components/githubreadclonerequest.d.ts +30 -0
- package/dist/esm/models/components/githubreadclonerequest.d.ts.map +1 -0
- package/dist/esm/models/components/githubreadclonerequest.js +45 -0
- package/dist/esm/models/components/githubreadclonerequest.js.map +1 -0
- package/dist/esm/models/components/githubreadcloneresult.d.ts +27 -0
- package/dist/esm/models/components/githubreadcloneresult.d.ts.map +1 -0
- package/dist/esm/models/components/githubreadcloneresult.js +45 -0
- package/dist/esm/models/components/githubreadcloneresult.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +6 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +6 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/managedservicename.d.ts +11 -0
- package/dist/esm/models/components/managedservicename.d.ts.map +1 -0
- package/dist/esm/models/components/managedservicename.js +12 -0
- package/dist/esm/models/components/managedservicename.js.map +1 -0
- package/dist/esm/models/components/managedservicerecord.d.ts +27 -0
- package/dist/esm/models/components/managedservicerecord.d.ts.map +1 -0
- package/dist/esm/models/components/managedservicerecord.js +43 -0
- package/dist/esm/models/components/managedservicerecord.js.map +1 -0
- package/dist/esm/models/components/managedservicestatus.d.ts +14 -0
- package/dist/esm/models/components/managedservicestatus.d.ts.map +1 -0
- package/dist/esm/models/components/managedservicestatus.js +15 -0
- package/dist/esm/models/components/managedservicestatus.js.map +1 -0
- package/dist/esm/models/components/sandboxresourceclass.d.ts +29 -0
- package/dist/esm/models/components/sandboxresourceclass.d.ts.map +1 -0
- package/dist/esm/models/components/sandboxresourceclass.js +21 -0
- package/dist/esm/models/components/sandboxresourceclass.js.map +1 -0
- package/dist/esm/models/components/sessionkind.d.ts +1 -0
- package/dist/esm/models/components/sessionkind.d.ts.map +1 -1
- package/dist/esm/models/components/sessionkind.js +1 -0
- package/dist/esm/models/components/sessionkind.js.map +1 -1
- package/dist/esm/models/components/sessionrecord.d.ts +8 -0
- package/dist/esm/models/components/sessionrecord.d.ts.map +1 -1
- package/dist/esm/models/components/sessionrecord.js +14 -0
- package/dist/esm/models/components/sessionrecord.js.map +1 -1
- package/dist/esm/models/components/terminatesessionrequest.d.ts +3 -0
- package/dist/esm/models/components/terminatesessionrequest.d.ts.map +1 -1
- package/dist/esm/models/components/terminatesessionrequest.js +5 -0
- package/dist/esm/models/components/terminatesessionrequest.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/readcloneapiv1sandboxsessionssessionidgithubreadclonepost.d.ts +25 -0
- package/dist/esm/models/operations/readcloneapiv1sandboxsessionssessionidgithubreadclonepost.d.ts.map +1 -0
- package/dist/esm/models/operations/readcloneapiv1sandboxsessionssessionidgithubreadclonepost.js +40 -0
- package/dist/esm/models/operations/readcloneapiv1sandboxsessionssessionidgithubreadclonepost.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts +27 -0
- package/dist/esm/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js +43 -0
- package/dist/esm/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js.map +1 -0
- package/dist/esm/sdk/schema3other.d.ts +10 -0
- package/dist/esm/sdk/schema3other.d.ts.map +1 -0
- package/dist/esm/sdk/schema3other.js +15 -0
- package/dist/esm/sdk/schema3other.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.ts +200 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.ts +40 -0
- package/src/models/components/createsessionrequest.ts +11 -0
- package/src/models/components/createsessionresponse.ts +4 -4
- package/src/models/components/githubreadclonerequest.ts +89 -0
- package/src/models/components/githubreadcloneresult.ts +86 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/managedservicename.ts +20 -0
- package/src/models/components/managedservicerecord.ts +90 -0
- package/src/models/components/managedservicestatus.ts +23 -0
- package/src/models/components/sandboxresourceclass.ts +38 -0
- package/src/models/components/sessionkind.ts +1 -0
- package/src/models/components/sessionrecord.ts +29 -0
- package/src/models/components/terminatesessionrequest.ts +11 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/readcloneapiv1sandboxsessionssessionidgithubreadclonepost.ts +86 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.ts +129 -0
- package/src/sdk/schema3other.ts +28 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -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
|
+
export type GitHubReadCloneResult = {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
assignmentGeneration: number;
|
|
14
|
+
repositoryId: number;
|
|
15
|
+
owner: string;
|
|
16
|
+
repository: string;
|
|
17
|
+
baseSha: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const GitHubReadCloneResult$inboundSchema: z.ZodType<
|
|
22
|
+
GitHubReadCloneResult,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
session_id: z.string(),
|
|
27
|
+
assignment_generation: z.number().int(),
|
|
28
|
+
repository_id: z.number().int(),
|
|
29
|
+
owner: z.string(),
|
|
30
|
+
repository: z.string(),
|
|
31
|
+
base_sha: z.string(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"session_id": "sessionId",
|
|
35
|
+
"assignment_generation": "assignmentGeneration",
|
|
36
|
+
"repository_id": "repositoryId",
|
|
37
|
+
"base_sha": "baseSha",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type GitHubReadCloneResult$Outbound = {
|
|
42
|
+
session_id: string;
|
|
43
|
+
assignment_generation: number;
|
|
44
|
+
repository_id: number;
|
|
45
|
+
owner: string;
|
|
46
|
+
repository: string;
|
|
47
|
+
base_sha: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const GitHubReadCloneResult$outboundSchema: z.ZodType<
|
|
52
|
+
GitHubReadCloneResult$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
GitHubReadCloneResult
|
|
55
|
+
> = z.object({
|
|
56
|
+
sessionId: z.string(),
|
|
57
|
+
assignmentGeneration: z.number().int(),
|
|
58
|
+
repositoryId: z.number().int(),
|
|
59
|
+
owner: z.string(),
|
|
60
|
+
repository: z.string(),
|
|
61
|
+
baseSha: z.string(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return remap$(v, {
|
|
64
|
+
sessionId: "session_id",
|
|
65
|
+
assignmentGeneration: "assignment_generation",
|
|
66
|
+
repositoryId: "repository_id",
|
|
67
|
+
baseSha: "base_sha",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function gitHubReadCloneResultToJSON(
|
|
72
|
+
gitHubReadCloneResult: GitHubReadCloneResult,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
GitHubReadCloneResult$outboundSchema.parse(gitHubReadCloneResult),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
export function gitHubReadCloneResultFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<GitHubReadCloneResult, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => GitHubReadCloneResult$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'GitHubReadCloneResult' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -263,6 +263,8 @@ export * from "./getexportstatusresponse.js";
|
|
|
263
263
|
export * from "./getfeedbackresponse.js";
|
|
264
264
|
export * from "./getguardrailsresponse.js";
|
|
265
265
|
export * from "./getpromptresponse.js";
|
|
266
|
+
export * from "./githubreadclonerequest.js";
|
|
267
|
+
export * from "./githubreadcloneresult.js";
|
|
266
268
|
export * from "./grammarformat.js";
|
|
267
269
|
export * from "./grantpermissionrequest.js";
|
|
268
270
|
export * from "./guardrailconfig.js";
|
|
@@ -318,6 +320,9 @@ export * from "./localshellcallwithid.js";
|
|
|
318
320
|
export * from "./localshelltooldefinition.js";
|
|
319
321
|
export * from "./logprob.js";
|
|
320
322
|
export * from "./logprobtoken.js";
|
|
323
|
+
export * from "./managedservicename.js";
|
|
324
|
+
export * from "./managedservicerecord.js";
|
|
325
|
+
export * from "./managedservicestatus.js";
|
|
321
326
|
export * from "./mcpallowedtools.js";
|
|
322
327
|
export * from "./mcpapprovalrequest.js";
|
|
323
328
|
export * from "./mcpapprovalrequestwithid.js";
|
|
@@ -477,6 +482,7 @@ export * from "./sandboxpricerate.js";
|
|
|
477
482
|
export * from "./sandboxpricingcard.js";
|
|
478
483
|
export * from "./sandboxpricingupdate.js";
|
|
479
484
|
export * from "./sandboxprovider.js";
|
|
485
|
+
export * from "./sandboxresourceclass.js";
|
|
480
486
|
export * from "./sandboxruntimeprofile.js";
|
|
481
487
|
export * from "./sandboxusagebucket.js";
|
|
482
488
|
export * from "./sandboxusagebucketwidth.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const ManagedServiceName = {
|
|
9
|
+
CodingHarness: "coding_harness",
|
|
10
|
+
} as const;
|
|
11
|
+
export type ManagedServiceName = ClosedEnum<typeof ManagedServiceName>;
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const ManagedServiceName$inboundSchema: z.ZodNativeEnum<
|
|
15
|
+
typeof ManagedServiceName
|
|
16
|
+
> = z.nativeEnum(ManagedServiceName);
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ManagedServiceName$outboundSchema: z.ZodNativeEnum<
|
|
19
|
+
typeof ManagedServiceName
|
|
20
|
+
> = ManagedServiceName$inboundSchema;
|
|
@@ -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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ManagedServiceName,
|
|
12
|
+
ManagedServiceName$inboundSchema,
|
|
13
|
+
ManagedServiceName$outboundSchema,
|
|
14
|
+
} from "./managedservicename.js";
|
|
15
|
+
import {
|
|
16
|
+
ManagedServiceStatus,
|
|
17
|
+
ManagedServiceStatus$inboundSchema,
|
|
18
|
+
ManagedServiceStatus$outboundSchema,
|
|
19
|
+
} from "./managedservicestatus.js";
|
|
20
|
+
|
|
21
|
+
export type ManagedServiceRecord = {
|
|
22
|
+
name: ManagedServiceName;
|
|
23
|
+
containerPort: number;
|
|
24
|
+
assignmentGeneration: number;
|
|
25
|
+
status?: ManagedServiceStatus | undefined;
|
|
26
|
+
failureReason?: string | null | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ManagedServiceRecord$inboundSchema: z.ZodType<
|
|
31
|
+
ManagedServiceRecord,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
name: ManagedServiceName$inboundSchema,
|
|
36
|
+
container_port: z.number().int(),
|
|
37
|
+
assignment_generation: z.number().int(),
|
|
38
|
+
status: ManagedServiceStatus$inboundSchema.optional(),
|
|
39
|
+
failure_reason: z.nullable(z.string()).optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"container_port": "containerPort",
|
|
43
|
+
"assignment_generation": "assignmentGeneration",
|
|
44
|
+
"failure_reason": "failureReason",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type ManagedServiceRecord$Outbound = {
|
|
49
|
+
name: string;
|
|
50
|
+
container_port: number;
|
|
51
|
+
assignment_generation: number;
|
|
52
|
+
status?: string | undefined;
|
|
53
|
+
failure_reason?: string | null | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const ManagedServiceRecord$outboundSchema: z.ZodType<
|
|
58
|
+
ManagedServiceRecord$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
ManagedServiceRecord
|
|
61
|
+
> = z.object({
|
|
62
|
+
name: ManagedServiceName$outboundSchema,
|
|
63
|
+
containerPort: z.number().int(),
|
|
64
|
+
assignmentGeneration: z.number().int(),
|
|
65
|
+
status: ManagedServiceStatus$outboundSchema.optional(),
|
|
66
|
+
failureReason: z.nullable(z.string()).optional(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
containerPort: "container_port",
|
|
70
|
+
assignmentGeneration: "assignment_generation",
|
|
71
|
+
failureReason: "failure_reason",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function managedServiceRecordToJSON(
|
|
76
|
+
managedServiceRecord: ManagedServiceRecord,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
ManagedServiceRecord$outboundSchema.parse(managedServiceRecord),
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
export function managedServiceRecordFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<ManagedServiceRecord, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => ManagedServiceRecord$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'ManagedServiceRecord' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const ManagedServiceStatus = {
|
|
9
|
+
Starting: "starting",
|
|
10
|
+
Ready: "ready",
|
|
11
|
+
Unhealthy: "unhealthy",
|
|
12
|
+
Stopped: "stopped",
|
|
13
|
+
} as const;
|
|
14
|
+
export type ManagedServiceStatus = ClosedEnum<typeof ManagedServiceStatus>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const ManagedServiceStatus$inboundSchema: z.ZodNativeEnum<
|
|
18
|
+
typeof ManagedServiceStatus
|
|
19
|
+
> = z.nativeEnum(ManagedServiceStatus);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ManagedServiceStatus$outboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof ManagedServiceStatus
|
|
23
|
+
> = ManagedServiceStatus$inboundSchema;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Server-owned workload sizing classes.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
*
|
|
13
|
+
* Resource classes are deliberately independent of the language/runtime
|
|
14
|
+
* profile. In particular, Coding Harness always uses the Medium class even when a
|
|
15
|
+
* caller sends a smaller or absent legacy ``memory_mib`` value.
|
|
16
|
+
*/
|
|
17
|
+
export const SandboxResourceClass = {
|
|
18
|
+
Medium: "medium",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Server-owned workload sizing classes.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
*
|
|
25
|
+
* Resource classes are deliberately independent of the language/runtime
|
|
26
|
+
* profile. In particular, Coding Harness always uses the Medium class even when a
|
|
27
|
+
* caller sends a smaller or absent legacy ``memory_mib`` value.
|
|
28
|
+
*/
|
|
29
|
+
export type SandboxResourceClass = ClosedEnum<typeof SandboxResourceClass>;
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const SandboxResourceClass$inboundSchema: z.ZodNativeEnum<
|
|
33
|
+
typeof SandboxResourceClass
|
|
34
|
+
> = z.nativeEnum(SandboxResourceClass);
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const SandboxResourceClass$outboundSchema: z.ZodNativeEnum<
|
|
37
|
+
typeof SandboxResourceClass
|
|
38
|
+
> = SandboxResourceClass$inboundSchema;
|
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ManagedServiceRecord,
|
|
12
|
+
ManagedServiceRecord$inboundSchema,
|
|
13
|
+
ManagedServiceRecord$Outbound,
|
|
14
|
+
ManagedServiceRecord$outboundSchema,
|
|
15
|
+
} from "./managedservicerecord.js";
|
|
10
16
|
import {
|
|
11
17
|
MemoryMount,
|
|
12
18
|
MemoryMount$inboundSchema,
|
|
@@ -18,6 +24,11 @@ import {
|
|
|
18
24
|
SandboxFeature$inboundSchema,
|
|
19
25
|
SandboxFeature$outboundSchema,
|
|
20
26
|
} from "./sandboxfeature.js";
|
|
27
|
+
import {
|
|
28
|
+
SandboxResourceClass,
|
|
29
|
+
SandboxResourceClass$inboundSchema,
|
|
30
|
+
SandboxResourceClass$outboundSchema,
|
|
31
|
+
} from "./sandboxresourceclass.js";
|
|
21
32
|
import {
|
|
22
33
|
SandboxRuntimeProfile,
|
|
23
34
|
SandboxRuntimeProfile$inboundSchema,
|
|
@@ -42,6 +53,9 @@ export type SessionRecord = {
|
|
|
42
53
|
teamId?: string | null | undefined;
|
|
43
54
|
status?: SessionStatus | undefined;
|
|
44
55
|
sessionKind?: SessionKind | undefined;
|
|
56
|
+
resourceClass?: SandboxResourceClass | null | undefined;
|
|
57
|
+
assignmentGeneration?: number | undefined;
|
|
58
|
+
managedServices?: Array<ManagedServiceRecord> | undefined;
|
|
45
59
|
ttlSeconds?: number | undefined;
|
|
46
60
|
workspaceExpiresAt?: Date | null | undefined;
|
|
47
61
|
sandboxFeatures?: Array<SandboxFeature> | undefined;
|
|
@@ -67,6 +81,9 @@ export const SessionRecord$inboundSchema: z.ZodType<
|
|
|
67
81
|
team_id: z.nullable(z.string()).optional(),
|
|
68
82
|
status: SessionStatus$inboundSchema.optional(),
|
|
69
83
|
session_kind: SessionKind$inboundSchema.optional(),
|
|
84
|
+
resource_class: z.nullable(SandboxResourceClass$inboundSchema).optional(),
|
|
85
|
+
assignment_generation: z.number().int().default(1),
|
|
86
|
+
managed_services: z.array(ManagedServiceRecord$inboundSchema).optional(),
|
|
70
87
|
ttl_seconds: z.number().int().default(600),
|
|
71
88
|
workspace_expires_at: z.nullable(
|
|
72
89
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -89,6 +106,9 @@ export const SessionRecord$inboundSchema: z.ZodType<
|
|
|
89
106
|
"org_id": "orgId",
|
|
90
107
|
"team_id": "teamId",
|
|
91
108
|
"session_kind": "sessionKind",
|
|
109
|
+
"resource_class": "resourceClass",
|
|
110
|
+
"assignment_generation": "assignmentGeneration",
|
|
111
|
+
"managed_services": "managedServices",
|
|
92
112
|
"ttl_seconds": "ttlSeconds",
|
|
93
113
|
"workspace_expires_at": "workspaceExpiresAt",
|
|
94
114
|
"sandbox_features": "sandboxFeatures",
|
|
@@ -109,6 +129,9 @@ export type SessionRecord$Outbound = {
|
|
|
109
129
|
team_id?: string | null | undefined;
|
|
110
130
|
status?: string | undefined;
|
|
111
131
|
session_kind?: string | undefined;
|
|
132
|
+
resource_class?: string | null | undefined;
|
|
133
|
+
assignment_generation: number;
|
|
134
|
+
managed_services?: Array<ManagedServiceRecord$Outbound> | undefined;
|
|
112
135
|
ttl_seconds: number;
|
|
113
136
|
workspace_expires_at?: string | null | undefined;
|
|
114
137
|
sandbox_features?: Array<string> | undefined;
|
|
@@ -134,6 +157,9 @@ export const SessionRecord$outboundSchema: z.ZodType<
|
|
|
134
157
|
teamId: z.nullable(z.string()).optional(),
|
|
135
158
|
status: SessionStatus$outboundSchema.optional(),
|
|
136
159
|
sessionKind: SessionKind$outboundSchema.optional(),
|
|
160
|
+
resourceClass: z.nullable(SandboxResourceClass$outboundSchema).optional(),
|
|
161
|
+
assignmentGeneration: z.number().int().default(1),
|
|
162
|
+
managedServices: z.array(ManagedServiceRecord$outboundSchema).optional(),
|
|
137
163
|
ttlSeconds: z.number().int().default(600),
|
|
138
164
|
workspaceExpiresAt: z.nullable(z.date().transform(v => v.toISOString()))
|
|
139
165
|
.optional(),
|
|
@@ -153,6 +179,9 @@ export const SessionRecord$outboundSchema: z.ZodType<
|
|
|
153
179
|
orgId: "org_id",
|
|
154
180
|
teamId: "team_id",
|
|
155
181
|
sessionKind: "session_kind",
|
|
182
|
+
resourceClass: "resource_class",
|
|
183
|
+
assignmentGeneration: "assignment_generation",
|
|
184
|
+
managedServices: "managed_services",
|
|
156
185
|
ttlSeconds: "ttl_seconds",
|
|
157
186
|
workspaceExpiresAt: "workspace_expires_at",
|
|
158
187
|
sandboxFeatures: "sandbox_features",
|
|
@@ -7,10 +7,16 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
SessionKind,
|
|
12
|
+
SessionKind$inboundSchema,
|
|
13
|
+
SessionKind$outboundSchema,
|
|
14
|
+
} from "./sessionkind.js";
|
|
10
15
|
|
|
11
16
|
export type TerminateSessionRequest = {
|
|
12
17
|
sessionId: string;
|
|
13
18
|
sessionToken?: string | null | undefined;
|
|
19
|
+
expectedSessionKind?: SessionKind | null | undefined;
|
|
14
20
|
};
|
|
15
21
|
|
|
16
22
|
/** @internal */
|
|
@@ -21,16 +27,19 @@ export const TerminateSessionRequest$inboundSchema: z.ZodType<
|
|
|
21
27
|
> = z.object({
|
|
22
28
|
session_id: z.string(),
|
|
23
29
|
session_token: z.nullable(z.string()).optional(),
|
|
30
|
+
expected_session_kind: z.nullable(SessionKind$inboundSchema).optional(),
|
|
24
31
|
}).transform((v) => {
|
|
25
32
|
return remap$(v, {
|
|
26
33
|
"session_id": "sessionId",
|
|
27
34
|
"session_token": "sessionToken",
|
|
35
|
+
"expected_session_kind": "expectedSessionKind",
|
|
28
36
|
});
|
|
29
37
|
});
|
|
30
38
|
/** @internal */
|
|
31
39
|
export type TerminateSessionRequest$Outbound = {
|
|
32
40
|
session_id: string;
|
|
33
41
|
session_token?: string | null | undefined;
|
|
42
|
+
expected_session_kind?: string | null | undefined;
|
|
34
43
|
};
|
|
35
44
|
|
|
36
45
|
/** @internal */
|
|
@@ -41,10 +50,12 @@ export const TerminateSessionRequest$outboundSchema: z.ZodType<
|
|
|
41
50
|
> = z.object({
|
|
42
51
|
sessionId: z.string(),
|
|
43
52
|
sessionToken: z.nullable(z.string()).optional(),
|
|
53
|
+
expectedSessionKind: z.nullable(SessionKind$outboundSchema).optional(),
|
|
44
54
|
}).transform((v) => {
|
|
45
55
|
return remap$(v, {
|
|
46
56
|
sessionId: "session_id",
|
|
47
57
|
sessionToken: "session_token",
|
|
58
|
+
expectedSessionKind: "expected_session_kind",
|
|
48
59
|
});
|
|
49
60
|
});
|
|
50
61
|
|
|
@@ -255,6 +255,7 @@ export * from "./pausefinetuningjob.js";
|
|
|
255
255
|
export * from "./proxybrowserportrequest.js";
|
|
256
256
|
export * from "./putcomputetenant.js";
|
|
257
257
|
export * from "./putorgautomodel.js";
|
|
258
|
+
export * from "./readcloneapiv1sandboxsessionssessionidgithubreadclonepost.js";
|
|
258
259
|
export * from "./regeneratescopedapikey.js";
|
|
259
260
|
export * from "./regenerateserviceaccountapikey.js";
|
|
260
261
|
export * from "./reissueownerkey.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 ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest = {
|
|
13
|
+
sessionId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
16
|
+
*/
|
|
17
|
+
xOnBehalfOf?: string | undefined;
|
|
18
|
+
gitHubReadCloneRequest: components.GitHubReadCloneRequest;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest$inboundSchema:
|
|
23
|
+
z.ZodType<
|
|
24
|
+
ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
session_id: z.string(),
|
|
29
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
30
|
+
GitHubReadCloneRequest: components.GitHubReadCloneRequest$inboundSchema,
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"session_id": "sessionId",
|
|
34
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
35
|
+
"GitHubReadCloneRequest": "gitHubReadCloneRequest",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest$Outbound =
|
|
40
|
+
{
|
|
41
|
+
session_id: string;
|
|
42
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
43
|
+
GitHubReadCloneRequest: components.GitHubReadCloneRequest$Outbound;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest$outboundSchema:
|
|
48
|
+
z.ZodType<
|
|
49
|
+
ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest
|
|
52
|
+
> = z.object({
|
|
53
|
+
sessionId: z.string(),
|
|
54
|
+
xOnBehalfOf: z.string().optional(),
|
|
55
|
+
gitHubReadCloneRequest: components.GitHubReadCloneRequest$outboundSchema,
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
sessionId: "session_id",
|
|
59
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
60
|
+
gitHubReadCloneRequest: "GitHubReadCloneRequest",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function readCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequestToJSON(
|
|
65
|
+
readCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest:
|
|
66
|
+
ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest$outboundSchema
|
|
70
|
+
.parse(readCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
export function readCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequestFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<
|
|
76
|
+
ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest,
|
|
77
|
+
SDKValidationError
|
|
78
|
+
> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) =>
|
|
82
|
+
ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest$inboundSchema
|
|
83
|
+
.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -327,5 +327,6 @@ export * from "./sandboxSetPricing.js";
|
|
|
327
327
|
export * from "./sandboxTerminate.js";
|
|
328
328
|
export * from "./sandboxUploadArchive.js";
|
|
329
329
|
export * from "./sandboxUploadFile.js";
|
|
330
|
+
export * from "./schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js";
|
|
330
331
|
export * from "./usageCosts.js";
|
|
331
332
|
export * from "./usageSandbox.js";
|
package/src/react-query/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.ts
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost } from "../funcs/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
28
|
+
import { useSDKContext } from "./_context.js";
|
|
29
|
+
import { MutationHookOptions } from "./_types.js";
|
|
30
|
+
|
|
31
|
+
export type Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationVariables =
|
|
32
|
+
{
|
|
33
|
+
request:
|
|
34
|
+
operations.ReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostRequest;
|
|
35
|
+
options?: RequestOptions;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationData =
|
|
39
|
+
components.GitHubReadCloneResult;
|
|
40
|
+
|
|
41
|
+
export type Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationError =
|
|
42
|
+
| errors.HTTPValidationError
|
|
43
|
+
| SDKError
|
|
44
|
+
| ResponseValidationError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| SDKValidationError;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Read Clone
|
|
54
|
+
*/
|
|
55
|
+
export function useSchema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutation(
|
|
56
|
+
options?: MutationHookOptions<
|
|
57
|
+
Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationData,
|
|
58
|
+
Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationError,
|
|
59
|
+
Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationVariables
|
|
60
|
+
>,
|
|
61
|
+
): UseMutationResult<
|
|
62
|
+
Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationData,
|
|
63
|
+
Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationError,
|
|
64
|
+
Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationVariables
|
|
65
|
+
> {
|
|
66
|
+
const client = useSDKContext();
|
|
67
|
+
return useMutation({
|
|
68
|
+
...buildSchema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutation(
|
|
69
|
+
client,
|
|
70
|
+
options,
|
|
71
|
+
),
|
|
72
|
+
...options,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function mutationKeySchema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost(): MutationKey {
|
|
77
|
+
return [
|
|
78
|
+
"@meetkai/mka1",
|
|
79
|
+
"schema-3_other",
|
|
80
|
+
"readCloneApiV1SandboxSessionsSessionIdGithubReadClonePost",
|
|
81
|
+
];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function buildSchema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutation(
|
|
85
|
+
client$: SDKCore,
|
|
86
|
+
hookOptions?: RequestOptions,
|
|
87
|
+
): {
|
|
88
|
+
mutationKey: MutationKey;
|
|
89
|
+
mutationFn: (
|
|
90
|
+
variables:
|
|
91
|
+
Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationVariables,
|
|
92
|
+
) => Promise<
|
|
93
|
+
Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationData
|
|
94
|
+
>;
|
|
95
|
+
} {
|
|
96
|
+
return {
|
|
97
|
+
mutationKey:
|
|
98
|
+
mutationKeySchema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost(),
|
|
99
|
+
mutationFn:
|
|
100
|
+
function schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationFn(
|
|
101
|
+
{
|
|
102
|
+
request,
|
|
103
|
+
options,
|
|
104
|
+
},
|
|
105
|
+
): Promise<
|
|
106
|
+
Schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePostMutationData
|
|
107
|
+
> {
|
|
108
|
+
const mergedOptions = {
|
|
109
|
+
...hookOptions,
|
|
110
|
+
...options,
|
|
111
|
+
fetchOptions: {
|
|
112
|
+
...hookOptions?.fetchOptions,
|
|
113
|
+
...options?.fetchOptions,
|
|
114
|
+
signal: combineSignals(
|
|
115
|
+
hookOptions?.fetchOptions?.signal,
|
|
116
|
+
options?.fetchOptions?.signal,
|
|
117
|
+
),
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
return unwrapAsync(
|
|
121
|
+
schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost(
|
|
122
|
+
client$,
|
|
123
|
+
request,
|
|
124
|
+
mergedOptions,
|
|
125
|
+
),
|
|
126
|
+
);
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
}
|