@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,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ThreadKind$outboundSchema = exports.ThreadKind$inboundSchema = exports.ThreadKind = void 0;
|
|
40
|
+
const z = __importStar(require("zod/v3"));
|
|
41
|
+
exports.ThreadKind = {
|
|
42
|
+
ThreadKindUnspecified: "THREAD_KIND_UNSPECIFIED",
|
|
43
|
+
ThreadKindConversation: "THREAD_KIND_CONVERSATION",
|
|
44
|
+
ThreadKindCodingAgent: "THREAD_KIND_CODING_AGENT",
|
|
45
|
+
};
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.ThreadKind$inboundSchema = z
|
|
48
|
+
.nativeEnum(exports.ThreadKind);
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.ThreadKind$outboundSchema = exports.ThreadKind$inboundSchema;
|
|
51
|
+
//# sourceMappingURL=threadkind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threadkind.js","sourceRoot":"","sources":["../../src/models/components/threadkind.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,UAAU,GAAG;IACxB,qBAAqB,EAAE,yBAAyB;IAChD,sBAAsB,EAAE,0BAA0B;IAClD,qBAAqB,EAAE,0BAA0B;CACzC,CAAC;AAGX,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,kBAAU,CAAC,CAAC;AAC1B,gBAAgB;AACH,QAAA,yBAAyB,GACpC,gCAAwB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ThreadUsage = {
|
|
5
|
+
promptTokens: number;
|
|
6
|
+
completionTokens: number;
|
|
7
|
+
totalTokens: number;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ThreadUsage$inboundSchema: z.ZodType<ThreadUsage, z.ZodTypeDef, unknown>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type ThreadUsage$Outbound = {
|
|
13
|
+
prompt_tokens: number;
|
|
14
|
+
completion_tokens: number;
|
|
15
|
+
total_tokens: number;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const ThreadUsage$outboundSchema: z.ZodType<ThreadUsage$Outbound, z.ZodTypeDef, ThreadUsage>;
|
|
19
|
+
export declare function threadUsageToJSON(threadUsage: ThreadUsage): string;
|
|
20
|
+
export declare function threadUsageFromJSON(jsonString: string): SafeParseResult<ThreadUsage, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=threadusage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threadusage.d.ts","sourceRoot":"","sources":["../../src/models/components/threadusage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAWX,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AACD,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ThreadUsage$outboundSchema = exports.ThreadUsage$inboundSchema = void 0;
|
|
40
|
+
exports.threadUsageToJSON = threadUsageToJSON;
|
|
41
|
+
exports.threadUsageFromJSON = threadUsageFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.ThreadUsage$inboundSchema = z.object({
|
|
47
|
+
prompt_tokens: z.number().int(),
|
|
48
|
+
completion_tokens: z.number().int(),
|
|
49
|
+
total_tokens: z.number().int(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return (0, primitives_js_1.remap)(v, {
|
|
52
|
+
"prompt_tokens": "promptTokens",
|
|
53
|
+
"completion_tokens": "completionTokens",
|
|
54
|
+
"total_tokens": "totalTokens",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.ThreadUsage$outboundSchema = z.object({
|
|
59
|
+
promptTokens: z.number().int(),
|
|
60
|
+
completionTokens: z.number().int(),
|
|
61
|
+
totalTokens: z.number().int(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return (0, primitives_js_1.remap)(v, {
|
|
64
|
+
promptTokens: "prompt_tokens",
|
|
65
|
+
completionTokens: "completion_tokens",
|
|
66
|
+
totalTokens: "total_tokens",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
function threadUsageToJSON(threadUsage) {
|
|
70
|
+
return JSON.stringify(exports.ThreadUsage$outboundSchema.parse(threadUsage));
|
|
71
|
+
}
|
|
72
|
+
function threadUsageFromJSON(jsonString) {
|
|
73
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ThreadUsage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreadUsage' from JSON`);
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=threadusage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threadusage.js","sourceRoot":"","sources":["../../src/models/components/threadusage.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDH,8CAEC;AACD,kDAQC;AA/DD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAUjD,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACnC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC/B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;QAC/B,mBAAmB,EAAE,kBAAkB;QACvC,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC9B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,eAAe;QAC7B,gBAAgB,EAAE,mBAAmB;QACrC,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,kCAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AACD,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ThreadBilling, ThreadBilling$Outbound } from "./threadbilling.js";
|
|
3
|
+
import { ThreadKind } from "./threadkind.js";
|
|
4
|
+
import { ThreadUsage, ThreadUsage$Outbound } from "./threadusage.js";
|
|
5
|
+
export type UpdateThreadRequest = {
|
|
6
|
+
externalId?: string | undefined;
|
|
7
|
+
duration?: number | undefined;
|
|
8
|
+
contactIds?: Array<string> | undefined;
|
|
9
|
+
billing?: ThreadBilling | undefined;
|
|
10
|
+
usage?: ThreadUsage | undefined;
|
|
11
|
+
tracesCount?: number | undefined;
|
|
12
|
+
tags?: Array<string> | undefined;
|
|
13
|
+
projectId?: string | undefined;
|
|
14
|
+
startedAt?: Date | undefined;
|
|
15
|
+
updatedAt?: Date | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Remove every contact id. Mutually exclusive with contact_ids.
|
|
18
|
+
*/
|
|
19
|
+
clearContactIds?: boolean | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Remove every tag. Mutually exclusive with tags.
|
|
22
|
+
*/
|
|
23
|
+
clearTags?: boolean | undefined;
|
|
24
|
+
title?: string | undefined;
|
|
25
|
+
client?: string | undefined;
|
|
26
|
+
repo?: string | undefined;
|
|
27
|
+
kind?: ThreadKind | undefined;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type UpdateThreadRequest$Outbound = {
|
|
31
|
+
external_id?: string | undefined;
|
|
32
|
+
duration?: number | undefined;
|
|
33
|
+
contact_ids?: Array<string> | undefined;
|
|
34
|
+
billing?: ThreadBilling$Outbound | undefined;
|
|
35
|
+
usage?: ThreadUsage$Outbound | undefined;
|
|
36
|
+
traces_count?: number | undefined;
|
|
37
|
+
tags?: Array<string> | undefined;
|
|
38
|
+
project_id?: string | undefined;
|
|
39
|
+
started_at?: string | undefined;
|
|
40
|
+
updated_at?: string | undefined;
|
|
41
|
+
clear_contact_ids?: boolean | undefined;
|
|
42
|
+
clear_tags?: boolean | undefined;
|
|
43
|
+
title?: string | undefined;
|
|
44
|
+
client?: string | undefined;
|
|
45
|
+
repo?: string | undefined;
|
|
46
|
+
kind?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const UpdateThreadRequest$outboundSchema: z.ZodType<UpdateThreadRequest$Outbound, z.ZodTypeDef, UpdateThreadRequest>;
|
|
50
|
+
export declare function updateThreadRequestToJSON(updateThreadRequest: UpdateThreadRequest): string;
|
|
51
|
+
//# sourceMappingURL=updatethreadrequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatethreadrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/updatethreadrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAA6B,MAAM,iBAAiB,CAAC;AACxE,OAAO,EACL,WAAW,EACX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACvC,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACpC,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC7C,KAAK,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CA6BnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.UpdateThreadRequest$outboundSchema = void 0;
|
|
40
|
+
exports.updateThreadRequestToJSON = updateThreadRequestToJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const threadbilling_js_1 = require("./threadbilling.js");
|
|
44
|
+
const threadkind_js_1 = require("./threadkind.js");
|
|
45
|
+
const threadusage_js_1 = require("./threadusage.js");
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.UpdateThreadRequest$outboundSchema = z.object({
|
|
48
|
+
externalId: z.string().optional(),
|
|
49
|
+
duration: z.number().optional(),
|
|
50
|
+
contactIds: z.array(z.string()).optional(),
|
|
51
|
+
billing: threadbilling_js_1.ThreadBilling$outboundSchema.optional(),
|
|
52
|
+
usage: threadusage_js_1.ThreadUsage$outboundSchema.optional(),
|
|
53
|
+
tracesCount: z.number().int().optional(),
|
|
54
|
+
tags: z.array(z.string()).optional(),
|
|
55
|
+
projectId: z.string().optional(),
|
|
56
|
+
startedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
57
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
58
|
+
clearContactIds: z.boolean().optional(),
|
|
59
|
+
clearTags: z.boolean().optional(),
|
|
60
|
+
title: z.string().optional(),
|
|
61
|
+
client: z.string().optional(),
|
|
62
|
+
repo: z.string().optional(),
|
|
63
|
+
kind: threadkind_js_1.ThreadKind$outboundSchema.optional(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return (0, primitives_js_1.remap)(v, {
|
|
66
|
+
externalId: "external_id",
|
|
67
|
+
contactIds: "contact_ids",
|
|
68
|
+
tracesCount: "traces_count",
|
|
69
|
+
projectId: "project_id",
|
|
70
|
+
startedAt: "started_at",
|
|
71
|
+
updatedAt: "updated_at",
|
|
72
|
+
clearContactIds: "clear_contact_ids",
|
|
73
|
+
clearTags: "clear_tags",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
function updateThreadRequestToJSON(updateThreadRequest) {
|
|
77
|
+
return JSON.stringify(exports.UpdateThreadRequest$outboundSchema.parse(updateThreadRequest));
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=updatethreadrequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatethreadrequest.js","sourceRoot":"","sources":["../../src/models/components/updatethreadrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgGH,8DAMC;AApGD,0CAA4B;AAC5B,2DAA0D;AAC1D,yDAI4B;AAC5B,mDAAwE;AACxE,qDAI0B;AA+C1B,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,+CAA4B,CAAC,QAAQ,EAAE;IAChD,KAAK,EAAE,2CAA0B,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9D,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9D,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,yCAAyB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,eAAe,EAAE,mBAAmB;QACpC,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -79,7 +79,7 @@ exports.CreateDatasetResponseBody$inboundSchema = z.object({
|
|
|
79
79
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
80
80
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
81
81
|
.optional(),
|
|
82
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
82
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-06T23:56:17.054Z").transform(v => new Date(v)),
|
|
83
83
|
}).transform((v) => {
|
|
84
84
|
return (0, primitives_js_1.remap)(v, {
|
|
85
85
|
"_id": "id",
|
|
@@ -863,7 +863,7 @@ exports.Evaluations4$inboundSchema = z.object({
|
|
|
863
863
|
parent_annotation_id: z.string().optional(),
|
|
864
864
|
explanation: z.string().optional(),
|
|
865
865
|
reviewed_by_id: z.string(),
|
|
866
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
866
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-06T23:56:24.011Z").transform(v => new Date(v)),
|
|
867
867
|
type: z.literal("string_array"),
|
|
868
868
|
values: z.array(z.string()),
|
|
869
869
|
}).transform((v) => {
|
|
@@ -916,7 +916,7 @@ exports.CreateDatasetItemEvaluations3$inboundSchema = z.object({
|
|
|
916
916
|
parent_annotation_id: z.string().optional(),
|
|
917
917
|
explanation: z.string().optional(),
|
|
918
918
|
reviewed_by_id: z.string(),
|
|
919
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
919
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-06T23:56:24.011Z").transform(v => new Date(v)),
|
|
920
920
|
type: z.literal("boolean"),
|
|
921
921
|
value: z.boolean(),
|
|
922
922
|
}).transform((v) => {
|
|
@@ -963,7 +963,7 @@ exports.Evaluations2$inboundSchema = z.object({
|
|
|
963
963
|
parent_annotation_id: z.string().optional(),
|
|
964
964
|
explanation: z.string().optional(),
|
|
965
965
|
reviewed_by_id: z.string(),
|
|
966
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
966
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-06T23:56:24.010Z").transform(v => new Date(v)),
|
|
967
967
|
type: z.literal("number"),
|
|
968
968
|
value: z.number(),
|
|
969
969
|
}).transform((v) => {
|
|
@@ -1010,7 +1010,7 @@ exports.Evaluations1$inboundSchema = z.object({
|
|
|
1010
1010
|
parent_annotation_id: z.string().optional(),
|
|
1011
1011
|
explanation: z.string().optional(),
|
|
1012
1012
|
reviewed_by_id: z.string(),
|
|
1013
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
1013
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-06T23:56:24.010Z").transform(v => new Date(v)),
|
|
1014
1014
|
type: z.literal("string"),
|
|
1015
1015
|
value: z.string(),
|
|
1016
1016
|
}).transform((v) => {
|
|
@@ -1061,7 +1061,7 @@ exports.ResponseBody$inboundSchema = z.object({
|
|
|
1061
1061
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1062
1062
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1063
1063
|
.optional(),
|
|
1064
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
1064
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-06T23:56:17.054Z").transform(v => new Date(v)),
|
|
1065
1065
|
}).transform((v) => {
|
|
1066
1066
|
return (0, primitives_js_1.remap)(v, {
|
|
1067
1067
|
"_id": "id",
|
|
@@ -292,6 +292,22 @@ export type CreateRouterResponseContent2 = TwoText | TwoImage | TwoFile;
|
|
|
292
292
|
* The content of the item: a string or an array of content parts.
|
|
293
293
|
*/
|
|
294
294
|
export type InputContent = string | Array<TwoText | TwoImage | TwoFile>;
|
|
295
|
+
export declare const Effort: {
|
|
296
|
+
readonly None: "none";
|
|
297
|
+
readonly Minimal: "minimal";
|
|
298
|
+
readonly Low: "low";
|
|
299
|
+
readonly Medium: "medium";
|
|
300
|
+
readonly High: "high";
|
|
301
|
+
readonly Xhigh: "xhigh";
|
|
302
|
+
readonly Max: "max";
|
|
303
|
+
};
|
|
304
|
+
export type Effort = ClosedEnum<typeof Effort>;
|
|
305
|
+
/**
|
|
306
|
+
* Reasoning settings applied by a configuration_update item.
|
|
307
|
+
*/
|
|
308
|
+
export type Reasoning = {
|
|
309
|
+
effort?: Effort | undefined;
|
|
310
|
+
};
|
|
295
311
|
/**
|
|
296
312
|
* The role of the message sender (for message items).
|
|
297
313
|
*/
|
|
@@ -346,6 +362,7 @@ export declare const InputType: {
|
|
|
346
362
|
readonly McpListTools: "mcp_list_tools";
|
|
347
363
|
readonly McpApprovalRequest: "mcp_approval_request";
|
|
348
364
|
readonly McpApprovalResponse: "mcp_approval_response";
|
|
365
|
+
readonly ConfigurationUpdate: "configuration_update";
|
|
349
366
|
};
|
|
350
367
|
/**
|
|
351
368
|
* The type of item.
|
|
@@ -359,6 +376,10 @@ export type CreateRouterResponseInput2 = {
|
|
|
359
376
|
* The function arguments as a JSON string (for function_call items).
|
|
360
377
|
*/
|
|
361
378
|
arguments?: string | undefined;
|
|
379
|
+
/**
|
|
380
|
+
* Whether a function or custom tool call runs asynchronously.
|
|
381
|
+
*/
|
|
382
|
+
async?: boolean | undefined;
|
|
362
383
|
/**
|
|
363
384
|
* The function call identifier (for function_call and function_call_output items).
|
|
364
385
|
*/
|
|
@@ -379,6 +400,10 @@ export type CreateRouterResponseInput2 = {
|
|
|
379
400
|
* The output of the function call (for function_call_output type).
|
|
380
401
|
*/
|
|
381
402
|
output?: string | undefined;
|
|
403
|
+
/**
|
|
404
|
+
* Reasoning settings applied by a configuration_update item.
|
|
405
|
+
*/
|
|
406
|
+
reasoning?: Reasoning | undefined;
|
|
382
407
|
/**
|
|
383
408
|
* The role of the message sender (for message items).
|
|
384
409
|
*/
|
|
@@ -587,7 +612,7 @@ export type Network = {
|
|
|
587
612
|
/**
|
|
588
613
|
* The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
|
|
589
614
|
*/
|
|
590
|
-
export declare const
|
|
615
|
+
export declare const CreateRouterResponseToolsResponsesRequestType: {
|
|
591
616
|
readonly OrqWebSearch: "orq:web_search";
|
|
592
617
|
readonly OrqWebFetch: "orq:web_fetch";
|
|
593
618
|
readonly OrqDatetime: "orq:datetime";
|
|
@@ -609,7 +634,7 @@ export declare const CreateRouterResponseToolsResponsesType: {
|
|
|
609
634
|
/**
|
|
610
635
|
* The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
|
|
611
636
|
*/
|
|
612
|
-
export type
|
|
637
|
+
export type CreateRouterResponseToolsResponsesRequestType = ClosedEnum<typeof CreateRouterResponseToolsResponsesRequestType>;
|
|
613
638
|
/**
|
|
614
639
|
* An orq.ai platform tool reference. For MCP tools, prefer type 'mcp' with 'key' instead of 'orq:mcp' with 'tool_id'.
|
|
615
640
|
*/
|
|
@@ -633,7 +658,25 @@ export type OrqAiTool = {
|
|
|
633
658
|
/**
|
|
634
659
|
* The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
|
|
635
660
|
*/
|
|
636
|
-
type:
|
|
661
|
+
type: CreateRouterResponseToolsResponsesRequestType;
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* A custom tool that accepts free-form input.
|
|
665
|
+
*/
|
|
666
|
+
export type Custom = {
|
|
667
|
+
/**
|
|
668
|
+
* Whether the tool response can be returned asynchronously.
|
|
669
|
+
*/
|
|
670
|
+
async?: boolean | undefined;
|
|
671
|
+
/**
|
|
672
|
+
* A description of what the custom tool does.
|
|
673
|
+
*/
|
|
674
|
+
description?: string | undefined;
|
|
675
|
+
/**
|
|
676
|
+
* The name of the custom tool.
|
|
677
|
+
*/
|
|
678
|
+
name: string;
|
|
679
|
+
type: "custom";
|
|
637
680
|
};
|
|
638
681
|
/**
|
|
639
682
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
@@ -691,6 +734,10 @@ export type ToolsCacheControl = {
|
|
|
691
734
|
* A function tool the model can call.
|
|
692
735
|
*/
|
|
693
736
|
export type ToolsFunction = {
|
|
737
|
+
/**
|
|
738
|
+
* Whether the tool response can be returned asynchronously.
|
|
739
|
+
*/
|
|
740
|
+
async?: boolean | undefined;
|
|
694
741
|
cacheControl?: ToolsCacheControl | undefined;
|
|
695
742
|
/**
|
|
696
743
|
* A description of what the function does.
|
|
@@ -715,7 +762,7 @@ export type ToolsFunction = {
|
|
|
715
762
|
/**
|
|
716
763
|
* A tool definition. The "type" field determines the tool kind.
|
|
717
764
|
*/
|
|
718
|
-
export type CreateRouterResponseTools = ToolsFunction | components.OrqAdvisorTool | (components.OrqSidekickTool & {
|
|
765
|
+
export type CreateRouterResponseTools = ToolsFunction | Custom | components.OrqAdvisorTool | (components.OrqSidekickTool & {
|
|
719
766
|
type: "orq:subagent";
|
|
720
767
|
}) | (components.OrqSidekickTool & {
|
|
721
768
|
type: "orq:sidekick";
|
|
@@ -831,6 +878,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
831
878
|
* Key for prompt caching across requests.
|
|
832
879
|
*/
|
|
833
880
|
promptCacheKey?: string | undefined;
|
|
881
|
+
promptCacheOptions?: components.OpenAIPromptCacheOptions | undefined;
|
|
834
882
|
reasoning?: components.ReasoningParam | undefined;
|
|
835
883
|
retry?: components.ResponseRetryConfig | undefined;
|
|
836
884
|
/**
|
|
@@ -880,7 +928,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
880
928
|
/**
|
|
881
929
|
* Tools available to the model.
|
|
882
930
|
*/
|
|
883
|
-
tools?: Array<ToolsFunction | components.OrqAdvisorTool | (components.OrqSidekickTool & {
|
|
931
|
+
tools?: Array<ToolsFunction | Custom | components.OrqAdvisorTool | (components.OrqSidekickTool & {
|
|
884
932
|
type: "orq:subagent";
|
|
885
933
|
}) | (components.OrqSidekickTool & {
|
|
886
934
|
type: "orq:sidekick";
|
|
@@ -1008,6 +1056,7 @@ export type CreateRouterResponseResponseBody = {
|
|
|
1008
1056
|
presencePenalty: number;
|
|
1009
1057
|
previousResponseId: string | null;
|
|
1010
1058
|
promptCacheKey: string | null;
|
|
1059
|
+
promptCacheOptions: components.OpenAIPromptCacheOptions | null;
|
|
1011
1060
|
promptCacheRetention: string | null;
|
|
1012
1061
|
reasoning: components.Reasoning | null;
|
|
1013
1062
|
safetyIdentifier: string | null;
|
|
@@ -1136,6 +1185,15 @@ export type InputContent$Outbound = string | Array<TwoText$Outbound | TwoImage$O
|
|
|
1136
1185
|
export declare const InputContent$outboundSchema: z.ZodType<InputContent$Outbound, z.ZodTypeDef, InputContent>;
|
|
1137
1186
|
export declare function inputContentToJSON(inputContent: InputContent): string;
|
|
1138
1187
|
/** @internal */
|
|
1188
|
+
export declare const Effort$outboundSchema: z.ZodNativeEnum<typeof Effort>;
|
|
1189
|
+
/** @internal */
|
|
1190
|
+
export type Reasoning$Outbound = {
|
|
1191
|
+
effort?: string | undefined;
|
|
1192
|
+
};
|
|
1193
|
+
/** @internal */
|
|
1194
|
+
export declare const Reasoning$outboundSchema: z.ZodType<Reasoning$Outbound, z.ZodTypeDef, Reasoning>;
|
|
1195
|
+
export declare function reasoningToJSON(reasoning: Reasoning): string;
|
|
1196
|
+
/** @internal */
|
|
1139
1197
|
export declare const InputRole$outboundSchema: z.ZodNativeEnum<typeof InputRole>;
|
|
1140
1198
|
/** @internal */
|
|
1141
1199
|
export declare const Status$outboundSchema: z.ZodNativeEnum<typeof Status>;
|
|
@@ -1144,11 +1202,13 @@ export declare const InputType$outboundSchema: z.ZodNativeEnum<typeof InputType>
|
|
|
1144
1202
|
/** @internal */
|
|
1145
1203
|
export type CreateRouterResponseInput2$Outbound = {
|
|
1146
1204
|
arguments?: string | undefined;
|
|
1205
|
+
async?: boolean | undefined;
|
|
1147
1206
|
call_id?: string | undefined;
|
|
1148
1207
|
content?: string | Array<TwoText$Outbound | TwoImage$Outbound | TwoFile$Outbound> | undefined;
|
|
1149
1208
|
id?: string | undefined;
|
|
1150
1209
|
name?: string | undefined;
|
|
1151
1210
|
output?: string | undefined;
|
|
1211
|
+
reasoning?: Reasoning$Outbound | undefined;
|
|
1152
1212
|
role?: string | undefined;
|
|
1153
1213
|
status?: string | undefined;
|
|
1154
1214
|
type?: string | undefined;
|
|
@@ -1258,7 +1318,7 @@ export type Network$Outbound = {
|
|
|
1258
1318
|
export declare const Network$outboundSchema: z.ZodType<Network$Outbound, z.ZodTypeDef, Network>;
|
|
1259
1319
|
export declare function networkToJSON(network: Network): string;
|
|
1260
1320
|
/** @internal */
|
|
1261
|
-
export declare const
|
|
1321
|
+
export declare const CreateRouterResponseToolsResponsesRequestType$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponseToolsResponsesRequestType>;
|
|
1262
1322
|
/** @internal */
|
|
1263
1323
|
export type OrqAiTool$Outbound = {
|
|
1264
1324
|
files?: Array<Files$Outbound> | undefined;
|
|
@@ -1271,6 +1331,16 @@ export type OrqAiTool$Outbound = {
|
|
|
1271
1331
|
export declare const OrqAiTool$outboundSchema: z.ZodType<OrqAiTool$Outbound, z.ZodTypeDef, OrqAiTool>;
|
|
1272
1332
|
export declare function orqAiToolToJSON(orqAiTool: OrqAiTool): string;
|
|
1273
1333
|
/** @internal */
|
|
1334
|
+
export type Custom$Outbound = {
|
|
1335
|
+
async?: boolean | undefined;
|
|
1336
|
+
description?: string | undefined;
|
|
1337
|
+
name: string;
|
|
1338
|
+
type: "custom";
|
|
1339
|
+
};
|
|
1340
|
+
/** @internal */
|
|
1341
|
+
export declare const Custom$outboundSchema: z.ZodType<Custom$Outbound, z.ZodTypeDef, Custom>;
|
|
1342
|
+
export declare function customToJSON(custom: Custom): string;
|
|
1343
|
+
/** @internal */
|
|
1274
1344
|
export declare const ToolsTtl$outboundSchema: z.ZodNativeEnum<typeof ToolsTtl>;
|
|
1275
1345
|
/** @internal */
|
|
1276
1346
|
export declare const ToolsType$outboundSchema: z.ZodNativeEnum<typeof ToolsType>;
|
|
@@ -1284,6 +1354,7 @@ export declare const ToolsCacheControl$outboundSchema: z.ZodType<ToolsCacheContr
|
|
|
1284
1354
|
export declare function toolsCacheControlToJSON(toolsCacheControl: ToolsCacheControl): string;
|
|
1285
1355
|
/** @internal */
|
|
1286
1356
|
export type ToolsFunction$Outbound = {
|
|
1357
|
+
async?: boolean | undefined;
|
|
1287
1358
|
cache_control?: ToolsCacheControl$Outbound | undefined;
|
|
1288
1359
|
description?: string | undefined;
|
|
1289
1360
|
name: string;
|
|
@@ -1297,7 +1368,7 @@ export type ToolsFunction$Outbound = {
|
|
|
1297
1368
|
export declare const ToolsFunction$outboundSchema: z.ZodType<ToolsFunction$Outbound, z.ZodTypeDef, ToolsFunction>;
|
|
1298
1369
|
export declare function toolsFunctionToJSON(toolsFunction: ToolsFunction): string;
|
|
1299
1370
|
/** @internal */
|
|
1300
|
-
export type CreateRouterResponseTools$Outbound = ToolsFunction$Outbound | components.OrqAdvisorTool$Outbound | (components.OrqSidekickTool$Outbound & {
|
|
1371
|
+
export type CreateRouterResponseTools$Outbound = ToolsFunction$Outbound | Custom$Outbound | components.OrqAdvisorTool$Outbound | (components.OrqSidekickTool$Outbound & {
|
|
1301
1372
|
type: "orq:subagent";
|
|
1302
1373
|
}) | (components.OrqSidekickTool$Outbound & {
|
|
1303
1374
|
type: "orq:sidekick";
|
|
@@ -1366,6 +1437,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
1366
1437
|
presence_penalty?: number | undefined;
|
|
1367
1438
|
previous_response_id?: string | undefined;
|
|
1368
1439
|
prompt_cache_key?: string | undefined;
|
|
1440
|
+
prompt_cache_options?: components.OpenAIPromptCacheOptions$Outbound | undefined;
|
|
1369
1441
|
reasoning?: components.ReasoningParam$Outbound | undefined;
|
|
1370
1442
|
retry?: components.ResponseRetryConfig$Outbound | undefined;
|
|
1371
1443
|
safety_identifier?: string | undefined;
|
|
@@ -1382,7 +1454,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
1382
1454
|
thread?: components.ResponseThread$Outbound | undefined;
|
|
1383
1455
|
timeout?: components.TimeoutConfig$Outbound | undefined;
|
|
1384
1456
|
tool_choice?: SpecificFunction$Outbound | string | undefined;
|
|
1385
|
-
tools?: Array<ToolsFunction$Outbound | components.OrqAdvisorTool$Outbound | (components.OrqSidekickTool$Outbound & {
|
|
1457
|
+
tools?: Array<ToolsFunction$Outbound | Custom$Outbound | components.OrqAdvisorTool$Outbound | (components.OrqSidekickTool$Outbound & {
|
|
1386
1458
|
type: "orq:subagent";
|
|
1387
1459
|
}) | (components.OrqSidekickTool$Outbound & {
|
|
1388
1460
|
type: "orq:sidekick";
|