@orq-ai/node 4.2.3 → 4.2.4

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.
Files changed (155) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/conversationresponse.js +1 -1
  6. package/models/components/conversationwithmessagesresponse.js +1 -1
  7. package/models/components/partdoneevent.js +1 -1
  8. package/models/components/reasoningpart.js +1 -1
  9. package/models/operations/createcontact.js +1 -1
  10. package/models/operations/createconversation.js +1 -1
  11. package/models/operations/createconversationresponse.js +2 -2
  12. package/models/operations/createdataset.js +1 -1
  13. package/models/operations/createdatasetitem.js +4 -4
  14. package/models/operations/createdatasource.js +1 -1
  15. package/models/operations/createeval.js +14 -14
  16. package/models/operations/createidentity.js +1 -1
  17. package/models/operations/createtool.js +6 -6
  18. package/models/operations/fileget.js +1 -1
  19. package/models/operations/filelist.js +1 -1
  20. package/models/operations/fileupload.js +1 -1
  21. package/models/operations/generateconversationname.js +1 -1
  22. package/models/operations/getalltools.js +6 -6
  23. package/models/operations/getevals.js +14 -14
  24. package/models/operations/listdatasetdatapoints.js +4 -4
  25. package/models/operations/listdatasets.js +1 -1
  26. package/models/operations/listdatasources.js +1 -1
  27. package/models/operations/listidentities.js +1 -1
  28. package/models/operations/retrievedatapoint.js +4 -4
  29. package/models/operations/retrievedataset.js +1 -1
  30. package/models/operations/retrievedatasource.js +1 -1
  31. package/models/operations/retrieveidentity.js +1 -1
  32. package/models/operations/retrievetool.js +6 -6
  33. package/models/operations/runagent.js +1 -1
  34. package/models/operations/streamrunagent.js +1 -1
  35. package/models/operations/updateconversation.js +1 -1
  36. package/models/operations/updatedatapoint.js +4 -4
  37. package/models/operations/updatedataset.js +1 -1
  38. package/models/operations/updatedatasource.js +1 -1
  39. package/models/operations/updateeval.js +14 -14
  40. package/models/operations/updateidentity.js +1 -1
  41. package/models/operations/updatetool.js +7 -7
  42. package/package.json +1 -1
  43. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  44. package/packages/orq-rc/examples/package-lock.json +1 -1
  45. package/packages/orq-rc/jsr.json +1 -1
  46. package/packages/orq-rc/package-lock.json +2 -2
  47. package/packages/orq-rc/package.json +1 -1
  48. package/packages/orq-rc/src/funcs/contactsCreate.ts +7 -14
  49. package/packages/orq-rc/src/lib/config.ts +2 -2
  50. package/packages/orq-rc/src/models/components/conversationresponse.ts +1 -1
  51. package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +1 -1
  52. package/packages/orq-rc/src/models/components/index.ts +1 -0
  53. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +11 -0
  54. package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
  55. package/packages/orq-rc/src/models/components/publiccontact.ts +3 -1
  56. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  57. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  58. package/packages/orq-rc/src/models/errors/index.ts +0 -3
  59. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11 -78
  60. package/packages/orq-rc/src/models/operations/createcompletion.ts +11 -75
  61. package/packages/orq-rc/src/models/operations/createcontact.ts +3 -9
  62. package/packages/orq-rc/src/models/operations/createconversation.ts +1 -1
  63. package/packages/orq-rc/src/models/operations/createconversationresponse.ts +2 -2
  64. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  65. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  66. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  67. package/packages/orq-rc/src/models/operations/createembedding.ts +11 -75
  68. package/packages/orq-rc/src/models/operations/createeval.ts +14 -14
  69. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  70. package/packages/orq-rc/src/models/operations/createimage.ts +11 -75
  71. package/packages/orq-rc/src/models/operations/createimageedit.ts +11 -75
  72. package/packages/orq-rc/src/models/operations/createimagevariation.ts +11 -77
  73. package/packages/orq-rc/src/models/operations/creatererank.ts +11 -75
  74. package/packages/orq-rc/src/models/operations/createspeech.ts +11 -75
  75. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  76. package/packages/orq-rc/src/models/operations/createtranscription.ts +11 -75
  77. package/packages/orq-rc/src/models/operations/createtranslation.ts +11 -75
  78. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -0
  79. package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -0
  80. package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
  81. package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
  83. package/packages/orq-rc/src/models/operations/generateconversationname.ts +1 -1
  84. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  85. package/packages/orq-rc/src/models/operations/getevals.ts +35 -39
  86. package/packages/orq-rc/src/models/operations/index.ts +0 -4
  87. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  88. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  89. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  90. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  91. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  92. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  93. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  94. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
  95. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  96. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  97. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  98. package/packages/orq-rc/src/models/operations/updateconversation.ts +1 -1
  99. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  100. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  101. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  102. package/packages/orq-rc/src/models/operations/updateeval.ts +14 -14
  103. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  104. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  105. package/packages/orq-rc/src/sdk/contacts.ts +3 -85
  106. package/src/lib/config.ts +2 -2
  107. package/src/models/components/conversationresponse.ts +1 -1
  108. package/src/models/components/conversationwithmessagesresponse.ts +1 -1
  109. package/src/models/components/partdoneevent.ts +1 -1
  110. package/src/models/components/reasoningpart.ts +1 -1
  111. package/src/models/operations/createcontact.ts +1 -1
  112. package/src/models/operations/createconversation.ts +1 -1
  113. package/src/models/operations/createconversationresponse.ts +2 -2
  114. package/src/models/operations/createdataset.ts +1 -1
  115. package/src/models/operations/createdatasetitem.ts +4 -4
  116. package/src/models/operations/createdatasource.ts +1 -1
  117. package/src/models/operations/createeval.ts +14 -14
  118. package/src/models/operations/createidentity.ts +1 -1
  119. package/src/models/operations/createtool.ts +6 -6
  120. package/src/models/operations/fileget.ts +1 -1
  121. package/src/models/operations/filelist.ts +1 -1
  122. package/src/models/operations/fileupload.ts +1 -1
  123. package/src/models/operations/generateconversationname.ts +1 -1
  124. package/src/models/operations/getalltools.ts +6 -6
  125. package/src/models/operations/getevals.ts +14 -14
  126. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  127. package/src/models/operations/listdatasets.ts +1 -1
  128. package/src/models/operations/listdatasources.ts +1 -1
  129. package/src/models/operations/listidentities.ts +1 -1
  130. package/src/models/operations/retrievedatapoint.ts +4 -4
  131. package/src/models/operations/retrievedataset.ts +1 -1
  132. package/src/models/operations/retrievedatasource.ts +1 -1
  133. package/src/models/operations/retrieveidentity.ts +1 -1
  134. package/src/models/operations/retrievetool.ts +6 -6
  135. package/src/models/operations/runagent.ts +1 -1
  136. package/src/models/operations/streamrunagent.ts +1 -1
  137. package/src/models/operations/updateconversation.ts +1 -1
  138. package/src/models/operations/updatedatapoint.ts +4 -4
  139. package/src/models/operations/updatedataset.ts +1 -1
  140. package/src/models/operations/updatedatasource.ts +1 -1
  141. package/src/models/operations/updateeval.ts +14 -14
  142. package/src/models/operations/updateidentity.ts +1 -1
  143. package/src/models/operations/updatetool.ts +7 -7
  144. package/packages/orq-rc/examples/feedbackCreate.example.ts +0 -32
  145. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -178
  146. package/packages/orq-rc/src/funcs/contactsList.ts +0 -172
  147. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -177
  148. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -178
  149. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -62
  150. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -62
  151. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -54
  152. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -34
  153. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -274
  154. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -117
  155. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -188
