@orq-ai/node 4.15.0-rc.47 → 4.15.0-rc.49

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 (123) hide show
  1. package/README.md +1 -1
  2. package/funcs/annotationQueuesAddItems.d.ts +1 -1
  3. package/funcs/annotationQueuesAddItems.d.ts.map +1 -1
  4. package/funcs/annotationQueuesAddItems.js +2 -1
  5. package/funcs/annotationQueuesAddItems.js.map +1 -1
  6. package/funcs/annotationQueuesClear.d.ts +1 -2
  7. package/funcs/annotationQueuesClear.d.ts.map +1 -1
  8. package/funcs/annotationQueuesClear.js +3 -3
  9. package/funcs/annotationQueuesClear.js.map +1 -1
  10. package/funcs/annotationQueuesDelete.d.ts +1 -2
  11. package/funcs/annotationQueuesDelete.d.ts.map +1 -1
  12. package/funcs/annotationQueuesDelete.js +3 -3
  13. package/funcs/annotationQueuesDelete.js.map +1 -1
  14. package/funcs/annotationQueuesRemoveItems.d.ts +1 -2
  15. package/funcs/annotationQueuesRemoveItems.d.ts.map +1 -1
  16. package/funcs/annotationQueuesRemoveItems.js +3 -3
  17. package/funcs/annotationQueuesRemoveItems.js.map +1 -1
  18. package/funcs/datasetsCreateDatapoint.d.ts +2 -1
  19. package/funcs/datasetsCreateDatapoint.d.ts.map +1 -1
  20. package/funcs/datasetsCreateDatapoint.js +5 -1
  21. package/funcs/datasetsCreateDatapoint.js.map +1 -1
  22. package/funcs/projectsCreate.d.ts +1 -1
  23. package/funcs/projectsCreate.js +1 -1
  24. package/funcs/projectsDelete.d.ts +1 -1
  25. package/funcs/projectsDelete.js +1 -1
  26. package/funcs/projectsUpdate.d.ts +1 -1
  27. package/funcs/projectsUpdate.js +1 -1
  28. package/funcs/webhooksGet.d.ts +1 -1
  29. package/funcs/webhooksGet.js +1 -1
  30. package/jsr.json +1 -1
  31. package/lib/config.d.ts +2 -2
  32. package/lib/config.js +2 -2
  33. package/models/components/auditlogfilter.d.ts +1 -1
  34. package/models/components/evaluationresult.d.ts +2 -2
  35. package/models/components/index.d.ts +0 -4
  36. package/models/components/index.d.ts.map +1 -1
  37. package/models/components/index.js +0 -4
  38. package/models/components/index.js.map +1 -1
  39. package/models/components/reasoningpart.js +1 -1
  40. package/models/components/webhook.d.ts +2 -2
  41. package/models/operations/createdataset.js +1 -1
  42. package/models/operations/createdatasetitem.js +5 -5
  43. package/models/operations/createtool.js +4 -4
  44. package/models/operations/getalltools.js +4 -4
  45. package/models/operations/getv2humanevalsets.js +2 -2
  46. package/models/operations/getv2humanevalsetsid.js +2 -2
  47. package/models/operations/listdatasetdatapoints.js +5 -5
  48. package/models/operations/listdatasets.js +1 -1
  49. package/models/operations/patchv2humanevalsetsid.js +2 -2
  50. package/models/operations/postv2feedbackevaluation.js +4 -4
  51. package/models/operations/postv2humanevalsets.js +2 -2
  52. package/models/operations/retrievedatapoint.js +5 -5
  53. package/models/operations/retrievedataset.js +1 -1
  54. package/models/operations/retrievetool.js +4 -4
  55. package/models/operations/runagent.js +1 -1
  56. package/models/operations/streamrunagent.js +1 -1
  57. package/models/operations/updatedatapoint.js +5 -5
  58. package/models/operations/updatedataset.js +1 -1
  59. package/models/operations/updatetool.js +4 -4
  60. package/package.json +7 -7
  61. package/sdk/annotationqueues.d.ts +4 -4
  62. package/sdk/annotationqueues.d.ts.map +1 -1
  63. package/sdk/projects.d.ts +3 -3
  64. package/sdk/projects.js +3 -3
  65. package/sdk/webhooks.d.ts +1 -1
  66. package/sdk/webhooks.js +1 -1
  67. package/src/funcs/annotationQueuesAddItems.ts +5 -4
  68. package/src/funcs/annotationQueuesClear.ts +6 -6
  69. package/src/funcs/annotationQueuesDelete.ts +6 -6
  70. package/src/funcs/annotationQueuesRemoveItems.ts +6 -6
  71. package/src/funcs/datasetsCreateDatapoint.ts +10 -1
  72. package/src/funcs/projectsCreate.ts +1 -1
  73. package/src/funcs/projectsDelete.ts +1 -1
  74. package/src/funcs/projectsUpdate.ts +1 -1
  75. package/src/funcs/webhooksGet.ts +1 -1
  76. package/src/lib/config.ts +2 -2
  77. package/src/models/components/auditlogfilter.ts +1 -1
  78. package/src/models/components/evaluationresult.ts +2 -2
  79. package/src/models/components/index.ts +0 -4
  80. package/src/models/components/reasoningpart.ts +1 -1
  81. package/src/models/components/webhook.ts +2 -2
  82. package/src/models/operations/createdataset.ts +1 -1
  83. package/src/models/operations/createdatasetitem.ts +5 -5
  84. package/src/models/operations/createtool.ts +4 -4
  85. package/src/models/operations/getalltools.ts +4 -4
  86. package/src/models/operations/getv2humanevalsets.ts +2 -2
  87. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  88. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  89. package/src/models/operations/listdatasets.ts +1 -1
  90. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  91. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  92. package/src/models/operations/postv2humanevalsets.ts +2 -2
  93. package/src/models/operations/retrievedatapoint.ts +5 -5
  94. package/src/models/operations/retrievedataset.ts +1 -1
  95. package/src/models/operations/retrievetool.ts +4 -4
  96. package/src/models/operations/runagent.ts +1 -1
  97. package/src/models/operations/streamrunagent.ts +1 -1
  98. package/src/models/operations/updatedatapoint.ts +5 -5
  99. package/src/models/operations/updatedataset.ts +1 -1
  100. package/src/models/operations/updatetool.ts +4 -4
  101. package/src/sdk/annotationqueues.ts +4 -4
  102. package/src/sdk/projects.ts +3 -3
  103. package/src/sdk/webhooks.ts +1 -1
  104. package/models/components/addannotationqueueitemsresponse.d.ts +0 -14
  105. package/models/components/addannotationqueueitemsresponse.d.ts.map +0 -1
  106. package/models/components/addannotationqueueitemsresponse.js +0 -51
  107. package/models/components/addannotationqueueitemsresponse.js.map +0 -1
  108. package/models/components/clearannotationqueueresponse.d.ts +0 -8
  109. package/models/components/clearannotationqueueresponse.d.ts.map +0 -1
  110. package/models/components/clearannotationqueueresponse.js +0 -48
  111. package/models/components/clearannotationqueueresponse.js.map +0 -1
  112. package/models/components/deleteannotationqueueresponse.d.ts +0 -8
  113. package/models/components/deleteannotationqueueresponse.d.ts.map +0 -1
  114. package/models/components/deleteannotationqueueresponse.js +0 -48
  115. package/models/components/deleteannotationqueueresponse.js.map +0 -1
  116. package/models/components/removeannotationqueueitemsresponse.d.ts +0 -8
  117. package/models/components/removeannotationqueueitemsresponse.d.ts.map +0 -1
  118. package/models/components/removeannotationqueueitemsresponse.js +0 -48
  119. package/models/components/removeannotationqueueitemsresponse.js.map +0 -1
  120. package/src/models/components/addannotationqueueitemsresponse.ts +0 -38
  121. package/src/models/components/clearannotationqueueresponse.ts +0 -27
  122. package/src/models/components/deleteannotationqueueresponse.ts +0 -27
  123. package/src/models/components/removeannotationqueueitemsresponse.ts +0 -28
