@orq-ai/node 4.15.8 → 4.15.11

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 (188) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +5 -5
  8. package/models/operations/createtool.js +4 -4
  9. package/models/operations/getalltools.js +4 -4
  10. package/models/operations/getv2humanevalsets.js +2 -2
  11. package/models/operations/getv2humanevalsetsid.js +2 -2
  12. package/models/operations/listdatasetdatapoints.js +5 -5
  13. package/models/operations/listdatasets.js +1 -1
  14. package/models/operations/patchv2humanevalsetsid.js +2 -2
  15. package/models/operations/postv2feedbackevaluation.js +4 -4
  16. package/models/operations/postv2humanevalsets.js +2 -2
  17. package/models/operations/retrievedatapoint.js +5 -5
  18. package/models/operations/retrievedataset.js +1 -1
  19. package/models/operations/retrievetool.js +4 -4
  20. package/models/operations/runagent.js +1 -1
  21. package/models/operations/streamrunagent.js +1 -1
  22. package/models/operations/updatedatapoint.js +5 -5
  23. package/models/operations/updatedataset.js +1 -1
  24. package/models/operations/updatetool.js +4 -4
  25. package/package.json +6 -6
  26. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +6 -5
  27. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +1 -1
  28. package/packages/orq-rc/src/funcs/apiKeysGet.ts +3 -8
  29. package/packages/orq-rc/src/funcs/apiKeysList.ts +4 -11
  30. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +6 -6
  31. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +3 -5
  32. package/packages/orq-rc/src/funcs/datasetsClear.ts +3 -12
  33. package/packages/orq-rc/src/funcs/datasetsCreate.ts +10 -15
  34. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +8 -16
  35. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +175 -0
  36. package/packages/orq-rc/src/funcs/datasetsDelete.ts +2 -2
  37. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +2 -11
  38. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoints.ts +174 -0
  39. package/packages/orq-rc/src/funcs/datasetsList.ts +6 -5
  40. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +6 -14
  41. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +7 -15
  42. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +7 -15
  43. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +10 -16
  44. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +10 -16
  45. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +4 -7
  46. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  47. package/packages/orq-rc/src/funcs/projectsDelete.ts +1 -1
  48. package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
  49. package/packages/orq-rc/src/funcs/projectsUpdate.ts +1 -1
  50. package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +1 -1
  51. package/packages/orq-rc/src/lib/config.ts +2 -2
  52. package/packages/orq-rc/src/models/components/apikeyrestresponse.ts +1 -1
  53. package/packages/orq-rc/src/models/components/bulkcreatedatapointsrequest.ts +38 -0
  54. package/packages/orq-rc/src/models/components/classifyanswer.ts +2 -2
  55. package/packages/orq-rc/src/models/components/constraints.ts +32 -0
  56. package/packages/orq-rc/src/models/components/createdatasetrequest.ts +39 -0
  57. package/packages/orq-rc/src/models/components/datapoint1.ts +122 -0
  58. package/packages/orq-rc/src/models/components/datapointinput.ts +73 -0
  59. package/packages/orq-rc/src/models/components/dataset.ts +88 -0
  60. package/packages/orq-rc/src/models/components/datasetmetadata.ts +48 -0
  61. package/packages/orq-rc/src/models/components/datasource.ts +2 -2
  62. package/packages/orq-rc/src/models/components/datasourcesservicecreaterequest.ts +2 -2
  63. package/packages/orq-rc/src/models/components/deletedatapointsrequest.ts +36 -0
  64. package/packages/orq-rc/src/models/components/domain.ts +42 -39
  65. package/packages/orq-rc/src/models/components/extendedmessage.ts +1 -1
  66. package/packages/orq-rc/src/models/components/filesystem.ts +6 -5
  67. package/packages/orq-rc/src/models/components/hubitem.ts +2 -2
  68. package/packages/orq-rc/src/models/components/hubitemsummary.ts +1 -1
  69. package/packages/orq-rc/src/models/components/index.ts +13 -14
  70. package/packages/orq-rc/src/models/components/knowledge.ts +2 -2
  71. package/packages/orq-rc/src/models/components/knowledgechunk.ts +1 -1
  72. package/packages/orq-rc/src/models/components/listdatapointsresponse.ts +41 -0
  73. package/packages/orq-rc/src/models/components/listdatasetsresponse.ts +41 -0
  74. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +1 -1
  75. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +1 -1
  76. package/packages/orq-rc/src/models/components/memory.ts +2 -5
  77. package/packages/orq-rc/src/models/components/owner.ts +35 -0
  78. package/packages/orq-rc/src/models/components/projectscope.ts +11 -23
  79. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  80. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +3 -3
  81. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +3 -3
  82. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +3 -3
  83. package/packages/orq-rc/src/models/components/updatedatapointrequest.ts +67 -0
  84. package/packages/orq-rc/src/models/components/updatedatasetrequest.ts +40 -0
  85. package/packages/orq-rc/src/models/components/wiki.ts +3 -3
  86. package/packages/orq-rc/src/models/operations/apikeycreate.ts +116 -0
  87. package/packages/orq-rc/src/models/operations/apikeydelete.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/apikeyget.ts +1 -11
  89. package/packages/orq-rc/src/models/operations/apikeylist.ts +23 -78
  90. package/packages/orq-rc/src/models/operations/apikeylistcapabilities.ts +39 -0
  91. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +107 -5
  92. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +44 -0
  93. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -3
  94. package/packages/orq-rc/src/models/operations/createagentrequest.ts +7 -7
  95. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +9 -15
  96. package/packages/orq-rc/src/models/operations/createclassify.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/createcompletion.ts +3 -3
  98. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +13 -3238
  99. package/packages/orq-rc/src/models/operations/createimage.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/createimageedit.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/createimagevariation.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/creatererank.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +6 -6
  104. package/packages/orq-rc/src/models/operations/createspeech.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  106. package/packages/orq-rc/src/models/operations/createtranscription.ts +2 -2
  107. package/packages/orq-rc/src/models/operations/createtranslation.ts +2 -2
  108. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -6
  109. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -3
  110. package/packages/orq-rc/src/models/operations/deletedatasetdatapoints.ts +43 -0
  111. package/packages/orq-rc/src/models/operations/deployments.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/filelist.ts +3 -3
  113. package/packages/orq-rc/src/models/operations/getallmemories.ts +3 -3
  114. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +3 -3
  115. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +3 -3
  116. package/packages/orq-rc/src/models/operations/getallprompts.ts +2 -2
  117. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  118. package/packages/orq-rc/src/models/operations/getevals.ts +2 -2
  119. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +9 -9
  120. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/index.ts +4 -1
  123. package/packages/orq-rc/src/models/operations/listagents.ts +7 -7
  124. package/packages/orq-rc/src/models/operations/listchunks.ts +3 -3
  125. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2117
  126. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -173
  127. package/packages/orq-rc/src/models/operations/listdatasources.ts +3 -3
  128. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  129. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/modelcataloglist.ts +2 -2
  132. package/packages/orq-rc/src/models/operations/modelcataloglistofferings.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  134. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  135. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  136. package/packages/orq-rc/src/models/operations/projectlist.ts +2 -2
  137. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +5 -5
  138. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2003
  139. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -114
  140. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  141. package/packages/orq-rc/src/models/operations/runagent.ts +3 -3
  142. package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -3
  143. package/packages/orq-rc/src/models/operations/updateagent.ts +7 -7
  144. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +17 -3275
  145. package/packages/orq-rc/src/models/operations/updatedataset.ts +5 -170
  146. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  147. package/packages/orq-rc/src/sdk/apikeys.ts +18 -18
  148. package/packages/orq-rc/src/sdk/classify.ts +1 -1
  149. package/packages/orq-rc/src/sdk/datasets.ts +73 -36
  150. package/packages/orq-rc/src/sdk/humanreviewsets.ts +1 -1
  151. package/packages/orq-rc/src/sdk/projects.ts +4 -4
  152. package/packages/orq-rc/src/sdk/sdk.ts +10 -10
  153. package/src/lib/config.ts +2 -2
  154. package/src/models/components/reasoningpart.ts +1 -1
  155. package/src/models/operations/createdataset.ts +1 -1
  156. package/src/models/operations/createdatasetitem.ts +5 -5
  157. package/src/models/operations/createtool.ts +4 -4
  158. package/src/models/operations/getalltools.ts +4 -4
  159. package/src/models/operations/getv2humanevalsets.ts +2 -2
  160. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  161. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  162. package/src/models/operations/listdatasets.ts +1 -1
  163. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  164. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  165. package/src/models/operations/postv2humanevalsets.ts +2 -2
  166. package/src/models/operations/retrievedatapoint.ts +5 -5
  167. package/src/models/operations/retrievedataset.ts +1 -1
  168. package/src/models/operations/retrievetool.ts +4 -4
  169. package/src/models/operations/runagent.ts +1 -1
  170. package/src/models/operations/streamrunagent.ts +1 -1
  171. package/src/models/operations/updatedatapoint.ts +5 -5
  172. package/src/models/operations/updatedataset.ts +1 -1
  173. package/src/models/operations/updatetool.ts +4 -4
  174. package/packages/orq-rc/src/models/components/allprojects.ts +0 -21
  175. package/packages/orq-rc/src/models/components/apikeyowner.ts +0 -55
  176. package/packages/orq-rc/src/models/components/apikeystatus.ts +0 -18
  177. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +0 -116
  178. package/packages/orq-rc/src/models/components/domaingroup.ts +0 -17
  179. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +0 -38
  180. package/packages/orq-rc/src/models/components/mcpaccess.ts +0 -93
  181. package/packages/orq-rc/src/models/components/ownertype.ts +0 -17
  182. package/packages/orq-rc/src/models/components/permissionmode.ts +0 -19
  183. package/packages/orq-rc/src/models/components/scopemode.ts +0 -16
  184. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +0 -25
  185. package/packages/orq-rc/src/models/components/singleproject.ts +0 -35
  186. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +0 -110
  187. package/packages/orq-rc/src/models/components/userowner.ts +0 -35
  188. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
