@orq-ai/node 4.16.0-rc.12 → 4.16.0-rc.14

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 (214) 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/components/wiki.d.ts +1 -1
  49. package/models/components/wiki.d.ts.map +1 -1
  50. package/models/components/wiki.js +2 -2
  51. package/models/components/wiki.js.map +1 -1
  52. package/models/operations/apikeycreate.d.ts +79 -0
  53. package/models/operations/apikeycreate.d.ts.map +1 -0
  54. package/models/{components/createapikeyrequest.js → operations/apikeycreate.js} +35 -21
  55. package/models/operations/apikeycreate.js.map +1 -0
  56. package/models/operations/apikeydelete.d.ts +1 -1
  57. package/models/operations/apikeyget.d.ts +1 -9
  58. package/models/operations/apikeyget.d.ts.map +1 -1
  59. package/models/operations/apikeyget.js +0 -2
  60. package/models/operations/apikeyget.js.map +1 -1
  61. package/models/operations/apikeylist.d.ts +18 -65
  62. package/models/operations/apikeylist.d.ts.map +1 -1
  63. package/models/operations/apikeylist.js +11 -15
  64. package/models/operations/apikeylist.js.map +1 -1
  65. package/models/operations/apikeylistcapabilities.d.ts +17 -0
  66. package/models/operations/apikeylistcapabilities.d.ts.map +1 -0
  67. package/models/{components/listcapabilitiesresponse.js → operations/apikeylistcapabilities.js} +8 -8
  68. package/models/operations/apikeylistcapabilities.js.map +1 -0
  69. package/models/operations/apikeyupdate.d.ts +73 -3
  70. package/models/operations/apikeyupdate.d.ts.map +1 -1
  71. package/models/operations/apikeyupdate.js +43 -3
  72. package/models/operations/apikeyupdate.js.map +1 -1
  73. package/models/operations/createclassify.d.ts +2 -2
  74. package/models/operations/createrouterresponse.d.ts +4 -4
  75. package/models/operations/createrouterresponse.d.ts.map +1 -1
  76. package/models/operations/createrouterresponse.js +5 -5
  77. package/models/operations/createrouterresponse.js.map +1 -1
  78. package/models/operations/createtool.js +4 -4
  79. package/models/operations/filelist.d.ts +3 -3
  80. package/models/operations/getalltools.js +4 -4
  81. package/models/operations/getv2humanevalsets.js +2 -2
  82. package/models/operations/getv2humanevalsetsid.js +2 -2
  83. package/models/operations/index.d.ts +2 -0
  84. package/models/operations/index.d.ts.map +1 -1
  85. package/models/operations/index.js +2 -0
  86. package/models/operations/index.js.map +1 -1
  87. package/models/operations/modelcataloglist.d.ts +2 -2
  88. package/models/operations/modelcataloglistofferings.d.ts +2 -2
  89. package/models/operations/patchv2humanevalsetsid.js +2 -2
  90. package/models/operations/postv2feedbackevaluation.js +4 -4
  91. package/models/operations/postv2humanevalsets.js +2 -2
  92. package/models/operations/retrievetool.js +4 -4
  93. package/models/operations/runagent.js +1 -1
  94. package/models/operations/streamrunagent.js +1 -1
  95. package/models/operations/updatetool.js +4 -4
  96. package/package.json +1 -1
  97. package/sdk/apikeys.d.ts +12 -12
  98. package/sdk/apikeys.d.ts.map +1 -1
  99. package/sdk/apikeys.js +12 -12
  100. package/sdk/apikeys.js.map +1 -1
  101. package/sdk/classify.d.ts +1 -1
  102. package/sdk/classify.js +1 -1
  103. package/sdk/sdk.d.ts +2 -2
  104. package/sdk/sdk.d.ts.map +1 -1
  105. package/sdk/sdk.js +3 -3
  106. package/sdk/sdk.js.map +1 -1
  107. package/src/funcs/apiKeysCreate.ts +6 -5
  108. package/src/funcs/apiKeysDelete.ts +1 -1
  109. package/src/funcs/apiKeysGet.ts +3 -8
  110. package/src/funcs/apiKeysList.ts +4 -11
  111. package/src/funcs/apiKeysListCapabilities.ts +6 -6
  112. package/src/funcs/apiKeysUpdate.ts +3 -5
  113. package/src/funcs/routerClassifyCreate.ts +1 -1
  114. package/src/lib/config.ts +2 -2
  115. package/src/models/components/classifyanswer.ts +2 -2
  116. package/src/models/components/constraints.ts +32 -0
  117. package/src/models/components/domain.ts +42 -39
  118. package/src/models/components/index.ts +2 -14
  119. package/src/models/components/owner.ts +35 -0
  120. package/src/models/components/projectscope.ts +11 -23
  121. package/src/models/components/reasoningpart.ts +1 -1
  122. package/src/models/components/wiki.ts +3 -3
  123. package/src/models/operations/apikeycreate.ts +116 -0
  124. package/src/models/operations/apikeydelete.ts +1 -1
  125. package/src/models/operations/apikeyget.ts +1 -11
  126. package/src/models/operations/apikeylist.ts +23 -78
  127. package/src/models/operations/apikeylistcapabilities.ts +39 -0
  128. package/src/models/operations/apikeyupdate.ts +107 -5
  129. package/src/models/operations/createclassify.ts +2 -2
  130. package/src/models/operations/createrouterresponse.ts +6 -6
  131. package/src/models/operations/createtool.ts +4 -4
  132. package/src/models/operations/filelist.ts +3 -3
  133. package/src/models/operations/getalltools.ts +4 -4
  134. package/src/models/operations/getv2humanevalsets.ts +2 -2
  135. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  136. package/src/models/operations/index.ts +2 -0
  137. package/src/models/operations/modelcataloglist.ts +2 -2
  138. package/src/models/operations/modelcataloglistofferings.ts +2 -2
  139. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  140. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  141. package/src/models/operations/postv2humanevalsets.ts +2 -2
  142. package/src/models/operations/retrievetool.ts +4 -4
  143. package/src/models/operations/runagent.ts +1 -1
  144. package/src/models/operations/streamrunagent.ts +1 -1
  145. package/src/models/operations/updatetool.ts +4 -4
  146. package/src/sdk/apikeys.ts +18 -18
  147. package/src/sdk/classify.ts +1 -1
  148. package/src/sdk/sdk.ts +5 -5
  149. package/models/components/allprojects.d.ts +0 -8
  150. package/models/components/allprojects.d.ts.map +0 -1
  151. package/models/components/allprojects.js +0 -47
  152. package/models/components/allprojects.js.map +0 -1
  153. package/models/components/apikeyowner.d.ts +0 -26
  154. package/models/components/apikeyowner.d.ts.map +0 -1
  155. package/models/components/apikeyowner.js +0 -57
  156. package/models/components/apikeyowner.js.map +0 -1
  157. package/models/components/apikeystatus.d.ts +0 -12
  158. package/models/components/apikeystatus.d.ts.map +0 -1
  159. package/models/components/apikeystatus.js +0 -49
  160. package/models/components/apikeystatus.js.map +0 -1
  161. package/models/components/createapikeyrequest.d.ts +0 -75
  162. package/models/components/createapikeyrequest.d.ts.map +0 -1
  163. package/models/components/createapikeyrequest.js.map +0 -1
  164. package/models/components/domaingroup.d.ts +0 -11
  165. package/models/components/domaingroup.d.ts.map +0 -1
  166. package/models/components/domaingroup.js +0 -49
  167. package/models/components/domaingroup.js.map +0 -1
  168. package/models/components/listcapabilitiesresponse.d.ts +0 -17
  169. package/models/components/listcapabilitiesresponse.d.ts.map +0 -1
  170. package/models/components/listcapabilitiesresponse.js.map +0 -1
  171. package/models/components/mcpaccess.d.ts +0 -67
  172. package/models/components/mcpaccess.d.ts.map +0 -1
  173. package/models/components/mcpaccess.js +0 -60
  174. package/models/components/mcpaccess.js.map +0 -1
  175. package/models/components/ownertype.d.ts +0 -11
  176. package/models/components/ownertype.d.ts.map +0 -1
  177. package/models/components/ownertype.js +0 -49
  178. package/models/components/ownertype.js.map +0 -1
  179. package/models/components/permissionmode.d.ts +0 -12
  180. package/models/components/permissionmode.d.ts.map +0 -1
  181. package/models/components/permissionmode.js +0 -49
  182. package/models/components/permissionmode.js.map +0 -1
  183. package/models/components/scopemode.d.ts +0 -10
  184. package/models/components/scopemode.d.ts.map +0 -1
  185. package/models/components/scopemode.js +0 -48
  186. package/models/components/scopemode.js.map +0 -1
  187. package/models/components/serviceaccountowner.d.ts +0 -8
  188. package/models/components/serviceaccountowner.d.ts.map +0 -1
  189. package/models/components/serviceaccountowner.js +0 -47
  190. package/models/components/serviceaccountowner.js.map +0 -1
  191. package/models/components/singleproject.d.ts +0 -15
  192. package/models/components/singleproject.d.ts.map +0 -1
  193. package/models/components/singleproject.js.map +0 -1
  194. package/models/components/updateapikeyrequest.d.ts +0 -68
  195. package/models/components/updateapikeyrequest.d.ts.map +0 -1
  196. package/models/components/updateapikeyrequest.js +0 -70
  197. package/models/components/updateapikeyrequest.js.map +0 -1
  198. package/models/components/userowner.d.ts +0 -15
  199. package/models/components/userowner.d.ts.map +0 -1
  200. package/models/components/userowner.js.map +0 -1
  201. package/src/models/components/allprojects.ts +0 -21
  202. package/src/models/components/apikeyowner.ts +0 -55
  203. package/src/models/components/apikeystatus.ts +0 -18
  204. package/src/models/components/createapikeyrequest.ts +0 -116
  205. package/src/models/components/domaingroup.ts +0 -17
  206. package/src/models/components/listcapabilitiesresponse.ts +0 -38
  207. package/src/models/components/mcpaccess.ts +0 -93
  208. package/src/models/components/ownertype.ts +0 -17
  209. package/src/models/components/permissionmode.ts +0 -19
  210. package/src/models/components/scopemode.ts +0 -16
  211. package/src/models/components/serviceaccountowner.ts +0 -25
  212. package/src/models/components/singleproject.ts +0 -35
  213. package/src/models/components/updateapikeyrequest.ts +0 -110
  214. package/src/models/components/userowner.ts +0 -35
