@orq-ai/node 4.15.0-rc.22 → 4.15.0-rc.23
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/README.md +52 -28
- package/funcs/hubGet.d.ts +18 -0
- package/funcs/hubGet.d.ts.map +1 -0
- package/funcs/hubGet.js +121 -0
- package/funcs/hubGet.js.map +1 -0
- package/funcs/hubSearch.d.ts +18 -0
- package/funcs/hubSearch.d.ts.map +1 -0
- package/funcs/hubSearch.js +120 -0
- package/funcs/hubSearch.js.map +1 -0
- package/funcs/sessionsCreate.d.ts +17 -0
- package/funcs/sessionsCreate.d.ts.map +1 -0
- package/funcs/sessionsCreate.js +115 -0
- package/funcs/sessionsCreate.js.map +1 -0
- package/funcs/sessionsDelete.d.ts +17 -0
- package/funcs/sessionsDelete.d.ts.map +1 -0
- package/funcs/sessionsDelete.js +121 -0
- package/funcs/sessionsDelete.js.map +1 -0
- package/funcs/sessionsGet.d.ts +18 -0
- package/funcs/sessionsGet.d.ts.map +1 -0
- package/funcs/sessionsGet.js +121 -0
- package/funcs/sessionsGet.js.map +1 -0
- package/funcs/sessionsGetCount.d.ts +17 -0
- package/funcs/sessionsGetCount.d.ts.map +1 -0
- package/funcs/sessionsGetCount.js +115 -0
- package/funcs/sessionsGetCount.js.map +1 -0
- package/funcs/sessionsList.d.ts +17 -0
- package/funcs/sessionsList.d.ts.map +1 -0
- package/funcs/sessionsList.js +115 -0
- package/funcs/sessionsList.js.map +1 -0
- package/funcs/sessionsListTags.d.ts +16 -0
- package/funcs/sessionsListTags.d.ts.map +1 -0
- package/funcs/sessionsListTags.js +105 -0
- package/funcs/sessionsListTags.js.map +1 -0
- package/funcs/sessionsUpdate.d.ts +18 -0
- package/funcs/sessionsUpdate.d.ts.map +1 -0
- package/funcs/sessionsUpdate.js +124 -0
- package/funcs/sessionsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentresponserequest.d.ts +6 -6
- package/models/components/agentresponserequest.d.ts.map +1 -1
- package/models/components/agentresponserequest.js +6 -6
- package/models/components/agentresponserequest.js.map +1 -1
- package/models/components/createthreadrequest.d.ts +41 -0
- package/models/components/createthreadrequest.d.ts.map +1 -0
- package/models/components/createthreadrequest.js +75 -0
- package/models/components/createthreadrequest.js.map +1 -0
- package/models/components/gethubitemresponse.d.ts +11 -0
- package/models/components/gethubitemresponse.d.ts.map +1 -0
- package/models/components/gethubitemresponse.js +56 -0
- package/models/components/gethubitemresponse.js.map +1 -0
- package/models/components/getthreadcountrequest.d.ts +17 -0
- package/models/components/getthreadcountrequest.d.ts.map +1 -0
- package/models/components/getthreadcountrequest.js +52 -0
- package/models/components/getthreadcountrequest.js.map +1 -0
- package/models/components/getthreadcountresponse.d.ts +10 -0
- package/models/components/getthreadcountresponse.d.ts.map +1 -0
- package/models/components/getthreadcountresponse.js +50 -0
- package/models/components/getthreadcountresponse.js.map +1 -0
- package/models/components/hubitem.d.ts +71 -0
- package/models/components/hubitem.d.ts.map +1 -0
- package/models/components/hubitem.js +83 -0
- package/models/components/hubitem.js.map +1 -0
- package/models/components/hubitemsummary.d.ts +29 -0
- package/models/components/hubitemsummary.d.ts.map +1 -0
- package/models/components/hubitemsummary.js +60 -0
- package/models/components/hubitemsummary.js.map +1 -0
- package/models/components/hubsearchhit.d.ts +11 -0
- package/models/components/hubsearchhit.d.ts.map +1 -0
- package/models/components/hubsearchhit.js +51 -0
- package/models/components/hubsearchhit.js.map +1 -0
- package/models/components/index.d.ts +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listthreadsrequest.d.ts +17 -0
- package/models/components/listthreadsrequest.d.ts.map +1 -0
- package/models/components/listthreadsrequest.js +52 -0
- package/models/components/listthreadsrequest.js.map +1 -0
- package/models/components/listthreadsresponse.d.ts +13 -0
- package/models/components/listthreadsresponse.d.ts.map +1 -0
- package/models/components/listthreadsresponse.js +58 -0
- package/models/components/listthreadsresponse.js.map +1 -0
- package/models/components/openaipromptcacheoptions.d.ts +37 -0
- package/models/components/openaipromptcacheoptions.d.ts.map +1 -0
- package/models/components/openaipromptcacheoptions.js +75 -0
- package/models/components/openaipromptcacheoptions.js.map +1 -0
- package/models/components/publicresponseresource.d.ts +2 -0
- package/models/components/publicresponseresource.d.ts.map +1 -1
- package/models/components/publicresponseresource.js +3 -0
- package/models/components/publicresponseresource.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/searchhubitemsresponse.d.ts +11 -0
- package/models/components/searchhubitemsresponse.d.ts.map +1 -0
- package/models/components/searchhubitemsresponse.js +51 -0
- package/models/components/searchhubitemsresponse.js.map +1 -0
- package/models/components/sessioninterval.d.ts +19 -0
- package/models/components/sessioninterval.d.ts.map +1 -0
- package/models/components/sessioninterval.js +56 -0
- package/models/components/sessioninterval.js.map +1 -0
- package/models/components/textcontentpartschema.d.ts +5 -5
- package/models/components/textcontentpartschema.d.ts.map +1 -1
- package/models/components/textcontentpartschema.js +6 -6
- package/models/components/textcontentpartschema.js.map +1 -1
- package/models/components/thread.d.ts +54 -0
- package/models/components/thread.d.ts.map +1 -0
- package/models/components/thread.js +79 -0
- package/models/components/thread.js.map +1 -0
- package/models/components/threadbilling.d.ts +21 -0
- package/models/components/threadbilling.d.ts.map +1 -0
- package/models/components/threadbilling.js +75 -0
- package/models/components/threadbilling.js.map +1 -0
- package/models/components/threadfilters.d.ts +34 -0
- package/models/components/threadfilters.d.ts.map +1 -0
- package/models/components/threadfilters.js +65 -0
- package/models/components/threadfilters.js.map +1 -0
- package/models/components/threadkind.d.ts +13 -0
- package/models/components/threadkind.d.ts.map +1 -0
- package/models/components/threadkind.js +51 -0
- package/models/components/threadkind.js.map +1 -0
- package/models/components/threadusage.d.ts +21 -0
- package/models/components/threadusage.d.ts.map +1 -0
- package/models/components/threadusage.js +75 -0
- package/models/components/threadusage.js.map +1 -0
- package/models/components/updatethreadrequest.d.ts +51 -0
- package/models/components/updatethreadrequest.d.ts.map +1 -0
- package/models/components/updatethreadrequest.js +79 -0
- package/models/components/updatethreadrequest.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createrouterresponse.d.ts +80 -8
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +48 -5
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/deletesession.d.ts +12 -0
- package/models/operations/deletesession.d.ts.map +1 -0
- package/models/operations/deletesession.js +54 -0
- package/models/operations/deletesession.js.map +1 -0
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getsession.d.ts +12 -0
- package/models/operations/getsession.d.ts.map +1 -0
- package/models/operations/getsession.js +54 -0
- package/models/operations/getsession.js.map +1 -0
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/hubget.d.ts +12 -0
- package/models/operations/hubget.d.ts.map +1 -0
- package/models/operations/hubget.js +49 -0
- package/models/operations/hubget.js.map +1 -0
- package/models/operations/hubsearch.d.ts +14 -0
- package/models/operations/hubsearch.d.ts.map +1 -0
- package/models/operations/hubsearch.js +50 -0
- package/models/operations/hubsearch.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/modelcreateopenailike.d.ts +4 -0
- package/models/operations/modelcreateopenailike.d.ts.map +1 -1
- package/models/operations/modelcreateopenailike.js +4 -0
- package/models/operations/modelcreateopenailike.js.map +1 -1
- package/models/operations/modelupdateopenailike.d.ts +4 -0
- package/models/operations/modelupdateopenailike.d.ts.map +1 -1
- package/models/operations/modelupdateopenailike.js +4 -0
- package/models/operations/modelupdateopenailike.js.map +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/postv2routerocr.d.ts +24 -0
- package/models/operations/postv2routerocr.d.ts.map +1 -1
- package/models/operations/postv2routerocr.js +12 -0
- package/models/operations/postv2routerocr.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrieveresponse.d.ts +1 -0
- package/models/operations/retrieveresponse.d.ts.map +1 -1
- package/models/operations/retrieveresponse.js +2 -0
- package/models/operations/retrieveresponse.js.map +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/updatesession.d.ts +15 -0
- package/models/operations/updatesession.d.ts.map +1 -0
- package/models/operations/updatesession.js +57 -0
- package/models/operations/updatesession.js.map +1 -0
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/hub.d.ts +20 -0
- package/sdk/hub.d.ts.map +1 -0
- package/sdk/hub.js +32 -0
- package/sdk/hub.js.map +1 -0
- package/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessions.d.ts +55 -0
- package/sdk/sessions.d.ts.map +1 -0
- package/sdk/sessions.js +82 -0
- package/sdk/sessions.js.map +1 -0
- package/src/funcs/hubGet.ts +168 -0
- package/src/funcs/hubSearch.ts +169 -0
- package/src/funcs/sessionsCreate.ts +162 -0
- package/src/funcs/sessionsDelete.ts +168 -0
- package/src/funcs/sessionsGet.ts +168 -0
- package/src/funcs/sessionsGetCount.ts +162 -0
- package/src/funcs/sessionsList.ts +162 -0
- package/src/funcs/sessionsListTags.ts +144 -0
- package/src/funcs/sessionsUpdate.ts +171 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +14 -10
- package/src/models/components/createthreadrequest.ts +91 -0
- package/src/models/components/gethubitemresponse.ts +37 -0
- package/src/models/components/getthreadcountrequest.ts +42 -0
- package/src/models/components/getthreadcountresponse.ts +31 -0
- package/src/models/components/hubitem.ts +136 -0
- package/src/models/components/hubitemsummary.ts +60 -0
- package/src/models/components/hubsearchhit.ts +35 -0
- package/src/models/components/index.ts +18 -0
- package/src/models/components/listthreadsrequest.ts +42 -0
- package/src/models/components/listthreadsresponse.ts +41 -0
- package/src/models/components/openaipromptcacheoptions.ts +84 -0
- package/src/models/components/publicresponseresource.ts +7 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/searchhubitemsresponse.ts +32 -0
- package/src/models/components/sessioninterval.ts +26 -0
- package/src/models/components/textcontentpartschema.ts +13 -8
- package/src/models/components/thread.ts +101 -0
- package/src/models/components/threadbilling.ts +68 -0
- package/src/models/components/threadfilters.ts +66 -0
- package/src/models/components/threadkind.ts +20 -0
- package/src/models/components/threadusage.ts +68 -0
- package/src/models/components/updatethreadrequest.ts +105 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createrouterresponse.ts +128 -9
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deletesession.ts +36 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getsession.ts +36 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/hubget.ts +27 -0
- package/src/models/operations/hubsearch.ts +34 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/modelcreateopenailike.ts +8 -0
- package/src/models/operations/modelupdateopenailike.ts +8 -0
- 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/postv2routerocr.ts +36 -0
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrieveresponse.ts +5 -0
- 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/updatesession.ts +41 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/hub.ts +46 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/sessions.ts +134 -0
|
@@ -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
|
+
}
|
|
@@ -131,6 +131,7 @@ export * from "./createskillrequest.js";
|
|
|
131
131
|
export * from "./createskillresponse.js";
|
|
132
132
|
export * from "./createsmartrouterrequest.js";
|
|
133
133
|
export * from "./createsmartrouterresponse.js";
|
|
134
|
+
export * from "./createthreadrequest.js";
|
|
134
135
|
export * from "./createwebhookrequest.js";
|
|
135
136
|
export * from "./currentdatetoolinput.js";
|
|
136
137
|
export * from "./datapart.js";
|
|
@@ -215,6 +216,7 @@ export * from "./getevaluatorversionresponse.js";
|
|
|
215
216
|
export * from "./getfilecontentresponse.js";
|
|
216
217
|
export * from "./getfileresponse.js";
|
|
217
218
|
export * from "./getguardrailruleresponse.js";
|
|
219
|
+
export * from "./gethubitemresponse.js";
|
|
218
220
|
export * from "./getipallowlistresponse.js";
|
|
219
221
|
export * from "./getlogcontextrequest.js";
|
|
220
222
|
export * from "./getlogcontextresponse.js";
|
|
@@ -227,6 +229,8 @@ export * from "./getnotifierresponse.js";
|
|
|
227
229
|
export * from "./getprojectresponse.js";
|
|
228
230
|
export * from "./getskillresponse.js";
|
|
229
231
|
export * from "./getsmartrouterresponse.js";
|
|
232
|
+
export * from "./getthreadcountrequest.js";
|
|
233
|
+
export * from "./getthreadcountresponse.js";
|
|
230
234
|
export * from "./gettraceresponse.js";
|
|
231
235
|
export * from "./gettracespanresponse.js";
|
|
232
236
|
export * from "./getuploadfileurlresponse.js";
|
|
@@ -238,6 +242,9 @@ export * from "./guardrailruleexpression.js";
|
|
|
238
242
|
export * from "./guardrailruleguardrail.js";
|
|
239
243
|
export * from "./guardrailruleplugin.js";
|
|
240
244
|
export * from "./httptoolinput.js";
|
|
245
|
+
export * from "./hubitem.js";
|
|
246
|
+
export * from "./hubitemsummary.js";
|
|
247
|
+
export * from "./hubsearchhit.js";
|
|
241
248
|
export * from "./identity.js";
|
|
242
249
|
export * from "./identitybudgetscope.js";
|
|
243
250
|
export * from "./identitybudgetscoperestresponse.js";
|
|
@@ -297,6 +304,8 @@ export * from "./listroutingrulesresponse.js";
|
|
|
297
304
|
export * from "./listroutingruleusedmodelsresponse.js";
|
|
298
305
|
export * from "./listskillsresponse.js";
|
|
299
306
|
export * from "./listsmartroutersresponse.js";
|
|
307
|
+
export * from "./listthreadsrequest.js";
|
|
308
|
+
export * from "./listthreadsresponse.js";
|
|
300
309
|
export * from "./listtracefacetsresponse.js";
|
|
301
310
|
export * from "./listtracefacetvaluesresponse.js";
|
|
302
311
|
export * from "./listtracefieldsresponse.js";
|
|
@@ -363,6 +372,7 @@ export * from "./movefilesystemfilerequest.js";
|
|
|
363
372
|
export * from "./movefilesystemfileresponse.js";
|
|
364
373
|
export * from "./notifier.js";
|
|
365
374
|
export * from "./notifiertype.js";
|
|
375
|
+
export * from "./openaipromptcacheoptions.js";
|
|
366
376
|
export * from "./orqadvisortool.js";
|
|
367
377
|
export * from "./orqsidekicktool.js";
|
|
368
378
|
export * from "./outputtokensdetails.js";
|
|
@@ -510,6 +520,7 @@ export * from "./routingrulemodel.js";
|
|
|
510
520
|
export * from "./routingrulemodelsconfig.js";
|
|
511
521
|
export * from "./routingruleplugin.js";
|
|
512
522
|
export * from "./scopemode.js";
|
|
523
|
+
export * from "./searchhubitemsresponse.js";
|
|
513
524
|
export * from "./searchknowledgematch.js";
|
|
514
525
|
export * from "./searchknowledgerequest.js";
|
|
515
526
|
export * from "./searchknowledgeresponse.js";
|
|
@@ -526,6 +537,7 @@ export * from "./security.js";
|
|
|
526
537
|
export * from "./securityconfig.js";
|
|
527
538
|
export * from "./servertoolusedetails.js";
|
|
528
539
|
export * from "./serviceaccountowner.js";
|
|
540
|
+
export * from "./sessioninterval.js";
|
|
529
541
|
export * from "./sharing.js";
|
|
530
542
|
export * from "./sharingallprojects.js";
|
|
531
543
|
export * from "./sharingselectedprojects.js";
|
|
@@ -552,6 +564,11 @@ export * from "./textpart.js";
|
|
|
552
564
|
export * from "./thinkingconfigadaptiveschema.js";
|
|
553
565
|
export * from "./thinkingconfigdisabledschema.js";
|
|
554
566
|
export * from "./thinkingconfigenabledschema.js";
|
|
567
|
+
export * from "./thread.js";
|
|
568
|
+
export * from "./threadbilling.js";
|
|
569
|
+
export * from "./threadfilters.js";
|
|
570
|
+
export * from "./threadkind.js";
|
|
571
|
+
export * from "./threadusage.js";
|
|
555
572
|
export * from "./timeoutconfig.js";
|
|
556
573
|
export * from "./timeoutstreamingevent.js";
|
|
557
574
|
export * from "./tokenlimit.js";
|
|
@@ -614,6 +631,7 @@ export * from "./updateskillrequest.js";
|
|
|
614
631
|
export * from "./updateskillresponse.js";
|
|
615
632
|
export * from "./updatesmartrouterrequest.js";
|
|
616
633
|
export * from "./updatesmartrouterresponse.js";
|
|
634
|
+
export * from "./updatethreadrequest.js";
|
|
617
635
|
export * from "./updateworkspacerequest.js";
|
|
618
636
|
export * from "./updateworkspaceresponse.js";
|
|
619
637
|
export * from "./updateworkspacesettingsrequest.js";
|
|
@@ -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 ListThreadsRequest = {
|
|
13
|
+
filters: ThreadFilters;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type ListThreadsRequest$Outbound = {
|
|
20
|
+
filters: ThreadFilters$Outbound;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ListThreadsRequest$outboundSchema: z.ZodType<
|
|
27
|
+
ListThreadsRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
ListThreadsRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
filters: ThreadFilters$outboundSchema,
|
|
32
|
+
limit: z.number().int().optional(),
|
|
33
|
+
page: z.number().int().optional(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function listThreadsRequestToJSON(
|
|
37
|
+
listThreadsRequest: ListThreadsRequest,
|
|
38
|
+
): string {
|
|
39
|
+
return JSON.stringify(
|
|
40
|
+
ListThreadsRequest$outboundSchema.parse(listThreadsRequest),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -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 { Thread, Thread$inboundSchema } from "./thread.js";
|
|
11
|
+
|
|
12
|
+
export type ListThreadsResponse = {
|
|
13
|
+
object: string;
|
|
14
|
+
data: Array<Thread>;
|
|
15
|
+
hasMore: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ListThreadsResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ListThreadsResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
object: z.string(),
|
|
25
|
+
data: z.array(Thread$inboundSchema),
|
|
26
|
+
has_more: z.boolean(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"has_more": "hasMore",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listThreadsResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ListThreadsResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ListThreadsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ListThreadsResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const OpenAIPromptCacheOptionsMode = {
|
|
12
|
+
Implicit: "implicit",
|
|
13
|
+
Explicit: "explicit",
|
|
14
|
+
} as const;
|
|
15
|
+
export type OpenAIPromptCacheOptionsMode = ClosedEnum<
|
|
16
|
+
typeof OpenAIPromptCacheOptionsMode
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
export const Ttl = {
|
|
20
|
+
Thirtym: "30m",
|
|
21
|
+
} as const;
|
|
22
|
+
export type Ttl = ClosedEnum<typeof Ttl>;
|
|
23
|
+
|
|
24
|
+
export type OpenAIPromptCacheOptions = {
|
|
25
|
+
mode?: OpenAIPromptCacheOptionsMode | undefined;
|
|
26
|
+
ttl?: Ttl | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const OpenAIPromptCacheOptionsMode$inboundSchema: z.ZodNativeEnum<
|
|
31
|
+
typeof OpenAIPromptCacheOptionsMode
|
|
32
|
+
> = z.nativeEnum(OpenAIPromptCacheOptionsMode);
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const OpenAIPromptCacheOptionsMode$outboundSchema: z.ZodNativeEnum<
|
|
35
|
+
typeof OpenAIPromptCacheOptionsMode
|
|
36
|
+
> = OpenAIPromptCacheOptionsMode$inboundSchema;
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const Ttl$inboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(Ttl);
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> =
|
|
42
|
+
Ttl$inboundSchema;
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const OpenAIPromptCacheOptions$inboundSchema: z.ZodType<
|
|
46
|
+
OpenAIPromptCacheOptions,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
mode: OpenAIPromptCacheOptionsMode$inboundSchema.optional(),
|
|
51
|
+
ttl: Ttl$inboundSchema.optional(),
|
|
52
|
+
});
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type OpenAIPromptCacheOptions$Outbound = {
|
|
55
|
+
mode?: string | undefined;
|
|
56
|
+
ttl?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const OpenAIPromptCacheOptions$outboundSchema: z.ZodType<
|
|
61
|
+
OpenAIPromptCacheOptions$Outbound,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
OpenAIPromptCacheOptions
|
|
64
|
+
> = z.object({
|
|
65
|
+
mode: OpenAIPromptCacheOptionsMode$outboundSchema.optional(),
|
|
66
|
+
ttl: Ttl$outboundSchema.optional(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function openAIPromptCacheOptionsToJSON(
|
|
70
|
+
openAIPromptCacheOptions: OpenAIPromptCacheOptions,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
OpenAIPromptCacheOptions$outboundSchema.parse(openAIPromptCacheOptions),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
export function openAIPromptCacheOptionsFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<OpenAIPromptCacheOptions, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => OpenAIPromptCacheOptions$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'OpenAIPromptCacheOptions' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -17,6 +17,10 @@ import {
|
|
|
17
17
|
IncompleteDetails$inboundSchema,
|
|
18
18
|
} from "./incompletedetails.js";
|
|
19
19
|
import { MemoryParam, MemoryParam$inboundSchema } from "./memoryparam.js";
|
|
20
|
+
import {
|
|
21
|
+
OpenAIPromptCacheOptions,
|
|
22
|
+
OpenAIPromptCacheOptions$inboundSchema,
|
|
23
|
+
} from "./openaipromptcacheoptions.js";
|
|
20
24
|
import { PublicUsage, PublicUsage$inboundSchema } from "./publicusage.js";
|
|
21
25
|
import { Reasoning, Reasoning$inboundSchema } from "./reasoning.js";
|
|
22
26
|
import { ResponseError, ResponseError$inboundSchema } from "./responseerror.js";
|
|
@@ -86,6 +90,7 @@ export type PublicResponseResource = {
|
|
|
86
90
|
presencePenalty: number;
|
|
87
91
|
previousResponseId: string | null;
|
|
88
92
|
promptCacheKey: string | null;
|
|
93
|
+
promptCacheOptions: OpenAIPromptCacheOptions | null;
|
|
89
94
|
promptCacheRetention: string | null;
|
|
90
95
|
reasoning: Reasoning | null;
|
|
91
96
|
safetyIdentifier: string | null;
|
|
@@ -158,6 +163,7 @@ export const PublicResponseResource$inboundSchema: z.ZodType<
|
|
|
158
163
|
presence_penalty: z.number(),
|
|
159
164
|
previous_response_id: z.nullable(z.string()),
|
|
160
165
|
prompt_cache_key: z.nullable(z.string()),
|
|
166
|
+
prompt_cache_options: z.nullable(OpenAIPromptCacheOptions$inboundSchema),
|
|
161
167
|
prompt_cache_retention: z.nullable(z.string()),
|
|
162
168
|
reasoning: z.nullable(Reasoning$inboundSchema),
|
|
163
169
|
safety_identifier: z.nullable(z.string()),
|
|
@@ -188,6 +194,7 @@ export const PublicResponseResource$inboundSchema: z.ZodType<
|
|
|
188
194
|
"presence_penalty": "presencePenalty",
|
|
189
195
|
"previous_response_id": "previousResponseId",
|
|
190
196
|
"prompt_cache_key": "promptCacheKey",
|
|
197
|
+
"prompt_cache_options": "promptCacheOptions",
|
|
191
198
|
"prompt_cache_retention": "promptCacheRetention",
|
|
192
199
|
"safety_identifier": "safetyIdentifier",
|
|
193
200
|
"service_tier": "serviceTier",
|
|
@@ -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_01m1wjdnxt6cmpgxnfnvwyabjg"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -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 { HubSearchHit, HubSearchHit$inboundSchema } from "./hubsearchhit.js";
|
|
10
|
+
|
|
11
|
+
export type SearchHubItemsResponse = {
|
|
12
|
+
hits: Array<HubSearchHit>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const SearchHubItemsResponse$inboundSchema: z.ZodType<
|
|
17
|
+
SearchHubItemsResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
hits: z.array(HubSearchHit$inboundSchema),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function searchHubItemsResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<SearchHubItemsResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => SearchHubItemsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'SearchHubItemsResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 SessionInterval = {
|
|
9
|
+
SessionIntervalUnspecified: "SESSION_INTERVAL_UNSPECIFIED",
|
|
10
|
+
SessionIntervalAllTime: "SESSION_INTERVAL_ALL_TIME",
|
|
11
|
+
SessionIntervalLast30Minutes: "SESSION_INTERVAL_LAST_30_MINUTES",
|
|
12
|
+
SessionIntervalLast1Hour: "SESSION_INTERVAL_LAST_1_HOUR",
|
|
13
|
+
SessionIntervalLast6Hours: "SESSION_INTERVAL_LAST_6_HOURS",
|
|
14
|
+
SessionIntervalLast24Hours: "SESSION_INTERVAL_LAST_24_HOURS",
|
|
15
|
+
SessionIntervalLast3Days: "SESSION_INTERVAL_LAST_3_DAYS",
|
|
16
|
+
SessionIntervalLast7Days: "SESSION_INTERVAL_LAST_7_DAYS",
|
|
17
|
+
SessionIntervalLast14Days: "SESSION_INTERVAL_LAST_14_DAYS",
|
|
18
|
+
SessionIntervalLast1Month: "SESSION_INTERVAL_LAST_1_MONTH",
|
|
19
|
+
SessionIntervalLast3Months: "SESSION_INTERVAL_LAST_3_MONTHS",
|
|
20
|
+
} as const;
|
|
21
|
+
export type SessionInterval = ClosedEnum<typeof SessionInterval>;
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const SessionInterval$outboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof SessionInterval
|
|
26
|
+
> = z.nativeEnum(SessionInterval);
|