@orq-ai/node 3.12.9 → 3.12.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +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/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/FUNCTIONS.md +19 -9
- package/packages/orq-rc/README.md +179 -123
- package/packages/orq-rc/docs/sdks/agents/README.md +2 -2
- package/packages/orq-rc/docs/sdks/knowledge/README.md +12 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -81
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/creatememory.ts +17 -8
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +13 -10
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +17 -17
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +139 -117
- package/packages/orq-rc/src/models/operations/getallmemories.ts +7 -4
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +7 -4
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +5 -5
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievememory.ts +7 -4
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +7 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +577 -122
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +29 -259
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +606 -109
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatememory.ts +17 -8
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +13 -10
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +21 -17
- package/packages/orq-rc/src/sdk/agents.ts +2 -2
- package/packages/orq-rc/src/sdk/sdk.ts +1 -15
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/examples/postV2AgentsInternal.example.ts +0 -30
- package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +0 -159
- package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +0 -33
- package/packages/orq-rc/src/models/operations/postv2agentsinternal.ts +0 -103
|
@@ -67,7 +67,7 @@ export type GetAgentTools = {
|
|
|
67
67
|
id: string;
|
|
68
68
|
actionType: string;
|
|
69
69
|
displayName?: string | undefined;
|
|
70
|
-
requiresApproval
|
|
70
|
+
requiresApproval?: boolean | undefined;
|
|
71
71
|
conditions?: Array<Conditions> | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* The id of the resource
|
|
@@ -134,26 +134,30 @@ export type GetAgentConfigurationType = ClosedEnum<
|
|
|
134
134
|
typeof GetAgentConfigurationType
|
|
135
135
|
>;
|
|
136
136
|
|
|
137
|
-
export type
|
|
137
|
+
export type GetAgentConfiguration2 = {
|
|
138
138
|
type: GetAgentConfigurationType;
|
|
139
139
|
query: string;
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
export const
|
|
142
|
+
export const GetAgentConfigurationAgentsType = {
|
|
143
143
|
LastUserMessage: "last_user_message",
|
|
144
144
|
} as const;
|
|
145
|
-
export type
|
|
145
|
+
export type GetAgentConfigurationAgentsType = ClosedEnum<
|
|
146
|
+
typeof GetAgentConfigurationAgentsType
|
|
147
|
+
>;
|
|
146
148
|
|
|
147
|
-
export type
|
|
148
|
-
type:
|
|
149
|
+
export type GetAgentConfiguration1 = {
|
|
150
|
+
type: GetAgentConfigurationAgentsType;
|
|
149
151
|
};
|
|
150
152
|
|
|
151
153
|
/**
|
|
152
154
|
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
153
155
|
*/
|
|
154
|
-
export type
|
|
156
|
+
export type GetAgentConfiguration =
|
|
157
|
+
| GetAgentConfiguration2
|
|
158
|
+
| GetAgentConfiguration1;
|
|
155
159
|
|
|
156
|
-
export type
|
|
160
|
+
export type GetAgentKnowledgeBases = {
|
|
157
161
|
/**
|
|
158
162
|
* The id of the resource
|
|
159
163
|
*/
|
|
@@ -165,7 +169,7 @@ export type KnowledgeBases = {
|
|
|
165
169
|
/**
|
|
166
170
|
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
167
171
|
*/
|
|
168
|
-
configuration:
|
|
172
|
+
configuration: GetAgentConfiguration2 | GetAgentConfiguration1;
|
|
169
173
|
};
|
|
170
174
|
|
|
171
175
|
export const HiddenPanels = {
|
|
@@ -221,7 +225,7 @@ export type GetAgentResponseBody = {
|
|
|
221
225
|
/**
|
|
222
226
|
* Agent knowledge bases reference
|
|
223
227
|
*/
|
|
224
|
-
knowledgeBases?: Array<
|
|
228
|
+
knowledgeBases?: Array<GetAgentKnowledgeBases> | undefined;
|
|
225
229
|
/**
|
|
226
230
|
* List of hidden collapsed panels in configuration. Duplicates are not allowed.
|
|
227
231
|
*/
|
|
@@ -387,7 +391,7 @@ export const GetAgentTools$inboundSchema: z.ZodType<
|
|
|
387
391
|
id: z.string(),
|
|
388
392
|
action_type: z.string(),
|
|
389
393
|
display_name: z.string().optional(),
|
|
390
|
-
requires_approval: z.boolean(),
|
|
394
|
+
requires_approval: z.boolean().default(false),
|
|
391
395
|
conditions: z.array(z.lazy(() => Conditions$inboundSchema)).optional(),
|
|
392
396
|
mcpServer: z.string().optional(),
|
|
393
397
|
timeout: z.number().default(120),
|
|
@@ -419,7 +423,7 @@ export const GetAgentTools$outboundSchema: z.ZodType<
|
|
|
419
423
|
id: z.string(),
|
|
420
424
|
actionType: z.string(),
|
|
421
425
|
displayName: z.string().optional(),
|
|
422
|
-
requiresApproval: z.boolean(),
|
|
426
|
+
requiresApproval: z.boolean().default(false),
|
|
423
427
|
conditions: z.array(z.lazy(() => Conditions$outboundSchema)).optional(),
|
|
424
428
|
mcpServer: z.string().optional(),
|
|
425
429
|
timeout: z.number().default(120),
|
|
@@ -753,8 +757,8 @@ export namespace GetAgentConfigurationType$ {
|
|
|
753
757
|
}
|
|
754
758
|
|
|
755
759
|
/** @internal */
|
|
756
|
-
export const
|
|
757
|
-
|
|
760
|
+
export const GetAgentConfiguration2$inboundSchema: z.ZodType<
|
|
761
|
+
GetAgentConfiguration2,
|
|
758
762
|
z.ZodTypeDef,
|
|
759
763
|
unknown
|
|
760
764
|
> = z.object({
|
|
@@ -763,16 +767,16 @@ export const Configuration2$inboundSchema: z.ZodType<
|
|
|
763
767
|
});
|
|
764
768
|
|
|
765
769
|
/** @internal */
|
|
766
|
-
export type
|
|
770
|
+
export type GetAgentConfiguration2$Outbound = {
|
|
767
771
|
type: string;
|
|
768
772
|
query: string;
|
|
769
773
|
};
|
|
770
774
|
|
|
771
775
|
/** @internal */
|
|
772
|
-
export const
|
|
773
|
-
|
|
776
|
+
export const GetAgentConfiguration2$outboundSchema: z.ZodType<
|
|
777
|
+
GetAgentConfiguration2$Outbound,
|
|
774
778
|
z.ZodTypeDef,
|
|
775
|
-
|
|
779
|
+
GetAgentConfiguration2
|
|
776
780
|
> = z.object({
|
|
777
781
|
type: GetAgentConfigurationType$outboundSchema,
|
|
778
782
|
query: z.string(),
|
|
@@ -782,163 +786,175 @@ export const Configuration2$outboundSchema: z.ZodType<
|
|
|
782
786
|
* @internal
|
|
783
787
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
784
788
|
*/
|
|
785
|
-
export namespace
|
|
786
|
-
/** @deprecated use `
|
|
787
|
-
export const inboundSchema =
|
|
788
|
-
/** @deprecated use `
|
|
789
|
-
export const outboundSchema =
|
|
790
|
-
/** @deprecated use `
|
|
791
|
-
export type Outbound =
|
|
789
|
+
export namespace GetAgentConfiguration2$ {
|
|
790
|
+
/** @deprecated use `GetAgentConfiguration2$inboundSchema` instead. */
|
|
791
|
+
export const inboundSchema = GetAgentConfiguration2$inboundSchema;
|
|
792
|
+
/** @deprecated use `GetAgentConfiguration2$outboundSchema` instead. */
|
|
793
|
+
export const outboundSchema = GetAgentConfiguration2$outboundSchema;
|
|
794
|
+
/** @deprecated use `GetAgentConfiguration2$Outbound` instead. */
|
|
795
|
+
export type Outbound = GetAgentConfiguration2$Outbound;
|
|
792
796
|
}
|
|
793
797
|
|
|
794
|
-
export function
|
|
795
|
-
|
|
798
|
+
export function getAgentConfiguration2ToJSON(
|
|
799
|
+
getAgentConfiguration2: GetAgentConfiguration2,
|
|
800
|
+
): string {
|
|
801
|
+
return JSON.stringify(
|
|
802
|
+
GetAgentConfiguration2$outboundSchema.parse(getAgentConfiguration2),
|
|
803
|
+
);
|
|
796
804
|
}
|
|
797
805
|
|
|
798
|
-
export function
|
|
806
|
+
export function getAgentConfiguration2FromJSON(
|
|
799
807
|
jsonString: string,
|
|
800
|
-
): SafeParseResult<
|
|
808
|
+
): SafeParseResult<GetAgentConfiguration2, SDKValidationError> {
|
|
801
809
|
return safeParse(
|
|
802
810
|
jsonString,
|
|
803
|
-
(x) =>
|
|
804
|
-
`Failed to parse '
|
|
811
|
+
(x) => GetAgentConfiguration2$inboundSchema.parse(JSON.parse(x)),
|
|
812
|
+
`Failed to parse 'GetAgentConfiguration2' from JSON`,
|
|
805
813
|
);
|
|
806
814
|
}
|
|
807
815
|
|
|
808
816
|
/** @internal */
|
|
809
|
-
export const
|
|
810
|
-
typeof
|
|
811
|
-
> = z.nativeEnum(
|
|
817
|
+
export const GetAgentConfigurationAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
818
|
+
typeof GetAgentConfigurationAgentsType
|
|
819
|
+
> = z.nativeEnum(GetAgentConfigurationAgentsType);
|
|
812
820
|
|
|
813
821
|
/** @internal */
|
|
814
|
-
export const
|
|
815
|
-
typeof
|
|
816
|
-
> =
|
|
822
|
+
export const GetAgentConfigurationAgentsType$outboundSchema: z.ZodNativeEnum<
|
|
823
|
+
typeof GetAgentConfigurationAgentsType
|
|
824
|
+
> = GetAgentConfigurationAgentsType$inboundSchema;
|
|
817
825
|
|
|
818
826
|
/**
|
|
819
827
|
* @internal
|
|
820
828
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
821
829
|
*/
|
|
822
|
-
export namespace
|
|
823
|
-
/** @deprecated use `
|
|
824
|
-
export const inboundSchema =
|
|
825
|
-
/** @deprecated use `
|
|
826
|
-
export const outboundSchema =
|
|
830
|
+
export namespace GetAgentConfigurationAgentsType$ {
|
|
831
|
+
/** @deprecated use `GetAgentConfigurationAgentsType$inboundSchema` instead. */
|
|
832
|
+
export const inboundSchema = GetAgentConfigurationAgentsType$inboundSchema;
|
|
833
|
+
/** @deprecated use `GetAgentConfigurationAgentsType$outboundSchema` instead. */
|
|
834
|
+
export const outboundSchema = GetAgentConfigurationAgentsType$outboundSchema;
|
|
827
835
|
}
|
|
828
836
|
|
|
829
837
|
/** @internal */
|
|
830
|
-
export const
|
|
831
|
-
|
|
838
|
+
export const GetAgentConfiguration1$inboundSchema: z.ZodType<
|
|
839
|
+
GetAgentConfiguration1,
|
|
832
840
|
z.ZodTypeDef,
|
|
833
841
|
unknown
|
|
834
842
|
> = z.object({
|
|
835
|
-
type:
|
|
843
|
+
type: GetAgentConfigurationAgentsType$inboundSchema,
|
|
836
844
|
});
|
|
837
845
|
|
|
838
846
|
/** @internal */
|
|
839
|
-
export type
|
|
847
|
+
export type GetAgentConfiguration1$Outbound = {
|
|
840
848
|
type: string;
|
|
841
849
|
};
|
|
842
850
|
|
|
843
851
|
/** @internal */
|
|
844
|
-
export const
|
|
845
|
-
|
|
852
|
+
export const GetAgentConfiguration1$outboundSchema: z.ZodType<
|
|
853
|
+
GetAgentConfiguration1$Outbound,
|
|
846
854
|
z.ZodTypeDef,
|
|
847
|
-
|
|
855
|
+
GetAgentConfiguration1
|
|
848
856
|
> = z.object({
|
|
849
|
-
type:
|
|
857
|
+
type: GetAgentConfigurationAgentsType$outboundSchema,
|
|
850
858
|
});
|
|
851
859
|
|
|
852
860
|
/**
|
|
853
861
|
* @internal
|
|
854
862
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
855
863
|
*/
|
|
856
|
-
export namespace
|
|
857
|
-
/** @deprecated use `
|
|
858
|
-
export const inboundSchema =
|
|
859
|
-
/** @deprecated use `
|
|
860
|
-
export const outboundSchema =
|
|
861
|
-
/** @deprecated use `
|
|
862
|
-
export type Outbound =
|
|
864
|
+
export namespace GetAgentConfiguration1$ {
|
|
865
|
+
/** @deprecated use `GetAgentConfiguration1$inboundSchema` instead. */
|
|
866
|
+
export const inboundSchema = GetAgentConfiguration1$inboundSchema;
|
|
867
|
+
/** @deprecated use `GetAgentConfiguration1$outboundSchema` instead. */
|
|
868
|
+
export const outboundSchema = GetAgentConfiguration1$outboundSchema;
|
|
869
|
+
/** @deprecated use `GetAgentConfiguration1$Outbound` instead. */
|
|
870
|
+
export type Outbound = GetAgentConfiguration1$Outbound;
|
|
863
871
|
}
|
|
864
872
|
|
|
865
|
-
export function
|
|
866
|
-
|
|
873
|
+
export function getAgentConfiguration1ToJSON(
|
|
874
|
+
getAgentConfiguration1: GetAgentConfiguration1,
|
|
875
|
+
): string {
|
|
876
|
+
return JSON.stringify(
|
|
877
|
+
GetAgentConfiguration1$outboundSchema.parse(getAgentConfiguration1),
|
|
878
|
+
);
|
|
867
879
|
}
|
|
868
880
|
|
|
869
|
-
export function
|
|
881
|
+
export function getAgentConfiguration1FromJSON(
|
|
870
882
|
jsonString: string,
|
|
871
|
-
): SafeParseResult<
|
|
883
|
+
): SafeParseResult<GetAgentConfiguration1, SDKValidationError> {
|
|
872
884
|
return safeParse(
|
|
873
885
|
jsonString,
|
|
874
|
-
(x) =>
|
|
875
|
-
`Failed to parse '
|
|
886
|
+
(x) => GetAgentConfiguration1$inboundSchema.parse(JSON.parse(x)),
|
|
887
|
+
`Failed to parse 'GetAgentConfiguration1' from JSON`,
|
|
876
888
|
);
|
|
877
889
|
}
|
|
878
890
|
|
|
879
891
|
/** @internal */
|
|
880
|
-
export const
|
|
881
|
-
|
|
892
|
+
export const GetAgentConfiguration$inboundSchema: z.ZodType<
|
|
893
|
+
GetAgentConfiguration,
|
|
882
894
|
z.ZodTypeDef,
|
|
883
895
|
unknown
|
|
884
896
|
> = z.union([
|
|
885
|
-
z.lazy(() =>
|
|
886
|
-
z.lazy(() =>
|
|
897
|
+
z.lazy(() => GetAgentConfiguration2$inboundSchema),
|
|
898
|
+
z.lazy(() => GetAgentConfiguration1$inboundSchema),
|
|
887
899
|
]);
|
|
888
900
|
|
|
889
901
|
/** @internal */
|
|
890
|
-
export type
|
|
891
|
-
|
|
|
892
|
-
|
|
|
902
|
+
export type GetAgentConfiguration$Outbound =
|
|
903
|
+
| GetAgentConfiguration2$Outbound
|
|
904
|
+
| GetAgentConfiguration1$Outbound;
|
|
893
905
|
|
|
894
906
|
/** @internal */
|
|
895
|
-
export const
|
|
896
|
-
|
|
907
|
+
export const GetAgentConfiguration$outboundSchema: z.ZodType<
|
|
908
|
+
GetAgentConfiguration$Outbound,
|
|
897
909
|
z.ZodTypeDef,
|
|
898
|
-
|
|
910
|
+
GetAgentConfiguration
|
|
899
911
|
> = z.union([
|
|
900
|
-
z.lazy(() =>
|
|
901
|
-
z.lazy(() =>
|
|
912
|
+
z.lazy(() => GetAgentConfiguration2$outboundSchema),
|
|
913
|
+
z.lazy(() => GetAgentConfiguration1$outboundSchema),
|
|
902
914
|
]);
|
|
903
915
|
|
|
904
916
|
/**
|
|
905
917
|
* @internal
|
|
906
918
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
907
919
|
*/
|
|
908
|
-
export namespace
|
|
909
|
-
/** @deprecated use `
|
|
910
|
-
export const inboundSchema =
|
|
911
|
-
/** @deprecated use `
|
|
912
|
-
export const outboundSchema =
|
|
913
|
-
/** @deprecated use `
|
|
914
|
-
export type Outbound =
|
|
920
|
+
export namespace GetAgentConfiguration$ {
|
|
921
|
+
/** @deprecated use `GetAgentConfiguration$inboundSchema` instead. */
|
|
922
|
+
export const inboundSchema = GetAgentConfiguration$inboundSchema;
|
|
923
|
+
/** @deprecated use `GetAgentConfiguration$outboundSchema` instead. */
|
|
924
|
+
export const outboundSchema = GetAgentConfiguration$outboundSchema;
|
|
925
|
+
/** @deprecated use `GetAgentConfiguration$Outbound` instead. */
|
|
926
|
+
export type Outbound = GetAgentConfiguration$Outbound;
|
|
915
927
|
}
|
|
916
928
|
|
|
917
|
-
export function
|
|
918
|
-
|
|
929
|
+
export function getAgentConfigurationToJSON(
|
|
930
|
+
getAgentConfiguration: GetAgentConfiguration,
|
|
931
|
+
): string {
|
|
932
|
+
return JSON.stringify(
|
|
933
|
+
GetAgentConfiguration$outboundSchema.parse(getAgentConfiguration),
|
|
934
|
+
);
|
|
919
935
|
}
|
|
920
936
|
|
|
921
|
-
export function
|
|
937
|
+
export function getAgentConfigurationFromJSON(
|
|
922
938
|
jsonString: string,
|
|
923
|
-
): SafeParseResult<
|
|
939
|
+
): SafeParseResult<GetAgentConfiguration, SDKValidationError> {
|
|
924
940
|
return safeParse(
|
|
925
941
|
jsonString,
|
|
926
|
-
(x) =>
|
|
927
|
-
`Failed to parse '
|
|
942
|
+
(x) => GetAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
943
|
+
`Failed to parse 'GetAgentConfiguration' from JSON`,
|
|
928
944
|
);
|
|
929
945
|
}
|
|
930
946
|
|
|
931
947
|
/** @internal */
|
|
932
|
-
export const
|
|
933
|
-
|
|
948
|
+
export const GetAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
949
|
+
GetAgentKnowledgeBases,
|
|
934
950
|
z.ZodTypeDef,
|
|
935
951
|
unknown
|
|
936
952
|
> = z.object({
|
|
937
|
-
id: z.string().default("
|
|
953
|
+
id: z.string().default("01K5ENCKRNR22BVKBXRXDPAZWA"),
|
|
938
954
|
knowledge_id: z.string(),
|
|
939
955
|
configuration: z.union([
|
|
940
|
-
z.lazy(() =>
|
|
941
|
-
z.lazy(() =>
|
|
956
|
+
z.lazy(() => GetAgentConfiguration2$inboundSchema),
|
|
957
|
+
z.lazy(() => GetAgentConfiguration1$inboundSchema),
|
|
942
958
|
]),
|
|
943
959
|
}).transform((v) => {
|
|
944
960
|
return remap$(v, {
|
|
@@ -947,23 +963,25 @@ export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
|
947
963
|
});
|
|
948
964
|
|
|
949
965
|
/** @internal */
|
|
950
|
-
export type
|
|
966
|
+
export type GetAgentKnowledgeBases$Outbound = {
|
|
951
967
|
id: string;
|
|
952
968
|
knowledge_id: string;
|
|
953
|
-
configuration:
|
|
969
|
+
configuration:
|
|
970
|
+
| GetAgentConfiguration2$Outbound
|
|
971
|
+
| GetAgentConfiguration1$Outbound;
|
|
954
972
|
};
|
|
955
973
|
|
|
956
974
|
/** @internal */
|
|
957
|
-
export const
|
|
958
|
-
|
|
975
|
+
export const GetAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
976
|
+
GetAgentKnowledgeBases$Outbound,
|
|
959
977
|
z.ZodTypeDef,
|
|
960
|
-
|
|
978
|
+
GetAgentKnowledgeBases
|
|
961
979
|
> = z.object({
|
|
962
|
-
id: z.string().default("
|
|
980
|
+
id: z.string().default("01K5ENCKRNR22BVKBXRXDPAZWA"),
|
|
963
981
|
knowledgeId: z.string(),
|
|
964
982
|
configuration: z.union([
|
|
965
|
-
z.lazy(() =>
|
|
966
|
-
z.lazy(() =>
|
|
983
|
+
z.lazy(() => GetAgentConfiguration2$outboundSchema),
|
|
984
|
+
z.lazy(() => GetAgentConfiguration1$outboundSchema),
|
|
967
985
|
]),
|
|
968
986
|
}).transform((v) => {
|
|
969
987
|
return remap$(v, {
|
|
@@ -975,26 +993,30 @@ export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
|
975
993
|
* @internal
|
|
976
994
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
977
995
|
*/
|
|
978
|
-
export namespace
|
|
979
|
-
/** @deprecated use `
|
|
980
|
-
export const inboundSchema =
|
|
981
|
-
/** @deprecated use `
|
|
982
|
-
export const outboundSchema =
|
|
983
|
-
/** @deprecated use `
|
|
984
|
-
export type Outbound =
|
|
996
|
+
export namespace GetAgentKnowledgeBases$ {
|
|
997
|
+
/** @deprecated use `GetAgentKnowledgeBases$inboundSchema` instead. */
|
|
998
|
+
export const inboundSchema = GetAgentKnowledgeBases$inboundSchema;
|
|
999
|
+
/** @deprecated use `GetAgentKnowledgeBases$outboundSchema` instead. */
|
|
1000
|
+
export const outboundSchema = GetAgentKnowledgeBases$outboundSchema;
|
|
1001
|
+
/** @deprecated use `GetAgentKnowledgeBases$Outbound` instead. */
|
|
1002
|
+
export type Outbound = GetAgentKnowledgeBases$Outbound;
|
|
985
1003
|
}
|
|
986
1004
|
|
|
987
|
-
export function
|
|
988
|
-
|
|
1005
|
+
export function getAgentKnowledgeBasesToJSON(
|
|
1006
|
+
getAgentKnowledgeBases: GetAgentKnowledgeBases,
|
|
1007
|
+
): string {
|
|
1008
|
+
return JSON.stringify(
|
|
1009
|
+
GetAgentKnowledgeBases$outboundSchema.parse(getAgentKnowledgeBases),
|
|
1010
|
+
);
|
|
989
1011
|
}
|
|
990
1012
|
|
|
991
|
-
export function
|
|
1013
|
+
export function getAgentKnowledgeBasesFromJSON(
|
|
992
1014
|
jsonString: string,
|
|
993
|
-
): SafeParseResult<
|
|
1015
|
+
): SafeParseResult<GetAgentKnowledgeBases, SDKValidationError> {
|
|
994
1016
|
return safeParse(
|
|
995
1017
|
jsonString,
|
|
996
|
-
(x) =>
|
|
997
|
-
`Failed to parse '
|
|
1018
|
+
(x) => GetAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1019
|
+
`Failed to parse 'GetAgentKnowledgeBases' from JSON`,
|
|
998
1020
|
);
|
|
999
1021
|
}
|
|
1000
1022
|
|
|
@@ -1045,7 +1067,7 @@ export const GetAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
1045
1067
|
team_of_agents: z.array(z.lazy(() => GetAgentTeamOfAgents$inboundSchema)),
|
|
1046
1068
|
metrics: z.lazy(() => Metrics$inboundSchema).optional(),
|
|
1047
1069
|
variables: z.record(z.any()).optional(),
|
|
1048
|
-
knowledge_bases: z.array(z.lazy(() =>
|
|
1070
|
+
knowledge_bases: z.array(z.lazy(() => GetAgentKnowledgeBases$inboundSchema))
|
|
1049
1071
|
.optional(),
|
|
1050
1072
|
hidden_panels: z.array(HiddenPanels$inboundSchema).optional(),
|
|
1051
1073
|
}).transform((v) => {
|
|
@@ -1088,7 +1110,7 @@ export type GetAgentResponseBody$Outbound = {
|
|
|
1088
1110
|
team_of_agents: Array<GetAgentTeamOfAgents$Outbound>;
|
|
1089
1111
|
metrics?: Metrics$Outbound | undefined;
|
|
1090
1112
|
variables?: { [k: string]: any } | undefined;
|
|
1091
|
-
knowledge_bases?: Array<
|
|
1113
|
+
knowledge_bases?: Array<GetAgentKnowledgeBases$Outbound> | undefined;
|
|
1092
1114
|
hidden_panels?: Array<string> | undefined;
|
|
1093
1115
|
};
|
|
1094
1116
|
|
|
@@ -1120,7 +1142,7 @@ export const GetAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
1120
1142
|
teamOfAgents: z.array(z.lazy(() => GetAgentTeamOfAgents$outboundSchema)),
|
|
1121
1143
|
metrics: z.lazy(() => Metrics$outboundSchema).optional(),
|
|
1122
1144
|
variables: z.record(z.any()).optional(),
|
|
1123
|
-
knowledgeBases: z.array(z.lazy(() =>
|
|
1145
|
+
knowledgeBases: z.array(z.lazy(() => GetAgentKnowledgeBases$outboundSchema))
|
|
1124
1146
|
.optional(),
|
|
1125
1147
|
hiddenPanels: z.array(HiddenPanels$outboundSchema).optional(),
|
|
1126
1148
|
}).transform((v) => {
|
|
@@ -41,7 +41,10 @@ export type GetAllMemoriesData = {
|
|
|
41
41
|
createdById?: string | null | undefined;
|
|
42
42
|
updatedById?: string | null | undefined;
|
|
43
43
|
storeId: string;
|
|
44
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory access based on their specific needs (e.g., user segments, topics, contexts, or any custom taxonomy).
|
|
46
|
+
*/
|
|
47
|
+
metadata: { [k: string]: string };
|
|
45
48
|
workspaceId: string;
|
|
46
49
|
};
|
|
47
50
|
|
|
@@ -163,7 +166,7 @@ export const GetAllMemoriesData$inboundSchema: z.ZodType<
|
|
|
163
166
|
created_by_id: z.nullable(z.string()).optional(),
|
|
164
167
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
165
168
|
store_id: z.string(),
|
|
166
|
-
|
|
169
|
+
metadata: z.record(z.string()),
|
|
167
170
|
workspace_id: z.string(),
|
|
168
171
|
}).transform((v) => {
|
|
169
172
|
return remap$(v, {
|
|
@@ -185,7 +188,7 @@ export type GetAllMemoriesData$Outbound = {
|
|
|
185
188
|
created_by_id?: string | null | undefined;
|
|
186
189
|
updated_by_id?: string | null | undefined;
|
|
187
190
|
store_id: string;
|
|
188
|
-
|
|
191
|
+
metadata: { [k: string]: string };
|
|
189
192
|
workspace_id: string;
|
|
190
193
|
};
|
|
191
194
|
|
|
@@ -202,7 +205,7 @@ export const GetAllMemoriesData$outboundSchema: z.ZodType<
|
|
|
202
205
|
createdById: z.nullable(z.string()).optional(),
|
|
203
206
|
updatedById: z.nullable(z.string()).optional(),
|
|
204
207
|
storeId: z.string(),
|
|
205
|
-
|
|
208
|
+
metadata: z.record(z.string()),
|
|
206
209
|
workspaceId: z.string(),
|
|
207
210
|
}).transform((v) => {
|
|
208
211
|
return remap$(v, {
|
|
@@ -49,7 +49,10 @@ export type GetAllMemoryDocumentsData = {
|
|
|
49
49
|
createdById?: string | undefined;
|
|
50
50
|
updatedById?: string | undefined;
|
|
51
51
|
workspaceId: string;
|
|
52
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory documents based on their specific needs (e.g., document type, source, topic, relevance score, or any custom taxonomy).
|
|
54
|
+
*/
|
|
55
|
+
metadata?: { [k: string]: string } | undefined;
|
|
53
56
|
};
|
|
54
57
|
|
|
55
58
|
/**
|
|
@@ -179,7 +182,7 @@ export const GetAllMemoryDocumentsData$inboundSchema: z.ZodType<
|
|
|
179
182
|
created_by_id: z.string().optional(),
|
|
180
183
|
updated_by_id: z.string().optional(),
|
|
181
184
|
workspace_id: z.string(),
|
|
182
|
-
|
|
185
|
+
metadata: z.record(z.string()).optional(),
|
|
183
186
|
}).transform((v) => {
|
|
184
187
|
return remap$(v, {
|
|
185
188
|
"_id": "id",
|
|
@@ -202,7 +205,7 @@ export type GetAllMemoryDocumentsData$Outbound = {
|
|
|
202
205
|
created_by_id?: string | undefined;
|
|
203
206
|
updated_by_id?: string | undefined;
|
|
204
207
|
workspace_id: string;
|
|
205
|
-
|
|
208
|
+
metadata?: { [k: string]: string } | undefined;
|
|
206
209
|
};
|
|
207
210
|
|
|
208
211
|
/** @internal */
|
|
@@ -220,7 +223,7 @@ export const GetAllMemoryDocumentsData$outboundSchema: z.ZodType<
|
|
|
220
223
|
createdById: z.string().optional(),
|
|
221
224
|
updatedById: z.string().optional(),
|
|
222
225
|
workspaceId: z.string(),
|
|
223
|
-
|
|
226
|
+
metadata: z.record(z.string()).optional(),
|
|
224
227
|
}).transform((v) => {
|
|
225
228
|
return remap$(v, {
|
|
226
229
|
id: "_id",
|
|
@@ -351,7 +351,7 @@ export const GetBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
351
351
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
352
352
|
.optional(),
|
|
353
353
|
updated: z.string().datetime({ offset: true }).default(
|
|
354
|
-
"2025-09-
|
|
354
|
+
"2025-09-18T14:59:12.873Z",
|
|
355
355
|
).transform(v => new Date(v)),
|
|
356
356
|
}).transform((v) => {
|
|
357
357
|
return remap$(v, {
|
|
@@ -386,7 +386,7 @@ export const GetBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
386
386
|
isActive: z.boolean(),
|
|
387
387
|
consumption: z.lazy(() => GetBudgetConsumption$outboundSchema).optional(),
|
|
388
388
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
389
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
389
|
+
updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
|
|
390
390
|
.transform(v => v.toISOString()),
|
|
391
391
|
}).transform((v) => {
|
|
392
392
|
return remap$(v, {
|