@orq-ai/node 4.4.0-rc.30 → 4.4.0-rc.32

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 (109) hide show
  1. package/README.md +33 -26
  2. package/examples/package-lock.json +1 -1
  3. package/funcs/annotationsCreate.d.ts +14 -0
  4. package/funcs/annotationsCreate.d.ts.map +1 -0
  5. package/funcs/annotationsCreate.js +122 -0
  6. package/funcs/annotationsCreate.js.map +1 -0
  7. package/funcs/annotationsDelete.d.ts +14 -0
  8. package/funcs/annotationsDelete.d.ts.map +1 -0
  9. package/funcs/annotationsDelete.js +122 -0
  10. package/funcs/annotationsDelete.js.map +1 -0
  11. package/jsr.json +1 -1
  12. package/lib/config.d.ts +2 -2
  13. package/lib/config.js +2 -2
  14. package/models/components/partdoneevent.js +1 -1
  15. package/models/components/reasoningpart.js +1 -1
  16. package/models/operations/createannotation.d.ts +71 -0
  17. package/models/operations/createannotation.d.ts.map +1 -0
  18. package/models/operations/createannotation.js +91 -0
  19. package/models/operations/createannotation.js.map +1 -0
  20. package/models/operations/createcontact.js +1 -1
  21. package/models/operations/createdataset.js +1 -1
  22. package/models/operations/createdatasetitem.js +4 -4
  23. package/models/operations/createdatasource.js +1 -1
  24. package/models/operations/createeval.js +16 -16
  25. package/models/operations/createidentity.js +1 -1
  26. package/models/operations/createresponse.d.ts +3 -3
  27. package/models/operations/createresponse.d.ts.map +1 -1
  28. package/models/operations/createresponse.js +5 -5
  29. package/models/operations/createresponse.js.map +1 -1
  30. package/models/operations/createtool.js +6 -6
  31. package/models/operations/deleteannotation.d.ts +32 -0
  32. package/models/operations/deleteannotation.d.ts.map +1 -0
  33. package/models/operations/deleteannotation.js +67 -0
  34. package/models/operations/deleteannotation.js.map +1 -0
  35. package/models/operations/fileget.js +1 -1
  36. package/models/operations/filelist.js +1 -1
  37. package/models/operations/fileupload.js +1 -1
  38. package/models/operations/getalltools.js +6 -6
  39. package/models/operations/getevals.js +16 -16
  40. package/models/operations/index.d.ts +2 -0
  41. package/models/operations/index.d.ts.map +1 -1
  42. package/models/operations/index.js +2 -0
  43. package/models/operations/index.js.map +1 -1
  44. package/models/operations/listdatasetdatapoints.js +4 -4
  45. package/models/operations/listdatasets.js +1 -1
  46. package/models/operations/listdatasources.js +1 -1
  47. package/models/operations/listidentities.js +1 -1
  48. package/models/operations/retrievedatapoint.js +4 -4
  49. package/models/operations/retrievedataset.js +1 -1
  50. package/models/operations/retrievedatasource.js +1 -1
  51. package/models/operations/retrieveidentity.js +1 -1
  52. package/models/operations/retrievetool.js +6 -6
  53. package/models/operations/runagent.js +1 -1
  54. package/models/operations/streamrunagent.js +1 -1
  55. package/models/operations/updatedatapoint.js +4 -4
  56. package/models/operations/updatedataset.js +1 -1
  57. package/models/operations/updatedatasource.js +1 -1
  58. package/models/operations/updateeval.js +16 -16
  59. package/models/operations/updateidentity.js +1 -1
  60. package/models/operations/updatetool.js +7 -7
  61. package/package.json +1 -1
  62. package/sdk/annotations.d.ts +13 -0
  63. package/sdk/annotations.d.ts.map +1 -0
  64. package/sdk/annotations.js +26 -0
  65. package/sdk/annotations.js.map +1 -0
  66. package/sdk/sdk.d.ts +3 -0
  67. package/sdk/sdk.d.ts.map +1 -1
  68. package/sdk/sdk.js +4 -0
  69. package/sdk/sdk.js.map +1 -1
  70. package/src/funcs/annotationsCreate.ts +171 -0
  71. package/src/funcs/annotationsDelete.ts +171 -0
  72. package/src/lib/config.ts +2 -2
  73. package/src/models/components/partdoneevent.ts +1 -1
  74. package/src/models/components/reasoningpart.ts +1 -1
  75. package/src/models/operations/createannotation.ts +162 -0
  76. package/src/models/operations/createcontact.ts +1 -1
  77. package/src/models/operations/createdataset.ts +1 -1
  78. package/src/models/operations/createdatasetitem.ts +4 -4
  79. package/src/models/operations/createdatasource.ts +1 -1
  80. package/src/models/operations/createeval.ts +16 -16
  81. package/src/models/operations/createidentity.ts +1 -1
  82. package/src/models/operations/createresponse.ts +7 -7
  83. package/src/models/operations/createtool.ts +6 -6
  84. package/src/models/operations/deleteannotation.ts +79 -0
  85. package/src/models/operations/fileget.ts +1 -1
  86. package/src/models/operations/filelist.ts +1 -1
  87. package/src/models/operations/fileupload.ts +1 -1
  88. package/src/models/operations/getalltools.ts +6 -6
  89. package/src/models/operations/getevals.ts +16 -16
  90. package/src/models/operations/index.ts +2 -0
  91. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  92. package/src/models/operations/listdatasets.ts +1 -1
  93. package/src/models/operations/listdatasources.ts +1 -1
  94. package/src/models/operations/listidentities.ts +1 -1
  95. package/src/models/operations/retrievedatapoint.ts +4 -4
  96. package/src/models/operations/retrievedataset.ts +1 -1
  97. package/src/models/operations/retrievedatasource.ts +1 -1
  98. package/src/models/operations/retrieveidentity.ts +1 -1
  99. package/src/models/operations/retrievetool.ts +6 -6
  100. package/src/models/operations/runagent.ts +1 -1
  101. package/src/models/operations/streamrunagent.ts +1 -1
  102. package/src/models/operations/updatedatapoint.ts +4 -4
  103. package/src/models/operations/updatedataset.ts +1 -1
  104. package/src/models/operations/updatedatasource.ts +1 -1
  105. package/src/models/operations/updateeval.ts +16 -16
  106. package/src/models/operations/updateidentity.ts +1 -1
  107. package/src/models/operations/updatetool.ts +7 -7
  108. package/src/sdk/annotations.ts +39 -0
  109. package/src/sdk/sdk.ts +6 -0
