@orq-ai/node 4.15.6 → 4.15.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.
Files changed (144) 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/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +5 -5
  8. package/models/operations/createtool.js +4 -4
  9. package/models/operations/getalltools.js +4 -4
  10. package/models/operations/getv2humanevalsets.js +2 -2
  11. package/models/operations/getv2humanevalsetsid.js +2 -2
  12. package/models/operations/listdatasetdatapoints.js +5 -5
  13. package/models/operations/listdatasets.js +1 -1
  14. package/models/operations/patchv2humanevalsetsid.js +2 -2
  15. package/models/operations/postv2feedbackevaluation.js +4 -4
  16. package/models/operations/postv2humanevalsets.js +2 -2
  17. package/models/operations/retrievedatapoint.js +5 -5
  18. package/models/operations/retrievedataset.js +1 -1
  19. package/models/operations/retrievetool.js +4 -4
  20. package/models/operations/runagent.js +1 -1
  21. package/models/operations/streamrunagent.js +1 -1
  22. package/models/operations/updatedatapoint.js +5 -5
  23. package/models/operations/updatedataset.js +1 -1
  24. package/models/operations/updatetool.js +4 -4
  25. package/package.json +6 -6
  26. package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +1 -1
  27. package/packages/orq-rc/src/funcs/{auditLogsQuery.ts → wikisCreate.ts} +10 -16
  28. package/packages/orq-rc/src/funcs/wikisDelete.ts +162 -0
  29. package/packages/orq-rc/src/funcs/wikisGet.ts +162 -0
  30. package/packages/orq-rc/src/funcs/wikisGetPage.ts +168 -0
  31. package/packages/orq-rc/src/funcs/wikisGetTree.ts +162 -0
  32. package/packages/orq-rc/src/funcs/wikisInspectRepository.ts +157 -0
  33. package/packages/orq-rc/src/funcs/wikisList.ts +167 -0
  34. package/packages/orq-rc/src/funcs/wikisListRuns.ts +167 -0
  35. package/packages/orq-rc/src/funcs/wikisRefresh.ts +165 -0
  36. package/packages/orq-rc/src/funcs/wikisSearch.ts +168 -0
  37. package/packages/orq-rc/src/funcs/wikisUpdate.ts +163 -0
  38. package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +165 -0
  39. package/packages/orq-rc/src/lib/config.ts +3 -3
  40. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +66 -0
  41. package/packages/orq-rc/src/models/components/classifyanswer.ts +1 -1
  42. package/packages/orq-rc/src/models/components/classifyusage.ts +2 -2
  43. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +3 -3
  44. package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +3 -3
  45. package/packages/orq-rc/src/models/components/createwikirequest.ts +67 -0
  46. package/packages/orq-rc/src/models/components/createwikiresponse.ts +32 -0
  47. package/packages/orq-rc/src/models/components/deletewikiresponse.ts +27 -0
  48. package/packages/orq-rc/src/models/components/getwikipageresponse.ts +32 -0
  49. package/packages/orq-rc/src/models/components/getwikiresponse.ts +32 -0
  50. package/packages/orq-rc/src/models/components/getwikitreeresponse.ts +32 -0
  51. package/packages/orq-rc/src/models/components/index.ts +25 -8
  52. package/packages/orq-rc/src/models/components/inspectrepositorywikirequest.ts +45 -0
  53. package/packages/orq-rc/src/models/components/inspectrepositorywikiresponse.ts +38 -0
  54. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +126 -0
  55. package/packages/orq-rc/src/models/components/listwikirunsresponse.ts +32 -0
  56. package/packages/orq-rc/src/models/components/listwikisresponse.ts +39 -0
  57. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  58. package/packages/orq-rc/src/models/components/refreshwikirequest.ts +31 -0
  59. package/packages/orq-rc/src/models/components/refreshwikiresponse.ts +32 -0
  60. package/packages/orq-rc/src/models/components/searchwikiresponse.ts +32 -0
  61. package/packages/orq-rc/src/models/components/updatewikipagerequest.ts +42 -0
  62. package/packages/orq-rc/src/models/components/updatewikipageresponse.ts +32 -0
  63. package/packages/orq-rc/src/models/components/updatewikirequest.ts +48 -0
  64. package/packages/orq-rc/src/models/components/updatewikiresponse.ts +32 -0
  65. package/packages/orq-rc/src/models/components/wiki.ts +91 -0
  66. package/packages/orq-rc/src/models/components/wikipage.ts +58 -0
  67. package/packages/orq-rc/src/models/components/wikirepository.ts +72 -0
  68. package/packages/orq-rc/src/models/components/wikirun.ts +71 -0
  69. package/packages/orq-rc/src/models/components/wikirunstats.ts +44 -0
  70. package/packages/orq-rc/src/models/components/wikisearchhit.ts +45 -0
  71. package/packages/orq-rc/src/models/components/wikisettings.ts +76 -0
  72. package/packages/orq-rc/src/models/components/wikitreepage.ts +47 -0
  73. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +222 -0
  74. package/packages/orq-rc/src/models/operations/createclassify.ts +4 -2
  75. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  76. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +159 -5
  77. package/packages/orq-rc/src/models/operations/createprompt.ts +143 -0
  78. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  79. package/packages/orq-rc/src/models/operations/deletewiki.ts +36 -0
  80. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +147 -0
  81. package/packages/orq-rc/src/models/operations/deploymentstream.ts +126 -0
  82. package/packages/orq-rc/src/models/operations/getallprompts.ts +63 -0
  83. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  84. package/packages/orq-rc/src/models/operations/getoneprompt.ts +63 -0
  85. package/packages/orq-rc/src/models/operations/getpromptversion.ts +65 -0
  86. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/getwiki.ts +32 -0
  89. package/packages/orq-rc/src/models/operations/getwikipage.ts +43 -0
  90. package/packages/orq-rc/src/models/operations/getwikitree.ts +36 -0
  91. package/packages/orq-rc/src/models/operations/index.ts +10 -0
  92. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +77 -5
  93. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  94. package/packages/orq-rc/src/models/operations/listpromptversions.ts +66 -0
  95. package/packages/orq-rc/src/models/operations/listwikiruns.ts +39 -0
  96. package/packages/orq-rc/src/models/{components/auditlogpagination.ts → operations/listwikis.ts} +19 -20
  97. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  99. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/refreshwiki.ts +41 -0
  101. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +71 -5
  102. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  103. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  104. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  105. package/packages/orq-rc/src/models/operations/searchwiki.ts +42 -0
  106. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  107. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +152 -5
  108. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  109. package/packages/orq-rc/src/models/operations/updateprompt.ts +143 -0
  110. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  111. package/packages/orq-rc/src/models/operations/updatewiki.ts +41 -0
  112. package/packages/orq-rc/src/models/operations/updatewikipage.ts +41 -0
  113. package/packages/orq-rc/src/sdk/classify.ts +1 -1
  114. package/packages/orq-rc/src/sdk/sdk.ts +6 -6
  115. package/packages/orq-rc/src/sdk/wikis.ts +154 -0
  116. package/src/lib/config.ts +3 -3
  117. package/src/models/components/reasoningpart.ts +1 -1
  118. package/src/models/operations/createdataset.ts +1 -1
  119. package/src/models/operations/createdatasetitem.ts +5 -5
  120. package/src/models/operations/createtool.ts +4 -4
  121. package/src/models/operations/getalltools.ts +4 -4
  122. package/src/models/operations/getv2humanevalsets.ts +2 -2
  123. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  124. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  125. package/src/models/operations/listdatasets.ts +1 -1
  126. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  127. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  128. package/src/models/operations/postv2humanevalsets.ts +2 -2
  129. package/src/models/operations/retrievedatapoint.ts +5 -5
  130. package/src/models/operations/retrievedataset.ts +1 -1
  131. package/src/models/operations/retrievetool.ts +4 -4
  132. package/src/models/operations/runagent.ts +1 -1
  133. package/src/models/operations/streamrunagent.ts +1 -1
  134. package/src/models/operations/updatedatapoint.ts +5 -5
  135. package/src/models/operations/updatedataset.ts +1 -1
  136. package/src/models/operations/updatetool.ts +4 -4
  137. package/packages/orq-rc/src/models/components/auditlog.ts +0 -122
  138. package/packages/orq-rc/src/models/components/auditlogfilter.ts +0 -51
  139. package/packages/orq-rc/src/models/components/auditlogfilterquery.ts +0 -54
  140. package/packages/orq-rc/src/models/components/auditlogsort.ts +0 -39
  141. package/packages/orq-rc/src/models/components/queryauditlogsrequest.ts +0 -64
  142. package/packages/orq-rc/src/models/components/queryauditlogsresponse.ts +0 -55
  143. package/packages/orq-rc/src/models/components/value.ts +0 -24
  144. package/packages/orq-rc/src/sdk/auditlogs.ts +0 -27
