@orq-ai/node 4.4.11 → 4.4.14
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.
- package/funcs/agentsStream.js +4 -2
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +4 -2
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/deploymentsStream.js +4 -2
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/filesCreate.js +7 -0
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +7 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +7 -0
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.d.ts +5 -0
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +2 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +2 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -1
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createresponse.d.ts.map +1 -1
- package/models/operations/createresponse.js +2 -1
- package/models/operations/createresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsList.ts +5 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
- package/packages/orq-rc/src/funcs/agentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -1
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +10 -1
- package/packages/orq-rc/src/lib/matchers.ts +3 -2
- package/packages/orq-rc/src/lib/security.ts +1 -2
- package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
- package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
- package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
- package/packages/orq-rc/src/models/components/index.ts +3 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
- package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +37 -2
- package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +14 -3
- package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -3
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
- package/packages/orq-rc/src/models/operations/createresponse.ts +2 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
- package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
- package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +3 -62
- package/packages/orq-rc/src/models/operations/updatetool.ts +96 -7
- package/packages/orq-rc/src/sdk/agents.ts +39 -1
- package/packages/orq-rc/src/sdk/responses.ts +19 -0
- package/src/funcs/agentsStream.ts +4 -1
- package/src/funcs/agentsStreamRun.ts +4 -1
- package/src/funcs/deploymentsStream.ts +4 -1
- package/src/funcs/filesCreate.ts +11 -0
- package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +10 -1
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +2 -1
- package/src/models/operations/createchatcompletion.ts +2 -1
- package/src/models/operations/createcompletion.ts +2 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createresponse.ts +2 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -540,7 +540,7 @@ export type CreateToolRequestBody =
|
|
|
540
540
|
/**
|
|
541
541
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
542
542
|
*/
|
|
543
|
-
export const
|
|
543
|
+
export const CreateToolResponseBodyToolsResponse200ApplicationJSONStatus = {
|
|
544
544
|
Live: "live",
|
|
545
545
|
Draft: "draft",
|
|
546
546
|
Pending: "pending",
|
|
@@ -549,9 +549,10 @@ export const CreateToolResponseBodyToolsResponse200Status = {
|
|
|
549
549
|
/**
|
|
550
550
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
551
551
|
*/
|
|
552
|
-
export type
|
|
553
|
-
|
|
554
|
-
|
|
552
|
+
export type CreateToolResponseBodyToolsResponse200ApplicationJSONStatus =
|
|
553
|
+
ClosedEnum<
|
|
554
|
+
typeof CreateToolResponseBodyToolsResponse200ApplicationJSONStatus
|
|
555
|
+
>;
|
|
555
556
|
|
|
556
557
|
/**
|
|
557
558
|
* The type must be "object"
|
|
@@ -568,7 +569,7 @@ export type CreateToolResponseBodyToolsResponse200ApplicationJson5Type =
|
|
|
568
569
|
/**
|
|
569
570
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
570
571
|
*/
|
|
571
|
-
export type
|
|
572
|
+
export type CreateToolResponseBodyToolsParameters = {
|
|
572
573
|
/**
|
|
573
574
|
* The type must be "object"
|
|
574
575
|
*/
|
|
@@ -593,7 +594,7 @@ export type ResponseBodyCodeTool = {
|
|
|
593
594
|
/**
|
|
594
595
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
595
596
|
*/
|
|
596
|
-
parameters?:
|
|
597
|
+
parameters?: CreateToolResponseBodyToolsParameters | undefined;
|
|
597
598
|
language: ResponseBodyLanguage;
|
|
598
599
|
/**
|
|
599
600
|
* The code to execute.
|
|
@@ -643,7 +644,7 @@ export type ResponseBodyCodeExecutionTool = {
|
|
|
643
644
|
/**
|
|
644
645
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
645
646
|
*/
|
|
646
|
-
status:
|
|
647
|
+
status: CreateToolResponseBodyToolsResponse200ApplicationJSONStatus;
|
|
647
648
|
versionHash?: string | undefined;
|
|
648
649
|
type: "code";
|
|
649
650
|
codeTool: ResponseBodyCodeTool;
|
|
@@ -652,7 +653,7 @@ export type ResponseBodyCodeExecutionTool = {
|
|
|
652
653
|
/**
|
|
653
654
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
654
655
|
*/
|
|
655
|
-
export const
|
|
656
|
+
export const CreateToolResponseBodyToolsResponse200Status = {
|
|
656
657
|
Live: "live",
|
|
657
658
|
Draft: "draft",
|
|
658
659
|
Pending: "pending",
|
|
@@ -661,11 +662,11 @@ export const CreateToolResponseBodyToolsResponseStatus = {
|
|
|
661
662
|
/**
|
|
662
663
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
663
664
|
*/
|
|
664
|
-
export type
|
|
665
|
-
typeof
|
|
665
|
+
export type CreateToolResponseBodyToolsResponse200Status = ClosedEnum<
|
|
666
|
+
typeof CreateToolResponseBodyToolsResponse200Status
|
|
666
667
|
>;
|
|
667
668
|
|
|
668
|
-
export type
|
|
669
|
+
export type CreateToolResponseBodyHeaders = {
|
|
669
670
|
value: string;
|
|
670
671
|
encrypted: boolean;
|
|
671
672
|
};
|
|
@@ -682,7 +683,7 @@ export type CreateToolResponseBodySchema = {
|
|
|
682
683
|
required?: Array<string> | undefined;
|
|
683
684
|
};
|
|
684
685
|
|
|
685
|
-
export type
|
|
686
|
+
export type CreateToolResponseBodyTools = {
|
|
686
687
|
id: string;
|
|
687
688
|
name: string;
|
|
688
689
|
description?: string | undefined;
|
|
@@ -711,11 +712,11 @@ export type ResponseBodyMcp = {
|
|
|
711
712
|
/**
|
|
712
713
|
* HTTP headers for MCP server requests with encryption support
|
|
713
714
|
*/
|
|
714
|
-
headers?: { [k: string]:
|
|
715
|
+
headers?: { [k: string]: CreateToolResponseBodyHeaders } | undefined;
|
|
715
716
|
/**
|
|
716
717
|
* Array of tools available from the MCP server
|
|
717
718
|
*/
|
|
718
|
-
tools: Array<
|
|
719
|
+
tools: Array<CreateToolResponseBodyTools>;
|
|
719
720
|
/**
|
|
720
721
|
* The connection type used by the MCP server
|
|
721
722
|
*/
|
|
@@ -764,7 +765,7 @@ export type ResponseBodyMCPTool = {
|
|
|
764
765
|
/**
|
|
765
766
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
766
767
|
*/
|
|
767
|
-
status:
|
|
768
|
+
status: CreateToolResponseBodyToolsResponse200Status;
|
|
768
769
|
versionHash?: string | undefined;
|
|
769
770
|
type: "mcp";
|
|
770
771
|
mcp: ResponseBodyMcp;
|
|
@@ -773,7 +774,7 @@ export type ResponseBodyMCPTool = {
|
|
|
773
774
|
/**
|
|
774
775
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
775
776
|
*/
|
|
776
|
-
export const
|
|
777
|
+
export const CreateToolResponseBodyToolsResponseStatus = {
|
|
777
778
|
Live: "live",
|
|
778
779
|
Draft: "draft",
|
|
779
780
|
Pending: "pending",
|
|
@@ -782,8 +783,8 @@ export const CreateToolResponseBodyToolsStatus = {
|
|
|
782
783
|
/**
|
|
783
784
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
784
785
|
*/
|
|
785
|
-
export type
|
|
786
|
-
typeof
|
|
786
|
+
export type CreateToolResponseBodyToolsResponseStatus = ClosedEnum<
|
|
787
|
+
typeof CreateToolResponseBodyToolsResponseStatus
|
|
787
788
|
>;
|
|
788
789
|
|
|
789
790
|
/**
|
|
@@ -807,7 +808,9 @@ export type CreateToolHeadersTools2 = {
|
|
|
807
808
|
encrypted: boolean;
|
|
808
809
|
};
|
|
809
810
|
|
|
810
|
-
export type
|
|
811
|
+
export type CreateToolResponseBodyToolsHeaders =
|
|
812
|
+
| CreateToolHeadersTools2
|
|
813
|
+
| string;
|
|
811
814
|
|
|
812
815
|
/**
|
|
813
816
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
@@ -922,7 +925,7 @@ export type ResponseBodyHTTPTool = {
|
|
|
922
925
|
/**
|
|
923
926
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
924
927
|
*/
|
|
925
|
-
status:
|
|
928
|
+
status: CreateToolResponseBodyToolsResponseStatus;
|
|
926
929
|
versionHash?: string | undefined;
|
|
927
930
|
type: "http";
|
|
928
931
|
http: CreateToolResponseBodyHttp;
|
|
@@ -931,7 +934,7 @@ export type ResponseBodyHTTPTool = {
|
|
|
931
934
|
/**
|
|
932
935
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
933
936
|
*/
|
|
934
|
-
export const
|
|
937
|
+
export const CreateToolResponseBodyToolsStatus = {
|
|
935
938
|
Live: "live",
|
|
936
939
|
Draft: "draft",
|
|
937
940
|
Pending: "pending",
|
|
@@ -940,8 +943,8 @@ export const CreateToolResponseBodyStatus = {
|
|
|
940
943
|
/**
|
|
941
944
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
942
945
|
*/
|
|
943
|
-
export type
|
|
944
|
-
typeof
|
|
946
|
+
export type CreateToolResponseBodyToolsStatus = ClosedEnum<
|
|
947
|
+
typeof CreateToolResponseBodyToolsStatus
|
|
945
948
|
>;
|
|
946
949
|
|
|
947
950
|
/**
|
|
@@ -1024,7 +1027,7 @@ export type ResponseBodyJSONSchemaTool = {
|
|
|
1024
1027
|
/**
|
|
1025
1028
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1026
1029
|
*/
|
|
1027
|
-
status:
|
|
1030
|
+
status: CreateToolResponseBodyToolsStatus;
|
|
1028
1031
|
versionHash?: string | undefined;
|
|
1029
1032
|
type: "json_schema";
|
|
1030
1033
|
jsonSchema: ResponseBodyJsonSchema;
|
|
@@ -1033,7 +1036,7 @@ export type ResponseBodyJSONSchemaTool = {
|
|
|
1033
1036
|
/**
|
|
1034
1037
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1035
1038
|
*/
|
|
1036
|
-
export const
|
|
1039
|
+
export const CreateToolResponseBodyStatus = {
|
|
1037
1040
|
Live: "live",
|
|
1038
1041
|
Draft: "draft",
|
|
1039
1042
|
Pending: "pending",
|
|
@@ -1042,7 +1045,9 @@ export const ResponseBodyStatus = {
|
|
|
1042
1045
|
/**
|
|
1043
1046
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1044
1047
|
*/
|
|
1045
|
-
export type
|
|
1048
|
+
export type CreateToolResponseBodyStatus = ClosedEnum<
|
|
1049
|
+
typeof CreateToolResponseBodyStatus
|
|
1050
|
+
>;
|
|
1046
1051
|
|
|
1047
1052
|
/**
|
|
1048
1053
|
* The type must be "object"
|
|
@@ -1059,7 +1064,7 @@ export type CreateToolResponseBodyToolsResponse200ApplicationJson1Type =
|
|
|
1059
1064
|
/**
|
|
1060
1065
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1061
1066
|
*/
|
|
1062
|
-
export type
|
|
1067
|
+
export type CreateToolResponseBodyParameters = {
|
|
1063
1068
|
/**
|
|
1064
1069
|
* The type must be "object"
|
|
1065
1070
|
*/
|
|
@@ -1091,7 +1096,7 @@ export type CreateToolResponseBodyFunction = {
|
|
|
1091
1096
|
/**
|
|
1092
1097
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1093
1098
|
*/
|
|
1094
|
-
parameters?:
|
|
1099
|
+
parameters?: CreateToolResponseBodyParameters | undefined;
|
|
1095
1100
|
};
|
|
1096
1101
|
|
|
1097
1102
|
/**
|
|
@@ -1136,7 +1141,7 @@ export type ResponseBodyFunctionTool = {
|
|
|
1136
1141
|
/**
|
|
1137
1142
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1138
1143
|
*/
|
|
1139
|
-
status:
|
|
1144
|
+
status: CreateToolResponseBodyStatus;
|
|
1140
1145
|
versionHash?: string | undefined;
|
|
1141
1146
|
type: "function";
|
|
1142
1147
|
function: CreateToolResponseBodyFunction;
|
|
@@ -1830,9 +1835,10 @@ export function createToolRequestBodyToJSON(
|
|
|
1830
1835
|
}
|
|
1831
1836
|
|
|
1832
1837
|
/** @internal */
|
|
1833
|
-
export const
|
|
1834
|
-
z.ZodNativeEnum<
|
|
1835
|
-
|
|
1838
|
+
export const CreateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema:
|
|
1839
|
+
z.ZodNativeEnum<
|
|
1840
|
+
typeof CreateToolResponseBodyToolsResponse200ApplicationJSONStatus
|
|
1841
|
+
> = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJSONStatus);
|
|
1836
1842
|
|
|
1837
1843
|
/** @internal */
|
|
1838
1844
|
export const CreateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema:
|
|
@@ -1841,8 +1847,8 @@ export const CreateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundS
|
|
|
1841
1847
|
> = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson5Type);
|
|
1842
1848
|
|
|
1843
1849
|
/** @internal */
|
|
1844
|
-
export const
|
|
1845
|
-
|
|
1850
|
+
export const CreateToolResponseBodyToolsParameters$inboundSchema: z.ZodType<
|
|
1851
|
+
CreateToolResponseBodyToolsParameters,
|
|
1846
1852
|
z.ZodTypeDef,
|
|
1847
1853
|
unknown
|
|
1848
1854
|
> = collectExtraKeys$(
|
|
@@ -1856,13 +1862,14 @@ export const CreateToolResponseBodyParameters$inboundSchema: z.ZodType<
|
|
|
1856
1862
|
true,
|
|
1857
1863
|
);
|
|
1858
1864
|
|
|
1859
|
-
export function
|
|
1865
|
+
export function createToolResponseBodyToolsParametersFromJSON(
|
|
1860
1866
|
jsonString: string,
|
|
1861
|
-
): SafeParseResult<
|
|
1867
|
+
): SafeParseResult<CreateToolResponseBodyToolsParameters, SDKValidationError> {
|
|
1862
1868
|
return safeParse(
|
|
1863
1869
|
jsonString,
|
|
1864
|
-
(x) =>
|
|
1865
|
-
|
|
1870
|
+
(x) =>
|
|
1871
|
+
CreateToolResponseBodyToolsParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1872
|
+
`Failed to parse 'CreateToolResponseBodyToolsParameters' from JSON`,
|
|
1866
1873
|
);
|
|
1867
1874
|
}
|
|
1868
1875
|
|
|
@@ -1877,7 +1884,7 @@ export const ResponseBodyCodeTool$inboundSchema: z.ZodType<
|
|
|
1877
1884
|
z.ZodTypeDef,
|
|
1878
1885
|
unknown
|
|
1879
1886
|
> = z.object({
|
|
1880
|
-
parameters: z.lazy(() =>
|
|
1887
|
+
parameters: z.lazy(() => CreateToolResponseBodyToolsParameters$inboundSchema)
|
|
1881
1888
|
.optional(),
|
|
1882
1889
|
language: ResponseBodyLanguage$inboundSchema,
|
|
1883
1890
|
code: z.string(),
|
|
@@ -1899,7 +1906,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1899
1906
|
z.ZodTypeDef,
|
|
1900
1907
|
unknown
|
|
1901
1908
|
> = z.object({
|
|
1902
|
-
_id: z.string().default("
|
|
1909
|
+
_id: z.string().default("tool_01KJZ6J38BHYE1NDNTV1303ZAM"),
|
|
1903
1910
|
path: z.string(),
|
|
1904
1911
|
key: z.string(),
|
|
1905
1912
|
display_name: z.string().optional(),
|
|
@@ -1910,9 +1917,9 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1910
1917
|
workspace_id: z.string(),
|
|
1911
1918
|
created: z.string(),
|
|
1912
1919
|
updated: z.string(),
|
|
1913
|
-
status:
|
|
1914
|
-
|
|
1915
|
-
|
|
1920
|
+
status:
|
|
1921
|
+
CreateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema
|
|
1922
|
+
.default("live"),
|
|
1916
1923
|
version_hash: z.string().optional(),
|
|
1917
1924
|
type: z.literal("code"),
|
|
1918
1925
|
code_tool: z.lazy(() => ResponseBodyCodeTool$inboundSchema),
|
|
@@ -1940,13 +1947,13 @@ export function responseBodyCodeExecutionToolFromJSON(
|
|
|
1940
1947
|
}
|
|
1941
1948
|
|
|
1942
1949
|
/** @internal */
|
|
1943
|
-
export const
|
|
1944
|
-
z.ZodNativeEnum<typeof
|
|
1945
|
-
.nativeEnum(
|
|
1950
|
+
export const CreateToolResponseBodyToolsResponse200Status$inboundSchema:
|
|
1951
|
+
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200Status> = z
|
|
1952
|
+
.nativeEnum(CreateToolResponseBodyToolsResponse200Status);
|
|
1946
1953
|
|
|
1947
1954
|
/** @internal */
|
|
1948
|
-
export const
|
|
1949
|
-
|
|
1955
|
+
export const CreateToolResponseBodyHeaders$inboundSchema: z.ZodType<
|
|
1956
|
+
CreateToolResponseBodyHeaders,
|
|
1950
1957
|
z.ZodTypeDef,
|
|
1951
1958
|
unknown
|
|
1952
1959
|
> = z.object({
|
|
@@ -1954,13 +1961,13 @@ export const ResponseBodyHeaders$inboundSchema: z.ZodType<
|
|
|
1954
1961
|
encrypted: z.boolean().default(false),
|
|
1955
1962
|
});
|
|
1956
1963
|
|
|
1957
|
-
export function
|
|
1964
|
+
export function createToolResponseBodyHeadersFromJSON(
|
|
1958
1965
|
jsonString: string,
|
|
1959
|
-
): SafeParseResult<
|
|
1966
|
+
): SafeParseResult<CreateToolResponseBodyHeaders, SDKValidationError> {
|
|
1960
1967
|
return safeParse(
|
|
1961
1968
|
jsonString,
|
|
1962
|
-
(x) =>
|
|
1963
|
-
`Failed to parse '
|
|
1969
|
+
(x) => CreateToolResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
1970
|
+
`Failed to parse 'CreateToolResponseBodyHeaders' from JSON`,
|
|
1964
1971
|
);
|
|
1965
1972
|
}
|
|
1966
1973
|
|
|
@@ -1993,24 +2000,24 @@ export function createToolResponseBodySchemaFromJSON(
|
|
|
1993
2000
|
}
|
|
1994
2001
|
|
|
1995
2002
|
/** @internal */
|
|
1996
|
-
export const
|
|
1997
|
-
|
|
2003
|
+
export const CreateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
2004
|
+
CreateToolResponseBodyTools,
|
|
1998
2005
|
z.ZodTypeDef,
|
|
1999
2006
|
unknown
|
|
2000
2007
|
> = z.object({
|
|
2001
|
-
id: z.string().default("
|
|
2008
|
+
id: z.string().default("01KJZ6J38AM3N30BZDWBNTE3SP"),
|
|
2002
2009
|
name: z.string(),
|
|
2003
2010
|
description: z.string().optional(),
|
|
2004
2011
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
2005
2012
|
});
|
|
2006
2013
|
|
|
2007
|
-
export function
|
|
2014
|
+
export function createToolResponseBodyToolsFromJSON(
|
|
2008
2015
|
jsonString: string,
|
|
2009
|
-
): SafeParseResult<
|
|
2016
|
+
): SafeParseResult<CreateToolResponseBodyTools, SDKValidationError> {
|
|
2010
2017
|
return safeParse(
|
|
2011
2018
|
jsonString,
|
|
2012
|
-
(x) =>
|
|
2013
|
-
`Failed to parse '
|
|
2019
|
+
(x) => CreateToolResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
|
|
2020
|
+
`Failed to parse 'CreateToolResponseBodyTools' from JSON`,
|
|
2014
2021
|
);
|
|
2015
2022
|
}
|
|
2016
2023
|
|
|
@@ -2026,8 +2033,9 @@ export const ResponseBodyMcp$inboundSchema: z.ZodType<
|
|
|
2026
2033
|
unknown
|
|
2027
2034
|
> = z.object({
|
|
2028
2035
|
server_url: z.string(),
|
|
2029
|
-
headers: z.record(z.lazy(() =>
|
|
2030
|
-
|
|
2036
|
+
headers: z.record(z.lazy(() => CreateToolResponseBodyHeaders$inboundSchema))
|
|
2037
|
+
.optional(),
|
|
2038
|
+
tools: z.array(z.lazy(() => CreateToolResponseBodyTools$inboundSchema)),
|
|
2031
2039
|
connection_type: ResponseBodyConnectionType$inboundSchema,
|
|
2032
2040
|
}).transform((v) => {
|
|
2033
2041
|
return remap$(v, {
|
|
@@ -2052,7 +2060,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2052
2060
|
z.ZodTypeDef,
|
|
2053
2061
|
unknown
|
|
2054
2062
|
> = z.object({
|
|
2055
|
-
_id: z.string().default("
|
|
2063
|
+
_id: z.string().default("tool_01KJZ6J3889JECXHQ44DJARJ7F"),
|
|
2056
2064
|
path: z.string(),
|
|
2057
2065
|
key: z.string(),
|
|
2058
2066
|
display_name: z.string().optional(),
|
|
@@ -2063,7 +2071,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2063
2071
|
workspace_id: z.string(),
|
|
2064
2072
|
created: z.string(),
|
|
2065
2073
|
updated: z.string(),
|
|
2066
|
-
status:
|
|
2074
|
+
status: CreateToolResponseBodyToolsResponse200Status$inboundSchema.default(
|
|
2067
2075
|
"live",
|
|
2068
2076
|
),
|
|
2069
2077
|
version_hash: z.string().optional(),
|
|
@@ -2092,9 +2100,9 @@ export function responseBodyMCPToolFromJSON(
|
|
|
2092
2100
|
}
|
|
2093
2101
|
|
|
2094
2102
|
/** @internal */
|
|
2095
|
-
export const
|
|
2096
|
-
typeof
|
|
2097
|
-
|
|
2103
|
+
export const CreateToolResponseBodyToolsResponseStatus$inboundSchema:
|
|
2104
|
+
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponseStatus> = z
|
|
2105
|
+
.nativeEnum(CreateToolResponseBodyToolsResponseStatus);
|
|
2098
2106
|
|
|
2099
2107
|
/** @internal */
|
|
2100
2108
|
export const CreateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
@@ -2122,19 +2130,20 @@ export function createToolHeadersTools2FromJSON(
|
|
|
2122
2130
|
}
|
|
2123
2131
|
|
|
2124
2132
|
/** @internal */
|
|
2125
|
-
export const
|
|
2126
|
-
|
|
2133
|
+
export const CreateToolResponseBodyToolsHeaders$inboundSchema: z.ZodType<
|
|
2134
|
+
CreateToolResponseBodyToolsHeaders,
|
|
2127
2135
|
z.ZodTypeDef,
|
|
2128
2136
|
unknown
|
|
2129
2137
|
> = z.union([z.lazy(() => CreateToolHeadersTools2$inboundSchema), z.string()]);
|
|
2130
2138
|
|
|
2131
|
-
export function
|
|
2139
|
+
export function createToolResponseBodyToolsHeadersFromJSON(
|
|
2132
2140
|
jsonString: string,
|
|
2133
|
-
): SafeParseResult<
|
|
2141
|
+
): SafeParseResult<CreateToolResponseBodyToolsHeaders, SDKValidationError> {
|
|
2134
2142
|
return safeParse(
|
|
2135
2143
|
jsonString,
|
|
2136
|
-
(x) =>
|
|
2137
|
-
|
|
2144
|
+
(x) =>
|
|
2145
|
+
CreateToolResponseBodyToolsHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
2146
|
+
`Failed to parse 'CreateToolResponseBodyToolsHeaders' from JSON`,
|
|
2138
2147
|
);
|
|
2139
2148
|
}
|
|
2140
2149
|
|
|
@@ -2240,7 +2249,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2240
2249
|
z.ZodTypeDef,
|
|
2241
2250
|
unknown
|
|
2242
2251
|
> = z.object({
|
|
2243
|
-
_id: z.string().default("
|
|
2252
|
+
_id: z.string().default("tool_01KJZ6J386WR4P58FPG5B5AXAF"),
|
|
2244
2253
|
path: z.string(),
|
|
2245
2254
|
key: z.string(),
|
|
2246
2255
|
display_name: z.string().optional(),
|
|
@@ -2251,7 +2260,9 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2251
2260
|
workspace_id: z.string(),
|
|
2252
2261
|
created: z.string(),
|
|
2253
2262
|
updated: z.string(),
|
|
2254
|
-
status:
|
|
2263
|
+
status: CreateToolResponseBodyToolsResponseStatus$inboundSchema.default(
|
|
2264
|
+
"live",
|
|
2265
|
+
),
|
|
2255
2266
|
version_hash: z.string().optional(),
|
|
2256
2267
|
type: z.literal("http"),
|
|
2257
2268
|
http: z.lazy(() => CreateToolResponseBodyHttp$inboundSchema),
|
|
@@ -2278,9 +2289,9 @@ export function responseBodyHTTPToolFromJSON(
|
|
|
2278
2289
|
}
|
|
2279
2290
|
|
|
2280
2291
|
/** @internal */
|
|
2281
|
-
export const
|
|
2282
|
-
typeof
|
|
2283
|
-
> = z.nativeEnum(
|
|
2292
|
+
export const CreateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
2293
|
+
typeof CreateToolResponseBodyToolsStatus
|
|
2294
|
+
> = z.nativeEnum(CreateToolResponseBodyToolsStatus);
|
|
2284
2295
|
|
|
2285
2296
|
/** @internal */
|
|
2286
2297
|
export const ResponseBodySchema$inboundSchema: z.ZodType<
|
|
@@ -2335,7 +2346,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2335
2346
|
z.ZodTypeDef,
|
|
2336
2347
|
unknown
|
|
2337
2348
|
> = z.object({
|
|
2338
|
-
_id: z.string().default("
|
|
2349
|
+
_id: z.string().default("tool_01KJZ6J37YDC4YXZ26DZ95A6P5"),
|
|
2339
2350
|
path: z.string(),
|
|
2340
2351
|
key: z.string(),
|
|
2341
2352
|
display_name: z.string().optional(),
|
|
@@ -2346,7 +2357,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2346
2357
|
workspace_id: z.string(),
|
|
2347
2358
|
created: z.string(),
|
|
2348
2359
|
updated: z.string(),
|
|
2349
|
-
status:
|
|
2360
|
+
status: CreateToolResponseBodyToolsStatus$inboundSchema.default("live"),
|
|
2350
2361
|
version_hash: z.string().optional(),
|
|
2351
2362
|
type: z.literal("json_schema"),
|
|
2352
2363
|
json_schema: z.lazy(() => ResponseBodyJsonSchema$inboundSchema),
|
|
@@ -2374,9 +2385,9 @@ export function responseBodyJSONSchemaToolFromJSON(
|
|
|
2374
2385
|
}
|
|
2375
2386
|
|
|
2376
2387
|
/** @internal */
|
|
2377
|
-
export const
|
|
2378
|
-
typeof
|
|
2379
|
-
> = z.nativeEnum(
|
|
2388
|
+
export const CreateToolResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
2389
|
+
typeof CreateToolResponseBodyStatus
|
|
2390
|
+
> = z.nativeEnum(CreateToolResponseBodyStatus);
|
|
2380
2391
|
|
|
2381
2392
|
/** @internal */
|
|
2382
2393
|
export const CreateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema:
|
|
@@ -2385,8 +2396,8 @@ export const CreateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundS
|
|
|
2385
2396
|
> = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson1Type);
|
|
2386
2397
|
|
|
2387
2398
|
/** @internal */
|
|
2388
|
-
export const
|
|
2389
|
-
|
|
2399
|
+
export const CreateToolResponseBodyParameters$inboundSchema: z.ZodType<
|
|
2400
|
+
CreateToolResponseBodyParameters,
|
|
2390
2401
|
z.ZodTypeDef,
|
|
2391
2402
|
unknown
|
|
2392
2403
|
> = collectExtraKeys$(
|
|
@@ -2400,13 +2411,13 @@ export const ResponseBodyParameters$inboundSchema: z.ZodType<
|
|
|
2400
2411
|
true,
|
|
2401
2412
|
);
|
|
2402
2413
|
|
|
2403
|
-
export function
|
|
2414
|
+
export function createToolResponseBodyParametersFromJSON(
|
|
2404
2415
|
jsonString: string,
|
|
2405
|
-
): SafeParseResult<
|
|
2416
|
+
): SafeParseResult<CreateToolResponseBodyParameters, SDKValidationError> {
|
|
2406
2417
|
return safeParse(
|
|
2407
2418
|
jsonString,
|
|
2408
|
-
(x) =>
|
|
2409
|
-
`Failed to parse '
|
|
2419
|
+
(x) => CreateToolResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2420
|
+
`Failed to parse 'CreateToolResponseBodyParameters' from JSON`,
|
|
2410
2421
|
);
|
|
2411
2422
|
}
|
|
2412
2423
|
|
|
@@ -2419,7 +2430,8 @@ export const CreateToolResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2419
2430
|
name: z.string(),
|
|
2420
2431
|
description: z.string().optional(),
|
|
2421
2432
|
strict: z.boolean().optional(),
|
|
2422
|
-
parameters: z.lazy(() =>
|
|
2433
|
+
parameters: z.lazy(() => CreateToolResponseBodyParameters$inboundSchema)
|
|
2434
|
+
.optional(),
|
|
2423
2435
|
});
|
|
2424
2436
|
|
|
2425
2437
|
export function createToolResponseBodyFunctionFromJSON(
|
|
@@ -2438,7 +2450,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2438
2450
|
z.ZodTypeDef,
|
|
2439
2451
|
unknown
|
|
2440
2452
|
> = z.object({
|
|
2441
|
-
_id: z.string().default("
|
|
2453
|
+
_id: z.string().default("tool_01KJZ6J37WH1G288EA0C5WDGEY"),
|
|
2442
2454
|
path: z.string(),
|
|
2443
2455
|
key: z.string(),
|
|
2444
2456
|
display_name: z.string().optional(),
|
|
@@ -2449,7 +2461,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2449
2461
|
workspace_id: z.string(),
|
|
2450
2462
|
created: z.string(),
|
|
2451
2463
|
updated: z.string(),
|
|
2452
|
-
status:
|
|
2464
|
+
status: CreateToolResponseBodyStatus$inboundSchema.default("live"),
|
|
2453
2465
|
version_hash: z.string().optional(),
|
|
2454
2466
|
type: z.literal("function"),
|
|
2455
2467
|
function: z.lazy(() => CreateToolResponseBodyFunction$inboundSchema),
|
|
@@ -66,6 +66,17 @@ export const Provider = {
|
|
|
66
66
|
*/
|
|
67
67
|
export type Provider = ClosedEnum<typeof Provider>;
|
|
68
68
|
|
|
69
|
+
export type Telemetry = {
|
|
70
|
+
/**
|
|
71
|
+
* The trace id for the request that generated this response
|
|
72
|
+
*/
|
|
73
|
+
traceId: string;
|
|
74
|
+
/**
|
|
75
|
+
* The span id for the request that generated this response
|
|
76
|
+
*/
|
|
77
|
+
spanId: string;
|
|
78
|
+
};
|
|
79
|
+
|
|
69
80
|
/**
|
|
70
81
|
* Metadata of the retrieved chunk from the knowledge base
|
|
71
82
|
*/
|
|
@@ -294,6 +305,7 @@ export type DeploymentInvokeResponseBody = {
|
|
|
294
305
|
* Indicates integration id used to generate the response
|
|
295
306
|
*/
|
|
296
307
|
integrationId?: string | undefined;
|
|
308
|
+
telemetry: Telemetry;
|
|
297
309
|
/**
|
|
298
310
|
* A timestamp indicating when the object was finalized. Usually in a standardized format like ISO 8601
|
|
299
311
|
*/
|
|
@@ -329,6 +341,31 @@ export const DeploymentInvokeObject$inboundSchema: z.ZodNativeEnum<
|
|
|
329
341
|
export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
|
|
330
342
|
.nativeEnum(Provider);
|
|
331
343
|
|
|
344
|
+
/** @internal */
|
|
345
|
+
export const Telemetry$inboundSchema: z.ZodType<
|
|
346
|
+
Telemetry,
|
|
347
|
+
z.ZodTypeDef,
|
|
348
|
+
unknown
|
|
349
|
+
> = z.object({
|
|
350
|
+
trace_id: z.string(),
|
|
351
|
+
span_id: z.string(),
|
|
352
|
+
}).transform((v) => {
|
|
353
|
+
return remap$(v, {
|
|
354
|
+
"trace_id": "traceId",
|
|
355
|
+
"span_id": "spanId",
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
|
|
359
|
+
export function telemetryFromJSON(
|
|
360
|
+
jsonString: string,
|
|
361
|
+
): SafeParseResult<Telemetry, SDKValidationError> {
|
|
362
|
+
return safeParse(
|
|
363
|
+
jsonString,
|
|
364
|
+
(x) => Telemetry$inboundSchema.parse(JSON.parse(x)),
|
|
365
|
+
`Failed to parse 'Telemetry' from JSON`,
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
|
|
332
369
|
/** @internal */
|
|
333
370
|
export const DeploymentInvokeMetadata$inboundSchema: z.ZodType<
|
|
334
371
|
DeploymentInvokeMetadata,
|
|
@@ -663,6 +700,7 @@ export const DeploymentInvokeResponseBody$inboundSchema: z.ZodType<
|
|
|
663
700
|
provider: Provider$inboundSchema,
|
|
664
701
|
is_final: z.boolean(),
|
|
665
702
|
integration_id: z.string().optional(),
|
|
703
|
+
telemetry: z.lazy(() => Telemetry$inboundSchema),
|
|
666
704
|
finalized: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
667
705
|
.optional(),
|
|
668
706
|
system_fingerprint: z.nullable(z.string()).optional(),
|
|
@@ -1215,6 +1215,17 @@ export type DeploymentStreamProvider = ClosedEnum<
|
|
|
1215
1215
|
typeof DeploymentStreamProvider
|
|
1216
1216
|
>;
|
|
1217
1217
|
|
|
1218
|
+
export type DeploymentStreamTelemetry = {
|
|
1219
|
+
/**
|
|
1220
|
+
* The trace id for the request that generated this response
|
|
1221
|
+
*/
|
|
1222
|
+
traceId: string;
|
|
1223
|
+
/**
|
|
1224
|
+
* The span id for the request that generated this response
|
|
1225
|
+
*/
|
|
1226
|
+
spanId: string;
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1218
1229
|
/**
|
|
1219
1230
|
* Metadata of the retrieved chunk from the knowledge base
|
|
1220
1231
|
*/
|
|
@@ -1451,6 +1462,7 @@ export type DeploymentStreamData = {
|
|
|
1451
1462
|
* Indicates integration id used to generate the response
|
|
1452
1463
|
*/
|
|
1453
1464
|
integrationId?: string | undefined;
|
|
1465
|
+
telemetry: DeploymentStreamTelemetry;
|
|
1454
1466
|
/**
|
|
1455
1467
|
* A timestamp indicating when the object was finalized. Usually in a standardized format like ISO 8601
|
|
1456
1468
|
*/
|
|
@@ -4210,6 +4222,31 @@ export const DeploymentStreamProvider$inboundSchema: z.ZodNativeEnum<
|
|
|
4210
4222
|
typeof DeploymentStreamProvider
|
|
4211
4223
|
> = z.nativeEnum(DeploymentStreamProvider);
|
|
4212
4224
|
|
|
4225
|
+
/** @internal */
|
|
4226
|
+
export const DeploymentStreamTelemetry$inboundSchema: z.ZodType<
|
|
4227
|
+
DeploymentStreamTelemetry,
|
|
4228
|
+
z.ZodTypeDef,
|
|
4229
|
+
unknown
|
|
4230
|
+
> = z.object({
|
|
4231
|
+
trace_id: z.string(),
|
|
4232
|
+
span_id: z.string(),
|
|
4233
|
+
}).transform((v) => {
|
|
4234
|
+
return remap$(v, {
|
|
4235
|
+
"trace_id": "traceId",
|
|
4236
|
+
"span_id": "spanId",
|
|
4237
|
+
});
|
|
4238
|
+
});
|
|
4239
|
+
|
|
4240
|
+
export function deploymentStreamTelemetryFromJSON(
|
|
4241
|
+
jsonString: string,
|
|
4242
|
+
): SafeParseResult<DeploymentStreamTelemetry, SDKValidationError> {
|
|
4243
|
+
return safeParse(
|
|
4244
|
+
jsonString,
|
|
4245
|
+
(x) => DeploymentStreamTelemetry$inboundSchema.parse(JSON.parse(x)),
|
|
4246
|
+
`Failed to parse 'DeploymentStreamTelemetry' from JSON`,
|
|
4247
|
+
);
|
|
4248
|
+
}
|
|
4249
|
+
|
|
4213
4250
|
/** @internal */
|
|
4214
4251
|
export const DeploymentStreamDeploymentsMetadata$inboundSchema: z.ZodType<
|
|
4215
4252
|
DeploymentStreamDeploymentsMetadata,
|
|
@@ -4559,6 +4596,7 @@ export const DeploymentStreamData$inboundSchema: z.ZodType<
|
|
|
4559
4596
|
provider: DeploymentStreamProvider$inboundSchema,
|
|
4560
4597
|
is_final: z.boolean(),
|
|
4561
4598
|
integration_id: z.string().optional(),
|
|
4599
|
+
telemetry: z.lazy(() => DeploymentStreamTelemetry$inboundSchema),
|
|
4562
4600
|
finalized: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
4563
4601
|
.optional(),
|
|
4564
4602
|
system_fingerprint: z.nullable(z.string()).optional(),
|