@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.
Files changed (132) hide show
  1. package/bin/mcp-server.js +112 -112
  2. package/bin/mcp-server.js.map +30 -30
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/lib/config.js.map +1 -1
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/mcp-server.js.map +1 -1
  10. package/mcp-server/server.js +1 -1
  11. package/mcp-server/server.js.map +1 -1
  12. package/models/operations/createbudget.js +2 -2
  13. package/models/operations/createcontact.js +2 -2
  14. package/models/operations/createdataset.js +2 -2
  15. package/models/operations/createdatasetitem.js +2 -2
  16. package/models/operations/createdatasource.js +2 -2
  17. package/models/operations/createeval.js +16 -16
  18. package/models/operations/fileget.js +2 -2
  19. package/models/operations/filelist.js +2 -2
  20. package/models/operations/fileupload.js +2 -2
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +2 -2
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +2 -2
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/updatebudget.js +2 -2
  33. package/models/operations/updatecontact.js +2 -2
  34. package/models/operations/updatedatapoint.js +2 -2
  35. package/models/operations/updatedataset.js +2 -2
  36. package/models/operations/updatedatasource.js +2 -2
  37. package/models/operations/updateeval.js +16 -16
  38. package/package.json +1 -1
  39. package/packages/orq-rc/FUNCTIONS.md +19 -9
  40. package/packages/orq-rc/README.md +179 -123
  41. package/packages/orq-rc/docs/sdks/agents/README.md +2 -2
  42. package/packages/orq-rc/docs/sdks/knowledge/README.md +12 -0
  43. package/packages/orq-rc/docs/sdks/orq/README.md +0 -81
  44. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  45. package/packages/orq-rc/examples/package-lock.json +1 -1
  46. package/packages/orq-rc/jsr.json +1 -1
  47. package/packages/orq-rc/package-lock.json +2 -2
  48. package/packages/orq-rc/package.json +1 -1
  49. package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
  50. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  51. package/packages/orq-rc/src/lib/config.ts +3 -3
  52. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  53. package/packages/orq-rc/src/mcp-server/server.ts +1 -3
  54. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
  55. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
  56. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  62. package/packages/orq-rc/src/models/operations/creatememory.ts +17 -8
  63. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +13 -10
  64. package/packages/orq-rc/src/models/operations/creatememorystore.ts +17 -17
  65. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/getagent.ts +139 -117
  69. package/packages/orq-rc/src/models/operations/getallmemories.ts +7 -4
  70. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +7 -4
  71. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  73. package/packages/orq-rc/src/models/operations/index.ts +0 -1
  74. package/packages/orq-rc/src/models/operations/listagents.ts +5 -5
  75. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/retrievememory.ts +7 -4
  85. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +7 -4
  86. package/packages/orq-rc/src/models/operations/runagent.ts +577 -122
  87. package/packages/orq-rc/src/models/operations/searchknowledge.ts +29 -259
  88. package/packages/orq-rc/src/models/operations/streamrunagent.ts +606 -109
  89. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  95. package/packages/orq-rc/src/models/operations/updatememory.ts +17 -8
  96. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +13 -10
  97. package/packages/orq-rc/src/models/operations/updatememorystore.ts +21 -17
  98. package/packages/orq-rc/src/sdk/agents.ts +2 -2
  99. package/packages/orq-rc/src/sdk/sdk.ts +1 -15
  100. package/src/lib/config.ts +3 -3
  101. package/src/mcp-server/mcp-server.ts +1 -1
  102. package/src/mcp-server/server.ts +1 -1
  103. package/src/models/operations/createbudget.ts +2 -2
  104. package/src/models/operations/createcontact.ts +2 -2
  105. package/src/models/operations/createdataset.ts +2 -2
  106. package/src/models/operations/createdatasetitem.ts +2 -2
  107. package/src/models/operations/createdatasource.ts +2 -2
  108. package/src/models/operations/createeval.ts +16 -16
  109. package/src/models/operations/fileget.ts +2 -2
  110. package/src/models/operations/filelist.ts +2 -2
  111. package/src/models/operations/fileupload.ts +2 -2
  112. package/src/models/operations/getbudget.ts +2 -2
  113. package/src/models/operations/getevals.ts +28 -28
  114. package/src/models/operations/listbudgets.ts +2 -2
  115. package/src/models/operations/listcontacts.ts +2 -2
  116. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  117. package/src/models/operations/listdatasets.ts +2 -2
  118. package/src/models/operations/listdatasources.ts +2 -2
  119. package/src/models/operations/retrievecontact.ts +2 -2
  120. package/src/models/operations/retrievedatapoint.ts +2 -2
  121. package/src/models/operations/retrievedataset.ts +2 -2
  122. package/src/models/operations/retrievedatasource.ts +2 -2
  123. package/src/models/operations/updatebudget.ts +2 -2
  124. package/src/models/operations/updatecontact.ts +2 -2
  125. package/src/models/operations/updatedatapoint.ts +2 -2
  126. package/src/models/operations/updatedataset.ts +2 -2
  127. package/src/models/operations/updatedatasource.ts +2 -2
  128. package/src/models/operations/updateeval.ts +16 -16
  129. package/packages/orq-rc/examples/postV2AgentsInternal.example.ts +0 -30
  130. package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +0 -159
  131. package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +0 -33
  132. 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: boolean;
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 Configuration2 = {
137
+ export type GetAgentConfiguration2 = {
138
138
  type: GetAgentConfigurationType;
139
139
  query: string;
140
140
  };
141
141
 
142
- export const ConfigurationType = {
142
+ export const GetAgentConfigurationAgentsType = {
143
143
  LastUserMessage: "last_user_message",
144
144
  } as const;
145
- export type ConfigurationType = ClosedEnum<typeof ConfigurationType>;
145
+ export type GetAgentConfigurationAgentsType = ClosedEnum<
146
+ typeof GetAgentConfigurationAgentsType
147
+ >;
146
148
 
147
- export type Configuration1 = {
148
- type: ConfigurationType;
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 Configuration = Configuration2 | Configuration1;
156
+ export type GetAgentConfiguration =
157
+ | GetAgentConfiguration2
158
+ | GetAgentConfiguration1;
155
159
 
156
- export type KnowledgeBases = {
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: Configuration2 | Configuration1;
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<KnowledgeBases> | undefined;
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 Configuration2$inboundSchema: z.ZodType<
757
- Configuration2,
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 Configuration2$Outbound = {
770
+ export type GetAgentConfiguration2$Outbound = {
767
771
  type: string;
768
772
  query: string;
769
773
  };
770
774
 
771
775
  /** @internal */
772
- export const Configuration2$outboundSchema: z.ZodType<
773
- Configuration2$Outbound,
776
+ export const GetAgentConfiguration2$outboundSchema: z.ZodType<
777
+ GetAgentConfiguration2$Outbound,
774
778
  z.ZodTypeDef,
775
- Configuration2
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 Configuration2$ {
786
- /** @deprecated use `Configuration2$inboundSchema` instead. */
787
- export const inboundSchema = Configuration2$inboundSchema;
788
- /** @deprecated use `Configuration2$outboundSchema` instead. */
789
- export const outboundSchema = Configuration2$outboundSchema;
790
- /** @deprecated use `Configuration2$Outbound` instead. */
791
- export type Outbound = Configuration2$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 configuration2ToJSON(configuration2: Configuration2): string {
795
- return JSON.stringify(Configuration2$outboundSchema.parse(configuration2));
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 configuration2FromJSON(
806
+ export function getAgentConfiguration2FromJSON(
799
807
  jsonString: string,
800
- ): SafeParseResult<Configuration2, SDKValidationError> {
808
+ ): SafeParseResult<GetAgentConfiguration2, SDKValidationError> {
801
809
  return safeParse(
802
810
  jsonString,
803
- (x) => Configuration2$inboundSchema.parse(JSON.parse(x)),
804
- `Failed to parse 'Configuration2' from JSON`,
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 ConfigurationType$inboundSchema: z.ZodNativeEnum<
810
- typeof ConfigurationType
811
- > = z.nativeEnum(ConfigurationType);
817
+ export const GetAgentConfigurationAgentsType$inboundSchema: z.ZodNativeEnum<
818
+ typeof GetAgentConfigurationAgentsType
819
+ > = z.nativeEnum(GetAgentConfigurationAgentsType);
812
820
 
813
821
  /** @internal */
814
- export const ConfigurationType$outboundSchema: z.ZodNativeEnum<
815
- typeof ConfigurationType
816
- > = ConfigurationType$inboundSchema;
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 ConfigurationType$ {
823
- /** @deprecated use `ConfigurationType$inboundSchema` instead. */
824
- export const inboundSchema = ConfigurationType$inboundSchema;
825
- /** @deprecated use `ConfigurationType$outboundSchema` instead. */
826
- export const outboundSchema = ConfigurationType$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 Configuration1$inboundSchema: z.ZodType<
831
- Configuration1,
838
+ export const GetAgentConfiguration1$inboundSchema: z.ZodType<
839
+ GetAgentConfiguration1,
832
840
  z.ZodTypeDef,
833
841
  unknown
834
842
  > = z.object({
835
- type: ConfigurationType$inboundSchema,
843
+ type: GetAgentConfigurationAgentsType$inboundSchema,
836
844
  });
837
845
 
838
846
  /** @internal */
839
- export type Configuration1$Outbound = {
847
+ export type GetAgentConfiguration1$Outbound = {
840
848
  type: string;
841
849
  };
842
850
 
843
851
  /** @internal */
844
- export const Configuration1$outboundSchema: z.ZodType<
845
- Configuration1$Outbound,
852
+ export const GetAgentConfiguration1$outboundSchema: z.ZodType<
853
+ GetAgentConfiguration1$Outbound,
846
854
  z.ZodTypeDef,
847
- Configuration1
855
+ GetAgentConfiguration1
848
856
  > = z.object({
849
- type: ConfigurationType$outboundSchema,
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 Configuration1$ {
857
- /** @deprecated use `Configuration1$inboundSchema` instead. */
858
- export const inboundSchema = Configuration1$inboundSchema;
859
- /** @deprecated use `Configuration1$outboundSchema` instead. */
860
- export const outboundSchema = Configuration1$outboundSchema;
861
- /** @deprecated use `Configuration1$Outbound` instead. */
862
- export type Outbound = Configuration1$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 configuration1ToJSON(configuration1: Configuration1): string {
866
- return JSON.stringify(Configuration1$outboundSchema.parse(configuration1));
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 configuration1FromJSON(
881
+ export function getAgentConfiguration1FromJSON(
870
882
  jsonString: string,
871
- ): SafeParseResult<Configuration1, SDKValidationError> {
883
+ ): SafeParseResult<GetAgentConfiguration1, SDKValidationError> {
872
884
  return safeParse(
873
885
  jsonString,
874
- (x) => Configuration1$inboundSchema.parse(JSON.parse(x)),
875
- `Failed to parse 'Configuration1' from JSON`,
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 Configuration$inboundSchema: z.ZodType<
881
- Configuration,
892
+ export const GetAgentConfiguration$inboundSchema: z.ZodType<
893
+ GetAgentConfiguration,
882
894
  z.ZodTypeDef,
883
895
  unknown
884
896
  > = z.union([
885
- z.lazy(() => Configuration2$inboundSchema),
886
- z.lazy(() => Configuration1$inboundSchema),
897
+ z.lazy(() => GetAgentConfiguration2$inboundSchema),
898
+ z.lazy(() => GetAgentConfiguration1$inboundSchema),
887
899
  ]);
888
900
 
889
901
  /** @internal */
890
- export type Configuration$Outbound =
891
- | Configuration2$Outbound
892
- | Configuration1$Outbound;
902
+ export type GetAgentConfiguration$Outbound =
903
+ | GetAgentConfiguration2$Outbound
904
+ | GetAgentConfiguration1$Outbound;
893
905
 
894
906
  /** @internal */
895
- export const Configuration$outboundSchema: z.ZodType<
896
- Configuration$Outbound,
907
+ export const GetAgentConfiguration$outboundSchema: z.ZodType<
908
+ GetAgentConfiguration$Outbound,
897
909
  z.ZodTypeDef,
898
- Configuration
910
+ GetAgentConfiguration
899
911
  > = z.union([
900
- z.lazy(() => Configuration2$outboundSchema),
901
- z.lazy(() => Configuration1$outboundSchema),
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 Configuration$ {
909
- /** @deprecated use `Configuration$inboundSchema` instead. */
910
- export const inboundSchema = Configuration$inboundSchema;
911
- /** @deprecated use `Configuration$outboundSchema` instead. */
912
- export const outboundSchema = Configuration$outboundSchema;
913
- /** @deprecated use `Configuration$Outbound` instead. */
914
- export type Outbound = Configuration$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 configurationToJSON(configuration: Configuration): string {
918
- return JSON.stringify(Configuration$outboundSchema.parse(configuration));
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 configurationFromJSON(
937
+ export function getAgentConfigurationFromJSON(
922
938
  jsonString: string,
923
- ): SafeParseResult<Configuration, SDKValidationError> {
939
+ ): SafeParseResult<GetAgentConfiguration, SDKValidationError> {
924
940
  return safeParse(
925
941
  jsonString,
926
- (x) => Configuration$inboundSchema.parse(JSON.parse(x)),
927
- `Failed to parse 'Configuration' from JSON`,
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 KnowledgeBases$inboundSchema: z.ZodType<
933
- KnowledgeBases,
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("01K4Y3HQH9NPKRAS2BCJYGPEDN"),
953
+ id: z.string().default("01K5ENCKRNR22BVKBXRXDPAZWA"),
938
954
  knowledge_id: z.string(),
939
955
  configuration: z.union([
940
- z.lazy(() => Configuration2$inboundSchema),
941
- z.lazy(() => Configuration1$inboundSchema),
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 KnowledgeBases$Outbound = {
966
+ export type GetAgentKnowledgeBases$Outbound = {
951
967
  id: string;
952
968
  knowledge_id: string;
953
- configuration: Configuration2$Outbound | Configuration1$Outbound;
969
+ configuration:
970
+ | GetAgentConfiguration2$Outbound
971
+ | GetAgentConfiguration1$Outbound;
954
972
  };
955
973
 
956
974
  /** @internal */
957
- export const KnowledgeBases$outboundSchema: z.ZodType<
958
- KnowledgeBases$Outbound,
975
+ export const GetAgentKnowledgeBases$outboundSchema: z.ZodType<
976
+ GetAgentKnowledgeBases$Outbound,
959
977
  z.ZodTypeDef,
960
- KnowledgeBases
978
+ GetAgentKnowledgeBases
961
979
  > = z.object({
962
- id: z.string().default("01K4Y3HQH9NPKRAS2BCJYGPEDN"),
980
+ id: z.string().default("01K5ENCKRNR22BVKBXRXDPAZWA"),
963
981
  knowledgeId: z.string(),
964
982
  configuration: z.union([
965
- z.lazy(() => Configuration2$outboundSchema),
966
- z.lazy(() => Configuration1$outboundSchema),
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 KnowledgeBases$ {
979
- /** @deprecated use `KnowledgeBases$inboundSchema` instead. */
980
- export const inboundSchema = KnowledgeBases$inboundSchema;
981
- /** @deprecated use `KnowledgeBases$outboundSchema` instead. */
982
- export const outboundSchema = KnowledgeBases$outboundSchema;
983
- /** @deprecated use `KnowledgeBases$Outbound` instead. */
984
- export type Outbound = KnowledgeBases$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 knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
988
- return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
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 knowledgeBasesFromJSON(
1013
+ export function getAgentKnowledgeBasesFromJSON(
992
1014
  jsonString: string,
993
- ): SafeParseResult<KnowledgeBases, SDKValidationError> {
1015
+ ): SafeParseResult<GetAgentKnowledgeBases, SDKValidationError> {
994
1016
  return safeParse(
995
1017
  jsonString,
996
- (x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
997
- `Failed to parse 'KnowledgeBases' from JSON`,
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(() => KnowledgeBases$inboundSchema))
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<KnowledgeBases$Outbound> | undefined;
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(() => KnowledgeBases$outboundSchema))
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
- tags: { [k: string]: string };
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
- tags: z.record(z.string()),
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
- tags: { [k: string]: string };
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
- tags: z.record(z.string()),
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
- tags?: { [k: string]: string } | undefined;
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
- tags: z.record(z.string()).optional(),
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
- tags?: { [k: string]: string } | undefined;
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
- tags: z.record(z.string()).optional(),
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-12T04:39:34.577Z",
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-12T04:39:34.577Z"))
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, {