@@ -7,22 +7,14 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type ApiKeyGetRequest = {
9
9
  /**
10
- * API key id to retrieve (e.g. `01H...`).
10
+ * Unique identifier of the API key.
11
11
  */
12
12
  apiKeyId: string;
13
- /**
14
- * When true, embed the api-key-scoped budget (config and limits only,
15
- *
16
- * @remarks
17
- * no live usage) on the returned record.
18
- */
19
- includeBudget?: boolean | undefined;
20
13
  };
21
14
 
22
15
  /** @internal */
23
16
  export type ApiKeyGetRequest$Outbound = {
24
17
  api_key_id: string;
25
- include_budget?: boolean | undefined;
26
18
  };
27
19
 
28
20
  /** @internal */
@@ -32,11 +24,9 @@ export const ApiKeyGetRequest$outboundSchema: z.ZodType<
32
24
  ApiKeyGetRequest
33
25
  > = z.object({
34
26
  apiKeyId: z.string(),
35
- includeBudget: z.boolean().optional(),
36
27
  }).transform((v) => {
37
28
  return remap$(v, {
38
29
  apiKeyId: "api_key_id",
39
- includeBudget: "include_budget",
40
30
  });
41
31
  });
42
32
 
@@ -4,83 +4,40 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as components from "../components/index.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+
9
+ /**
10
+ * Only return keys of this source.
11
+ */
12
+ export const QueryParamSource = {
13
+ Workspace: "workspace",
14
+ Router: "router",
15
+ } as const;
16
+ /**
17
+ * Only return keys of this source.
18
+ */
19
+ export type QueryParamSource = ClosedEnum<typeof QueryParamSource>;
8
20
 
