@orq-ai/node 4.16.0-rc.34 → 4.16.0-rc.36

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 (124) hide show
  1. package/funcs/apiKeysCreate.d.ts +1 -1
  2. package/funcs/apiKeysCreate.js +1 -1
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/models/components/aggregatetracesrequest.d.ts +5 -0
  7. package/models/components/aggregatetracesrequest.d.ts.map +1 -1
  8. package/models/components/aggregatetracesrequest.js +1 -0
  9. package/models/components/aggregatetracesrequest.js.map +1 -1
  10. package/models/components/allprojectsscope.d.ts +8 -0
  11. package/models/components/allprojectsscope.d.ts.map +1 -0
  12. package/models/components/allprojectsscope.js +47 -0
  13. package/models/components/allprojectsscope.js.map +1 -0
  14. package/models/components/fieldinfo.d.ts +1 -0
  15. package/models/components/fieldinfo.d.ts.map +1 -1
  16. package/models/components/fieldinfo.js +1 -0
  17. package/models/components/fieldinfo.js.map +1 -1
  18. package/models/components/index.d.ts +3 -1
  19. package/models/components/index.d.ts.map +1 -1
  20. package/models/components/index.js +3 -1
  21. package/models/components/index.js.map +1 -1
  22. package/models/components/publicresponseresource.d.ts +1 -0
  23. package/models/components/publicresponseresource.d.ts.map +1 -1
  24. package/models/components/publicresponseresource.js +1 -0
  25. package/models/components/publicresponseresource.js.map +1 -1
  26. package/models/components/querytelemetryrequest.d.ts +10 -0
  27. package/models/components/querytelemetryrequest.d.ts.map +1 -1
  28. package/models/components/querytelemetryrequest.js +4 -0
  29. package/models/components/querytelemetryrequest.js.map +1 -1
  30. package/models/components/reasoningpart.js +1 -1
  31. package/models/components/requestprojectscope.d.ts +30 -0
  32. package/models/components/requestprojectscope.d.ts.map +1 -0
  33. package/models/components/requestprojectscope.js +67 -0
  34. package/models/components/requestprojectscope.js.map +1 -0
  35. package/models/components/servertoolusedetails.d.ts +1 -0
  36. package/models/components/servertoolusedetails.d.ts.map +1 -1
  37. package/models/components/servertoolusedetails.js +2 -0
  38. package/models/components/servertoolusedetails.js.map +1 -1
  39. package/models/components/singleprojectscope.d.ts +12 -0
  40. package/models/components/singleprojectscope.d.ts.map +1 -0
  41. package/models/components/{projectscope.js → singleprojectscope.js} +7 -8
  42. package/models/components/singleprojectscope.js.map +1 -0
  43. package/models/operations/apikeycreate.d.ts +5 -20
  44. package/models/operations/apikeycreate.d.ts.map +1 -1
  45. package/models/operations/apikeycreate.js +5 -12
  46. package/models/operations/apikeycreate.js.map +1 -1
  47. package/models/operations/apikeyupdate.d.ts +5 -2
  48. package/models/operations/apikeyupdate.d.ts.map +1 -1
  49. package/models/operations/apikeyupdate.js +4 -1
  50. package/models/operations/apikeyupdate.js.map +1 -1
  51. package/models/operations/createagentrequest.d.ts +8 -0
  52. package/models/operations/createagentrequest.d.ts.map +1 -1
  53. package/models/operations/createagentrequest.js +14 -3
  54. package/models/operations/createagentrequest.js.map +1 -1
  55. package/models/operations/createrouterresponse.d.ts +24 -3
  56. package/models/operations/createrouterresponse.d.ts.map +1 -1
  57. package/models/operations/createrouterresponse.js +10 -1
  58. package/models/operations/createrouterresponse.js.map +1 -1
  59. package/models/operations/createtool.js +4 -4
  60. package/models/operations/getalltools.js +4 -4
  61. package/models/operations/getv2humanevalsets.js +2 -2
  62. package/models/operations/getv2humanevalsetsid.js +2 -2
  63. package/models/operations/listagents.d.ts +8 -0
  64. package/models/operations/listagents.d.ts.map +1 -1
  65. package/models/operations/listagents.js +15 -3
  66. package/models/operations/listagents.js.map +1 -1
  67. package/models/operations/patchv2humanevalsetsid.js +2 -2
  68. package/models/operations/postv2feedbackevaluation.js +4 -4
  69. package/models/operations/postv2humanevalsets.js +2 -2
  70. package/models/operations/retrieveagentrequest.d.ts +8 -0
  71. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  72. package/models/operations/retrieveagentrequest.js +14 -3
  73. package/models/operations/retrieveagentrequest.js.map +1 -1
  74. package/models/operations/retrieveresponse.d.ts +1 -0
  75. package/models/operations/retrieveresponse.d.ts.map +1 -1
  76. package/models/operations/retrieveresponse.js +1 -0
  77. package/models/operations/retrieveresponse.js.map +1 -1
  78. package/models/operations/retrievetool.js +4 -4
  79. package/models/operations/runagent.js +1 -1
  80. package/models/operations/streamrunagent.js +1 -1
  81. package/models/operations/updateagent.d.ts +22 -0
  82. package/models/operations/updateagent.d.ts.map +1 -1
  83. package/models/operations/updateagent.js +27 -3
  84. package/models/operations/updateagent.js.map +1 -1
  85. package/models/operations/updatetool.js +4 -4
  86. package/package.json +7 -7
  87. package/sdk/apikeys.d.ts +1 -1
  88. package/sdk/apikeys.js +1 -1
  89. package/src/funcs/apiKeysCreate.ts +1 -1
  90. package/src/lib/config.ts +2 -2
  91. package/src/models/components/aggregatetracesrequest.ts +6 -0
  92. package/src/models/components/allprojectsscope.ts +25 -0
  93. package/src/models/components/fieldinfo.ts +2 -0
  94. package/src/models/components/index.ts +3 -1
  95. package/src/models/components/publicresponseresource.ts +1 -0
  96. package/src/models/components/querytelemetryrequest.ts +14 -0
  97. package/src/models/components/reasoningpart.ts +1 -1
  98. package/src/models/components/requestprojectscope.ts +71 -0
  99. package/src/models/components/servertoolusedetails.ts +3 -0
  100. package/src/models/components/singleprojectscope.ts +36 -0
  101. package/src/models/operations/apikeycreate.ts +6 -26
  102. package/src/models/operations/apikeyupdate.ts +6 -3
  103. package/src/models/operations/createagentrequest.ts +30 -0
  104. package/src/models/operations/createrouterresponse.ts +30 -3
  105. package/src/models/operations/createtool.ts +4 -4
  106. package/src/models/operations/getalltools.ts +4 -4
  107. package/src/models/operations/getv2humanevalsets.ts +2 -2
  108. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  109. package/src/models/operations/listagents.ts +29 -0
  110. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  111. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  112. package/src/models/operations/postv2humanevalsets.ts +2 -2
  113. package/src/models/operations/retrieveagentrequest.ts +30 -0
  114. package/src/models/operations/retrieveresponse.ts +1 -0
  115. package/src/models/operations/retrievetool.ts +4 -4
  116. package/src/models/operations/runagent.ts +1 -1
  117. package/src/models/operations/streamrunagent.ts +1 -1
  118. package/src/models/operations/updateagent.ts +59 -0
  119. package/src/models/operations/updatetool.ts +4 -4
  120. package/src/sdk/apikeys.ts +1 -1
  121. package/models/components/projectscope.d.ts +0 -14
  122. package/models/components/projectscope.d.ts.map +0 -1
  123. package/models/components/projectscope.js.map +0 -1
  124. package/src/models/components/projectscope.ts +0 -35
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import {
9
+ AllProjectsScope,
10
+ AllProjectsScope$Outbound,
11
+ AllProjectsScope$outboundSchema,
12
+ } from "./allprojectsscope.js";
13
+ import {
14
+ SingleProjectScope,
15
+ SingleProjectScope$Outbound,
16
+ SingleProjectScope$outboundSchema,
17
+ } from "./singleprojectscope.js";
18
+
19
+ export const RequestProjectScopeMode = {
20
+ All: "all",
21
+ Single: "single",
22
+ ProjectScopeModeAll: "PROJECT_SCOPE_MODE_ALL",
23
+ ProjectScopeModeSingle: "PROJECT_SCOPE_MODE_SINGLE",
24
+ } as const;
25
+ export type RequestProjectScopeMode = ClosedEnum<
26
+ typeof RequestProjectScopeMode
27
+ >;
28
+
29
+ export type RequestProjectScope = {
30
+ all?: AllProjectsScope | undefined;
31
+ mode?: RequestProjectScopeMode | undefined;
32
+ projectId?: string | undefined;
33
+ single?: SingleProjectScope | undefined;
34
+ };
35
+
36
+ /** @internal */
37
+ export const RequestProjectScopeMode$outboundSchema: z.ZodNativeEnum<
38
+ typeof RequestProjectScopeMode
39
+ > = z.nativeEnum(RequestProjectScopeMode);
40
+
41
+ /** @internal */
42
+ export type RequestProjectScope$Outbound = {
43
+ all?: AllProjectsScope$Outbound | undefined;
44
+ mode?: string | undefined;
45
+ project_id?: string | undefined;
46
+ single?: SingleProjectScope$Outbound | undefined;
47
+ };
48
+
49
+ /** @internal */
50
+ export const RequestProjectScope$outboundSchema: z.ZodType<
51
+ RequestProjectScope$Outbound,
52
+ z.ZodTypeDef,
53
+ RequestProjectScope
54
+ > = z.object({
55
+ all: AllProjectsScope$outboundSchema.optional(),
56
+ mode: RequestProjectScopeMode$outboundSchema.optional(),
57
+ projectId: z.string().optional(),
58
+ single: SingleProjectScope$outboundSchema.optional(),
59
+ }).transform((v) => {
60
+ return remap$(v, {
61
+ projectId: "project_id",
62
+ });
63
+ });
64
+
65
+ export function requestProjectScopeToJSON(
66
+ requestProjectScope: RequestProjectScope,
67
+ ): string {
68
+ return JSON.stringify(
69
+ RequestProjectScope$outboundSchema.parse(requestProjectScope),
70
+ );
71
+ }
@@ -17,6 +17,7 @@ export type ServerToolUseDetails = {
17
17
  searchModelsRequests?: number | undefined;
18
18
  shellCommands?: number | undefined;
19
19
  subagentRequests?: number | undefined;
20
+ toolSearchRequests?: number | undefined;
20
21
  webFetchRequests?: number | undefined;
21
22
  webSearchRequests?: number | undefined;
22
23
  };
