@orq-ai/node 4.17.13 → 4.17.15

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.
Files changed (131) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createtool.js +4 -4
  7. package/models/operations/getalltools.js +4 -4
  8. package/models/operations/getv2humanevalsets.js +2 -2
  9. package/models/operations/getv2humanevalsetsid.js +2 -2
  10. package/models/operations/listdeploymentversions.js +1 -1
  11. package/models/operations/patchv2humanevalsetsid.js +2 -2
  12. package/models/operations/postv2humanevalsets.js +2 -2
  13. package/models/operations/retrievetool.js +4 -4
  14. package/models/operations/runagent.js +1 -1
  15. package/models/operations/streamrunagent.js +1 -1
  16. package/models/operations/updatetool.js +4 -4
  17. package/package.json +5 -5
  18. package/packages/orq-rc/src/lib/config.ts +3 -3
  19. package/packages/orq-rc/src/models/components/budgetscope.ts +2 -2
  20. package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +2 -2
  21. package/packages/orq-rc/src/models/components/budgetusage.ts +1 -4
  22. package/packages/orq-rc/src/models/components/classifypromptcacheoptions.ts +76 -0
  23. package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +11 -0
  24. package/packages/orq-rc/src/models/components/index.ts +2 -27
  25. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +67 -10
  26. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +57 -8
  27. package/packages/orq-rc/src/models/components/mcpgateway.ts +15 -0
  28. package/packages/orq-rc/src/models/components/mcpoauthconfig.ts +19 -1
  29. package/packages/orq-rc/src/models/components/mcpoauthconfigoutput.ts +17 -1
  30. package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
  31. package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +13 -8
  32. package/packages/orq-rc/src/models/components/providerbudgetscope.ts +2 -2
  33. package/packages/orq-rc/src/models/components/querylogsresponse.ts +1 -1
  34. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  35. package/packages/orq-rc/src/models/components/spansummary.ts +29 -5
  36. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +32 -0
  37. package/packages/orq-rc/src/models/components/thinkingconfigbetweentoolsschema.ts +104 -0
  38. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +27 -0
  39. package/packages/orq-rc/src/models/components/thinkingparam.ts +7 -6
  40. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +11 -0
  41. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
  42. package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -6
  43. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +8 -2
  44. package/packages/orq-rc/src/models/operations/createclassify.ts +25 -11
  45. package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -2
  46. package/packages/orq-rc/src/models/operations/createdecisions.ts +25 -11
  47. package/packages/orq-rc/src/models/operations/createprompt.ts +13 -3
  48. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  49. package/packages/orq-rc/src/models/operations/getallprompts.ts +5 -1
  50. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  51. package/packages/orq-rc/src/models/operations/getoneprompt.ts +5 -1
  52. package/packages/orq-rc/src/models/operations/getpromptversion.ts +5 -1
  53. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/index.ts +0 -10
  56. package/packages/orq-rc/src/models/operations/listagents.ts +10 -2
  57. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
  58. package/packages/orq-rc/src/models/operations/listpromptversions.ts +5 -1
  59. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +10 -2
  62. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  63. package/packages/orq-rc/src/models/operations/runagent.ts +17 -5
  64. package/packages/orq-rc/src/models/operations/streamrunagent.ts +17 -5
  65. package/packages/orq-rc/src/models/operations/updateagent.ts +26 -6
  66. package/packages/orq-rc/src/models/operations/updateprompt.ts +13 -3
  67. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  68. package/packages/orq-rc/src/sdk/sdk.ts +0 -6
  69. package/src/lib/config.ts +3 -3
  70. package/src/models/components/reasoningpart.ts +1 -1
  71. package/src/models/operations/createtool.ts +4 -4
  72. package/src/models/operations/getalltools.ts +4 -4
  73. package/src/models/operations/getv2humanevalsets.ts +2 -2
  74. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  75. package/src/models/operations/listdeploymentversions.ts +1 -1
  76. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  77. package/src/models/operations/postv2humanevalsets.ts +2 -2
  78. package/src/models/operations/retrievetool.ts +4 -4
  79. package/src/models/operations/runagent.ts +1 -1
  80. package/src/models/operations/streamrunagent.ts +1 -1
  81. package/src/models/operations/updatetool.ts +4 -4
  82. package/packages/orq-rc/src/funcs/wikisCreate.ts +0 -165
  83. package/packages/orq-rc/src/funcs/wikisDelete.ts +0 -171
  84. package/packages/orq-rc/src/funcs/wikisGet.ts +0 -171
  85. package/packages/orq-rc/src/funcs/wikisGetPage.ts +0 -177
  86. package/packages/orq-rc/src/funcs/wikisGetTree.ts +0 -171
  87. package/packages/orq-rc/src/funcs/wikisInspectRepository.ts +0 -166
  88. package/packages/orq-rc/src/funcs/wikisList.ts +0 -176
  89. package/packages/orq-rc/src/funcs/wikisListRuns.ts +0 -176
  90. package/packages/orq-rc/src/funcs/wikisRefresh.ts +0 -174
  91. package/packages/orq-rc/src/funcs/wikisSearch.ts +0 -177
  92. package/packages/orq-rc/src/funcs/wikisUpdate.ts +0 -172
  93. package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +0 -174
  94. package/packages/orq-rc/src/models/components/createwikirequest.ts +0 -67
  95. package/packages/orq-rc/src/models/components/createwikiresponse.ts +0 -32
  96. package/packages/orq-rc/src/models/components/deletewikiresponse.ts +0 -27
  97. package/packages/orq-rc/src/models/components/getwikipageresponse.ts +0 -32
  98. package/packages/orq-rc/src/models/components/getwikiresponse.ts +0 -32
  99. package/packages/orq-rc/src/models/components/getwikitreeresponse.ts +0 -32
  100. package/packages/orq-rc/src/models/components/inspectrepositorywikirequest.ts +0 -45
  101. package/packages/orq-rc/src/models/components/inspectrepositorywikiresponse.ts +0 -38
  102. package/packages/orq-rc/src/models/components/listwikirunsresponse.ts +0 -32
  103. package/packages/orq-rc/src/models/components/listwikisresponse.ts +0 -39
  104. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfig.ts +0 -72
  105. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfigoutput.ts +0 -62
  106. package/packages/orq-rc/src/models/components/refreshwikirequest.ts +0 -31
  107. package/packages/orq-rc/src/models/components/refreshwikiresponse.ts +0 -32
  108. package/packages/orq-rc/src/models/components/searchwikiresponse.ts +0 -32
  109. package/packages/orq-rc/src/models/components/updatewikipagerequest.ts +0 -42
  110. package/packages/orq-rc/src/models/components/updatewikipageresponse.ts +0 -32
  111. package/packages/orq-rc/src/models/components/updatewikirequest.ts +0 -48
  112. package/packages/orq-rc/src/models/components/updatewikiresponse.ts +0 -32
  113. package/packages/orq-rc/src/models/components/wiki.ts +0 -91
  114. package/packages/orq-rc/src/models/components/wikipage.ts +0 -58
  115. package/packages/orq-rc/src/models/components/wikirepository.ts +0 -72
  116. package/packages/orq-rc/src/models/components/wikirun.ts +0 -71
  117. package/packages/orq-rc/src/models/components/wikirunstats.ts +0 -44
  118. package/packages/orq-rc/src/models/components/wikisearchhit.ts +0 -45
  119. package/packages/orq-rc/src/models/components/wikisettings.ts +0 -76
  120. package/packages/orq-rc/src/models/components/wikitreepage.ts +0 -47
  121. package/packages/orq-rc/src/models/operations/deletewiki.ts +0 -36
  122. package/packages/orq-rc/src/models/operations/getwiki.ts +0 -32
  123. package/packages/orq-rc/src/models/operations/getwikipage.ts +0 -43
  124. package/packages/orq-rc/src/models/operations/getwikitree.ts +0 -36
  125. package/packages/orq-rc/src/models/operations/listwikiruns.ts +0 -39
  126. package/packages/orq-rc/src/models/operations/listwikis.ts +0 -54
  127. package/packages/orq-rc/src/models/operations/refreshwiki.ts +0 -41
  128. package/packages/orq-rc/src/models/operations/searchwiki.ts +0 -42
  129. package/packages/orq-rc/src/models/operations/updatewiki.ts +0 -41
  130. package/packages/orq-rc/src/models/operations/updatewikipage.ts +0 -41
  131. package/packages/orq-rc/src/sdk/wikis.ts +0 -154