@@ -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
  };
@@ -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
 
@@ -0,0 +1,44 @@
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 * as components from "../components/index.js";
8
+
9
+ export type BulkCreateDatapointsRequest = {
10
+ datasetId: string;
11
+ bulkCreateDatapointsRequest: components.BulkCreateDatapointsRequest;
12
+ };
13
+
14
+ /** @internal */
15
+ export type BulkCreateDatapointsRequest$Outbound = {
16
+ dataset_id: string;
17
+ BulkCreateDatapointsRequest: components.BulkCreateDatapointsRequest$Outbound;
18
+ };
19
+
20
+ /** @internal */
21
+ export const BulkCreateDatapointsRequest$outboundSchema: z.ZodType<
22
+ BulkCreateDatapointsRequest$Outbound,
23
+ z.ZodTypeDef,
24
+ BulkCreateDatapointsRequest
25
+ > = z.object({
26
+ datasetId: z.string(),
27
+ bulkCreateDatapointsRequest:
28
+ components.BulkCreateDatapointsRequest$outboundSchema,
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ datasetId: "dataset_id",
32
+ bulkCreateDatapointsRequest: "BulkCreateDatapointsRequest",
33
+ });
34
+ });
35
+
36
+ export function bulkCreateDatapointsRequestToJSON(
37
+ bulkCreateDatapointsRequest: BulkCreateDatapointsRequest,
38
+ ): string {
39
+ return JSON.stringify(
40
+ BulkCreateDatapointsRequest$outboundSchema.parse(
41
+ bulkCreateDatapointsRequest,
42
+ ),
43
+ );
44
+ }
@@ -6,9 +6,6 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type ClearDatasetRequest = {
9
- /**
10
- * The unique identifier of the dataset
11
- */
12
9
  datasetId: string;
13
10
  };