@@ -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.PublicContact | undefined;
1398
- contact?: CreateChatCompletionContact | undefined;
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.PublicContact$Outbound | undefined;
5265
- contact?: CreateChatCompletionContact$Outbound | undefined;
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.PublicContact$outboundSchema.optional(),
5294
- contact: z.lazy(() => CreateChatCompletionContact$outboundSchema)
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.PublicContact | undefined;
622
- contact?: CreateCompletionContact | undefined;
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.PublicContact$Outbound | undefined;
2606
- contact?: CreateCompletionContact$Outbound | undefined;
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.PublicContact$outboundSchema.optional(),
2630
- contact: z.lazy(() => CreateCompletionContact$outboundSchema).optional(),
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
- * Contact profile information
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
- * Created Contact
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-23T09:49:01.865Z",
137
+ "2026-01-24T23:05:31.950Z",
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("conv_01kfn442kxpdt9f247v9zqe0az"),
204
+ _id: z.string().default("conv_01kfs437mxp90m71kew8afgfxa"),
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("reasoning_01kfn442mrkbjdz4hbp1krqp9n"),
283
+ _id: z.string().default("reasoning_01kfs437ny1beb7z37ay2cvvmw"),
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("reasoning_01kfn442mj49ga8tzpqwes2s5e"),
369
+ _id: z.string().default("reasoning_01kfs437nqnx4pmh4pz6494mp4"),
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-23T09:49:01.865Z",
141
+ "2026-01-24T23:05:31.950Z",
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-23T09:49:16.165Z",
2356
+ "2026-01-24T23:05:46.027Z",
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-23T09:49:16.161Z",
2401
+ "2026-01-24T23:05:46.026Z",
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-23T09:49:16.158Z",
2446
+ "2026-01-24T23:05:46.025Z",
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-23T09:49:01.865Z",
2529
+ "2026-01-24T23:05:31.950Z",
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("01KFN4436ERKR62E2C0NPB6CMF"),
406
+ _id: z.string().default("01KFS4386722EFCV3B6AA7SVSD"),
407
407
  display_name: z.string(),