@@ -0,0 +1,72 @@
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 WikiRepository = {
12
+ provider?: string | undefined;
13
+ owner?: string | undefined;
14
+ name?: string | undefined;
15
+ url?: string | undefined;
16
+ defaultBranch?: string | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const WikiRepository$inboundSchema: z.ZodType<
21
+ WikiRepository,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ provider: z.string().optional(),
26
+ owner: z.string().optional(),
27
+ name: z.string().optional(),
28
+ url: z.string().optional(),
29
+ default_branch: z.string().optional(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "default_branch": "defaultBranch",
33
+ });
34
+ });
35
+ /** @internal */
36
+ export type WikiRepository$Outbound = {
37
+ provider?: string | undefined;
38
+ owner?: string | undefined;
39
+ name?: string | undefined;
40
+ url?: string | undefined;
41
+ default_branch?: string | undefined;
42
+ };
43
+
44
+ /** @internal */
45
+ export const WikiRepository$outboundSchema: z.ZodType<
46
+ WikiRepository$Outbound,
47
+ z.ZodTypeDef,
48
+ WikiRepository
49
+ > = z.object({
50
+ provider: z.string().optional(),
51
+ owner: z.string().optional(),
52
+ name: z.string().optional(),
53
+ url: z.string().optional(),
54
+ defaultBranch: z.string().optional(),
55
+ }).transform((v) => {
56
+ return remap$(v, {
57
+ defaultBranch: "default_branch",
58
+ });
59
+ });
60
+
61
+ export function wikiRepositoryToJSON(wikiRepository: WikiRepository): string {
62
+ return JSON.stringify(WikiRepository$outboundSchema.parse(wikiRepository));
63
+ }
64
+ export function wikiRepositoryFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<WikiRepository, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => WikiRepository$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'WikiRepository' from JSON`,
71
+ );
72
+ }
@@ -0,0 +1,71 @@
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
+ }
@@ -0,0 +1,44 @@
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
+ }
@@ -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
+ 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
+ }
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { 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
+ }
@@ -0,0 +1,47 @@
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
+ }
@@ -148,6 +148,20 @@ export type CreateChatCompletionMessagesFunction = {
148
148
  arguments?: string | undefined;
149
149
  };
150
150
 
151
+ export type CreateChatCompletionMessagesGoogle = {
152
+ /**
153
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call. Takes precedence over the top-level `thought_signature` when both are set.
154
+ */
155
+ thoughtSignature?: string | undefined;
156
+ };
157
+
158
+ /**
159
+ * Provider-specific extra content for the tool call.
160
+ */
161
+ export type CreateChatCompletionMessagesExtraContent = {
162
+ google?: CreateChatCompletionMessagesGoogle | undefined;
163
+ };
164
+
151
165
  export type CreateChatCompletionMessagesToolCalls = {
152
166
  /**
153
167
  * The ID of the tool call.
@@ -162,6 +176,10 @@ export type CreateChatCompletionMessagesToolCalls = {
162
176
  * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
163
177
  */
164
178
  thoughtSignature?: string | undefined;
179
+ /**
180
+ * Provider-specific extra content for the tool call.
181
+ */
182
+ extraContent?: CreateChatCompletionMessagesExtraContent | undefined;
165
183
  };
166
184
 
167
185
  export type CreateChatCompletionMessagesAssistantMessage = {
@@ -1748,6 +1766,20 @@ export type CreateChatCompletionRouterChatCompletionsResponseFunction = {
1748
1766
  arguments?: string | undefined;
1749
1767
  };
1750
1768
 
1769
+ export type CreateChatCompletionRouterChatCompletionsGoogle = {
1770
+ /**
1771
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models.
1772
+ */
1773
+ thoughtSignature?: string | undefined;
1774
+ };
1775
+
1776
+ /**
1777
+ * Provider-specific extra content for the tool call.
1778
+ */
1779
+ export type CreateChatCompletionRouterChatCompletionsExtraContent = {
1780
+ google?: CreateChatCompletionRouterChatCompletionsGoogle | undefined;
1781
+ };
1782
+
1751
1783
  export type CreateChatCompletionRouterChatCompletionsToolCalls = {
1752
1784
  /**
1753
1785
  * The index of the tool call.
@@ -1768,6 +1800,12 @@ export type CreateChatCompletionRouterChatCompletionsToolCalls = {
1768
1800
  * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models.
1769
1801
  */
1770
1802
  thoughtSignature?: string | undefined;
1803
+ /**
1804
+ * Provider-specific extra content for the tool call.
1805
+ */
1806
+ extraContent?:
1807
+ | CreateChatCompletionRouterChatCompletionsExtraContent
1808
+ | undefined;
1771
1809
  };
1772
1810
 
1773
1811
  export const CreateChatCompletionRouterChatCompletionsRole = {
@@ -1966,6 +2004,20 @@ export type CreateChatCompletionRouterChatCompletionsFunction = {
1966
2004
  arguments?: string | undefined;
1967
2005
  };
1968
2006
 
2007
+ export type CreateChatCompletionGoogle = {
2008
+ /**
2009
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
2010
+ */
2011
+ thoughtSignature?: string | undefined;
2012
+ };
2013
+
2014
+ /**
2015
+ * Provider-specific extra content for the tool call.
2016
+ */
2017
+ export type CreateChatCompletionExtraContent = {
2018
+ google?: CreateChatCompletionGoogle | undefined;
2019
+ };
2020
+
1969
2021
  export type CreateChatCompletionToolCalls = {
1970
2022
  index?: number | undefined;
1971
2023
  id?: string | undefined;
@@ -1975,6 +2027,10 @@ export type CreateChatCompletionToolCalls = {
1975
2027
  * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
1976
2028
  */
1977
2029
  thoughtSignature?: string | undefined;
2030
+ /**
2031
+ * Provider-specific extra content for the tool call.
2032
+ */
2033
+ extraContent?: CreateChatCompletionExtraContent | undefined;
1978
2034
  };
1979
2035
 
1980
2036
  export const CreateChatCompletionRole = {
@@ -2467,12 +2523,67 @@ export function createChatCompletionMessagesFunctionToJSON(
2467
2523
  );
2468
2524
  }
2469
2525
 
2526
+ /** @internal */
2527
+ export type CreateChatCompletionMessagesGoogle$Outbound = {
2528
+ thought_signature?: string | undefined;
2529
+ };
2530
+
2531
+ /** @internal */
2532
+ export const CreateChatCompletionMessagesGoogle$outboundSchema: z.ZodType<
2533
+ CreateChatCompletionMessagesGoogle$Outbound,
2534
+ z.ZodTypeDef,
2535
+ CreateChatCompletionMessagesGoogle
2536
+ > = z.object({
2537
+ thoughtSignature: z.string().optional(),
2538
+ }).transform((v) => {
2539
+ return remap$(v, {
2540
+ thoughtSignature: "thought_signature",
2541
+ });
2542
+ });
2543
+
2544
+ export function createChatCompletionMessagesGoogleToJSON(
2545
+ createChatCompletionMessagesGoogle: CreateChatCompletionMessagesGoogle,
2546
+ ): string {
2547
+ return JSON.stringify(
2548
+ CreateChatCompletionMessagesGoogle$outboundSchema.parse(
2549
+ createChatCompletionMessagesGoogle,
2550
+ ),
2551
+ );
2552
+ }
2553
+
2554
+ /** @internal */
2555
+ export type CreateChatCompletionMessagesExtraContent$Outbound = {
2556
+ google?: CreateChatCompletionMessagesGoogle$Outbound | undefined;
2557
+ };
2558
+
2559
+ /** @internal */
2560
+ export const CreateChatCompletionMessagesExtraContent$outboundSchema: z.ZodType<
2561
+ CreateChatCompletionMessagesExtraContent$Outbound,
2562
+ z.ZodTypeDef,
2563
+ CreateChatCompletionMessagesExtraContent
2564
+ > = z.object({
2565
+ google: z.lazy(() => CreateChatCompletionMessagesGoogle$outboundSchema)
2566
+ .optional(),
2567
+ });
2568
+
2569
+ export function createChatCompletionMessagesExtraContentToJSON(
2570
+ createChatCompletionMessagesExtraContent:
2571
+ CreateChatCompletionMessagesExtraContent,
2572
+ ): string {
2573
+ return JSON.stringify(
2574
+ CreateChatCompletionMessagesExtraContent$outboundSchema.parse(
2575
+ createChatCompletionMessagesExtraContent,
2576
+ ),
2577
+ );
2578
+ }
2579
+
2470
2580
  /** @internal */
2471
2581
  export type CreateChatCompletionMessagesToolCalls$Outbound = {
2472
2582
  id: string;
2473
2583
  type: string;
2474
2584
  function: CreateChatCompletionMessagesFunction$Outbound;
2475
2585
  thought_signature?: string | undefined;
2586
+ extra_content?: CreateChatCompletionMessagesExtraContent$Outbound | undefined;
2476
2587
  };
2477
2588
 
2478
2589
  /** @internal */
@@ -2485,9 +2596,13 @@ export const CreateChatCompletionMessagesToolCalls$outboundSchema: z.ZodType<
2485
2596
  type: CreateChatCompletionMessagesType$outboundSchema,
2486
2597
  function: z.lazy(() => CreateChatCompletionMessagesFunction$outboundSchema),
2487
2598
  thoughtSignature: z.string().optional(),
2599
+ extraContent: z.lazy(() =>
2600
+ CreateChatCompletionMessagesExtraContent$outboundSchema
2601
+ ).optional(),
2488
2602
  }).transform((v) => {
2489
2603
  return remap$(v, {
2490
2604
  thoughtSignature: "thought_signature",
2605
+ extraContent: "extra_content",
2491
2606
  });
2492
2607
  });
2493
2608
 
@@ -5622,6 +5737,64 @@ export function createChatCompletionRouterChatCompletionsResponseFunctionFromJSO
5622
5737
  );
5623
5738
  }
5624
5739
 
5740
+ /** @internal */
5741
+ export const CreateChatCompletionRouterChatCompletionsGoogle$inboundSchema:
5742
+ z.ZodType<
5743
+ CreateChatCompletionRouterChatCompletionsGoogle,
5744
+ z.ZodTypeDef,
5745
+ unknown
5746
+ > = z.object({
5747
+ thought_signature: z.string().optional(),
5748
+ }).transform((v) => {
5749
+ return remap$(v, {
5750
+ "thought_signature": "thoughtSignature",
5751
+ });
5752
+ });
5753
+
5754
+ export function createChatCompletionRouterChatCompletionsGoogleFromJSON(
5755
+ jsonString: string,
5756
+ ): SafeParseResult<
5757
+ CreateChatCompletionRouterChatCompletionsGoogle,
5758
+ SDKValidationError
5759
+ > {
5760
+ return safeParse(
5761
+ jsonString,
5762
+ (x) =>
5763
+ CreateChatCompletionRouterChatCompletionsGoogle$inboundSchema.parse(
5764
+ JSON.parse(x),
5765
+ ),
5766
+ `Failed to parse 'CreateChatCompletionRouterChatCompletionsGoogle' from JSON`,
5767
+ );
5768
+ }
5769
+
5770
+ /** @internal */
5771
+ export const CreateChatCompletionRouterChatCompletionsExtraContent$inboundSchema:
5772
+ z.ZodType<
5773
+ CreateChatCompletionRouterChatCompletionsExtraContent,
5774
+ z.ZodTypeDef,
5775
+ unknown
5776
+ > = z.object({
5777
+ google: z.lazy(() =>
5778
+ CreateChatCompletionRouterChatCompletionsGoogle$inboundSchema
5779
+ ).optional(),
5780
+ });
5781
+
5782
+ export function createChatCompletionRouterChatCompletionsExtraContentFromJSON(
5783
+ jsonString: string,
5784
+ ): SafeParseResult<
5785
+ CreateChatCompletionRouterChatCompletionsExtraContent,
5786
+ SDKValidationError
5787
+ > {
5788
+ return safeParse(
5789
+ jsonString,
5790
+ (x) =>
5791
+ CreateChatCompletionRouterChatCompletionsExtraContent$inboundSchema.parse(
5792
+ JSON.parse(x),
5793
+ ),
5794
+ `Failed to parse 'CreateChatCompletionRouterChatCompletionsExtraContent' from JSON`,
5795
+ );
5796
+ }
5797
+
5625
5798
  /** @internal */
5626
5799
  export const CreateChatCompletionRouterChatCompletionsToolCalls$inboundSchema:
5627
5800
  z.ZodType<
@@ -5637,9 +5810,13 @@ export const CreateChatCompletionRouterChatCompletionsToolCalls$inboundSchema:
5637
5810
  CreateChatCompletionRouterChatCompletionsResponseFunction$inboundSchema
5638
5811
  ).optional(),
5639
5812
  thought_signature: z.string().optional(),
5813
+ extra_content: z.lazy(() =>
5814
+ CreateChatCompletionRouterChatCompletionsExtraContent$inboundSchema
5815
+ ).optional(),
5640
5816
  }).transform((v) => {
5641
5817
  return remap$(v, {
5642
5818
  "thought_signature": "thoughtSignature",
5819
+ "extra_content": "extraContent",
5643
5820
  });
5644
5821
  });
5645
5822
 
@@ -5995,6 +6172,48 @@ export function createChatCompletionRouterChatCompletionsFunctionFromJSON(
5995
6172
  );
5996
6173
  }
5997
6174
 
6175
+ /** @internal */
6176
+ export const CreateChatCompletionGoogle$inboundSchema: z.ZodType<
6177
+ CreateChatCompletionGoogle,
6178
+ z.ZodTypeDef,
6179
+ unknown
6180
+ > = z.object({
6181
+ thought_signature: z.string().optional(),
6182
+ }).transform((v) => {
6183
+ return remap$(v, {
6184
+ "thought_signature": "thoughtSignature",
6185
+ });
6186
+ });
6187
+
6188
+ export function createChatCompletionGoogleFromJSON(
6189
+ jsonString: string,
6190
+ ): SafeParseResult<CreateChatCompletionGoogle, SDKValidationError> {
6191
+ return safeParse(
6192
+ jsonString,
6193
+ (x) => CreateChatCompletionGoogle$inboundSchema.parse(JSON.parse(x)),
6194
+ `Failed to parse 'CreateChatCompletionGoogle' from JSON`,
6195
+ );
6196
+ }
6197
+
6198
+ /** @internal */
6199
+ export const CreateChatCompletionExtraContent$inboundSchema: z.ZodType<
6200
+ CreateChatCompletionExtraContent,
6201
+ z.ZodTypeDef,
6202
+ unknown
6203
+ > = z.object({
6204
+ google: z.lazy(() => CreateChatCompletionGoogle$inboundSchema).optional(),
6205
+ });
6206
+
6207
+ export function createChatCompletionExtraContentFromJSON(
6208
+ jsonString: string,
6209
+ ): SafeParseResult<CreateChatCompletionExtraContent, SDKValidationError> {
6210
+ return safeParse(
6211
+ jsonString,
6212
+ (x) => CreateChatCompletionExtraContent$inboundSchema.parse(JSON.parse(x)),
6213
+ `Failed to parse 'CreateChatCompletionExtraContent' from JSON`,
6214
+ );
6215
+ }
6216
+
5998
6217
  /** @internal */
5999
6218
  export const CreateChatCompletionToolCalls$inboundSchema: z.ZodType<
6000
6219
  CreateChatCompletionToolCalls,
@@ -6009,9 +6228,12 @@ export const CreateChatCompletionToolCalls$inboundSchema: z.ZodType<
6009
6228
  CreateChatCompletionRouterChatCompletionsFunction$inboundSchema
6010
6229
  ).optional(),
6011
6230
  thought_signature: z.string().optional(),
6231
+ extra_content: z.lazy(() => CreateChatCompletionExtraContent$inboundSchema)
6232
+ .optional(),
6012
6233
  }).transform((v) => {
6013
6234
  return remap$(v, {
6014
6235
  "thought_signature": "thoughtSignature",
6236
+ "extra_content": "extraContent",
6015
6237
  });
6016
6238
  });
6017
6239