9
21
  export type ApiKeyListRequest = {
10
22
  /**
11
- * Page size, 1–200. Unset uses the server default (25).
12
- */
13
- limit?: number | undefined;
14
- /**
15
- * Cursor for forward pagination. Set to the `api_key_id` of the last
16
- *
17
- * @remarks
18
- * item from the previous page.
19
- */
20
- startingAfter?: string | undefined;
21
- /**
22
- * Cursor for backward pagination. Set to the `api_key_id` of the
23
- *
24
- * @remarks
25
- * first item from the previous page.
26
- */
27
- endingBefore?: string | undefined;
28
- /**
29
- * Optional filter: only return keys belonging to this project. When
30
- *
31
- * @remarks
32
- * omitted, returns workspace-scoped and any single-project keys.
23
+ * Only return keys bound to this project. When omitted, every key visible to the caller is returned.
33
24
  */
34
25
  projectId?: string | undefined;
35
26
  /**
36
- * Optional filter: only return keys with this status.
27
+ * Only return keys of this source.
37
28
  */
38
- status?: components.ApiKeyStatus | undefined;
39
- /**
40
- * Optional case-insensitive substring match against the api-key
41
- *
42
- * @remarks
43
- * name. Empty means no name filter.
44
- */
45
- search?: string | undefined;
46
- /**
47
- * Optional filter: only return keys whose `owner.kind` matches
48
- *
49
- * @remarks
50
- * one of the requested types. Combines the user / service-account
51
- * oneof cases into a single repeated enum so the wire stays flat
52
- * and multi-select filters travel as a single field. Empty means
53
- * no owner-type filter.
54
- */
55
- ownerType?: Array<components.OwnerType> | undefined;
56
- /**
57
- * Optional filter: only return keys whose permission mode is one
58
- *
59
- * @remarks
60
- * of the listed presets. Empty means no permission-mode filter.
61
- */
62
- permissionMode?: Array<components.PermissionMode> | undefined;
63
- /**
64
- * When true, embed each key's api-key-scoped budget (config and limits
65
- *
66
- * @remarks
67
- * only, no live usage) on the returned records. Adds one budget lookup
68
- * for the page; omit to skip it.
69
- */
70
- includeBudget?: boolean | undefined;
29
+ source?: QueryParamSource | undefined;
71
30
  };
