@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
@@ -9,7 +9,6 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { RequestOptions } from "../lib/sdks.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as components from "../models/components/index.js";
13
12
  import {
14
13
  ConnectionError,
15
14
  InvalidRequestError,
@@ -20,6 +19,7 @@ import {
20
19
  import { OrqError } from "../models/errors/orqerror.js";
21
20
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
21
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../models/operations/index.js";
23
23
  import { APICall, APIPromise } from "../types/async.js";
24
24
  import { Result } from "../types/fp.js";
25
25
 
@@ -27,14 +27,14 @@ import { Result } from "../types/fp.js";
27
27
  * List capability catalog
28
28
  *
29
29
  * @remarks
30
- * 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.
30
+ * 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.
31
31
  */
32
32
  export function apiKeysListCapabilities(
33
33
  client: OrqCore,
34
34
  options?: RequestOptions,
35
35
  ): APIPromise<
36
36
  Result<
37
- components.ListCapabilitiesResponse,
37
+ operations.ApiKeyListCapabilitiesResponseBody,
38
38
  | OrqError
39
39
  | ResponseValidationError
40
40
  | ConnectionError
@@ -57,7 +57,7 @@ async function $do(
57
57
  ): Promise<
58
58
  [
59
59
  Result<
60
- components.ListCapabilitiesResponse,
60
+ operations.ApiKeyListCapabilitiesResponseBody,
61
61
  | OrqError
62
62
  | ResponseValidationError
63
63
  | ConnectionError
@@ -122,7 +122,7 @@ async function $do(
122
122
  const response = doResult.value;
123
123
 
124
124
  const [result] = await M.match<
125
- components.ListCapabilitiesResponse,
125
+ operations.ApiKeyListCapabilitiesResponseBody,
126
126
  | OrqError
127
127
  | ResponseValidationError
128
128
  | ConnectionError
@@ -132,7 +132,7 @@ async function $do(
132
132
  | UnexpectedClientError
133
133
  | SDKValidationError
134
134
  >(
135
- M.json(200, components.ListCapabilitiesResponse$inboundSchema),
135
+ M.json(200, operations.ApiKeyListCapabilitiesResponseBody$inboundSchema),
136
136
  M.fail("4XX"),
137
137
  M.fail("5XX"),
138
138
  )(response, req);
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Update an API key
31
31
  *
32
32
  * @remarks
33
- * 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.
33
+ * 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.
34
34
  */
35
35
  export function apiKeysUpdate(
36
36
  client: OrqCore,
@@ -85,9 +85,7 @@ async function $do(
85
85
  return [parsed, { status: "invalid" }];
86
86
  }
87
87
  const payload = parsed.value;
88
- const body = encodeJSON("body", payload.UpdateApiKeyRequest, {
89
- explode: true,
90
- });
88
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
91
89
 
92
90
  const pathParams = {
93
91
  api_key_id: encodeSimple("api_key_id", payload.api_key_id, {
@@ -160,7 +158,7 @@ async function $do(
160
158
  | SDKValidationError
161
159
  >(
162
160
  M.json(200, components.ApiKeyRestResponse$inboundSchema),
163
- M.fail("4XX"),
161
+ M.fail([400, 401, 403, 404, 409, "4XX"]),
164
162
  M.fail("5XX"),
165
163
  )(response, req);
166
164
  if (!result.ok) {
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Classify
31
31
  *
32
32
  * @remarks
33
- * **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.
33
+ * **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.
34
34
  */
35
35
  export function routerClassifyCreate(
36
36
  client: OrqCore,
package/src/lib/config.ts CHANGED
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "2.0",
61
- sdkVersion: "4.16.0-rc.12",
61
+ sdkVersion: "4.16.0-rc.14",
62
62
  genVersion: "2.938.0",
63
- userAgent: "speakeasy-sdk/typescript 4.16.0-rc.12 2.938.0 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.16.0-rc.14 2.938.0 2.0 @orq-ai/node",
64
64
  } as const;
@@ -27,7 +27,7 @@ export type ClassifyAnswer = {
27
27
  */
28
28
  choice?: string | undefined;
29
29
  /**
30
- * Probability of the selected option or level. Present for choice and score answers.
30
+ * How sure the model is of the answer it selected: on chat models the largest value in probabilities, so it adds nothing the distribution does not; typesafe/jev-latest returns its own calibrated value, which can sit below the largest probability. Present for choice and score answers.
31
31
  */
32
32
  confidence?: number | undefined;
33
33
  /**
@@ -43,7 +43,7 @@ export type ClassifyAnswer = {
43
43
  */
44
44
  probabilities?: { [k: string]: number } | undefined;
45
45
  /**
46
- * The selected level index. Present for score answers.
46
+ * Position on the scale, not an index: on chat models the weighted index, each level index multiplied by that level probability and summed, so the value is usually fractional; typesafe/jev-latest returns its own score. Present for score answers.
47
47
  */
48
48
  score?: number | undefined;
49
49
  /**
@@ -0,0 +1,32 @@
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 Constraints = {
9
+ expiresAt?: Date | undefined;
10
+ };
11
+
12
+ /** @internal */
13
+ export type Constraints$Outbound = {
14
+ expires_at?: string | undefined;
15
+ };
16
+
17
+ /** @internal */
18
+ export const Constraints$outboundSchema: z.ZodType<
19
+ Constraints$Outbound,
20
+ z.ZodTypeDef,
21
+ Constraints
22
+ > = z.object({
23
+ expiresAt: z.date().transform(v => v.toISOString()).optional(),
24
+ }).transform((v) => {
25
+ return remap$(v, {
26
+ expiresAt: "expires_at",
27
+ });
28
+ });
29
+
30
+ export function constraintsToJSON(constraints: Constraints): string {
31
+ return JSON.stringify(Constraints$outboundSchema.parse(constraints));
32
+ }
@@ -5,71 +5,74 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import { DomainGroup, DomainGroup$inboundSchema } from "./domaingroup.js";
11
- import { ScopeMode, ScopeMode$inboundSchema } from "./scopemode.js";
12
11
 
13
12
  /**
14
- * Domain describes a permission domain that can be granted to an
15
- *
16
- * @remarks
17
- * API key. Standard verbs are derived from id + group +
18
- * readable/writable; exceptional write verbs are explicit data.
13
+ * Logical group the entry belongs to.
19
14
  */
15
+ export const Group = {
16
+ DomainGroupUnspecified: "DOMAIN_GROUP_UNSPECIFIED",
17
+ DomainGroupWorkspaceAdmin: "DOMAIN_GROUP_WORKSPACE_ADMIN",
18
+ DomainGroupPlatform: "DOMAIN_GROUP_PLATFORM",
19
+ DomainGroupGateway: "DOMAIN_GROUP_GATEWAY",
20
+ } as const;
21
+ /**
22
+ * Logical group the entry belongs to.
23
+ */
24
+ export type Group = ClosedEnum<typeof Group>;
25
+
20
26
  export type Domain = {
21
27
  /**
22
- * Stable domain identifier (e.g. "agent", "chat_completions"). Used
23
- *
24
- * @remarks
25
- * as the key in ApiKey.access and as the verb prefix in resolved
26
- * permissions (e.g. agent.list, agent.view, agent.create).
28
+ * Project scopes this domain may be granted under.
29
+ */
30
+ allowedScopes: Array<string> | null;
31
+ /**
32
+ * Human-readable label.
27
33
  */
28
- id?: string | undefined;
34
+ displayName: string;
29
35
  /**
30
- * Human-readable label for the dashboard.
36
+ * Additional verbs granted only with write access.
31
37
  */
32
- displayName?: string | undefined;
33
- group?: DomainGroup | undefined;
38
+ extraWriteVerbs: Array<string> | null;
34
39
  /**
35
- * Project scopes this domain may be granted under. A workspace-
36
- *
37
- * @remarks
38
- * admin domain like `member` is typically SCOPE_MODE_ALL only.
40
+ * Logical group the entry belongs to.
39
41
  */
40
- allowedScopes?: Array<ScopeMode> | undefined;
42
+ group: Group;
41
43
  /**
42
- * Whether this domain can be granted read access.
44
+ * Stable domain identifier, used as the key in access and as the verb prefix in resolved permissions.
43
45
  */
44
- readable?: boolean | undefined;
46
+ id: string;
45
47
  /**
46
- * Whether this domain can be granted write access.
48
+ * Whether the domain can be granted read access.
47
49
  */
48
- writable?: boolean | undefined;
50
+ readable: boolean;
49
51
  /**
50
- * Additional full verb names granted only with write access. This is
51
- *
52
- * @remarks
53
- * additive to the standard group-derived verbs and intentionally does
54
- * not affect read access (e.g. "insights.run").
52
+ * Whether the domain can be granted write access.
55
53
  */
56
- extraWriteVerbs?: Array<string> | undefined;
54
+ writable: boolean;
57
55
  };
58
56
 
57
+ /** @internal */
58
+ export const Group$inboundSchema: z.ZodNativeEnum<typeof Group> = z.nativeEnum(
59
+ Group,
60
+ );
61
+
59
62
  /** @internal */
60
63
  export const Domain$inboundSchema: z.ZodType<Domain, z.ZodTypeDef, unknown> = z
61
64
  .object({
62
- id: z.string().optional(),
63
- display_name: z.string().optional(),
64
- group: DomainGroup$inboundSchema.optional(),
65
- allowed_scopes: z.array(ScopeMode$inboundSchema).optional(),
66
- readable: z.boolean().optional(),
67
- writable: z.boolean().optional(),
68
- extra_write_verbs: z.array(z.string()).optional(),
65
+ allowed_scopes: z.nullable(z.array(z.string())),
66
+ display_name: z.string(),
67
+ extra_write_verbs: z.nullable(z.array(z.string())),
68
+ group: Group$inboundSchema,
69
+ id: z.string(),
70
+ readable: z.boolean(),
71
+ writable: z.boolean(),
69
72
  }).transform((v) => {
70
73
  return remap$(v, {
71
- "display_name": "displayName",
72
74
  "allowed_scopes": "allowedScopes",
75
+ "display_name": "displayName",
73
76
  "extra_write_verbs": "extraWriteVerbs",
74
77
  });
75
78
  });
@@ -33,7 +33,6 @@ export * from "./alertquery.js";
33
33
  export * from "./alertrun.js";
34
34
  export * from "./alerttrigger.js";
35
35
  export * from "./alerttriggerevent.js";
36
- export * from "./allprojects.js";
37
36
  export * from "./annotationqueue.js";
38
37
  export * from "./annotationqueueitem.js";
39
38
  export * from "./annotationqueueitemref.js";
@@ -41,9 +40,7 @@ export * from "./annotationqueuemetadata.js";
41
40
  export * from "./apierror.js";
42
41
  export * from "./apikeybudgetscope.js";
43
42
  export * from "./apikeybudgetscoperestresponse.js";
44
- export * from "./apikeyowner.js";
45
43
  export * from "./apikeyrestresponse.js";
46
- export * from "./apikeystatus.js";
47
44
  export * from "./audiocontentpartschema.js";
48
45
  export * from "./autorouterconfig.js";
49
46
  export * from "./autorouterv2config.js";
@@ -90,6 +87,7 @@ export * from "./classifyretryconfig.js";
90
87
  export * from "./classifyusage.js";
91
88
  export * from "./codeinterpretertoolinput.js";
92
89
  export * from "./codetoolinput.js";
90
+ export * from "./constraints.js";
93
91
  export * from "./conversationparam.js";
94
92
  export * from "./countmetadata.js";
95
93
  export * from "./countwebhooksresponse.js";
@@ -97,7 +95,6 @@ export * from "./createagentresponse.js";
97
95
  export * from "./createalertrequest.js";
98
96
  export * from "./createalertresponse.js";
99
97
  export * from "./createannotationqueuerequest.js";
100
- export * from "./createapikeyrequest.js";
101
98
  export * from "./createbudgetrequest.js";
102
99
  export * from "./createbudgetresponse.js";
103
100
  export * from "./createdatasetrequest.js";
@@ -172,7 +169,6 @@ export * from "./deletewikiresponse.js";
172
169
  export * from "./detectrequest.js";
173
170
  export * from "./detectresponse.js";
174
171
  export * from "./domain.js";
175
- export * from "./domaingroup.js";
176
172
  export * from "./domainverification.js";
177
173
  export * from "./domainverificationstatus.js";
178
174
  export * from "./embeddingcacheconfig.js";
@@ -290,7 +286,6 @@ export * from "./listalerttriggersresponse.js";
290
286
  export * from "./listannotationqueueitemsresponse.js";
291
287
  export * from "./listannotationqueuesresponse.js";
292
288
  export * from "./listbudgetsresponse.js";
293
- export * from "./listcapabilitiesresponse.js";
294
289
  export * from "./listdatapointsresponse.js";
295
290
  export * from "./listdatasetsresponse.js";
296
291
  export * from "./listdomainsresponse.js";
@@ -347,7 +342,6 @@ export * from "./managementdomaingroup.js";
347
342
  export * from "./managementkey.js";
348
343
  export * from "./managementkeystatus.js";
349
344
  export * from "./managementpermissionmode.js";
350
- export * from "./mcpaccess.js";
351
345
  export * from "./mcpauthconfig.js";
352
346
  export * from "./mcpauthconfigoutput.js";
353
347
  export * from "./mcpauthtype.js";
@@ -398,12 +392,11 @@ export * from "./openaipromptcacheoptions.js";
398
392
  export * from "./orqadvisortool.js";
399
393
  export * from "./orqsidekicktool.js";
400
394
  export * from "./outputtokensdetails.js";
401
- export * from "./ownertype.js";
395
+ export * from "./owner.js";
402
396
  export * from "./parseresponse.js";
403
397
  export * from "./partdelta.js";
404
398
  export * from "./partdeltaevent.js";
405
399
  export * from "./partdoneevent.js";
406
- export * from "./permissionmode.js";
407
400
  export * from "./piiredaction.js";
408
401
  export * from "./piiredactionconfig.js";
409
402
  export * from "./piiredactionplugin.js";
@@ -543,7 +536,6 @@ export * from "./routingruleexpression.js";
543
536
  export * from "./routingrulemodel.js";
544
537
  export * from "./routingrulemodelsconfig.js";
545
538
  export * from "./routingruleplugin.js";
546
- export * from "./scopemode.js";
547
539
  export * from "./searchhubitemsresponse.js";
548
540
  export * from "./searchknowledgematch.js";
549
541
  export * from "./searchknowledgerequest.js";
@@ -561,13 +553,11 @@ export * from "./searchwikiresponse.js";
561
553
  export * from "./security.js";
562
554
  export * from "./securityconfig.js";
563
555
  export * from "./servertoolusedetails.js";
564
- export * from "./serviceaccountowner.js";
565
556
  export * from "./sessioninterval.js";
566
557
  export * from "./sharing.js";
567
558
  export * from "./sharingallprojects.js";
568
559
  export * from "./sharingselectedprojects.js";
569
560
  export * from "./sidekicktoolinput.js";
570
- export * from "./singleproject.js";
571
561
  export * from "./skill.js";
572
562
  export * from "./smartrouter.js";
573
563
  export * from "./smartrouterprofile.js";
@@ -634,7 +624,6 @@ export * from "./traceusage.js";
634
624
  export * from "./updatealertrequest.js";
635
625
  export * from "./updatealertresponse.js";
636
626
  export * from "./updateannotationqueuerequest.js";
637
- export * from "./updateapikeyrequest.js";
638
627
  export * from "./updatebudgetrequest.js";
639
628
  export * from "./updatebudgetresponse.js";
640
629
  export * from "./updatedatapointrequest.js";
@@ -678,7 +667,6 @@ export * from "./updateworkspacesettingsrequest.js";
678
667
  export * from "./updateworkspacesettingsresponse.js";
679
668
  export * from "./uploadpostpolicy.js";
680
669
  export * from "./upsertchunk.js";
681
- export * from "./userowner.js";
682
670
  export * from "./verifydomainresponse.js";
683
671
  export * from "./vertexcapabilities.js";
684
672
  export * from "./vertexconfiguration.js";
@@ -0,0 +1,35 @@
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 Owner = {
9
+ type: string;
10
+ userId?: string | undefined;
11
+ };
12
+
13
+ /** @internal */
14
+ export type Owner$Outbound = {
15
+ type: string;
16
+ user_id?: string | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const Owner$outboundSchema: z.ZodType<
21
+ Owner$Outbound,
22
+ z.ZodTypeDef,
23
+ Owner
24
+ > = z.object({
25
+ type: z.string(),
26
+ userId: z.string().optional(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ userId: "user_id",
30
+ });
31
+ });
32
+
33
+ export function ownerToJSON(owner: Owner): string {
34
+ return JSON.stringify(Owner$outboundSchema.parse(owner));
35
+ }
@@ -3,33 +3,17 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
- import {
7
- AllProjects,
8
- AllProjects$Outbound,
9
- AllProjects$outboundSchema,
10
- } from "./allprojects.js";
11
- import {
12
- SingleProject,
13
- SingleProject$Outbound,
14
- SingleProject$outboundSchema,
15
- } from "./singleproject.js";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
16
7
 
17
- /**
18
- * Project authorization scope. Single-project or all-projects.
19
- *
20
- * @remarks
21
- * Multi-project use cases are served by minting per-project keys or by
22
- * using an all-projects key with `restricted` mode.
23
- */
24
8
  export type ProjectScope = {
25
- all?: AllProjects | undefined;
26
- single?: SingleProject | undefined;
9
+ mode: string;
10
+ projectId?: string | undefined;
27
11
  };
28
12
 
29
13
  /** @internal */
30
14
  export type ProjectScope$Outbound = {
31
- all?: AllProjects$Outbound | undefined;
32
- single?: SingleProject$Outbound | undefined;
15
+ mode: string;
16
+ project_id?: string | undefined;
33
17
  };
34
18
 
35
19
  /** @internal */
@@ -38,8 +22,12 @@ export const ProjectScope$outboundSchema: z.ZodType<
38
22
  z.ZodTypeDef,
39
23
  ProjectScope
40
24
  > = z.object({
41
- all: AllProjects$outboundSchema.optional(),
42
- single: SingleProject$outboundSchema.optional(),
25
+ mode: z.string(),
26
+ projectId: z.string().optional(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ projectId: "project_id",
30
+ });
43
31
  });
44
32
 
45
33
  export function projectScopeToJSON(projectScope: ProjectScope): string {
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01m346z14scz5tepcrmd2mqyx0"),
43
+ _id: z.string().default("reasoning_01m36hs43jws1jys50wh6yp0hc"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -23,7 +23,7 @@ export type Wiki = {
23
23
  branch?: string | undefined;
24
24
  scmConnectionId?: string | undefined;
25
25
  settings?: WikiSettings | undefined;
26
- automationId?: string | undefined;
26
+ loopId?: string | undefined;
27
27
  status?: string | undefined;
28
28
  currentRunId?: string | undefined;
29
29
  lastGeneratedCommit?: string | undefined;
@@ -46,7 +46,7 @@ export const Wiki$inboundSchema: z.ZodType<Wiki, z.ZodTypeDef, unknown> = z
46
46
  branch: z.string().optional(),
47
47
  scm_connection_id: z.string().optional(),
48
48
  settings: WikiSettings$inboundSchema.optional(),
49
- automation_id: z.string().optional(),
49
+ loop_id: z.string().optional(),
50
50
  status: z.string().optional(),
51
51
  current_run_id: z.string().optional(),
52
52
  last_generated_commit: z.string().optional(),
@@ -69,7 +69,7 @@ export const Wiki$inboundSchema: z.ZodType<Wiki, z.ZodTypeDef, unknown> = z
69
69
  "display_name": "displayName",
70
70
  "repository_key": "repositoryKey",
71
71
  "scm_connection_id": "scmConnectionId",
72
- "automation_id": "automationId",
72
+ "loop_id": "loopId",
73
73
  "current_run_id": "currentRunId",
74
74
  "last_generated_commit": "lastGeneratedCommit",
75
75
  "last_generated_at": "lastGeneratedAt",
@@ -0,0 +1,116 @@
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 * as components from "../components/index.js";
9
+
10
+ /**
11
+ * Permission preset; restricted keys hold only the domains granted in access.
12
+ */
13
+ export const PermissionMode = {
14
+ All: "all",
15
+ Restricted: "restricted",
16
+ ReadOnly: "read_only",
17
+ } as const;
18
+ /**
19
+ * Permission preset; restricted keys hold only the domains granted in access.
20
+ */
21
+ export type PermissionMode = ClosedEnum<typeof PermissionMode>;
22
+
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
+ export type ApiKeyCreateRequestBody = {
36
+ /**
37
+ * Per-domain access level (none, read or write) for restricted keys; domain ids come from the capability catalog.
38
+ */
39
+ access?: { [k: string]: string } | undefined;
40
+ constraints?: components.Constraints | undefined;
41
+ /**
42
+ * Legacy expiry as an RFC 3339 timestamp; prefer constraints.expires_at.
43
+ */
44
+ expiration?: Date | undefined;
45
+ /**
46
+ * Display name of the key.
47
+ */
48
+ name: string;
49
+ owner?: components.Owner | undefined;
50
+ /**
51
+ * Permission preset; restricted keys hold only the domains granted in access.
52
+ */
53
+ permissionMode?: PermissionMode | undefined;
54
+ projectScope?: components.ProjectScope | undefined;
55
+ /**
56
+ * Legacy single-project binding; prefer project_scope.
57
+ */
58
+ 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
+ };
64
+
65
+ /** @internal */
66
+ export const PermissionMode$outboundSchema: z.ZodNativeEnum<
67
+ typeof PermissionMode
68
+ > = z.nativeEnum(PermissionMode);
69
+
70
+ /** @internal */
71
+ export const ApiKeyCreateSource$outboundSchema: z.ZodNativeEnum<
72
+ typeof ApiKeyCreateSource
73
+ > = z.nativeEnum(ApiKeyCreateSource);
74
+
75
+ /** @internal */
76
+ export type ApiKeyCreateRequestBody$Outbound = {
77
+ access?: { [k: string]: string } | undefined;
78
+ constraints?: components.Constraints$Outbound | undefined;
79
+ expiration?: string | undefined;
80
+ name: string;
81
+ owner?: components.Owner$Outbound | undefined;
82
+ permission_mode?: string | undefined;
83
+ project_scope?: components.ProjectScope$Outbound | undefined;
84
+ projects?: Array<string> | null | undefined;
85
+ source?: string | undefined;
86
+ };
87
+
88
+ /** @internal */
89
+ export const ApiKeyCreateRequestBody$outboundSchema: z.ZodType<
90
+ ApiKeyCreateRequestBody$Outbound,
91
+ z.ZodTypeDef,
92
+ ApiKeyCreateRequestBody
93
+ > = z.object({
94
+ access: z.record(z.string()).optional(),
95
+ constraints: components.Constraints$outboundSchema.optional(),
96
+ expiration: z.date().transform(v => v.toISOString()).optional(),
97
+ name: z.string(),
98
+ owner: components.Owner$outboundSchema.optional(),
99
+ permissionMode: PermissionMode$outboundSchema.optional(),
100
+ projectScope: components.ProjectScope$outboundSchema.optional(),
101
+ projects: z.nullable(z.array(z.string())).optional(),
102
+ source: ApiKeyCreateSource$outboundSchema.optional(),
103
+ }).transform((v) => {
104
+ return remap$(v, {
105
+ permissionMode: "permission_mode",
106
+ projectScope: "project_scope",
107
+ });
108
+ });
109
+
110
+ export function apiKeyCreateRequestBodyToJSON(
111
+ apiKeyCreateRequestBody: ApiKeyCreateRequestBody,
112
+ ): string {
113
+ return JSON.stringify(
114
+ ApiKeyCreateRequestBody$outboundSchema.parse(apiKeyCreateRequestBody),
115
+ );
116
+ }
@@ -7,7 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type ApiKeyDeleteRequest = {
9
9
  /**
10
- * API key id to delete.
10
+ * Unique identifier of the API key.
11
11
  */
12
12
  apiKeyId: string;
13
13
  };