@orq-ai/node 4.9.11 → 4.9.13

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/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createcontact.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createidentity.js +1 -1
  11. package/models/operations/createtool.js +6 -6
  12. package/models/operations/getalltools.js +6 -6
  13. package/models/operations/getevals.js +16 -16
  14. package/models/operations/getv2humanevalsets.js +2 -2
  15. package/models/operations/getv2humanevalsetsid.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +4 -4
  17. package/models/operations/listdatasets.js +1 -1
  18. package/models/operations/listdatasources.js +1 -1
  19. package/models/operations/listidentities.js +1 -1
  20. package/models/operations/patchv2humanevalsetsid.js +2 -2
  21. package/models/operations/postv2feedbackevaluation.js +3 -3
  22. package/models/operations/postv2humanevalsets.js +2 -2
  23. package/models/operations/retrievedatapoint.js +4 -4
  24. package/models/operations/retrievedataset.js +1 -1
  25. package/models/operations/retrievedatasource.js +1 -1
  26. package/models/operations/retrieveidentity.js +1 -1
  27. package/models/operations/retrievetool.js +6 -6
  28. package/models/operations/runagent.js +1 -1
  29. package/models/operations/streamrunagent.js +1 -1
  30. package/models/operations/updatedatapoint.js +4 -4
  31. package/models/operations/updatedataset.js +1 -1
  32. package/models/operations/updatedatasource.js +1 -1
  33. package/models/operations/updateeval.js +16 -16
  34. package/models/operations/updateidentity.js +1 -1
  35. package/models/operations/updatetool.js +7 -7
  36. package/package.json +8 -8
  37. package/packages/orq-rc/src/funcs/{reportingQuery.ts → contactsCreate.ts} +13 -13
  38. package/packages/orq-rc/src/funcs/identitiesCreate.ts +15 -10
  39. package/packages/orq-rc/src/funcs/identitiesDelete.ts +16 -7
  40. package/packages/orq-rc/src/funcs/identitiesList.ts +5 -6
  41. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +18 -6
  42. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +15 -9
  43. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  44. package/packages/orq-rc/src/funcs/projectsDelete.ts +0 -3
  45. package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
  46. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +163 -0
  47. package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
  48. package/packages/orq-rc/src/funcs/skillsDelete.ts +0 -3
  49. package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
  50. package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
  51. package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
  52. package/packages/orq-rc/src/lib/config.ts +2 -2
  53. package/packages/orq-rc/src/models/components/createprojectrequest.ts +0 -6
  54. package/packages/orq-rc/src/models/components/createprojectresponse.ts +0 -3
  55. package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -18
  56. package/packages/orq-rc/src/models/components/createskillresponse.ts +0 -3
  57. package/packages/orq-rc/src/models/components/file.ts +3 -0
  58. package/packages/orq-rc/src/models/components/getprojectresponse.ts +0 -3
  59. package/packages/orq-rc/src/models/components/getskillresponse.ts +0 -3
  60. package/packages/orq-rc/src/models/components/index.ts +0 -15
  61. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +10 -17
  62. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +0 -12
  63. package/packages/orq-rc/src/models/components/listskillsresponse.ts +0 -12
  64. package/packages/orq-rc/src/models/components/modelref.ts +0 -6
  65. package/packages/orq-rc/src/models/components/project.ts +3 -42
  66. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  67. package/packages/orq-rc/src/models/components/skill.ts +3 -37
  68. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -12
  69. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +0 -3
  70. package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -21
  71. package/packages/orq-rc/src/models/components/updateskillresponse.ts +0 -3
  72. package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
  73. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  74. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +118 -0
  75. package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
  76. package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -3
  77. package/packages/orq-rc/src/models/operations/createannotation.ts +11 -7
  78. package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
  79. package/packages/orq-rc/src/models/operations/createdataset.ts +4 -4
  80. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  81. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/createeval.ts +31 -45
  83. package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
  84. package/packages/orq-rc/src/models/operations/createknowledge.ts +9 -9
  85. package/packages/orq-rc/src/models/operations/creatememorystore.ts +3 -3
  86. package/packages/orq-rc/src/models/operations/createprompt.ts +3 -3
  87. package/packages/orq-rc/src/models/operations/createtool.ts +36 -36
  88. package/packages/orq-rc/src/models/operations/deleteidentity.ts +3 -0
  89. package/packages/orq-rc/src/models/operations/getalltools.ts +21 -21
  90. package/packages/orq-rc/src/models/operations/getevals.ts +16 -22
  91. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +6 -6
  92. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  95. package/packages/orq-rc/src/models/operations/invokeeval.ts +80 -83
  96. package/packages/orq-rc/src/models/operations/listagents.ts +3 -3
  97. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  98. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  99. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  100. package/packages/orq-rc/src/models/operations/listidentities.ts +230 -9
  101. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +6 -6
  102. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +17 -14
  104. package/packages/orq-rc/src/models/operations/postv2feedback.ts +27 -34
  105. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  106. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +17 -14
  107. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  108. package/packages/orq-rc/src/models/operations/projectdelete.ts +0 -3
  109. package/packages/orq-rc/src/models/operations/projectget.ts +0 -3
  110. package/packages/orq-rc/src/models/operations/projectlist.ts +0 -15
  111. package/packages/orq-rc/src/models/operations/projectupdate.ts +0 -3
  112. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
  113. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3 -3
  114. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  115. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  116. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  117. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +138 -3
  118. package/packages/orq-rc/src/models/operations/retrievetool.ts +21 -21
  119. package/packages/orq-rc/src/models/operations/runagent.ts +4 -4
  120. package/packages/orq-rc/src/models/operations/skilldelete.ts +0 -3
  121. package/packages/orq-rc/src/models/operations/skilllist.ts +0 -12
  122. package/packages/orq-rc/src/models/operations/skillupdate.ts +0 -3
  123. package/packages/orq-rc/src/models/operations/streamrunagent.ts +4 -4
  124. package/packages/orq-rc/src/models/operations/updateagent.ts +6 -6
  125. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  126. package/packages/orq-rc/src/models/operations/updatedataset.ts +4 -4
  127. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  128. package/packages/orq-rc/src/models/operations/updateeval.ts +23 -30
  129. package/packages/orq-rc/src/models/operations/updateidentity.ts +154 -5
  130. package/packages/orq-rc/src/models/operations/updateknowledge.ts +12 -12
  131. package/packages/orq-rc/src/models/operations/updateprompt.ts +3 -3
  132. package/packages/orq-rc/src/models/operations/updatetool.ts +37 -37
  133. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  134. package/packages/orq-rc/src/sdk/feedback.ts +8 -8
  135. package/packages/orq-rc/src/sdk/identities.ts +17 -18
  136. package/packages/orq-rc/src/sdk/projects.ts +2 -5
  137. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  138. package/packages/orq-rc/src/sdk/sdk.ts +22 -16
  139. package/packages/orq-rc/src/sdk/skills.ts +4 -7
  140. package/src/lib/config.ts +2 -2
  141. package/src/models/components/reasoningpart.ts +1 -1
  142. package/src/models/operations/createcontact.ts +1 -1
  143. package/src/models/operations/createdataset.ts +1 -1
  144. package/src/models/operations/createdatasetitem.ts +4 -4
  145. package/src/models/operations/createdatasource.ts +1 -1
  146. package/src/models/operations/createeval.ts +16 -16
  147. package/src/models/operations/createidentity.ts +1 -1
  148. package/src/models/operations/createtool.ts +6 -6
  149. package/src/models/operations/getalltools.ts +6 -6
  150. package/src/models/operations/getevals.ts +16 -16
  151. package/src/models/operations/getv2humanevalsets.ts +2 -2
  152. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  153. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  154. package/src/models/operations/listdatasets.ts +1 -1
  155. package/src/models/operations/listdatasources.ts +1 -1
  156. package/src/models/operations/listidentities.ts +1 -1
  157. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  158. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  159. package/src/models/operations/postv2humanevalsets.ts +2 -2
  160. package/src/models/operations/retrievedatapoint.ts +4 -4
  161. package/src/models/operations/retrievedataset.ts +1 -1
  162. package/src/models/operations/retrievedatasource.ts +1 -1
  163. package/src/models/operations/retrieveidentity.ts +1 -1
  164. package/src/models/operations/retrievetool.ts +6 -6
  165. package/src/models/operations/runagent.ts +1 -1
  166. package/src/models/operations/streamrunagent.ts +1 -1
  167. package/src/models/operations/updatedatapoint.ts +4 -4
  168. package/src/models/operations/updatedataset.ts +1 -1
  169. package/src/models/operations/updatedatasource.ts +1 -1
  170. package/src/models/operations/updateeval.ts +16 -16
  171. package/src/models/operations/updateidentity.ts +1 -1
  172. package/src/models/operations/updatetool.ts +7 -7
  173. package/packages/orq-rc/src/models/components/createidentityrequest.ts +0 -76
  174. package/packages/orq-rc/src/models/components/createidentityresponse.ts +0 -32
  175. package/packages/orq-rc/src/models/components/datapoint.ts +0 -60
  176. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +0 -27
  177. package/packages/orq-rc/src/models/components/filter.ts +0 -137
  178. package/packages/orq-rc/src/models/components/identity.ts +0 -83
  179. package/packages/orq-rc/src/models/components/identitymetrics.ts +0 -45
  180. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +0 -41
  181. package/packages/orq-rc/src/models/components/queryreportrequest.ts +0 -237
  182. package/packages/orq-rc/src/models/components/queryreportresponse.ts +0 -96
  183. package/packages/orq-rc/src/models/components/responsemeta.ts +0 -103
  184. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +0 -32
  185. package/packages/orq-rc/src/models/components/totals.ts +0 -34
  186. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +0 -75
  187. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +0 -32
  188. package/packages/orq-rc/src/sdk/reporting.ts +0 -27
