@orq-ai/node 4.14.4 → 4.14.7
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 +2 -2
- package/lib/config.js +2 -2
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.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/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- 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/retrieveannotationqueue.js +1 -1
- 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/updateannotationqueue.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/auditLogsQuery.ts +162 -0
- package/packages/orq-rc/src/funcs/knowledgePreviewChunks.ts +179 -0
- package/packages/orq-rc/src/funcs/workspacesGet.ts +168 -0
- package/packages/orq-rc/src/funcs/workspacesList.ts +170 -0
- package/packages/orq-rc/src/funcs/workspacesUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/auditlog.ts +122 -0
- package/packages/orq-rc/src/models/components/auditlogfilter.ts +51 -0
- package/packages/orq-rc/src/models/components/auditlogfilterquery.ts +54 -0
- package/packages/orq-rc/src/models/components/auditlogpagination.ts +55 -0
- package/packages/orq-rc/src/models/components/auditlogsort.ts +39 -0
- package/packages/orq-rc/src/models/components/budgetmatch.ts +1 -7
- package/packages/orq-rc/src/models/components/budgetscope.ts +1 -21
- package/packages/orq-rc/src/models/components/budgetscopekind.ts +0 -1
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -17
- package/packages/orq-rc/src/models/components/chunkingconfiguration.ts +432 -4
- package/packages/orq-rc/src/models/components/datasourcesservicepreviewchunksrequest.ts +48 -0
- package/packages/orq-rc/src/models/components/datasourcesservicepreviewchunksresponse.ts +44 -0
- package/packages/orq-rc/src/models/components/getuploadfileurlresponse.ts +5 -0
- package/packages/orq-rc/src/models/components/getworkspaceresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +20 -3
- package/packages/orq-rc/src/models/components/listworkspacesresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/piiredactionconfig.ts +7 -9
- package/packages/orq-rc/src/models/components/previewchunk.ts +38 -0
- package/packages/orq-rc/src/models/components/previewchunksmetadata.ts +51 -0
- package/packages/orq-rc/src/models/components/queryauditlogsrequest.ts +64 -0
- package/packages/orq-rc/src/models/components/queryauditlogsresponse.ts +55 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +81 -0
- package/packages/orq-rc/src/models/components/updateworkspaceresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updateworkspacesettingsrequest.ts +0 -9
- package/packages/orq-rc/src/models/components/upsertchunk.ts +11 -0
- package/packages/orq-rc/src/models/components/value.ts +24 -0
- package/packages/orq-rc/src/models/components/workspace.ts +116 -0
- package/packages/orq-rc/src/models/components/workspacecapabilities.ts +33 -0
- package/packages/orq-rc/src/models/components/workspaceorganization.ts +33 -0
- package/packages/orq-rc/src/models/components/workspacesettings.ts +0 -3
- package/packages/orq-rc/src/models/components/workspacesettingsfields.ts +135 -0
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- 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/index.ts +4 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- 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/previewdatasourcechunks.ts +47 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -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/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/workspaceget.ts +31 -0
- package/packages/orq-rc/src/models/operations/workspacelist.ts +43 -0
- package/packages/orq-rc/src/models/operations/workspaceupdate.ts +40 -0
- package/packages/orq-rc/src/sdk/auditlogs.ts +27 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +18 -0
- package/packages/orq-rc/src/sdk/sdk.ts +12 -0
- package/packages/orq-rc/src/sdk/workspaces.ts +64 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.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/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- 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/retrieveannotationqueue.ts +1 -1
- 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/updateannotationqueue.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/factorybudgetscope.ts +0 -66
- package/packages/orq-rc/src/models/components/factorybudgetscoperestresponse.ts +0 -37
- package/packages/orq-rc/src/models/components/policyprofileidlist.ts +0 -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 { Workspace, Workspace$inboundSchema } from "./workspace.js";
|
|
10
|
+
|
|
11
|
+
export type GetWorkspaceResponse = {
|
|
12
|
+
workspace: Workspace;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const GetWorkspaceResponse$inboundSchema: z.ZodType<
|
|
17
|
+
GetWorkspaceResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
workspace: Workspace$inboundSchema,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function getWorkspaceResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<GetWorkspaceResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => GetWorkspaceResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'GetWorkspaceResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -46,6 +46,11 @@ export * from "./apikeyowner.js";
|
|
|
46
46
|
export * from "./apikeyrestresponse.js";
|
|
47
47
|
export * from "./apikeystatus.js";
|
|
48
48
|
export * from "./audiocontentpartschema.js";
|
|
49
|
+
export * from "./auditlog.js";
|
|
50
|
+
export * from "./auditlogfilter.js";
|
|
51
|
+
export * from "./auditlogfilterquery.js";
|
|
52
|
+
export * from "./auditlogpagination.js";
|
|
53
|
+
export * from "./auditlogsort.js";
|
|
49
54
|
export * from "./autorouterconfig.js";
|
|
50
55
|
export * from "./autorouterv2config.js";
|
|
51
56
|
export * from "./autorouterv2creatorconfig.js";
|
|
@@ -135,6 +140,8 @@ export * from "./datasourcechunkingoptions.js";
|
|
|
135
140
|
export * from "./datasourcesservicecreaterequest.js";
|
|
136
141
|
export * from "./datasourcesservicegetprocessingstatusresponse.js";
|
|
137
142
|
export * from "./datasourcesservicelistresponse.js";
|
|
143
|
+
export * from "./datasourcesservicepreviewchunksrequest.js";
|
|
144
|
+
export * from "./datasourcesservicepreviewchunksresponse.js";
|
|
138
145
|
export * from "./datasourcesserviceupdaterequest.js";
|
|
139
146
|
export * from "./deletealertresponse.js";
|
|
140
147
|
export * from "./deleteannotationqueueresponse.js";
|
|
@@ -183,8 +190,6 @@ export * from "./extendedmessage.js";
|
|
|
183
190
|
export * from "./facetgroup.js";
|
|
184
191
|
export * from "./facetkey.js";
|
|
185
192
|
export * from "./facetvalue.js";
|
|
186
|
-
export * from "./factorybudgetscope.js";
|
|
187
|
-
export * from "./factorybudgetscoperestresponse.js";
|
|
188
193
|
export * from "./fallbackconfig.js";
|
|
189
194
|
export * from "./fieldinfo.js";
|
|
190
195
|
export * from "./file.js";
|
|
@@ -223,6 +228,7 @@ export * from "./getsmartrouterresponse.js";
|
|
|
223
228
|
export * from "./gettraceresponse.js";
|
|
224
229
|
export * from "./gettracespanresponse.js";
|
|
225
230
|
export * from "./getuploadfileurlresponse.js";
|
|
231
|
+
export * from "./getworkspaceresponse.js";
|
|
226
232
|
export * from "./getworkspacesettingsresponse.js";
|
|
227
233
|
export * from "./googlesearchtoolinput.js";
|
|
228
234
|
export * from "./guardrailrule.js";
|
|
@@ -294,6 +300,7 @@ export * from "./listtracefieldsresponse.js";
|
|
|
294
300
|
export * from "./listtracelogsresponse.js";
|
|
295
301
|
export * from "./listtracespansresponse.js";
|
|
296
302
|
export * from "./listwebhooksresponse.js";
|
|
303
|
+
export * from "./listworkspacesresponse.js";
|
|
297
304
|
export * from "./litellmmodel.js";
|
|
298
305
|
export * from "./litellmmodelinfo.js";
|
|
299
306
|
export * from "./litellmparams.js";
|
|
@@ -367,8 +374,9 @@ export * from "./piiredactionpluginauto.js";
|
|
|
367
374
|
export * from "./piiredactionpluginen.js";
|
|
368
375
|
export * from "./piiredactionpluginnl.js";
|
|
369
376
|
export * from "./policy.js";
|
|
370
|
-
export * from "./policyprofileidlist.js";
|
|
371
377
|
export * from "./policyretryconfig.js";
|
|
378
|
+
export * from "./previewchunk.js";
|
|
379
|
+
export * from "./previewchunksmetadata.js";
|
|
372
380
|
export * from "./price.js";
|
|
373
381
|
export * from "./pricing.js";
|
|
374
382
|
export * from "./pricingvariant.js";
|
|
@@ -391,6 +399,8 @@ export * from "./publicschedule.js";
|
|
|
391
399
|
export * from "./publicscheduleerrordetail.js";
|
|
392
400
|
export * from "./publicschedulepayload.js";
|
|
393
401
|
export * from "./publicusage.js";
|
|
402
|
+
export * from "./queryauditlogsrequest.js";
|
|
403
|
+
export * from "./queryauditlogsresponse.js";
|
|
394
404
|
export * from "./queryknowledgebasetoolinput.js";
|
|
395
405
|
export * from "./querylogsrequest.js";
|
|
396
406
|
export * from "./querylogsresponse.js";
|
|
@@ -602,11 +612,14 @@ export * from "./updateskillrequest.js";
|
|
|
602
612
|
export * from "./updateskillresponse.js";
|
|
603
613
|
export * from "./updatesmartrouterrequest.js";
|
|
604
614
|
export * from "./updatesmartrouterresponse.js";
|
|
615
|
+
export * from "./updateworkspacerequest.js";
|
|
616
|
+
export * from "./updateworkspaceresponse.js";
|
|
605
617
|
export * from "./updateworkspacesettingsrequest.js";
|
|
606
618
|
export * from "./updateworkspacesettingsresponse.js";
|
|
607
619
|
export * from "./uploadpostpolicy.js";
|
|
608
620
|
export * from "./upsertchunk.js";
|
|
609
621
|
export * from "./userowner.js";
|
|
622
|
+
export * from "./value.js";
|
|
610
623
|
export * from "./verifydomainresponse.js";
|
|
611
624
|
export * from "./vertexcapabilities.js";
|
|
612
625
|
export * from "./vertexconfiguration.js";
|
|
@@ -616,6 +629,10 @@ export * from "./vertexparamrange.js";
|
|
|
616
629
|
export * from "./vertexparamrangeint.js";
|
|
617
630
|
export * from "./webhook.js";
|
|
618
631
|
export * from "./webscrapertoolinput.js";
|
|
632
|
+
export * from "./workspace.js";
|
|
619
633
|
export * from "./workspacebudgetscope.js";
|
|
634
|
+
export * from "./workspacecapabilities.js";
|
|
635
|
+
export * from "./workspaceorganization.js";
|
|
620
636
|
export * from "./workspacesettings.js";
|
|
637
|
+
export * from "./workspacesettingsfields.js";
|
|
621
638
|
export * from "./writememorystoretoolinput.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { Workspace, Workspace$inboundSchema } from "./workspace.js";
|
|
11
|
+
|
|
12
|
+
export type ListWorkspacesResponse = {
|
|
13
|
+
object: string;
|
|
14
|
+
data: Array<Workspace>;
|
|
15
|
+
hasMore: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ListWorkspacesResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ListWorkspacesResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
object: z.string(),
|
|
25
|
+
data: z.array(Workspace$inboundSchema),
|
|
26
|
+
has_more: z.boolean(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"has_more": "hasMore",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listWorkspacesResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ListWorkspacesResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ListWorkspacesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ListWorkspacesResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -9,18 +9,16 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* PiiRedactionConfig mirrors the workspace-default PII redaction plugin
|
|
12
|
+
* PiiRedactionConfig mirrors the workspace-default PII redaction plugin
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* own defaults for unset fields.
|
|
15
|
+
* configuration. Every field is optional; the gateway applies its own
|
|
16
|
+
* defaults for unset fields.
|
|
18
17
|
*
|
|
19
|
-
* The stored value is validated on write
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* validated there.
|
|
18
|
+
* The stored value is validated on write using the same rules the gateway
|
|
19
|
+
* applies to live requests. Without that, an invalid workspace default
|
|
20
|
+
* would 400 every gateway call for the workspace, since the default plugin
|
|
21
|
+
* is injected into each request and validated there.
|
|
24
22
|
*/
|
|
25
23
|
export type PiiRedactionConfig = {
|
|
26
24
|
/**
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type PreviewChunk = {
|
|
12
|
+
text: string;
|
|
13
|
+
pageNumber?: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const PreviewChunk$inboundSchema: z.ZodType<
|
|
18
|
+
PreviewChunk,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
text: z.string(),
|
|
23
|
+
page_number: z.number().int().optional(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"page_number": "pageNumber",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function previewChunkFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<PreviewChunk, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => PreviewChunk$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'PreviewChunk' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 PreviewChunksMetadata = {
|
|
12
|
+
wordsCount: number;
|
|
13
|
+
sentencesCount: number;
|
|
14
|
+
paragraphsCount: number;
|
|
15
|
+
tokensCount: number;
|
|
16
|
+
charactersCount: number;
|
|
17
|
+
chunksCount: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const PreviewChunksMetadata$inboundSchema: z.ZodType<
|
|
22
|
+
PreviewChunksMetadata,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
words_count: z.number().int(),
|
|
27
|
+
sentences_count: z.number().int(),
|
|
28
|
+
paragraphs_count: z.number().int(),
|
|
29
|
+
tokens_count: z.number().int(),
|
|
30
|
+
characters_count: z.number().int(),
|
|
31
|
+
chunks_count: z.number().int(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"words_count": "wordsCount",
|
|
35
|
+
"sentences_count": "sentencesCount",
|
|
36
|
+
"paragraphs_count": "paragraphsCount",
|
|
37
|
+
"tokens_count": "tokensCount",
|
|
38
|
+
"characters_count": "charactersCount",
|
|
39
|
+
"chunks_count": "chunksCount",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function previewChunksMetadataFromJSON(
|
|
44
|
+
jsonString: string,
|
|
45
|
+
): SafeParseResult<PreviewChunksMetadata, SDKValidationError> {
|
|
46
|
+
return safeParse(
|
|
47
|
+
jsonString,
|
|
48
|
+
(x) => PreviewChunksMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
49
|
+
`Failed to parse 'PreviewChunksMetadata' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
AuditLogFilterQuery,
|
|
8
|
+
AuditLogFilterQuery$Outbound,
|
|
9
|
+
AuditLogFilterQuery$outboundSchema,
|
|
10
|
+
} from "./auditlogfilterquery.js";
|
|
11
|
+
import {
|
|
12
|
+
AuditLogPagination,
|
|
13
|
+
AuditLogPagination$Outbound,
|
|
14
|
+
AuditLogPagination$outboundSchema,
|
|
15
|
+
} from "./auditlogpagination.js";
|
|
16
|
+
import {
|
|
17
|
+
AuditLogSort,
|
|
18
|
+
AuditLogSort$Outbound,
|
|
19
|
+
AuditLogSort$outboundSchema,
|
|
20
|
+
} from "./auditlogsort.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Request body for querying audit logs in the authenticated workspace.
|
|
24
|
+
*/
|
|
25
|
+
export type QueryAuditLogsRequest = {
|
|
26
|
+
/**
|
|
27
|
+
* Search and advanced filters for querying audit logs.
|
|
28
|
+
*/
|
|
29
|
+
filters: AuditLogFilterQuery;
|
|
30
|
+
/**
|
|
31
|
+
* Cursor pagination settings for audit log queries.
|
|
32
|
+
*/
|
|
33
|
+
pagination: AuditLogPagination;
|
|
34
|
+
/**
|
|
35
|
+
* Sort expressions. Defaults to audit_log_id descending when omitted.
|
|
36
|
+
*/
|
|
37
|
+
sorting?: Array<AuditLogSort> | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type QueryAuditLogsRequest$Outbound = {
|
|
42
|
+
filters: AuditLogFilterQuery$Outbound;
|
|
43
|
+
pagination: AuditLogPagination$Outbound;
|
|
44
|
+
sorting?: Array<AuditLogSort$Outbound> | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const QueryAuditLogsRequest$outboundSchema: z.ZodType<
|
|
49
|
+
QueryAuditLogsRequest$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
QueryAuditLogsRequest
|
|
52
|
+
> = z.object({
|
|
53
|
+
filters: AuditLogFilterQuery$outboundSchema,
|
|
54
|
+
pagination: AuditLogPagination$outboundSchema,
|
|
55
|
+
sorting: z.array(AuditLogSort$outboundSchema).optional(),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export function queryAuditLogsRequestToJSON(
|
|
59
|
+
queryAuditLogsRequest: QueryAuditLogsRequest,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
QueryAuditLogsRequest$outboundSchema.parse(queryAuditLogsRequest),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { AuditLog, AuditLog$inboundSchema } from "./auditlog.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Paginated audit log query result.
|
|
14
|
+
*/
|
|
15
|
+
export type QueryAuditLogsResponse = {
|
|
16
|
+
/**
|
|
17
|
+
* Audit logs matching the query.
|
|
18
|
+
*/
|
|
19
|
+
auditLogs: Array<AuditLog>;
|
|
20
|
+
/**
|
|
21
|
+
* Total number of audit logs matching the query before cursor pagination.
|
|
22
|
+
*/
|
|
23
|
+
overallTotal: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether another page exists after the returned audit logs.
|
|
26
|
+
*/
|
|
27
|
+
hasMore: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const QueryAuditLogsResponse$inboundSchema: z.ZodType<
|
|
32
|
+
QueryAuditLogsResponse,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
audit_logs: z.array(AuditLog$inboundSchema),
|
|
37
|
+
overall_total: z.string(),
|
|
38
|
+
has_more: z.boolean(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
"audit_logs": "auditLogs",
|
|
42
|
+
"overall_total": "overallTotal",
|
|
43
|
+
"has_more": "hasMore",
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function queryAuditLogsResponseFromJSON(
|
|
48
|
+
jsonString: string,
|
|
49
|
+
): SafeParseResult<QueryAuditLogsResponse, SDKValidationError> {
|
|
50
|
+
return safeParse(
|
|
51
|
+
jsonString,
|
|
52
|
+
(x) => QueryAuditLogsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
53
|
+
`Failed to parse 'QueryAuditLogsResponse' from JSON`,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -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_01m1ds3xj0xdcax8xkkg8wpsdp"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
WorkspaceSettingsFields,
|
|
9
|
+
WorkspaceSettingsFields$Outbound,
|
|
10
|
+
WorkspaceSettingsFields$outboundSchema,
|
|
11
|
+
} from "./workspacesettingsfields.js";
|
|
12
|
+
|
|
13
|
+
export type UpdateWorkspaceRequestMetadata = {};
|
|
14
|
+
|
|
15
|
+
export type UpdateWorkspaceRequest = {
|
|
16
|
+
displayName?: string | undefined;
|
|
17
|
+
logoUrl?: string | undefined;
|
|
18
|
+
archived?: boolean | undefined;
|
|
19
|
+
settings?: WorkspaceSettingsFields | undefined;
|
|
20
|
+
metadata?: UpdateWorkspaceRequestMetadata | undefined;
|
|
21
|
+
enforceEnabledModels?: boolean | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type UpdateWorkspaceRequestMetadata$Outbound = {};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const UpdateWorkspaceRequestMetadata$outboundSchema: z.ZodType<
|
|
29
|
+
UpdateWorkspaceRequestMetadata$Outbound,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
UpdateWorkspaceRequestMetadata
|
|
32
|
+
> = z.object({});
|
|
33
|
+
|
|
34
|
+
export function updateWorkspaceRequestMetadataToJSON(
|
|
35
|
+
updateWorkspaceRequestMetadata: UpdateWorkspaceRequestMetadata,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
UpdateWorkspaceRequestMetadata$outboundSchema.parse(
|
|
39
|
+
updateWorkspaceRequestMetadata,
|
|
40
|
+
),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type UpdateWorkspaceRequest$Outbound = {
|
|
46
|
+
display_name?: string | undefined;
|
|
47
|
+
logo_url?: string | undefined;
|
|
48
|
+
archived?: boolean | undefined;
|
|
49
|
+
settings?: WorkspaceSettingsFields$Outbound | undefined;
|
|
50
|
+
metadata?: UpdateWorkspaceRequestMetadata$Outbound | undefined;
|
|
51
|
+
enforce_enabled_models?: boolean | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const UpdateWorkspaceRequest$outboundSchema: z.ZodType<
|
|
56
|
+
UpdateWorkspaceRequest$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
UpdateWorkspaceRequest
|
|
59
|
+
> = z.object({
|
|
60
|
+
displayName: z.string().optional(),
|
|
61
|
+
logoUrl: z.string().optional(),
|
|
62
|
+
archived: z.boolean().optional(),
|
|
63
|
+
settings: WorkspaceSettingsFields$outboundSchema.optional(),
|
|
64
|
+
metadata: z.lazy(() => UpdateWorkspaceRequestMetadata$outboundSchema)
|
|
65
|
+
.optional(),
|
|
66
|
+
enforceEnabledModels: z.boolean().optional(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
displayName: "display_name",
|
|
70
|
+
logoUrl: "logo_url",
|
|
71
|
+
enforceEnabledModels: "enforce_enabled_models",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function updateWorkspaceRequestToJSON(
|
|
76
|
+
updateWorkspaceRequest: UpdateWorkspaceRequest,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
UpdateWorkspaceRequest$outboundSchema.parse(updateWorkspaceRequest),
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -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 { Workspace, Workspace$inboundSchema } from "./workspace.js";
|
|
10
|
+
|
|
11
|
+
export type UpdateWorkspaceResponse = {
|
|
12
|
+
workspace: Workspace;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const UpdateWorkspaceResponse$inboundSchema: z.ZodType<
|
|
17
|
+
UpdateWorkspaceResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
workspace: Workspace$inboundSchema,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function updateWorkspaceResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<UpdateWorkspaceResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => UpdateWorkspaceResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'UpdateWorkspaceResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -9,11 +9,6 @@ import {
|
|
|
9
9
|
PiiRedaction$Outbound,
|
|
10
10
|
PiiRedaction$outboundSchema,
|
|
11
11
|
} from "./piiredaction.js";
|
|
12
|
-
import {
|
|
13
|
-
PolicyProfileIdList,
|
|
14
|
-
PolicyProfileIdList$Outbound,
|
|
15
|
-
PolicyProfileIdList$outboundSchema,
|
|
16
|
-
} from "./policyprofileidlist.js";
|
|
17
12
|
|
|
18
13
|
/**
|
|
19
14
|
* UpdateWorkspaceSettingsRequest is a partial update: every field is optional
|
|
@@ -46,7 +41,6 @@ export type UpdateWorkspaceSettingsRequest = {
|
|
|
46
41
|
* replaces the stored pii_redaction object.
|
|
47
42
|
*/
|
|
48
43
|
piiRedaction?: PiiRedaction | undefined;
|
|
49
|
-
defaultPolicyProfileIds?: PolicyProfileIdList | undefined;
|
|
50
44
|
};
|
|
51
45
|
|
|
52
46
|
/** @internal */
|
|
@@ -54,7 +48,6 @@ export type UpdateWorkspaceSettingsRequest$Outbound = {
|
|
|
54
48
|
display_name?: string | undefined;
|
|
55
49
|
enforce_enabled_models?: boolean | undefined;
|
|
56
50
|
pii_redaction?: PiiRedaction$Outbound | undefined;
|
|
57
|
-
default_policy_profile_ids?: PolicyProfileIdList$Outbound | undefined;
|
|
58
51
|
};
|
|
59
52
|
|
|
60
53
|
/** @internal */
|
|
@@ -66,13 +59,11 @@ export const UpdateWorkspaceSettingsRequest$outboundSchema: z.ZodType<
|
|
|
66
59
|
displayName: z.string().optional(),
|
|
67
60
|
enforceEnabledModels: z.boolean().optional(),
|
|
68
61
|
piiRedaction: PiiRedaction$outboundSchema.optional(),
|
|
69
|
-
defaultPolicyProfileIds: PolicyProfileIdList$outboundSchema.optional(),
|
|
70
62
|
}).transform((v) => {
|
|
71
63
|
return remap$(v, {
|
|
72
64
|
displayName: "display_name",
|
|
73
65
|
enforceEnabledModels: "enforce_enabled_models",
|
|
74
66
|
piiRedaction: "pii_redaction",
|
|
75
|
-
defaultPolicyProfileIds: "default_policy_profile_ids",
|
|
76
67
|
});
|
|
77
68
|
});
|
|
78
69
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
|
|
7
8
|
export type UpsertChunkMetadata = string | number | boolean;
|
|
8
9
|
|
|
@@ -16,6 +17,10 @@ export type UpsertChunk = {
|
|
|
16
17
|
* Metadata of the chunk
|
|
17
18
|
*/
|
|
18
19
|
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Optional client-supplied chunk id. Reusing the same _id makes creation idempotent: an existing chunk with that _id in this datasource is replaced instead of duplicated.
|
|
22
|
+
*/
|
|
23
|
+
id?: string | undefined;
|
|
19
24
|
};
|
|
20
25
|
|
|
21
26
|
/** @internal */
|
|
@@ -41,6 +46,7 @@ export type UpsertChunk$Outbound = {
|
|
|
41
46
|
text: string;
|
|
42
47
|
embedding?: Array<number> | undefined;
|
|
43
48
|
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
49
|
+
_id?: string | undefined;
|
|
44
50
|
};
|
|
45
51
|
|
|
46
52
|
/** @internal */
|
|
@@ -52,6 +58,11 @@ export const UpsertChunk$outboundSchema: z.ZodType<
|
|
|
52
58
|
text: z.string(),
|
|
53
59
|
embedding: z.array(z.number()).optional(),
|
|
54
60
|
metadata: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
|
|
61
|
+
id: z.string().optional(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return remap$(v, {
|
|
64
|
+
id: "_id",
|
|
65
|
+
});
|
|
55
66
|
});
|
|
56
67
|
|
|
57
68
|
export function upsertChunkToJSON(upsertChunk: UpsertChunk): string {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const Value = {
|
|
9
|
+
OriginUnspecified: "ORIGIN_UNSPECIFIED",
|
|
10
|
+
Ui: "ui",
|
|
11
|
+
Api: "api",
|
|
12
|
+
Scim: "scim",
|
|
13
|
+
System: "system",
|
|
14
|
+
Router: "router",
|
|
15
|
+
Mcp: "mcp",
|
|
16
|
+
Automation: "automation",
|
|
17
|
+
Internal: "internal",
|
|
18
|
+
} as const;
|
|
19
|
+
export type Value = ClosedEnum<typeof Value>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const Value$inboundSchema: z.ZodNativeEnum<typeof Value> = z.nativeEnum(
|
|
23
|
+
Value,
|
|
24
|
+
);
|