72
31
 
32
+ /** @internal */
33
+ export const QueryParamSource$outboundSchema: z.ZodNativeEnum<
34
+ typeof QueryParamSource
35
+ > = z.nativeEnum(QueryParamSource);
36
+
73
37
  /** @internal */
74
38
  export type ApiKeyListRequest$Outbound = {
75
- limit?: number | undefined;
76
- starting_after?: string | undefined;
77
- ending_before?: string | undefined;
78
39
  project_id?: string | undefined;
79
- status?: string | undefined;
80
- search?: string | undefined;
81
- owner_type?: Array<string> | undefined;
82
- permission_mode?: Array<string> | undefined;
83
- include_budget?: boolean | undefined;
40
+ source?: string | undefined;
84
41
  };
85
42
 
86
43
  /** @internal */
@@ -89,23 +46,11 @@ export const ApiKeyListRequest$outboundSchema: z.ZodType<
89
46
  z.ZodTypeDef,
90
47
  ApiKeyListRequest
91
48
  > = z.object({
92
- limit: z.number().int().optional(),
93
- startingAfter: z.string().optional(),
94
- endingBefore: z.string().optional(),
95
49
  projectId: z.string().optional(),
96
- status: components.ApiKeyStatus$outboundSchema.optional(),
97
- search: z.string().optional(),
98
- ownerType: z.array(components.OwnerType$outboundSchema).optional(),
99
- permissionMode: z.array(components.PermissionMode$outboundSchema).optional(),
100
- includeBudget: z.boolean().optional(),
50
+ source: QueryParamSource$outboundSchema.optional(),
101
51
  }).transform((v) => {
102
52
  return remap$(v, {
103
- startingAfter: "starting_after",
104
- endingBefore: "ending_before",
105
53
  projectId: "project_id",
106
- ownerType: "owner_type",
107
- permissionMode: "permission_mode",
108
- includeBudget: "include_budget",
109
54
  });
110
55
  });
111
56
 
@@ -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_01M346Z17DR3MMF92MV55R2NF7"),
1578
+ _id: z.string().default("tool_01M36HS46YTMFF82XMFE9B62KA"),
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_01M346Z17CXDBT7GVAJDWDV46P"),
1764
+ _id: z.string().default("tool_01M36HS46XT7NW4RCNVZK9WDST"),
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_01M346Z17A9VPC95R1NNR2PRA4"),
1857
+ _id: z.string().default("tool_01M36HS46WVS5SJMRJGGG4K299"),
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_01M346Z17AJ1J5FDXDVQJFDPM5"),
1958
+ _id: z.string().default("tool_01M36HS46WCEK5PGQXPXCMA4G1"),
1959
1959
  path: z.string(),
1960
1960
  key: z.string(),
1961
1961
  display_name: z.string().optional(),
