@orq-ai/node 3.11.12 → 3.11.13

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 (92) hide show
  1. package/bin/mcp-server.js +104 -104
  2. package/bin/mcp-server.js.map +26 -26
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/lib/config.js.map +1 -1
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +2 -2
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +16 -16
  15. package/models/operations/fileget.js +2 -2
  16. package/models/operations/filelist.js +2 -2
  17. package/models/operations/fileupload.js +2 -2
  18. package/models/operations/getevals.js +28 -28
  19. package/models/operations/listcontacts.js +2 -2
  20. package/models/operations/listdatasetdatapoints.js +2 -2
  21. package/models/operations/listdatasets.js +2 -2
  22. package/models/operations/listdatasources.js +2 -2
  23. package/models/operations/retrievecontact.js +2 -2
  24. package/models/operations/retrievedatapoint.js +2 -2
  25. package/models/operations/retrievedataset.js +2 -2
  26. package/models/operations/retrievedatasource.js +2 -2
  27. package/models/operations/updatecontact.js +2 -2
  28. package/models/operations/updatedatapoint.js +2 -2
  29. package/models/operations/updatedataset.js +2 -2
  30. package/models/operations/updatedatasource.js +2 -2
  31. package/models/operations/updateeval.js +16 -16
  32. package/package.json +1 -1
  33. package/packages/orq-rc/docs/sdks/proxy/README.md +72 -0
  34. package/packages/orq-rc/examples/package-lock.json +1 -1
  35. package/packages/orq-rc/jsr.json +1 -1
  36. package/packages/orq-rc/package-lock.json +2 -2
  37. package/packages/orq-rc/package.json +1 -1
  38. package/packages/orq-rc/src/lib/config.ts +3 -3
  39. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  40. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  41. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  42. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  43. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  44. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  45. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  46. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  47. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  48. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  49. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  50. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  52. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  53. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  56. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/postv2proxyrerank.ts +330 -0
  58. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  63. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  64. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  65. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  68. package/src/lib/config.ts +3 -3
  69. package/src/mcp-server/mcp-server.ts +1 -1
  70. package/src/mcp-server/server.ts +1 -1
  71. package/src/models/operations/createcontact.ts +2 -2
  72. package/src/models/operations/createdataset.ts +2 -2
  73. package/src/models/operations/createdatasetitem.ts +2 -2
  74. package/src/models/operations/createdatasource.ts +2 -2
  75. package/src/models/operations/createeval.ts +16 -16
  76. package/src/models/operations/fileget.ts +2 -2
  77. package/src/models/operations/filelist.ts +2 -2
  78. package/src/models/operations/fileupload.ts +2 -2
  79. package/src/models/operations/getevals.ts +28 -28
  80. package/src/models/operations/listcontacts.ts +2 -2
  81. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  82. package/src/models/operations/listdatasets.ts +2 -2
  83. package/src/models/operations/listdatasources.ts +2 -2
  84. package/src/models/operations/retrievecontact.ts +2 -2
  85. package/src/models/operations/retrievedatapoint.ts +2 -2
  86. package/src/models/operations/retrievedataset.ts +2 -2
  87. package/src/models/operations/retrievedatasource.ts +2 -2
  88. package/src/models/operations/updatecontact.ts +2 -2
  89. package/src/models/operations/updatedatapoint.ts +2 -2
  90. package/src/models/operations/updatedataset.ts +2 -2
  91. package/src/models/operations/updatedatasource.ts +2 -2
  92. package/src/models/operations/updateeval.ts +16 -16
