@orq-ai/node 4.14.13 → 4.14.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +3 -3
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsList.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsCreate.ts +4 -5
- package/packages/orq-rc/src/funcs/evalsGet.ts +4 -5
- package/packages/orq-rc/src/funcs/evalsGetVersion.ts +4 -5
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +4 -4
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +4 -5
- package/packages/orq-rc/src/funcs/hubGet.ts +168 -0
- package/packages/orq-rc/src/funcs/hubSearch.ts +169 -0
- package/packages/orq-rc/src/funcs/sessionsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/sessionsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/sessionsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/sessionsGetCount.ts +162 -0
- package/packages/orq-rc/src/funcs/sessionsList.ts +162 -0
- package/packages/orq-rc/src/funcs/sessionsListTags.ts +144 -0
- package/packages/orq-rc/src/funcs/sessionsUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/agentresponserequest.ts +14 -10
- package/packages/orq-rc/src/models/components/budgetlimit.ts +11 -9
- package/packages/orq-rc/src/models/components/createthreadrequest.ts +91 -0
- package/packages/orq-rc/src/models/components/filter.ts +7 -9
- package/packages/orq-rc/src/models/components/gethubitemresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/getthreadcountrequest.ts +42 -0
- package/packages/orq-rc/src/models/components/getthreadcountresponse.ts +31 -0
- package/packages/orq-rc/src/models/components/hubitem.ts +136 -0
- package/packages/orq-rc/src/models/components/hubitemsummary.ts +60 -0
- package/packages/orq-rc/src/models/components/hubsearchhit.ts +35 -0
- package/packages/orq-rc/src/models/components/index.ts +18 -3
- package/packages/orq-rc/src/models/components/listthreadsrequest.ts +42 -0
- package/packages/orq-rc/src/models/components/listthreadsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/managementkey.ts +3 -4
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/modelsconfig.ts +11 -10
- package/packages/orq-rc/src/models/components/monitorfilter.ts +11 -7
- package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +84 -0
- package/packages/orq-rc/src/models/components/publicresponseresource.ts +7 -0
- package/packages/orq-rc/src/models/components/queryreportrequest.ts +10 -11
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsemeta.ts +6 -7
- package/packages/orq-rc/src/models/components/searchhubitemsresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/sessioninterval.ts +26 -0
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +13 -8
- package/packages/orq-rc/src/models/components/thread.ts +101 -0
- package/packages/orq-rc/src/models/components/threadbilling.ts +68 -0
- package/packages/orq-rc/src/models/components/threadfilters.ts +66 -0
- package/packages/orq-rc/src/models/components/threadkind.ts +20 -0
- package/packages/orq-rc/src/models/components/threadusage.ts +68 -0
- package/packages/orq-rc/src/models/components/updatethreadrequest.ts +105 -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/createeval.ts +25 -0
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +128 -9
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deletesession.ts +36 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/geteval.ts +25 -0
- package/packages/orq-rc/src/models/operations/getevalversion.ts +25 -0
- package/packages/orq-rc/src/models/operations/getsession.ts +36 -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/hubget.ts +27 -0
- package/packages/orq-rc/src/models/operations/hubsearch.ts +34 -0
- package/packages/orq-rc/src/models/operations/index.ts +5 -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/modelcreateopenailike.ts +8 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +8 -0
- 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/postv2routerocr.ts +36 -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/retrieveresponse.ts +5 -0
- 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/updateeval.ts +25 -0
- package/packages/orq-rc/src/models/operations/updatesession.ts +41 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/budgets.ts +6 -6
- package/packages/orq-rc/src/sdk/evals.ts +5 -5
- package/packages/orq-rc/src/sdk/hub.ts +46 -0
- package/packages/orq-rc/src/sdk/sdk.ts +27 -15
- package/packages/orq-rc/src/sdk/sessions.ts +134 -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/evaluatordocumentresponse.ts +0 -50
- package/packages/orq-rc/src/models/components/getevaluatorversionresponse.ts +0 -58
- package/packages/orq-rc/src/models/components/invokeevaluatorresponse.ts +0 -47
|
@@ -145,7 +145,7 @@ export type Contact = {
|
|
|
145
145
|
/**
|
|
146
146
|
* Thread information to group related requests
|
|
147
147
|
*/
|
|
148
|
-
export type
|
|
148
|
+
export type AgentResponseRequestThread = {
|
|
149
149
|
/**
|
|
150
150
|
* Unique thread identifier to group related invocations.
|
|
151
151
|
*/
|
|
@@ -228,7 +228,7 @@ export type AgentResponseRequest = {
|
|
|
228
228
|
/**
|
|
229
229
|
* Thread information to group related requests
|
|
230
230
|
*/
|
|
231
|
-
thread?:
|
|
231
|
+
thread?: AgentResponseRequestThread | undefined;
|
|
232
232
|
/**
|
|
233
233
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
234
234
|
*/
|
|
@@ -419,23 +419,27 @@ export function contactToJSON(contact: Contact): string {
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
/** @internal */
|
|
422
|
-
export type
|
|
422
|
+
export type AgentResponseRequestThread$Outbound = {
|
|
423
423
|
id: string;
|
|
424
424
|
tags?: Array<string> | undefined;
|
|
425
425
|
};
|
|
426
426
|
|
|
427
427
|
/** @internal */
|
|
428
|
-
export const
|
|
429
|
-
|
|
428
|
+
export const AgentResponseRequestThread$outboundSchema: z.ZodType<
|
|
429
|
+
AgentResponseRequestThread$Outbound,
|
|
430
430
|
z.ZodTypeDef,
|
|
431
|
-
|
|
431
|
+
AgentResponseRequestThread
|
|
432
432
|
> = z.object({
|
|
433
433
|
id: z.string(),
|
|
434
434
|
tags: z.array(z.string()).optional(),
|
|
435
435
|
});
|
|
436
436
|
|
|
437
|
-
export function
|
|
438
|
-
|
|
437
|
+
export function agentResponseRequestThreadToJSON(
|
|
438
|
+
agentResponseRequestThread: AgentResponseRequestThread,
|
|
439
|
+
): string {
|
|
440
|
+
return JSON.stringify(
|
|
441
|
+
AgentResponseRequestThread$outboundSchema.parse(agentResponseRequestThread),
|
|
442
|
+
);
|
|
439
443
|
}
|
|
440
444
|
|
|
441
445
|
/** @internal */
|
|
@@ -521,7 +525,7 @@ export type AgentResponseRequest$Outbound = {
|
|
|
521
525
|
variables?: { [k: string]: any } | undefined;
|
|
522
526
|
identity?: AgentResponseRequestIdentity$Outbound | undefined;
|
|
523
527
|
contact?: Contact$Outbound | undefined;
|
|
524
|
-
thread?:
|
|
528
|
+
thread?: AgentResponseRequestThread$Outbound | undefined;
|
|
525
529
|
memory?: AgentResponseRequestMemory$Outbound | undefined;
|
|
526
530
|
metadata?: { [k: string]: any } | undefined;
|
|
527
531
|
engine?: string | undefined;
|
|
@@ -543,7 +547,7 @@ export const AgentResponseRequest$outboundSchema: z.ZodType<
|
|
|
543
547
|
identity: z.lazy(() => AgentResponseRequestIdentity$outboundSchema)
|
|
544
548
|
.optional(),
|
|
545
549
|
contact: z.lazy(() => Contact$outboundSchema).optional(),
|
|
546
|
-
thread: z.lazy(() =>
|
|
550
|
+
thread: z.lazy(() => AgentResponseRequestThread$outboundSchema).optional(),
|
|
547
551
|
memory: z.lazy(() => AgentResponseRequestMemory$outboundSchema).optional(),
|
|
548
552
|
metadata: z.record(z.any()).optional(),
|
|
549
553
|
engine: Engine$outboundSchema.optional(),
|
|
@@ -8,10 +8,10 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export const
|
|
11
|
+
export const BudgetLimitCurrency = {
|
|
12
12
|
Usd: "usd",
|
|
13
13
|
} as const;
|
|
14
|
-
export type
|
|
14
|
+
export type BudgetLimitCurrency = ClosedEnum<typeof BudgetLimitCurrency>;
|
|
15
15
|
|
|
16
16
|
export const Period = {
|
|
17
17
|
Hour: "hour",
|
|
@@ -23,16 +23,18 @@ export type Period = ClosedEnum<typeof Period>;
|
|
|
23
23
|
|
|
24
24
|
export type BudgetLimit = {
|
|
25
25
|
amount: number;
|
|
26
|
-
currency:
|
|
26
|
+
currency: BudgetLimitCurrency;
|
|
27
27
|
period: Period;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
31
|
-
export const
|
|
32
|
-
|
|
31
|
+
export const BudgetLimitCurrency$inboundSchema: z.ZodNativeEnum<
|
|
32
|
+
typeof BudgetLimitCurrency
|
|
33
|
+
> = z.nativeEnum(BudgetLimitCurrency);
|
|
33
34
|
/** @internal */
|
|
34
|
-
export const
|
|
35
|
-
|
|
35
|
+
export const BudgetLimitCurrency$outboundSchema: z.ZodNativeEnum<
|
|
36
|
+
typeof BudgetLimitCurrency
|
|
37
|
+
> = BudgetLimitCurrency$inboundSchema;
|
|
36
38
|
|
|
37
39
|
/** @internal */
|
|
38
40
|
export const Period$inboundSchema: z.ZodNativeEnum<typeof Period> = z
|
|
@@ -48,7 +50,7 @@ export const BudgetLimit$inboundSchema: z.ZodType<
|
|
|
48
50
|
unknown
|
|
49
51
|
> = z.object({
|
|
50
52
|
amount: z.number(),
|
|
51
|
-
currency:
|
|
53
|
+
currency: BudgetLimitCurrency$inboundSchema,
|
|
52
54
|
period: Period$inboundSchema,
|
|
53
55
|
});
|
|
54
56
|
/** @internal */
|
|
@@ -65,7 +67,7 @@ export const BudgetLimit$outboundSchema: z.ZodType<
|
|
|
65
67
|
BudgetLimit
|
|
66
68
|
> = z.object({
|
|
67
69
|
amount: z.number(),
|
|
68
|
-
currency:
|
|
70
|
+
currency: BudgetLimitCurrency$outboundSchema,
|
|
69
71
|
period: Period$outboundSchema,
|
|
70
72
|
});
|
|
71
73
|
|
|
@@ -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 {
|
|
8
|
+
ThreadBilling,
|
|
9
|
+
ThreadBilling$Outbound,
|
|
10
|
+
ThreadBilling$outboundSchema,
|
|
11
|
+
} from "./threadbilling.js";
|
|
12
|
+
import { ThreadKind, ThreadKind$outboundSchema } from "./threadkind.js";
|
|
13
|
+
import {
|
|
14
|
+
ThreadUsage,
|
|
15
|
+
ThreadUsage$Outbound,
|
|
16
|
+
ThreadUsage$outboundSchema,
|
|
17
|
+
} from "./threadusage.js";
|
|
18
|
+
|
|
19
|
+
export type CreateThreadRequest = {
|
|
20
|
+
externalId: string;
|
|
21
|
+
duration: number;
|
|
22
|
+
contactIds: Array<string>;
|
|
23
|
+
billing: ThreadBilling;
|
|
24
|
+
usage: ThreadUsage;
|
|
25
|
+
tracesCount: number;
|
|
26
|
+
tags: Array<string>;
|
|
27
|
+
projectId?: string | undefined;
|
|
28
|
+
startedAt?: Date | undefined;
|
|
29
|
+
updatedAt?: Date | undefined;
|
|
30
|
+
title?: string | undefined;
|
|
31
|
+
client?: string | undefined;
|
|
32
|
+
repo?: string | undefined;
|
|
33
|
+
kind?: ThreadKind | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type CreateThreadRequest$Outbound = {
|
|
38
|
+
external_id: string;
|
|
39
|
+
duration: number;
|
|
40
|
+
contact_ids: Array<string>;
|
|
41
|
+
billing: ThreadBilling$Outbound;
|
|
42
|
+
usage: ThreadUsage$Outbound;
|
|
43
|
+
traces_count: number;
|
|
44
|
+
tags: Array<string>;
|
|
45
|
+
project_id?: string | undefined;
|
|
46
|
+
started_at?: string | undefined;
|
|
47
|
+
updated_at?: string | undefined;
|
|
48
|
+
title?: string | undefined;
|
|
49
|
+
client?: string | undefined;
|
|
50
|
+
repo?: string | undefined;
|
|
51
|
+
kind?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const CreateThreadRequest$outboundSchema: z.ZodType<
|
|
56
|
+
CreateThreadRequest$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
CreateThreadRequest
|
|
59
|
+
> = z.object({
|
|
60
|
+
externalId: z.string(),
|
|
61
|
+
duration: z.number(),
|
|
62
|
+
contactIds: z.array(z.string()),
|
|
63
|
+
billing: ThreadBilling$outboundSchema,
|
|
64
|
+
usage: ThreadUsage$outboundSchema,
|
|
65
|
+
tracesCount: z.number().int(),
|
|
66
|
+
tags: z.array(z.string()),
|
|
67
|
+
projectId: z.string().optional(),
|
|
68
|
+
startedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
69
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
70
|
+
title: z.string().optional(),
|
|
71
|
+
client: z.string().optional(),
|
|
72
|
+
repo: z.string().optional(),
|
|
73
|
+
kind: ThreadKind$outboundSchema.optional(),
|
|
74
|
+
}).transform((v) => {
|
|
75
|
+
return remap$(v, {
|
|
76
|
+
externalId: "external_id",
|
|
77
|
+
contactIds: "contact_ids",
|
|
78
|
+
tracesCount: "traces_count",
|
|
79
|
+
projectId: "project_id",
|
|
80
|
+
startedAt: "started_at",
|
|
81
|
+
updatedAt: "updated_at",
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
export function createThreadRequestToJSON(
|
|
86
|
+
createThreadRequest: CreateThreadRequest,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
CreateThreadRequest$outboundSchema.parse(createThreadRequest),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -56,7 +56,7 @@ export type Field = ClosedEnum<typeof Field>;
|
|
|
56
56
|
/**
|
|
57
57
|
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
58
58
|
*/
|
|
59
|
-
export const
|
|
59
|
+
export const Op = {
|
|
60
60
|
Eq: "eq",
|
|
61
61
|
Neq: "neq",
|
|
62
62
|
In: "in",
|
|
@@ -65,7 +65,7 @@ export const FilterOp = {
|
|
|
65
65
|
/**
|
|
66
66
|
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
67
67
|
*/
|
|
68
|
-
export type
|
|
68
|
+
export type Op = ClosedEnum<typeof Op>;
|
|
69
69
|
|
|
70
70
|
export type Filter = {
|
|
71
71
|
/**
|
|
@@ -75,7 +75,7 @@ export type Filter = {
|
|
|
75
75
|
/**
|
|
76
76
|
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
77
77
|
*/
|
|
78
|
-
op?:
|
|
78
|
+
op?: Op | undefined;
|
|
79
79
|
/**
|
|
80
80
|
* Values compared against the selected field. Values are interpreted
|
|
81
81
|
*
|
|
@@ -94,17 +94,15 @@ export const Field$outboundSchema: z.ZodNativeEnum<typeof Field> =
|
|
|
94
94
|
Field$inboundSchema;
|
|
95
95
|
|
|
96
96
|
/** @internal */
|
|
97
|
-
export const
|
|
98
|
-
.nativeEnum(FilterOp);
|
|
97
|
+
export const Op$inboundSchema: z.ZodNativeEnum<typeof Op> = z.nativeEnum(Op);
|
|
99
98
|
/** @internal */
|
|
100
|
-
export const
|
|
101
|
-
FilterOp$inboundSchema;
|
|
99
|
+
export const Op$outboundSchema: z.ZodNativeEnum<typeof Op> = Op$inboundSchema;
|
|
102
100
|
|
|
103
101
|
/** @internal */
|
|
104
102
|
export const Filter$inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown> = z
|
|
105
103
|
.object({
|
|
106
104
|
field: Field$inboundSchema.optional(),
|
|
107
|
-
op:
|
|
105
|
+
op: Op$inboundSchema.optional(),
|
|
108
106
|
values: z.array(z.string()).optional(),
|
|
109
107
|
});
|
|
110
108
|
/** @internal */
|
|
@@ -121,7 +119,7 @@ export const Filter$outboundSchema: z.ZodType<
|
|
|
121
119
|
Filter
|
|
122
120
|
> = z.object({
|
|
123
121
|
field: Field$outboundSchema.optional(),
|
|
124
|
-
op:
|
|
122
|
+
op: Op$outboundSchema.optional(),
|
|
125
123
|
values: z.array(z.string()).optional(),
|
|
126
124
|
});
|
|
127
125
|
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { HubItem, HubItem$inboundSchema } from "./hubitem.js";
|
|
11
|
+
|
|
12
|
+
export type GetHubItemResponse = {
|
|
13
|
+
hubItem: HubItem;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const GetHubItemResponse$inboundSchema: z.ZodType<
|
|
18
|
+
GetHubItemResponse,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
hub_item: HubItem$inboundSchema,
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"hub_item": "hubItem",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function getHubItemResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<GetHubItemResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => GetHubItemResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'GetHubItemResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -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 {
|
|
7
|
+
ThreadFilters,
|
|
8
|
+
ThreadFilters$Outbound,
|
|
9
|
+
ThreadFilters$outboundSchema,
|
|
10
|
+
} from "./threadfilters.js";
|
|
11
|
+
|
|
12
|
+
export type GetThreadCountRequest = {
|
|
13
|
+
filters: ThreadFilters;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type GetThreadCountRequest$Outbound = {
|
|
20
|
+
filters: ThreadFilters$Outbound;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const GetThreadCountRequest$outboundSchema: z.ZodType<
|
|
27
|
+
GetThreadCountRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
GetThreadCountRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
filters: ThreadFilters$outboundSchema,
|
|
32
|
+
limit: z.number().int().optional(),
|
|
33
|
+
page: z.number().int().optional(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function getThreadCountRequestToJSON(
|
|
37
|
+
getThreadCountRequest: GetThreadCountRequest,
|
|
38
|
+
): string {
|
|
39
|
+
return JSON.stringify(
|
|
40
|
+
GetThreadCountRequest$outboundSchema.parse(getThreadCountRequest),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -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
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type GetThreadCountResponse = {
|
|
11
|
+
count: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const GetThreadCountResponse$inboundSchema: z.ZodType<
|
|
16
|
+
GetThreadCountResponse,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
count: z.number().int(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export function getThreadCountResponseFromJSON(
|
|
24
|
+
jsonString: string,
|
|
25
|
+
): SafeParseResult<GetThreadCountResponse, SDKValidationError> {
|
|
26
|
+
return safeParse(
|
|
27
|
+
jsonString,
|
|
28
|
+
(x) => GetThreadCountResponse$inboundSchema.parse(JSON.parse(x)),
|
|
29
|
+
`Failed to parse 'GetThreadCountResponse' from JSON`,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
/**
|
|
12
|
+
* Evaluator template payload.
|
|
13
|
+
*/
|
|
14
|
+
export type Evaluator = {};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Prompt template payload.
|
|
18
|
+
*/
|
|
19
|
+
export type Prompt = {};
|
|
20
|
+
|
|
21
|
+
export type HubItem = {
|
|
22
|
+
/**
|
|
23
|
+
* Unique hub item ID.
|
|
24
|
+
*/
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* ID of the workspace entity represented by this hub item.
|
|
28
|
+
*/
|
|
29
|
+
entityId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Human-readable hub item name.
|
|
32
|
+
*/
|
|
33
|
+
displayName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Hub item description.
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
* Hub item type.
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
/**
|
|
43
|
+
* Whether a vendor hub item is active.
|
|
44
|
+
*/
|
|
45
|
+
isActive?: boolean | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Whether a vendor hub item is private.
|
|
48
|
+
*/
|
|
49
|
+
isPrivate?: boolean | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the hub item is provided by orq.
|
|
52
|
+
*/
|
|
53
|
+
isProvidedByOrq?: boolean | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Execution engine for vendor hub item templates.
|
|
56
|
+
*/
|
|
57
|
+
engine?: string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Stable vendor template key.
|
|
60
|
+
*/
|
|
61
|
+
key?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Evaluator template payload.
|
|
64
|
+
*/
|
|
65
|
+
evaluator?: Evaluator | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Prompt template payload.
|
|
68
|
+
*/
|
|
69
|
+
prompt?: Prompt | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const Evaluator$inboundSchema: z.ZodType<
|
|
74
|
+
Evaluator,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
unknown
|
|
77
|
+
> = z.object({});
|
|
78
|
+
|
|
79
|
+
export function evaluatorFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<Evaluator, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => Evaluator$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'Evaluator' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const Prompt$inboundSchema: z.ZodType<Prompt, z.ZodTypeDef, unknown> = z
|
|
91
|
+
.object({});
|
|
92
|
+
|
|
93
|
+
export function promptFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<Prompt, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => Prompt$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'Prompt' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const HubItem$inboundSchema: z.ZodType<HubItem, z.ZodTypeDef, unknown> =
|
|
105
|
+
z.object({
|
|
106
|
+
id: z.string().optional(),
|
|
107
|
+
entity_id: z.string(),
|
|
108
|
+
display_name: z.string(),
|
|
109
|
+
description: z.string(),
|
|
110
|
+
type: z.string(),
|
|
111
|
+
is_active: z.boolean().optional(),
|
|
112
|
+
is_private: z.boolean().optional(),
|
|
113
|
+
is_provided_by_orq: z.boolean().optional(),
|
|
114
|
+
engine: z.string().optional(),
|
|
115
|
+
key: z.string().optional(),
|
|
116
|
+
evaluator: z.lazy(() => Evaluator$inboundSchema).optional(),
|
|
117
|
+
prompt: z.lazy(() => Prompt$inboundSchema).optional(),
|
|
118
|
+
}).transform((v) => {
|
|
119
|
+
return remap$(v, {
|
|
120
|
+
"entity_id": "entityId",
|
|
121
|
+
"display_name": "displayName",
|
|
122
|
+
"is_active": "isActive",
|
|
123
|
+
"is_private": "isPrivate",
|
|
124
|
+
"is_provided_by_orq": "isProvidedByOrq",
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export function hubItemFromJSON(
|
|
129
|
+
jsonString: string,
|
|
130
|
+
): SafeParseResult<HubItem, SDKValidationError> {
|
|
131
|
+
return safeParse(
|
|
132
|
+
jsonString,
|
|
133
|
+
(x) => HubItem$inboundSchema.parse(JSON.parse(x)),
|
|
134
|
+
`Failed to parse 'HubItem' from JSON`,
|
|
135
|
+
);
|
|
136
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 HubItemSummary = {
|
|
12
|
+
/**
|
|
13
|
+
* Unique hub search item ID.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the workspace entity represented by this hub item. Empty on search results: the field is not part of the Typesense index.
|
|
18
|
+
*/
|
|
19
|
+
entityId?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable hub item name.
|
|
22
|
+
*/
|
|
23
|
+
displayName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Hub item description.
|
|
26
|
+
*/
|
|
27
|
+
description: string;
|
|
28
|
+
/**
|
|
29
|
+
* Hub item type.
|
|
30
|
+
*/
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const HubItemSummary$inboundSchema: z.ZodType<
|
|
36
|
+
HubItemSummary,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
id: z.string(),
|
|
41
|
+
entity_id: z.string().optional(),
|
|
42
|
+
display_name: z.string(),
|
|
43
|
+
description: z.string(),
|
|
44
|
+
type: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
"entity_id": "entityId",
|
|
48
|
+
"display_name": "displayName",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function hubItemSummaryFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<HubItemSummary, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => HubItemSummary$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'HubItemSummary' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 {
|
|
10
|
+
HubItemSummary,
|
|
11
|
+
HubItemSummary$inboundSchema,
|
|
12
|
+
} from "./hubitemsummary.js";
|
|
13
|
+
|
|
14
|
+
export type HubSearchHit = {
|
|
15
|
+
document: HubItemSummary;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const HubSearchHit$inboundSchema: z.ZodType<
|
|
20
|
+
HubSearchHit,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
document: HubItemSummary$inboundSchema,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function hubSearchHitFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<HubSearchHit, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => HubSearchHit$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'HubSearchHit' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|