@orq-ai/node 4.16.0-rc.13 → 4.16.0-rc.15

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 (203) hide show
  1. package/README.md +1 -1
  2. package/funcs/apiKeysCreate.d.ts +3 -2
  3. package/funcs/apiKeysCreate.d.ts.map +1 -1
  4. package/funcs/apiKeysCreate.js +4 -3
  5. package/funcs/apiKeysCreate.js.map +1 -1
  6. package/funcs/apiKeysDelete.js +1 -1
  7. package/funcs/apiKeysDelete.js.map +1 -1
  8. package/funcs/apiKeysGet.d.ts +1 -1
  9. package/funcs/apiKeysGet.js +2 -6
  10. package/funcs/apiKeysGet.js.map +1 -1
  11. package/funcs/apiKeysList.d.ts +1 -1
  12. package/funcs/apiKeysList.js +4 -11
  13. package/funcs/apiKeysList.js.map +1 -1
  14. package/funcs/apiKeysListCapabilities.d.ts +3 -3
  15. package/funcs/apiKeysListCapabilities.d.ts.map +1 -1
  16. package/funcs/apiKeysListCapabilities.js +3 -3
  17. package/funcs/apiKeysListCapabilities.js.map +1 -1
  18. package/funcs/apiKeysUpdate.d.ts +1 -1
  19. package/funcs/apiKeysUpdate.js +3 -5
  20. package/funcs/apiKeysUpdate.js.map +1 -1
  21. package/funcs/routerClassifyCreate.d.ts +1 -1
  22. package/funcs/routerClassifyCreate.js +1 -1
  23. package/jsr.json +1 -1
  24. package/lib/config.d.ts +2 -2
  25. package/lib/config.js +2 -2
  26. package/models/components/classifyanswer.d.ts +2 -2
  27. package/models/components/constraints.d.ts +12 -0
  28. package/models/components/constraints.d.ts.map +1 -0
  29. package/models/components/{singleproject.js → constraints.js} +8 -8
  30. package/models/components/constraints.js.map +1 -0
  31. package/models/components/domain.d.ts +30 -31
  32. package/models/components/domain.d.ts.map +1 -1
  33. package/models/components/domain.js +20 -11
  34. package/models/components/domain.js.map +1 -1
  35. package/models/components/index.d.ts +2 -14
  36. package/models/components/index.d.ts.map +1 -1
  37. package/models/components/index.js +2 -14
  38. package/models/components/index.js.map +1 -1
  39. package/models/components/owner.d.ts +14 -0
  40. package/models/components/owner.d.ts.map +1 -0
  41. package/models/components/{userowner.js → owner.js} +8 -7
  42. package/models/components/owner.js.map +1 -0
  43. package/models/components/projectscope.d.ts +4 -13
  44. package/models/components/projectscope.d.ts.map +1 -1
  45. package/models/components/projectscope.js +7 -4
  46. package/models/components/projectscope.js.map +1 -1
  47. package/models/components/reasoningpart.js +1 -1
  48. package/models/operations/apikeycreate.d.ts +79 -0
  49. package/models/operations/apikeycreate.d.ts.map +1 -0
  50. package/models/{components/createapikeyrequest.js → operations/apikeycreate.js} +35 -21
  51. package/models/operations/apikeycreate.js.map +1 -0
  52. package/models/operations/apikeydelete.d.ts +1 -1
  53. package/models/operations/apikeyget.d.ts +1 -9
  54. package/models/operations/apikeyget.d.ts.map +1 -1
  55. package/models/operations/apikeyget.js +0 -2
  56. package/models/operations/apikeyget.js.map +1 -1
  57. package/models/operations/apikeylist.d.ts +18 -65
  58. package/models/operations/apikeylist.d.ts.map +1 -1
  59. package/models/operations/apikeylist.js +11 -15
  60. package/models/operations/apikeylist.js.map +1 -1
  61. package/models/operations/apikeylistcapabilities.d.ts +17 -0
  62. package/models/operations/apikeylistcapabilities.d.ts.map +1 -0
  63. package/models/{components/listcapabilitiesresponse.js → operations/apikeylistcapabilities.js} +8 -8
  64. package/models/operations/apikeylistcapabilities.js.map +1 -0
  65. package/models/operations/apikeyupdate.d.ts +73 -3
  66. package/models/operations/apikeyupdate.d.ts.map +1 -1
  67. package/models/operations/apikeyupdate.js +43 -3
  68. package/models/operations/apikeyupdate.js.map +1 -1
  69. package/models/operations/createclassify.d.ts +2 -2
  70. package/models/operations/createrouterresponse.d.ts +4 -4
  71. package/models/operations/createrouterresponse.d.ts.map +1 -1
  72. package/models/operations/createrouterresponse.js +5 -5
  73. package/models/operations/createrouterresponse.js.map +1 -1
  74. package/models/operations/createtool.js +4 -4
  75. package/models/operations/getalltools.js +4 -4
  76. package/models/operations/getv2humanevalsets.js +2 -2
  77. package/models/operations/getv2humanevalsetsid.js +2 -2
  78. package/models/operations/index.d.ts +2 -0
  79. package/models/operations/index.d.ts.map +1 -1
  80. package/models/operations/index.js +2 -0
  81. package/models/operations/index.js.map +1 -1
  82. package/models/operations/patchv2humanevalsetsid.js +2 -2
  83. package/models/operations/postv2feedbackevaluation.js +4 -4
  84. package/models/operations/postv2humanevalsets.js +2 -2
  85. package/models/operations/retrievetool.js +4 -4
  86. package/models/operations/runagent.js +1 -1
  87. package/models/operations/streamrunagent.js +1 -1
  88. package/models/operations/updatetool.js +4 -4
  89. package/package.json +8 -8
  90. package/sdk/apikeys.d.ts +12 -12
  91. package/sdk/apikeys.d.ts.map +1 -1
  92. package/sdk/apikeys.js +12 -12
  93. package/sdk/apikeys.js.map +1 -1
  94. package/sdk/classify.d.ts +1 -1
  95. package/sdk/classify.js +1 -1
  96. package/sdk/sdk.d.ts +2 -2
  97. package/sdk/sdk.d.ts.map +1 -1
  98. package/sdk/sdk.js +3 -3
  99. package/sdk/sdk.js.map +1 -1
  100. package/src/funcs/apiKeysCreate.ts +6 -5
  101. package/src/funcs/apiKeysDelete.ts +1 -1
  102. package/src/funcs/apiKeysGet.ts +3 -8
  103. package/src/funcs/apiKeysList.ts +4 -11
  104. package/src/funcs/apiKeysListCapabilities.ts +6 -6
  105. package/src/funcs/apiKeysUpdate.ts +3 -5
  106. package/src/funcs/routerClassifyCreate.ts +1 -1
  107. package/src/lib/config.ts +2 -2
  108. package/src/models/components/classifyanswer.ts +2 -2
  109. package/src/models/components/constraints.ts +32 -0
  110. package/src/models/components/domain.ts +42 -39
  111. package/src/models/components/index.ts +2 -14
  112. package/src/models/components/owner.ts +35 -0
  113. package/src/models/components/projectscope.ts +11 -23
  114. package/src/models/components/reasoningpart.ts +1 -1
  115. package/src/models/operations/apikeycreate.ts +116 -0
  116. package/src/models/operations/apikeydelete.ts +1 -1
  117. package/src/models/operations/apikeyget.ts +1 -11
  118. package/src/models/operations/apikeylist.ts +23 -78
  119. package/src/models/operations/apikeylistcapabilities.ts +39 -0
  120. package/src/models/operations/apikeyupdate.ts +107 -5
  121. package/src/models/operations/createclassify.ts +2 -2
  122. package/src/models/operations/createrouterresponse.ts +6 -6
  123. package/src/models/operations/createtool.ts +4 -4
  124. package/src/models/operations/getalltools.ts +4 -4
  125. package/src/models/operations/getv2humanevalsets.ts +2 -2
  126. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  127. package/src/models/operations/index.ts +2 -0
  128. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  129. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  130. package/src/models/operations/postv2humanevalsets.ts +2 -2
  131. package/src/models/operations/retrievetool.ts +4 -4
  132. package/src/models/operations/runagent.ts +1 -1
  133. package/src/models/operations/streamrunagent.ts +1 -1
  134. package/src/models/operations/updatetool.ts +4 -4
  135. package/src/sdk/apikeys.ts +18 -18
  136. package/src/sdk/classify.ts +1 -1
  137. package/src/sdk/sdk.ts +5 -5
  138. package/models/components/allprojects.d.ts +0 -8
  139. package/models/components/allprojects.d.ts.map +0 -1
  140. package/models/components/allprojects.js +0 -47
  141. package/models/components/allprojects.js.map +0 -1
  142. package/models/components/apikeyowner.d.ts +0 -26
  143. package/models/components/apikeyowner.d.ts.map +0 -1
  144. package/models/components/apikeyowner.js +0 -57
  145. package/models/components/apikeyowner.js.map +0 -1
  146. package/models/components/apikeystatus.d.ts +0 -12
  147. package/models/components/apikeystatus.d.ts.map +0 -1
  148. package/models/components/apikeystatus.js +0 -49
  149. package/models/components/apikeystatus.js.map +0 -1
  150. package/models/components/createapikeyrequest.d.ts +0 -75
  151. package/models/components/createapikeyrequest.d.ts.map +0 -1
  152. package/models/components/createapikeyrequest.js.map +0 -1
  153. package/models/components/domaingroup.d.ts +0 -11
  154. package/models/components/domaingroup.d.ts.map +0 -1
  155. package/models/components/domaingroup.js +0 -49
  156. package/models/components/domaingroup.js.map +0 -1
  157. package/models/components/listcapabilitiesresponse.d.ts +0 -17
  158. package/models/components/listcapabilitiesresponse.d.ts.map +0 -1
  159. package/models/components/listcapabilitiesresponse.js.map +0 -1
  160. package/models/components/mcpaccess.d.ts +0 -67
  161. package/models/components/mcpaccess.d.ts.map +0 -1
  162. package/models/components/mcpaccess.js +0 -60
  163. package/models/components/mcpaccess.js.map +0 -1
  164. package/models/components/ownertype.d.ts +0 -11
  165. package/models/components/ownertype.d.ts.map +0 -1
  166. package/models/components/ownertype.js +0 -49
  167. package/models/components/ownertype.js.map +0 -1
  168. package/models/components/permissionmode.d.ts +0 -12
  169. package/models/components/permissionmode.d.ts.map +0 -1
  170. package/models/components/permissionmode.js +0 -49
  171. package/models/components/permissionmode.js.map +0 -1
  172. package/models/components/scopemode.d.ts +0 -10
  173. package/models/components/scopemode.d.ts.map +0 -1
  174. package/models/components/scopemode.js +0 -48
  175. package/models/components/scopemode.js.map +0 -1
  176. package/models/components/serviceaccountowner.d.ts +0 -8
  177. package/models/components/serviceaccountowner.d.ts.map +0 -1
  178. package/models/components/serviceaccountowner.js +0 -47
  179. package/models/components/serviceaccountowner.js.map +0 -1
  180. package/models/components/singleproject.d.ts +0 -15
  181. package/models/components/singleproject.d.ts.map +0 -1
  182. package/models/components/singleproject.js.map +0 -1
  183. package/models/components/updateapikeyrequest.d.ts +0 -68
  184. package/models/components/updateapikeyrequest.d.ts.map +0 -1
  185. package/models/components/updateapikeyrequest.js +0 -70
  186. package/models/components/updateapikeyrequest.js.map +0 -1
  187. package/models/components/userowner.d.ts +0 -15
  188. package/models/components/userowner.d.ts.map +0 -1
  189. package/models/components/userowner.js.map +0 -1
  190. package/src/models/components/allprojects.ts +0 -21
  191. package/src/models/components/apikeyowner.ts +0 -55
  192. package/src/models/components/apikeystatus.ts +0 -18
  193. package/src/models/components/createapikeyrequest.ts +0 -116
  194. package/src/models/components/domaingroup.ts +0 -17
  195. package/src/models/components/listcapabilitiesresponse.ts +0 -38
  196. package/src/models/components/mcpaccess.ts +0 -93
  197. package/src/models/components/ownertype.ts +0 -17
  198. package/src/models/components/permissionmode.ts +0 -19
  199. package/src/models/components/scopemode.ts +0 -16
  200. package/src/models/components/serviceaccountowner.ts +0 -25
  201. package/src/models/components/singleproject.ts +0 -35
  202. package/src/models/components/updateapikeyrequest.ts +0 -110
  203. package/src/models/components/userowner.ts +0 -35
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as components from "../components/index.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * The capability catalog
13
+ */
14
+ export type ApiKeyListCapabilitiesResponseBody = {
15
+ /**
16
+ * Full capability catalog. Order is stable: workspace-admin first, then platform, then gateway.
17
+ */
18
+ domains: Array<components.Domain> | null;
19
+ };
20
+
21
+ /** @internal */
22
+ export const ApiKeyListCapabilitiesResponseBody$inboundSchema: z.ZodType<
23
+ ApiKeyListCapabilitiesResponseBody,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ domains: z.nullable(z.array(components.Domain$inboundSchema)),
28
+ });
29
+
30
+ export function apiKeyListCapabilitiesResponseBodyFromJSON(
31
+ jsonString: string,
32
+ ): SafeParseResult<ApiKeyListCapabilitiesResponseBody, SDKValidationError> {
33
+ return safeParse(
34
+ jsonString,
35
+ (x) =>
36
+ ApiKeyListCapabilitiesResponseBody$inboundSchema.parse(JSON.parse(x)),
37
+ `Failed to parse 'ApiKeyListCapabilitiesResponseBody' from JSON`,
38
+ );
39
+ }
@@ -4,20 +4,122 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
7
8
  import * as components from "../components/index.js";