408
408
  description: z.string().optional(),
409
409
  status: CreateDatasourceStatus$inboundSchema,
@@ -64,38 +64,6 @@ export type CreateEmbeddingRetry = {
64
64
  onCodes?: Array<number> | undefined;
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 CreateEmbeddingContact = {
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
  export const CreateEmbeddingLoadBalancerType = {
100
68
  WeightBased: "weight_based",
101
69
  } as const;
@@ -154,8 +122,13 @@ export type CreateEmbeddingOrq = {
154
122
  /**
155
123
  * Information about the identity making the request. If the identity does not exist, it will be created automatically.
156
124
  */
157
- identity?: components.PublicContact | undefined;
158
- contact?: CreateEmbeddingContact | undefined;
125
+ identity?: components.PublicIdentity | undefined;
126
+ /**
127
+ * @deprecated Use identity instead. Information about the contact making the request.
128
+ *
129
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
130
+ */
131
+ contact?: components.PublicContact | undefined;
159
132
  /**
160
133
  * Array of models with weights for load balancing requests
161
134
  */
@@ -363,43 +336,6 @@ export function createEmbeddingRetryToJSON(
363
336
  );
364
337
  }
365
338
 
366
- /** @internal */
367
- export type CreateEmbeddingContact$Outbound = {
368
- id: string;
369
- display_name?: string | undefined;
370
- email?: string | undefined;
371
- metadata?: Array<{ [k: string]: any }> | undefined;
372
- logo_url?: string | undefined;
373
- tags?: Array<string> | undefined;
374
- };
375
-
376
- /** @internal */
377
- export const CreateEmbeddingContact$outboundSchema: z.ZodType<
378
- CreateEmbeddingContact$Outbound,
379
- z.ZodTypeDef,
380
- CreateEmbeddingContact
381
- > = z.object({
382
- id: z.string(),
383
- displayName: z.string().optional(),
384
- email: z.string().optional(),
385
- metadata: z.array(z.record(z.any())).optional(),
386
- logoUrl: z.string().optional(),
387
- tags: z.array(z.string()).optional(),
388
- }).transform((v) => {
389
- return remap$(v, {
390
- displayName: "display_name",
391
- logoUrl: "logo_url",
392
- });
393
- });
394
-
395
- export function createEmbeddingContactToJSON(
396
- createEmbeddingContact: CreateEmbeddingContact,
397
- ): string {
398
- return JSON.stringify(
399
- CreateEmbeddingContact$outboundSchema.parse(createEmbeddingContact),
400
- );
401
- }
402
-
403
339
  /** @internal */
404
340
  export const CreateEmbeddingLoadBalancerType$outboundSchema: z.ZodNativeEnum<
405
341
  typeof CreateEmbeddingLoadBalancerType
@@ -512,8 +448,8 @@ export type CreateEmbeddingOrq$Outbound = {
512
448
  fallbacks?: Array<CreateEmbeddingFallbacks$Outbound> | undefined;
513
449
  cache?: CreateEmbeddingCache$Outbound | undefined;
514
450
  retry?: CreateEmbeddingRetry$Outbound | undefined;
515
- identity?: components.PublicContact$Outbound | undefined;
516
- contact?: CreateEmbeddingContact$Outbound | undefined;
451
+ identity?: components.PublicIdentity$Outbound | undefined;
452
+ contact?: components.PublicContact$Outbound | undefined;
517
453
  load_balancer?: CreateEmbeddingLoadBalancer1$Outbound | undefined;
518
454
  timeout?: CreateEmbeddingTimeout$Outbound | undefined;
519
455
  };
@@ -529,8 +465,8 @@ export const CreateEmbeddingOrq$outboundSchema: z.ZodType<
529
465
  .optional(),
530
466
  cache: z.lazy(() => CreateEmbeddingCache$outboundSchema).optional(),
531
467
  retry: z.lazy(() => CreateEmbeddingRetry$outboundSchema).optional(),
532
- identity: components.PublicContact$outboundSchema.optional(),
533
- contact: z.lazy(() => CreateEmbeddingContact$outboundSchema).optional(),
468
+ identity: components.PublicIdentity$outboundSchema.optional(),
469
+ contact: components.PublicContact$outboundSchema.optional(),
534
470
  loadBalancer: z.lazy(() => CreateEmbeddingLoadBalancer1$outboundSchema)
535
471
  .optional(),
536
472
  timeout: z.lazy(() => CreateEmbeddingTimeout$outboundSchema).optional(),
@@ -1569,8 +1569,8 @@ export const Typescript$inboundSchema: z.ZodType<
1569
1569
  > = z.object({
1570
1570
  _id: z.string(),
1571
1571
  description: z.string(),
1572
- created: z.string().default("2026-01-23T09:49:04.371Z"),
1573
- updated: z.string().default("2026-01-23T09:49:04.371Z"),
1572
+ created: z.string().default("2026-01-24T23:05:33.746Z"),
1573
+ updated: z.string().default("2026-01-24T23:05:33.746Z"),
1574
1574
  guardrail_config: z.union([
1575
1575
  z.lazy(() =>
1576
1576
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
@@ -1712,8 +1712,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
1712
1712
  .object({
1713
1713
  _id: z.string(),
1714
1714
  description: z.string(),
1715
- created: z.string().default("2026-01-23T09:49:04.371Z"),
1716
- updated: z.string().default("2026-01-23T09:49:04.371Z"),
1715
+ created: z.string().default("2026-01-24T23:05:33.746Z"),
1716
+ updated: z.string().default("2026-01-24T23:05:33.746Z"),
1717
1717
  guardrail_config: z.union([
1718
1718
  z.lazy(() =>
1719
1719
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
@@ -2491,8 +2491,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
2491
2491
  > = z.object({
2492
2492
  _id: z.string(),
2493
2493
  description: z.string(),
2494
- created: z.string().default("2026-01-23T09:49:04.371Z"),
2495
- updated: z.string().default("2026-01-23T09:49:04.371Z"),
2494
+ created: z.string().default("2026-01-24T23:05:33.746Z"),
2495
+ updated: z.string().default("2026-01-24T23:05:33.746Z"),
2496
2496
  guardrail_config: z.union([
2497
2497
  z.lazy(() =>
2498
2498
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema
@@ -2668,8 +2668,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
2668
2668
  > = z.object({
2669
2669
  _id: z.string(),
2670
2670
  description: z.string(),
2671
- created: z.string().default("2026-01-23T09:49:04.371Z"),
2672
- updated: z.string().default("2026-01-23T09:49:04.371Z"),
2671
+ created: z.string().default("2026-01-24T23:05:33.746Z"),
2672
+ updated: z.string().default("2026-01-24T23:05:33.746Z"),
2673
2673
  guardrail_config: z.union([
2674
2674
  z.lazy(() =>
2675
2675
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
@@ -2813,8 +2813,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
2813
2813
  > = z.object({
2814
2814
  _id: z.string(),
2815
2815
  description: z.string(),
2816
- created: z.string().default("2026-01-23T09:49:04.371Z"),
2817
- updated: z.string().default("2026-01-23T09:49:04.371Z"),
2816
+ created: z.string().default("2026-01-24T23:05:33.746Z"),
2817
+ updated: z.string().default("2026-01-24T23:05:33.746Z"),
2818
2818
  guardrail_config: z.union([
2819
2819
  z.lazy(() =>
2820
2820
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
@@ -2947,8 +2947,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
2947
2947
  > = z.object({
2948
2948
  _id: z.string(),
2949
2949
  description: z.string(),
2950
- created: z.string().default("2026-01-23T09:49:04.371Z"),
2951
- updated: z.string().default("2026-01-23T09:49:04.371Z"),
2950
+ created: z.string().default("2026-01-24T23:05:33.746Z"),
2951
+ updated: z.string().default("2026-01-24T23:05:33.746Z"),
2952
2952
  guardrail_config: z.union([
2953
2953
  z.lazy(() =>
2954
2954
  CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
@@ -3075,8 +3075,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
3075
3075
  > = z.object({
3076
3076
  _id: z.string(),
3077
3077
  description: z.string(),
3078
- created: z.string().default("2026-01-23T09:49:04.371Z"),
3079
- updated: z.string().default("2026-01-23T09:49:04.371Z"),
3078
+ created: z.string().default("2026-01-24T23:05:33.746Z"),
3079
+ updated: z.string().default("2026-01-24T23:05:33.746Z"),
3080
3080
  guardrail_config: z.union([
3081
3081
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
3082
3082
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
139
139
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
140
140
  .optional(),
141
141
  updated: z.string().datetime({ offset: true }).default(
142
- "2026-01-23T09:49:01.865Z",
142
+ "2026-01-24T23:05:31.950Z",
143
143
  ).transform(v => new Date(v)),
144
144
  }).transform((v) => {
145
145
  return remap$(v, {