@@ -35,6 +36,7 @@ export const ServerToolUseDetails$inboundSchema: z.ZodType<
35
36
  search_models_requests: z.number().int().optional(),
36
37
  shell_commands: z.number().int().optional(),
37
38
  subagent_requests: z.number().int().optional(),
39
+ tool_search_requests: z.number().int().optional(),
38
40
  web_fetch_requests: z.number().int().optional(),
39
41
  web_search_requests: z.number().int().optional(),
40
42
  }).transform((v) => {
@@ -47,6 +49,7 @@ export const ServerToolUseDetails$inboundSchema: z.ZodType<
47
49
  "search_models_requests": "searchModelsRequests",
48
50
  "shell_commands": "shellCommands",
49
51
  "subagent_requests": "subagentRequests",
52
+ "tool_search_requests": "toolSearchRequests",
50
53
  "web_fetch_requests": "webFetchRequests",
51
54
  "web_search_requests": "webSearchRequests",
52
55
  });
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type SingleProjectScope = {
9
+ projectId: string;
10
+ };
11
+
12
+ /** @internal */
13
+ export type SingleProjectScope$Outbound = {
14
+ project_id: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const SingleProjectScope$outboundSchema: z.ZodType<
19
+ SingleProjectScope$Outbound,
20
+ z.ZodTypeDef,
21
+ SingleProjectScope
22
+ > = z.object({
23
+ projectId: z.string(),
24
+ }).transform((v) => {
25
+ return remap$(v, {
26
+ projectId: "project_id",
27
+ });
28
+ });
29
+
30
+ export function singleProjectScopeToJSON(
31
+ singleProjectScope: SingleProjectScope,
32
+ ): string {
33
+ return JSON.stringify(
34
+ SingleProjectScope$outboundSchema.parse(singleProjectScope),
35
+ );
36
+ }
@@ -14,24 +14,15 @@ export const PermissionMode = {
14
14
  All: "all",
15
15
  Restricted: "restricted",
16
16
  ReadOnly: "read_only",
17
+ PermissionModeAll: "PERMISSION_MODE_ALL",
18
+ PermissionModeRestricted: "PERMISSION_MODE_RESTRICTED",
19
+ PermissionModeReadOnly: "PERMISSION_MODE_READ_ONLY",
17
20
  } as const;
18
21
  /**
19
22
  * Permission preset; restricted keys hold only the domains granted in access.
20
23
  */
21
24
  export type PermissionMode = ClosedEnum<typeof PermissionMode>;
22
25
 
23
- /**
24
- * Origin of the key; router keys are minted for the AI router.
25
- */
26
- export const ApiKeyCreateSource = {
27
- Workspace: "workspace",
28
- Router: "router",
29
- } as const;
30
- /**
31
- * Origin of the key; router keys are minted for the AI router.
32
- */
33
- export type ApiKeyCreateSource = ClosedEnum<typeof ApiKeyCreateSource>;
34
-
35
26
  export type ApiKeyCreateRequestBody = {
36
27
  /**
37
28
  * Per-domain access level (none, read or write) for restricted keys; domain ids come from the capability catalog.
@@ -51,15 +42,11 @@ export type ApiKeyCreateRequestBody = {
51
42
  * Permission preset; restricted keys hold only the domains granted in access.
52
43
  */
53
44
  permissionMode?: PermissionMode | undefined;
54
- projectScope?: components.ProjectScope | undefined;
45
+ projectScope?: components.RequestProjectScope | undefined;
55
46
  /**
56
47
  * Legacy single-project binding; prefer project_scope.
57
48
  */
58
49
  projects?: Array<string> | null | undefined;
59
- /**
60
- * Origin of the key; router keys are minted for the AI router.
61
- */
62
- source?: ApiKeyCreateSource | undefined;
63
50
  };
64
51
 
65
52
  /** @internal */
@@ -67,11 +54,6 @@ export const PermissionMode$outboundSchema: z.ZodNativeEnum<
67
54
  typeof PermissionMode
68
55
  > = z.nativeEnum(PermissionMode);
69
56
 
70
- /** @internal */
71
- export const ApiKeyCreateSource$outboundSchema: z.ZodNativeEnum<
72
- typeof ApiKeyCreateSource
73
- > = z.nativeEnum(ApiKeyCreateSource);
74
-
75
57
  /** @internal */
76
58
  export type ApiKeyCreateRequestBody$Outbound = {
77
59
  access?: { [k: string]: string } | undefined;
@@ -80,9 +62,8 @@ export type ApiKeyCreateRequestBody$Outbound = {
80
62
  name: string;
81
63
  owner?: components.Owner$Outbound | undefined;
82
64
  permission_mode?: string | undefined;
83
- project_scope?: components.ProjectScope$Outbound | undefined;
65
+ project_scope?: components.RequestProjectScope$Outbound | undefined;
84
66
  projects?: Array<string> | null | undefined;
85
- source?: string | undefined;
86
67
  };
87
68
 
88
69
  /** @internal */
@@ -97,9 +78,8 @@ export const ApiKeyCreateRequestBody$outboundSchema: z.ZodType<
97
78
  name: z.string(),
98
79
  owner: components.Owner$outboundSchema.optional(),
99
80
  permissionMode: PermissionMode$outboundSchema.optional(),
100
- projectScope: components.ProjectScope$outboundSchema.optional(),
81
+ projectScope: components.RequestProjectScope$outboundSchema.optional(),
101
82
  projects: z.nullable(z.array(z.string())).optional(),
102
- source: ApiKeyCreateSource$outboundSchema.optional(),
103
83
  }).transform((v) => {
104
84
  return remap$(v, {
105
85
  permissionMode: "permission_mode",
@@ -14,6 +14,9 @@ export const ApiKeyUpdatePermissionMode = {
14
14
  All: "all",
15
15
  Restricted: "restricted",
16
16
  ReadOnly: "read_only",
17
+ PermissionModeAll: "PERMISSION_MODE_ALL",
18
+ PermissionModeRestricted: "PERMISSION_MODE_RESTRICTED",
19
+ PermissionModeReadOnly: "PERMISSION_MODE_READ_ONLY",
17
20
  } as const;
18
21
  /**
19
22
  * Permission preset; a restricted key must keep at least one granted domain.
@@ -53,7 +56,7 @@ export type ApiKeyUpdateRequestBody = {
53
56
  * Permission preset; a restricted key must keep at least one granted domain.
54
57
  */
55
58
  permissionMode?: ApiKeyUpdatePermissionMode | undefined;
56
- projectScope?: components.ProjectScope | undefined;
59
+ projectScope?: components.RequestProjectScope | undefined;
57
60
  /**
58
61
  * Lifecycle status; revoked is terminal.
59
62
  */
@@ -84,7 +87,7 @@ export type ApiKeyUpdateRequestBody$Outbound = {
84
87
  constraints?: components.Constraints$Outbound | undefined;
85
88
  name?: string | undefined;
86
89
  permission_mode?: string | undefined;
87
- project_scope?: components.ProjectScope$Outbound | undefined;
90
+ project_scope?: components.RequestProjectScope$Outbound | undefined;
88
91
  status?: string | undefined;
89
92
  };
90
93
 
@@ -99,7 +102,7 @@ export const ApiKeyUpdateRequestBody$outboundSchema: z.ZodType<
99
102
  constraints: components.Constraints$outboundSchema.optional(),
100
103
  name: z.string().optional(),
101
104
  permissionMode: ApiKeyUpdatePermissionMode$outboundSchema.optional(),
102
- projectScope: components.ProjectScope$outboundSchema.optional(),
105
+ projectScope: components.RequestProjectScope$outboundSchema.optional(),
103
106
  status: Status$outboundSchema.optional(),
104
107
  }).transform((v) => {
105
108
  return remap$(v, {
@@ -1211,6 +1211,11 @@ export type CreateAgentRequestTeamOfAgents = {
1211
1211
  role?: string | undefined;
1212
1212
  };
1213
1213
 
1214
+ export type CreateAgentRequestAgentPlugins = {
1215
+ id: string;
1216
+ version: string;
1217
+ };
1218
+
1214
1219
  export type Metrics = {
1215
1220
  totalCost: number;
1216
1221
  };
@@ -2472,6 +2477,7 @@ export type CreateAgentRequestResponseBody = {
2472
2477
  * List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
2473
2478
  */
2474
2479
  skills?: Array<string> | undefined;
2480
+ agentPlugins?: Array<CreateAgentRequestAgentPlugins> | undefined;
2475
2481
  metrics?: Metrics | undefined;
2476
2482
  /**
2477
2483
  * Extracted variables from agent instructions
@@ -4178,6 +4184,26 @@ export function createAgentRequestTeamOfAgentsFromJSON(
4178
4184
  );
4179
4185
  }
4180
4186
 
4187
+ /** @internal */
4188
+ export const CreateAgentRequestAgentPlugins$inboundSchema: z.ZodType<
4189
+ CreateAgentRequestAgentPlugins,
4190
+ z.ZodTypeDef,
4191
+ unknown
4192
+ > = z.object({
4193
+ id: z.string(),
4194
+ version: z.string(),
4195
+ });
4196
+
4197
+ export function createAgentRequestAgentPluginsFromJSON(
4198
+ jsonString: string,
4199
+ ): SafeParseResult<CreateAgentRequestAgentPlugins, SDKValidationError> {
4200
+ return safeParse(
4201
+ jsonString,
4202
+ (x) => CreateAgentRequestAgentPlugins$inboundSchema.parse(JSON.parse(x)),
4203
+ `Failed to parse 'CreateAgentRequestAgentPlugins' from JSON`,
4204
+ );
4205
+ }
4206
+
4181
4207
  /** @internal */
4182
4208
  export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
4183
4209
  z.object({
@@ -5871,6 +5897,9 @@ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
5871
5897
  z.lazy(() => CreateAgentRequestTeamOfAgents$inboundSchema),
5872
5898
  ).optional(),
5873
5899
  skills: z.array(z.string()).optional(),
5900
+ agent_plugins: z.array(
5901
+ z.lazy(() => CreateAgentRequestAgentPlugins$inboundSchema),
5902
+ ).optional(),
5874
5903
  metrics: z.lazy(() => Metrics$inboundSchema).optional(),
5875
5904
  variables: z.record(z.any()).optional(),
5876
5905
  knowledge_bases: z.array(
@@ -5894,6 +5923,7 @@ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
5894
5923
  "updated_by_id": "updatedById",
5895
5924
  "memory_stores": "memoryStores",
5896
5925
  "team_of_agents": "teamOfAgents",
5926
+ "agent_plugins": "agentPlugins",
5897
5927
  "knowledge_bases": "knowledgeBases",
5898
5928
  "system_prompt": "systemPrompt",
5899
5929
  });
@@ -475,18 +475,19 @@ export type CreateRouterResponseInput =
475
475
  | Array<CreateRouterResponseInput2>;
476
476
 
477
477
  /**
478
- * Processing mode for the request. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
478
+ * Processing mode for the request. Ultrafast is available for GPT-6 Astra on US/global processing. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
479
479
  */
480
480
  export const ServiceTier = {
481
481
  Auto: "auto",
482
482
  Default: "default",
483
483
  Flex: "flex",
484
484
  Fast: "fast",
485
+ Ultrafast: "ultrafast",
485
486
  Scale: "scale",
486
487
  Priority: "priority",
487
488
  } as const;
488
489
  /**
489
- * Processing mode for the request. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
490
+ * Processing mode for the request. Ultrafast is available for GPT-6 Astra on US/global processing. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
490
491
  */
491
492
  export type ServiceTier = ClosedEnum<typeof ServiceTier>;
492
493
 
@@ -684,6 +685,7 @@ export const CreateRouterResponseToolsResponsesRequestType = {
684
685
  OrqWebFetch: "orq:web_fetch",
685
686
  OrqDatetime: "orq:datetime",
686
687
  OrqSearchModels: "orq:search_models",
688
+ OrqToolSearch: "orq:tool_search",
687
689
  OrqImageGeneration: "orq:image_generation",
688
690
  OrqApplyPatch: "orq:apply_patch",
689
691
  OrqFusion: "orq:fusion",
@@ -713,6 +715,10 @@ export type OrqAiTool = {
713
715
  * Files to stage in /workspace for orq:code_interpreter. Maximum 10 files.
714
716
  */
715
717
  files?: Array<Files> | undefined;
718
+ /**
719
+ * Maximum results per call for orq:search_models (1-20, default 5) and orq:tool_search (1-50, default 5).
720
+ */
721
+ maxResults?: number | undefined;
716
722
  /**
717
723
  * Network access intent for orq:code_interpreter. Stored and validated today; runtime enforcement by the sandbox egress layer is rolling out and until then sandbox executions retain default public internet egress.
718
724
  */
@@ -814,6 +820,10 @@ export type ToolsFunction = {
814
820
  */
815
821
  async?: boolean | undefined;
816
822
  cacheControl?: ToolsCacheControl | undefined;
823
+ /**
824
+ * Hide this tool from the model until an orq:tool_search call reveals it. Requires an orq:tool_search tool in the same request.
825
+ */
826
+ deferLoading?: boolean | undefined;
817
827
  /**
818
828
  * A description of what the function does.
819
829
  */
@@ -846,6 +856,7 @@ export type CreateRouterResponseTools =
846
856
  | (OrqAiTool & { type: "orq:web_fetch" })
847
857
  | (OrqAiTool & { type: "orq:datetime" })
848
858
  | (OrqAiTool & { type: "orq:search_models" })
859
+ | (OrqAiTool & { type: "orq:tool_search" })
849
860
  | (OrqAiTool & { type: "orq:image_generation" })
850
861
  | (OrqAiTool & { type: "orq:apply_patch" })
851
862
  | (OrqAiTool & { type: "orq:fusion" })
@@ -945,7 +956,7 @@ export type CreateRouterResponseRequestBody = {
945
956
  safetyIdentifier?: string | undefined;
946
957
  security?: components.SecurityConfig | undefined;
947
958
  /**
948
- * Processing mode for the request. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
959
+ * Processing mode for the request. Ultrafast is available for GPT-6 Astra on US/global processing. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
949
960
  */
950
961
  serviceTier?: ServiceTier | undefined;
951
962
  /**
@@ -993,6 +1004,7 @@ export type CreateRouterResponseRequestBody = {
993
1004
  | (OrqAiTool & { type: "orq:web_fetch" })
994
1005
  | (OrqAiTool & { type: "orq:datetime" })
995
1006
  | (OrqAiTool & { type: "orq:search_models" })
1007
+ | (OrqAiTool & { type: "orq:tool_search" })
996
1008
  | (OrqAiTool & { type: "orq:image_generation" })
997
1009
  | (OrqAiTool & { type: "orq:apply_patch" })
998
1010
  | (OrqAiTool & { type: "orq:fusion" })
@@ -1042,6 +1054,7 @@ export const CreateRouterResponseServiceTier = {
1042
1054
  Default: "default",
1043
1055
  Flex: "flex",
1044
1056
  Fast: "fast",
1057
+ Ultrafast: "ultrafast",
1045
1058
  Scale: "scale",
1046
1059
  Priority: "priority",
1047
1060
  } as const;
@@ -1848,6 +1861,7 @@ export const CreateRouterResponseToolsResponsesRequestType$outboundSchema:
1848
1861
  /** @internal */
1849
1862
  export type OrqAiTool$Outbound = {
1850
1863
  files?: Array<Files$Outbound> | undefined;
1864
+ max_results?: number | undefined;
1851
1865
  network?: Network$Outbound | undefined;
1852
1866
  timezone?: string | undefined;
1853
1867
  tool_id?: string | undefined;
@@ -1861,12 +1875,14 @@ export const OrqAiTool$outboundSchema: z.ZodType<
1861
1875
  OrqAiTool
1862
1876
  > = z.object({
1863
1877
  files: z.array(z.lazy(() => Files$outboundSchema)).optional(),
1878
+ maxResults: z.number().int().optional(),
1864
1879
  network: z.lazy(() => Network$outboundSchema).optional(),
1865
1880
  timezone: z.string().optional(),
1866
1881
  toolId: z.string().optional(),
1867
1882
  type: CreateRouterResponseToolsResponsesRequestType$outboundSchema,
1868
1883
  }).transform((v) => {
1869
1884
  return remap$(v, {
1885
+ maxResults: "max_results",
1870
1886
  toolId: "tool_id",
1871
1887
  });
1872
1888
  });
@@ -1935,6 +1951,7 @@ export function toolsCacheControlToJSON(
1935
1951
  export type ToolsFunction$Outbound = {
1936
1952
  async?: boolean | undefined;
1937
1953
  cache_control?: ToolsCacheControl$Outbound | undefined;
1954
+ defer_loading?: boolean | undefined;
1938
1955
  description?: string | undefined;
1939
1956
  name: string;
1940
1957
  parameters?: { [k: string]: any } | undefined;
@@ -1950,6 +1967,7 @@ export const ToolsFunction$outboundSchema: z.ZodType<
1950
1967
  > = z.object({
1951
1968
  async: z.boolean().optional(),
1952
1969
  cacheControl: z.lazy(() => ToolsCacheControl$outboundSchema).optional(),
1970
+ deferLoading: z.boolean().optional(),
1953
1971
  description: z.string().optional(),
1954
1972
  name: z.string(),
1955
1973
  parameters: z.record(z.any()).optional(),
@@ -1958,6 +1976,7 @@ export const ToolsFunction$outboundSchema: z.ZodType<
1958
1976
  }).transform((v) => {
1959
1977
  return remap$(v, {
1960
1978
  cacheControl: "cache_control",
1979
+ deferLoading: "defer_loading",
1961
1980
  });
1962
1981
  });
1963
1982
 
@@ -1976,6 +1995,7 @@ export type CreateRouterResponseTools$Outbound =
1976
1995
  | (OrqAiTool$Outbound & { type: "orq:web_fetch" })
1977
1996
  | (OrqAiTool$Outbound & { type: "orq:datetime" })
1978
1997
  | (OrqAiTool$Outbound & { type: "orq:search_models" })
1998
+ | (OrqAiTool$Outbound & { type: "orq:tool_search" })
1979
1999
  | (OrqAiTool$Outbound & { type: "orq:image_generation" })
1980
2000
  | (OrqAiTool$Outbound & { type: "orq:apply_patch" })
1981
2001
  | (OrqAiTool$Outbound & { type: "orq:fusion" })
@@ -2018,6 +2038,9 @@ export const CreateRouterResponseTools$outboundSchema: z.ZodType<
2018
2038
  z.lazy(() => OrqAiTool$outboundSchema).and(
2019
2039
  z.object({ type: z.literal("orq:search_models") }),
2020
2040
  ),
2041
+ z.lazy(() => OrqAiTool$outboundSchema).and(
2042
+ z.object({ type: z.literal("orq:tool_search") }),
2043
+ ),
2021
2044
  z.lazy(() => OrqAiTool$outboundSchema).and(
2022
2045
  z.object({ type: z.literal("orq:image_generation") }),
2023
2046
  ),
@@ -2122,6 +2145,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
2122
2145
  | (OrqAiTool$Outbound & { type: "orq:web_fetch" })
2123
2146
  | (OrqAiTool$Outbound & { type: "orq:datetime" })
2124
2147
  | (OrqAiTool$Outbound & { type: "orq:search_models" })
2148
+ | (OrqAiTool$Outbound & { type: "orq:tool_search" })
2125
2149
  | (OrqAiTool$Outbound & { type: "orq:image_generation" })
2126
2150
  | (OrqAiTool$Outbound & { type: "orq:apply_patch" })
2127
2151
  | (OrqAiTool$Outbound & { type: "orq:fusion" })
@@ -2222,6 +2246,9 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
2222
2246
  z.lazy(() => OrqAiTool$outboundSchema).and(
2223
2247
  z.object({ type: z.literal("orq:search_models") }),
2224
2248
  ),
2249
+ z.lazy(() => OrqAiTool$outboundSchema).and(
2250
+ z.object({ type: z.literal("orq:tool_search") }),
2251
+ ),
2225
2252
  z.lazy(() => OrqAiTool$outboundSchema).and(
2226
2253
  z.object({ type: z.literal("orq:image_generation") }),
2227
2254
  ),
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1575
1575
  z.ZodTypeDef,
1576
1576
  unknown
1577
1577
  > = z.object({
1578
- _id: z.string().default("tool_01M3SCSZJTEEJESCKB4DJM64EC"),
1578
+ _id: z.string().default("tool_01M3V2CREKYZK1VFSKEBQH29M8"),
1579
1579
  path: z.string(),
1580
1580
  key: z.string(),
1581
1581
  display_name: z.string().optional(),
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
1761
1761
  z.ZodTypeDef,
1762
1762
  unknown
1763
1763
  > = z.object({
1764
- _id: z.string().default("tool_01M3SCSZJSVP1FD1V08T64PQAR"),
1764
+ _id: z.string().default("tool_01M3V2CREJPF7WRQEWDPSC323J"),
1765
1765
  path: z.string(),
1766
1766
  key: z.string(),
1767
1767
  display_name: z.string().optional(),
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1854
1854
  z.ZodTypeDef,
1855
1855
  unknown
1856
1856
  > = z.object({
1857
- _id: z.string().default("tool_01M3SCSZJRDT6DB1RRNCMKDZRP"),
1857
+ _id: z.string().default("tool_01M3V2CREJQ81C8GV7HEF5SZXB"),
1858
1858
  path: z.string(),
1859
1859
  key: z.string(),
1860
1860
  display_name: z.string().optional(),
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
1955
1955
  z.ZodTypeDef,
1956
1956
  unknown
1957
1957
  > = z.object({
1958
- _id: z.string().default("tool_01M3SCSZJQ13T1RQXKD36M2BN8"),
1958
+ _id: z.string().default("tool_01M3V2CREH2R3Q0WPZPW1MTEB6"),
1959
1959
  path: z.string(),
1960
1960
  key: z.string(),
1961
1961
  display_name: z.string().optional(),
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
639
639
  z.ZodTypeDef,
640
640
  unknown
641
641
  > = z.object({
642
- _id: z.string().default("tool_01M3SCSZJK5NM6Y0N38YYV34X3"),
642
+ _id: z.string().default("tool_01M3V2CREE516RFYBMGZBJW65C"),
643
643
  path: z.string(),
644
644
  key: z.string(),
645
645
  display_name: z.string().optional(),
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
821
821
  z.ZodTypeDef,
822
822
  unknown
823
823
  > = z.object({
824
- _id: z.string().default("tool_01M3SCSZJHE2Q9CEEKF1MF26JK"),
824
+ _id: z.string().default("tool_01M3V2CRED83GDP3B0QCKFJAE4"),
825
825
  path: z.string(),
826
826
  key: z.string(),
827
827
  display_name: z.string().optional(),
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
914
914
  z.ZodTypeDef,
915
915
  unknown
916
916
  > = z.object({
917
- _id: z.string().default("tool_01M3SCSZJHQTG10F6895GQY4XF"),
917
+ _id: z.string().default("tool_01M3V2CREDTQ04MD3KZ8BWRHXW"),
918
918
  path: z.string(),
919
919
  key: z.string(),
920
920
  display_name: z.string().optional(),
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1012
1012
  z.ZodTypeDef,
1013
1013
  unknown
1014
1014
  > = z.object({
1015
- _id: z.string().default("tool_01M3SCSZJGX0C5XP7KH9Y89545"),
1015
+ _id: z.string().default("tool_01M3V2CRECV4YKEE2V5ZH3AG4V"),
1016
1016
  path: z.string(),
1017
1017
  key: z.string(),
1018
1018
  display_name: z.string().optional(),
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
140
140
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
141
141
  .optional(),
142
142
  updated: z.string().datetime({ offset: true }).default(
143
- "2026-09-30T14:51:46.790Z",
143
+ "2026-10-01T06:28:18.535Z",
144
144
  ).transform(v => new Date(v)),
145
145
  filter_type: z.literal("name"),
146
146
  filter_value: z.string(),
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
185
185
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
186
186
  .optional(),
187
187
  updated: z.string().datetime({ offset: true }).default(
188
- "2026-09-30T14:51:46.790Z",
188
+ "2026-10-01T06:28:18.535Z",
189
189
  ).transform(v => new Date(v)),
190
190
  filter_type: z.literal("span_type"),
191
191
  filter_values: z.array(z.string()),
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
141
141
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
142
142
  .optional(),
143
143
  updated: z.string().datetime({ offset: true }).default(
144
- "2026-09-30T14:51:46.790Z",
144
+ "2026-10-01T06:28:18.535Z",
145
145
  ).transform(v => new Date(v)),
146
146
  filter_type: z.literal("name"),
147
147
  filter_value: z.string(),
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
186
186
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
187
  .optional(),
188
188
  updated: z.string().datetime({ offset: true }).default(
189
- "2026-09-30T14:51:46.790Z",
189
+ "2026-10-01T06:28:18.535Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -70,6 +70,11 @@ export type ListAgentsTeamOfAgents = {
70
70
  role?: string | undefined;
71
71
  };
72
72
 
73
+ export type ListAgentsAgentPlugins = {
74
+ id: string;
75
+ version: string;
76
+ };
77
+
73
78
  export type ListAgentsMetrics = {
74
79
  totalCost: number;
75
80
  };
@@ -1293,6 +1298,7 @@ export type ListAgentsData = {
1293
1298
  * List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
1294
1299
  */
1295
1300
  skills?: Array<string> | undefined;
1301
+ agentPlugins?: Array<ListAgentsAgentPlugins> | undefined;
1296
1302
  metrics?: ListAgentsMetrics | undefined;
1297
1303
  /**
1298
1304
  * Extracted variables from agent instructions
@@ -1393,6 +1399,26 @@ export function listAgentsTeamOfAgentsFromJSON(
1393
1399
  );
1394
1400
  }
1395
1401
 
1402
+ /** @internal */
1403
+ export const ListAgentsAgentPlugins$inboundSchema: z.ZodType<
1404
+ ListAgentsAgentPlugins,
1405
+ z.ZodTypeDef,
1406
+ unknown
1407
+ > = z.object({
1408
+ id: z.string(),
1409
+ version: z.string(),
1410
+ });
1411
+
1412
+ export function listAgentsAgentPluginsFromJSON(
1413
+ jsonString: string,
1414
+ ): SafeParseResult<ListAgentsAgentPlugins, SDKValidationError> {
1415
+ return safeParse(
1416
+ jsonString,
1417
+ (x) => ListAgentsAgentPlugins$inboundSchema.parse(JSON.parse(x)),
1418
+ `Failed to parse 'ListAgentsAgentPlugins' from JSON`,
1419
+ );
1420
+ }
1421
+
1396
1422
  /** @internal */
1397
1423
  export const ListAgentsMetrics$inboundSchema: z.ZodType<
1398
1424
  ListAgentsMetrics,
@@ -2979,6 +3005,8 @@ export const ListAgentsData$inboundSchema: z.ZodType<
2979
3005
  team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema))
2980
3006
  .optional(),
2981
3007
  skills: z.array(z.string()).optional(),
3008
+ agent_plugins: z.array(z.lazy(() => ListAgentsAgentPlugins$inboundSchema))
3009
+ .optional(),
2982
3010
  metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
2983
3011
  variables: z.record(z.any()).optional(),
2984
3012
  knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
@@ -3000,6 +3028,7 @@ export const ListAgentsData$inboundSchema: z.ZodType<
3000
3028
  "updated_by_id": "updatedById",
3001
3029
  "memory_stores": "memoryStores",
3002
3030
  "team_of_agents": "teamOfAgents",
3031
+ "agent_plugins": "agentPlugins",
3003
3032
  "knowledge_bases": "knowledgeBases",
3004
3033
  "system_prompt": "systemPrompt",
3005
3034
  });
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
318
318
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
319
  .optional(),
320
320
  updated: z.string().datetime({ offset: true }).default(
321
- "2026-09-30T14:51:46.790Z",
321
+ "2026-10-01T06:28:18.535Z",
322
322
  ).transform(v => new Date(v)),
323
323
  filter_type: z.literal("name"),
324
324
  filter_value: z.string(),
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
364
364
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
365
  .optional(),
366
366
  updated: z.string().datetime({ offset: true }).default(
367
- "2026-09-30T14:51:46.790Z",
367
+ "2026-10-01T06:28:18.535Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),