@orq-ai/node 4.18.0-rc.6 → 4.18.0-rc.8
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 +66 -93
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createmcpgatewayrequest.d.ts +6 -0
- package/models/components/createmcpgatewayrequest.d.ts.map +1 -1
- package/models/components/createmcpgatewayrequest.js +2 -0
- package/models/components/createmcpgatewayrequest.js.map +1 -1
- package/models/components/index.d.ts +0 -27
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -27
- package/models/components/index.js.map +1 -1
- package/models/components/mcpauthconfig.d.ts +44 -5
- package/models/components/mcpauthconfig.d.ts.map +1 -1
- package/models/components/mcpauthconfig.js +20 -3
- package/models/components/mcpauthconfig.js.map +1 -1
- package/models/components/mcpauthconfigoutput.d.ts +31 -4
- package/models/components/mcpauthconfigoutput.d.ts.map +1 -1
- package/models/components/mcpauthconfigoutput.js +18 -3
- package/models/components/mcpauthconfigoutput.js.map +1 -1
- package/models/components/mcpgateway.d.ts +5 -0
- package/models/components/mcpgateway.d.ts.map +1 -1
- package/models/components/mcpgateway.js +2 -0
- package/models/components/mcpgateway.js.map +1 -1
- package/models/components/mcpoauthconfig.d.ts +17 -1
- package/models/components/mcpoauthconfig.d.ts.map +1 -1
- package/models/components/mcpoauthconfig.js +2 -0
- package/models/components/mcpoauthconfig.js.map +1 -1
- package/models/components/mcpoauthconfigoutput.d.ts +15 -1
- package/models/components/mcpoauthconfigoutput.d.ts.map +1 -1
- package/models/components/mcpoauthconfigoutput.js +2 -0
- package/models/components/mcpoauthconfigoutput.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/spansummary.d.ts +5 -0
- package/models/components/spansummary.d.ts.map +1 -1
- package/models/components/spansummary.js +9 -1
- package/models/components/spansummary.js.map +1 -1
- package/models/components/updatemcpgatewayrequest.d.ts +6 -0
- package/models/components/updatemcpgatewayrequest.d.ts.map +1 -1
- package/models/components/updatemcpgatewayrequest.js +2 -0
- package/models/components/updatemcpgatewayrequest.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -10
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -10
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/createmcpgatewayrequest.ts +11 -0
- package/src/models/components/index.ts +0 -27
- package/src/models/components/mcpauthconfig.ts +67 -10
- package/src/models/components/mcpauthconfigoutput.ts +57 -8
- package/src/models/components/mcpgateway.ts +9 -0
- package/src/models/components/mcpoauthconfig.ts +19 -1
- package/src/models/components/mcpoauthconfigoutput.ts +17 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/spansummary.ts +22 -0
- package/src/models/components/updatemcpgatewayrequest.ts +11 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +0 -10
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/sdk.ts +0 -6
- package/funcs/wikisCreate.d.ts +0 -12
- package/funcs/wikisCreate.d.ts.map +0 -1
- package/funcs/wikisCreate.js +0 -113
- package/funcs/wikisCreate.js.map +0 -1
- package/funcs/wikisDelete.d.ts +0 -13
- package/funcs/wikisDelete.d.ts.map +0 -1
- package/funcs/wikisDelete.js +0 -119
- package/funcs/wikisDelete.js.map +0 -1
- package/funcs/wikisGet.d.ts +0 -13
- package/funcs/wikisGet.d.ts.map +0 -1
- package/funcs/wikisGet.js +0 -119
- package/funcs/wikisGet.js.map +0 -1
- package/funcs/wikisGetPage.d.ts +0 -13
- package/funcs/wikisGetPage.d.ts.map +0 -1
- package/funcs/wikisGetPage.js +0 -124
- package/funcs/wikisGetPage.js.map +0 -1
- package/funcs/wikisGetTree.d.ts +0 -13
- package/funcs/wikisGetTree.d.ts.map +0 -1
- package/funcs/wikisGetTree.js +0 -119
- package/funcs/wikisGetTree.js.map +0 -1
- package/funcs/wikisInspectRepository.d.ts +0 -12
- package/funcs/wikisInspectRepository.d.ts.map +0 -1
- package/funcs/wikisInspectRepository.js +0 -113
- package/funcs/wikisInspectRepository.js.map +0 -1
- package/funcs/wikisList.d.ts +0 -13
- package/funcs/wikisList.d.ts.map +0 -1
- package/funcs/wikisList.js +0 -122
- package/funcs/wikisList.js.map +0 -1
- package/funcs/wikisListRuns.d.ts +0 -13
- package/funcs/wikisListRuns.d.ts.map +0 -1
- package/funcs/wikisListRuns.js +0 -123
- package/funcs/wikisListRuns.js.map +0 -1
- package/funcs/wikisRefresh.d.ts +0 -13
- package/funcs/wikisRefresh.d.ts.map +0 -1
- package/funcs/wikisRefresh.js +0 -122
- package/funcs/wikisRefresh.js.map +0 -1
- package/funcs/wikisSearch.d.ts +0 -13
- package/funcs/wikisSearch.d.ts.map +0 -1
- package/funcs/wikisSearch.js +0 -124
- package/funcs/wikisSearch.js.map +0 -1
- package/funcs/wikisUpdate.d.ts +0 -13
- package/funcs/wikisUpdate.d.ts.map +0 -1
- package/funcs/wikisUpdate.js +0 -120
- package/funcs/wikisUpdate.js.map +0 -1
- package/funcs/wikisUpdatePage.d.ts +0 -13
- package/funcs/wikisUpdatePage.d.ts.map +0 -1
- package/funcs/wikisUpdatePage.js +0 -122
- package/funcs/wikisUpdatePage.js.map +0 -1
- package/models/components/createwikirequest.d.ts +0 -26
- package/models/components/createwikirequest.d.ts.map +0 -1
- package/models/components/createwikirequest.js +0 -65
- package/models/components/createwikirequest.js.map +0 -1
- package/models/components/createwikiresponse.d.ts +0 -11
- package/models/components/createwikiresponse.d.ts.map +0 -1
- package/models/components/createwikiresponse.js +0 -51
- package/models/components/createwikiresponse.js.map +0 -1
- package/models/components/deletewikiresponse.d.ts +0 -8
- package/models/components/deletewikiresponse.d.ts.map +0 -1
- package/models/components/deletewikiresponse.js +0 -48
- package/models/components/deletewikiresponse.js.map +0 -1
- package/models/components/getwikipageresponse.d.ts +0 -11
- package/models/components/getwikipageresponse.d.ts.map +0 -1
- package/models/components/getwikipageresponse.js +0 -51
- package/models/components/getwikipageresponse.js.map +0 -1
- package/models/components/getwikiresponse.d.ts +0 -11
- package/models/components/getwikiresponse.d.ts.map +0 -1
- package/models/components/getwikiresponse.js +0 -51
- package/models/components/getwikiresponse.js.map +0 -1
- package/models/components/getwikitreeresponse.d.ts +0 -11
- package/models/components/getwikitreeresponse.d.ts.map +0 -1
- package/models/components/getwikitreeresponse.js +0 -51
- package/models/components/getwikitreeresponse.js.map +0 -1
- package/models/components/inspectrepositorywikirequest.d.ts +0 -16
- package/models/components/inspectrepositorywikirequest.d.ts.map +0 -1
- package/models/components/inspectrepositorywikirequest.js +0 -57
- package/models/components/inspectrepositorywikirequest.js.map +0 -1
- package/models/components/inspectrepositorywikiresponse.d.ts +0 -11
- package/models/components/inspectrepositorywikiresponse.d.ts.map +0 -1
- package/models/components/inspectrepositorywikiresponse.js +0 -56
- package/models/components/inspectrepositorywikiresponse.js.map +0 -1
- package/models/components/listwikirunsresponse.d.ts +0 -11
- package/models/components/listwikirunsresponse.d.ts.map +0 -1
- package/models/components/listwikirunsresponse.js +0 -51
- package/models/components/listwikirunsresponse.js.map +0 -1
- package/models/components/listwikisresponse.d.ts +0 -12
- package/models/components/listwikisresponse.d.ts.map +0 -1
- package/models/components/listwikisresponse.js +0 -57
- package/models/components/listwikisresponse.js.map +0 -1
- package/models/components/mcpenterpriseauthconfig.d.ts +0 -42
- package/models/components/mcpenterpriseauthconfig.d.ts.map +0 -1
- package/models/components/mcpenterpriseauthconfig.js +0 -60
- package/models/components/mcpenterpriseauthconfig.js.map +0 -1
- package/models/components/mcpenterpriseauthconfigoutput.d.ts +0 -32
- package/models/components/mcpenterpriseauthconfigoutput.d.ts.map +0 -1
- package/models/components/mcpenterpriseauthconfigoutput.js +0 -59
- package/models/components/mcpenterpriseauthconfigoutput.js.map +0 -1
- package/models/components/refreshwikirequest.d.ts +0 -12
- package/models/components/refreshwikirequest.d.ts.map +0 -1
- package/models/components/refreshwikirequest.js +0 -49
- package/models/components/refreshwikirequest.js.map +0 -1
- package/models/components/refreshwikiresponse.d.ts +0 -11
- package/models/components/refreshwikiresponse.d.ts.map +0 -1
- package/models/components/refreshwikiresponse.js +0 -51
- package/models/components/refreshwikiresponse.js.map +0 -1
- package/models/components/searchwikiresponse.d.ts +0 -11
- package/models/components/searchwikiresponse.d.ts.map +0 -1
- package/models/components/searchwikiresponse.js +0 -51
- package/models/components/searchwikiresponse.js.map +0 -1
- package/models/components/updatewikipagerequest.d.ts +0 -16
- package/models/components/updatewikipagerequest.d.ts.map +0 -1
- package/models/components/updatewikipagerequest.js +0 -56
- package/models/components/updatewikipagerequest.js.map +0 -1
- package/models/components/updatewikipageresponse.d.ts +0 -11
- package/models/components/updatewikipageresponse.d.ts.map +0 -1
- package/models/components/updatewikipageresponse.js +0 -51
- package/models/components/updatewikipageresponse.js.map +0 -1
- package/models/components/updatewikirequest.d.ts +0 -17
- package/models/components/updatewikirequest.d.ts.map +0 -1
- package/models/components/updatewikirequest.js +0 -58
- package/models/components/updatewikirequest.js.map +0 -1
- package/models/components/updatewikiresponse.d.ts +0 -11
- package/models/components/updatewikiresponse.d.ts.map +0 -1
- package/models/components/updatewikiresponse.js +0 -51
- package/models/components/updatewikiresponse.js.map +0 -1
- package/models/components/wiki.d.ts +0 -29
- package/models/components/wiki.d.ts.map +0 -1
- package/models/components/wiki.js +0 -88
- package/models/components/wiki.js.map +0 -1
- package/models/components/wikipage.d.ts +0 -19
- package/models/components/wikipage.d.ts.map +0 -1
- package/models/components/wikipage.js +0 -68
- package/models/components/wikipage.js.map +0 -1
- package/models/components/wikirepository.d.ts +0 -25
- package/models/components/wikirepository.d.ts.map +0 -1
- package/models/components/wikirepository.js +0 -75
- package/models/components/wikirepository.js.map +0 -1
- package/models/components/wikirun.d.ts +0 -25
- package/models/components/wikirun.d.ts.map +0 -1
- package/models/components/wikirun.js +0 -79
- package/models/components/wikirun.js.map +0 -1
- package/models/components/wikirunstats.d.ts +0 -13
- package/models/components/wikirunstats.d.ts.map +0 -1
- package/models/components/wikirunstats.js +0 -60
- package/models/components/wikirunstats.js.map +0 -1
- package/models/components/wikisearchhit.d.ts +0 -14
- package/models/components/wikisearchhit.d.ts.map +0 -1
- package/models/components/wikisearchhit.js +0 -60
- package/models/components/wikisearchhit.js.map +0 -1
- package/models/components/wikisettings.d.ts +0 -25
- package/models/components/wikisettings.d.ts.map +0 -1
- package/models/components/wikisettings.js +0 -79
- package/models/components/wikisettings.js.map +0 -1
- package/models/components/wikitreepage.d.ts +0 -15
- package/models/components/wikitreepage.d.ts.map +0 -1
- package/models/components/wikitreepage.js +0 -61
- package/models/components/wikitreepage.js.map +0 -1
- package/models/operations/deletewiki.d.ts +0 -12
- package/models/operations/deletewiki.d.ts.map +0 -1
- package/models/operations/deletewiki.js +0 -54
- package/models/operations/deletewiki.js.map +0 -1
- package/models/operations/getwiki.d.ts +0 -12
- package/models/operations/getwiki.d.ts.map +0 -1
- package/models/operations/getwiki.js +0 -54
- package/models/operations/getwiki.js.map +0 -1
- package/models/operations/getwikipage.d.ts +0 -16
- package/models/operations/getwikipage.d.ts.map +0 -1
- package/models/operations/getwikipage.js +0 -57
- package/models/operations/getwikipage.js.map +0 -1
- package/models/operations/getwikitree.d.ts +0 -12
- package/models/operations/getwikitree.d.ts.map +0 -1
- package/models/operations/getwikitree.js +0 -54
- package/models/operations/getwikitree.js.map +0 -1
- package/models/operations/listwikiruns.d.ts +0 -14
- package/models/operations/listwikiruns.d.ts.map +0 -1
- package/models/operations/listwikiruns.js +0 -55
- package/models/operations/listwikiruns.js.map +0 -1
- package/models/operations/listwikis.d.ts +0 -22
- package/models/operations/listwikis.d.ts.map +0 -1
- package/models/operations/listwikis.js +0 -62
- package/models/operations/listwikis.js.map +0 -1
- package/models/operations/refreshwiki.d.ts +0 -15
- package/models/operations/refreshwiki.d.ts.map +0 -1
- package/models/operations/refreshwiki.js +0 -57
- package/models/operations/refreshwiki.js.map +0 -1
- package/models/operations/searchwiki.d.ts +0 -16
- package/models/operations/searchwiki.d.ts.map +0 -1
- package/models/operations/searchwiki.js +0 -56
- package/models/operations/searchwiki.js.map +0 -1
- package/models/operations/updatewiki.d.ts +0 -15
- package/models/operations/updatewiki.d.ts.map +0 -1
- package/models/operations/updatewiki.js +0 -57
- package/models/operations/updatewiki.js.map +0 -1
- package/models/operations/updatewikipage.d.ts +0 -15
- package/models/operations/updatewikipage.d.ts.map +0 -1
- package/models/operations/updatewikipage.js +0 -57
- package/models/operations/updatewikipage.js.map +0 -1
- package/sdk/wikis.d.ts +0 -18
- package/sdk/wikis.d.ts.map +0 -1
- package/sdk/wikis.js +0 -60
- package/sdk/wikis.js.map +0 -1
- package/src/funcs/wikisCreate.ts +0 -165
- package/src/funcs/wikisDelete.ts +0 -171
- package/src/funcs/wikisGet.ts +0 -171
- package/src/funcs/wikisGetPage.ts +0 -177
- package/src/funcs/wikisGetTree.ts +0 -171
- package/src/funcs/wikisInspectRepository.ts +0 -166
- package/src/funcs/wikisList.ts +0 -176
- package/src/funcs/wikisListRuns.ts +0 -176
- package/src/funcs/wikisRefresh.ts +0 -174
- package/src/funcs/wikisSearch.ts +0 -177
- package/src/funcs/wikisUpdate.ts +0 -172
- package/src/funcs/wikisUpdatePage.ts +0 -174
- package/src/models/components/createwikirequest.ts +0 -67
- package/src/models/components/createwikiresponse.ts +0 -32
- package/src/models/components/deletewikiresponse.ts +0 -27
- package/src/models/components/getwikipageresponse.ts +0 -32
- package/src/models/components/getwikiresponse.ts +0 -32
- package/src/models/components/getwikitreeresponse.ts +0 -32
- package/src/models/components/inspectrepositorywikirequest.ts +0 -45
- package/src/models/components/inspectrepositorywikiresponse.ts +0 -38
- package/src/models/components/listwikirunsresponse.ts +0 -32
- package/src/models/components/listwikisresponse.ts +0 -39
- package/src/models/components/mcpenterpriseauthconfig.ts +0 -72
- package/src/models/components/mcpenterpriseauthconfigoutput.ts +0 -62
- package/src/models/components/refreshwikirequest.ts +0 -31
- package/src/models/components/refreshwikiresponse.ts +0 -32
- package/src/models/components/searchwikiresponse.ts +0 -32
- package/src/models/components/updatewikipagerequest.ts +0 -42
- package/src/models/components/updatewikipageresponse.ts +0 -32
- package/src/models/components/updatewikirequest.ts +0 -48
- package/src/models/components/updatewikiresponse.ts +0 -32
- package/src/models/components/wiki.ts +0 -91
- package/src/models/components/wikipage.ts +0 -58
- package/src/models/components/wikirepository.ts +0 -72
- package/src/models/components/wikirun.ts +0 -71
- package/src/models/components/wikirunstats.ts +0 -44
- package/src/models/components/wikisearchhit.ts +0 -45
- package/src/models/components/wikisettings.ts +0 -76
- package/src/models/components/wikitreepage.ts +0 -47
- package/src/models/operations/deletewiki.ts +0 -36
- package/src/models/operations/getwiki.ts +0 -32
- package/src/models/operations/getwikipage.ts +0 -43
- package/src/models/operations/getwikitree.ts +0 -36
- package/src/models/operations/listwikiruns.ts +0 -39
- package/src/models/operations/listwikis.ts +0 -54
- package/src/models/operations/refreshwiki.ts +0 -41
- package/src/models/operations/searchwiki.ts +0 -42
- package/src/models/operations/updatewiki.ts +0 -41
- package/src/models/operations/updatewikipage.ts +0 -41
- package/src/sdk/wikis.ts +0 -154
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
import { Wiki, Wiki$inboundSchema } from "./wiki.js";
|
|
10
|
-
|
|
11
|
-
export type GetWikiResponse = {
|
|
12
|
-
wiki?: Wiki | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const GetWikiResponse$inboundSchema: z.ZodType<
|
|
17
|
-
GetWikiResponse,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
wiki: Wiki$inboundSchema.optional(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export function getWikiResponseFromJSON(
|
|
25
|
-
jsonString: string,
|
|
26
|
-
): SafeParseResult<GetWikiResponse, SDKValidationError> {
|
|
27
|
-
return safeParse(
|
|
28
|
-
jsonString,
|
|
29
|
-
(x) => GetWikiResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
-
`Failed to parse 'GetWikiResponse' from JSON`,
|
|
31
|
-
);
|
|
32
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
import { WikiTreePage, WikiTreePage$inboundSchema } from "./wikitreepage.js";
|
|
10
|
-
|
|
11
|
-
export type GetWikiTreeResponse = {
|
|
12
|
-
pages?: Array<WikiTreePage> | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const GetWikiTreeResponse$inboundSchema: z.ZodType<
|
|
17
|
-
GetWikiTreeResponse,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
pages: z.array(WikiTreePage$inboundSchema).optional(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export function getWikiTreeResponseFromJSON(
|
|
25
|
-
jsonString: string,
|
|
26
|
-
): SafeParseResult<GetWikiTreeResponse, SDKValidationError> {
|
|
27
|
-
return safeParse(
|
|
28
|
-
jsonString,
|
|
29
|
-
(x) => GetWikiTreeResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
-
`Failed to parse 'GetWikiTreeResponse' from JSON`,
|
|
31
|
-
);
|
|
32
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
|
|
8
|
-
export type InspectRepositoryWikiRequest = {
|
|
9
|
-
scmConnectionId?: string | undefined;
|
|
10
|
-
repositoryUrl?: string | undefined;
|
|
11
|
-
branch?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type InspectRepositoryWikiRequest$Outbound = {
|
|
16
|
-
scm_connection_id?: string | undefined;
|
|
17
|
-
repository_url?: string | undefined;
|
|
18
|
-
branch?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const InspectRepositoryWikiRequest$outboundSchema: z.ZodType<
|
|
23
|
-
InspectRepositoryWikiRequest$Outbound,
|
|
24
|
-
z.ZodTypeDef,
|
|
25
|
-
InspectRepositoryWikiRequest
|
|
26
|
-
> = z.object({
|
|
27
|
-
scmConnectionId: z.string().optional(),
|
|
28
|
-
repositoryUrl: z.string().optional(),
|
|
29
|
-
branch: z.string().optional(),
|
|
30
|
-
}).transform((v) => {
|
|
31
|
-
return remap$(v, {
|
|
32
|
-
scmConnectionId: "scm_connection_id",
|
|
33
|
-
repositoryUrl: "repository_url",
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
export function inspectRepositoryWikiRequestToJSON(
|
|
38
|
-
inspectRepositoryWikiRequest: InspectRepositoryWikiRequest,
|
|
39
|
-
): string {
|
|
40
|
-
return JSON.stringify(
|
|
41
|
-
InspectRepositoryWikiRequest$outboundSchema.parse(
|
|
42
|
-
inspectRepositoryWikiRequest,
|
|
43
|
-
),
|
|
44
|
-
);
|
|
45
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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 InspectRepositoryWikiResponse = {
|
|
12
|
-
available?: boolean | undefined;
|
|
13
|
-
pageCount?: number | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const InspectRepositoryWikiResponse$inboundSchema: z.ZodType<
|
|
18
|
-
InspectRepositoryWikiResponse,
|
|
19
|
-
z.ZodTypeDef,
|
|
20
|
-
unknown
|
|
21
|
-
> = z.object({
|
|
22
|
-
available: z.boolean().optional(),
|
|
23
|
-
page_count: z.number().int().optional(),
|
|
24
|
-
}).transform((v) => {
|
|
25
|
-
return remap$(v, {
|
|
26
|
-
"page_count": "pageCount",
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export function inspectRepositoryWikiResponseFromJSON(
|
|
31
|
-
jsonString: string,
|
|
32
|
-
): SafeParseResult<InspectRepositoryWikiResponse, SDKValidationError> {
|
|
33
|
-
return safeParse(
|
|
34
|
-
jsonString,
|
|
35
|
-
(x) => InspectRepositoryWikiResponse$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
-
`Failed to parse 'InspectRepositoryWikiResponse' from JSON`,
|
|
37
|
-
);
|
|
38
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
import { WikiRun, WikiRun$inboundSchema } from "./wikirun.js";
|
|
10
|
-
|
|
11
|
-
export type ListWikiRunsResponse = {
|
|
12
|
-
data?: Array<WikiRun> | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const ListWikiRunsResponse$inboundSchema: z.ZodType<
|
|
17
|
-
ListWikiRunsResponse,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
data: z.array(WikiRun$inboundSchema).optional(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export function listWikiRunsResponseFromJSON(
|
|
25
|
-
jsonString: string,
|
|
26
|
-
): SafeParseResult<ListWikiRunsResponse, SDKValidationError> {
|
|
27
|
-
return safeParse(
|
|
28
|
-
jsonString,
|
|
29
|
-
(x) => ListWikiRunsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
-
`Failed to parse 'ListWikiRunsResponse' from JSON`,
|
|
31
|
-
);
|
|
32
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 { Wiki, Wiki$inboundSchema } from "./wiki.js";
|
|
11
|
-
|
|
12
|
-
export type ListWikisResponse = {
|
|
13
|
-
data?: Array<Wiki> | undefined;
|
|
14
|
-
hasMore?: boolean | undefined;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const ListWikisResponse$inboundSchema: z.ZodType<
|
|
19
|
-
ListWikisResponse,
|
|
20
|
-
z.ZodTypeDef,
|
|
21
|
-
unknown
|
|
22
|
-
> = z.object({
|
|
23
|
-
data: z.array(Wiki$inboundSchema).optional(),
|
|
24
|
-
has_more: z.boolean().optional(),
|
|
25
|
-
}).transform((v) => {
|
|
26
|
-
return remap$(v, {
|
|
27
|
-
"has_more": "hasMore",
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export function listWikisResponseFromJSON(
|
|
32
|
-
jsonString: string,
|
|
33
|
-
): SafeParseResult<ListWikisResponse, SDKValidationError> {
|
|
34
|
-
return safeParse(
|
|
35
|
-
jsonString,
|
|
36
|
-
(x) => ListWikisResponse$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
-
`Failed to parse 'ListWikisResponse' from JSON`,
|
|
38
|
-
);
|
|
39
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
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
|
-
|
|
8
|
-
/**
|
|
9
|
-
* McpEnterpriseAuthConfig is the client orq registered at the upstream's authorization
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* server for enterprise-managed authorization (ID-JAG). Access policy lives in the
|
|
13
|
-
* workspace's SSO identity provider; users must sign in through SSO to use the server.
|
|
14
|
-
*/
|
|
15
|
-
export type McpEnterpriseAuthConfig = {
|
|
16
|
-
/**
|
|
17
|
-
* RFC 9728 resource identifier the tokens are bound to; defaults to the connection URL.
|
|
18
|
-
*/
|
|
19
|
-
resource?: string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* OAuth client identifier registered at the upstream authorization server.
|
|
22
|
-
*/
|
|
23
|
-
clientId?: string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* OAuth client secret; accepted on write and never returned.
|
|
26
|
-
*/
|
|
27
|
-
clientSecret?: string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Redacted preview of `client_secret`, returned in its place.
|
|
30
|
-
*/
|
|
31
|
-
maskedValue?: string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Scopes requested when redeeming the identity assertion grant.
|
|
34
|
-
*/
|
|
35
|
-
scopes?: Array<string> | undefined;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type McpEnterpriseAuthConfig$Outbound = {
|
|
40
|
-
resource?: string | undefined;
|
|
41
|
-
client_id?: string | undefined;
|
|
42
|
-
client_secret?: string | undefined;
|
|
43
|
-
masked_value?: string | undefined;
|
|
44
|
-
scopes?: Array<string> | undefined;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const McpEnterpriseAuthConfig$outboundSchema: z.ZodType<
|
|
49
|
-
McpEnterpriseAuthConfig$Outbound,
|
|
50
|
-
z.ZodTypeDef,
|
|
51
|
-
McpEnterpriseAuthConfig
|
|
52
|
-
> = z.object({
|
|
53
|
-
resource: z.string().optional(),
|
|
54
|
-
clientId: z.string().optional(),
|
|
55
|
-
clientSecret: z.string().optional(),
|
|
56
|
-
maskedValue: z.string().optional(),
|
|
57
|
-
scopes: z.array(z.string()).optional(),
|
|
58
|
-
}).transform((v) => {
|
|
59
|
-
return remap$(v, {
|
|
60
|
-
clientId: "client_id",
|
|
61
|
-
clientSecret: "client_secret",
|
|
62
|
-
maskedValue: "masked_value",
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
export function mcpEnterpriseAuthConfigToJSON(
|
|
67
|
-
mcpEnterpriseAuthConfig: McpEnterpriseAuthConfig,
|
|
68
|
-
): string {
|
|
69
|
-
return JSON.stringify(
|
|
70
|
-
McpEnterpriseAuthConfig$outboundSchema.parse(mcpEnterpriseAuthConfig),
|
|
71
|
-
);
|
|
72
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
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
|
-
* McpEnterpriseAuthConfig is the client orq registered at the upstream's authorization
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* server for enterprise-managed authorization (ID-JAG). Access policy lives in the
|
|
16
|
-
* workspace's SSO identity provider; users must sign in through SSO to use the server.
|
|
17
|
-
*/
|
|
18
|
-
export type McpEnterpriseAuthConfigOutput = {
|
|
19
|
-
/**
|
|
20
|
-
* RFC 9728 resource identifier the tokens are bound to; defaults to the connection URL.
|
|
21
|
-
*/
|
|
22
|
-
resource?: string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* OAuth client identifier registered at the upstream authorization server.
|
|
25
|
-
*/
|
|
26
|
-
clientId?: string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Redacted preview of `client_secret`, returned in its place.
|
|
29
|
-
*/
|
|
30
|
-
maskedValue?: string | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Scopes requested when redeeming the identity assertion grant.
|
|
33
|
-
*/
|
|
34
|
-
scopes?: Array<string> | undefined;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const McpEnterpriseAuthConfigOutput$inboundSchema: z.ZodType<
|
|
39
|
-
McpEnterpriseAuthConfigOutput,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
unknown
|
|
42
|
-
> = z.object({
|
|
43
|
-
resource: z.string().optional(),
|
|
44
|
-
client_id: z.string().optional(),
|
|
45
|
-
masked_value: z.string().optional(),
|
|
46
|
-
scopes: z.array(z.string()).optional(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
"client_id": "clientId",
|
|
50
|
-
"masked_value": "maskedValue",
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
export function mcpEnterpriseAuthConfigOutputFromJSON(
|
|
55
|
-
jsonString: string,
|
|
56
|
-
): SafeParseResult<McpEnterpriseAuthConfigOutput, SDKValidationError> {
|
|
57
|
-
return safeParse(
|
|
58
|
-
jsonString,
|
|
59
|
-
(x) => McpEnterpriseAuthConfigOutput$inboundSchema.parse(JSON.parse(x)),
|
|
60
|
-
`Failed to parse 'McpEnterpriseAuthConfigOutput' from JSON`,
|
|
61
|
-
);
|
|
62
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
|
|
7
|
-
export type RefreshWikiRequest = {
|
|
8
|
-
full?: boolean | undefined;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/** @internal */
|
|
12
|
-
export type RefreshWikiRequest$Outbound = {
|
|
13
|
-
full?: boolean | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const RefreshWikiRequest$outboundSchema: z.ZodType<
|
|
18
|
-
RefreshWikiRequest$Outbound,
|
|
19
|
-
z.ZodTypeDef,
|
|
20
|
-
RefreshWikiRequest
|
|
21
|
-
> = z.object({
|
|
22
|
-
full: z.boolean().optional(),
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
export function refreshWikiRequestToJSON(
|
|
26
|
-
refreshWikiRequest: RefreshWikiRequest,
|
|
27
|
-
): string {
|
|
28
|
-
return JSON.stringify(
|
|
29
|
-
RefreshWikiRequest$outboundSchema.parse(refreshWikiRequest),
|
|
30
|
-
);
|
|
31
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
import { WikiRun, WikiRun$inboundSchema } from "./wikirun.js";
|
|
10
|
-
|
|
11
|
-
export type RefreshWikiResponse = {
|
|
12
|
-
run?: WikiRun | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const RefreshWikiResponse$inboundSchema: z.ZodType<
|
|
17
|
-
RefreshWikiResponse,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
run: WikiRun$inboundSchema.optional(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export function refreshWikiResponseFromJSON(
|
|
25
|
-
jsonString: string,
|
|
26
|
-
): SafeParseResult<RefreshWikiResponse, SDKValidationError> {
|
|
27
|
-
return safeParse(
|
|
28
|
-
jsonString,
|
|
29
|
-
(x) => RefreshWikiResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
-
`Failed to parse 'RefreshWikiResponse' from JSON`,
|
|
31
|
-
);
|
|
32
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
import { WikiSearchHit, WikiSearchHit$inboundSchema } from "./wikisearchhit.js";
|
|
10
|
-
|
|
11
|
-
export type SearchWikiResponse = {
|
|
12
|
-
hits?: Array<WikiSearchHit> | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const SearchWikiResponse$inboundSchema: z.ZodType<
|
|
17
|
-
SearchWikiResponse,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
hits: z.array(WikiSearchHit$inboundSchema).optional(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export function searchWikiResponseFromJSON(
|
|
25
|
-
jsonString: string,
|
|
26
|
-
): SafeParseResult<SearchWikiResponse, SDKValidationError> {
|
|
27
|
-
return safeParse(
|
|
28
|
-
jsonString,
|
|
29
|
-
(x) => SearchWikiResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
-
`Failed to parse 'SearchWikiResponse' from JSON`,
|
|
31
|
-
);
|
|
32
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
|
|
8
|
-
export type UpdateWikiPageRequest = {
|
|
9
|
-
path?: string | undefined;
|
|
10
|
-
markdown?: string | undefined;
|
|
11
|
-
expectedContentHash?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type UpdateWikiPageRequest$Outbound = {
|
|
16
|
-
path?: string | undefined;
|
|
17
|
-
markdown?: string | undefined;
|
|
18
|
-
expected_content_hash?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const UpdateWikiPageRequest$outboundSchema: z.ZodType<
|
|
23
|
-
UpdateWikiPageRequest$Outbound,
|
|
24
|
-
z.ZodTypeDef,
|
|
25
|
-
UpdateWikiPageRequest
|
|
26
|
-
> = z.object({
|
|
27
|
-
path: z.string().optional(),
|
|
28
|
-
markdown: z.string().optional(),
|
|
29
|
-
expectedContentHash: z.string().optional(),
|
|
30
|
-
}).transform((v) => {
|
|
31
|
-
return remap$(v, {
|
|
32
|
-
expectedContentHash: "expected_content_hash",
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export function updateWikiPageRequestToJSON(
|
|
37
|
-
updateWikiPageRequest: UpdateWikiPageRequest,
|
|
38
|
-
): string {
|
|
39
|
-
return JSON.stringify(
|
|
40
|
-
UpdateWikiPageRequest$outboundSchema.parse(updateWikiPageRequest),
|
|
41
|
-
);
|
|
42
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
import { WikiPage, WikiPage$inboundSchema } from "./wikipage.js";
|
|
10
|
-
|
|
11
|
-
export type UpdateWikiPageResponse = {
|
|
12
|
-
page?: WikiPage | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const UpdateWikiPageResponse$inboundSchema: z.ZodType<
|
|
17
|
-
UpdateWikiPageResponse,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
page: WikiPage$inboundSchema.optional(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export function updateWikiPageResponseFromJSON(
|
|
25
|
-
jsonString: string,
|
|
26
|
-
): SafeParseResult<UpdateWikiPageResponse, SDKValidationError> {
|
|
27
|
-
return safeParse(
|
|
28
|
-
jsonString,
|
|
29
|
-
(x) => UpdateWikiPageResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
-
`Failed to parse 'UpdateWikiPageResponse' from JSON`,
|
|
31
|
-
);
|
|
32
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
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 {
|
|
8
|
-
WikiSettings,
|
|
9
|
-
WikiSettings$Outbound,
|
|
10
|
-
WikiSettings$outboundSchema,
|
|
11
|
-
} from "./wikisettings.js";
|
|
12
|
-
|
|
13
|
-
export type UpdateWikiRequest = {
|
|
14
|
-
displayName?: string | undefined;
|
|
15
|
-
scmConnectionId?: string | undefined;
|
|
16
|
-
settings?: WikiSettings | undefined;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export type UpdateWikiRequest$Outbound = {
|
|
21
|
-
display_name?: string | undefined;
|
|
22
|
-
scm_connection_id?: string | undefined;
|
|
23
|
-
settings?: WikiSettings$Outbound | undefined;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const UpdateWikiRequest$outboundSchema: z.ZodType<
|
|
28
|
-
UpdateWikiRequest$Outbound,
|
|
29
|
-
z.ZodTypeDef,
|
|
30
|
-
UpdateWikiRequest
|
|
31
|
-
> = z.object({
|
|
32
|
-
displayName: z.string().optional(),
|
|
33
|
-
scmConnectionId: z.string().optional(),
|
|
34
|
-
settings: WikiSettings$outboundSchema.optional(),
|
|
35
|
-
}).transform((v) => {
|
|
36
|
-
return remap$(v, {
|
|
37
|
-
displayName: "display_name",
|
|
38
|
-
scmConnectionId: "scm_connection_id",
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export function updateWikiRequestToJSON(
|
|
43
|
-
updateWikiRequest: UpdateWikiRequest,
|
|
44
|
-
): string {
|
|
45
|
-
return JSON.stringify(
|
|
46
|
-
UpdateWikiRequest$outboundSchema.parse(updateWikiRequest),
|
|
47
|
-
);
|
|
48
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
import { Wiki, Wiki$inboundSchema } from "./wiki.js";
|
|
10
|
-
|
|
11
|
-
export type UpdateWikiResponse = {
|
|
12
|
-
wiki?: Wiki | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const UpdateWikiResponse$inboundSchema: z.ZodType<
|
|
17
|
-
UpdateWikiResponse,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
wiki: Wiki$inboundSchema.optional(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export function updateWikiResponseFromJSON(
|
|
25
|
-
jsonString: string,
|
|
26
|
-
): SafeParseResult<UpdateWikiResponse, SDKValidationError> {
|
|
27
|
-
return safeParse(
|
|
28
|
-
jsonString,
|
|
29
|
-
(x) => UpdateWikiResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
-
`Failed to parse 'UpdateWikiResponse' from JSON`,
|
|
31
|
-
);
|
|
32
|
-
}
|