@@ -1551,8 +1551,8 @@ export const Typescript$inboundSchema: z.ZodType<
1551
1551
  > = z.object({
1552
1552
  _id: z.string(),
1553
1553
  description: z.string(),
1554
- created: z.string().default("2025-09-01T07:54:07.455Z"),
1555
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
1554
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
1555
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
1556
1556
  guardrail_config: z.union([
1557
1557
  z.lazy(() =>
1558
1558
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
@@ -1595,8 +1595,8 @@ export const Typescript$outboundSchema: z.ZodType<
1595
1595
  > = z.object({
1596
1596
  id: z.string(),
1597
1597
  description: z.string(),
1598
- created: z.string().default("2025-09-01T07:54:07.455Z"),
1599
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
1598
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
1599
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
1600
1600
  guardrailConfig: z.union([
1601
1601
  z.lazy(() =>
1602
1602
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
@@ -1992,8 +1992,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
1992
1992
  .object({
1993
1993
  _id: z.string(),
1994
1994
  description: z.string(),
1995
- created: z.string().default("2025-09-01T07:54:07.455Z"),
1996
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
1995
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
1996
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
1997
1997
  guardrail_config: z.union([
1998
1998
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
1999
1999
  z.lazy(() =>
@@ -2036,8 +2036,8 @@ export const Ragas$outboundSchema: z.ZodType<
2036
2036
  > = z.object({
2037
2037
  id: z.string(),
2038
2038
  description: z.string(),
2039
- created: z.string().default("2025-09-01T07:54:07.455Z"),
2040
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
2039
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
2040
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
2041
2041
  guardrailConfig: z.union([
2042
2042
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
2043
2043
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema),
@@ -5331,8 +5331,8 @@ export const DataFunction$inboundSchema: z.ZodType<
5331
5331
  > = z.object({
5332
5332
  _id: z.string(),
5333
5333
  description: z.string(),
5334
- created: z.string().default("2025-09-01T07:54:07.455Z"),
5335
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
5334
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
5335
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
5336
5336
  guardrail_config: z.union([
5337
5337
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
5338
5338
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -5442,8 +5442,8 @@ export const DataFunction$outboundSchema: z.ZodType<
5442
5442
  > = z.object({
5443
5443
  id: z.string(),
5444
5444
  description: z.string(),
5445
- created: z.string().default("2025-09-01T07:54:07.455Z"),
5446
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
5445
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
5446
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
5447
5447
  guardrailConfig: z.union([
5448
5448
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
5449
5449
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema),
@@ -5825,8 +5825,8 @@ export const DataPython$inboundSchema: z.ZodType<
5825
5825
  > = z.object({
5826
5826
  _id: z.string(),
5827
5827
  description: z.string(),
5828
- created: z.string().default("2025-09-01T07:54:07.455Z"),
5829
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
5828
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
5829
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
5830
5830
  guardrail_config: z.union([
5831
5831
  z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
5832
5832
  z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
@@ -5864,8 +5864,8 @@ export const DataPython$outboundSchema: z.ZodType<
5864
5864
  > = z.object({
5865
5865
  id: z.string(),
5866
5866
  description: z.string(),
5867
- created: z.string().default("2025-09-01T07:54:07.455Z"),
5868
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
5867
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
5868
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
5869
5869
  guardrailConfig: z.union([
5870
5870
  z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
5871
5871
  z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema),
@@ -6211,8 +6211,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
6211
6211
  > = z.object({
6212
6212
  _id: z.string(),
6213
6213
  description: z.string(),
6214
- created: z.string().default("2025-09-01T07:54:07.455Z"),
6215
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
6214
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
6215
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
6216
6216
  guardrail_config: z.union([
6217
6217
  z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
6218
6218
  z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
@@ -6256,8 +6256,8 @@ export const DataHTTP$outboundSchema: z.ZodType<
6256
6256
  > = z.object({
6257
6257
  id: z.string(),
6258
6258
  description: z.string(),
6259
- created: z.string().default("2025-09-01T07:54:07.455Z"),
6260
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
6259
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
6260
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
6261
6261
  guardrailConfig: z.union([
6262
6262
  z.lazy(() => GetEvalsGuardrailConfigNumber$outboundSchema),
6263
6263
  z.lazy(() => GetEvalsGuardrailConfigBoolean$outboundSchema),
@@ -6622,8 +6622,8 @@ export const DataJSON$inboundSchema: z.ZodType<
6622
6622
  > = z.object({
6623
6623
  _id: z.string(),
6624
6624
  description: z.string(),
6625
- created: z.string().default("2025-09-01T07:54:07.455Z"),
6626
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
6625
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
6626
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
6627
6627
  guardrail_config: z.union([
6628
6628
  z.lazy(() =>
6629
6629
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
@@ -6665,8 +6665,8 @@ export const DataJSON$outboundSchema: z.ZodType<
6665
6665
  > = z.object({
6666
6666
  id: z.string(),
6667
6667
  description: z.string(),
6668
- created: z.string().default("2025-09-01T07:54:07.455Z"),
6669
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
6668
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
6669
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
6670
6670
  guardrailConfig: z.union([
6671
6671
  z.lazy(() =>
6672
6672
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema
@@ -7048,8 +7048,8 @@ export const DataLLM$inboundSchema: z.ZodType<DataLLM, z.ZodTypeDef, unknown> =
7048
7048
  z.object({
7049
7049
  _id: z.string(),
7050
7050
  description: z.string(),
7051
- created: z.string().default("2025-09-01T07:54:07.455Z"),
7052
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
7051
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
7052
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
7053
7053
  guardrail_config: z.union([
7054
7054
  z.lazy(() =>
7055
7055
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
@@ -7093,8 +7093,8 @@ export const DataLLM$outboundSchema: z.ZodType<
7093
7093
  > = z.object({
7094
7094
  id: z.string(),
7095
7095
  description: z.string(),
7096
- created: z.string().default("2025-09-01T07:54:07.455Z"),
7097
- updated: z.string().default("2025-09-01T07:54:07.455Z"),
7096
+ created: z.string().default("2025-09-03T06:59:35.346Z"),
7097
+ updated: z.string().default("2025-09-03T06:59:35.346Z"),
7098
7098
  guardrailConfig: z.union([
7099
7099
  z.lazy(() =>
7100
7100
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
@@ -470,7 +470,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
470
470
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
471
471
  .optional(),
472
472
  updated: z.string().datetime({ offset: true }).default(
473
- "2025-09-01T07:54:04.987Z",
473
+ "2025-09-03T06:59:32.668Z",
474
474
  ).transform(v => new Date(v)),
475
475
  }).transform((v) => {
476
476
  return remap$(v, {
@@ -508,7 +508,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
508
508
  isActive: z.boolean(),
509
509
  consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
510
510
  created: z.date().transform(v => v.toISOString()).optional(),
511
- updated: z.date().default(() => new Date("2025-09-01T07:54:04.987Z"))
511
+ updated: z.date().default(() => new Date("2025-09-03T06:59:32.668Z"))
512
512
  .transform(v => v.toISOString()),
513
513
  }).transform((v) => {
514
514
  return remap$(v, {
@@ -345,7 +345,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
345
345
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
346
346
  .optional(),
347
347
  updated: z.string().datetime({ offset: true }).default(
348
- "2025-09-01T07:54:04.987Z",
348
+ "2025-09-03T06:59:32.668Z",
349
349
  ).transform(v => new Date(v)),
350
350
  metrics: z.lazy(() => Metrics$inboundSchema),
351
351
  }).transform((v) => {
@@ -382,7 +382,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
382
382
  tags: z.array(z.string()).optional(),
383
383
  metadata: z.record(z.any()).optional(),
384
384
  created: z.date().transform(v => v.toISOString()).optional(),
385
- updated: z.date().default(() => new Date("2025-09-01T07:54:04.987Z"))
385
+ updated: z.date().default(() => new Date("2025-09-03T06:59:32.668Z"))
386
386
  .transform(v => v.toISOString()),
387
387
  metrics: z.lazy(() => Metrics$outboundSchema),
388
388
  }).transform((v) => {
@@ -3100,7 +3100,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
3100
3100
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3101
3101
  .optional(),
3102
3102
  updated: z.string().datetime({ offset: true }).default(
3103
- "2025-09-01T07:54:04.987Z",
3103
+ "2025-09-03T06:59:32.668Z",
3104
3104
  ).transform(v => new Date(v)),
3105
3105
  }).transform((v) => {
3106
3106
  return remap$(v, {
@@ -3164,7 +3164,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
3164
3164
  createdById: z.string().optional(),
3165
3165
  updatedById: z.string().optional(),
3166
3166
  created: z.date().transform(v => v.toISOString()).optional(),
3167
- updated: z.date().default(() => new Date("2025-09-01T07:54:04.987Z"))
3167
+ updated: z.date().default(() => new Date("2025-09-03T06:59:32.668Z"))
3168
3168
  .transform(v => v.toISOString()),
3169
3169
  }).transform((v) => {
3170
3170
  return remap$(v, {
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
253
253
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
254
254
  .optional(),
255
255
  updated: z.string().datetime({ offset: true }).default(
256
- "2025-09-01T07:54:04.987Z",
256
+ "2025-09-03T06:59:32.668Z",
257
257
  ).transform(v => new Date(v)),
258
258
  }).transform((v) => {
259
259
  return remap$(v, {
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
293
293
  updatedById: z.string().optional(),
294
294
  metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
295
295
  created: z.date().transform(v => v.toISOString()).optional(),
296
- updated: z.date().default(() => new Date("2025-09-01T07:54:04.987Z"))
296
+ updated: z.date().default(() => new Date("2025-09-03T06:59:32.668Z"))
297
297
  .transform(v => v.toISOString()),
298
298
  }).transform((v) => {
299
299
  return remap$(v, {
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
278
  z.ZodTypeDef,
279
279
  unknown
280
280
  > = z.object({
281
- _id: z.string().default("01K4249YQW1J6HC63APKZC3VGA"),
281
+ _id: z.string().default("01K475ZJ0RTHV3RQ0SECW7R0V5"),
282
282
  display_name: z.string(),
283
283
  description: z.string().optional(),
284
284
  status: ListDatasourcesStatus$inboundSchema,
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
322
322
  z.ZodTypeDef,
323
323
  ListDatasourcesData
324
324
  > = z.object({
325
- id: z.string().default("01K4249YQW1J6HC63APKZC3VGA"),
325
+ id: z.string().default("01K475ZJ0RTHV3RQ0SECW7R0V5"),
326
326
  displayName: z.string(),
327
327
  description: z.string().optional(),
328
328
  status: ListDatasourcesStatus$outboundSchema,
@@ -7,10 +7,71 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
12
13
  export type PostV2ProxyRerankDocuments = string | { [k: string]: string };
13
14
 
15
+ export type PostV2ProxyRerankFallbacks = {
16
+ /**
17
+ * Fallback model identifier
18
+ */
19
+ model: string;
20
+ };
21
+
22
+ export const PostV2ProxyRerankType = {
23
+ ExactMatch: "exact_match",
24
+ } as const;
25
+ export type PostV2ProxyRerankType = ClosedEnum<typeof PostV2ProxyRerankType>;
26
+
27
+ /**
28
+ * Cache configuration for the request.
29
+ */
30
+ export type PostV2ProxyRerankCache = {
31
+ /**
32
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
33
+ */
34
+ ttl?: number | undefined;
35
+ type: PostV2ProxyRerankType;
36
+ };
37
+
38
+ /**
39
+ * Retry configuration for the request
40
+ */
41
+ export type PostV2ProxyRerankRetry = {
42
+ /**
43
+ * Number of retry attempts (1-5)
44
+ */
45
+ count?: number | undefined;
46
+ /**
47
+ * HTTP status codes that trigger retry logic
48
+ */
49
+ onCodes?: Array<number> | undefined;
50
+ };
51
+
52
+ export type PostV2ProxyRerankOrq = {
53
+ /**
54
+ * The name to display on the trace. If not specified, the default system name will be used.
55
+ */
56
+ name?: string | undefined;
57
+ /**
58
+ * Array of fallback models to use if primary model fails
59
+ */
60
+ fallbacks?: Array<PostV2ProxyRerankFallbacks> | undefined;
61
+ /**
62
+ * Cache configuration for the request.
63
+ */
64
+ cache?: PostV2ProxyRerankCache | undefined;
65
+ /**
66
+ * Retry configuration for the request
67
+ */
68
+ retry?: PostV2ProxyRerankRetry | undefined;
69
+ /**
70
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
71
+ */
72
+ contact?: components.PublicContact | undefined;
73
+ };
74
+
14
75
  /**
15
76
  * input
16
77
  */
@@ -35,6 +96,7 @@ export type PostV2ProxyRerankRequestBody = {
35
96
  * The filename of the document to rerank
36
97
  */
37
98
  filename?: string | null | undefined;
99
+ orq?: PostV2ProxyRerankOrq | undefined;
38
100
  };
39
101
 
40
102
  export const PostV2ProxyRerankObject = {
@@ -159,6 +221,271 @@ export function postV2ProxyRerankDocumentsFromJSON(
159
221
  );
160
222
  }
161
223
 
224
+ /** @internal */
225
+ export const PostV2ProxyRerankFallbacks$inboundSchema: z.ZodType<
226
+ PostV2ProxyRerankFallbacks,
227
+ z.ZodTypeDef,
228
+ unknown
229
+ > = z.object({
230
+ model: z.string(),
231
+ });
232
+
233
+ /** @internal */
234
+ export type PostV2ProxyRerankFallbacks$Outbound = {
235
+ model: string;
236
+ };
237
+
238
+ /** @internal */
239
+ export const PostV2ProxyRerankFallbacks$outboundSchema: z.ZodType<
240
+ PostV2ProxyRerankFallbacks$Outbound,
241
+ z.ZodTypeDef,
242
+ PostV2ProxyRerankFallbacks
243
+ > = z.object({
244
+ model: z.string(),
245
+ });
246
+
247
+ /**
248
+ * @internal
249
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
250
+ */
251
+ export namespace PostV2ProxyRerankFallbacks$ {
252
+ /** @deprecated use `PostV2ProxyRerankFallbacks$inboundSchema` instead. */
253
+ export const inboundSchema = PostV2ProxyRerankFallbacks$inboundSchema;
254
+ /** @deprecated use `PostV2ProxyRerankFallbacks$outboundSchema` instead. */
255
+ export const outboundSchema = PostV2ProxyRerankFallbacks$outboundSchema;
256
+ /** @deprecated use `PostV2ProxyRerankFallbacks$Outbound` instead. */
257
+ export type Outbound = PostV2ProxyRerankFallbacks$Outbound;
258
+ }
259
+
260
+ export function postV2ProxyRerankFallbacksToJSON(
261
+ postV2ProxyRerankFallbacks: PostV2ProxyRerankFallbacks,
262
+ ): string {
263
+ return JSON.stringify(
264
+ PostV2ProxyRerankFallbacks$outboundSchema.parse(postV2ProxyRerankFallbacks),
265
+ );
266
+ }
267
+
268
+ export function postV2ProxyRerankFallbacksFromJSON(
269
+ jsonString: string,
270
+ ): SafeParseResult<PostV2ProxyRerankFallbacks, SDKValidationError> {
271
+ return safeParse(
272
+ jsonString,
273
+ (x) => PostV2ProxyRerankFallbacks$inboundSchema.parse(JSON.parse(x)),
274
+ `Failed to parse 'PostV2ProxyRerankFallbacks' from JSON`,
275
+ );
276
+ }
277
+
278
+ /** @internal */
279
+ export const PostV2ProxyRerankType$inboundSchema: z.ZodNativeEnum<
280
+ typeof PostV2ProxyRerankType
281
+ > = z.nativeEnum(PostV2ProxyRerankType);
282
+
283
+ /** @internal */
284
+ export const PostV2ProxyRerankType$outboundSchema: z.ZodNativeEnum<
285
+ typeof PostV2ProxyRerankType
286
+ > = PostV2ProxyRerankType$inboundSchema;
287
+
288
+ /**
289
+ * @internal
290
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
291
+ */
292
+ export namespace PostV2ProxyRerankType$ {
293
+ /** @deprecated use `PostV2ProxyRerankType$inboundSchema` instead. */
294
+ export const inboundSchema = PostV2ProxyRerankType$inboundSchema;
295
+ /** @deprecated use `PostV2ProxyRerankType$outboundSchema` instead. */
296
+ export const outboundSchema = PostV2ProxyRerankType$outboundSchema;
297
+ }
298
+
299
+ /** @internal */
300
+ export const PostV2ProxyRerankCache$inboundSchema: z.ZodType<
301
+ PostV2ProxyRerankCache,
302
+ z.ZodTypeDef,
303
+ unknown
304
+ > = z.object({
305
+ ttl: z.number().default(1800),
306
+ type: PostV2ProxyRerankType$inboundSchema,
307
+ });
308
+
309
+ /** @internal */
310
+ export type PostV2ProxyRerankCache$Outbound = {
311
+ ttl: number;
312
+ type: string;
313
+ };
314
+
315
+ /** @internal */
316
+ export const PostV2ProxyRerankCache$outboundSchema: z.ZodType<
317
+ PostV2ProxyRerankCache$Outbound,
318
+ z.ZodTypeDef,
319
+ PostV2ProxyRerankCache
320
+ > = z.object({
321
+ ttl: z.number().default(1800),
322
+ type: PostV2ProxyRerankType$outboundSchema,
323
+ });
324
+
325
+ /**
326
+ * @internal
327
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
328
+ */
329
+ export namespace PostV2ProxyRerankCache$ {
330
+ /** @deprecated use `PostV2ProxyRerankCache$inboundSchema` instead. */
331
+ export const inboundSchema = PostV2ProxyRerankCache$inboundSchema;
332
+ /** @deprecated use `PostV2ProxyRerankCache$outboundSchema` instead. */
333
+ export const outboundSchema = PostV2ProxyRerankCache$outboundSchema;
334
+ /** @deprecated use `PostV2ProxyRerankCache$Outbound` instead. */
335
+ export type Outbound = PostV2ProxyRerankCache$Outbound;
336
+ }
337
+
338
+ export function postV2ProxyRerankCacheToJSON(
339
+ postV2ProxyRerankCache: PostV2ProxyRerankCache,
340
+ ): string {
341
+ return JSON.stringify(
342
+ PostV2ProxyRerankCache$outboundSchema.parse(postV2ProxyRerankCache),
343
+ );
344
+ }
345
+
346
+ export function postV2ProxyRerankCacheFromJSON(
347
+ jsonString: string,
348
+ ): SafeParseResult<PostV2ProxyRerankCache, SDKValidationError> {
349
+ return safeParse(
350
+ jsonString,
351
+ (x) => PostV2ProxyRerankCache$inboundSchema.parse(JSON.parse(x)),
352
+ `Failed to parse 'PostV2ProxyRerankCache' from JSON`,
353
+ );
354
+ }
355
+
356
+ /** @internal */
357
+ export const PostV2ProxyRerankRetry$inboundSchema: z.ZodType<
358
+ PostV2ProxyRerankRetry,
359
+ z.ZodTypeDef,
360
+ unknown
361
+ > = z.object({
362
+ count: z.number().default(3),
363
+ on_codes: z.array(z.number()).optional(),
364
+ }).transform((v) => {
365
+ return remap$(v, {
366
+ "on_codes": "onCodes",
367
+ });
368
+ });
369
+
370
+ /** @internal */
371
+ export type PostV2ProxyRerankRetry$Outbound = {
372
+ count: number;
373
+ on_codes?: Array<number> | undefined;
374
+ };
375
+
376
+ /** @internal */
377
+ export const PostV2ProxyRerankRetry$outboundSchema: z.ZodType<
378
+ PostV2ProxyRerankRetry$Outbound,
379
+ z.ZodTypeDef,
380
+ PostV2ProxyRerankRetry
381
+ > = z.object({
382
+ count: z.number().default(3),
383
+ onCodes: z.array(z.number()).optional(),
384
+ }).transform((v) => {
385
+ return remap$(v, {
386
+ onCodes: "on_codes",
387
+ });
388
+ });
389
+
390
+ /**
391
+ * @internal
392
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
393
+ */
394
+ export namespace PostV2ProxyRerankRetry$ {
395
+ /** @deprecated use `PostV2ProxyRerankRetry$inboundSchema` instead. */
396
+ export const inboundSchema = PostV2ProxyRerankRetry$inboundSchema;
397
+ /** @deprecated use `PostV2ProxyRerankRetry$outboundSchema` instead. */
398
+ export const outboundSchema = PostV2ProxyRerankRetry$outboundSchema;
399
+ /** @deprecated use `PostV2ProxyRerankRetry$Outbound` instead. */
400
+ export type Outbound = PostV2ProxyRerankRetry$Outbound;
401
+ }
402
+
403
+ export function postV2ProxyRerankRetryToJSON(
404
+ postV2ProxyRerankRetry: PostV2ProxyRerankRetry,
405
+ ): string {
406
+ return JSON.stringify(
407
+ PostV2ProxyRerankRetry$outboundSchema.parse(postV2ProxyRerankRetry),
408
+ );
409
+ }
410
+
411
+ export function postV2ProxyRerankRetryFromJSON(
412
+ jsonString: string,
413
+ ): SafeParseResult<PostV2ProxyRerankRetry, SDKValidationError> {
414
+ return safeParse(
415
+ jsonString,
416
+ (x) => PostV2ProxyRerankRetry$inboundSchema.parse(JSON.parse(x)),
417
+ `Failed to parse 'PostV2ProxyRerankRetry' from JSON`,
418
+ );
419
+ }
420
+
421
+ /** @internal */
422
+ export const PostV2ProxyRerankOrq$inboundSchema: z.ZodType<
423
+ PostV2ProxyRerankOrq,
424
+ z.ZodTypeDef,
425
+ unknown
426
+ > = z.object({
427
+ name: z.string().optional(),
428
+ fallbacks: z.array(z.lazy(() => PostV2ProxyRerankFallbacks$inboundSchema))
429
+ .optional(),
430
+ cache: z.lazy(() => PostV2ProxyRerankCache$inboundSchema).optional(),
431
+ retry: z.lazy(() => PostV2ProxyRerankRetry$inboundSchema).optional(),
432
+ contact: components.PublicContact$inboundSchema.optional(),
433
+ });
434
+
435
+ /** @internal */
436
+ export type PostV2ProxyRerankOrq$Outbound = {
437
+ name?: string | undefined;
438
+ fallbacks?: Array<PostV2ProxyRerankFallbacks$Outbound> | undefined;
439
+ cache?: PostV2ProxyRerankCache$Outbound | undefined;
440
+ retry?: PostV2ProxyRerankRetry$Outbound | undefined;
441
+ contact?: components.PublicContact$Outbound | undefined;
442
+ };
443
+
444
+ /** @internal */
445
+ export const PostV2ProxyRerankOrq$outboundSchema: z.ZodType<
446
+ PostV2ProxyRerankOrq$Outbound,
447
+ z.ZodTypeDef,
448
+ PostV2ProxyRerankOrq
449
+ > = z.object({
450
+ name: z.string().optional(),
451
+ fallbacks: z.array(z.lazy(() => PostV2ProxyRerankFallbacks$outboundSchema))
452
+ .optional(),
453
+ cache: z.lazy(() => PostV2ProxyRerankCache$outboundSchema).optional(),
454
+ retry: z.lazy(() => PostV2ProxyRerankRetry$outboundSchema).optional(),
455
+ contact: components.PublicContact$outboundSchema.optional(),
456
+ });
457
+
458
+ /**
459
+ * @internal
460
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
461
+ */
462
+ export namespace PostV2ProxyRerankOrq$ {
463
+ /** @deprecated use `PostV2ProxyRerankOrq$inboundSchema` instead. */
464
+ export const inboundSchema = PostV2ProxyRerankOrq$inboundSchema;
465
+ /** @deprecated use `PostV2ProxyRerankOrq$outboundSchema` instead. */
466
+ export const outboundSchema = PostV2ProxyRerankOrq$outboundSchema;
467
+ /** @deprecated use `PostV2ProxyRerankOrq$Outbound` instead. */
468
+ export type Outbound = PostV2ProxyRerankOrq$Outbound;
469
+ }
470
+
471
+ export function postV2ProxyRerankOrqToJSON(
472
+ postV2ProxyRerankOrq: PostV2ProxyRerankOrq,
473
+ ): string {
474
+ return JSON.stringify(
475
+ PostV2ProxyRerankOrq$outboundSchema.parse(postV2ProxyRerankOrq),
476
+ );
477
+ }
478
+
479
+ export function postV2ProxyRerankOrqFromJSON(
480
+ jsonString: string,
481
+ ): SafeParseResult<PostV2ProxyRerankOrq, SDKValidationError> {
482
+ return safeParse(
483
+ jsonString,
484
+ (x) => PostV2ProxyRerankOrq$inboundSchema.parse(JSON.parse(x)),
485
+ `Failed to parse 'PostV2ProxyRerankOrq' from JSON`,
486
+ );
487
+ }
488
+
162
489
  /** @internal */
163
490
  export const PostV2ProxyRerankRequestBody$inboundSchema: z.ZodType<
164
491
  PostV2ProxyRerankRequestBody,
@@ -170,6 +497,7 @@ export const PostV2ProxyRerankRequestBody$inboundSchema: z.ZodType<
170
497
  model: z.string(),
171
498
  top_n: z.number().optional(),
172
499
  filename: z.nullable(z.string()).optional(),
500
+ orq: z.lazy(() => PostV2ProxyRerankOrq$inboundSchema).optional(),
173
501
  }).transform((v) => {
174
502
  return remap$(v, {
175
503
  "top_n": "topN",
@@ -183,6 +511,7 @@ export type PostV2ProxyRerankRequestBody$Outbound = {
183
511
  model: string;
184
512
  top_n?: number | undefined;
185
513
  filename?: string | null | undefined;
514
+ orq?: PostV2ProxyRerankOrq$Outbound | undefined;
186
515
  };
187
516
 
188
517
  /** @internal */
@@ -196,6 +525,7 @@ export const PostV2ProxyRerankRequestBody$outboundSchema: z.ZodType<
196
525
  model: z.string(),
197
526
  topN: z.number().optional(),
198
527
  filename: z.nullable(z.string()).optional(),
528
+ orq: z.lazy(() => PostV2ProxyRerankOrq$outboundSchema).optional(),
199
529
  }).transform((v) => {
200
530
  return remap$(v, {
201
531
  topN: "top_n",
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
127
127
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
128
128
  .optional(),
129
129
  updated: z.string().datetime({ offset: true }).default(
130
- "2025-09-01T07:54:04.987Z",
130
+ "2025-09-03T06:59:32.668Z",
131
131
  ).transform(v => new Date(v)),
132
132
  }).transform((v) => {
133
133
  return remap$(v, {
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
165
165
  tags: z.array(z.string()).optional(),
166
166
  metadata: z.record(z.any()).optional(),
167
167
  created: z.date().transform(v => v.toISOString()).optional(),
168
- updated: z.date().default(() => new Date("2025-09-01T07:54:04.987Z"))
168
+ updated: z.date().default(() => new Date("2025-09-03T06:59:32.668Z"))
169
169
  .transform(v => v.toISOString()),
170
170
  }).transform((v) => {
171
171
  return remap$(v, {
@@ -2957,7 +2957,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
2957
2957
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2958
2958
  .optional(),
2959
2959
  updated: z.string().datetime({ offset: true }).default(
2960
- "2025-09-01T07:54:04.987Z",
2960
+ "2025-09-03T06:59:32.668Z",
2961
2961
  ).transform(v => new Date(v)),
2962
2962
  }).transform((v) => {
2963
2963
  return remap$(v, {
@@ -3015,7 +3015,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
3015
3015
  createdById: z.string().optional(),
3016
3016
  updatedById: z.string().optional(),
3017
3017
  created: z.date().transform(v => v.toISOString()).optional(),
3018
- updated: z.date().default(() => new Date("2025-09-01T07:54:04.987Z"))
3018
+ updated: z.date().default(() => new Date("2025-09-03T06:59:32.668Z"))
3019
3019
  .transform(v => v.toISOString()),
3020
3020
  }).transform((v) => {
3021
3021
  return remap$(v, {
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
201
201
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
202
202
  .optional(),
203
203
  updated: z.string().datetime({ offset: true }).default(
204
- "2025-09-01T07:54:04.987Z",
204
+ "2025-09-03T06:59:32.668Z",
205
205
  ).transform(v => new Date(v)),
206
206
  }).transform((v) => {
207
207
  return remap$(v, {
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
241
241
  updatedById: z.string().optional(),
242
242
  metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
243
243
  created: z.date().transform(v => v.toISOString()).optional(),
244
- updated: z.date().default(() => new Date("2025-09-01T07:54:04.987Z"))
244
+ updated: z.date().default(() => new Date("2025-09-03T06:59:32.668Z"))
245
245
  .transform(v => v.toISOString()),
246
246
  }).transform((v) => {
247
247
  return remap$(v, {