package/README.md CHANGED
@@ -183,6 +183,11 @@ run();
183
183
 
184
184
  * [create](docs/sdks/responses/README.md#create) - Create response
185
185
 
186
+ ### [Annotations](docs/sdks/annotations/README.md)
187
+
188
+ * [create](docs/sdks/annotations/README.md#create) - Annotate a span
189
+ * [delete](docs/sdks/annotations/README.md#delete) - Remove an annotation from a span
190
+
186
191
  ### [Chunking](docs/sdks/chunking/README.md)
187
192
 
188
193
  * [parse](docs/sdks/chunking/README.md#parse) - Parse text
@@ -391,6 +396,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
391
396
  - [`agentsResponsesCreate`](docs/sdks/responses/README.md#create) - Create response
392
397
  - [`agentsRetrieve`](docs/sdks/agents/README.md#retrieve) - Retrieve agent
393
398
  - [`agentsUpdate`](docs/sdks/agents/README.md#update) - Update agent
399
+ - [`annotationsCreate`](docs/sdks/annotations/README.md#create) - Annotate a span
400
+ - [`annotationsDelete`](docs/sdks/annotations/README.md#delete) - Remove an annotation from a span
394
401
  - [`chunkingParse`](docs/sdks/chunking/README.md#parse) - Parse text
395
402
  - [`contactsCreate`](docs/sdks/contacts/README.md#create) - Update user information
396
403
  - [`datasetsClear`](docs/sdks/datasets/README.md#clear) - Delete all datapoints
@@ -761,32 +768,32 @@ run();
761
768
 
762
769
 
763
770
  **Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
764
- * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 9 of 107 methods.*
765
- * [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of 107 methods.*
766
- * [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 107 methods.*
767
- * [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 107 methods.*
768
- * [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 107 methods.*
769
- * [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 107 methods.*
770
- * [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 107 methods.*
771
- * [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of 107 methods.*
772
- * [`RetrieveIdentityResponseBody`](./src/models/errors/retrieveidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 107 methods.*
773
- * [`UpdateIdentityResponseBody`](./src/models/errors/updateidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 107 methods.*
774
- * [`DeleteIdentityResponseBody`](./src/models/errors/deleteidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 107 methods.*
775
- * [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 107 methods.*
776
- * [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 107 methods.*
777
- * [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 107 methods.*
778
- * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 107 methods.*
779
- * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 107 methods.*
780
- * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 107 methods.*
781
- * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 107 methods.*
782
- * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 107 methods.*
783
- * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 107 methods.*
784
- * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 107 methods.*
785
- * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 107 methods.*
786
- * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 107 methods.*
787
- * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 107 methods.*
788
- * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 107 methods.*
789
- * [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 107 methods.*
771
+ * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 9 of 109 methods.*
772
+ * [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of 109 methods.*
773
+ * [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 109 methods.*
774
+ * [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 109 methods.*
775
+ * [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 109 methods.*
776
+ * [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 109 methods.*
777
+ * [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 109 methods.*
778
+ * [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of 109 methods.*
779
+ * [`RetrieveIdentityResponseBody`](./src/models/errors/retrieveidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 109 methods.*
780
+ * [`UpdateIdentityResponseBody`](./src/models/errors/updateidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 109 methods.*
781
+ * [`DeleteIdentityResponseBody`](./src/models/errors/deleteidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 109 methods.*
782
+ * [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 109 methods.*
783
+ * [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 109 methods.*
784
+ * [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 109 methods.*
785
+ * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 109 methods.*
786
+ * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 109 methods.*
787
+ * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 109 methods.*
788
+ * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 109 methods.*
789
+ * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 109 methods.*
790
+ * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 109 methods.*
791
+ * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 109 methods.*
792
+ * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 109 methods.*
793
+ * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 109 methods.*
794
+ * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 109 methods.*
795
+ * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 109 methods.*
796
+ * [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 109 methods.*
790
797
  * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
791
798
 
792
799
  </details>
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@orq-ai/node",
21
- "version": "4.4.0-rc.30",
21
+ "version": "4.4.0-rc.32",
22
22
  "dependencies": {
23
23
  "zod": "^3.25.0 || ^4.0.0"
24
24
  },
@@ -0,0 +1,14 @@
1
+ import { OrqCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import { OrqError } from "../models/errors/orqerror.js";
5
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
6
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Annotate a span
12
+ */
13
+ export declare function annotationsCreate(client: OrqCore, request: operations.CreateAnnotationRequest, options?: RequestOptions): APIPromise<Result<void, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=annotationsCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotationsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/annotationsCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,IAAI,EACF,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.annotationsCreate = annotationsCreate;
40
+ const z = __importStar(require("zod/v3"));
41
+ const encodings_js_1 = require("../lib/encodings.js");
42
+ const M = __importStar(require("../lib/matchers.js"));
43
+ const primitives_js_1 = require("../lib/primitives.js");
44
+ const schemas_js_1 = require("../lib/schemas.js");
45
+ const security_js_1 = require("../lib/security.js");
46
+ const url_js_1 = require("../lib/url.js");
47
+ const operations = __importStar(require("../models/operations/index.js"));
48
+ const async_js_1 = require("../types/async.js");
49
+ /**
50
+ * Annotate a span
51
+ */
52
+ function annotationsCreate(client, request, options) {
53
+ return new async_js_1.APIPromise($do(client, request, options));
54
+ }
55
+ async function $do(client, request, options) {
56
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateAnnotationRequest$outboundSchema.parse(value), "Input validation failed");
57
+ if (!parsed.ok) {
58
+ return [parsed, { status: "invalid" }];
59
+ }
60
+ const payload = parsed.value;
61
+ const body = (0, encodings_js_1.encodeJSON)("body", payload.RequestBody, { explode: true });
62
+ const pathParams = {
63
+ span_id: (0, encodings_js_1.encodeSimple)("span_id", payload.span_id, {
64
+ explode: false,
65
+ charEncoding: "percent",
66
+ }),
67
+ trace_id: (0, encodings_js_1.encodeSimple)("trace_id", payload.trace_id, {
68
+ explode: false,
69
+ charEncoding: "percent",
70
+ }),
71
+ };
72
+ const path = (0, url_js_1.pathToFunc)("/v2/traces/{trace_id}/spans/{span_id}/annotation")(pathParams);
73
+ const headers = new Headers((0, primitives_js_1.compactMap)({
74
+ "Content-Type": "application/json",
75
+ Accept: "*/*",
76
+ }));
77
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
78
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
79
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
80
+ const context = {
81
+ options: client._options,
82
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
83
+ operationID: "CreateAnnotation",
84
+ oAuth2Scopes: null,
85
+ resolvedSecurity: requestSecurity,
86
+ securitySource: client._options.apiKey,
87
+ retryConfig: options?.retries
88
+ || client._options.retryConfig
89
+ || { strategy: "none" },
90
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
91
+ };
92
+ const requestRes = client._createRequest(context, {
93
+ security: requestSecurity,
94
+ method: "POST",
95
+ baseURL: options?.serverURL,
96
+ path: path,
97
+ headers: headers,
98
+ body: body,
99
+ userAgent: client._options.userAgent,
100
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
101
+ }, options);
102
+ if (!requestRes.ok) {
103
+ return [requestRes, { status: "invalid" }];
104
+ }
105
+ const req = requestRes.value;
106
+ const doResult = await client._do(req, {
107
+ context,
108
+ errorCodes: ["4XX", "5XX"],
109
+ retryConfig: context.retryConfig,
110
+ retryCodes: context.retryCodes,
111
+ });
112
+ if (!doResult.ok) {
113
+ return [doResult, { status: "request-error", request: req }];
114
+ }
115
+ const response = doResult.value;
116
+ const [result] = await M.match(M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"))(response, req);
117
+ if (!result.ok) {
118
+ return [result, { status: "complete", request: req, response }];
119
+ }
120
+ return [result, { status: "complete", request: req, response }];
121
+ }
122
+ //# sourceMappingURL=annotationsCreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotationsCreate.js","sourceRoot":"","sources":["../src/funcs/annotationsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,8CAsBC;AAhDD,0CAA4B;AAE5B,sDAA+D;AAC/D,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,0EAA4D;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,MAAe,EACf,OAA2C,EAC3C,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAA2C,EAC3C,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,sCAAsC,CAAC,KAAK,CAAC,KAAK,CAAC,EACzE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,G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G,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EACpB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { OrqCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import { OrqError } from "../models/errors/orqerror.js";
5
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
6
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Remove an annotation from a span
12
+ */
13
+ export declare function annotationsDelete(client: OrqCore, request: operations.DeleteAnnotationRequest, options?: RequestOptions): APIPromise<Result<void, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=annotationsDelete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotationsDelete.d.ts","sourceRoot":"","sources":["../src/funcs/annotationsDelete.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,IAAI,EACF,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.annotationsDelete = annotationsDelete;
40
+ const z = __importStar(require("zod/v3"));
41
+ const encodings_js_1 = require("../lib/encodings.js");
42
+ const M = __importStar(require("../lib/matchers.js"));
43
+ const primitives_js_1 = require("../lib/primitives.js");
44
+ const schemas_js_1 = require("../lib/schemas.js");
45
+ const security_js_1 = require("../lib/security.js");
46
+ const url_js_1 = require("../lib/url.js");
47
+ const operations = __importStar(require("../models/operations/index.js"));
48
+ const async_js_1 = require("../types/async.js");
49
+ /**
50
+ * Remove an annotation from a span
51
+ */
52
+ function annotationsDelete(client, request, options) {
53
+ return new async_js_1.APIPromise($do(client, request, options));
54
+ }
55
+ async function $do(client, request, options) {
56
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.DeleteAnnotationRequest$outboundSchema.parse(value), "Input validation failed");
57
+ if (!parsed.ok) {
58
+ return [parsed, { status: "invalid" }];
59
+ }
60
+ const payload = parsed.value;
61
+ const body = (0, encodings_js_1.encodeJSON)("body", payload.RequestBody, { explode: true });
62
+ const pathParams = {
63
+ span_id: (0, encodings_js_1.encodeSimple)("span_id", payload.span_id, {
64
+ explode: false,
65
+ charEncoding: "percent",
66
+ }),
67
+ trace_id: (0, encodings_js_1.encodeSimple)("trace_id", payload.trace_id, {
68
+ explode: false,
69
+ charEncoding: "percent",
70
+ }),
71
+ };
72
+ const path = (0, url_js_1.pathToFunc)("/v2/traces/{trace_id}/spans/{span_id}/annotation")(pathParams);
73
+ const headers = new Headers((0, primitives_js_1.compactMap)({
74
+ "Content-Type": "application/json",
75
+ Accept: "*/*",
76
+ }));
77
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
78
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
79
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
80
+ const context = {
81
+ options: client._options,
82
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
83
+ operationID: "DeleteAnnotation",
84
+ oAuth2Scopes: null,
85
+ resolvedSecurity: requestSecurity,
86
+ securitySource: client._options.apiKey,
87
+ retryConfig: options?.retries
88
+ || client._options.retryConfig
89
+ || { strategy: "none" },
90
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
91
+ };
92
+ const requestRes = client._createRequest(context, {
93
+ security: requestSecurity,
94
+ method: "DELETE",
95
+ baseURL: options?.serverURL,
96
+ path: path,
97
+ headers: headers,
98
+ body: body,
99
+ userAgent: client._options.userAgent,
100
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
101
+ }, options);
102
+ if (!requestRes.ok) {
103
+ return [requestRes, { status: "invalid" }];
104
+ }
105
+ const req = requestRes.value;
106
+ const doResult = await client._do(req, {
107
+ context,
108
+ errorCodes: ["4XX", "5XX"],
109
+ retryConfig: context.retryConfig,
110
+ retryCodes: context.retryCodes,
111
+ });
112
+ if (!doResult.ok) {
113
+ return [doResult, { status: "request-error", request: req }];
114
+ }
115
+ const response = doResult.value;
116
+ const [result] = await M.match(M.nil(200, z.void()), M.fail("4XX"), M.fail("5XX"))(response, req);
117
+ if (!result.ok) {
118
+ return [result, { status: "complete", request: req, response }];
119
+ }
120
+ return [result, { status: "complete", request: req, response }];
121
+ }
122
+ //# sourceMappingURL=annotationsDelete.js.map
@@ -0,0 +1 @@
1
+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ED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@orq-ai/node",
5
- "version": "4.4.0-rc.30",
5
+ "version": "4.4.0-rc.32",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
39
39
  export declare const SDK_METADATA: {
40
40
  readonly language: "typescript";
41
41
  readonly openapiDocVersion: "2.0";
42
- readonly sdkVersion: "4.4.0-rc.30";
42
+ readonly sdkVersion: "4.4.0-rc.32";
43
43
  readonly genVersion: "2.836.5";
44
- readonly userAgent: "speakeasy-sdk/typescript 4.4.0-rc.30 2.836.5 2.0 @orq-ai/node";
44
+ readonly userAgent: "speakeasy-sdk/typescript 4.4.0-rc.32 2.836.5 2.0 @orq-ai/node";
45
45
  };
46
46
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
28
28
  exports.SDK_METADATA = {
29
29
  language: "typescript",
30
30
  openapiDocVersion: "2.0",
31
- sdkVersion: "4.4.0-rc.30",
31
+ sdkVersion: "4.4.0-rc.32",
32
32
  genVersion: "2.836.5",
33
- userAgent: "speakeasy-sdk/typescript 4.4.0-rc.30 2.836.5 2.0 @orq-ai/node",
33
+ userAgent: "speakeasy-sdk/typescript 4.4.0-rc.32 2.836.5 2.0 @orq-ai/node",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -54,7 +54,7 @@ exports.PartKind$inboundSchema = z
54
54
  .nativeEnum(exports.PartKind);
55
55
  /** @internal */
56
56
  exports.PartReasoningPart$inboundSchema = z.object({
57
- _id: z.string().default("reasoning_01kj52mn7txgqgvda0y92mj6a9"),
57
+ _id: z.string().default("reasoning_01kj5afcmg682ay0deqss0bwjh"),
58
58
  metadata: z.record(z.any()).optional(),
59
59
  kind: exports.PartKind$inboundSchema,
60
60
  reasoning: z.string(),
@@ -43,7 +43,7 @@ const primitives_js_1 = require("../../lib/primitives.js");
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
44
  /** @internal */
45
45
  exports.ReasoningPart$inboundSchema = z.object({
46
- _id: z.string().default("reasoning_01kj52mn7nf031k29vytmpbnp0"),
46
+ _id: z.string().default("reasoning_01kj5afcmbtns4qsgzhjpmtthj"),
47
47
  metadata: z.record(z.any()).optional(),
48
48
  kind: z.literal("reasoning"),
49
49
  reasoning: z.string(),
@@ -0,0 +1,71 @@
1
+ import * as z from "zod/v3";
2
+ /**
3
+ * 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.
4
+ */
5
+ export type CreateAnnotationValue = string | number | Array<string>;
6
+ export type Annotations = {
7
+ /**
8
+ * Unique key of the review.
9
+ */
10
+ key: string;
11
+ /**
12
+ * 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.
13
+ */
14
+ value: string | number | Array<string>;
15
+ };
16
+ export type CreateAnnotationMetadata = {
17
+ identityId?: string | undefined;
18
+ };
19
+ export type CreateAnnotationRequestBody = {
20
+ annotations: Array<Annotations>;
21
+ metadata?: CreateAnnotationMetadata | undefined;
22
+ };
23
+ export type CreateAnnotationRequest = {
24
+ /**
25
+ * Unique identifier of the trace
26
+ */
27
+ traceId: string;
28
+ /**
29
+ * Unique identifier of the span
30
+ */
31
+ spanId: string;
32
+ requestBody?: CreateAnnotationRequestBody | undefined;
33
+ };
34
+ /** @internal */
35
+ export type CreateAnnotationValue$Outbound = string | number | Array<string>;
36
+ /** @internal */
37
+ export declare const CreateAnnotationValue$outboundSchema: z.ZodType<CreateAnnotationValue$Outbound, z.ZodTypeDef, CreateAnnotationValue>;
38
+ export declare function createAnnotationValueToJSON(createAnnotationValue: CreateAnnotationValue): string;
39
+ /** @internal */
40
+ export type Annotations$Outbound = {
41
+ key: string;
42
+ value: string | number | Array<string>;
43
+ };
44
+ /** @internal */
45
+ export declare const Annotations$outboundSchema: z.ZodType<Annotations$Outbound, z.ZodTypeDef, Annotations>;
46
+ export declare function annotationsToJSON(annotations: Annotations): string;
47
+ /** @internal */
48
+ export type CreateAnnotationMetadata$Outbound = {
49
+ identityId?: string | undefined;
50
+ };
51
+ /** @internal */
52
+ export declare const CreateAnnotationMetadata$outboundSchema: z.ZodType<CreateAnnotationMetadata$Outbound, z.ZodTypeDef, CreateAnnotationMetadata>;
53
+ export declare function createAnnotationMetadataToJSON(createAnnotationMetadata: CreateAnnotationMetadata): string;
54
+ /** @internal */
55
+ export type CreateAnnotationRequestBody$Outbound = {
56
+ annotations: Array<Annotations$Outbound>;
57
+ metadata?: CreateAnnotationMetadata$Outbound | undefined;
58
+ };
59
+ /** @internal */
60
+ export declare const CreateAnnotationRequestBody$outboundSchema: z.ZodType<CreateAnnotationRequestBody$Outbound, z.ZodTypeDef, CreateAnnotationRequestBody>;
61
+ export declare function createAnnotationRequestBodyToJSON(createAnnotationRequestBody: CreateAnnotationRequestBody): string;
62
+ /** @internal */
63
+ export type CreateAnnotationRequest$Outbound = {
64
+ trace_id: string;
65
+ span_id: string;
66
+ RequestBody?: CreateAnnotationRequestBody$Outbound | undefined;
67
+ };
68
+ /** @internal */
69
+ export declare const CreateAnnotationRequest$outboundSchema: z.ZodType<CreateAnnotationRequest$Outbound, z.ZodTypeDef, CreateAnnotationRequest>;
70
+ export declare function createAnnotationRequestToJSON(createAnnotationRequest: CreateAnnotationRequest): string;
71
+ //# sourceMappingURL=createannotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createannotation.d.ts","sourceRoot":"","sources":["../../src/models/operations/createannotation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,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speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CreateAnnotationRequest$outboundSchema = exports.CreateAnnotationRequestBody$outboundSchema = exports.CreateAnnotationMetadata$outboundSchema = exports.Annotations$outboundSchema = exports.CreateAnnotationValue$outboundSchema = void 0;
40
+ exports.createAnnotationValueToJSON = createAnnotationValueToJSON;
41
+ exports.annotationsToJSON = annotationsToJSON;
42
+ exports.createAnnotationMetadataToJSON = createAnnotationMetadataToJSON;
43
+ exports.createAnnotationRequestBodyToJSON = createAnnotationRequestBodyToJSON;
44
+ exports.createAnnotationRequestToJSON = createAnnotationRequestToJSON;
45
+ const z = __importStar(require("zod/v3"));
46
+ const primitives_js_1 = require("../../lib/primitives.js");
47
+ /** @internal */
48
+ exports.CreateAnnotationValue$outboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
49
+ function createAnnotationValueToJSON(createAnnotationValue) {
50
+ return JSON.stringify(exports.CreateAnnotationValue$outboundSchema.parse(createAnnotationValue));
51
+ }
52
+ /** @internal */
53
+ exports.Annotations$outboundSchema = z.object({
54
+ key: z.string(),
55
+ value: z.union([z.string(), z.number(), z.array(z.string())]),
56
+ });
57
+ function annotationsToJSON(annotations) {
58
+ return JSON.stringify(exports.Annotations$outboundSchema.parse(annotations));
59
+ }
60
+ /** @internal */
61
+ exports.CreateAnnotationMetadata$outboundSchema = z.object({
62
+ identityId: z.string().optional(),
63
+ });
64
+ function createAnnotationMetadataToJSON(createAnnotationMetadata) {
65
+ return JSON.stringify(exports.CreateAnnotationMetadata$outboundSchema.parse(createAnnotationMetadata));
66
+ }
67
+ /** @internal */
68
+ exports.CreateAnnotationRequestBody$outboundSchema = z.object({
69
+ annotations: z.array(z.lazy(() => exports.Annotations$outboundSchema)),
70
+ metadata: z.lazy(() => exports.CreateAnnotationMetadata$outboundSchema).optional(),
71
+ });
72
+ function createAnnotationRequestBodyToJSON(createAnnotationRequestBody) {
73
+ return JSON.stringify(exports.CreateAnnotationRequestBody$outboundSchema.parse(createAnnotationRequestBody));
74
+ }
75
+ /** @internal */
76
+ exports.CreateAnnotationRequest$outboundSchema = z.object({
77
+ traceId: z.string(),
78
+ spanId: z.string(),
79
+ requestBody: z.lazy(() => exports.CreateAnnotationRequestBody$outboundSchema)
80
+ .optional(),
81
+ }).transform((v) => {
82
+ return (0, primitives_js_1.remap)(v, {
83
+ traceId: "trace_id",
84
+ spanId: "span_id",
85
+ requestBody: "RequestBody",
86
+ });
87
+ });
88
+ function createAnnotationRequestToJSON(createAnnotationRequest) {
89
+ return JSON.stringify(exports.CreateAnnotationRequest$outboundSchema.parse(createAnnotationRequest));
90
+ }
91
+ //# sourceMappingURL=createannotation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createannotation.js","sourceRoot":"","sources":["../../src/models/operations/createannotation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDH,kEAMC;AAkBD,8CAEC;AAgBD,wEAMC;AAkBD,8EAQC;AA2BD,sEAMC;AA7JD,0CAA4B;AAC5B,2DAA0D;AA0C1D,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAE3D,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAQD,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CAC9D,CAAC,CAAC;AAEH,SAAgB,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,kCAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AAOD,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CA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