8
9
 
10
+ /**
11
+ * Permission preset; a restricted key must keep at least one granted domain.
12
+ */
13
+ export const ApiKeyUpdatePermissionMode = {
14
+ All: "all",
15
+ Restricted: "restricted",
16
+ ReadOnly: "read_only",
17
+ } as const;
18
+ /**
19
+ * Permission preset; a restricted key must keep at least one granted domain.
20
+ */
21
+ export type ApiKeyUpdatePermissionMode = ClosedEnum<
22
+ typeof ApiKeyUpdatePermissionMode
23
+ >;
24
+
25
+ /**
26
+ * Lifecycle status; revoked is terminal.
27
+ */
28
+ export const Status = {
29
+ Active: "active",
30
+ Disabled: "disabled",
31
+ Revoked: "revoked",
32
+ } as const;
33
+ /**
34
+ * Lifecycle status; revoked is terminal.
35
+ */
36
+ export type Status = ClosedEnum<typeof Status>;
37
+
38
+ export type ApiKeyUpdateRequestBody = {
39
+ /**
40
+ * Per-domain access level (none, read or write) for restricted keys.
41
+ */
42
+ access?: { [k: string]: string } | undefined;
43
+ /**
44
+ * Legacy toggle mirrored onto status: false disables, true re-enables.
45
+ */
46
+ active?: boolean | undefined;
47
+ constraints?: components.Constraints | undefined;
48
+ /**
49
+ * New display name.
50
+ */
51
+ name?: string | undefined;
52
+ /**
53
+ * Permission preset; a restricted key must keep at least one granted domain.
54
+ */
55
+ permissionMode?: ApiKeyUpdatePermissionMode | undefined;
56
+ projectScope?: components.ProjectScope | undefined;
57
+ /**
58
+ * Lifecycle status; revoked is terminal.
59
+ */
60
+ status?: Status | undefined;
61
+ };
62
+
9
63
  export type ApiKeyUpdateRequest = {
10
64
  /**
11
- * API key id to update.
65
+ * Unique identifier of the API key.
12
66
  */
13
67
  apiKeyId: string;
14
- updateApiKeyRequest: components.UpdateApiKeyRequest;
68
+ requestBody: ApiKeyUpdateRequestBody;
69
+ };
70
+
71
+ /** @internal */
72
+ export const ApiKeyUpdatePermissionMode$outboundSchema: z.ZodNativeEnum<
73
+ typeof ApiKeyUpdatePermissionMode
74
+ > = z.nativeEnum(ApiKeyUpdatePermissionMode);
75
+
76
+ /** @internal */
77
+ export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> = z
78
+ .nativeEnum(Status);
79
+
80
+ /** @internal */
81
+ export type ApiKeyUpdateRequestBody$Outbound = {
82
+ access?: { [k: string]: string } | undefined;
83
+ active?: boolean | undefined;
84
+ constraints?: components.Constraints$Outbound | undefined;
85
+ name?: string | undefined;
86
+ permission_mode?: string | undefined;
87
+ project_scope?: components.ProjectScope$Outbound | undefined;
88
+ status?: string | undefined;
15
89
  };
