@orq-ai/node 4.15.9 → 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
@@ -1,116 +0,0 @@
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 { AccessLevel, AccessLevel$outboundSchema } from "./accesslevel.js";
8
- import {
9
- ApiKeyOwner,
10
- ApiKeyOwner$Outbound,
11
- ApiKeyOwner$outboundSchema,
12
- } from "./apikeyowner.js";
13
- import {
14
- McpAccess,
15
- McpAccess$Outbound,
16
- McpAccess$outboundSchema,
17
- } from "./mcpaccess.js";
18
- import {
19
- PermissionMode,
20
- PermissionMode$outboundSchema,
21
- } from "./permissionmode.js";
22
- import {
23
- ProjectScope,
24
- ProjectScope$Outbound,
25
- ProjectScope$outboundSchema,
26
- } from "./projectscope.js";
27
-
28
- export type CreateApiKeyRequest = {
29
- /**
30
- * Human-readable name. Required.
31
- */
32
- name: string;
33
- /**
34
- * Owner attribution. Defaults to service_account when omitted.
35
- */
36
- owner?: ApiKeyOwner | undefined;
37
- /**
38
- * Project authorization scope. Defaults to all-projects when omitted.
39
- */
40
- projectScope?: ProjectScope | undefined;
41
- permissionMode: PermissionMode;
42
- /**
43
- * Per-domain access map. Required when `permission_mode` =
44
- *
45
- * @remarks
46
- * `PERMISSION_MODE_RESTRICTED`. See `ApiKey.access` for the full
47
- * catalog of valid keys (Domain.id) and AccessLevel string values,
48
- * or fetch the live catalog via the capability catalog endpoint.
49
- */
50
- access?: { [k: string]: AccessLevel } | undefined;
51
- /**
52
- * Optional expiration. When set, the authenticate hot-path rejects
53
- *
54
- * @remarks
55
- * the key once `expires_at` is in the past. Unset means the key
56
- * never expires.
57
- */
58
- expiresAt?: Date | undefined;
59
- /**
60
- * Optional MCP-gateway access restriction. Unset means no
61
- *
62
- * @remarks
63
- * restriction. See McpAccess for the deny_all / allow-list semantics.
64
- */
65
- mcpAccess?: McpAccess | undefined;
66
- /**
67
- * Optional attribution labels (at most 10; keys `^[a-z0-9_.-]{1,32}$`,
68
- *
69
- * @remarks
70
- * values up to 64 characters). See ApiKey.labels.
71
- */
72
- labels?: { [k: string]: string } | undefined;
73
- };
74
-
75
- /** @internal */
76
- export type CreateApiKeyRequest$Outbound = {
77
- name: string;
78
- owner?: ApiKeyOwner$Outbound | undefined;
79
- project_scope?: ProjectScope$Outbound | undefined;
80
- permission_mode: string;
81
- access?: { [k: string]: string } | undefined;
82
- expires_at?: string | undefined;
83
- mcp_access?: McpAccess$Outbound | undefined;
84
- labels?: { [k: string]: string } | undefined;
85
- };
86
-
87
- /** @internal */
88
- export const CreateApiKeyRequest$outboundSchema: z.ZodType<
89
- CreateApiKeyRequest$Outbound,
90
- z.ZodTypeDef,
91
- CreateApiKeyRequest
92
- > = z.object({
93
- name: z.string(),
94
- owner: ApiKeyOwner$outboundSchema.optional(),
95
- projectScope: ProjectScope$outboundSchema.optional(),
96
- permissionMode: PermissionMode$outboundSchema,
97
- access: z.record(AccessLevel$outboundSchema).optional(),
98
- expiresAt: z.date().transform(v => v.toISOString()).optional(),
99
- mcpAccess: McpAccess$outboundSchema.optional(),
100
- labels: z.record(z.string()).optional(),
101
- }).transform((v) => {
102
- return remap$(v, {
103
- projectScope: "project_scope",
104
- permissionMode: "permission_mode",
105
- expiresAt: "expires_at",
106
- mcpAccess: "mcp_access",
107
- });
108
- });
109
-
110
- export function createApiKeyRequestToJSON(
111
- createApiKeyRequest: CreateApiKeyRequest,
112
- ): string {
113
- return JSON.stringify(
114
- CreateApiKeyRequest$outboundSchema.parse(createApiKeyRequest),
115
- );
116
- }
@@ -1,17 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- export const DomainGroup = {
9
- DomainGroupWorkspaceAdmin: "DOMAIN_GROUP_WORKSPACE_ADMIN",
10
- DomainGroupPlatform: "DOMAIN_GROUP_PLATFORM",
11
- DomainGroupGateway: "DOMAIN_GROUP_GATEWAY",
12
- } as const;
13
- export type DomainGroup = ClosedEnum<typeof DomainGroup>;
14
-
15
- /** @internal */
16
- export const DomainGroup$inboundSchema: z.ZodNativeEnum<typeof DomainGroup> = z
17
- .nativeEnum(DomainGroup);
@@ -1,38 +0,0 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import { Domain, Domain$inboundSchema } from "./domain.js";
10
-
11
- export type ListCapabilitiesResponse = {
12
- /**
13
- * Full capability catalog. Order is stable: workspace-admin first,
14
- *
15
- * @remarks
16
- * then platform, then gateway.
17
- */
18
- domains: Array<Domain>;
19
- };
20
-
21
- /** @internal */
22
- export const ListCapabilitiesResponse$inboundSchema: z.ZodType<
23
- ListCapabilitiesResponse,
24
- z.ZodTypeDef,
25
- unknown
26
- > = z.object({
27
- domains: z.array(Domain$inboundSchema),
28
- });
29
-
30
- export function listCapabilitiesResponseFromJSON(
31
- jsonString: string,
32
- ): SafeParseResult<ListCapabilitiesResponse, SDKValidationError> {
33
- return safeParse(
34
- jsonString,
35
- (x) => ListCapabilitiesResponse$inboundSchema.parse(JSON.parse(x)),
36
- `Failed to parse 'ListCapabilitiesResponse' from JSON`,
37
- );
38
- }
@@ -1,93 +0,0 @@
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
- /**
9
- * McpAccess optionally restricts which MCP gateways an API key may
10
- *
11
- * @remarks
12
- * reach at the data plane. It is orthogonal to permission_mode /
13
- * access: the key must still hold the `mcp_gateway.execute` verb and
14
- * project membership; McpAccess only narrows the reachable gateway set
15
- * within that grant. Human sessions and keys without an McpAccess are
16
- * unaffected.
17
- *
18
- * Semantics:
19
- * - absent, or deny_all=false with an empty allowed_mcp_gateway_ids:
20
- * no restriction — every gateway in the key's project scope is
21
- * reachable.
22
- * - deny_all=true: zero gateways are reachable. Wins over
23
- * allowed_mcp_gateway_ids.
24
- * - non-empty allowed_mcp_gateway_ids: only the listed gateway ids
25
- * are reachable. Each id must look like `mcp_gateway_<ULID>`.
26
- */
27
- export type McpAccess = {
28
- /**
29
- * When true, the key is denied every MCP gateway regardless of
30
- *
31
- * @remarks
32
- * allowed_mcp_gateway_ids.
33
- */
34
- denyAll?: boolean | undefined;
35
- /**
36
- * Allow-list of MCP gateway ids (`mcp_gateway_<ULID>`) the key may
37
- *
38
- * @remarks
39
- * reach. Ignored when deny_all is true. Empty (with deny_all=false)
40
- * means no restriction.
41
- */
42
- allowedMcpGatewayIds?: Array<string> | undefined;
43
- /**
44
- * Allow-list of MCP toolset ids (`mcp_toolset_<ULID>`) the key is
45
- *
46
- * @remarks
47
- * bound to. When non-empty, the key sees and may call only the tools
48
- * that are both exposed by the target gateway and members of the
49
- * union of these toolsets. Empty means no toolset restriction.
50
- */
51
- toolsetIds?: Array<string> | undefined;
52
- /**
53
- * Allow-list of file system ids (`fsys_<ULID>`) the key may reach over
54
- *
55
- * @remarks
56
- * the file system MCP endpoint. Ignored when deny_all is true. Empty
57
- * (with deny_all=false) means no restriction. The access mode a key
58
- * gets on a reachable file system is the file system's own
59
- * external_access, never something the key carries.
60
- */
61
- allowedFilesystemIds?: Array<string> | undefined;
62
- };
63
-
64
- /** @internal */
65
- export type McpAccess$Outbound = {
66
- deny_all?: boolean | undefined;
67
- allowed_mcp_gateway_ids?: Array<string> | undefined;
68
- toolset_ids?: Array<string> | undefined;
69
- allowed_filesystem_ids?: Array<string> | undefined;
70
- };
71
-
72
- /** @internal */
73
- export const McpAccess$outboundSchema: z.ZodType<
74
- McpAccess$Outbound,
75
- z.ZodTypeDef,
76
- McpAccess
77
- > = z.object({
78
- denyAll: z.boolean().optional(),
79
- allowedMcpGatewayIds: z.array(z.string()).optional(),
80
- toolsetIds: z.array(z.string()).optional(),
81
- allowedFilesystemIds: z.array(z.string()).optional(),
82
- }).transform((v) => {
83
- return remap$(v, {
84
- denyAll: "deny_all",
85
- allowedMcpGatewayIds: "allowed_mcp_gateway_ids",
86
- toolsetIds: "toolset_ids",
87
- allowedFilesystemIds: "allowed_filesystem_ids",
88
- });
89
- });
90
-
91
- export function mcpAccessToJSON(mcpAccess: McpAccess): string {
92
- return JSON.stringify(McpAccess$outboundSchema.parse(mcpAccess));
93
- }
@@ -1,17 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- export const OwnerType = {
9
- OwnerTypeUnspecified: "OWNER_TYPE_UNSPECIFIED",
10
- OwnerTypeUser: "OWNER_TYPE_USER",
11
- OwnerTypeServiceAccount: "OWNER_TYPE_SERVICE_ACCOUNT",
12
- } as const;
13
- export type OwnerType = ClosedEnum<typeof OwnerType>;
14
-
15
- /** @internal */
16
- export const OwnerType$outboundSchema: z.ZodNativeEnum<typeof OwnerType> = z
17
- .nativeEnum(OwnerType);
@@ -1,19 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- export const PermissionMode = {
9
- PermissionModeUnspecified: "PERMISSION_MODE_UNSPECIFIED",
10
- PermissionModeAll: "PERMISSION_MODE_ALL",
11
- PermissionModeRestricted: "PERMISSION_MODE_RESTRICTED",
12
- PermissionModeReadOnly: "PERMISSION_MODE_READ_ONLY",
13
- } as const;
14
- export type PermissionMode = ClosedEnum<typeof PermissionMode>;
15
-
16
- /** @internal */
17
- export const PermissionMode$outboundSchema: z.ZodNativeEnum<
18
- typeof PermissionMode
19
- > = z.nativeEnum(PermissionMode);
@@ -1,16 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- export const ScopeMode = {
9
- ScopeModeAll: "SCOPE_MODE_ALL",
10
- ScopeModeSingle: "SCOPE_MODE_SINGLE",
11
- } as const;
12
- export type ScopeMode = ClosedEnum<typeof ScopeMode>;
13
-
14
- /** @internal */
15
- export const ScopeMode$inboundSchema: z.ZodNativeEnum<typeof ScopeMode> = z
16
- .nativeEnum(ScopeMode);
@@ -1,25 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
-
7
- export type ServiceAccountOwner = {};
8
-
9
- /** @internal */
10
- export type ServiceAccountOwner$Outbound = {};
11
-
12
- /** @internal */
13
- export const ServiceAccountOwner$outboundSchema: z.ZodType<
14
- ServiceAccountOwner$Outbound,
15
- z.ZodTypeDef,
16
- ServiceAccountOwner
17
- > = z.object({});
18
-
19
- export function serviceAccountOwnerToJSON(
20
- serviceAccountOwner: ServiceAccountOwner,
21
- ): string {
22
- return JSON.stringify(
23
- ServiceAccountOwner$outboundSchema.parse(serviceAccountOwner),
24
- );
25
- }
@@ -1,35 +0,0 @@
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 SingleProject = {
9
- /**
10
- * Project ID this API key is scoped to.
11
- */
12
- projectId: string;
13
- };
14
-
15
- /** @internal */
16
- export type SingleProject$Outbound = {
17
- project_id: string;
18
- };
19
-
20
- /** @internal */
21
- export const SingleProject$outboundSchema: z.ZodType<
22
- SingleProject$Outbound,
23
- z.ZodTypeDef,
24
- SingleProject
25
- > = z.object({
26
- projectId: z.string(),
27
- }).transform((v) => {
28
- return remap$(v, {
29
- projectId: "project_id",
30
- });
31
- });
32
-
33
- export function singleProjectToJSON(singleProject: SingleProject): string {
34
- return JSON.stringify(SingleProject$outboundSchema.parse(singleProject));
35
- }
@@ -1,110 +0,0 @@
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 { AccessLevel, AccessLevel$outboundSchema } from "./accesslevel.js";
8
- import { ApiKeyStatus, ApiKeyStatus$outboundSchema } from "./apikeystatus.js";
9
- import {
10
- McpAccess,
11
- McpAccess$Outbound,
12
- McpAccess$outboundSchema,
13
- } from "./mcpaccess.js";
14
- import {
15
- PermissionMode,
16
- PermissionMode$outboundSchema,
17
- } from "./permissionmode.js";
18
- import {
19
- ProjectScope,
20
- ProjectScope$Outbound,
21
- ProjectScope$outboundSchema,
22
- } from "./projectscope.js";
23
-
24
- export type UpdateApiKeyRequest = {
25
- /**
26
- * New name. Omit to keep current.
27
- */
28
- name?: string | undefined;
29
- status?: ApiKeyStatus | undefined;
30
- permissionMode?: PermissionMode | undefined;
31
- /**
32
- * Replacement access map. Required when changing to
33
- *
34
- * @remarks
35
- * `PERMISSION_MODE_RESTRICTED`; ignored otherwise. Provide an empty
36
- * map to clear. See `ApiKey.access` for the full catalog of valid
37
- * keys (Domain.id) and AccessLevel string values, or fetch the
38
- * live catalog via the capability catalog endpoint.
39
- */
40
- access?: { [k: string]: AccessLevel } | undefined;
41
- /**
42
- * New project scope. Omit to keep current.
43
- */
44
- projectScope?: ProjectScope | undefined;
45
- /**
46
- * New expiration. Omit to keep current. Set `clear_expires_at = true`
47
- *
48
- * @remarks
49
- * to remove an existing expiration (a zero Timestamp here would still
50
- * mean "no change" because of optional semantics).
51
- */
52
- expiresAt?: Date | undefined;
53
- /**
54
- * Force-clear the expiration. Mutually exclusive with `expires_at`.
55
- */
56
- clearExpiresAt?: boolean | undefined;
57
- /**
58
- * Replacement MCP-gateway access restriction. Absent leaves the
59
- *
60
- * @remarks
61
- * current value intact; an explicitly-set McpAccess replaces it —
62
- * including an empty one (deny_all=false + empty list), which clears
63
- * any existing restriction. See McpAccess.
64
- */
65
- mcpAccess?: McpAccess | undefined;
66
- };
67
-
68
- /** @internal */
69
- export type UpdateApiKeyRequest$Outbound = {
70
- name?: string | undefined;
71
- status?: string | undefined;
72
- permission_mode?: string | undefined;
73
- access?: { [k: string]: string } | undefined;
74
- project_scope?: ProjectScope$Outbound | undefined;
75
- expires_at?: string | undefined;
76
- clear_expires_at?: boolean | undefined;
77
- mcp_access?: McpAccess$Outbound | undefined;
78
- };
79
-
80
- /** @internal */
81
- export const UpdateApiKeyRequest$outboundSchema: z.ZodType<
82
- UpdateApiKeyRequest$Outbound,
83
- z.ZodTypeDef,
84
- UpdateApiKeyRequest
85
- > = z.object({
86
- name: z.string().optional(),
87
- status: ApiKeyStatus$outboundSchema.optional(),
88
- permissionMode: PermissionMode$outboundSchema.optional(),
89
- access: z.record(AccessLevel$outboundSchema).optional(),
90
- projectScope: ProjectScope$outboundSchema.optional(),
91
- expiresAt: z.date().transform(v => v.toISOString()).optional(),
92
- clearExpiresAt: z.boolean().optional(),
93
- mcpAccess: McpAccess$outboundSchema.optional(),
94
- }).transform((v) => {
95
- return remap$(v, {
96
- permissionMode: "permission_mode",
97
- projectScope: "project_scope",
98
- expiresAt: "expires_at",
99
- clearExpiresAt: "clear_expires_at",
100
- mcpAccess: "mcp_access",
101
- });
102
- });
103
-
104
- export function updateApiKeyRequestToJSON(
105
- updateApiKeyRequest: UpdateApiKeyRequest,
106
- ): string {
107
- return JSON.stringify(
108
- UpdateApiKeyRequest$outboundSchema.parse(updateApiKeyRequest),
109
- );
110
- }
@@ -1,35 +0,0 @@
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 UserOwner = {
9
- /**
10
- * User ID that owns the API key.
11
- */
12
- userId: string;
13
- };
14
-
15
- /** @internal */
16
- export type UserOwner$Outbound = {
17
- user_id: string;
18
- };
19
-
20
- /** @internal */
21
- export const UserOwner$outboundSchema: z.ZodType<
22
- UserOwner$Outbound,
23
- z.ZodTypeDef,
24
- UserOwner
25
- > = z.object({
26
- userId: z.string(),
27
- }).transform((v) => {
28
- return remap$(v, {
29
- userId: "user_id",
30
- });
31
- });
32
-
33
- export function userOwnerToJSON(userOwner: UserOwner): string {
34
- return JSON.stringify(UserOwner$outboundSchema.parse(userOwner));
35
- }
@@ -1,162 +0,0 @@
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 { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type CreateDatasetRequestBody = {
12
- /**
13
- * The display name of the dataset
14
- */
15
- displayName: string;
16
- /**
17
- * Entity storage path.
18
- *
19
- * @remarks
20
- *
21
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
22
- *
23
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
24
- */
25
- path: string;
26
- };
27
-
28
- export type CreateDatasetMetadata = {
29
- totalVersions: number;
30
- datapointsCount: number;
31
- };
32
-
33
- /**
34
- * Dataset created successfully. Returns the newly created dataset object.
35
- */
36
- export type CreateDatasetResponseBody = {
37
- /**
38
- * The unique identifier of the dataset
39
- */
40
- id: string;
41
- /**
42
- * The display name of the dataset
43
- */
44
- displayName: string;
45
- /**
46
- * The unique identifier of the project it belongs to
47
- */
48
- projectId: string;
49
- /**
50
- * The unique identifier of the workspace it belongs to
51
- */
52
- workspaceId: string;
53
- metadata: CreateDatasetMetadata;
54
- /**
55
- * The unique identifier of the user who created the dataset
56
- */
57
- createdById?: string | null | undefined;
58
- /**
59
- * The unique identifier of the user who last updated the dataset
60
- */
61
- updatedById?: string | null | undefined;
62
- /**
63
- * The date and time the resource was created
64
- */
65
- created?: Date | undefined;
66
- /**
67
- * The date and time the resource was last updated
68
- */
69
- updated: Date;
70
- };
71
-
72
- /** @internal */
73
- export type CreateDatasetRequestBody$Outbound = {
74
- display_name: string;
75
- path: string;
76
- };
77
-
78
- /** @internal */
79
- export const CreateDatasetRequestBody$outboundSchema: z.ZodType<
80
- CreateDatasetRequestBody$Outbound,
81
- z.ZodTypeDef,
82
- CreateDatasetRequestBody
83
- > = z.object({
84
- displayName: z.string(),
85
- path: z.string(),
86
- }).transform((v) => {
87
- return remap$(v, {
88
- displayName: "display_name",
89
- });
90
- });
91
-
92
- export function createDatasetRequestBodyToJSON(
93
- createDatasetRequestBody: CreateDatasetRequestBody,
94
- ): string {
95
- return JSON.stringify(
96
- CreateDatasetRequestBody$outboundSchema.parse(createDatasetRequestBody),
97
- );
98
- }
99
-
100
- /** @internal */
101
- export const CreateDatasetMetadata$inboundSchema: z.ZodType<
102
- CreateDatasetMetadata,
103
- z.ZodTypeDef,
104
- unknown
105
- > = z.object({
106
- total_versions: z.number(),
107
- datapoints_count: z.number(),
108
- }).transform((v) => {
109
- return remap$(v, {
110
- "total_versions": "totalVersions",
111
- "datapoints_count": "datapointsCount",
112
- });
113
- });
114
-
115
- export function createDatasetMetadataFromJSON(
116
- jsonString: string,
117
- ): SafeParseResult<CreateDatasetMetadata, SDKValidationError> {
118
- return safeParse(
119
- jsonString,
120
- (x) => CreateDatasetMetadata$inboundSchema.parse(JSON.parse(x)),
121
- `Failed to parse 'CreateDatasetMetadata' from JSON`,
122
- );
123
- }
124
-
125
- /** @internal */
126
- export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
127
- CreateDatasetResponseBody,
128
- z.ZodTypeDef,
129
- unknown
130
- > = z.object({
131
- _id: z.string(),
132
- display_name: z.string(),
133
- project_id: z.string(),
134
- workspace_id: z.string(),
135
- metadata: z.lazy(() => CreateDatasetMetadata$inboundSchema),
136
- created_by_id: z.nullable(z.string()).optional(),
137
- updated_by_id: z.nullable(z.string()).optional(),
138
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
- .optional(),
140
- updated: z.string().datetime({ offset: true }).default(
141
- "2026-09-21T07:21:34.711Z",
142
- ).transform(v => new Date(v)),
143
- }).transform((v) => {
144
- return remap$(v, {
145
- "_id": "id",
146
- "display_name": "displayName",
147
- "project_id": "projectId",
148
- "workspace_id": "workspaceId",
149
- "created_by_id": "createdById",
150
- "updated_by_id": "updatedById",
151
- });
152
- });
153
-
154
- export function createDatasetResponseBodyFromJSON(
155
- jsonString: string,
156
- ): SafeParseResult<CreateDatasetResponseBody, SDKValidationError> {
157
- return safeParse(
158
- jsonString,
159
- (x) => CreateDatasetResponseBody$inboundSchema.parse(JSON.parse(x)),
160
- `Failed to parse 'CreateDatasetResponseBody' from JSON`,
161
- );
162
- }