@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.
- 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/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- 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/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/package.json +6 -6
- package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/{auditLogsQuery.ts → wikisCreate.ts} +10 -16
- package/packages/orq-rc/src/funcs/wikisDelete.ts +162 -0
- package/packages/orq-rc/src/funcs/wikisGet.ts +162 -0
- package/packages/orq-rc/src/funcs/wikisGetPage.ts +168 -0
- package/packages/orq-rc/src/funcs/wikisGetTree.ts +162 -0
- package/packages/orq-rc/src/funcs/wikisInspectRepository.ts +157 -0
- package/packages/orq-rc/src/funcs/wikisList.ts +167 -0
- package/packages/orq-rc/src/funcs/wikisListRuns.ts +167 -0
- package/packages/orq-rc/src/funcs/wikisRefresh.ts +165 -0
- package/packages/orq-rc/src/funcs/wikisSearch.ts +168 -0
- package/packages/orq-rc/src/funcs/wikisUpdate.ts +163 -0
- package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +165 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +66 -0
- package/packages/orq-rc/src/models/components/classifyanswer.ts +1 -1
- package/packages/orq-rc/src/models/components/classifyusage.ts +2 -2
- package/packages/orq-rc/src/models/components/createapikeyrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/createwikirequest.ts +67 -0
- package/packages/orq-rc/src/models/components/createwikiresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/deletewikiresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/getwikipageresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/getwikiresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/getwikitreeresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +25 -8
- package/packages/orq-rc/src/models/components/inspectrepositorywikirequest.ts +45 -0
- package/packages/orq-rc/src/models/components/inspectrepositorywikiresponse.ts +38 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +126 -0
- package/packages/orq-rc/src/models/components/listwikirunsresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/listwikisresponse.ts +39 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/refreshwikirequest.ts +31 -0
- package/packages/orq-rc/src/models/components/refreshwikiresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/searchwikiresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updatewikipagerequest.ts +42 -0
- package/packages/orq-rc/src/models/components/updatewikipageresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updatewikirequest.ts +48 -0
- package/packages/orq-rc/src/models/components/updatewikiresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/wiki.ts +91 -0
- package/packages/orq-rc/src/models/components/wikipage.ts +58 -0
- package/packages/orq-rc/src/models/components/wikirepository.ts +72 -0
- package/packages/orq-rc/src/models/components/wikirun.ts +71 -0
- package/packages/orq-rc/src/models/components/wikirunstats.ts +44 -0
- package/packages/orq-rc/src/models/components/wikisearchhit.ts +45 -0
- package/packages/orq-rc/src/models/components/wikisettings.ts +76 -0
- package/packages/orq-rc/src/models/components/wikitreepage.ts +47 -0
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +222 -0
- package/packages/orq-rc/src/models/operations/createclassify.ts +4 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +159 -5
- package/packages/orq-rc/src/models/operations/createprompt.ts +143 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deletewiki.ts +36 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +147 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +126 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +63 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +63 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +65 -0
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/getwiki.ts +32 -0
- package/packages/orq-rc/src/models/operations/getwikipage.ts +43 -0
- package/packages/orq-rc/src/models/operations/getwikitree.ts +36 -0
- package/packages/orq-rc/src/models/operations/index.ts +10 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +77 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +66 -0
- package/packages/orq-rc/src/models/operations/listwikiruns.ts +39 -0
- package/packages/orq-rc/src/models/{components/auditlogpagination.ts → operations/listwikis.ts} +19 -20
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/refreshwiki.ts +41 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +71 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/searchwiki.ts +42 -0
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +152 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +143 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatewiki.ts +41 -0
- package/packages/orq-rc/src/models/operations/updatewikipage.ts +41 -0
- package/packages/orq-rc/src/sdk/classify.ts +1 -1
- package/packages/orq-rc/src/sdk/sdk.ts +6 -6
- package/packages/orq-rc/src/sdk/wikis.ts +154 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- 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/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- 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/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/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/packages/orq-rc/src/models/components/auditlog.ts +0 -122
- package/packages/orq-rc/src/models/components/auditlogfilter.ts +0 -51
- package/packages/orq-rc/src/models/components/auditlogfilterquery.ts +0 -54
- package/packages/orq-rc/src/models/components/auditlogsort.ts +0 -39
- package/packages/orq-rc/src/models/components/queryauditlogsrequest.ts +0 -64
- package/packages/orq-rc/src/models/components/queryauditlogsresponse.ts +0 -55
- package/packages/orq-rc/src/models/components/value.ts +0 -24
- package/packages/orq-rc/src/sdk/auditlogs.ts +0 -27
|
@@ -178,6 +178,20 @@ export type PrefixMessagesFunction = {
|
|
|
178
178
|
arguments?: string | undefined;
|
|
179
179
|
};
|
|
180
180
|
|
|
181
|
+
export type Google = {
|
|
182
|
+
/**
|
|
183
|
+
* 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.
|
|
184
|
+
*/
|
|
185
|
+
thoughtSignature?: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Provider-specific extra content for the tool call.
|
|
190
|
+
*/
|
|
191
|
+
export type ExtraContent = {
|
|
192
|
+
google?: Google | undefined;
|
|
193
|
+
};
|
|
194
|
+
|
|
181
195
|
export type ToolCalls = {
|
|
182
196
|
/**
|
|
183
197
|
* The ID of the tool call.
|
|
@@ -192,6 +206,10 @@ export type ToolCalls = {
|
|
|
192
206
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
193
207
|
*/
|
|
194
208
|
thoughtSignature?: string | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* Provider-specific extra content for the tool call.
|
|
211
|
+
*/
|
|
212
|
+
extraContent?: ExtraContent | undefined;
|
|
195
213
|
};
|
|
196
214
|
|
|
197
215
|
export type AssistantMessage = {
|
|
@@ -525,6 +543,20 @@ export type MessagesFunction = {
|
|
|
525
543
|
arguments?: string | undefined;
|
|
526
544
|
};
|
|
527
545
|
|
|
546
|
+
export type MessagesGoogle = {
|
|
547
|
+
/**
|
|
548
|
+
* 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.
|
|
549
|
+
*/
|
|
550
|
+
thoughtSignature?: string | undefined;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Provider-specific extra content for the tool call.
|
|
555
|
+
*/
|
|
556
|
+
export type MessagesExtraContent = {
|
|
557
|
+
google?: MessagesGoogle | undefined;
|
|
558
|
+
};
|
|
559
|
+
|
|
528
560
|
export type MessagesToolCalls = {
|
|
529
561
|
/**
|
|
530
562
|
* The ID of the tool call.
|
|
@@ -539,6 +571,10 @@ export type MessagesToolCalls = {
|
|
|
539
571
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
540
572
|
*/
|
|
541
573
|
thoughtSignature?: string | undefined;
|
|
574
|
+
/**
|
|
575
|
+
* Provider-specific extra content for the tool call.
|
|
576
|
+
*/
|
|
577
|
+
extraContent?: MessagesExtraContent | undefined;
|
|
542
578
|
};
|
|
543
579
|
|
|
544
580
|
export type MessagesAssistantMessage = {
|
|
@@ -1378,12 +1414,53 @@ export function prefixMessagesFunctionToJSON(
|
|
|
1378
1414
|
);
|
|
1379
1415
|
}
|
|
1380
1416
|
|
|
1417
|
+
/** @internal */
|
|
1418
|
+
export type Google$Outbound = {
|
|
1419
|
+
thought_signature?: string | undefined;
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
/** @internal */
|
|
1423
|
+
export const Google$outboundSchema: z.ZodType<
|
|
1424
|
+
Google$Outbound,
|
|
1425
|
+
z.ZodTypeDef,
|
|
1426
|
+
Google
|
|
1427
|
+
> = z.object({
|
|
1428
|
+
thoughtSignature: z.string().optional(),
|
|
1429
|
+
}).transform((v) => {
|
|
1430
|
+
return remap$(v, {
|
|
1431
|
+
thoughtSignature: "thought_signature",
|
|
1432
|
+
});
|
|
1433
|
+
});
|
|
1434
|
+
|
|
1435
|
+
export function googleToJSON(google: Google): string {
|
|
1436
|
+
return JSON.stringify(Google$outboundSchema.parse(google));
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
/** @internal */
|
|
1440
|
+
export type ExtraContent$Outbound = {
|
|
1441
|
+
google?: Google$Outbound | undefined;
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
/** @internal */
|
|
1445
|
+
export const ExtraContent$outboundSchema: z.ZodType<
|
|
1446
|
+
ExtraContent$Outbound,
|
|
1447
|
+
z.ZodTypeDef,
|
|
1448
|
+
ExtraContent
|
|
1449
|
+
> = z.object({
|
|
1450
|
+
google: z.lazy(() => Google$outboundSchema).optional(),
|
|
1451
|
+
});
|
|
1452
|
+
|
|
1453
|
+
export function extraContentToJSON(extraContent: ExtraContent): string {
|
|
1454
|
+
return JSON.stringify(ExtraContent$outboundSchema.parse(extraContent));
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1381
1457
|
/** @internal */
|
|
1382
1458
|
export type ToolCalls$Outbound = {
|
|
1383
1459
|
id: string;
|
|
1384
1460
|
type: string;
|
|
1385
1461
|
function: PrefixMessagesFunction$Outbound;
|
|
1386
1462
|
thought_signature?: string | undefined;
|
|
1463
|
+
extra_content?: ExtraContent$Outbound | undefined;
|
|
1387
1464
|
};
|
|
1388
1465
|
|
|
1389
1466
|
/** @internal */
|
|
@@ -1396,9 +1473,11 @@ export const ToolCalls$outboundSchema: z.ZodType<
|
|
|
1396
1473
|
type: PrefixMessagesType$outboundSchema,
|
|
1397
1474
|
function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
|
|
1398
1475
|
thoughtSignature: z.string().optional(),
|
|
1476
|
+
extraContent: z.lazy(() => ExtraContent$outboundSchema).optional(),
|
|
1399
1477
|
}).transform((v) => {
|
|
1400
1478
|
return remap$(v, {
|
|
1401
1479
|
thoughtSignature: "thought_signature",
|
|
1480
|
+
extraContent: "extra_content",
|
|
1402
1481
|
});
|
|
1403
1482
|
});
|
|
1404
1483
|
|
|
@@ -1981,12 +2060,57 @@ export function messagesFunctionToJSON(
|
|
|
1981
2060
|
);
|
|
1982
2061
|
}
|
|
1983
2062
|
|
|
2063
|
+
/** @internal */
|
|
2064
|
+
export type MessagesGoogle$Outbound = {
|
|
2065
|
+
thought_signature?: string | undefined;
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
|
+
/** @internal */
|
|
2069
|
+
export const MessagesGoogle$outboundSchema: z.ZodType<
|
|
2070
|
+
MessagesGoogle$Outbound,
|
|
2071
|
+
z.ZodTypeDef,
|
|
2072
|
+
MessagesGoogle
|
|
2073
|
+
> = z.object({
|
|
2074
|
+
thoughtSignature: z.string().optional(),
|
|
2075
|
+
}).transform((v) => {
|
|
2076
|
+
return remap$(v, {
|
|
2077
|
+
thoughtSignature: "thought_signature",
|
|
2078
|
+
});
|
|
2079
|
+
});
|
|
2080
|
+
|
|
2081
|
+
export function messagesGoogleToJSON(messagesGoogle: MessagesGoogle): string {
|
|
2082
|
+
return JSON.stringify(MessagesGoogle$outboundSchema.parse(messagesGoogle));
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/** @internal */
|
|
2086
|
+
export type MessagesExtraContent$Outbound = {
|
|
2087
|
+
google?: MessagesGoogle$Outbound | undefined;
|
|
2088
|
+
};
|
|
2089
|
+
|
|
2090
|
+
/** @internal */
|
|
2091
|
+
export const MessagesExtraContent$outboundSchema: z.ZodType<
|
|
2092
|
+
MessagesExtraContent$Outbound,
|
|
2093
|
+
z.ZodTypeDef,
|
|
2094
|
+
MessagesExtraContent
|
|
2095
|
+
> = z.object({
|
|
2096
|
+
google: z.lazy(() => MessagesGoogle$outboundSchema).optional(),
|
|
2097
|
+
});
|
|
2098
|
+
|
|
2099
|
+
export function messagesExtraContentToJSON(
|
|
2100
|
+
messagesExtraContent: MessagesExtraContent,
|
|
2101
|
+
): string {
|
|
2102
|
+
return JSON.stringify(
|
|
2103
|
+
MessagesExtraContent$outboundSchema.parse(messagesExtraContent),
|
|
2104
|
+
);
|
|
2105
|
+
}
|
|
2106
|
+
|
|
1984
2107
|
/** @internal */
|
|
1985
2108
|
export type MessagesToolCalls$Outbound = {
|
|
1986
2109
|
id: string;
|
|
1987
2110
|
type: string;
|
|
1988
2111
|
function: MessagesFunction$Outbound;
|
|
1989
2112
|
thought_signature?: string | undefined;
|
|
2113
|
+
extra_content?: MessagesExtraContent$Outbound | undefined;
|
|
1990
2114
|
};
|
|
1991
2115
|
|
|
1992
2116
|
/** @internal */
|
|
@@ -1999,9 +2123,11 @@ export const MessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
1999
2123
|
type: MessagesType$outboundSchema,
|
|
2000
2124
|
function: z.lazy(() => MessagesFunction$outboundSchema),
|
|
2001
2125
|
thoughtSignature: z.string().optional(),
|
|
2126
|
+
extraContent: z.lazy(() => MessagesExtraContent$outboundSchema).optional(),
|
|
2002
2127
|
}).transform((v) => {
|
|
2003
2128
|
return remap$(v, {
|
|
2004
2129
|
thoughtSignature: "thought_signature",
|
|
2130
|
+
extraContent: "extra_content",
|
|
2005
2131
|
});
|
|
2006
2132
|
});
|
|
2007
2133
|
|
|
@@ -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_01m31df1tdsrcs9ycn375bwfcq"),
|
|
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
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
WikiSettings,
|
|
9
|
+
WikiSettings$Outbound,
|
|
10
|
+
WikiSettings$outboundSchema,
|
|
11
|
+
} from "./wikisettings.js";
|
|
12
|
+
|
|
13
|
+
export type UpdateWikiRequest = {
|
|
14
|
+
displayName?: string | undefined;
|
|
15
|
+
scmConnectionId?: string | undefined;
|
|
16
|
+
settings?: WikiSettings | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type UpdateWikiRequest$Outbound = {
|
|
21
|
+
display_name?: string | undefined;
|
|
22
|
+
scm_connection_id?: string | undefined;
|
|
23
|
+
settings?: WikiSettings$Outbound | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const UpdateWikiRequest$outboundSchema: z.ZodType<
|
|
28
|
+
UpdateWikiRequest$Outbound,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
UpdateWikiRequest
|
|
31
|
+
> = z.object({
|
|
32
|
+
displayName: z.string().optional(),
|
|
33
|
+
scmConnectionId: z.string().optional(),
|
|
34
|
+
settings: WikiSettings$outboundSchema.optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
displayName: "display_name",
|
|
38
|
+
scmConnectionId: "scm_connection_id",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function updateWikiRequestToJSON(
|
|
43
|
+
updateWikiRequest: UpdateWikiRequest,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
UpdateWikiRequest$outboundSchema.parse(updateWikiRequest),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -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 UpdateWikiResponse = {
|
|
12
|
+
wiki?: Wiki | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const UpdateWikiResponse$inboundSchema: z.ZodType<
|
|
17
|
+
UpdateWikiResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
wiki: Wiki$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function updateWikiResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<UpdateWikiResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => UpdateWikiResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'UpdateWikiResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
WikiRepository,
|
|
12
|
+
WikiRepository$inboundSchema,
|
|
13
|
+
} from "./wikirepository.js";
|
|
14
|
+
import { WikiSettings, WikiSettings$inboundSchema } from "./wikisettings.js";
|
|
15
|
+
|
|
16
|
+
export type Wiki = {
|
|
17
|
+
wikiId?: string | undefined;
|
|
18
|
+
workspaceId?: string | undefined;
|
|
19
|
+
createdById?: string | undefined;
|
|
20
|
+
displayName?: string | undefined;
|
|
21
|
+
repositoryKey?: string | undefined;
|
|
22
|
+
repository?: WikiRepository | undefined;
|
|
23
|
+
branch?: string | undefined;
|
|
24
|
+
scmConnectionId?: string | undefined;
|
|
25
|
+
settings?: WikiSettings | undefined;
|
|
26
|
+
automationId?: string | undefined;
|
|
27
|
+
status?: string | undefined;
|
|
28
|
+
currentRunId?: string | undefined;
|
|
29
|
+
lastGeneratedCommit?: string | undefined;
|
|
30
|
+
lastGeneratedAt?: Date | undefined;
|
|
31
|
+
pageCount?: number | undefined;
|
|
32
|
+
createdAt?: Date | undefined;
|
|
33
|
+
updatedAt?: Date | undefined;
|
|
34
|
+
factoryId?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const Wiki$inboundSchema: z.ZodType<Wiki, z.ZodTypeDef, unknown> = z
|
|
39
|
+
.object({
|
|
40
|
+
wiki_id: z.string().optional(),
|
|
41
|
+
workspace_id: z.string().optional(),
|
|
42
|
+
created_by_id: z.string().optional(),
|
|
43
|
+
display_name: z.string().optional(),
|
|
44
|
+
repository_key: z.string().optional(),
|
|
45
|
+
repository: WikiRepository$inboundSchema.optional(),
|
|
46
|
+
branch: z.string().optional(),
|
|
47
|
+
scm_connection_id: z.string().optional(),
|
|
48
|
+
settings: WikiSettings$inboundSchema.optional(),
|
|
49
|
+
automation_id: z.string().optional(),
|
|
50
|
+
status: z.string().optional(),
|
|
51
|
+
current_run_id: z.string().optional(),
|
|
52
|
+
last_generated_commit: z.string().optional(),
|
|
53
|
+
last_generated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
54
|
+
new Date(v)
|
|
55
|
+
).optional(),
|
|
56
|
+
page_count: z.number().int().optional(),
|
|
57
|
+
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
58
|
+
new Date(v)
|
|
59
|
+
).optional(),
|
|
60
|
+
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
61
|
+
new Date(v)
|
|
62
|
+
).optional(),
|
|
63
|
+
factory_id: z.string().optional(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
"wiki_id": "wikiId",
|
|
67
|
+
"workspace_id": "workspaceId",
|
|
68
|
+
"created_by_id": "createdById",
|
|
69
|
+
"display_name": "displayName",
|
|
70
|
+
"repository_key": "repositoryKey",
|
|
71
|
+
"scm_connection_id": "scmConnectionId",
|
|
72
|
+
"automation_id": "automationId",
|
|
73
|
+
"current_run_id": "currentRunId",
|
|
74
|
+
"last_generated_commit": "lastGeneratedCommit",
|
|
75
|
+
"last_generated_at": "lastGeneratedAt",
|
|
76
|
+
"page_count": "pageCount",
|
|
77
|
+
"created_at": "createdAt",
|
|
78
|
+
"updated_at": "updatedAt",
|
|
79
|
+
"factory_id": "factoryId",
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
export function wikiFromJSON(
|
|
84
|
+
jsonString: string,
|
|
85
|
+
): SafeParseResult<Wiki, SDKValidationError> {
|
|
86
|
+
return safeParse(
|
|
87
|
+
jsonString,
|
|
88
|
+
(x) => Wiki$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'Wiki' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 WikiPage = {
|
|
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
|
+
markdown?: string | undefined;
|
|
19
|
+
runId?: string | undefined;
|
|
20
|
+
links?: Array<string> | undefined;
|
|
21
|
+
editedAt?: Date | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const WikiPage$inboundSchema: z.ZodType<
|
|
26
|
+
WikiPage,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
path: z.string().optional(),
|
|
31
|
+
title: z.string().optional(),
|
|
32
|
+
section: z.string().optional(),
|
|
33
|
+
order: z.number().int().optional(),
|
|
34
|
+
content_hash: z.string().optional(),
|
|
35
|
+
edited_by_id: z.string().optional(),
|
|
36
|
+
markdown: z.string().optional(),
|
|
37
|
+
run_id: z.string().optional(),
|
|
38
|
+
links: z.array(z.string()).optional(),
|
|
39
|
+
edited_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
40
|
+
.optional(),
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
"content_hash": "contentHash",
|
|
44
|
+
"edited_by_id": "editedById",
|
|
45
|
+
"run_id": "runId",
|
|
46
|
+
"edited_at": "editedAt",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function wikiPageFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<WikiPage, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => WikiPage$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'WikiPage' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|