16
90
 
91
+ /** @internal */
92
+ export const ApiKeyUpdateRequestBody$outboundSchema: z.ZodType<
93
+ ApiKeyUpdateRequestBody$Outbound,
94
+ z.ZodTypeDef,
95
+ ApiKeyUpdateRequestBody
96
+ > = z.object({
97
+ access: z.record(z.string()).optional(),
98
+ active: z.boolean().optional(),
99
+ constraints: components.Constraints$outboundSchema.optional(),
100
+ name: z.string().optional(),
101
+ permissionMode: ApiKeyUpdatePermissionMode$outboundSchema.optional(),
102
+ projectScope: components.ProjectScope$outboundSchema.optional(),
103
+ status: Status$outboundSchema.optional(),
104
+ }).transform((v) => {
105
+ return remap$(v, {
106
+ permissionMode: "permission_mode",
107
+ projectScope: "project_scope",
108
+ });
109
+ });
110
+
111
+ export function apiKeyUpdateRequestBodyToJSON(
112
+ apiKeyUpdateRequestBody: ApiKeyUpdateRequestBody,
113
+ ): string {
114
+ return JSON.stringify(
115
+ ApiKeyUpdateRequestBody$outboundSchema.parse(apiKeyUpdateRequestBody),
116
+ );
117
+ }
118
+
17
119
  /** @internal */
