@orq-ai/node 4.2.0 → 4.2.3
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/FUNCTIONS.md +17 -7
- package/README.md +125 -70
- package/examples/contactsCreate.example.ts +42 -0
- package/examples/package-lock.json +1 -1
- package/funcs/contactsCreate.d.ts +3 -5
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +5 -9
- package/funcs/contactsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/conversationresponse.js +1 -1
- package/models/components/conversationwithmessagesresponse.js +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +6 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +2 -0
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/publiccontact.d.ts +3 -1
- package/models/components/publiccontact.d.ts.map +1 -1
- package/models/components/publiccontact.js.map +1 -1
- package/models/components/publicidentity.d.ts +47 -0
- package/models/components/publicidentity.d.ts.map +1 -0
- package/models/{operations/deletecontact.js → components/publicidentity.js} +17 -6
- package/models/components/publicidentity.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/errors/index.d.ts +0 -3
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -3
- package/models/errors/index.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +9 -51
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +5 -24
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +9 -51
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +4 -22
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.d.ts +2 -6
- package/models/operations/createcontact.d.ts.map +1 -1
- package/models/operations/createcontact.js +1 -3
- package/models/operations/createcontact.js.map +1 -1
- package/models/operations/createconversation.js +1 -1
- package/models/operations/createconversationresponse.js +2 -2
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createembedding.d.ts +9 -51
- package/models/operations/createembedding.d.ts.map +1 -1
- package/models/operations/createembedding.js +3 -21
- package/models/operations/createembedding.js.map +1 -1
- package/models/operations/createeval.js +14 -14
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createimage.d.ts +9 -51
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +3 -21
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createimageedit.d.ts +9 -51
- package/models/operations/createimageedit.d.ts.map +1 -1
- package/models/operations/createimageedit.js +3 -21
- package/models/operations/createimageedit.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +9 -51
- package/models/operations/createimagevariation.d.ts.map +1 -1
- package/models/operations/createimagevariation.js +3 -21
- package/models/operations/createimagevariation.js.map +1 -1
- package/models/operations/creatererank.d.ts +9 -51
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +3 -21
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createspeech.d.ts +9 -51
- package/models/operations/createspeech.d.ts.map +1 -1
- package/models/operations/createspeech.js +3 -21
- package/models/operations/createspeech.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/createtranscription.d.ts +9 -51
- package/models/operations/createtranscription.d.ts.map +1 -1
- package/models/operations/createtranscription.js +3 -21
- package/models/operations/createtranscription.js.map +1 -1
- package/models/operations/createtranslation.d.ts +9 -51
- package/models/operations/createtranslation.d.ts.map +1 -1
- package/models/operations/createtranslation.js +3 -21
- package/models/operations/createtranslation.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +5 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +1 -0
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +5 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +1 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/generateconversationname.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.d.ts +7 -7
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +25 -23
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/index.d.ts +0 -4
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -4
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateconversation.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +14 -14
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/contacts.d.ts +3 -41
- package/sdk/contacts.d.ts.map +1 -1
- package/sdk/contacts.js +2 -52
- package/sdk/contacts.js.map +1 -1
- package/src/funcs/contactsCreate.ts +7 -14
- package/src/lib/config.ts +2 -2
- package/src/models/components/conversationresponse.ts +1 -1
- package/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invokedeploymentrequest.ts +11 -0
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/publiccontact.ts +3 -1
- package/src/models/components/publicidentity.ts +69 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/index.ts +0 -3
- package/src/models/operations/createchatcompletion.ts +11 -78
- package/src/models/operations/createcompletion.ts +11 -75
- package/src/models/operations/createcontact.ts +3 -9
- package/src/models/operations/createconversation.ts +1 -1
- package/src/models/operations/createconversationresponse.ts +2 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createembedding.ts +11 -75
- package/src/models/operations/createeval.ts +14 -14
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createimage.ts +11 -75
- package/src/models/operations/createimageedit.ts +11 -75
- package/src/models/operations/createimagevariation.ts +11 -77
- package/src/models/operations/creatererank.ts +11 -75
- package/src/models/operations/createspeech.ts +11 -75
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/createtranscription.ts +11 -75
- package/src/models/operations/createtranslation.ts +11 -75
- package/src/models/operations/deploymentgetconfig.ts +6 -0
- package/src/models/operations/deploymentstream.ts +6 -0
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/generateconversationname.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +35 -39
- package/src/models/operations/index.ts +0 -4
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateconversation.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +14 -14
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/contacts.ts +3 -85
- package/examples/feedbackCreate.example.ts +0 -32
- package/funcs/contactsDelete.d.ts +0 -20
- package/funcs/contactsDelete.d.ts.map +0 -1
- package/funcs/contactsDelete.js +0 -126
- package/funcs/contactsDelete.js.map +0 -1
- package/funcs/contactsList.d.ts +0 -19
- package/funcs/contactsList.d.ts.map +0 -1
- package/funcs/contactsList.js +0 -124
- package/funcs/contactsList.js.map +0 -1
- package/funcs/contactsRetrieve.d.ts +0 -20
- package/funcs/contactsRetrieve.d.ts.map +0 -1
- package/funcs/contactsRetrieve.js +0 -125
- package/funcs/contactsRetrieve.js.map +0 -1
- package/funcs/contactsUpdate.d.ts +0 -20
- package/funcs/contactsUpdate.d.ts.map +0 -1
- package/funcs/contactsUpdate.js +0 -126
- package/funcs/contactsUpdate.js.map +0 -1
- package/models/errors/deletecontact.d.ts +0 -30
- package/models/errors/deletecontact.d.ts.map +0 -1
- package/models/errors/deletecontact.js +0 -71
- package/models/errors/deletecontact.js.map +0 -1
- package/models/errors/retrievecontact.d.ts +0 -30
- package/models/errors/retrievecontact.d.ts.map +0 -1
- package/models/errors/retrievecontact.js +0 -71
- package/models/errors/retrievecontact.js.map +0 -1
- package/models/errors/updatecontact.d.ts +0 -26
- package/models/errors/updatecontact.d.ts.map +0 -1
- package/models/errors/updatecontact.js +0 -68
- package/models/errors/updatecontact.js.map +0 -1
- package/models/operations/deletecontact.d.ts +0 -15
- package/models/operations/deletecontact.d.ts.map +0 -1
- package/models/operations/deletecontact.js.map +0 -1
- package/models/operations/listcontacts.d.ts +0 -138
- package/models/operations/listcontacts.d.ts.map +0 -1
- package/models/operations/listcontacts.js +0 -136
- package/models/operations/listcontacts.js.map +0 -1
- package/models/operations/retrievecontact.d.ts +0 -63
- package/models/operations/retrievecontact.d.ts.map +0 -1
- package/models/operations/retrievecontact.js +0 -75
- package/models/operations/retrievecontact.js.map +0 -1
- package/models/operations/updatecontact.d.ts +0 -108
- package/models/operations/updatecontact.d.ts.map +0 -1
- package/models/operations/updatecontact.js +0 -97
- package/models/operations/updatecontact.js.map +0 -1
- package/src/funcs/contactsDelete.ts +0 -178
- package/src/funcs/contactsList.ts +0 -172
- package/src/funcs/contactsRetrieve.ts +0 -177
- package/src/funcs/contactsUpdate.ts +0 -178
- package/src/models/errors/deletecontact.ts +0 -62
- package/src/models/errors/retrievecontact.ts +0 -62
- package/src/models/errors/updatecontact.ts +0 -54
- package/src/models/operations/deletecontact.ts +0 -34
- package/src/models/operations/listcontacts.ts +0 -274
- package/src/models/operations/retrievecontact.ts +0 -117
- package/src/models/operations/updatecontact.ts +0 -188
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.2.
|
|
71
|
+
sdkVersion: "4.2.3",
|
|
72
72
|
genVersion: "2.799.0",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.2.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.2.3 2.799.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -107,7 +107,7 @@ export const ConversationResponse$inboundSchema: z.ZodType<
|
|
|
107
107
|
z.ZodTypeDef,
|
|
108
108
|
unknown
|
|
109
109
|
> = z.object({
|
|
110
|
-
_id: z.string().default("
|
|
110
|
+
_id: z.string().default("conv_01kfqsb4n227jdbn7sx3nkqw9g"),
|
|
111
111
|
kind: ConversationResponseKind$inboundSchema,
|
|
112
112
|
displayName: z.string(),
|
|
113
113
|
createdAt: z.number(),
|
|
@@ -122,7 +122,7 @@ export const ConversationWithMessagesResponse$inboundSchema: z.ZodType<
|
|
|
122
122
|
z.ZodTypeDef,
|
|
123
123
|
unknown
|
|
124
124
|
> = z.object({
|
|
125
|
-
_id: z.string().default("
|
|
125
|
+
_id: z.string().default("conv_01kfqsb4n72nzs69806p67wmd7"),
|
|
126
126
|
kind: ConversationWithMessagesResponseKind$inboundSchema,
|
|
127
127
|
displayName: z.string(),
|
|
128
128
|
createdAt: z.number(),
|
|
@@ -31,6 +31,7 @@ export * from "./partdelta.js";
|
|
|
31
31
|
export * from "./partdeltaevent.js";
|
|
32
32
|
export * from "./partdoneevent.js";
|
|
33
33
|
export * from "./publiccontact.js";
|
|
34
|
+
export * from "./publicidentity.js";
|
|
34
35
|
export * from "./reasoningpart.js";
|
|
35
36
|
export * from "./reasoningpartschema.js";
|
|
36
37
|
export * from "./redactedreasoningpartschema.js";
|
|
@@ -20,6 +20,11 @@ import {
|
|
|
20
20
|
ImageContentPartSchema$Outbound,
|
|
21
21
|
ImageContentPartSchema$outboundSchema,
|
|
22
22
|
} from "./imagecontentpartschema.js";
|
|
23
|
+
import {
|
|
24
|
+
PublicIdentity,
|
|
25
|
+
PublicIdentity$Outbound,
|
|
26
|
+
PublicIdentity$outboundSchema,
|
|
27
|
+
} from "./publicidentity.js";
|
|
23
28
|
import {
|
|
24
29
|
ReasoningPartSchema,
|
|
25
30
|
ReasoningPartSchema$Outbound,
|
|
@@ -1114,6 +1119,10 @@ export type InvokeDeploymentRequest = {
|
|
|
1114
1119
|
| MessagesToolMessage
|
|
1115
1120
|
>
|
|
1116
1121
|
| undefined;
|
|
1122
|
+
/**
|
|
1123
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
1124
|
+
*/
|
|
1125
|
+
identity?: PublicIdentity | undefined;
|
|
1117
1126
|
/**
|
|
1118
1127
|
* A list of file IDs that are associated with the deployment request.
|
|
1119
1128
|
*/
|
|
@@ -3354,6 +3363,7 @@ export type InvokeDeploymentRequest$Outbound = {
|
|
|
3354
3363
|
| MessagesToolMessage$Outbound
|
|
3355
3364
|
>
|
|
3356
3365
|
| undefined;
|
|
3366
|
+
identity?: PublicIdentity$Outbound | undefined;
|
|
3357
3367
|
file_ids?: Array<string> | undefined;
|
|
3358
3368
|
metadata?: { [k: string]: any } | undefined;
|
|
3359
3369
|
extra_params?: { [k: string]: any } | undefined;
|
|
@@ -3406,6 +3416,7 @@ export const InvokeDeploymentRequest$outboundSchema: z.ZodType<
|
|
|
3406
3416
|
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
3407
3417
|
]),
|
|
3408
3418
|
).optional(),
|
|
3419
|
+
identity: PublicIdentity$outboundSchema.optional(),
|
|
3409
3420
|
fileIds: z.array(z.string()).optional(),
|
|
3410
3421
|
metadata: z.record(z.any()).optional(),
|
|
3411
3422
|
extraParams: z.record(z.any()).optional(),
|
|
@@ -76,7 +76,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
|
|
|
76
76
|
z.ZodTypeDef,
|
|
77
77
|
unknown
|
|
78
78
|
> = z.object({
|
|
79
|
-
_id: z.string().default("
|
|
79
|
+
_id: z.string().default("reasoning_01kfqsb4a0nmdbkrdcp3bnfjdc"),
|
|
80
80
|
metadata: z.record(z.any()).optional(),
|
|
81
81
|
kind: PartKind$inboundSchema,
|
|
82
82
|
reasoning: z.string(),
|
|
@@ -6,7 +6,9 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Information about the
|
|
9
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
10
12
|
*/
|
|
11
13
|
export type PublicContact = {
|
|
12
14
|
/**
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
10
|
+
*/
|
|
11
|
+
export type PublicIdentity = {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for the contact
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Display name of the contact
|
|
18
|
+
*/
|
|
19
|
+
displayName?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Email address of the contact
|
|
22
|
+
*/
|
|
23
|
+
email?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* A hash of key/value pairs containing any other data about the contact
|
|
26
|
+
*/
|
|
27
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* URL to the contact's avatar or logo
|
|
30
|
+
*/
|
|
31
|
+
logoUrl?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* A list of tags associated with the contact
|
|
34
|
+
*/
|
|
35
|
+
tags?: Array<string> | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type PublicIdentity$Outbound = {
|
|
40
|
+
id: string;
|
|
41
|
+
display_name?: string | undefined;
|
|
42
|
+
email?: string | undefined;
|
|
43
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
44
|
+
logo_url?: string | undefined;
|
|
45
|
+
tags?: Array<string> | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const PublicIdentity$outboundSchema: z.ZodType<
|
|
50
|
+
PublicIdentity$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
PublicIdentity
|
|
53
|
+
> = z.object({
|
|
54
|
+
id: z.string(),
|
|
55
|
+
displayName: z.string().optional(),
|
|
56
|
+
email: z.string().optional(),
|
|
57
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
58
|
+
logoUrl: z.string().optional(),
|
|
59
|
+
tags: z.array(z.string()).optional(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
displayName: "display_name",
|
|
63
|
+
logoUrl: "logo_url",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export function publicIdentityToJSON(publicIdentity: PublicIdentity): string {
|
|
68
|
+
return JSON.stringify(PublicIdentity$outboundSchema.parse(publicIdentity));
|
|
69
|
+
}
|
|
@@ -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_01kfqsb49q50txv0pvk8882s61"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -8,7 +8,6 @@ export * from "./createmoderation.js";
|
|
|
8
8
|
export * from "./createtranscription.js";
|
|
9
9
|
export * from "./createtranslation.js";
|
|
10
10
|
export * from "./deleteagent.js";
|
|
11
|
-
export * from "./deletecontact.js";
|
|
12
11
|
export * from "./deleteconversation.js";
|
|
13
12
|
export * from "./deleteeval.js";
|
|
14
13
|
export * from "./deleteidentity.js";
|
|
@@ -25,14 +24,12 @@ export * from "./invokeeval.js";
|
|
|
25
24
|
export * from "./orqerror.js";
|
|
26
25
|
export * from "./responsevalidationerror.js";
|
|
27
26
|
export * from "./retrieveagentrequest.js";
|
|
28
|
-
export * from "./retrievecontact.js";
|
|
29
27
|
export * from "./retrieveconversation.js";
|
|
30
28
|
export * from "./retrieveidentity.js";
|
|
31
29
|
export * from "./sdkvalidationerror.js";
|
|
32
30
|
export * from "./streamagent.js";
|
|
33
31
|
export * from "./streamrunagent.js";
|
|
34
32
|
export * from "./updateagent.js";
|
|
35
|
-
export * from "./updatecontact.js";
|
|
36
33
|
export * from "./updateconversation.js";
|
|
37
34
|
export * from "./updateeval.js";
|
|
38
35
|
export * from "./updateidentity.js";
|
|
@@ -797,38 +797,6 @@ export type Prompt = {
|
|
|
797
797
|
version: Version;
|
|
798
798
|
};
|
|
799
799
|
|
|
800
|
-
/**
|
|
801
|
-
* @deprecated Use identity instead. Information about the contact making the request.
|
|
802
|
-
*
|
|
803
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
804
|
-
*/
|
|
805
|
-
export type CreateChatCompletionContact = {
|
|
806
|
-
/**
|
|
807
|
-
* Unique identifier for the contact
|
|
808
|
-
*/
|
|
809
|
-
id: string;
|
|
810
|
-
/**
|
|
811
|
-
* Display name of the contact
|
|
812
|
-
*/
|
|
813
|
-
displayName?: string | undefined;
|
|
814
|
-
/**
|
|
815
|
-
* Email address of the contact
|
|
816
|
-
*/
|
|
817
|
-
email?: string | undefined;
|
|
818
|
-
/**
|
|
819
|
-
* A hash of key/value pairs containing any other data about the contact
|
|
820
|
-
*/
|
|
821
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
822
|
-
/**
|
|
823
|
-
* URL to the contact's avatar or logo
|
|
824
|
-
*/
|
|
825
|
-
logoUrl?: string | undefined;
|
|
826
|
-
/**
|
|
827
|
-
* A list of tags associated with the contact
|
|
828
|
-
*/
|
|
829
|
-
tags?: Array<string> | undefined;
|
|
830
|
-
};
|
|
831
|
-
|
|
832
800
|
/**
|
|
833
801
|
* Thread information to group related requests
|
|
834
802
|
*/
|
|
@@ -1394,8 +1362,13 @@ export type Orq = {
|
|
|
1394
1362
|
/**
|
|
1395
1363
|
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
1396
1364
|
*/
|
|
1397
|
-
identity?: components.
|
|
1398
|
-
|
|
1365
|
+
identity?: components.PublicIdentity | undefined;
|
|
1366
|
+
/**
|
|
1367
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
1368
|
+
*
|
|
1369
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
1370
|
+
*/
|
|
1371
|
+
contact?: components.PublicContact | undefined;
|
|
1399
1372
|
/**
|
|
1400
1373
|
* Thread information to group related requests
|
|
1401
1374
|
*/
|
|
@@ -3634,45 +3607,6 @@ export function promptToJSON(prompt: Prompt): string {
|
|
|
3634
3607
|
return JSON.stringify(Prompt$outboundSchema.parse(prompt));
|
|
3635
3608
|
}
|
|
3636
3609
|
|
|
3637
|
-
/** @internal */
|
|
3638
|
-
export type CreateChatCompletionContact$Outbound = {
|
|
3639
|
-
id: string;
|
|
3640
|
-
display_name?: string | undefined;
|
|
3641
|
-
email?: string | undefined;
|
|
3642
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
3643
|
-
logo_url?: string | undefined;
|
|
3644
|
-
tags?: Array<string> | undefined;
|
|
3645
|
-
};
|
|
3646
|
-
|
|
3647
|
-
/** @internal */
|
|
3648
|
-
export const CreateChatCompletionContact$outboundSchema: z.ZodType<
|
|
3649
|
-
CreateChatCompletionContact$Outbound,
|
|
3650
|
-
z.ZodTypeDef,
|
|
3651
|
-
CreateChatCompletionContact
|
|
3652
|
-
> = z.object({
|
|
3653
|
-
id: z.string(),
|
|
3654
|
-
displayName: z.string().optional(),
|
|
3655
|
-
email: z.string().optional(),
|
|
3656
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
3657
|
-
logoUrl: z.string().optional(),
|
|
3658
|
-
tags: z.array(z.string()).optional(),
|
|
3659
|
-
}).transform((v) => {
|
|
3660
|
-
return remap$(v, {
|
|
3661
|
-
displayName: "display_name",
|
|
3662
|
-
logoUrl: "logo_url",
|
|
3663
|
-
});
|
|
3664
|
-
});
|
|
3665
|
-
|
|
3666
|
-
export function createChatCompletionContactToJSON(
|
|
3667
|
-
createChatCompletionContact: CreateChatCompletionContact,
|
|
3668
|
-
): string {
|
|
3669
|
-
return JSON.stringify(
|
|
3670
|
-
CreateChatCompletionContact$outboundSchema.parse(
|
|
3671
|
-
createChatCompletionContact,
|
|
3672
|
-
),
|
|
3673
|
-
);
|
|
3674
|
-
}
|
|
3675
|
-
|
|
3676
3610
|
/** @internal */
|
|
3677
3611
|
export type CreateChatCompletionThread$Outbound = {
|
|
3678
3612
|
id: string;
|
|
@@ -5261,8 +5195,8 @@ export type Orq$Outbound = {
|
|
|
5261
5195
|
| Array<CreateChatCompletionRouterChatCompletionsFallbacks$Outbound>
|
|
5262
5196
|
| undefined;
|
|
5263
5197
|
prompt?: Prompt$Outbound | undefined;
|
|
5264
|
-
identity?: components.
|
|
5265
|
-
contact?:
|
|
5198
|
+
identity?: components.PublicIdentity$Outbound | undefined;
|
|
5199
|
+
contact?: components.PublicContact$Outbound | undefined;
|
|
5266
5200
|
thread?: CreateChatCompletionThread$Outbound | undefined;
|
|
5267
5201
|
inputs?: { [k: string]: any } | Array<Inputs2$Outbound> | undefined;
|
|
5268
5202
|
cache?: CreateChatCompletionRouterChatCompletionsCache$Outbound | undefined;
|
|
@@ -5290,9 +5224,8 @@ export const Orq$outboundSchema: z.ZodType<Orq$Outbound, z.ZodTypeDef, Orq> = z
|
|
|
5290
5224
|
),
|
|
5291
5225
|
).optional(),
|
|
5292
5226
|
prompt: z.lazy(() => Prompt$outboundSchema).optional(),
|
|
5293
|
-
identity: components.
|
|
5294
|
-
contact:
|
|
5295
|
-
.optional(),
|
|
5227
|
+
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
5228
|
+
contact: components.PublicContact$outboundSchema.optional(),
|
|
5296
5229
|
thread: z.lazy(() => CreateChatCompletionThread$outboundSchema).optional(),
|
|
5297
5230
|
inputs: z.union([
|
|
5298
5231
|
z.record(z.any()),
|
|
@@ -64,38 +64,6 @@ export type CreateCompletionPrompt = {
|
|
|
64
64
|
version: CreateCompletionVersion;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated Use identity instead. Information about the contact making the request.
|
|
69
|
-
*
|
|
70
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
71
|
-
*/
|
|
72
|
-
export type CreateCompletionContact = {
|
|
73
|
-
/**
|
|
74
|
-
* Unique identifier for the contact
|
|
75
|
-
*/
|
|
76
|
-
id: string;
|
|
77
|
-
/**
|
|
78
|
-
* Display name of the contact
|
|
79
|
-
*/
|
|
80
|
-
displayName?: string | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Email address of the contact
|
|
83
|
-
*/
|
|
84
|
-
email?: string | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* A hash of key/value pairs containing any other data about the contact
|
|
87
|
-
*/
|
|
88
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* URL to the contact's avatar or logo
|
|
91
|
-
*/
|
|
92
|
-
logoUrl?: string | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* A list of tags associated with the contact
|
|
95
|
-
*/
|
|
96
|
-
tags?: Array<string> | undefined;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
67
|
/**
|
|
100
68
|
* Thread information to group related requests
|
|
101
69
|
*/
|
|
@@ -618,8 +586,13 @@ export type CreateCompletionOrq = {
|
|
|
618
586
|
/**
|
|
619
587
|
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
620
588
|
*/
|
|
621
|
-
identity?: components.
|
|
622
|
-
|
|
589
|
+
identity?: components.PublicIdentity | undefined;
|
|
590
|
+
/**
|
|
591
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
592
|
+
*
|
|
593
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
594
|
+
*/
|
|
595
|
+
contact?: components.PublicContact | undefined;
|
|
623
596
|
/**
|
|
624
597
|
* Thread information to group related requests
|
|
625
598
|
*/
|
|
@@ -1027,43 +1000,6 @@ export function createCompletionPromptToJSON(
|
|
|
1027
1000
|
);
|
|
1028
1001
|
}
|
|
1029
1002
|
|
|
1030
|
-
/** @internal */
|
|
1031
|
-
export type CreateCompletionContact$Outbound = {
|
|
1032
|
-
id: string;
|
|
1033
|
-
display_name?: string | undefined;
|
|
1034
|
-
email?: string | undefined;
|
|
1035
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
1036
|
-
logo_url?: string | undefined;
|
|
1037
|
-
tags?: Array<string> | undefined;
|
|
1038
|
-
};
|
|
1039
|
-
|
|
1040
|
-
/** @internal */
|
|
1041
|
-
export const CreateCompletionContact$outboundSchema: z.ZodType<
|
|
1042
|
-
CreateCompletionContact$Outbound,
|
|
1043
|
-
z.ZodTypeDef,
|
|
1044
|
-
CreateCompletionContact
|
|
1045
|
-
> = z.object({
|
|
1046
|
-
id: z.string(),
|
|
1047
|
-
displayName: z.string().optional(),
|
|
1048
|
-
email: z.string().optional(),
|
|
1049
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
1050
|
-
logoUrl: z.string().optional(),
|
|
1051
|
-
tags: z.array(z.string()).optional(),
|
|
1052
|
-
}).transform((v) => {
|
|
1053
|
-
return remap$(v, {
|
|
1054
|
-
displayName: "display_name",
|
|
1055
|
-
logoUrl: "logo_url",
|
|
1056
|
-
});
|
|
1057
|
-
});
|
|
1058
|
-
|
|
1059
|
-
export function createCompletionContactToJSON(
|
|
1060
|
-
createCompletionContact: CreateCompletionContact,
|
|
1061
|
-
): string {
|
|
1062
|
-
return JSON.stringify(
|
|
1063
|
-
CreateCompletionContact$outboundSchema.parse(createCompletionContact),
|
|
1064
|
-
);
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
1003
|
/** @internal */
|
|
1068
1004
|
export type CreateCompletionThread$Outbound = {
|
|
1069
1005
|
id: string;
|
|
@@ -2602,8 +2538,8 @@ export type CreateCompletionOrq$Outbound = {
|
|
|
2602
2538
|
retry?: CreateCompletionRetry$Outbound | undefined;
|
|
2603
2539
|
fallbacks?: Array<CreateCompletionFallbacks$Outbound> | undefined;
|
|
2604
2540
|
prompt?: CreateCompletionPrompt$Outbound | undefined;
|
|
2605
|
-
identity?: components.
|
|
2606
|
-
contact?:
|
|
2541
|
+
identity?: components.PublicIdentity$Outbound | undefined;
|
|
2542
|
+
contact?: components.PublicContact$Outbound | undefined;
|
|
2607
2543
|
thread?: CreateCompletionThread$Outbound | undefined;
|
|
2608
2544
|
inputs?:
|
|
2609
2545
|
| { [k: string]: any }
|
|
@@ -2626,8 +2562,8 @@ export const CreateCompletionOrq$outboundSchema: z.ZodType<
|
|
|
2626
2562
|
fallbacks: z.array(z.lazy(() => CreateCompletionFallbacks$outboundSchema))
|
|
2627
2563
|
.optional(),
|
|
2628
2564
|
prompt: z.lazy(() => CreateCompletionPrompt$outboundSchema).optional(),
|
|
2629
|
-
identity: components.
|
|
2630
|
-
contact:
|
|
2565
|
+
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
2566
|
+
contact: components.PublicContact$outboundSchema.optional(),
|
|
2631
2567
|
thread: z.lazy(() => CreateCompletionThread$outboundSchema).optional(),
|
|
2632
2568
|
inputs: z.union([
|
|
2633
2569
|
z.record(z.any()),
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Update user information payload
|
|
13
13
|
*/
|
|
14
14
|
export type CreateContactRequestBody = {
|
|
15
15
|
/**
|
|
@@ -39,7 +39,7 @@ export type CreateContactRequestBody = {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Successful operation
|
|
43
43
|
*/
|
|
44
44
|
export type CreateContactResponseBody = {
|
|
45
45
|
/**
|
|
@@ -50,10 +50,6 @@ export type CreateContactResponseBody = {
|
|
|
50
50
|
* Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
|
|
51
51
|
*/
|
|
52
52
|
externalId: string;
|
|
53
|
-
/**
|
|
54
|
-
* Unique identifier for the workspace to which the contact belongs
|
|
55
|
-
*/
|
|
56
|
-
workspaceId: string;
|
|
57
53
|
/**
|
|
58
54
|
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
59
55
|
*/
|
|
@@ -130,7 +126,6 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
130
126
|
> = z.object({
|
|
131
127
|
_id: z.string(),
|
|
132
128
|
external_id: z.string(),
|
|
133
|
-
workspace_id: z.string(),
|
|
134
129
|
display_name: z.nullable(z.string()).optional(),
|
|
135
130
|
email: z.nullable(z.string()).optional(),
|
|
136
131
|
avatar_url: z.nullable(z.string()).optional(),
|
|
@@ -139,13 +134,12 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
139
134
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
140
135
|
.optional(),
|
|
141
136
|
updated: z.string().datetime({ offset: true }).default(
|
|
142
|
-
"2026-01-
|
|
137
|
+
"2026-01-24T10:38:22.714Z",
|
|
143
138
|
).transform(v => new Date(v)),
|
|
144
139
|
}).transform((v) => {
|
|
145
140
|
return remap$(v, {
|
|
146
141
|
"_id": "id",
|
|
147
142
|
"external_id": "externalId",
|
|
148
|
-
"workspace_id": "workspaceId",
|
|
149
143
|
"display_name": "displayName",
|
|
150
144
|
"avatar_url": "avatarUrl",
|
|
151
145
|
});
|
|
@@ -201,7 +201,7 @@ export const CreateConversationResponseBody$inboundSchema: z.ZodType<
|
|
|
201
201
|
z.ZodTypeDef,
|
|
202
202
|
unknown
|
|
203
203
|
> = z.object({
|
|
204
|
-
_id: z.string().default("
|
|
204
|
+
_id: z.string().default("conv_01kfqsb4n30f6a8cqt0gar2kvd"),
|
|
205
205
|
kind: CreateConversationKind$inboundSchema,
|
|
206
206
|
displayName: z.string(),
|
|
207
207
|
createdAt: z.number(),
|
|
@@ -280,7 +280,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
|
|
|
280
280
|
z.ZodTypeDef,
|
|
281
281
|
unknown
|
|
282
282
|
> = z.object({
|
|
283
|
-
_id: z.string().default("
|
|
283
|
+
_id: z.string().default("reasoning_01kfqsb4nw6y7rpn3bfb8ckry7"),
|
|
284
284
|
metadata: z.record(z.any()).optional(),
|
|
285
285
|
kind: PartKind$inboundSchema,
|
|
286
286
|
reasoning: z.string(),
|
|
@@ -366,7 +366,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
366
366
|
z.ZodTypeDef,
|
|
367
367
|
unknown
|
|
368
368
|
> = z.object({
|
|
369
|
-
_id: z.string().default("
|
|
369
|
+
_id: z.string().default("reasoning_01kfqsb4npwzmbw8fpxaf97mn2"),
|
|
370
370
|
metadata: z.record(z.any()).optional(),
|
|
371
371
|
kind: DeltaKind$inboundSchema,
|
|
372
372
|
reasoning: z.string(),
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-01-
|
|
141
|
+
"2026-01-24T10:38:22.714Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2353,7 +2353,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2353
2353
|
),
|
|
2354
2354
|
reviewed_by_id: z.string(),
|
|
2355
2355
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2356
|
-
"2026-01-
|
|
2356
|
+
"2026-01-24T10:38:36.368Z",
|
|
2357
2357
|
).transform(v => new Date(v)),
|
|
2358
2358
|
type: z.literal("string_array"),
|
|
2359
2359
|
values: z.array(z.string()),
|
|
@@ -2398,7 +2398,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2398
2398
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2399
2399
|
reviewed_by_id: z.string(),
|
|
2400
2400
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2401
|
-
"2026-01-
|
|
2401
|
+
"2026-01-24T10:38:36.367Z",
|
|
2402
2402
|
).transform(v => new Date(v)),
|
|
2403
2403
|
type: z.literal("number"),
|
|
2404
2404
|
value: z.number(),
|
|
@@ -2443,7 +2443,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2443
2443
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2444
2444
|
reviewed_by_id: z.string(),
|
|
2445
2445
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2446
|
-
"2026-01-
|
|
2446
|
+
"2026-01-24T10:38:36.366Z",
|
|
2447
2447
|
).transform(v => new Date(v)),
|
|
2448
2448
|
type: z.literal("string"),
|
|
2449
2449
|
value: z.string(),
|
|
@@ -2526,7 +2526,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2526
2526
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2527
2527
|
.optional(),
|
|
2528
2528
|
updated: z.string().datetime({ offset: true }).default(
|
|
2529
|
-
"2026-01-
|
|
2529
|
+
"2026-01-24T10:38:22.714Z",
|
|
2530
2530
|
).transform(v => new Date(v)),
|
|
2531
2531
|
}).transform((v) => {
|
|
2532
2532
|
return remap$(v, {
|
|
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
403
403
|
z.ZodTypeDef,
|
|
404
404
|
unknown
|
|
405
405
|
> = z.object({
|
|
406
|
-
_id: z.string().default("
|
|
406
|
+
_id: z.string().default("01KFQSB573CSMZJWTT82SJSF01"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|