@@ -10,20 +10,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  import { Project, Project$inboundSchema } from "./project.js";
11
11
 
12
12
  export type ListProjectsResponse = {
13
- /**
14
- * Object discriminator for list responses; always `list`.
15
- */
16
13
  object?: string | undefined;
17
- /**
18
- * Page of projects, ordered newest first.
19
- */
20
14
  data?: Array<Project> | undefined;
21
- /**
22
- * Whether more projects are available in the selected pagination
23
- *
24
- * @remarks
25
- * direction.
26
- */
27
15
  hasMore?: boolean | undefined;
28
16
  };
29
17
 
@@ -10,20 +10,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  import { Skill, Skill$inboundSchema } from "./skill.js";
11
11
 
12
12
  export type ListSkillsResponse = {
13
- /**
14
- * Object discriminator for list responses; always `list`.
15
- */
16
13
  object?: string | undefined;
17
- /**
18
- * Page of skills, ordered newest first.
19
- */
20
14
  data?: Array<Skill> | undefined;
21
- /**
22
- * Whether more skills are available in the selected pagination
23
- *
24
- * @remarks
25
- * direction.
26
- */
27
15
  hasMore?: boolean | undefined;
28
16
  };
29
17
 
@@ -9,7 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type ModelRef = {
12
- displayName?: string | undefined;
13
12
  integrationId?: string | undefined;
14
13
  model: string;
15
14
  weight?: number | undefined;
@@ -21,19 +20,16 @@ export const ModelRef$inboundSchema: z.ZodType<
21
20
  z.ZodTypeDef,
22
21
  unknown
23
22
  > = z.object({
24
- display_name: z.string().optional(),
25
23
  integration_id: z.string().optional(),
26
24
  model: z.string(),
27
25
  weight: z.number().optional(),
28
26
  }).transform((v) => {
29
27
  return remap$(v, {
30
- "display_name": "displayName",
31
28
  "integration_id": "integrationId",
32
29
  });
33
30
  });
34
31
  /** @internal */
35
32
  export type ModelRef$Outbound = {
36
- display_name?: string | undefined;
37
33
  integration_id?: string | undefined;
38
34
  model: string;
39
35
  weight?: number | undefined;
@@ -45,13 +41,11 @@ export const ModelRef$outboundSchema: z.ZodType<
45
41
  z.ZodTypeDef,
46
42
  ModelRef
47
43
  > = z.object({
48
- displayName: z.string().optional(),
49
44
  integrationId: z.string().optional(),
50
45
  model: z.string(),
51
46
  weight: z.number().optional(),
52
47
  }).transform((v) => {
53
48
  return remap$(v, {
54
- displayName: "display_name",
55
49
  integrationId: "integration_id",
56
50
  });
57
51
  });
@@ -9,57 +9,16 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type Project = {
12
- /**
13
- * Unique project identifier assigned by ORQ. Use this value in
14
- *
15
- * @remarks
16
- * retrieve, update, and delete requests.
17
- */
18
12
  projectId?: string | undefined;
19
- /**
20
- * Human-readable project name.
21
- */
22
13
  name?: string | undefined;
23
- /**
24
- * Stable project key generated from the name and used by internal
25
- *
26
- * @remarks
27
- * workspace navigation.
28
- */
29
14
  key?: string | undefined;
30
- /**
31
- * Whether the project is archived and hidden from normal active
32
- *
33
- * @remarks
34
- * project lists.
35
- */
15
+ workspaceId?: string | undefined;
36
16
  isArchived?: boolean | undefined;
37
- /**
38
- * Whether this is the workspace default project.
39
- */
40
17
  isDefault?: boolean | undefined;
41
- /**
42
- * Team identifiers associated with the project for access and
43
- *
44
- * @remarks
45
- * organization.
46
- */
47
18
  teams?: Array<string> | undefined;
48
- /**
49
- * Time when the project was created.
50
- */
51
19
  createdAt?: Date | undefined;
52
- /**
53
- * Time when the project was last updated.
54
- */
55
20
  updatedAt?: Date | undefined;
56
- /**
57
- * User ID that created the project.
58
- */
59
21
  createdById?: string | undefined;
60
- /**
61
- * User ID that last updated the project.
62
- */
63
22
  updatedById?: string | undefined;
64
23
  };
65
24
 
@@ -69,6 +28,7 @@ export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
69
28
  project_id: z.string().optional(),
70
29
  name: z.string().optional(),
71
30
  key: z.string().optional(),
31
+ workspace_id: z.string().optional(),
72
32
  is_archived: z.boolean().optional(),
73
33
  is_default: z.boolean().optional(),
74
34
  teams: z.array(z.string()).optional(),
@@ -83,6 +43,7 @@ export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
83
43
  }).transform((v) => {
84
44
  return remap$(v, {
85
45
  "project_id": "projectId",
46
+ "workspace_id": "workspaceId",
86
47
  "is_archived": "isArchived",
87
48
  "is_default": "isDefault",
88
49
  "created_at": "createdAt",
@@ -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_01krzw3pzppsxwhwtvqgbhqdvn"),
43
+ _id: z.string().default("reasoning_01ks0arypeqctv4tqd6cvfeqtv"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -9,53 +9,17 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type Skill = {
12
- /**
13
- * Unique skill identifier assigned by ORQ, for example
14
- *
15
- * @remarks
16
- * `skill_01H...`. Use this value in retrieve, update, and delete
17
- * requests.
18
- */
19
12
  skillId?: string | undefined;
20
- /**
21
- * Workspace-unique display name. Must start with a letter and may contain letters, numbers, underscores, and hyphens.
22
- */
23
13
  displayName?: string | undefined;
24
- /**
25
- * Short human-readable summary of what the skill is for.
26
- */
27
14
  description?: string | undefined;
28
- /**
29
- * Free-form labels used for organization and filtering in clients.
30
- */
31
15
  tags?: Array<string> | undefined;
32
- /**
33
- * Project that owns or contains the skill.
34
- */
35
16
  projectId?: string | undefined;
36
- /**
37
- * Project path where the skill is stored in the workspace.
38
- */
39
17
  path?: string | undefined;
40
- /**
41
- * Time when the skill was created.
42
- */
18
+ workspaceId?: string | undefined;
43
19
  createdAt?: Date | undefined;
44
- /**
45
- * Time when the skill was last updated.
46
- */
47
20
  updatedAt?: Date | undefined;
48
- /**
49
- * User ID that created the skill.
50
- */
51
21
  createdById?: string | undefined;
52
- /**
53
- * User ID that last updated the skill.
54
- */
55
22
  updatedById?: string | undefined;
56
- /**
57
- * Instruction body executed or reused by clients that load this skill.
58
- */
59
23
  instructions?: string | undefined;
60
24
  /**
61
25
  * Latest semver assigned by the activity log. Stamped on the document
@@ -76,6 +40,7 @@ export const Skill$inboundSchema: z.ZodType<Skill, z.ZodTypeDef, unknown> = z
76
40
  tags: z.array(z.string()).optional(),
77
41
  project_id: z.string().optional(),
78
42
  path: z.string().optional(),
43
+ workspace_id: z.string().optional(),
79
44
  created_at: z.string().datetime({ offset: true }).transform(v =>
80
45
  new Date(v)
81
46
  ).optional(),
@@ -91,6 +56,7 @@ export const Skill$inboundSchema: z.ZodType<Skill, z.ZodTypeDef, unknown> = z
91
56
  "skill_id": "skillId",
92
57
  "display_name": "displayName",
93
58
  "project_id": "projectId",
59
+ "workspace_id": "workspaceId",
94
60
  "created_at": "createdAt",
95
61
  "updated_at": "updatedAt",
96
62
  "created_by_id": "createdById",
@@ -6,20 +6,8 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type UpdateProjectRequest = {
9
- /**
10
- * Project ID to update.
11
- */
12
9
  projectId?: string | undefined;
13
- /**
14
- * New project name. Omit to keep the current name.
15
- */
16
10
  name?: string | undefined;
17
- /**
18
- * Replacement list of team identifiers associated with the project.
19
- *
20
- * @remarks
21
- * Leave empty to remove all team associations.
22
- */
23
11
  teams?: Array<string> | undefined;
24
12
  };
25
13
 
@@ -9,9 +9,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import { Project, Project$inboundSchema } from "./project.js";
10
10
 
11
11
  export type UpdateProjectResponse = {
12
- /**
13
- * Updated project.
14
- */
15
12
  project?: Project | undefined;
16
13
  };
17
14
 
@@ -6,33 +6,12 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type UpdateSkillRequest = {
9
- /**
10
- * Skill ID to update.
11
- */
12
9
  skillId?: string | undefined;
13
- /**
14
- * New workspace-unique display name. Omit to keep the current name.
15
- */
16
10
  displayName?: string | undefined;
17
- /**
18
- * New description. Omit to keep the current description.
19
- */
20
11
  description?: string | undefined;
21
- /**
22
- * Replacement tag list. Leave empty to clear tags.
23
- */
24
12
  tags?: Array<string> | undefined;
25
- /**
26
- * New project path. Omit to keep the current path.
27
- */
28
13
  path?: string | undefined;
29
- /**
30
- * New instruction body. Omit to keep the current instructions.
31
- */
32
14
  instructions?: string | undefined;
33
- /**
34
- * New containing project. Omit to keep the current project.
35
- */
36
15
  projectId?: string | undefined;
37
16
  };
38
17
 
@@ -9,9 +9,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import { Skill, Skill$inboundSchema } from "./skill.js";
10
10
 
11
11
  export type UpdateSkillResponse = {
12
- /**
13
- * Updated skill.
14
- */
15
12
  skill?: Skill | undefined;
16
13
  };
17
14
 
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { OrqError } from "./orqerror.js";
7
+
8
+ /**
9
+ * Identity not found
10
+ */
11
+ export type DeleteIdentityResponseBodyData = {
12
+ /**
13
+ * Error message
14
+ */
15
+ error: string;
16
+ };
17
+
18
+ /**
19
+ * Identity not found
20
+ */
21
+ export class DeleteIdentityResponseBody extends OrqError {
22
+ /**
23
+ * Error message
24
+ */
25
+ error: string;
26
+
27
+ /** The original data that was passed to this error instance. */
28
+ data$: DeleteIdentityResponseBodyData;
29
+
30
+ constructor(
31
+ err: DeleteIdentityResponseBodyData,
32
+ httpMeta: { response: Response; request: Request; body: string },
33
+ ) {
34
+ const message = "message" in err && typeof err.message === "string"
35
+ ? err.message
36
+ : `API error occurred: ${JSON.stringify(err)}`;
37
+ super(message, httpMeta);
38
+ this.data$ = err;
39
+ this.error = err.error;
40
+
41
+ this.name = "DeleteIdentityResponseBody";
42
+ }
43
+ }
44
+
45
+ /** @internal */
46
+ export const DeleteIdentityResponseBody$inboundSchema: z.ZodType<
47
+ DeleteIdentityResponseBody,
48
+ z.ZodTypeDef,
49
+ unknown
50
+ > = z.object({
51
+ error: z.string(),
52
+ request$: z.instanceof(Request),
53
+ response$: z.instanceof(Response),
54
+ body$: z.string(),
55
+ })
56
+ .transform((v) => {
57
+ return new DeleteIdentityResponseBody(v, {
58
+ request: v.request$,
59
+ response: v.response$,
60
+ body: v.body$,
61
+ });
62
+ });
@@ -11,6 +11,7 @@ export * from "./createtranslation.js";
11
11
  export * from "./deleteagent.js";
12
12
  export * from "./deleteagentschedule.js";
13
13
  export * from "./deleteeval.js";
14
+ export * from "./deleteidentity.js";
14
15
  export * from "./deleteprompt.js";
15
16
  export * from "./getevals.js";
16
17
  export * from "./getpromptversion.js";
@@ -28,6 +29,7 @@ export * from "./postv2feedbackremove.js";
28
29
  export * from "./responsevalidationerror.js";
29
30
  export * from "./retrieveagentrequest.js";
30
31
  export * from "./retrieveagentschedule.js";
32
+ export * from "./retrieveidentity.js";
31
33
  export * from "./sdkvalidationerror.js";
32
34
  export * from "./streamagent.js";
33
35
  export * from "./streamrunagent.js";
@@ -35,5 +37,6 @@ export * from "./triggeragentschedule.js";
35
37
  export * from "./updateagent.js";
36
38
  export * from "./updateagentschedule.js";
37
39
  export * from "./updateeval.js";
40
+ export * from "./updateidentity.js";
38
41
  export * from "./updateprompt.js";
39
42
  export * from "./updatetool.js";
@@ -0,0 +1,118 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { OrqError } from "./orqerror.js";
7
+
8
+ /**
9
+ * Failed to fetch metrics
10
+ */
11
+ export type RetrieveIdentityIdentitiesResponseBodyData = {
12
+ /**
13
+ * Error message
14
+ */
15
+ error: string;
16
+ };
17
+
18
+ /**
19
+ * Failed to fetch metrics
20
+ */
21
+ export class RetrieveIdentityIdentitiesResponseBody extends OrqError {
22
+ /**
23
+ * Error message
24
+ */
25
+ error: string;
26
+
27
+ /** The original data that was passed to this error instance. */
28
+ data$: RetrieveIdentityIdentitiesResponseBodyData;
29
+
30
+ constructor(
31
+ err: RetrieveIdentityIdentitiesResponseBodyData,
32
+ httpMeta: { response: Response; request: Request; body: string },
33
+ ) {
34
+ const message = "message" in err && typeof err.message === "string"
35
+ ? err.message
36
+ : `API error occurred: ${JSON.stringify(err)}`;
37
+ super(message, httpMeta);
38
+ this.data$ = err;
39
+ this.error = err.error;
40
+
41
+ this.name = "RetrieveIdentityIdentitiesResponseBody";
42
+ }
43
+ }
44
+
45
+ /**
46
+ * Identity not found
47
+ */
48
+ export type RetrieveIdentityResponseBodyData = {
49
+ /**
50
+ * Error message
51
+ */
52
+ error: string;
53
+ };
54
+
55
+ /**
56
+ * Identity not found
57
+ */
58
+ export class RetrieveIdentityResponseBody extends OrqError {
59
+ /**
60
+ * Error message
61
+ */
62
+ error: string;
63
+
64
+ /** The original data that was passed to this error instance. */
65
+ data$: RetrieveIdentityResponseBodyData;
66
+
67
+ constructor(
68
+ err: RetrieveIdentityResponseBodyData,
69
+ httpMeta: { response: Response; request: Request; body: string },
70
+ ) {
71
+ const message = "message" in err && typeof err.message === "string"
72
+ ? err.message
73
+ : `API error occurred: ${JSON.stringify(err)}`;
74
+ super(message, httpMeta);
75
+ this.data$ = err;
76
+ this.error = err.error;
77
+
78
+ this.name = "RetrieveIdentityResponseBody";
79
+ }
80
+ }
81
+
82
+ /** @internal */
83
+ export const RetrieveIdentityIdentitiesResponseBody$inboundSchema: z.ZodType<
84
+ RetrieveIdentityIdentitiesResponseBody,
85
+ z.ZodTypeDef,
86
+ unknown
87
+ > = z.object({
88
+ error: z.string(),
89
+ request$: z.instanceof(Request),
90
+ response$: z.instanceof(Response),
91
+ body$: z.string(),
92
+ })
93
+ .transform((v) => {
94
+ return new RetrieveIdentityIdentitiesResponseBody(v, {
95
+ request: v.request$,
96
+ response: v.response$,
97
+ body: v.body$,
98
+ });
99
+ });
100
+
101
+ /** @internal */
102
+ export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
103
+ RetrieveIdentityResponseBody,
104
+ z.ZodTypeDef,
105
+ unknown
106
+ > = z.object({
107
+ error: z.string(),
108
+ request$: z.instanceof(Request),
109
+ response$: z.instanceof(Response),
110
+ body$: z.string(),
111
+ })
112
+ .transform((v) => {
113
+ return new RetrieveIdentityResponseBody(v, {
114
+ request: v.request$,
115
+ response: v.response$,
116
+ body: v.body$,
117
+ });
118
+ });
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { OrqError } from "./orqerror.js";
7
+
8
+ /**
9
+ * Identity not found
10
+ */
11
+ export type UpdateIdentityResponseBodyData = {
12
+ /**
13
+ * Error message
14
+ */
15
+ message: string;
16
+ };
17
+
18
+ /**
19
+ * Identity not found
20
+ */
21
+ export class UpdateIdentityResponseBody extends OrqError {
22
+ /** The original data that was passed to this error instance. */
23
+ data$: UpdateIdentityResponseBodyData;
24
+
25
+ constructor(
26
+ err: UpdateIdentityResponseBodyData,
27
+ httpMeta: { response: Response; request: Request; body: string },
28
+ ) {
29
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
30
+ super(message, httpMeta);
31
+ this.data$ = err;
32
+
33
+ this.name = "UpdateIdentityResponseBody";
34
+ }
35
+ }
36
+
37
+ /** @internal */
38
+ export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
39
+ UpdateIdentityResponseBody,
40
+ z.ZodTypeDef,
41
+ unknown
42
+ > = z.object({
43
+ message: z.string(),
44
+ request$: z.instanceof(Request),
45
+ response$: z.instanceof(Response),
46
+ body$: z.string(),
47
+ })
48
+ .transform((v) => {
49
+ return new UpdateIdentityResponseBody(v, {
50
+ request: v.request$,
51
+ response: v.response$,
52
+ body: v.body$,
53
+ });
54
+ });
@@ -2577,13 +2577,13 @@ export type CreateAgentRequestResponseBody = {
2577
2577
  */
2578
2578
  version?: string | undefined;
2579
2579
  /**
2580
- * Entity storage path.
2580
+ * Entity storage path in the format: `project/folder/subfolder/...`
2581
2581
  *
2582
2582
  * @remarks
2583
2583
  *
2584
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
2584
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
2585
2585
  *
2586
- * 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.
2586
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
2587
2587
  */
2588
2588
  path: string;
2589
2589
  /**
@@ -8,7 +8,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
8
8
  /**
9
9
  * The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For text/correction, provide a string.
10
10
  */
11
- export type Value = string | number | Array<string>;
11
+ export type CreateAnnotationValue = string | number | Array<string>;
12
12
 
13
13
  export type Annotations = {
14
14
  /**
@@ -43,17 +43,21 @@ export type CreateAnnotationRequest = {
43
43
  };
44
44
 
45
45
  /** @internal */
46
- export type Value$Outbound = string | number | Array<string>;
46
+ export type CreateAnnotationValue$Outbound = string | number | Array<string>;
47
47
 
48
48
  /** @internal */
49
- export const Value$outboundSchema: z.ZodType<
50
- Value$Outbound,
49
+ export const CreateAnnotationValue$outboundSchema: z.ZodType<
50
+ CreateAnnotationValue$Outbound,
51
51
  z.ZodTypeDef,
52
- Value
52
+ CreateAnnotationValue
53
53
  > = z.union([z.string(), z.number(), z.array(z.string())]);
54
54
 
55
- export function valueToJSON(value: Value): string {
56
- return JSON.stringify(Value$outboundSchema.parse(value));
55
+ export function createAnnotationValueToJSON(
56
+ createAnnotationValue: CreateAnnotationValue,
57
+ ): string {
58
+ return JSON.stringify(
59
+ CreateAnnotationValue$outboundSchema.parse(createAnnotationValue),
60
+ );
57
61
  }
58
62
 
59
63
  /** @internal */