18
120
  export type ApiKeyUpdateRequest$Outbound = {
19
121
  api_key_id: string;
20
- UpdateApiKeyRequest: components.UpdateApiKeyRequest$Outbound;
122
+ RequestBody: ApiKeyUpdateRequestBody$Outbound;
21
123
  };
22
124
 
23
125
  /** @internal */
@@ -27,11 +129,11 @@ export const ApiKeyUpdateRequest$outboundSchema: z.ZodType<
27
129
  ApiKeyUpdateRequest
28
130
  > = z.object({
29
131
  apiKeyId: z.string(),
30
- updateApiKeyRequest: components.UpdateApiKeyRequest$outboundSchema,
132
+ requestBody: z.lazy(() => ApiKeyUpdateRequestBody$outboundSchema),
31
133
  }).transform((v) => {
32
134
  return remap$(v, {
33
135
  apiKeyId: "api_key_id",
34
- updateApiKeyRequest: "UpdateApiKeyRequest",
136
+ requestBody: "RequestBody",
35
137
  });
36
138
  });
37
139
 
@@ -93,7 +93,7 @@ export type CreateClassifyRequestBody = {
93
93
  */
94
94
  metadata?: { [k: string]: string } | undefined;
95
95
  /**
96
- * ID of the model to use: the native classify model typesafe/jev-latest, or a chat model that supports classify such as anthropic/claude-haiku-4-5, google-ai/gemini-3.8-flash or zai/glm-5.3-flash.
96
+ * ID of the model to use: the native classify model typesafe/jev-latest, or a chat model that supports classify.
97
97
  */
98
98
  model: string;
99
99
  /**
@@ -120,7 +120,7 @@ export type CreateClassifyResponseBody = {
120
120
  */
121
121
  answers: { [k: string]: components.ClassifyAnswer };
122
122
  /**
123
- * The model ID from the request, for example typesafe/jev-latest or google/gemini-3.8-flash.
123
+ * The model ID from the request.
124
124
  */
125
125
  model: string;
126
126
  telemetry?: components.ResponseTelemetry | undefined;
@@ -367,7 +367,7 @@ export type InputRole = ClosedEnum<typeof InputRole>;
367
367
  /**
368
368
  * The status of a model-generated input item.
369
369
  */
370
- export const Status = {
370
+ export const InputStatus = {
371
371
  InProgress: "in_progress",
372
372
  Completed: "completed",
373
373
  Incomplete: "incomplete",
@@ -375,7 +375,7 @@ export const Status = {
375
375
  /**
376
376
  * The status of a model-generated input item.
377
377
  */
378
- export type Status = ClosedEnum<typeof Status>;
378
+ export type InputStatus = ClosedEnum<typeof InputStatus>;
379
379
 
380
380
  /**
381
381
  * The type of item.
@@ -456,7 +456,7 @@ export type CreateRouterResponseInput2 = {
456
456
  /**
457
457
  * The status of a model-generated input item.
458
458
  */
459
- status?: Status | undefined;
459
+ status?: InputStatus | undefined;
460
460
  /**
461
461
  * The type of item.
462
462
  */
@@ -1476,8 +1476,8 @@ export const InputRole$outboundSchema: z.ZodNativeEnum<typeof InputRole> = z
1476
1476
  .nativeEnum(InputRole);
1477
1477
 
1478
1478
  /** @internal */
1479
- export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> = z
1480
- .nativeEnum(Status);
1479
+ export const InputStatus$outboundSchema: z.ZodNativeEnum<typeof InputStatus> = z
1480
+ .nativeEnum(InputStatus);
1481
1481
 
1482
1482
  /** @internal */
1483
1483
  export const InputType$outboundSchema: z.ZodNativeEnum<typeof InputType> = z
@@ -1523,7 +1523,7 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
1523
1523
  output: z.string().optional(),
1524
1524
  reasoning: z.lazy(() => Reasoning$outboundSchema).optional(),
1525
1525
  role: InputRole$outboundSchema.optional(),
1526
- status: Status$outboundSchema.optional(),
1526
+ status: InputStatus$outboundSchema.optional(),
1527
1527
  type: InputType$outboundSchema.optional(),
1528
1528
  }).transform((v) => {
1529
1529
  return remap$(v, {
@@ -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_01M36FZECDNT4F1W971DVCQ5YB"),
1578
+ _id: z.string().default("tool_01M372HV3BD7J08FKAKXPG1S4Z"),
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_01M36FZECC8J3TZ0C6TKX8HJZB"),
1764
+ _id: z.string().default("tool_01M372HV3BE9JFBNACRTBRN809"),
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_01M36FZECBN9C4AX9NGDAHPAF2"),
1857
+ _id: z.string().default("tool_01M372HV3A5TQ3T4S2EJAMFQQB"),
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_01M36FZECB16Q3YVHA2MHM9DVH"),
1958
+ _id: z.string().default("tool_01M372HV3AK85V96SHXV912JVE"),
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_01M36FZEC6YV78A9XCY6PV1T4C"),
642
+ _id: z.string().default("tool_01M372HV389VEXYVHFYB78MRZW"),
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_01M36FZEC5BDNVPCG87ZJBK1BC"),
824
+ _id: z.string().default("tool_01M372HV385GJGPR6ETR5JGBK6"),
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_01M36FZEC4F3E8MX0G4MGG4J7G"),
917
+ _id: z.string().default("tool_01M372HV37VRNS5SWQCGS49CF2"),
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_01M36FZEC47Q5GS4SK1ADZ12G1"),
1015
+ _id: z.string().default("tool_01M372HV37N0DQHKS77SMZFPY8"),
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-23T06:41:38.146Z",
143
+ "2026-09-23T12:06:18.502Z",
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-23T06:41:38.146Z",
188
+ "2026-09-23T12:06:18.502Z",
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-23T06:41:38.146Z",
144
+ "2026-09-23T12:06:18.502Z",
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-23T06:41:38.146Z",
189
+ "2026-09-23T12:06:18.502Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -9,9 +9,11 @@ export * from "./alertlist.js";
9
9
  export * from "./alertlisttriggerevents.js";
10
10
  export * from "./alertlisttriggers.js";
11
11
  export * from "./alertupdate.js";
12
+ export * from "./apikeycreate.js";
12
13
  export * from "./apikeydelete.js";
13
14
  export * from "./apikeyget.js";
14
15
  export * from "./apikeylist.js";
16
+ export * from "./apikeylistcapabilities.js";
15
17
  export * from "./apikeyupdate.js";
16
18
  export * from "./budgetdelete.js";
17
19
  export * from "./budgetget.js";
@@ -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-23T06:41:38.146Z",
321
+ "2026-09-23T12:06:18.502Z",
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-23T06:41:38.146Z",
367
+ "2026-09-23T12:06:18.502Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
245
245
  PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
246
246
  .default("orq"),
247
247
  explanation: z.string().optional(),
248
- reviewedAt: z.date().default(() => new Date("2026-09-23T06:41:46.443Z"))
248
+ reviewedAt: z.date().default(() => new Date("2026-09-23T12:06:23.625Z"))
249
249
  .transform(v => v.toISOString()),
250
250
  type: z.literal("string_array"),
251
251
  values: z.array(z.string()),
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
299
299
  source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
300
300
  .default("orq"),
301
301
  explanation: z.string().optional(),
302
- reviewedAt: z.date().default(() => new Date("2026-09-23T06:41:46.442Z"))
302
+ reviewedAt: z.date().default(() => new Date("2026-09-23T12:06:23.625Z"))
303
303
  .transform(v => v.toISOString()),
304
304
  type: z.literal("boolean"),
305
305
  value: z.boolean(),
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
353
353
  "orq",
354
354
  ),
355
355
  explanation: z.string().optional(),
356
- reviewedAt: z.date().default(() => new Date("2026-09-23T06:41:46.442Z"))
356
+ reviewedAt: z.date().default(() => new Date("2026-09-23T12:06:23.625Z"))
357
357
  .transform(v => v.toISOString()),
358
358
  type: z.literal("number"),
359
359
  value: z.number(),
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
405
405
  humanReviewId: z.string().optional(),
406
406
  source: RequestBodySource$outboundSchema.default("orq"),
407
407
  explanation: z.string().optional(),
408
- reviewedAt: z.date().default(() => new Date("2026-09-23T06:41:46.442Z"))
408
+ reviewedAt: z.date().default(() => new Date("2026-09-23T12:06:23.625Z"))
409
409
  .transform(v => v.toISOString()),
410
410
  type: z.literal("string"),
411
411
  value: z.string(),
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
271
271
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
272
272
  .optional(),
273
273
  updated: z.string().datetime({ offset: true }).default(
274
- "2026-09-23T06:41:38.146Z",
274
+ "2026-09-23T12:06:18.502Z",
275
275
  ).transform(v => new Date(v)),
276
276
  filter_type: z.literal("name"),
277
277
  filter_value: z.string(),
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
316
316
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
317
317
  .optional(),
318
318
  updated: z.string().datetime({ offset: true }).default(
319
- "2026-09-23T06:41:38.146Z",
319
+ "2026-09-23T12:06:18.502Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
624
624
  z.ZodTypeDef,
625
625
  unknown
626
626
  > = z.object({
627
- _id: z.string().default("tool_01M36FZECVKMGKHJ63RVNGZZTY"),
627
+ _id: z.string().default("tool_01M372HV3KG9J4AR3T1SFP036X"),
628
628
  path: z.string(),
629
629
  key: z.string(),
630
630
  display_name: z.string().optional(),
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
820
820
  z.ZodTypeDef,
821
821
  unknown
822
822
  > = z.object({
823
- _id: z.string().default("tool_01M36FZECTW130595DD123M10T"),
823
+ _id: z.string().default("tool_01M372HV3JKSET2VTKH7Y1Y6F0"),
824
824
  path: z.string(),
825
825
  key: z.string(),
826
826
  display_name: z.string().optional(),
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
916
916
  z.ZodTypeDef,
917
917
  unknown
918
918
  > = z.object({
919
- _id: z.string().default("tool_01M36FZECT6PV891WG3GYPC8FX"),
919
+ _id: z.string().default("tool_01M372HV3JKV7KKP3BTZGP2W4D"),
920
920
  path: z.string(),
921
921
  key: z.string(),
922
922
  display_name: z.string().optional(),
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
1022
1022
  z.ZodTypeDef,
1023
1023
  unknown
1024
1024
  > = z.object({
1025
- _id: z.string().default("tool_01M36FZECS1SNWYM6X6EPES3MD"),
1025
+ _id: z.string().default("tool_01M372HV3JMZ23KNDVZ48D774H"),
1026
1026
  path: z.string(),
1027
1027
  key: z.string(),
1028
1028
  display_name: z.string().optional(),
@@ -3890,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
3890
3890
  z.ZodTypeDef,
3891
3891
  Tools
3892
3892
  > = z.object({
3893
- id: z.string().default("01M36FZE9S44D3B53RGRCQDJ7T"),
3893
+ id: z.string().default("01M372HV2205B3R9CJ9MNM0CND"),
3894
3894
  name: z.string(),
3895
3895
  description: z.string().optional(),
3896
3896
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -3949,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
3949
3949
  z.ZodTypeDef,
3950
3950
  AgentToolInputRunTools
3951
3951
  > = z.object({
3952
- id: z.string().default("01M36FZEAF5WE29P0HE6E4F8VY"),
3952
+ id: z.string().default("01M372HV2DNMSJTG8JJNYTC9NX"),
3953
3953
  name: z.string(),
3954
3954
  description: z.string().optional(),
3955
3955
  schema: z.lazy(() =>
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1764
1764
  z.ZodTypeDef,
1765
1765
  unknown
1766
1766
  > = z.object({
1767
- _id: z.string().default("tool_01M36FZECJKVNDVZ201CV5WDNZ"),
1767
+ _id: z.string().default("tool_01M372HV3EWWN617HZJS0NT9AN"),
1768
1768
  path: z.string(),
1769
1769
  key: z.string(),
1770
1770
  display_name: z.string().optional(),
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
1959
1959
  z.ZodTypeDef,
1960
1960
  unknown
1961
1961
  > = z.object({
1962
- _id: z.string().default("tool_01M36FZECH97PZ2NK02460NE52"),
1962
+ _id: z.string().default("tool_01M372HV3EMTHZJGPM4TR1YPBW"),
1963
1963
  path: z.string(),
1964
1964
  key: z.string(),
1965
1965
  display_name: z.string().optional(),
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2054
2054
  z.ZodTypeDef,
2055
2055
  unknown
2056
2056
  > = z.object({
2057
- _id: z.string().default("tool_01M36FZECHK6BYCX8VM8JG8PPZ"),
2057
+ _id: z.string().default("tool_01M372HV3EJWREGPBHT22SEHX1"),
2058
2058
  path: z.string(),
2059
2059
  key: z.string(),
2060
2060
  display_name: z.string().optional(),
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2157
2157
  z.ZodTypeDef,
2158
2158
  unknown
2159
2159
  > = z.object({
2160
- _id: z.string().default("tool_01M36FZECGJMVH0D4QEFZM65XN"),
2160
+ _id: z.string().default("tool_01M372HV3DYT09FBGS81XRVKGW"),
2161
2161
  path: z.string(),
2162
2162
  key: z.string(),
2163
2163
  display_name: z.string().optional(),
@@ -18,7 +18,7 @@ export class ApiKeys extends ClientSDK {
18
18
  * List API keys
19
19
  *
20
20
  * @remarks
21
- * Returns API keys visible to the current workspace as a JSON array. Raw tokens are never included; the `token` field contains a masked display value.
21
+ * Returns API keys visible to the current workspace as a JSON array sorted by name. Raw tokens are never included; the `token` field contains a masked display value.
22
22
  */
23
23
  async list(
24
24
  request?: operations.ApiKeyListRequest | undefined,
@@ -35,10 +35,10 @@ export class ApiKeys extends ClientSDK {
35
35
  * Create a new API key
36
36
  *
37
37
  * @remarks
38
- * Mints a new opaque API key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
38
+ * Mints a new API key in the workspace, bound to the single project in `projects` or to every project when omitted. The raw token is returned once in the `token` field and is never retrievable afterwards. Unknown body fields are rejected.
39
39
  */
40
40
  async create(
41
- request: components.CreateApiKeyRequest,
41
+ request: operations.ApiKeyCreateRequestBody,
42
42
  options?: RequestOptions,
43
43
  ): Promise<components.ApiKeyRestResponse> {
44
44
  return unwrapAsync(apiKeysCreate(
@@ -52,11 +52,11 @@ export class ApiKeys extends ClientSDK {
52
52
  * List capability catalog
53
53
  *
54
54
  * @remarks
55
- * Returns the capability catalog: the set of permission domains that can be granted to an API key. Each entry includes the domain id, display name, group, allowed project scopes, and the read / write verb sets resolved at authorize() time. Drives the permissions UI in the dashboard.
55
+ * Returns the capability catalog: the set of permission domains that can be granted to an API key. Each entry includes the domain id, display name, group, allowed project scopes and whether it can be granted read or write access. No credentials are required.
56
56
  */
57
57
  async listCapabilities(
58
58
  options?: RequestOptions,
59
- ): Promise<components.ListCapabilitiesResponse> {
59
+ ): Promise<operations.ApiKeyListCapabilitiesResponseBody> {
60
60
  return unwrapAsync(apiKeysListCapabilities(
61
61
  this,
62
62
  options,
@@ -64,16 +64,16 @@ export class ApiKeys extends ClientSDK {
64
64
  }
65
65
 
66
66
  /**
67
- * Retrieve an API key
67
+ * Delete an API key
68
68
  *
69
69
  * @remarks
70
- * Retrieves the metadata for an existing API key by its unique identifier. The raw secret is never returned — only `token_prefix`, `permission_mode`, `project_scope`, and lifecycle fields.
70
+ * Permanently deletes an API key. The key is revoked immediately; in-flight requests using it will fail. The response body is empty on success.
71
71
  */
72
- async get(
73
- request: operations.ApiKeyGetRequest,
72
+ async delete(
73
+ request: operations.ApiKeyDeleteRequest,
74
74
  options?: RequestOptions,
75
- ): Promise<components.ApiKeyRestResponse> {
76
- return unwrapAsync(apiKeysGet(
75
+ ): Promise<void> {
76
+ return unwrapAsync(apiKeysDelete(
77
77
  this,
78
78
  request,
79
79
  options,
@@ -81,16 +81,16 @@ export class ApiKeys extends ClientSDK {
81
81
  }
82
82
 
83
83
  /**
84
- * Delete an API key
84
+ * Retrieve an API key
85
85
  *
86
86
  * @remarks
87
- * Permanently deletes an API key. The key is revoked immediately; in-flight requests using it will fail. The response body is empty on success.
87
+ * Retrieves the metadata for an existing API key by its unique identifier. The raw secret is never returned; `token` carries a masked display value.
88
88
  */
89
- async delete(
90
- request: operations.ApiKeyDeleteRequest,
89
+ async get(
90
+ request: operations.ApiKeyGetRequest,
91
91
  options?: RequestOptions,
92
- ): Promise<void> {
93
- return unwrapAsync(apiKeysDelete(
92
+ ): Promise<components.ApiKeyRestResponse> {
93
+ return unwrapAsync(apiKeysGet(
94
94
  this,
95
95
  request,
96
96
  options,
@@ -101,7 +101,7 @@ export class ApiKeys extends ClientSDK {
101
101
  * Update an API key
102
102
  *
103
103
  * @remarks
104
- * Updates mutable fields of an API key: display name, status (active / disabled / revoked), permission mode and access map, project scope, and constraints (budget / rate limit / expiry). Omitted fields keep their current values.
104
+ * Updates mutable fields of an API key: display name, status (active / disabled / revoked), permission mode and access map, project scope and constraints. Omitted fields keep their current values. Unknown body fields are rejected.
105
105
  */
106
106
  async update(
107
107
  request: operations.ApiKeyUpdateRequest,
@@ -12,7 +12,7 @@ export class Classify extends ClientSDK {
12
12
  * Classify
13
13
  *
14
14
  * @remarks
15
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against the native classify model `typesafe/jev-latest` or a chat model that supports classify, such as `anthropic/claude-haiku-4-5`, `google-ai/gemini-3.8-flash` or `zai/glm-5.3-flash`. Chat models answer through one structured-output call and their probabilities are model-reported rather than calibrated. The request and response follow the TypeSafe classification contract; `model` in the response echoes the request and `usage` carries the computed cost like the Responses API. This endpoint currently does not apply PII plugins or guardrails.
15
+ * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against the native classify model `typesafe/jev-latest` or a chat model that supports classify. Chat models answer through one structured-output call and their probabilities are model-reported rather than calibrated. The request and response follow the TypeSafe classification contract; `model` in the response echoes the request and `usage` carries the computed cost like the Responses API. This endpoint currently does not apply PII plugins or guardrails.
16
16
  */
17
17
  async create(
18
18
  request: operations.CreateClassifyRequestBody,
package/src/sdk/sdk.ts CHANGED
@@ -121,6 +121,11 @@ export class Orq extends ClientSDK {
121
121
  return (this._pii ??= new Pii(this._options));
122
122
  }
123
123
 
124
+ private _apiKeys?: ApiKeys;
125
+ get apiKeys(): ApiKeys {
126
+ return (this._apiKeys ??= new ApiKeys(this._options));
127
+ }
128
+
124
129
  private _logs?: Logs;
125
130
  get logs(): Logs {
126
131
  return (this._logs ??= new Logs(this._options));
@@ -166,11 +171,6 @@ export class Orq extends ClientSDK {
166
171
  return (this._annotationQueues ??= new AnnotationQueues(this._options));
167
172
  }
168
173
 
169
- private _apiKeys?: ApiKeys;
170
- get apiKeys(): ApiKeys {
171
- return (this._apiKeys ??= new ApiKeys(this._options));
172
- }
173
-
174
174
  private _budgets?: Budgets;
175
175
  get budgets(): Budgets {
176
176
  return (this._budgets ??= new Budgets(this._options));