@orq-ai/node 4.0.0-rc.45 → 4.0.0-rc.46
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/bin/mcp-server.js +727 -1532
- package/bin/mcp-server.js.map +56 -56
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +88 -8
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +85 -18
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +106 -106
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +242 -234
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/creatememorystore.d.ts +10 -391
- package/models/operations/creatememorystore.d.ts.map +1 -1
- package/models/operations/creatememorystore.js +5 -565
- package/models/operations/creatememorystore.js.map +1 -1
- package/models/operations/createprompt.d.ts +40 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +33 -7
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentgetconfig.d.ts +20 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +22 -8
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +20 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +16 -3
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/duplicateagent.d.ts +40 -0
- package/models/operations/duplicateagent.d.ts.map +1 -1
- package/models/operations/duplicateagent.js +36 -3
- package/models/operations/duplicateagent.js.map +1 -1
- package/models/operations/duplicatetool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +40 -0
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +36 -3
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getallmemorystores.d.ts +5 -195
- package/models/operations/getallmemorystores.d.ts.map +1 -1
- package/models/operations/getallmemorystores.js +3 -273
- package/models/operations/getallmemorystores.js.map +1 -1
- package/models/operations/getallprompts.d.ts +20 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +16 -3
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +20 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +16 -3
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +20 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +16 -2
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +40 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +37 -4
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.d.ts +5 -5
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +4 -4
- package/models/operations/listdatasources.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +20 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +16 -3
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievememorystore.d.ts +5 -196
- package/models/operations/retrievememorystore.d.ts.map +1 -1
- package/models/operations/retrievememorystore.js +3 -273
- package/models/operations/retrievememorystore.js.map +1 -1
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +40 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +45 -10
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +40 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +44 -9
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/syncmcptool.js +12 -12
- package/models/operations/updateagent.d.ts +80 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +73 -8
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatememorystore.d.ts +5 -195
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +3 -290
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +40 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +33 -7
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +166 -39
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +423 -524
- package/src/models/operations/creatememorystore.ts +14 -1094
- package/src/models/operations/createprompt.ts +60 -0
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentgetconfig.ts +30 -0
- package/src/models/operations/deployments.ts +30 -0
- package/src/models/operations/duplicateagent.ts +72 -0
- package/src/models/operations/duplicatetool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +65 -0
- package/src/models/operations/getallmemorystores.ts +7 -595
- package/src/models/operations/getallprompts.ts +30 -0
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +30 -0
- package/src/models/operations/getpromptversion.ts +30 -0
- package/src/models/operations/listagents.ts +68 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +9 -9
- package/src/models/operations/listpromptversions.ts +30 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievememorystore.ts +7 -596
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +71 -2
- package/src/models/operations/streamrunagent.ts +76 -2
- package/src/models/operations/syncmcptool.ts +12 -12
- package/src/models/operations/updateagent.ts +141 -0
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatememorystore.ts +7 -527
- package/src/models/operations/updateprompt.ts +60 -0
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -154,6 +154,18 @@ export const ModelConfigurationType = {
|
|
|
154
154
|
*/
|
|
155
155
|
export type ModelConfigurationType = ClosedEnum<typeof ModelConfigurationType>;
|
|
156
156
|
|
|
157
|
+
/**
|
|
158
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
159
|
+
*/
|
|
160
|
+
export const ThinkingLevel = {
|
|
161
|
+
Low: "low",
|
|
162
|
+
High: "high",
|
|
163
|
+
} as const;
|
|
164
|
+
/**
|
|
165
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
166
|
+
*/
|
|
167
|
+
export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
|
|
168
|
+
|
|
157
169
|
export type Thinking = {
|
|
158
170
|
/**
|
|
159
171
|
* Enables or disables the thinking mode capability
|
|
@@ -163,6 +175,10 @@ export type Thinking = {
|
|
|
163
175
|
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
164
176
|
*/
|
|
165
177
|
budgetTokens: number;
|
|
178
|
+
/**
|
|
179
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
180
|
+
*/
|
|
181
|
+
thinkingLevel?: ThinkingLevel | undefined;
|
|
166
182
|
};
|
|
167
183
|
|
|
168
184
|
/**
|
|
@@ -495,6 +511,20 @@ export type FallbackModelConfigurationType = ClosedEnum<
|
|
|
495
511
|
typeof FallbackModelConfigurationType
|
|
496
512
|
>;
|
|
497
513
|
|
|
514
|
+
/**
|
|
515
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
516
|
+
*/
|
|
517
|
+
export const FallbackModelConfigurationThinkingLevel = {
|
|
518
|
+
Low: "low",
|
|
519
|
+
High: "high",
|
|
520
|
+
} as const;
|
|
521
|
+
/**
|
|
522
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
523
|
+
*/
|
|
524
|
+
export type FallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
525
|
+
typeof FallbackModelConfigurationThinkingLevel
|
|
526
|
+
>;
|
|
527
|
+
|
|
498
528
|
export type FallbackModelConfigurationThinking = {
|
|
499
529
|
/**
|
|
500
530
|
* Enables or disables the thinking mode capability
|
|
@@ -504,6 +534,10 @@ export type FallbackModelConfigurationThinking = {
|
|
|
504
534
|
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
505
535
|
*/
|
|
506
536
|
budgetTokens: number;
|
|
537
|
+
/**
|
|
538
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
539
|
+
*/
|
|
540
|
+
thinkingLevel?: FallbackModelConfigurationThinkingLevel | undefined;
|
|
507
541
|
};
|
|
508
542
|
|
|
509
543
|
/**
|
|
@@ -1542,6 +1576,20 @@ export const CreateAgentType = {
|
|
|
1542
1576
|
*/
|
|
1543
1577
|
export type CreateAgentType = ClosedEnum<typeof CreateAgentType>;
|
|
1544
1578
|
|
|
1579
|
+
/**
|
|
1580
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1581
|
+
*/
|
|
1582
|
+
export const CreateAgentThinkingLevel = {
|
|
1583
|
+
Low: "low",
|
|
1584
|
+
High: "high",
|
|
1585
|
+
} as const;
|
|
1586
|
+
/**
|
|
1587
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1588
|
+
*/
|
|
1589
|
+
export type CreateAgentThinkingLevel = ClosedEnum<
|
|
1590
|
+
typeof CreateAgentThinkingLevel
|
|
1591
|
+
>;
|
|
1592
|
+
|
|
1545
1593
|
export type CreateAgentThinking = {
|
|
1546
1594
|
/**
|
|
1547
1595
|
* Enables or disables the thinking mode capability
|
|
@@ -1551,6 +1599,10 @@ export type CreateAgentThinking = {
|
|
|
1551
1599
|
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
1552
1600
|
*/
|
|
1553
1601
|
budgetTokens: number;
|
|
1602
|
+
/**
|
|
1603
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1604
|
+
*/
|
|
1605
|
+
thinkingLevel?: CreateAgentThinkingLevel | undefined;
|
|
1554
1606
|
};
|
|
1555
1607
|
|
|
1556
1608
|
/**
|
|
@@ -1881,6 +1933,20 @@ export type CreateAgentFallbackModelConfigurationType = ClosedEnum<
|
|
|
1881
1933
|
typeof CreateAgentFallbackModelConfigurationType
|
|
1882
1934
|
>;
|
|
1883
1935
|
|
|
1936
|
+
/**
|
|
1937
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1938
|
+
*/
|
|
1939
|
+
export const CreateAgentFallbackModelConfigurationThinkingLevel = {
|
|
1940
|
+
Low: "low",
|
|
1941
|
+
High: "high",
|
|
1942
|
+
} as const;
|
|
1943
|
+
/**
|
|
1944
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1945
|
+
*/
|
|
1946
|
+
export type CreateAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
1947
|
+
typeof CreateAgentFallbackModelConfigurationThinkingLevel
|
|
1948
|
+
>;
|
|
1949
|
+
|
|
1884
1950
|
export type CreateAgentFallbackModelConfigurationThinking = {
|
|
1885
1951
|
/**
|
|
1886
1952
|
* Enables or disables the thinking mode capability
|
|
@@ -1890,6 +1956,12 @@ export type CreateAgentFallbackModelConfigurationThinking = {
|
|
|
1890
1956
|
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
1891
1957
|
*/
|
|
1892
1958
|
budgetTokens: number;
|
|
1959
|
+
/**
|
|
1960
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1961
|
+
*/
|
|
1962
|
+
thinkingLevel?:
|
|
1963
|
+
| CreateAgentFallbackModelConfigurationThinkingLevel
|
|
1964
|
+
| undefined;
|
|
1893
1965
|
};
|
|
1894
1966
|
|
|
1895
1967
|
/**
|
|
@@ -2069,7 +2141,7 @@ export type CreateAgentFallbackModelConfiguration =
|
|
|
2069
2141
|
| CreateAgentFallbackModelConfiguration2
|
|
2070
2142
|
| string;
|
|
2071
2143
|
|
|
2072
|
-
export type
|
|
2144
|
+
export type Model = {
|
|
2073
2145
|
/**
|
|
2074
2146
|
* The database ID of the primary model
|
|
2075
2147
|
*/
|
|
@@ -2138,7 +2210,7 @@ export type CreateAgentResponseBody = {
|
|
|
2138
2210
|
*/
|
|
2139
2211
|
status: CreateAgentStatus;
|
|
2140
2212
|
settings?: CreateAgentSettings | undefined;
|
|
2141
|
-
model:
|
|
2213
|
+
model: Model;
|
|
2142
2214
|
versionHash?: string | undefined;
|
|
2143
2215
|
/**
|
|
2144
2216
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -2528,6 +2600,15 @@ export const ModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
|
2528
2600
|
typeof ModelConfigurationType
|
|
2529
2601
|
> = ModelConfigurationType$inboundSchema;
|
|
2530
2602
|
|
|
2603
|
+
/** @internal */
|
|
2604
|
+
export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
2605
|
+
typeof ThinkingLevel
|
|
2606
|
+
> = z.nativeEnum(ThinkingLevel);
|
|
2607
|
+
/** @internal */
|
|
2608
|
+
export const ThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
2609
|
+
typeof ThinkingLevel
|
|
2610
|
+
> = ThinkingLevel$inboundSchema;
|
|
2611
|
+
|
|
2531
2612
|
/** @internal */
|
|
2532
2613
|
export const Thinking$inboundSchema: z.ZodType<
|
|
2533
2614
|
Thinking,
|
|
@@ -2536,15 +2617,18 @@ export const Thinking$inboundSchema: z.ZodType<
|
|
|
2536
2617
|
> = z.object({
|
|
2537
2618
|
type: ModelConfigurationType$inboundSchema,
|
|
2538
2619
|
budget_tokens: z.number(),
|
|
2620
|
+
thinking_level: ThinkingLevel$inboundSchema.optional(),
|
|
2539
2621
|
}).transform((v) => {
|
|
2540
2622
|
return remap$(v, {
|
|
2541
2623
|
"budget_tokens": "budgetTokens",
|
|
2624
|
+
"thinking_level": "thinkingLevel",
|
|
2542
2625
|
});
|
|
2543
2626
|
});
|
|
2544
2627
|
/** @internal */
|
|
2545
2628
|
export type Thinking$Outbound = {
|
|
2546
2629
|
type: string;
|
|
2547
2630
|
budget_tokens: number;
|
|
2631
|
+
thinking_level?: string | undefined;
|
|
2548
2632
|
};
|
|
2549
2633
|
|
|
2550
2634
|
/** @internal */
|
|
@@ -2555,9 +2639,11 @@ export const Thinking$outboundSchema: z.ZodType<
|
|
|
2555
2639
|
> = z.object({
|
|
2556
2640
|
type: ModelConfigurationType$outboundSchema,
|
|
2557
2641
|
budgetTokens: z.number(),
|
|
2642
|
+
thinkingLevel: ThinkingLevel$outboundSchema.optional(),
|
|
2558
2643
|
}).transform((v) => {
|
|
2559
2644
|
return remap$(v, {
|
|
2560
2645
|
budgetTokens: "budget_tokens",
|
|
2646
|
+
thinkingLevel: "thinking_level",
|
|
2561
2647
|
});
|
|
2562
2648
|
});
|
|
2563
2649
|
|
|
@@ -3421,6 +3507,15 @@ export const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
|
3421
3507
|
typeof FallbackModelConfigurationType
|
|
3422
3508
|
> = FallbackModelConfigurationType$inboundSchema;
|
|
3423
3509
|
|
|
3510
|
+
/** @internal */
|
|
3511
|
+
export const FallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
3512
|
+
z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> = z
|
|
3513
|
+
.nativeEnum(FallbackModelConfigurationThinkingLevel);
|
|
3514
|
+
/** @internal */
|
|
3515
|
+
export const FallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
3516
|
+
z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> =
|
|
3517
|
+
FallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
3518
|
+
|
|
3424
3519
|
/** @internal */
|
|
3425
3520
|
export const FallbackModelConfigurationThinking$inboundSchema: z.ZodType<
|
|
3426
3521
|
FallbackModelConfigurationThinking,
|
|
@@ -3429,15 +3524,19 @@ export const FallbackModelConfigurationThinking$inboundSchema: z.ZodType<
|
|
|
3429
3524
|
> = z.object({
|
|
3430
3525
|
type: FallbackModelConfigurationType$inboundSchema,
|
|
3431
3526
|
budget_tokens: z.number(),
|
|
3527
|
+
thinking_level: FallbackModelConfigurationThinkingLevel$inboundSchema
|
|
3528
|
+
.optional(),
|
|
3432
3529
|
}).transform((v) => {
|
|
3433
3530
|
return remap$(v, {
|
|
3434
3531
|
"budget_tokens": "budgetTokens",
|
|
3532
|
+
"thinking_level": "thinkingLevel",
|
|
3435
3533
|
});
|
|
3436
3534
|
});
|
|
3437
3535
|
/** @internal */
|
|
3438
3536
|
export type FallbackModelConfigurationThinking$Outbound = {
|
|
3439
3537
|
type: string;
|
|
3440
3538
|
budget_tokens: number;
|
|
3539
|
+
thinking_level?: string | undefined;
|
|
3441
3540
|
};
|
|
3442
3541
|
|
|
3443
3542
|
/** @internal */
|
|
@@ -3448,9 +3547,12 @@ export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
|
|
|
3448
3547
|
> = z.object({
|
|
3449
3548
|
type: FallbackModelConfigurationType$outboundSchema,
|
|
3450
3549
|
budgetTokens: z.number(),
|
|
3550
|
+
thinkingLevel: FallbackModelConfigurationThinkingLevel$outboundSchema
|
|
3551
|
+
.optional(),
|
|
3451
3552
|
}).transform((v) => {
|
|
3452
3553
|
return remap$(v, {
|
|
3453
3554
|
budgetTokens: "budget_tokens",
|
|
3555
|
+
thinkingLevel: "thinking_level",
|
|
3454
3556
|
});
|
|
3455
3557
|
});
|
|
3456
3558
|
|
|
@@ -6133,6 +6235,15 @@ export const CreateAgentType$outboundSchema: z.ZodNativeEnum<
|
|
|
6133
6235
|
typeof CreateAgentType
|
|
6134
6236
|
> = CreateAgentType$inboundSchema;
|
|
6135
6237
|
|
|
6238
|
+
/** @internal */
|
|
6239
|
+
export const CreateAgentThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
6240
|
+
typeof CreateAgentThinkingLevel
|
|
6241
|
+
> = z.nativeEnum(CreateAgentThinkingLevel);
|
|
6242
|
+
/** @internal */
|
|
6243
|
+
export const CreateAgentThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
6244
|
+
typeof CreateAgentThinkingLevel
|
|
6245
|
+
> = CreateAgentThinkingLevel$inboundSchema;
|
|
6246
|
+
|
|
6136
6247
|
/** @internal */
|
|
6137
6248
|
export const CreateAgentThinking$inboundSchema: z.ZodType<
|
|
6138
6249
|
CreateAgentThinking,
|
|
@@ -6141,15 +6252,18 @@ export const CreateAgentThinking$inboundSchema: z.ZodType<
|
|
|
6141
6252
|
> = z.object({
|
|
6142
6253
|
type: CreateAgentType$inboundSchema,
|
|
6143
6254
|
budget_tokens: z.number(),
|
|
6255
|
+
thinking_level: CreateAgentThinkingLevel$inboundSchema.optional(),
|
|
6144
6256
|
}).transform((v) => {
|
|
6145
6257
|
return remap$(v, {
|
|
6146
6258
|
"budget_tokens": "budgetTokens",
|
|
6259
|
+
"thinking_level": "thinkingLevel",
|
|
6147
6260
|
});
|
|
6148
6261
|
});
|
|
6149
6262
|
/** @internal */
|
|
6150
6263
|
export type CreateAgentThinking$Outbound = {
|
|
6151
6264
|
type: string;
|
|
6152
6265
|
budget_tokens: number;
|
|
6266
|
+
thinking_level?: string | undefined;
|
|
6153
6267
|
};
|
|
6154
6268
|
|
|
6155
6269
|
/** @internal */
|
|
@@ -6160,9 +6274,11 @@ export const CreateAgentThinking$outboundSchema: z.ZodType<
|
|
|
6160
6274
|
> = z.object({
|
|
6161
6275
|
type: CreateAgentType$outboundSchema,
|
|
6162
6276
|
budgetTokens: z.number(),
|
|
6277
|
+
thinkingLevel: CreateAgentThinkingLevel$outboundSchema.optional(),
|
|
6163
6278
|
}).transform((v) => {
|
|
6164
6279
|
return remap$(v, {
|
|
6165
6280
|
budgetTokens: "budget_tokens",
|
|
6281
|
+
thinkingLevel: "thinking_level",
|
|
6166
6282
|
});
|
|
6167
6283
|
});
|
|
6168
6284
|
|
|
@@ -7049,6 +7165,15 @@ export const CreateAgentFallbackModelConfigurationType$outboundSchema:
|
|
|
7049
7165
|
z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationType> =
|
|
7050
7166
|
CreateAgentFallbackModelConfigurationType$inboundSchema;
|
|
7051
7167
|
|
|
7168
|
+
/** @internal */
|
|
7169
|
+
export const CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
7170
|
+
z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationThinkingLevel> = z
|
|
7171
|
+
.nativeEnum(CreateAgentFallbackModelConfigurationThinkingLevel);
|
|
7172
|
+
/** @internal */
|
|
7173
|
+
export const CreateAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
7174
|
+
z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationThinkingLevel> =
|
|
7175
|
+
CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
7176
|
+
|
|
7052
7177
|
/** @internal */
|
|
7053
7178
|
export const CreateAgentFallbackModelConfigurationThinking$inboundSchema:
|
|
7054
7179
|
z.ZodType<
|
|
@@ -7058,15 +7183,20 @@ export const CreateAgentFallbackModelConfigurationThinking$inboundSchema:
|
|
|
7058
7183
|
> = z.object({
|
|
7059
7184
|
type: CreateAgentFallbackModelConfigurationType$inboundSchema,
|
|
7060
7185
|
budget_tokens: z.number(),
|
|
7186
|
+
thinking_level:
|
|
7187
|
+
CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema
|
|
7188
|
+
.optional(),
|
|
7061
7189
|
}).transform((v) => {
|
|
7062
7190
|
return remap$(v, {
|
|
7063
7191
|
"budget_tokens": "budgetTokens",
|
|
7192
|
+
"thinking_level": "thinkingLevel",
|
|
7064
7193
|
});
|
|
7065
7194
|
});
|
|
7066
7195
|
/** @internal */
|
|
7067
7196
|
export type CreateAgentFallbackModelConfigurationThinking$Outbound = {
|
|
7068
7197
|
type: string;
|
|
7069
7198
|
budget_tokens: number;
|
|
7199
|
+
thinking_level?: string | undefined;
|
|
7070
7200
|
};
|
|
7071
7201
|
|
|
7072
7202
|
/** @internal */
|
|
@@ -7078,9 +7208,13 @@ export const CreateAgentFallbackModelConfigurationThinking$outboundSchema:
|
|
|
7078
7208
|
> = z.object({
|
|
7079
7209
|
type: CreateAgentFallbackModelConfigurationType$outboundSchema,
|
|
7080
7210
|
budgetTokens: z.number(),
|
|
7211
|
+
thinkingLevel:
|
|
7212
|
+
CreateAgentFallbackModelConfigurationThinkingLevel$outboundSchema
|
|
7213
|
+
.optional(),
|
|
7081
7214
|
}).transform((v) => {
|
|
7082
7215
|
return remap$(v, {
|
|
7083
7216
|
budgetTokens: "budget_tokens",
|
|
7217
|
+
thinkingLevel: "thinking_level",
|
|
7084
7218
|
});
|
|
7085
7219
|
});
|
|
7086
7220
|
|
|
@@ -7577,29 +7711,26 @@ export function createAgentFallbackModelConfigurationFromJSON(
|
|
|
7577
7711
|
}
|
|
7578
7712
|
|
|
7579
7713
|
/** @internal */
|
|
7580
|
-
export const
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
"integration_id": "integrationId",
|
|
7598
|
-
"fallback_models": "fallbackModels",
|
|
7714
|
+
export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
|
|
7715
|
+
.object({
|
|
7716
|
+
id: z.string(),
|
|
7717
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
7718
|
+
parameters: z.lazy(() => CreateAgentParameters$inboundSchema).optional(),
|
|
7719
|
+
retry: z.lazy(() => CreateAgentRetry$inboundSchema).optional(),
|
|
7720
|
+
fallback_models: z.nullable(
|
|
7721
|
+
z.array(z.union([
|
|
7722
|
+
z.lazy(() => CreateAgentFallbackModelConfiguration2$inboundSchema),
|
|
7723
|
+
z.string(),
|
|
7724
|
+
])),
|
|
7725
|
+
).optional(),
|
|
7726
|
+
}).transform((v) => {
|
|
7727
|
+
return remap$(v, {
|
|
7728
|
+
"integration_id": "integrationId",
|
|
7729
|
+
"fallback_models": "fallbackModels",
|
|
7730
|
+
});
|
|
7599
7731
|
});
|
|
7600
|
-
});
|
|
7601
7732
|
/** @internal */
|
|
7602
|
-
export type
|
|
7733
|
+
export type Model$Outbound = {
|
|
7603
7734
|
id: string;
|
|
7604
7735
|
integration_id?: string | null | undefined;
|
|
7605
7736
|
parameters?: CreateAgentParameters$Outbound | undefined;
|
|
@@ -7611,10 +7742,10 @@ export type CreateAgentModel$Outbound = {
|
|
|
7611
7742
|
};
|
|
7612
7743
|
|
|
7613
7744
|
/** @internal */
|
|
7614
|
-
export const
|
|
7615
|
-
|
|
7745
|
+
export const Model$outboundSchema: z.ZodType<
|
|
7746
|
+
Model$Outbound,
|
|
7616
7747
|
z.ZodTypeDef,
|
|
7617
|
-
|
|
7748
|
+
Model
|
|
7618
7749
|
> = z.object({
|
|
7619
7750
|
id: z.string(),
|
|
7620
7751
|
integrationId: z.nullable(z.string()).optional(),
|
|
@@ -7633,20 +7764,16 @@ export const CreateAgentModel$outboundSchema: z.ZodType<
|
|
|
7633
7764
|
});
|
|
7634
7765
|
});
|
|
7635
7766
|
|
|
7636
|
-
export function
|
|
7637
|
-
|
|
7638
|
-
): string {
|
|
7639
|
-
return JSON.stringify(
|
|
7640
|
-
CreateAgentModel$outboundSchema.parse(createAgentModel),
|
|
7641
|
-
);
|
|
7767
|
+
export function modelToJSON(model: Model): string {
|
|
7768
|
+
return JSON.stringify(Model$outboundSchema.parse(model));
|
|
7642
7769
|
}
|
|
7643
|
-
export function
|
|
7770
|
+
export function modelFromJSON(
|
|
7644
7771
|
jsonString: string,
|
|
7645
|
-
): SafeParseResult<
|
|
7772
|
+
): SafeParseResult<Model, SDKValidationError> {
|
|
7646
7773
|
return safeParse(
|
|
7647
7774
|
jsonString,
|
|
7648
|
-
(x) =>
|
|
7649
|
-
`Failed to parse '
|
|
7775
|
+
(x) => Model$inboundSchema.parse(JSON.parse(x)),
|
|
7776
|
+
`Failed to parse 'Model' from JSON`,
|
|
7650
7777
|
);
|
|
7651
7778
|
}
|
|
7652
7779
|
|
|
@@ -7799,7 +7926,7 @@ export const CreateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
7799
7926
|
instructions: z.string(),
|
|
7800
7927
|
status: CreateAgentStatus$inboundSchema,
|
|
7801
7928
|
settings: z.lazy(() => CreateAgentSettings$inboundSchema).optional(),
|
|
7802
|
-
model: z.lazy(() =>
|
|
7929
|
+
model: z.lazy(() => Model$inboundSchema),
|
|
7803
7930
|
version_hash: z.string().optional(),
|
|
7804
7931
|
path: z.string(),
|
|
7805
7932
|
memory_stores: z.array(z.string()),
|
|
@@ -7839,7 +7966,7 @@ export type CreateAgentResponseBody$Outbound = {
|
|
|
7839
7966
|
instructions: string;
|
|
7840
7967
|
status: string;
|
|
7841
7968
|
settings?: CreateAgentSettings$Outbound | undefined;
|
|
7842
|
-
model:
|
|
7969
|
+
model: Model$Outbound;
|
|
7843
7970
|
version_hash?: string | undefined;
|
|
7844
7971
|
path: string;
|
|
7845
7972
|
memory_stores: Array<string>;
|
|
@@ -7869,7 +7996,7 @@ export const CreateAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
7869
7996
|
instructions: z.string(),
|
|
7870
7997
|
status: CreateAgentStatus$outboundSchema,
|
|
7871
7998
|
settings: z.lazy(() => CreateAgentSettings$outboundSchema).optional(),
|
|
7872
|
-
model: z.lazy(() =>
|
|
7999
|
+
model: z.lazy(() => Model$outboundSchema),
|
|
7873
8000
|
versionHash: z.string().optional(),
|
|
7874
8001
|
path: z.string(),
|
|
7875
8002
|
memoryStores: z.array(z.string()),
|
|
@@ -516,7 +516,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
516
516
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
517
517
|
.optional(),
|
|
518
518
|
updated: z.string().datetime({ offset: true }).default(
|
|
519
|
-
"2025-11-
|
|
519
|
+
"2025-11-19T04:09:03.217Z",
|
|
520
520
|
).transform(v => new Date(v)),
|
|
521
521
|
}).transform((v) => {
|
|
522
522
|
return remap$(v, {
|
|
@@ -553,7 +553,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
553
553
|
isActive: z.boolean(),
|
|
554
554
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
555
555
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
556
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
556
|
+
updated: z.date().default(() => new Date("2025-11-19T04:09:03.217Z"))
|
|
557
557
|
.transform(v => v.toISOString()),
|
|
558
558
|
}).transform((v) => {
|
|
559
559
|
return remap$(v, {
|
|
@@ -167,7 +167,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2025-11-
|
|
170
|
+
"2025-11-19T04:09:02.872Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -207,7 +207,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
207
207
|
tags: z.array(z.string()).optional(),
|
|
208
208
|
metadata: z.record(z.any()).optional(),
|
|
209
209
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
210
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
210
|
+
updated: z.date().default(() => new Date("2025-11-19T04:09:02.872Z"))
|
|
211
211
|
.transform(v => v.toISOString()),
|
|
212
212
|
}).transform((v) => {
|
|
213
213
|
return remap$(v, {
|
|
@@ -187,7 +187,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
187
187
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
188
188
|
.optional(),
|
|
189
189
|
updated: z.string().datetime({ offset: true }).default(
|
|
190
|
-
"2025-11-
|
|
190
|
+
"2025-11-19T04:09:02.872Z",
|
|
191
191
|
).transform(v => new Date(v)),
|
|
192
192
|
}).transform((v) => {
|
|
193
193
|
return remap$(v, {
|
|
@@ -226,7 +226,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
226
226
|
createdById: z.string().optional(),
|
|
227
227
|
updatedById: z.string().optional(),
|
|
228
228
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
229
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
229
|
+
updated: z.date().default(() => new Date("2025-11-19T04:09:02.872Z"))
|
|
230
230
|
.transform(v => v.toISOString()),
|
|
231
231
|
}).transform((v) => {
|
|
232
232
|
return remap$(v, {
|
|
@@ -4929,7 +4929,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
4929
4929
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
4930
4930
|
reviewed_by_id: z.string(),
|
|
4931
4931
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
4932
|
-
"2025-11-
|
|
4932
|
+
"2025-11-19T04:09:14.335Z",
|
|
4933
4933
|
).transform(v => new Date(v)),
|
|
4934
4934
|
type: CreateDatasetItemEvaluationsDatasetsType$inboundSchema,
|
|
4935
4935
|
values: z.array(z.string()),
|
|
@@ -4964,7 +4964,7 @@ export const Evaluations3$outboundSchema: z.ZodType<
|
|
|
4964
4964
|
humanReviewId: z.string(),
|
|
4965
4965
|
source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
|
|
4966
4966
|
reviewedById: z.string(),
|
|
4967
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
4967
|
+
reviewedAt: z.date().default(() => new Date("2025-11-19T04:09:14.335Z"))
|
|
4968
4968
|
.transform(v => v.toISOString()),
|
|
4969
4969
|
type: CreateDatasetItemEvaluationsDatasetsType$outboundSchema,
|
|
4970
4970
|
values: z.array(z.string()),
|
|
@@ -5029,7 +5029,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
5029
5029
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
5030
5030
|
reviewed_by_id: z.string(),
|
|
5031
5031
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5032
|
-
"2025-11-
|
|
5032
|
+
"2025-11-19T04:09:14.334Z",
|
|
5033
5033
|
).transform(v => new Date(v)),
|
|
5034
5034
|
type: CreateDatasetItemEvaluationsType$inboundSchema,
|
|
5035
5035
|
value: z.number(),
|
|
@@ -5064,7 +5064,7 @@ export const Evaluations2$outboundSchema: z.ZodType<
|
|
|
5064
5064
|
humanReviewId: z.string(),
|
|
5065
5065
|
source: EvaluationsSource$outboundSchema.default("orq"),
|
|
5066
5066
|
reviewedById: z.string(),
|
|
5067
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5067
|
+
reviewedAt: z.date().default(() => new Date("2025-11-19T04:09:14.334Z"))
|
|
5068
5068
|
.transform(v => v.toISOString()),
|
|
5069
5069
|
type: CreateDatasetItemEvaluationsType$outboundSchema,
|
|
5070
5070
|
value: z.number(),
|
|
@@ -5127,7 +5127,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
5127
5127
|
source: Source$inboundSchema.default("orq"),
|
|
5128
5128
|
reviewed_by_id: z.string(),
|
|
5129
5129
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5130
|
-
"2025-11-
|
|
5130
|
+
"2025-11-19T04:09:14.334Z",
|
|
5131
5131
|
).transform(v => new Date(v)),
|
|
5132
5132
|
type: EvaluationsType$inboundSchema,
|
|
5133
5133
|
value: z.string(),
|
|
@@ -5162,7 +5162,7 @@ export const Evaluations1$outboundSchema: z.ZodType<
|
|
|
5162
5162
|
humanReviewId: z.string(),
|
|
5163
5163
|
source: Source$outboundSchema.default("orq"),
|
|
5164
5164
|
reviewedById: z.string(),
|
|
5165
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5165
|
+
reviewedAt: z.date().default(() => new Date("2025-11-19T04:09:14.334Z"))
|
|
5166
5166
|
.transform(v => v.toISOString()),
|
|
5167
5167
|
type: EvaluationsType$outboundSchema,
|
|
5168
5168
|
value: z.string(),
|
|
@@ -5267,7 +5267,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
5267
5267
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5268
5268
|
.optional(),
|
|
5269
5269
|
updated: z.string().datetime({ offset: true }).default(
|
|
5270
|
-
"2025-11-
|
|
5270
|
+
"2025-11-19T04:09:02.872Z",
|
|
5271
5271
|
).transform(v => new Date(v)),
|
|
5272
5272
|
}).transform((v) => {
|
|
5273
5273
|
return remap$(v, {
|
|
@@ -5345,7 +5345,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
5345
5345
|
createdById: z.string().optional(),
|
|
5346
5346
|
updatedById: z.string().optional(),
|
|
5347
5347
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5348
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
5348
|
+
updated: z.date().default(() => new Date("2025-11-19T04:09:02.872Z"))
|
|
5349
5349
|
.transform(v => v.toISOString()),
|
|
5350
5350
|
}).transform((v) => {
|
|
5351
5351
|
return remap$(v, {
|
|
@@ -608,7 +608,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
608
608
|
z.ZodTypeDef,
|
|
609
609
|
unknown
|
|
610
610
|
> = z.object({
|
|
611
|
-
_id: z.string().default("
|
|
611
|
+
_id: z.string().default("01KAD4TRQPMKBR5TECQJ9XYBQW"),
|
|
612
612
|
display_name: z.string(),
|
|
613
613
|
description: z.string().optional(),
|
|
614
614
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -651,7 +651,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
651
651
|
z.ZodTypeDef,
|
|
652
652
|
CreateDatasourceResponseBody
|
|
653
653
|
> = z.object({
|
|
654
|
-
id: z.string().default("
|
|
654
|
+
id: z.string().default("01KAD4TRQPMKBR5TECQJ9XYBQW"),
|
|
655
655
|
displayName: z.string(),
|
|
656
656
|
description: z.string().optional(),
|
|
657
657
|
status: CreateDatasourceStatus$outboundSchema,
|