@@ -866,7 +866,7 @@ exports.UpdateDatapointEvaluations4$inboundSchema = z.object({
866
866
  parent_annotation_id: z.string().optional(),
867
867
  explanation: z.string().optional(),
868
868
  reviewed_by_id: z.string(),
869
- reviewed_at: z.string().datetime({ offset: true }).default("2026-09-15T05:01:41.044Z").transform(v => new Date(v)),
869
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-09-15T10:23:35.203Z").transform(v => new Date(v)),
870
870
  type: z.literal("string_array"),
871
871
  values: z.array(z.string()),
872
872
  }).transform((v) => {
@@ -917,7 +917,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
917
917
  parent_annotation_id: z.string().optional(),
918
918
  explanation: z.string().optional(),
919
919
  reviewed_by_id: z.string(),
920
- reviewed_at: z.string().datetime({ offset: true }).default("2026-09-15T05:01:41.044Z").transform(v => new Date(v)),
920
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-09-15T10:23:35.202Z").transform(v => new Date(v)),
921
921
  type: z.literal("boolean"),
922
922
  value: z.boolean(),
923
923
  }).transform((v) => {
@@ -968,7 +968,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
968
968
  parent_annotation_id: z.string().optional(),
969
969
  explanation: z.string().optional(),
970
970
  reviewed_by_id: z.string(),
971
- reviewed_at: z.string().datetime({ offset: true }).default("2026-09-15T05:01:41.043Z").transform(v => new Date(v)),
971
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-09-15T10:23:35.202Z").transform(v => new Date(v)),
972
972
  type: z.literal("number"),
973
973
  value: z.number(),
974
974
  }).transform((v) => {
@@ -1018,7 +1018,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
1018
1018
  parent_annotation_id: z.string().optional(),
1019
1019
  explanation: z.string().optional(),
1020
1020
  reviewed_by_id: z.string(),
1021
- reviewed_at: z.string().datetime({ offset: true }).default("2026-09-15T05:01:41.043Z").transform(v => new Date(v)),
1021
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-09-15T10:23:35.201Z").transform(v => new Date(v)),
1022
1022
  type: z.literal("string"),
1023
1023
  value: z.string(),
1024
1024
  }).transform((v) => {
@@ -1069,7 +1069,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
1069
1069
  updated_by_id: z.nullable(z.string()).optional(),
1070
1070
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1071
1071
  .optional(),
1072
- updated: z.string().datetime({ offset: true }).default("2026-09-15T05:01:32.178Z").transform(v => new Date(v)),
1072
+ updated: z.string().datetime({ offset: true }).default("2026-09-15T10:23:26.280Z").transform(v => new Date(v)),
1073
1073
  }).transform((v) => {
1074
1074
  return (0, primitives_js_1.remap)(v, {
1075
1075
  "_id": "id",
@@ -95,7 +95,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
95
95
  updated_by_id: z.nullable(z.string()).optional(),
96
96
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
97
97
  .optional(),
98
- updated: z.string().datetime({ offset: true }).default("2026-09-15T05:01:32.178Z").transform(v => new Date(v)),
98
+ updated: z.string().datetime({ offset: true }).default("2026-09-15T10:23:26.280Z").transform(v => new Date(v)),
99
99
  }).transform((v) => {
100
100
  return (0, primitives_js_1.remap)(v, {
101
101
  "_id": "id",
@@ -536,7 +536,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
536
536
  }
537
537
  /** @internal */
538
538
  exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
539
- _id: z.string().default("tool_01M2HQ2DRDTKSQ6EGTZHYXT74T"),
539
+ _id: z.string().default("tool_01M2J9FV7HTC5HZERM5TCB774Q"),
540
540
  path: z.string(),
541
541
  key: z.string(),
542
542
  display_name: z.string().optional(),
@@ -625,7 +625,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
625
625
  }
626
626
  /** @internal */
627
627
  exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
628
- _id: z.string().default("tool_01M2HQ2DRD4FJ7KPSGA5EMNX8J"),
628
+ _id: z.string().default("tool_01M2J9FV7EGKJ949GVPX6GENY5"),
629
629
  path: z.string(),
630
630
  key: z.string(),
631
631
  display_name: z.string().optional(),
@@ -675,7 +675,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
675
675
  }
676
676
  /** @internal */
677
677
  exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
678
- _id: z.string().default("tool_01M2HQ2DRCV1Y0NQN2H4SK7SZ2"),
678
+ _id: z.string().default("tool_01M2J9FV7E3EJPDCZ1GX1P41QY"),
679
679
  path: z.string(),
680
680
  key: z.string(),
681
681
  display_name: z.string().optional(),
@@ -729,7 +729,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
729
729
  }
730
730
  /** @internal */
731
731
  exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
732
- _id: z.string().default("tool_01M2HQ2DRBPBKMRWFVBA1J6TEQ"),
732
+ _id: z.string().default("tool_01M2J9FV7D2TPRB08JPQ10FE18"),
733
733
  path: z.string(),
734
734
  key: z.string(),
735
735
  display_name: z.string().optional(),
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.15.0-rc.47",
3
+ "version": "4.15.0-rc.49",
4
4
  "author": "Orq",
5
5
  "exports": {
6
- "./langchain": {
7
- "import": "./langchain/index.mjs",
8
- "require": "./langchain/index.js",
9
- "types": "./langchain/index.d.mts"
10
- },
11
6
  ".": {
12
7
  "import": "./index.js",
13
8
  "require": "./index.js",
14
9
  "types": "./index.d.ts"
15
10
  },
16
- "./*": "./*"
11
+ "./*": "./*",
12
+ "./langchain": {
13
+ "types": "./langchain/index.d.mts",
14
+ "import": "./langchain/index.mjs",
15
+ "require": "./langchain/index.js"
16
+ }
17
17
  },
18
18
  "main": "./index.js",
19
19
  "sideEffects": false,
@@ -29,7 +29,7 @@ export declare class AnnotationQueues extends ClientSDK {
29
29
  * @remarks
30
30
  * Deletes an annotation queue, its items, and the queue references stored on the annotated spans.
31
31
  */
32
- delete(request: operations.DeleteAnnotationQueueRequest, options?: RequestOptions): Promise<components.DeleteAnnotationQueueResponse>;
32
+ delete(request: operations.DeleteAnnotationQueueRequest, options?: RequestOptions): Promise<void>;
33
33
  /**
34
34
  * Update an annotation queue
35
35
  *
@@ -43,7 +43,7 @@ export declare class AnnotationQueues extends ClientSDK {
43
43
  * @remarks
44
44
  * Removes every item from the annotation queue without deleting the queue itself.
45
45
  */
46
- clear(request: operations.ClearAnnotationQueueRequest, options?: RequestOptions): Promise<components.ClearAnnotationQueueResponse>;
46
+ clear(request: operations.ClearAnnotationQueueRequest, options?: RequestOptions): Promise<void>;
47
47
  /**
48
48
  * Query items from an annotation queue
49
49
  *
@@ -57,14 +57,14 @@ export declare class AnnotationQueues extends ClientSDK {
57
57
  * @remarks
58
58
  * Adds spans to the annotation queue. Spans already present are skipped; the response contains only the newly created items.
59
59
  */
60
- addItems(request: operations.AddAnnotationQueueItemsRequest, options?: RequestOptions): Promise<components.AddAnnotationQueueItemsResponse>;
60
+ addItems(request: operations.AddAnnotationQueueItemsRequest, options?: RequestOptions): Promise<Array<components.AnnotationQueueItem>>;
61
61
  /**
62
62
  * Remove items from an annotation queue
63
63
  *
64
64
  * @remarks
65
65
  * Removes the referenced spans from the annotation queue.
66
66
  */
67
- removeItems(request: operations.RemoveAnnotationQueueItemsRequest, options?: RequestOptions): Promise<components.RemoveAnnotationQueueItemsResponse>;
67
+ removeItems(request: operations.RemoveAnnotationQueueItemsRequest, options?: RequestOptions): Promise<void>;
68
68
  /**
69
69
  * Retrieve an annotation queue item
70
70
  *
@@ -1 +1 @@
1
- {"version":3,"file":"annotationqueues.d.ts","sourceRoot":"","sources":["../src/sdk/annotationqueues.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C;;;;;OAKG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,2BAA2B,GAAG,SAAS,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;IAQtC;;;;;OAKG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;IAQtC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;IAQtC;;;;;OAKG;IACG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
15
15
  * @remarks
16
- * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access.
16
+ * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
17
17
  */
18
18
  create(request: components.CreateProjectRequest, options?: RequestOptions): Promise<components.CreateProjectResponse>;
19
19
  /**
@@ -27,14 +27,14 @@ export declare class Projects extends ClientSDK {
27
27
  * Delete a project
28
28
  *
29
29
  * @remarks
30
- * Deletes a project from the workspace. The response body is empty when the delete succeeds.
30
+ * Deletes a project from the workspace. The response body is empty when the delete succeeds. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
31
31
  */
32
32
  delete(request: operations.ProjectDeleteRequest, options?: RequestOptions): Promise<components.DeleteProjectResponse>;
33
33
  /**
34
34
  * Update a project
35
35
  *
36
36
  * @remarks
37
- * Updates the specified project by setting the values of the parameters passed.
37
+ * Updates the specified project by setting the values of the parameters passed. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
38
38
  */
39
39
  update(request: operations.ProjectUpdateRequest, options?: RequestOptions): Promise<components.UpdateProjectResponse>;
40
40
  }
package/sdk/projects.js CHANGED
@@ -25,7 +25,7 @@ class Projects extends sdks_js_1.ClientSDK {
25
25
  * Create a new project
26
26
  *
27
27
  * @remarks
28
- * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access.
28
+ * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
29
29
  */
30
30
  async create(request, options) {
31
31
  return (0, fp_js_1.unwrapAsync)((0, projectsCreate_js_1.projectsCreate)(this, request, options));
@@ -43,7 +43,7 @@ class Projects extends sdks_js_1.ClientSDK {
43
43
  * Delete a project
44
44
  *
45
45
  * @remarks
46
- * Deletes a project from the workspace. The response body is empty when the delete succeeds.
46
+ * Deletes a project from the workspace. The response body is empty when the delete succeeds. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
47
47
  */
48
48
  async delete(request, options) {
49
49
  return (0, fp_js_1.unwrapAsync)((0, projectsDelete_js_1.projectsDelete)(this, request, options));
@@ -52,7 +52,7 @@ class Projects extends sdks_js_1.ClientSDK {
52
52
  * Update a project
53
53
  *
54
54
  * @remarks
55
- * Updates the specified project by setting the values of the parameters passed.
55
+ * Updates the specified project by setting the values of the parameters passed. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
56
56
  */
57
57
  async update(request, options) {
58
58
  return (0, fp_js_1.unwrapAsync)((0, projectsUpdate_js_1.projectsUpdate)(this, request, options));
package/sdk/webhooks.d.ts CHANGED
@@ -43,7 +43,7 @@ export declare class Webhooks extends ClientSDK {
43
43
  * Retrieve a webhook
44
44
  *
45
45
  * @remarks
46
- * Retrieves a webhook in the current workspace by ID. The response includes its signing secret; treat it as sensitive.
46
+ * Retrieves a webhook in the current workspace by ID. The signing secret is returned masked; it is only shown in full when the webhook is created.
47
47
  */
48
48
  get(request: operations.WebhookGetRequest, options?: RequestOptions): Promise<components.Webhook>;
49
49
  /**
package/sdk/webhooks.js CHANGED
@@ -66,7 +66,7 @@ class Webhooks extends sdks_js_1.ClientSDK {
66
66
  * Retrieve a webhook
67
67
  *
68
68
  * @remarks
69
- * Retrieves a webhook in the current workspace by ID. The response includes its signing secret; treat it as sensitive.
69
+ * Retrieves a webhook in the current workspace by ID. The signing secret is returned masked; it is only shown in full when the webhook is created.
70
70
  */
71
71
  async get(request, options) {
72
72
  return (0, fp_js_1.unwrapAsync)((0, webhooksGet_js_1.webhooksGet)(this, request, options));
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import * as z from "zod/v3";
5
6
  import { OrqCore } from "../core.js";
6
7
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
8
  import { matchStatusCode } from "../lib/http.js";
@@ -38,7 +39,7 @@ export function annotationQueuesAddItems(
38
39
  options?: RequestOptions,
39
40
  ): APIPromise<
40
41
  Result<
41
- components.AddAnnotationQueueItemsResponse,
42
+ Array<components.AnnotationQueueItem>,
42
43
  | OrqError
43
44
  | ResponseValidationError
44
45
  | ConnectionError
@@ -63,7 +64,7 @@ async function $do(
63
64
  ): Promise<
64
65
  [
65
66
  Result<
66
- components.AddAnnotationQueueItemsResponse,
67
+ Array<components.AnnotationQueueItem>,
67
68
  | OrqError
68
69
  | ResponseValidationError
69
70
  | ConnectionError
@@ -153,7 +154,7 @@ async function $do(
153
154
  const response = doResult.value;
154
155
 
155
156
  const [result] = await M.match<
156
- components.AddAnnotationQueueItemsResponse,
157
+ Array<components.AnnotationQueueItem>,
157
158
  | OrqError
158
159
  | ResponseValidationError
159
160
  | ConnectionError
@@ -163,7 +164,7 @@ async function $do(
163
164
  | UnexpectedClientError
164
165
  | SDKValidationError
165
166
  >(
166
- M.json(200, components.AddAnnotationQueueItemsResponse$inboundSchema),
167
+ M.json(200, z.array(components.AnnotationQueueItem$inboundSchema)),
167
168
  M.fail("4XX"),
168
169
  M.fail("5XX"),
169
170
  )(response, req);
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import * as z from "zod/v3";
5
6
  import { OrqCore } from "../core.js";
6
7
  import { encodeSimple } from "../lib/encodings.js";
7
8
  import { matchStatusCode } from "../lib/http.js";
@@ -11,7 +12,6 @@ import { safeParse } from "../lib/schemas.js";
11
12
  import { RequestOptions } from "../lib/sdks.js";
12
13
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
14
  import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
15
  import {
16
16
  ConnectionError,
17
17
  InvalidRequestError,
@@ -38,7 +38,7 @@ export function annotationQueuesClear(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- components.ClearAnnotationQueueResponse,
41
+ void,
42
42
  | OrqError
43
43
  | ResponseValidationError
44
44
  | ConnectionError
@@ -63,7 +63,7 @@ async function $do(
63
63
  ): Promise<
64
64
  [
65
65
  Result<
66
- components.ClearAnnotationQueueResponse,
66
+ void,
67
67
  | OrqError
68
68
  | ResponseValidationError
69
69
  | ConnectionError
@@ -100,7 +100,7 @@ async function $do(
100
100
  );
101
101
 
102
102
  const headers = new Headers(compactMap({
103
- Accept: "application/json",
103
+ Accept: "*/*",
104
104
  }));
105
105
 
106
106
  const secConfig = await extractSecurity(client._options.apiKey);
@@ -150,7 +150,7 @@ async function $do(
150
150
  const response = doResult.value;
151
151
 
152
152
  const [result] = await M.match<
153
- components.ClearAnnotationQueueResponse,
153
+ void,
154
154
  | OrqError
155
155
  | ResponseValidationError
156
156
  | ConnectionError
@@ -160,7 +160,7 @@ async function $do(
160
160
  | UnexpectedClientError
161
161
  | SDKValidationError
162
162
  >(
163
- M.json(200, components.ClearAnnotationQueueResponse$inboundSchema),
163
+ M.nil(204, z.void()),
164
164
  M.fail("4XX"),
165
165
  M.fail("5XX"),
166
166
  )(response, req);
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import * as z from "zod/v3";
5
6
  import { OrqCore } from "../core.js";
6
7
  import { encodeSimple } from "../lib/encodings.js";
7
8
  import { matchStatusCode } from "../lib/http.js";
@@ -11,7 +12,6 @@ import { safeParse } from "../lib/schemas.js";
11
12
  import { RequestOptions } from "../lib/sdks.js";
12
13
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
14
  import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
15
  import {
16
16
  ConnectionError,
17
17
  InvalidRequestError,
@@ -38,7 +38,7 @@ export function annotationQueuesDelete(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- components.DeleteAnnotationQueueResponse,
41
+ void,
42
42
  | OrqError
43
43
  | ResponseValidationError
44
44
  | ConnectionError
@@ -63,7 +63,7 @@ async function $do(
63
63
  ): Promise<
64
64
  [
65
65
  Result<
66
- components.DeleteAnnotationQueueResponse,
66
+ void,
67
67
  | OrqError
68
68
  | ResponseValidationError
69
69
  | ConnectionError
@@ -100,7 +100,7 @@ async function $do(
100
100
  );
101
101
 
102
102
  const headers = new Headers(compactMap({
103
- Accept: "application/json",
103
+ Accept: "*/*",
104
104
  }));
105
105
 
106
106
  const secConfig = await extractSecurity(client._options.apiKey);
@@ -150,7 +150,7 @@ async function $do(
150
150
  const response = doResult.value;
151
151
 
152
152
  const [result] = await M.match<
153
- components.DeleteAnnotationQueueResponse,
153
+ void,
154
154
  | OrqError
155
155
  | ResponseValidationError
156
156
  | ConnectionError
@@ -160,7 +160,7 @@ async function $do(
160
160
  | UnexpectedClientError
161
161
  | SDKValidationError
162
162
  >(
163
- M.json(200, components.DeleteAnnotationQueueResponse$inboundSchema),
163
+ M.nil(204, z.void()),
164
164
  M.fail("4XX"),
165
165
  M.fail("5XX"),
166
166
  )(response, req);
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import * as z from "zod/v3";
5
6
  import { OrqCore } from "../core.js";
6
7
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
8
  import { matchStatusCode } from "../lib/http.js";
@@ -11,7 +12,6 @@ import { safeParse } from "../lib/schemas.js";
11
12
  import { RequestOptions } from "../lib/sdks.js";
12
13
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
14
  import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
15
  import {
16
16
  ConnectionError,
17
17
  InvalidRequestError,
@@ -38,7 +38,7 @@ export function annotationQueuesRemoveItems(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- components.RemoveAnnotationQueueItemsResponse,
41
+ void,
42
42
  | OrqError
43
43
  | ResponseValidationError
44
44
  | ConnectionError
@@ -63,7 +63,7 @@ async function $do(
63
63
  ): Promise<
64
64
  [
65
65
  Result<
66
- components.RemoveAnnotationQueueItemsResponse,
66
+ void,
67
67
  | OrqError
68
68
  | ResponseValidationError
69
69
  | ConnectionError
@@ -103,7 +103,7 @@ async function $do(
103
103
 
104
104
  const headers = new Headers(compactMap({
105
105
  "Content-Type": "application/json",
106
- Accept: "application/json",
106
+ Accept: "*/*",
107
107
  }));
108
108
 
109
109
  const secConfig = await extractSecurity(client._options.apiKey);
@@ -153,7 +153,7 @@ async function $do(
153
153
  const response = doResult.value;
154
154
 
155
155
  const [result] = await M.match<
156
- components.RemoveAnnotationQueueItemsResponse,
156
+ void,
157
157
  | OrqError
158
158
  | ResponseValidationError
159
159
  | ConnectionError
@@ -163,7 +163,7 @@ async function $do(
163
163
  | UnexpectedClientError
164
164
  | SDKValidationError
165
165
  >(
166
- M.json(200, components.RemoveAnnotationQueueItemsResponse$inboundSchema),
166
+ M.nil(204, z.void()),
167
167
  M.fail("4XX"),
168
168
  M.fail("5XX"),
169
169
  )(response, req);
@@ -19,6 +19,7 @@ import {
19
19
  RequestTimeoutError,
20
20
  UnexpectedClientError,
21
21
  } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
22
23
  import { OrqError } from "../models/errors/orqerror.js";
23
24
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
25
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
@@ -39,6 +40,7 @@ export function datasetsCreateDatapoint(
39
40
  ): APIPromise<
40
41
  Result<
41
42
  Array<operations.ResponseBody>,
43
+ | errors.HonoApiError
42
44
  | OrqError
43
45
  | ResponseValidationError
44
46
  | ConnectionError
@@ -64,6 +66,7 @@ async function $do(
64
66
  [
65
67
  Result<
66
68
  Array<operations.ResponseBody>,
69
+ | errors.HonoApiError
67
70
  | OrqError
68
71
  | ResponseValidationError
69
72
  | ConnectionError
@@ -146,8 +149,13 @@ async function $do(
146
149
  }
147
150
  const response = doResult.value;
148
151
 
152
+ const responseFields = {
153
+ HttpMeta: { Response: response, Request: req },
154
+ };
155
+
149
156
  const [result] = await M.match<
150
157
  Array<operations.ResponseBody>,
158
+ | errors.HonoApiError
151
159
  | OrqError
152
160
  | ResponseValidationError
153
161
  | ConnectionError
@@ -158,9 +166,10 @@ async function $do(
158
166
  | SDKValidationError
159
167
  >(
160
168
  M.json(200, z.array(operations.ResponseBody$inboundSchema)),
169
+ M.jsonErr(404, errors.HonoApiError$inboundSchema),
161
170
  M.fail("4XX"),
162
171
  M.fail("5XX"),
163
- )(response, req);
172
+ )(response, req, { extraFields: responseFields });
164
173
  if (!result.ok) {
165
174
  return [result, { status: "complete", request: req, response }];
166
175
  }
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * Create a new project
30
30
  *
31
31
  * @remarks
32
- * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access.
32
+ * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
33
33
  */
34
34
  export function projectsCreate(
35
35
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Delete a project
31
31
  *
32
32
  * @remarks
33
- * Deletes a project from the workspace. The response body is empty when the delete succeeds.
33
+ * Deletes a project from the workspace. The response body is empty when the delete succeeds. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
34
34
  */
35
35
  export function projectsDelete(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Update a project
31
31
  *
32
32
  * @remarks
33
- * Updates the specified project by setting the values of the parameters passed.
33
+ * Updates the specified project by setting the values of the parameters passed. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
34
34
  */
35
35
  export function projectsUpdate(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Retrieve a webhook
31
31
  *
32
32
  * @remarks
33
- * Retrieves a webhook in the current workspace by ID. The response includes its signing secret; treat it as sensitive.
33
+ * Retrieves a webhook in the current workspace by ID. The signing secret is returned masked; it is only shown in full when the webhook is created.
34
34
  */
35
35
  export function webhooksGet(
36
36
  client: OrqCore,
package/src/lib/config.ts CHANGED
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "2.0",
61
- sdkVersion: "4.15.0-rc.47",
61
+ sdkVersion: "4.15.0-rc.49",
62
62
  genVersion: "2.937.18",
63
- userAgent: "speakeasy-sdk/typescript 4.15.0-rc.47 2.937.18 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.15.0-rc.49 2.937.18 2.0 @orq-ai/node",
64
64
  } as const;
@@ -13,7 +13,7 @@ export type AuditLogFilter = {
13
13
  */
14
14
  type: string;
15
15
  /**
16
- * Audit log field path to filter on. Supported paths include created_at, entity_id, entity_type, action, actor_id, and metadata.display_name.
16
+ * Audit log field path to filter on. Supported paths include created_at, entity_id, entity_type, action, actor_id, origin, and metadata.display_name.
17
17
  */
18
18
  path: string;
19
19
  /**
@@ -37,10 +37,10 @@ export type EvaluationResult = {
37
37
  spanId?: string | undefined;
38
38
  evaluatorId?: string | undefined;
39
39
  /**
40
- * How the run ended, as distinct from `passed`: "passed", "condition_failed"
40
+ * How the run ended, as distinct from `passed`: "passed", "condition_failed",
41
41
  *
42
42
  * @remarks
43
- * or "timed_out". A string, not an enum, because the engine owns the
43
+ * "failed" or "timed_out". A string, not an enum, because the engine owns the
44
44
  * vocabulary.
45
45
  */
46
46
  status?: string | undefined;
@@ -6,7 +6,6 @@ export * from "./accesslevel.js";
6
6
  export * from "./actionreviewedstreamingevent.js";
7
7
  export * from "./actionreviewrequestedstreamingevent.js";
8
8
  export * from "./addannotationqueueitemsrequest.js";
9
- export * from "./addannotationqueueitemsresponse.js";
10
9
  export * from "./addiprangerequest.js";
11
10
  export * from "./addiprangeresponse.js";
12
11
  export * from "./advisortoolinput.js";
@@ -90,7 +89,6 @@ export * from "./chunksservicelistpaginatedresponse.js";
90
89
  export * from "./chunksservicelistresponse.js";
91
90
  export * from "./chunksservicesetenabledrequest.js";
92
91
  export * from "./chunksserviceupdaterequest.js";
93
- export * from "./clearannotationqueueresponse.js";
94
92
  export * from "./codeinterpretertoolinput.js";
95
93
  export * from "./codetoolinput.js";
96
94
  export * from "./conversationparam.js";
@@ -148,7 +146,6 @@ export * from "./datasourcesservicepreviewchunksrequest.js";
148
146
  export * from "./datasourcesservicepreviewchunksresponse.js";
149
147
  export * from "./datasourcesserviceupdaterequest.js";
150
148
  export * from "./deletealertresponse.js";
151
- export * from "./deleteannotationqueueresponse.js";
152
149
  export * from "./deletebudgetresponse.js";
153
150
  export * from "./deleteevaluatorresponse.js";
154
151
  export * from "./deletefileresponse.js";
@@ -435,7 +432,6 @@ export * from "./redactrequest.js";
435
432
  export * from "./redactresponse.js";
436
433
  export * from "./refusalpartschema.js";
437
434
  export * from "./removeannotationqueueitemsrequest.js";
438
- export * from "./removeannotationqueueitemsresponse.js";
439
435
  export * from "./requestlimit.js";
440
436
  export * from "./rerankconfig.js";
441
437
  export * from "./rerankmodelparameters.js";
@@ -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_01m2hq2dm1n7jzfcjkz56vcq4w"),
43
+ _id: z.string().default("reasoning_01m2j9fv1z8gs2batv5anpgvva"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -22,7 +22,7 @@ export const ContentType = {
22
22
  export type ContentType = ClosedEnum<typeof ContentType>;
23
23
 
24
24
  /**
25
- * A webhook subscription and its delivery configuration. Responses include the signing secret; treat it as sensitive.
25
+ * A webhook subscription and its delivery configuration. The signing secret is shown in full only in the create response and is masked everywhere else.
26
26
  */
27
27
  export type Webhook = {
28
28
  /**
@@ -46,7 +46,7 @@ export type Webhook = {
46
46
  */
47
47
  events: Array<string>;
48
48
  /**
49
- * Signing secret used to compute `X-Orq-Signature` as the lowercase hexadecimal HMAC-SHA256 of the exact request body bytes. Treat this value as sensitive.
49
+ * Signing secret used to compute `X-Orq-Signature` as the lowercase hexadecimal HMAC-SHA256 of the exact request body bytes. Shown in full only in the create response; list and get return a masked value.
50
50
  */
51
51
  secret: string;
52
52
  /**