@@ -7,21 +7,21 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type FileListRequest = {
9
9
  /**
10
- * Page size. Unset uses the server default.
10
+ * Page size, 1-200. Unset uses the server default.
11
11
  */
12
12
  limit?: number | undefined;
13
13
  /**
14
14
  * Cursor for forward pagination. Set to the `file_id` of the last item
15
15
  *
16
16
  * @remarks
17
- * from the previous page.
17
+ * from the previous page. Mutually exclusive with `ending_before`.
18
18
  */
19
19
  startingAfter?: string | undefined;
20
20
  /**
21
21
  * Cursor for backward pagination. Set to the `file_id` of the first item
22
22
  *
23
23
  * @remarks
24
- * from the previous page.
24
+ * from the previous page. Mutually exclusive with `starting_after`.
25
25
  */
26
26
  endingBefore?: string | undefined;
27
27
  projectId?: string | undefined;
@@ -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_01M346Z178JH9Q15BPHKRXRVQQ"),
642
+ _id: z.string().default("tool_01M36HS46Q5D9KVPER8VSRFJYX"),
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_01M346Z177WWQP3YD6JHZ2DNJT"),
824
+ _id: z.string().default("tool_01M36HS46P1VDBB6Q489C3WXBN"),
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_01M346Z177Y43FVQS2EVC2X8DF"),
917
+ _id: z.string().default("tool_01M36HS46PT6V62KQB6462NJKF"),
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_01M346Z176N7GH4VS93ZXQQ7RK"),
1015
+ _id: z.string().default("tool_01M36HS46NMBX4GS6A1RCQPDWK"),
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-22T09:25:41.511Z",
143
+ "2026-09-23T07:13:09.371Z",
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-22T09:25:41.511Z",
188
+ "2026-09-23T07:13:09.371Z",
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-22T09:25:41.511Z",
144
+ "2026-09-23T07:13:09.371Z",
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-22T09:25:41.511Z",
189
+ "2026-09-23T07:13:09.371Z",
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";
@@ -14,14 +14,14 @@ export type ModelCatalogListRequest = {
14
14
  * Cursor for forward pagination. Set to the `id` of the last item from
15
15
  *
16
16
  * @remarks
17
- * the previous page.
17
+ * the previous page. Mutually exclusive with `ending_before`.
18
18
  */
19
19
  startingAfter?: string | undefined;
20
20
  /**
21
21
  * Cursor for backward pagination. Set to the `id` of the first item
22
22
  *
23
23
  * @remarks
24
- * from the previous page.
24
+ * from the previous page. Mutually exclusive with `starting_after`.
25
25
  */
26
26
  endingBefore?: string | undefined;
27
27
  /**
@@ -21,14 +21,14 @@ export type ModelCatalogListOfferingsRequest = {
21
21
  * Cursor for forward pagination. Set to the `id` of the last item from
22
22
  *
23
23
  * @remarks
24
- * the previous page.
24
+ * the previous page. Mutually exclusive with `ending_before`.
25
25
  */
26
26
  startingAfter?: string | undefined;
27
27
  /**
28
28
  * Cursor for backward pagination. Set to the `id` of the first item
29
29
  *
30
30
  * @remarks
31
- * from the previous page.
31
+ * from the previous page. Mutually exclusive with `starting_after`.
32
32
  */
33
33
  endingBefore?: string | undefined;
34
34
  /**
@@ -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-22T09:25:41.511Z",
321
+ "2026-09-23T07:13:09.371Z",
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-22T09:25:41.511Z",
367
+ "2026-09-23T07:13:09.371Z",
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-22T09:25:46.896Z"))
248
+ reviewedAt: z.date().default(() => new Date("2026-09-23T07:13:16.556Z"))
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-22T09:25:46.896Z"))
302
+ reviewedAt: z.date().default(() => new Date("2026-09-23T07:13:16.556Z"))
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-22T09:25:46.896Z"))
356
+ reviewedAt: z.date().default(() => new Date("2026-09-23T07:13:16.556Z"))
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-22T09:25:46.896Z"))
408
+ reviewedAt: z.date().default(() => new Date("2026-09-23T07:13:16.556Z"))
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-22T09:25:41.511Z",
274
+ "2026-09-23T07:13:09.371Z",
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-22T09:25:41.511Z",
319
+ "2026-09-23T07:13:09.371Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),