14
11
 
@@ -312,7 +312,7 @@ export type ModelConfigurationCacheControl = {
312
312
  };
313
313
 
314
314
  /**
315
- * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
315
+ * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-2, randomness; the selected model may impose a lower maximum), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
316
316
  */
317
317
  export type ParametersT = {
318
318
  /**
@@ -462,7 +462,7 @@ export type ModelConfiguration2 = {
462
462
  */
463
463
  id: string;
464
464
  /**
465
- * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
465
+ * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-2, randomness; the selected model may impose a lower maximum), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
466
466
  */
467
467
  parameters?: ParametersT | undefined;
468
468
  /**
@@ -1241,14 +1241,14 @@ export type CreateAgentRequestEngine = ClosedEnum<
1241
1241
  >;
1242
1242
 
1243
1243
  /**
1244
- * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1244
+ * Agent type: internal (orq.ai-managed) or a2a (external A2A-compliant)
1245
1245
  */
1246
1246
  export const CreateAgentRequestType = {
1247
1247
  Internal: "internal",
1248
1248
  A2a: "a2a",
1249
1249
  } as const;
1250
1250
  /**
1251
- * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1251
+ * Agent type: internal (orq.ai-managed) or a2a (external A2A-compliant)
1252
1252
  */
1253
1253
  export type CreateAgentRequestType = ClosedEnum<typeof CreateAgentRequestType>;
1254
1254
 
@@ -1736,7 +1736,7 @@ export type CreateAgentRequestCacheControl = {
1736
1736
  };
1737
1737
 
1738
1738
  /**
1739
- * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
1739
+ * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-2, controls randomness; the selected model may impose a lower maximum), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
1740
1740
  */
1741
1741
  export type CreateAgentRequestParameters = {
1742
1742
  /**
@@ -2411,7 +2411,7 @@ export type Model = {
2411
2411
  */
2412
2412
  integrationId?: string | null | undefined;
2413
2413
  /**
2414
- * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
2414
+ * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-2, controls randomness; the selected model may impose a lower maximum), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
2415
2415
  */
2416
2416
  parameters?: CreateAgentRequestParameters | null | undefined;
2417
2417
  /**
@@ -2484,7 +2484,7 @@ export type CreateAgentRequestResponseBody = {
2484
2484
  source?: CreateAgentRequestSource | undefined;
2485
2485
  engine: CreateAgentRequestEngine;
2486
2486
  /**
2487
- * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
2487
+ * Agent type: internal (orq.ai-managed) or a2a (external A2A-compliant)
2488
2488
  */
2489
2489
  type: CreateAgentRequestType;
2490
2490
  role: string;
@@ -915,7 +915,7 @@ export type Inputs2 = {
915
915
  *
916
916
  * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
917
917
  */
918
- export type CreateChatCompletionInputs = { [k: string]: any } | Array<Inputs2>;
918
+ export type Inputs = { [k: string]: any } | Array<Inputs2>;
919
919
 
920
920
  export const CreateChatCompletionRouterChatCompletionsRequestRequestBodyOrqType =
921
921
  {
@@ -1379,7 +1379,7 @@ export type CreateChatCompletionLoadBalancerRouterChatCompletions1 = {
1379
1379
  };
1380
1380
 
1381
1381
  /**
1382
- * Array of models with weights for load balancing requests
1382
+ * Load balancer configuration for the request.
1383
1383
  */
1384
1384
  export type CreateChatCompletionRouterChatCompletionsLoadBalancer =
1385
1385
  CreateChatCompletionLoadBalancerRouterChatCompletions1;
@@ -1444,7 +1444,7 @@ export type Orq = {
1444
1444
  cache?: CreateChatCompletionRouterChatCompletionsCache | undefined;
1445
1445
  knowledgeBases?: Array<CreateChatCompletionKnowledgeBases> | undefined;
1446
1446
  /**
1447
- * Array of models with weights for load balancing requests
1447
+ * Load balancer configuration for the request.
1448
1448
  */
1449
1449
  loadBalancer?:
1450
1450
  | CreateChatCompletionLoadBalancerRouterChatCompletions1
@@ -3917,23 +3917,17 @@ export function inputs2ToJSON(inputs2: Inputs2): string {
3917
3917
  }
3918
3918
 
3919
3919
  /** @internal */
3920
- export type CreateChatCompletionInputs$Outbound =
3921
- | { [k: string]: any }
3922
- | Array<Inputs2$Outbound>;
3920
+ export type Inputs$Outbound = { [k: string]: any } | Array<Inputs2$Outbound>;
3923
3921
 
3924
3922
  /** @internal */
3925
- export const CreateChatCompletionInputs$outboundSchema: z.ZodType<
3926
- CreateChatCompletionInputs$Outbound,
3923
+ export const Inputs$outboundSchema: z.ZodType<
3924
+ Inputs$Outbound,
3927
3925
  z.ZodTypeDef,
3928
- CreateChatCompletionInputs
3926
+ Inputs
3929
3927
  > = z.union([z.record(z.any()), z.array(z.lazy(() => Inputs2$outboundSchema))]);
3930
3928
 
3931
- export function createChatCompletionInputsToJSON(
3932
- createChatCompletionInputs: CreateChatCompletionInputs,
3933
- ): string {
3934
- return JSON.stringify(
3935
- CreateChatCompletionInputs$outboundSchema.parse(createChatCompletionInputs),
3936
- );
3929
+ export function inputsToJSON(inputs: Inputs): string {
3930
+ return JSON.stringify(Inputs$outboundSchema.parse(inputs));
3937
3931
  }
3938
3932
 
3939
3933
  /** @internal */