@orq-ai/node 4.16.0-rc.4 → 4.16.0-rc.6
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 +64 -37
- package/funcs/wikisCreate.d.ts +11 -0
- package/funcs/wikisCreate.d.ts.map +1 -0
- package/funcs/wikisCreate.js +109 -0
- package/funcs/wikisCreate.js.map +1 -0
- package/funcs/wikisDelete.d.ts +12 -0
- package/funcs/wikisDelete.d.ts.map +1 -0
- package/funcs/wikisDelete.js +115 -0
- package/funcs/wikisDelete.js.map +1 -0
- package/funcs/wikisGet.d.ts +12 -0
- package/funcs/wikisGet.d.ts.map +1 -0
- package/funcs/wikisGet.js +115 -0
- package/funcs/wikisGet.js.map +1 -0
- package/funcs/wikisGetPage.d.ts +12 -0
- package/funcs/wikisGetPage.d.ts.map +1 -0
- package/funcs/wikisGetPage.js +120 -0
- package/funcs/wikisGetPage.js.map +1 -0
- package/funcs/wikisGetTree.d.ts +12 -0
- package/funcs/wikisGetTree.d.ts.map +1 -0
- package/funcs/wikisGetTree.js +115 -0
- package/funcs/wikisGetTree.js.map +1 -0
- package/funcs/wikisInspectRepository.d.ts +11 -0
- package/funcs/wikisInspectRepository.d.ts.map +1 -0
- package/funcs/wikisInspectRepository.js +109 -0
- package/funcs/wikisInspectRepository.js.map +1 -0
- package/funcs/wikisList.d.ts +12 -0
- package/funcs/wikisList.d.ts.map +1 -0
- package/funcs/wikisList.js +118 -0
- package/funcs/wikisList.js.map +1 -0
- package/funcs/wikisListRuns.d.ts +12 -0
- package/funcs/wikisListRuns.d.ts.map +1 -0
- package/funcs/wikisListRuns.js +119 -0
- package/funcs/wikisListRuns.js.map +1 -0
- package/funcs/wikisRefresh.d.ts +12 -0
- package/funcs/wikisRefresh.d.ts.map +1 -0
- package/funcs/wikisRefresh.js +118 -0
- package/funcs/wikisRefresh.js.map +1 -0
- package/funcs/wikisSearch.d.ts +12 -0
- package/funcs/wikisSearch.d.ts.map +1 -0
- package/funcs/wikisSearch.js +120 -0
- package/funcs/wikisSearch.js.map +1 -0
- package/funcs/wikisUpdate.d.ts +12 -0
- package/funcs/wikisUpdate.d.ts.map +1 -0
- package/funcs/wikisUpdate.js +116 -0
- package/funcs/wikisUpdate.js.map +1 -0
- package/funcs/wikisUpdatePage.d.ts +12 -0
- package/funcs/wikisUpdatePage.d.ts.map +1 -0
- package/funcs/wikisUpdatePage.js +118 -0
- package/funcs/wikisUpdatePage.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/createapikeyrequest.d.ts +2 -2
- package/models/components/createapikeyrequest.d.ts.map +1 -1
- package/models/components/createapikeyrequest.js +1 -1
- package/models/components/createapikeyrequest.js.map +1 -1
- package/models/components/createwikirequest.d.ts +26 -0
- package/models/components/createwikirequest.d.ts.map +1 -0
- package/models/components/createwikirequest.js +65 -0
- package/models/components/createwikirequest.js.map +1 -0
- package/models/components/createwikiresponse.d.ts +11 -0
- package/models/components/createwikiresponse.d.ts.map +1 -0
- package/models/components/createwikiresponse.js +51 -0
- package/models/components/createwikiresponse.js.map +1 -0
- package/models/components/deletewikiresponse.d.ts +8 -0
- package/models/components/deletewikiresponse.d.ts.map +1 -0
- package/models/components/deletewikiresponse.js +48 -0
- package/models/components/deletewikiresponse.js.map +1 -0
- package/models/components/getwikipageresponse.d.ts +11 -0
- package/models/components/getwikipageresponse.d.ts.map +1 -0
- package/models/components/getwikipageresponse.js +51 -0
- package/models/components/getwikipageresponse.js.map +1 -0
- package/models/components/getwikiresponse.d.ts +11 -0
- package/models/components/getwikiresponse.d.ts.map +1 -0
- package/models/components/getwikiresponse.js +51 -0
- package/models/components/getwikiresponse.js.map +1 -0
- package/models/components/getwikitreeresponse.d.ts +11 -0
- package/models/components/getwikitreeresponse.d.ts.map +1 -0
- package/models/components/getwikitreeresponse.js +51 -0
- package/models/components/getwikitreeresponse.js.map +1 -0
- package/models/components/index.d.ts +25 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +25 -0
- package/models/components/index.js.map +1 -1
- package/models/components/inspectrepositorywikirequest.d.ts +16 -0
- package/models/components/inspectrepositorywikirequest.d.ts.map +1 -0
- package/models/components/inspectrepositorywikirequest.js +57 -0
- package/models/components/inspectrepositorywikirequest.js.map +1 -0
- package/models/components/inspectrepositorywikiresponse.d.ts +11 -0
- package/models/components/inspectrepositorywikiresponse.d.ts.map +1 -0
- package/models/components/inspectrepositorywikiresponse.js +56 -0
- package/models/components/inspectrepositorywikiresponse.js.map +1 -0
- package/models/components/listwikirunsresponse.d.ts +11 -0
- package/models/components/listwikirunsresponse.d.ts.map +1 -0
- package/models/components/listwikirunsresponse.js +51 -0
- package/models/components/listwikirunsresponse.js.map +1 -0
- package/models/components/listwikisresponse.d.ts +12 -0
- package/models/components/listwikisresponse.d.ts.map +1 -0
- package/models/components/listwikisresponse.js +57 -0
- package/models/components/listwikisresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/refreshwikirequest.d.ts +12 -0
- package/models/components/refreshwikirequest.d.ts.map +1 -0
- package/models/components/refreshwikirequest.js +49 -0
- package/models/components/refreshwikirequest.js.map +1 -0
- package/models/components/refreshwikiresponse.d.ts +11 -0
- package/models/components/refreshwikiresponse.d.ts.map +1 -0
- package/models/components/refreshwikiresponse.js +51 -0
- package/models/components/refreshwikiresponse.js.map +1 -0
- package/models/components/searchwikiresponse.d.ts +11 -0
- package/models/components/searchwikiresponse.d.ts.map +1 -0
- package/models/components/searchwikiresponse.js +51 -0
- package/models/components/searchwikiresponse.js.map +1 -0
- package/models/components/updatewikipagerequest.d.ts +16 -0
- package/models/components/updatewikipagerequest.d.ts.map +1 -0
- package/models/components/updatewikipagerequest.js +56 -0
- package/models/components/updatewikipagerequest.js.map +1 -0
- package/models/components/updatewikipageresponse.d.ts +11 -0
- package/models/components/updatewikipageresponse.d.ts.map +1 -0
- package/models/components/updatewikipageresponse.js +51 -0
- package/models/components/updatewikipageresponse.js.map +1 -0
- package/models/components/updatewikirequest.d.ts +17 -0
- package/models/components/updatewikirequest.d.ts.map +1 -0
- package/models/components/updatewikirequest.js +58 -0
- package/models/components/updatewikirequest.js.map +1 -0
- package/models/components/updatewikiresponse.d.ts +11 -0
- package/models/components/updatewikiresponse.d.ts.map +1 -0
- package/models/components/updatewikiresponse.js +51 -0
- package/models/components/updatewikiresponse.js.map +1 -0
- package/models/components/wiki.d.ts +29 -0
- package/models/components/wiki.d.ts.map +1 -0
- package/models/components/wiki.js +88 -0
- package/models/components/wiki.js.map +1 -0
- package/models/components/wikipage.d.ts +19 -0
- package/models/components/wikipage.d.ts.map +1 -0
- package/models/components/wikipage.js +68 -0
- package/models/components/wikipage.js.map +1 -0
- package/models/components/wikirepository.d.ts +25 -0
- package/models/components/wikirepository.d.ts.map +1 -0
- package/models/components/wikirepository.js +75 -0
- package/models/components/wikirepository.js.map +1 -0
- package/models/components/wikirun.d.ts +25 -0
- package/models/components/wikirun.d.ts.map +1 -0
- package/models/components/wikirun.js +79 -0
- package/models/components/wikirun.js.map +1 -0
- package/models/components/wikirunstats.d.ts +13 -0
- package/models/components/wikirunstats.d.ts.map +1 -0
- package/models/components/wikirunstats.js +60 -0
- package/models/components/wikirunstats.js.map +1 -0
- package/models/components/wikisearchhit.d.ts +14 -0
- package/models/components/wikisearchhit.d.ts.map +1 -0
- package/models/components/wikisearchhit.js +60 -0
- package/models/components/wikisearchhit.js.map +1 -0
- package/models/components/wikisettings.d.ts +25 -0
- package/models/components/wikisettings.d.ts.map +1 -0
- package/models/components/wikisettings.js +79 -0
- package/models/components/wikisettings.js.map +1 -0
- package/models/components/wikitreepage.d.ts +15 -0
- package/models/components/wikitreepage.d.ts.map +1 -0
- package/models/components/wikitreepage.js +61 -0
- package/models/components/wikitreepage.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/deletewiki.d.ts +12 -0
- package/models/operations/deletewiki.d.ts.map +1 -0
- package/models/operations/deletewiki.js +54 -0
- package/models/operations/deletewiki.js.map +1 -0
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/getwiki.d.ts +12 -0
- package/models/operations/getwiki.d.ts.map +1 -0
- package/models/operations/getwiki.js +54 -0
- package/models/operations/getwiki.js.map +1 -0
- package/models/operations/getwikipage.d.ts +16 -0
- package/models/operations/getwikipage.d.ts.map +1 -0
- package/models/operations/getwikipage.js +57 -0
- package/models/operations/getwikipage.js.map +1 -0
- package/models/operations/getwikitree.d.ts +12 -0
- package/models/operations/getwikitree.d.ts.map +1 -0
- package/models/operations/getwikitree.js +54 -0
- package/models/operations/getwikitree.js.map +1 -0
- package/models/operations/index.d.ts +10 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +10 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listwikiruns.d.ts +14 -0
- package/models/operations/listwikiruns.d.ts.map +1 -0
- package/models/operations/listwikiruns.js +55 -0
- package/models/operations/listwikiruns.js.map +1 -0
- package/models/operations/listwikis.d.ts +22 -0
- package/models/operations/listwikis.d.ts.map +1 -0
- package/models/operations/listwikis.js +62 -0
- package/models/operations/listwikis.js.map +1 -0
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/refreshwiki.d.ts +15 -0
- package/models/operations/refreshwiki.d.ts.map +1 -0
- package/models/operations/refreshwiki.js +57 -0
- package/models/operations/refreshwiki.js.map +1 -0
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/searchwiki.d.ts +16 -0
- package/models/operations/searchwiki.d.ts.map +1 -0
- package/models/operations/searchwiki.js +56 -0
- package/models/operations/searchwiki.js.map +1 -0
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/models/operations/updatewiki.d.ts +15 -0
- package/models/operations/updatewiki.d.ts.map +1 -0
- package/models/operations/updatewiki.js +57 -0
- package/models/operations/updatewiki.js.map +1 -0
- package/models/operations/updatewikipage.d.ts +15 -0
- package/models/operations/updatewikipage.d.ts.map +1 -0
- package/models/operations/updatewikipage.js +57 -0
- package/models/operations/updatewikipage.js.map +1 -0
- package/package.json +3 -3
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/wikis.d.ts +18 -0
- package/sdk/wikis.d.ts.map +1 -0
- package/sdk/wikis.js +60 -0
- package/sdk/wikis.js.map +1 -0
- package/src/funcs/wikisCreate.ts +156 -0
- package/src/funcs/wikisDelete.ts +162 -0
- package/src/funcs/wikisGet.ts +162 -0
- package/src/funcs/wikisGetPage.ts +168 -0
- package/src/funcs/wikisGetTree.ts +162 -0
- package/src/funcs/wikisInspectRepository.ts +157 -0
- package/src/funcs/wikisList.ts +167 -0
- package/src/funcs/wikisListRuns.ts +167 -0
- package/src/funcs/wikisRefresh.ts +165 -0
- package/src/funcs/wikisSearch.ts +168 -0
- package/src/funcs/wikisUpdate.ts +163 -0
- package/src/funcs/wikisUpdatePage.ts +165 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/createapikeyrequest.ts +3 -3
- package/src/models/components/createwikirequest.ts +67 -0
- package/src/models/components/createwikiresponse.ts +32 -0
- package/src/models/components/deletewikiresponse.ts +27 -0
- package/src/models/components/getwikipageresponse.ts +32 -0
- package/src/models/components/getwikiresponse.ts +32 -0
- package/src/models/components/getwikitreeresponse.ts +32 -0
- package/src/models/components/index.ts +25 -0
- package/src/models/components/inspectrepositorywikirequest.ts +45 -0
- package/src/models/components/inspectrepositorywikiresponse.ts +38 -0
- package/src/models/components/listwikirunsresponse.ts +32 -0
- package/src/models/components/listwikisresponse.ts +39 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/refreshwikirequest.ts +31 -0
- package/src/models/components/refreshwikiresponse.ts +32 -0
- package/src/models/components/searchwikiresponse.ts +32 -0
- package/src/models/components/updatewikipagerequest.ts +42 -0
- package/src/models/components/updatewikipageresponse.ts +32 -0
- package/src/models/components/updatewikirequest.ts +48 -0
- package/src/models/components/updatewikiresponse.ts +32 -0
- package/src/models/components/wiki.ts +91 -0
- package/src/models/components/wikipage.ts +58 -0
- package/src/models/components/wikirepository.ts +72 -0
- package/src/models/components/wikirun.ts +71 -0
- package/src/models/components/wikirunstats.ts +44 -0
- package/src/models/components/wikisearchhit.ts +45 -0
- package/src/models/components/wikisettings.ts +76 -0
- package/src/models/components/wikitreepage.ts +47 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deletewiki.ts +36 -0
- 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/getwiki.ts +32 -0
- package/src/models/operations/getwikipage.ts +43 -0
- package/src/models/operations/getwikitree.ts +36 -0
- package/src/models/operations/index.ts +10 -0
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listwikiruns.ts +39 -0
- package/src/models/operations/listwikis.ts +54 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/refreshwiki.ts +41 -0
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/searchwiki.ts +42 -0
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/models/operations/updatewiki.ts +41 -0
- package/src/models/operations/updatewikipage.ts +41 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/wikis.ts +154 -0
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
WikiRepository,
|
|
9
|
+
WikiRepository$Outbound,
|
|
10
|
+
WikiRepository$outboundSchema,
|
|
11
|
+
} from "./wikirepository.js";
|
|
12
|
+
import {
|
|
13
|
+
WikiSettings,
|
|
14
|
+
WikiSettings$Outbound,
|
|
15
|
+
WikiSettings$outboundSchema,
|
|
16
|
+
} from "./wikisettings.js";
|
|
17
|
+
|
|
18
|
+
export type CreateWikiRequest = {
|
|
19
|
+
displayName?: string | undefined;
|
|
20
|
+
repository?: WikiRepository | undefined;
|
|
21
|
+
branch?: string | undefined;
|
|
22
|
+
scmConnectionId?: string | undefined;
|
|
23
|
+
settings?: WikiSettings | undefined;
|
|
24
|
+
importExisting?: boolean | undefined;
|
|
25
|
+
factoryId?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type CreateWikiRequest$Outbound = {
|
|
30
|
+
display_name?: string | undefined;
|
|
31
|
+
repository?: WikiRepository$Outbound | undefined;
|
|
32
|
+
branch?: string | undefined;
|
|
33
|
+
scm_connection_id?: string | undefined;
|
|
34
|
+
settings?: WikiSettings$Outbound | undefined;
|
|
35
|
+
import_existing?: boolean | undefined;
|
|
36
|
+
factory_id?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const CreateWikiRequest$outboundSchema: z.ZodType<
|
|
41
|
+
CreateWikiRequest$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
CreateWikiRequest
|
|
44
|
+
> = z.object({
|
|
45
|
+
displayName: z.string().optional(),
|
|
46
|
+
repository: WikiRepository$outboundSchema.optional(),
|
|
47
|
+
branch: z.string().optional(),
|
|
48
|
+
scmConnectionId: z.string().optional(),
|
|
49
|
+
settings: WikiSettings$outboundSchema.optional(),
|
|
50
|
+
importExisting: z.boolean().optional(),
|
|
51
|
+
factoryId: z.string().optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
displayName: "display_name",
|
|
55
|
+
scmConnectionId: "scm_connection_id",
|
|
56
|
+
importExisting: "import_existing",
|
|
57
|
+
factoryId: "factory_id",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function createWikiRequestToJSON(
|
|
62
|
+
createWikiRequest: CreateWikiRequest,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
CreateWikiRequest$outboundSchema.parse(createWikiRequest),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 CreateWikiResponse = {
|
|
12
|
+
wiki?: Wiki | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const CreateWikiResponse$inboundSchema: z.ZodType<
|
|
17
|
+
CreateWikiResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
wiki: Wiki$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function createWikiResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<CreateWikiResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => CreateWikiResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'CreateWikiResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
export type DeleteWikiResponse = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const DeleteWikiResponse$inboundSchema: z.ZodType<
|
|
14
|
+
DeleteWikiResponse,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function deleteWikiResponseFromJSON(
|
|
20
|
+
jsonString: string,
|
|
21
|
+
): SafeParseResult<DeleteWikiResponse, SDKValidationError> {
|
|
22
|
+
return safeParse(
|
|
23
|
+
jsonString,
|
|
24
|
+
(x) => DeleteWikiResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
+
`Failed to parse 'DeleteWikiResponse' from JSON`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GetWikiPageResponse = {
|
|
12
|
+
page?: WikiPage | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const GetWikiPageResponse$inboundSchema: z.ZodType<
|
|
17
|
+
GetWikiPageResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
page: WikiPage$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function getWikiPageResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<GetWikiPageResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => GetWikiPageResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'GetWikiPageResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -136,6 +136,8 @@ export * from "./createsmartrouterrequest.js";
|
|
|
136
136
|
export * from "./createsmartrouterresponse.js";
|
|
137
137
|
export * from "./createthreadrequest.js";
|
|
138
138
|
export * from "./createwebhookrequest.js";
|
|
139
|
+
export * from "./createwikirequest.js";
|
|
140
|
+
export * from "./createwikiresponse.js";
|
|
139
141
|
export * from "./currentdatetoolinput.js";
|
|
140
142
|
export * from "./datapart.js";
|
|
141
143
|
export * from "./datapoint.js";
|
|
@@ -164,6 +166,7 @@ export * from "./deleteprojectresponse.js";
|
|
|
164
166
|
export * from "./deleteskillresponse.js";
|
|
165
167
|
export * from "./deletesmartrouterresponse.js";
|
|
166
168
|
export * from "./deletewebhookresponse.js";
|
|
169
|
+
export * from "./deletewikiresponse.js";
|
|
167
170
|
export * from "./detectrequest.js";
|
|
168
171
|
export * from "./detectresponse.js";
|
|
169
172
|
export * from "./domain.js";
|
|
@@ -240,6 +243,9 @@ export * from "./getthreadcountresponse.js";
|
|
|
240
243
|
export * from "./gettraceresponse.js";
|
|
241
244
|
export * from "./gettracespanresponse.js";
|
|
242
245
|
export * from "./getuploadfileurlresponse.js";
|
|
246
|
+
export * from "./getwikipageresponse.js";
|
|
247
|
+
export * from "./getwikiresponse.js";
|
|
248
|
+
export * from "./getwikitreeresponse.js";
|
|
243
249
|
export * from "./getworkspaceresponse.js";
|
|
244
250
|
export * from "./getworkspacesettingsresponse.js";
|
|
245
251
|
export * from "./googlesearchtoolinput.js";
|
|
@@ -259,6 +265,8 @@ export * from "./identitysortfield.js";
|
|
|
259
265
|
export * from "./imagecontentpartschema.js";
|
|
260
266
|
export * from "./incompletedetails.js";
|
|
261
267
|
export * from "./inputtokensdetails.js";
|
|
268
|
+
export * from "./inspectrepositorywikirequest.js";
|
|
269
|
+
export * from "./inspectrepositorywikiresponse.js";
|
|
262
270
|
export * from "./internalretrievalconfig.js";
|
|
263
271
|
export * from "./invokedeploymentrequest.js";
|
|
264
272
|
export * from "./invokeevaluatorrequest.js";
|
|
@@ -320,6 +328,8 @@ export * from "./listtracefieldsresponse.js";
|
|
|
320
328
|
export * from "./listtracelogsresponse.js";
|
|
321
329
|
export * from "./listtracespansresponse.js";
|
|
322
330
|
export * from "./listwebhooksresponse.js";
|
|
331
|
+
export * from "./listwikirunsresponse.js";
|
|
332
|
+
export * from "./listwikisresponse.js";
|
|
323
333
|
export * from "./listworkspacesresponse.js";
|
|
324
334
|
export * from "./litellmmodel.js";
|
|
325
335
|
export * from "./litellmmodelinfo.js";
|
|
@@ -445,6 +455,8 @@ export * from "./reasoningpartschema.js";
|
|
|
445
455
|
export * from "./redactedreasoningpartschema.js";
|
|
446
456
|
export * from "./redactrequest.js";
|
|
447
457
|
export * from "./redactresponse.js";
|
|
458
|
+
export * from "./refreshwikirequest.js";
|
|
459
|
+
export * from "./refreshwikiresponse.js";
|
|
448
460
|
export * from "./refusalpartschema.js";
|
|
449
461
|
export * from "./removeannotationqueueitemsrequest.js";
|
|
450
462
|
export * from "./requestlimit.js";
|
|
@@ -543,6 +555,7 @@ export * from "./searchretrievalconfig.js";
|
|
|
543
555
|
export * from "./searchtracesrequest.js";
|
|
544
556
|
export * from "./searchtracesresponse.js";
|
|
545
557
|
export * from "./searchtype.js";
|
|
558
|
+
export * from "./searchwikiresponse.js";
|
|
546
559
|
export * from "./security.js";
|
|
547
560
|
export * from "./securityconfig.js";
|
|
548
561
|
export * from "./servertoolusedetails.js";
|
|
@@ -651,6 +664,10 @@ export * from "./updateskillresponse.js";
|
|
|
651
664
|
export * from "./updatesmartrouterrequest.js";
|
|
652
665
|
export * from "./updatesmartrouterresponse.js";
|
|
653
666
|
export * from "./updatethreadrequest.js";
|
|
667
|
+
export * from "./updatewikipagerequest.js";
|
|
668
|
+
export * from "./updatewikipageresponse.js";
|
|
669
|
+
export * from "./updatewikirequest.js";
|
|
670
|
+
export * from "./updatewikiresponse.js";
|
|
654
671
|
export * from "./updateworkspacerequest.js";
|
|
655
672
|
export * from "./updateworkspaceresponse.js";
|
|
656
673
|
export * from "./updateworkspacesettingsrequest.js";
|
|
@@ -668,6 +685,14 @@ export * from "./vertexparamrange.js";
|
|
|
668
685
|
export * from "./vertexparamrangeint.js";
|
|
669
686
|
export * from "./webhook.js";
|
|
670
687
|
export * from "./webscrapertoolinput.js";
|
|
688
|
+
export * from "./wiki.js";
|
|
689
|
+
export * from "./wikipage.js";
|
|
690
|
+
export * from "./wikirepository.js";
|
|
691
|
+
export * from "./wikirun.js";
|
|
692
|
+
export * from "./wikirunstats.js";
|
|
693
|
+
export * from "./wikisearchhit.js";
|
|
694
|
+
export * from "./wikisettings.js";
|
|
695
|
+
export * from "./wikitreepage.js";
|
|
671
696
|
export * from "./workspace.js";
|
|
672
697
|
export * from "./workspacebudgetscope.js";
|
|
673
698
|
export * from "./workspacecapabilities.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
}
|
|
@@ -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 { 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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
}
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m2wz2fzs3xn9aagzx9kap53m"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|