@@ -1,71 +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 { WikiRunStats, WikiRunStats$inboundSchema } from "./wikirunstats.js";
11
-
12
- export type WikiRun = {
13
- runId?: string | undefined;
14
- workspaceId?: string | undefined;
15
- wikiId?: string | undefined;
16
- agentSessionId?: string | undefined;
17
- agentSessionRunId?: string | undefined;
18
- kind?: string | undefined;
19
- trigger?: string | undefined;
20
- pullRequestUrl?: string | undefined;
21
- baseCommit?: string | undefined;
22
- headCommit?: string | undefined;
23
- status?: string | undefined;
24
- error?: string | undefined;
25
- stats?: WikiRunStats | undefined;
26
- started?: Date | undefined;
27
- finished?: Date | undefined;
28
- };
29
-
30
- /** @internal */
31
- export const WikiRun$inboundSchema: z.ZodType<WikiRun, z.ZodTypeDef, unknown> =
32
- z.object({
33
- run_id: z.string().optional(),
34
- workspace_id: z.string().optional(),
35
- wiki_id: z.string().optional(),
36
- agent_session_id: z.string().optional(),
37
- agent_session_run_id: z.string().optional(),
38
- kind: z.string().optional(),
39
- trigger: z.string().optional(),
40
- pull_request_url: z.string().optional(),
41
- base_commit: z.string().optional(),
42
- head_commit: z.string().optional(),
43
- status: z.string().optional(),
44
- error: z.string().optional(),
45
- stats: WikiRunStats$inboundSchema.optional(),
46
- started: z.string().datetime({ offset: true }).transform(v => new Date(v))
47
- .optional(),
48
- finished: z.string().datetime({ offset: true }).transform(v => new Date(v))
49
- .optional(),
50
- }).transform((v) => {
51
- return remap$(v, {
52
- "run_id": "runId",
53
- "workspace_id": "workspaceId",
54
- "wiki_id": "wikiId",
55
- "agent_session_id": "agentSessionId",
56
- "agent_session_run_id": "agentSessionRunId",
57
- "pull_request_url": "pullRequestUrl",
58
- "base_commit": "baseCommit",
59
- "head_commit": "headCommit",
60
- });
61
- });
62
-
63
- export function wikiRunFromJSON(
64
- jsonString: string,
65
- ): SafeParseResult<WikiRun, SDKValidationError> {
66
- return safeParse(
67
- jsonString,
68
- (x) => WikiRun$inboundSchema.parse(JSON.parse(x)),
69
- `Failed to parse 'WikiRun' from JSON`,
70
- );
71
- }
@@ -1,44 +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 WikiRunStats = {
12
- pageCount?: number | undefined;
13
- sectionCount?: number | undefined;
14
- mermaidCount?: number | undefined;
15
- bytes?: string | undefined;
16
- };
17
-
18
- /** @internal */
19
- export const WikiRunStats$inboundSchema: z.ZodType<
20
- WikiRunStats,
21
- z.ZodTypeDef,
22
- unknown
23
- > = z.object({
24
- page_count: z.number().int().optional(),
25
- section_count: z.number().int().optional(),
26
- mermaid_count: z.number().int().optional(),
27
- bytes: z.string().optional(),
28
- }).transform((v) => {
29
- return remap$(v, {
30
- "page_count": "pageCount",
31
- "section_count": "sectionCount",
32
- "mermaid_count": "mermaidCount",
33
- });
34
- });
35
-
36
- export function wikiRunStatsFromJSON(
37
- jsonString: string,
38
- ): SafeParseResult<WikiRunStats, SDKValidationError> {
39
- return safeParse(
40
- jsonString,
41
- (x) => WikiRunStats$inboundSchema.parse(JSON.parse(x)),
42
- `Failed to parse 'WikiRunStats' from JSON`,
43
- );
44
- }
@@ -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
- 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 WikiSearchHit = {
12
- path?: string | undefined;
13
- pageTitle?: string | undefined;
14
- headingPath?: string | undefined;
15
- anchor?: string | undefined;
16
- snippet?: string | undefined;
17
- };
18
-
19
- /** @internal */
20
- export const WikiSearchHit$inboundSchema: z.ZodType<
21
- WikiSearchHit,
22
- z.ZodTypeDef,
23
- unknown
24
- > = z.object({
25
- path: z.string().optional(),
26
- page_title: z.string().optional(),
27
- heading_path: z.string().optional(),
28
- anchor: z.string().optional(),
29
- snippet: z.string().optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- "page_title": "pageTitle",
33
- "heading_path": "headingPath",
34
- });
35
- });
36
-
37
- export function wikiSearchHitFromJSON(
38
- jsonString: string,
39
- ): SafeParseResult<WikiSearchHit, SDKValidationError> {
40
- return safeParse(
41
- jsonString,
42
- (x) => WikiSearchHit$inboundSchema.parse(JSON.parse(x)),
43
- `Failed to parse 'WikiSearchHit' from JSON`,
44
- );
45
- }
@@ -1,76 +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 WikiSettings = {
12
- model?: string | undefined;
13
- computerTemplate?: string | undefined;
14
- depth?: string | undefined;
15
- refreshCadence?: string | undefined;
16
- publishToRepository?: boolean | undefined;
17
- };
18
-
19
- /** @internal */
20
- export const WikiSettings$inboundSchema: z.ZodType<
21
- WikiSettings,
22
- z.ZodTypeDef,
23
- unknown
24
- > = z.object({
25
- model: z.string().optional(),
26
- computer_template: z.string().optional(),
27
- depth: z.string().optional(),
28
- refresh_cadence: z.string().optional(),
29
- publish_to_repository: z.boolean().optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- "computer_template": "computerTemplate",
33
- "refresh_cadence": "refreshCadence",
34
- "publish_to_repository": "publishToRepository",
35
- });
36
- });
37
- /** @internal */
38
- export type WikiSettings$Outbound = {
39
- model?: string | undefined;
40
- computer_template?: string | undefined;
41
- depth?: string | undefined;
42
- refresh_cadence?: string | undefined;
43
- publish_to_repository?: boolean | undefined;
44
- };
45
-
46
- /** @internal */
47
- export const WikiSettings$outboundSchema: z.ZodType<
48
- WikiSettings$Outbound,
49
- z.ZodTypeDef,
50
- WikiSettings
51
- > = z.object({
52
- model: z.string().optional(),
53
- computerTemplate: z.string().optional(),
54
- depth: z.string().optional(),
55
- refreshCadence: z.string().optional(),
56
- publishToRepository: z.boolean().optional(),
57
- }).transform((v) => {
58
- return remap$(v, {
59
- computerTemplate: "computer_template",
60
- refreshCadence: "refresh_cadence",
61
- publishToRepository: "publish_to_repository",
62
- });
63
- });
64
-
65
- export function wikiSettingsToJSON(wikiSettings: WikiSettings): string {
66
- return JSON.stringify(WikiSettings$outboundSchema.parse(wikiSettings));
67
- }
68
- export function wikiSettingsFromJSON(
69
- jsonString: string,
70
- ): SafeParseResult<WikiSettings, SDKValidationError> {
71
- return safeParse(
72
- jsonString,
73
- (x) => WikiSettings$inboundSchema.parse(JSON.parse(x)),
74
- `Failed to parse 'WikiSettings' from JSON`,
75
- );
76
- }
@@ -1,47 +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 WikiTreePage = {
12
- path?: string | undefined;
13
- title?: string | undefined;
14
- section?: string | undefined;
15
- order?: number | undefined;
16
- contentHash?: string | undefined;
17
- editedById?: string | undefined;
18
- };
19
-
20
- /** @internal */
21
- export const WikiTreePage$inboundSchema: z.ZodType<
22
- WikiTreePage,
23
- z.ZodTypeDef,
24
- unknown
25
- > = z.object({
26
- path: z.string().optional(),
27
- title: z.string().optional(),
28
- section: z.string().optional(),
29
- order: z.number().int().optional(),
30
- content_hash: z.string().optional(),
31
- edited_by_id: z.string().optional(),
32
- }).transform((v) => {
33
- return remap$(v, {
34
- "content_hash": "contentHash",
35
- "edited_by_id": "editedById",
36
- });
37
- });
38
-
39
- export function wikiTreePageFromJSON(
40
- jsonString: string,
41
- ): SafeParseResult<WikiTreePage, SDKValidationError> {
42
- return safeParse(
43
- jsonString,
44
- (x) => WikiTreePage$inboundSchema.parse(JSON.parse(x)),
45
- `Failed to parse 'WikiTreePage' from JSON`,
46
- );
47
- }
@@ -1,36 +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 DeleteWikiRequest = {
9
- wikiId: string;
10
- };
11
-
12
- /** @internal */
13
- export type DeleteWikiRequest$Outbound = {
14
- wiki_id: string;
15
- };
16
-
17
- /** @internal */
18
- export const DeleteWikiRequest$outboundSchema: z.ZodType<
19
- DeleteWikiRequest$Outbound,
20
- z.ZodTypeDef,
21
- DeleteWikiRequest
22
- > = z.object({
23
- wikiId: z.string(),
24
- }).transform((v) => {
25
- return remap$(v, {
26
- wikiId: "wiki_id",
27
- });
28
- });
29
-
30
- export function deleteWikiRequestToJSON(
31
- deleteWikiRequest: DeleteWikiRequest,
32
- ): string {
33
- return JSON.stringify(
34
- DeleteWikiRequest$outboundSchema.parse(deleteWikiRequest),
35
- );
36
- }
@@ -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 { remap as remap$ } from "../../lib/primitives.js";
7
-
8
- export type GetWikiRequest = {
9
- wikiId: string;
10
- };
11
-
12
- /** @internal */
13
- export type GetWikiRequest$Outbound = {
14
- wiki_id: string;
15
- };
16
-
17
- /** @internal */
18
- export const GetWikiRequest$outboundSchema: z.ZodType<
19
- GetWikiRequest$Outbound,
20
- z.ZodTypeDef,
21
- GetWikiRequest
22
- > = z.object({
23
- wikiId: z.string(),
24
- }).transform((v) => {
25
- return remap$(v, {
26
- wikiId: "wiki_id",
27
- });
28
- });
29
-
30
- export function getWikiRequestToJSON(getWikiRequest: GetWikiRequest): string {
31
- return JSON.stringify(GetWikiRequest$outboundSchema.parse(getWikiRequest));
32
- }
@@ -1,43 +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 GetWikiPageRequest = {
9
- wikiId: string;
10
- path?: string | undefined;
11
- runId?: string | undefined;
12
- };
13
-
14
- /** @internal */
15
- export type GetWikiPageRequest$Outbound = {
16
- wiki_id: string;
17
- path?: string | undefined;
18
- run_id?: string | undefined;
19
- };
20
-
21
- /** @internal */
22
- export const GetWikiPageRequest$outboundSchema: z.ZodType<
23
- GetWikiPageRequest$Outbound,
24
- z.ZodTypeDef,
25
- GetWikiPageRequest
26
- > = z.object({
27
- wikiId: z.string(),
28
- path: z.string().optional(),
29
- runId: z.string().optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- wikiId: "wiki_id",
33
- runId: "run_id",
34
- });
35
- });
36
-
37
- export function getWikiPageRequestToJSON(
38
- getWikiPageRequest: GetWikiPageRequest,
39
- ): string {
40
- return JSON.stringify(
41
- GetWikiPageRequest$outboundSchema.parse(getWikiPageRequest),
42
- );
43
- }
@@ -1,36 +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 GetWikiTreeRequest = {
9
- wikiId: string;
10
- };
11
-
12
- /** @internal */
13
- export type GetWikiTreeRequest$Outbound = {
14
- wiki_id: string;
15
- };
16
-
17
- /** @internal */
18
- export const GetWikiTreeRequest$outboundSchema: z.ZodType<
19
- GetWikiTreeRequest$Outbound,
20
- z.ZodTypeDef,
21
- GetWikiTreeRequest
22
- > = z.object({
23
- wikiId: z.string(),
24
- }).transform((v) => {
25
- return remap$(v, {
26
- wikiId: "wiki_id",
27
- });
28
- });
29
-
30
- export function getWikiTreeRequestToJSON(
31
- getWikiTreeRequest: GetWikiTreeRequest,
32
- ): string {
33
- return JSON.stringify(
34
- GetWikiTreeRequest$outboundSchema.parse(getWikiTreeRequest),
35
- );
36
- }
@@ -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
-
8
- export type ListWikiRunsRequest = {
9
- wikiId: string;
10
- limit?: number | undefined;
11
- };
12
-
13
- /** @internal */
14
- export type ListWikiRunsRequest$Outbound = {
15
- wiki_id: string;
16
- limit?: number | undefined;
17
- };
18
-
19
- /** @internal */
20
- export const ListWikiRunsRequest$outboundSchema: z.ZodType<
21
- ListWikiRunsRequest$Outbound,
22
- z.ZodTypeDef,
23
- ListWikiRunsRequest
24
- > = z.object({
25
- wikiId: z.string(),
26
- limit: z.number().int().optional(),
27
- }).transform((v) => {
28
- return remap$(v, {
29
- wikiId: "wiki_id",
30
- });
31
- });
32
-
33
- export function listWikiRunsRequestToJSON(
34
- listWikiRunsRequest: ListWikiRunsRequest,
35
- ): string {
36
- return JSON.stringify(
37
- ListWikiRunsRequest$outboundSchema.parse(listWikiRunsRequest),
38
- );
39
- }
@@ -1,54 +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 ListWikisRequest = {
9
- limit?: number | undefined;
10
- startingAfter?: string | undefined;
11
- endingBefore?: string | undefined;
12
- repositoryKey?: string | undefined;
13
- branch?: string | undefined;
14
- factoryId?: string | undefined;
15
- };
16
-
17
- /** @internal */
18
- export type ListWikisRequest$Outbound = {
19
- limit?: number | undefined;
20
- starting_after?: string | undefined;
21
- ending_before?: string | undefined;
22
- repository_key?: string | undefined;
23
- branch?: string | undefined;
24
- factory_id?: string | undefined;
25
- };
26
-
27
- /** @internal */
28
- export const ListWikisRequest$outboundSchema: z.ZodType<
29
- ListWikisRequest$Outbound,
30
- z.ZodTypeDef,
31
- ListWikisRequest
32
- > = z.object({
33
- limit: z.number().int().optional(),
34
- startingAfter: z.string().optional(),
35
- endingBefore: z.string().optional(),
36
- repositoryKey: z.string().optional(),
37
- branch: z.string().optional(),
38
- factoryId: z.string().optional(),
39
- }).transform((v) => {
40
- return remap$(v, {
41
- startingAfter: "starting_after",
42
- endingBefore: "ending_before",
43
- repositoryKey: "repository_key",
44
- factoryId: "factory_id",
45
- });
46
- });
47
-
48
- export function listWikisRequestToJSON(
49
- listWikisRequest: ListWikisRequest,
50
- ): string {
51
- return JSON.stringify(
52
- ListWikisRequest$outboundSchema.parse(listWikisRequest),
53
- );
54
- }
@@ -1,41 +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 * as components from "../components/index.js";
8
-
9
- export type RefreshWikiRequest = {
10
- wikiId: string;
11
- refreshWikiRequest: components.RefreshWikiRequest;
12
- };
13
-
14
- /** @internal */
15
- export type RefreshWikiRequest$Outbound = {
16
- wiki_id: string;
17
- RefreshWikiRequest: components.RefreshWikiRequest$Outbound;
18
- };
19
-
20
- /** @internal */
21
- export const RefreshWikiRequest$outboundSchema: z.ZodType<
22
- RefreshWikiRequest$Outbound,
23
- z.ZodTypeDef,
24
- RefreshWikiRequest
25
- > = z.object({
26
- wikiId: z.string(),
27
- refreshWikiRequest: components.RefreshWikiRequest$outboundSchema,
28
- }).transform((v) => {
29
- return remap$(v, {
30
- wikiId: "wiki_id",
31
- refreshWikiRequest: "RefreshWikiRequest",
32
- });
33
- });
34
-
35
- export function refreshWikiRequestToJSON(
36
- refreshWikiRequest: RefreshWikiRequest,
37
- ): string {
38
- return JSON.stringify(
39
- RefreshWikiRequest$outboundSchema.parse(refreshWikiRequest),
40
- );
41
- }
@@ -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 SearchWikiRequest = {
9
- wikiId: string;
10
- query?: string | undefined;
11
- limit?: number | undefined;
12
- };
13
-
14
- /** @internal */
15
- export type SearchWikiRequest$Outbound = {
16
- wiki_id: string;
17
- query?: string | undefined;
18
- limit?: number | undefined;
19
- };
20
-
21
- /** @internal */
22
- export const SearchWikiRequest$outboundSchema: z.ZodType<
23
- SearchWikiRequest$Outbound,
24
- z.ZodTypeDef,
25
- SearchWikiRequest
26
- > = z.object({
27
- wikiId: z.string(),
28
- query: z.string().optional(),
29
- limit: z.number().int().optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- wikiId: "wiki_id",
33
- });
34
- });
35
-
36
- export function searchWikiRequestToJSON(
37
- searchWikiRequest: SearchWikiRequest,
38
- ): string {
39
- return JSON.stringify(
40
- SearchWikiRequest$outboundSchema.parse(searchWikiRequest),
41
- );
42
- }
@@ -1,41 +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 * as components from "../components/index.js";
8
-
9
- export type UpdateWikiRequest = {
10
- wikiId: string;
11
- updateWikiRequest: components.UpdateWikiRequest;
12
- };
13
-
14
- /** @internal */
15
- export type UpdateWikiRequest$Outbound = {
16
- wiki_id: string;
17
- UpdateWikiRequest: components.UpdateWikiRequest$Outbound;
18
- };
19
-
20
- /** @internal */
21
- export const UpdateWikiRequest$outboundSchema: z.ZodType<
22
- UpdateWikiRequest$Outbound,
23
- z.ZodTypeDef,
24
- UpdateWikiRequest
25
- > = z.object({
26
- wikiId: z.string(),
27
- updateWikiRequest: components.UpdateWikiRequest$outboundSchema,
28
- }).transform((v) => {
29
- return remap$(v, {
30
- wikiId: "wiki_id",
31
- updateWikiRequest: "UpdateWikiRequest",
32
- });
33
- });
34
-
35
- export function updateWikiRequestToJSON(
36
- updateWikiRequest: UpdateWikiRequest,
37
- ): string {
38
- return JSON.stringify(
39
- UpdateWikiRequest$outboundSchema.parse(updateWikiRequest),
40
- );
41
- }