@orq-ai/node 3.5.12 → 3.5.13

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 (82) hide show
  1. package/bin/mcp-server.js +39 -39
  2. package/bin/mcp-server.js.map +21 -21
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/operations/bulkcreatedatapoints.js +2 -2
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/fileget.js +2 -2
  14. package/models/operations/filelist.js +2 -2
  15. package/models/operations/fileupload.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +2 -2
  17. package/models/operations/listdatasets.js +2 -2
  18. package/models/operations/listdatasources.js +2 -2
  19. package/models/operations/retrievedatapoint.js +2 -2
  20. package/models/operations/retrievedataset.js +2 -2
  21. package/models/operations/retrievedatasource.js +2 -2
  22. package/models/operations/updatedatapoint.js +2 -2
  23. package/models/operations/updatedataset.js +2 -2
  24. package/models/operations/updatedatasource.js +2 -2
  25. package/package.json +1 -1
  26. package/packages/orq-rc/README.md +2 -0
  27. package/packages/orq-rc/docs/sdks/knowledge/README.md +77 -0
  28. package/packages/orq-rc/jsr.json +1 -1
  29. package/packages/orq-rc/package-lock.json +2 -2
  30. package/packages/orq-rc/package.json +1 -1
  31. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +161 -0
  32. package/packages/orq-rc/src/lib/config.ts +3 -3
  33. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  34. package/packages/orq-rc/src/mcp-server/server.ts +3 -1
  35. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  36. package/packages/orq-rc/src/models/components/deployments.ts +3229 -134
  37. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
  38. package/packages/orq-rc/src/models/operations/createchunk.ts +65 -35
  39. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  40. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  41. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  42. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  43. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3208 -91
  44. package/packages/orq-rc/src/models/operations/deploymentstream.ts +3518 -95
  45. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  46. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  47. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  48. package/packages/orq-rc/src/models/operations/getonechunk.ts +55 -5
  49. package/packages/orq-rc/src/models/operations/index.ts +1 -0
  50. package/packages/orq-rc/src/models/operations/listchunks.ts +55 -5
  51. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  52. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  53. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  56. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/searchknowledge.ts +3783 -0
  58. package/packages/orq-rc/src/models/operations/updatechunk.ts +65 -35
  59. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  62. package/packages/orq-rc/src/sdk/knowledge.ts +18 -0
  63. package/src/lib/config.ts +2 -2
  64. package/src/mcp-server/mcp-server.ts +1 -1
  65. package/src/mcp-server/server.ts +1 -1
  66. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  67. package/src/models/operations/createcontact.ts +2 -2
  68. package/src/models/operations/createdataset.ts +2 -2
  69. package/src/models/operations/createdatasetitem.ts +2 -2
  70. package/src/models/operations/createdatasource.ts +2 -2
  71. package/src/models/operations/fileget.ts +2 -2
  72. package/src/models/operations/filelist.ts +2 -2
  73. package/src/models/operations/fileupload.ts +2 -2
  74. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  75. package/src/models/operations/listdatasets.ts +2 -2
  76. package/src/models/operations/listdatasources.ts +2 -2
  77. package/src/models/operations/retrievedatapoint.ts +2 -2
  78. package/src/models/operations/retrievedataset.ts +2 -2
  79. package/src/models/operations/retrievedatasource.ts +2 -2
  80. package/src/models/operations/updatedatapoint.ts +2 -2
  81. package/src/models/operations/updatedataset.ts +2 -2
  82. package/src/models/operations/updatedatasource.ts +2 -2
@@ -877,6 +877,299 @@ export type Thread = {
877
877
  tags?: Array<string> | undefined;
878
878
  };
879
879
 
880
+ /**
881
+ * Exists
882
+ */
883
+ export type DollarOrDollarExists = {
884
+ dollarExists: boolean;
885
+ };
886
+
887
+ export type DeploymentGetConfigDollarOrDollarNin = string | number | boolean;
888
+
889
+ /**
890
+ * Not in
891
+ */
892
+ export type DollarOrDollarNin = {
893
+ dollarNin: Array<string | number | boolean>;
894
+ };
895
+
896
+ export type DeploymentGetConfigDollarOrDollarIn = string | number | boolean;
897
+
898
+ /**
899
+ * In
900
+ */
901
+ export type DollarOrDollarIn = {
902
+ dollarIn: Array<string | number | boolean>;
903
+ };
904
+
905
+ /**
906
+ * Less than or equal to
907
+ */
908
+ export type DollarOrDollarLte = {
909
+ dollarLte: number;
910
+ };
911
+
912
+ /**
913
+ * Less than
914
+ */
915
+ export type DollarOrDollarLt = {
916
+ dollarLt: number;
917
+ };
918
+
919
+ /**
920
+ * Greater than or equal to
921
+ */
922
+ export type DollarOrDollarGte = {
923
+ dollarGte: number;
924
+ };
925
+
926
+ export type DollarOr3 = {
927
+ dollarGt: number;
928
+ };
929
+
930
+ export type DeploymentGetConfigDollarOrDollarNe = string | number | boolean;
931
+
932
+ /**
933
+ * Not equal to
934
+ */
935
+ export type DollarOrDollarNe = {
936
+ dollarNe: string | number | boolean;
937
+ };
938
+
939
+ export type DeploymentGetConfigDollarOrDollarEq = string | number | boolean;
940
+
941
+ /**
942
+ * Equal to
943
+ */
944
+ export type DollarOrDollarEq = {
945
+ dollarEq: string | number | boolean;
946
+ };
947
+
948
+ export type KnowledgeFilterDollarOr =
949
+ | DollarOrDollarEq
950
+ | DollarOrDollarNe
951
+ | DollarOr3
952
+ | DollarOrDollarGte
953
+ | DollarOrDollarLt
954
+ | DollarOrDollarLte
955
+ | DollarOrDollarIn
956
+ | DollarOrDollarNin
957
+ | DollarOrDollarExists;
958
+
959
+ /**
960
+ * Or
961
+ */
962
+ export type DollarOr = {
963
+ dollarOr: Array<
964
+ {
965
+ [k: string]:
966
+ | DollarOrDollarEq
967
+ | DollarOrDollarNe
968
+ | DollarOr3
969
+ | DollarOrDollarGte
970
+ | DollarOrDollarLt
971
+ | DollarOrDollarLte
972
+ | DollarOrDollarIn
973
+ | DollarOrDollarNin
974
+ | DollarOrDollarExists;
975
+ }
976
+ >;
977
+ };
978
+
979
+ /**
980
+ * Exists
981
+ */
982
+ export type DollarAndDollarExists = {
983
+ dollarExists: boolean;
984
+ };
985
+
986
+ export type DeploymentGetConfigDollarAndDollarNin = string | number | boolean;
987
+
988
+ /**
989
+ * Not in
990
+ */
991
+ export type DollarAndDollarNin = {
992
+ dollarNin: Array<string | number | boolean>;
993
+ };
994
+
995
+ export type DeploymentGetConfigDollarAndDollarIn = string | number | boolean;
996
+
997
+ /**
998
+ * In
999
+ */
1000
+ export type DollarAndDollarIn = {
1001
+ dollarIn: Array<string | number | boolean>;
1002
+ };
1003
+
1004
+ /**
1005
+ * Less than or equal to
1006
+ */
1007
+ export type DollarAndDollarLte = {
1008
+ dollarLte: number;
1009
+ };
1010
+
1011
+ /**
1012
+ * Less than
1013
+ */
1014
+ export type DollarAndDollarLt = {
1015
+ dollarLt: number;
1016
+ };
1017
+
1018
+ /**
1019
+ * Greater than or equal to
1020
+ */
1021
+ export type DollarAndDollarGte = {
1022
+ dollarGte: number;
1023
+ };
1024
+
1025
+ export type DollarAnd3 = {
1026
+ dollarGt: number;
1027
+ };
1028
+
1029
+ export type DeploymentGetConfigDollarAndDollarNe = string | number | boolean;
1030
+
1031
+ /**
1032
+ * Not equal to
1033
+ */
1034
+ export type DollarAndDollarNe = {
1035
+ dollarNe: string | number | boolean;
1036
+ };
1037
+
1038
+ export type DeploymentGetConfigDollarAndDollarEq = string | number | boolean;
1039
+
1040
+ /**
1041
+ * Equal to
1042
+ */
1043
+ export type DollarAndDollarEq = {
1044
+ dollarEq: string | number | boolean;
1045
+ };
1046
+
1047
+ export type KnowledgeFilterDollarAnd =
1048
+ | DollarAndDollarEq
1049
+ | DollarAndDollarNe
1050
+ | DollarAnd3
1051
+ | DollarAndDollarGte
1052
+ | DollarAndDollarLt
1053
+ | DollarAndDollarLte
1054
+ | DollarAndDollarIn
1055
+ | DollarAndDollarNin
1056
+ | DollarAndDollarExists;
1057
+
1058
+ /**
1059
+ * And
1060
+ */
1061
+ export type DollarAnd = {
1062
+ dollarAnd: Array<
1063
+ {
1064
+ [k: string]:
1065
+ | DollarAndDollarEq
1066
+ | DollarAndDollarNe
1067
+ | DollarAnd3
1068
+ | DollarAndDollarGte
1069
+ | DollarAndDollarLt
1070
+ | DollarAndDollarLte
1071
+ | DollarAndDollarIn
1072
+ | DollarAndDollarNin
1073
+ | DollarAndDollarExists;
1074
+ }
1075
+ >;
1076
+ };
1077
+
1078
+ /**
1079
+ * Exists
1080
+ */
1081
+ export type DollarExists = {
1082
+ dollarExists: boolean;
1083
+ };
1084
+
1085
+ export type OneDollarNin = string | number | boolean;
1086
+
1087
+ /**
1088
+ * Not in
1089
+ */
1090
+ export type DollarNin = {
1091
+ dollarNin: Array<string | number | boolean>;
1092
+ };
1093
+
1094
+ export type OneDollarIn = string | number | boolean;
1095
+
1096
+ /**
1097
+ * In
1098
+ */
1099
+ export type DollarIn = {
1100
+ dollarIn: Array<string | number | boolean>;
1101
+ };
1102
+
1103
+ /**
1104
+ * Less than or equal to
1105
+ */
1106
+ export type DollarLte = {
1107
+ dollarLte: number;
1108
+ };
1109
+
1110
+ /**
1111
+ * Less than
1112
+ */
1113
+ export type DollarLt = {
1114
+ dollarLt: number;
1115
+ };
1116
+
1117
+ /**
1118
+ * Greater than or equal to
1119
+ */
1120
+ export type DollarGte = {
1121
+ dollarGte: number;
1122
+ };
1123
+
1124
+ export type One3 = {
1125
+ dollarGt: number;
1126
+ };
1127
+
1128
+ export type OneDollarNe = string | number | boolean;
1129
+
1130
+ /**
1131
+ * Not equal to
1132
+ */
1133
+ export type DollarNe = {
1134
+ dollarNe: string | number | boolean;
1135
+ };
1136
+
1137
+ export type OneDollarEq = string | number | boolean;
1138
+
1139
+ /**
1140
+ * Equal to
1141
+ */
1142
+ export type DollarEq = {
1143
+ dollarEq: string | number | boolean;
1144
+ };
1145
+
1146
+ export type KnowledgeFilter1 =
1147
+ | DollarEq
1148
+ | DollarNe
1149
+ | One3
1150
+ | DollarGte
1151
+ | DollarLt
1152
+ | DollarLte
1153
+ | DollarIn
1154
+ | DollarNin
1155
+ | DollarExists;
1156
+
1157
+ /**
1158
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1159
+ */
1160
+ export type KnowledgeFilter = DollarAnd | DollarOr | {
1161
+ [k: string]:
1162
+ | DollarEq
1163
+ | DollarNe
1164
+ | One3
1165
+ | DollarGte
1166
+ | DollarLt
1167
+ | DollarLte
1168
+ | DollarIn
1169
+ | DollarNin
1170
+ | DollarExists;
1171
+ };
1172
+
880
1173
  export type DeploymentGetConfigRequestBody = {
881
1174
  /**
882
1175
  * The deployment key to invoke
@@ -932,6 +1225,21 @@ export type DeploymentGetConfigRequestBody = {
932
1225
  documents?: Array<Documents> | undefined;
933
1226
  invokeOptions?: InvokeOptions | undefined;
934
1227
  thread?: Thread | undefined;
1228
+ /**
1229
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1230
+ */
1231
+ knowledgeFilter?: DollarAnd | DollarOr | {
1232
+ [k: string]:
1233
+ | DollarEq
1234
+ | DollarNe
1235
+ | One3
1236
+ | DollarGte
1237
+ | DollarLt
1238
+ | DollarLte
1239
+ | DollarIn
1240
+ | DollarNin
1241
+ | DollarExists;
1242
+ } | undefined;
935
1243
  };
936
1244
 
937
1245
  /**
@@ -5046,117 +5354,2926 @@ export function threadFromJSON(
5046
5354
  }
5047
5355
 
5048
5356
  /** @internal */
5049
- export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
5050
- DeploymentGetConfigRequestBody,
5357
+ export const DollarOrDollarExists$inboundSchema: z.ZodType<
5358
+ DollarOrDollarExists,
5051
5359
  z.ZodTypeDef,
5052
5360
  unknown
5053
5361
  > = z.object({
5054
- key: z.string(),
5055
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
5056
- context: z.record(z.any()).optional(),
5057
- prefix_messages: z.array(
5058
- z.union([
5059
- z.lazy(() => DeveloperMessage$inboundSchema),
5060
- z.lazy(() => SystemMessage$inboundSchema),
5061
- z.lazy(() => UserMessage$inboundSchema),
5062
- z.lazy(() => ToolMessage$inboundSchema),
5063
- z.lazy(() => AssistantMessage$inboundSchema),
5064
- ]),
5065
- ).optional(),
5066
- messages: z.array(
5067
- z.union([
5068
- z.lazy(() => MessagesDeveloperMessage$inboundSchema),
5069
- z.lazy(() => MessagesSystemMessage$inboundSchema),
5070
- z.lazy(() => MessagesUserMessage$inboundSchema),
5071
- z.lazy(() => MessagesToolMessage$inboundSchema),
5072
- z.lazy(() => MessagesAssistantMessage$inboundSchema),
5073
- ]),
5074
- ).optional(),
5075
- file_ids: z.array(z.string()).optional(),
5076
- metadata: z.record(z.any()).optional(),
5077
- extra_params: z.record(z.any()).optional(),
5078
- documents: z.array(z.lazy(() => Documents$inboundSchema)).optional(),
5079
- invoke_options: z.lazy(() => InvokeOptions$inboundSchema).optional(),
5080
- thread: z.lazy(() => Thread$inboundSchema).optional(),
5362
+ $exists: z.boolean(),
5081
5363
  }).transform((v) => {
5082
5364
  return remap$(v, {
5083
- "prefix_messages": "prefixMessages",
5084
- "file_ids": "fileIds",
5085
- "extra_params": "extraParams",
5086
- "invoke_options": "invokeOptions",
5365
+ "$exists": "dollarExists",
5087
5366
  });
5088
5367
  });
5089
5368
 
5090
5369
  /** @internal */
5091
- export type DeploymentGetConfigRequestBody$Outbound = {
5092
- key: string;
5093
- inputs?: { [k: string]: string | number | boolean } | undefined;
5094
- context?: { [k: string]: any } | undefined;
5095
- prefix_messages?:
5096
- | Array<
5097
- | DeveloperMessage$Outbound
5098
- | SystemMessage$Outbound
5099
- | UserMessage$Outbound
5100
- | ToolMessage$Outbound
5101
- | AssistantMessage$Outbound
5102
- >
5103
- | undefined;
5104
- messages?:
5105
- | Array<
5106
- | MessagesDeveloperMessage$Outbound
5107
- | MessagesSystemMessage$Outbound
5108
- | MessagesUserMessage$Outbound
5109
- | MessagesToolMessage$Outbound
5110
- | MessagesAssistantMessage$Outbound
5111
- >
5112
- | undefined;
5113
- file_ids?: Array<string> | undefined;
5114
- metadata?: { [k: string]: any } | undefined;
5115
- extra_params?: { [k: string]: any } | undefined;
5116
- documents?: Array<Documents$Outbound> | undefined;
5117
- invoke_options?: InvokeOptions$Outbound | undefined;
5118
- thread?: Thread$Outbound | undefined;
5370
+ export type DollarOrDollarExists$Outbound = {
5371
+ $exists: boolean;
5119
5372
  };
5120
5373
 
5121
5374
  /** @internal */
5122
- export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
5123
- DeploymentGetConfigRequestBody$Outbound,
5375
+ export const DollarOrDollarExists$outboundSchema: z.ZodType<
5376
+ DollarOrDollarExists$Outbound,
5124
5377
  z.ZodTypeDef,
5125
- DeploymentGetConfigRequestBody
5378
+ DollarOrDollarExists
5126
5379
  > = z.object({
5127
- key: z.string(),
5128
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
5129
- context: z.record(z.any()).optional(),
5130
- prefixMessages: z.array(
5131
- z.union([
5132
- z.lazy(() => DeveloperMessage$outboundSchema),
5133
- z.lazy(() => SystemMessage$outboundSchema),
5134
- z.lazy(() => UserMessage$outboundSchema),
5135
- z.lazy(() => ToolMessage$outboundSchema),
5136
- z.lazy(() => AssistantMessage$outboundSchema),
5137
- ]),
5138
- ).optional(),
5139
- messages: z.array(
5140
- z.union([
5141
- z.lazy(() => MessagesDeveloperMessage$outboundSchema),
5142
- z.lazy(() => MessagesSystemMessage$outboundSchema),
5143
- z.lazy(() => MessagesUserMessage$outboundSchema),
5144
- z.lazy(() => MessagesToolMessage$outboundSchema),
5145
- z.lazy(() => MessagesAssistantMessage$outboundSchema),
5146
- ]),
5147
- ).optional(),
5148
- fileIds: z.array(z.string()).optional(),
5149
- metadata: z.record(z.any()).optional(),
5150
- extraParams: z.record(z.any()).optional(),
5151
- documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
5152
- invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
5153
- thread: z.lazy(() => Thread$outboundSchema).optional(),
5380
+ dollarExists: z.boolean(),
5381
+ }).transform((v) => {
5382
+ return remap$(v, {
5383
+ dollarExists: "$exists",
5384
+ });
5385
+ });
5386
+
5387
+ /**
5388
+ * @internal
5389
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5390
+ */
5391
+ export namespace DollarOrDollarExists$ {
5392
+ /** @deprecated use `DollarOrDollarExists$inboundSchema` instead. */
5393
+ export const inboundSchema = DollarOrDollarExists$inboundSchema;
5394
+ /** @deprecated use `DollarOrDollarExists$outboundSchema` instead. */
5395
+ export const outboundSchema = DollarOrDollarExists$outboundSchema;
5396
+ /** @deprecated use `DollarOrDollarExists$Outbound` instead. */
5397
+ export type Outbound = DollarOrDollarExists$Outbound;
5398
+ }
5399
+
5400
+ export function dollarOrDollarExistsToJSON(
5401
+ dollarOrDollarExists: DollarOrDollarExists,
5402
+ ): string {
5403
+ return JSON.stringify(
5404
+ DollarOrDollarExists$outboundSchema.parse(dollarOrDollarExists),
5405
+ );
5406
+ }
5407
+
5408
+ export function dollarOrDollarExistsFromJSON(
5409
+ jsonString: string,
5410
+ ): SafeParseResult<DollarOrDollarExists, SDKValidationError> {
5411
+ return safeParse(
5412
+ jsonString,
5413
+ (x) => DollarOrDollarExists$inboundSchema.parse(JSON.parse(x)),
5414
+ `Failed to parse 'DollarOrDollarExists' from JSON`,
5415
+ );
5416
+ }
5417
+
5418
+ /** @internal */
5419
+ export const DeploymentGetConfigDollarOrDollarNin$inboundSchema: z.ZodType<
5420
+ DeploymentGetConfigDollarOrDollarNin,
5421
+ z.ZodTypeDef,
5422
+ unknown
5423
+ > = z.union([z.string(), z.number(), z.boolean()]);
5424
+
5425
+ /** @internal */
5426
+ export type DeploymentGetConfigDollarOrDollarNin$Outbound =
5427
+ | string
5428
+ | number
5429
+ | boolean;
5430
+
5431
+ /** @internal */
5432
+ export const DeploymentGetConfigDollarOrDollarNin$outboundSchema: z.ZodType<
5433
+ DeploymentGetConfigDollarOrDollarNin$Outbound,
5434
+ z.ZodTypeDef,
5435
+ DeploymentGetConfigDollarOrDollarNin
5436
+ > = z.union([z.string(), z.number(), z.boolean()]);
5437
+
5438
+ /**
5439
+ * @internal
5440
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5441
+ */
5442
+ export namespace DeploymentGetConfigDollarOrDollarNin$ {
5443
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNin$inboundSchema` instead. */
5444
+ export const inboundSchema =
5445
+ DeploymentGetConfigDollarOrDollarNin$inboundSchema;
5446
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNin$outboundSchema` instead. */
5447
+ export const outboundSchema =
5448
+ DeploymentGetConfigDollarOrDollarNin$outboundSchema;
5449
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNin$Outbound` instead. */
5450
+ export type Outbound = DeploymentGetConfigDollarOrDollarNin$Outbound;
5451
+ }
5452
+
5453
+ export function deploymentGetConfigDollarOrDollarNinToJSON(
5454
+ deploymentGetConfigDollarOrDollarNin: DeploymentGetConfigDollarOrDollarNin,
5455
+ ): string {
5456
+ return JSON.stringify(
5457
+ DeploymentGetConfigDollarOrDollarNin$outboundSchema.parse(
5458
+ deploymentGetConfigDollarOrDollarNin,
5459
+ ),
5460
+ );
5461
+ }
5462
+
5463
+ export function deploymentGetConfigDollarOrDollarNinFromJSON(
5464
+ jsonString: string,
5465
+ ): SafeParseResult<DeploymentGetConfigDollarOrDollarNin, SDKValidationError> {
5466
+ return safeParse(
5467
+ jsonString,
5468
+ (x) =>
5469
+ DeploymentGetConfigDollarOrDollarNin$inboundSchema.parse(JSON.parse(x)),
5470
+ `Failed to parse 'DeploymentGetConfigDollarOrDollarNin' from JSON`,
5471
+ );
5472
+ }
5473
+
5474
+ /** @internal */
5475
+ export const DollarOrDollarNin$inboundSchema: z.ZodType<
5476
+ DollarOrDollarNin,
5477
+ z.ZodTypeDef,
5478
+ unknown
5479
+ > = z.object({
5480
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5481
+ }).transform((v) => {
5482
+ return remap$(v, {
5483
+ "$nin": "dollarNin",
5484
+ });
5485
+ });
5486
+
5487
+ /** @internal */
5488
+ export type DollarOrDollarNin$Outbound = {
5489
+ $nin: Array<string | number | boolean>;
5490
+ };
5491
+
5492
+ /** @internal */
5493
+ export const DollarOrDollarNin$outboundSchema: z.ZodType<
5494
+ DollarOrDollarNin$Outbound,
5495
+ z.ZodTypeDef,
5496
+ DollarOrDollarNin
5497
+ > = z.object({
5498
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5499
+ }).transform((v) => {
5500
+ return remap$(v, {
5501
+ dollarNin: "$nin",
5502
+ });
5503
+ });
5504
+
5505
+ /**
5506
+ * @internal
5507
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5508
+ */
5509
+ export namespace DollarOrDollarNin$ {
5510
+ /** @deprecated use `DollarOrDollarNin$inboundSchema` instead. */
5511
+ export const inboundSchema = DollarOrDollarNin$inboundSchema;
5512
+ /** @deprecated use `DollarOrDollarNin$outboundSchema` instead. */
5513
+ export const outboundSchema = DollarOrDollarNin$outboundSchema;
5514
+ /** @deprecated use `DollarOrDollarNin$Outbound` instead. */
5515
+ export type Outbound = DollarOrDollarNin$Outbound;
5516
+ }
5517
+
5518
+ export function dollarOrDollarNinToJSON(
5519
+ dollarOrDollarNin: DollarOrDollarNin,
5520
+ ): string {
5521
+ return JSON.stringify(
5522
+ DollarOrDollarNin$outboundSchema.parse(dollarOrDollarNin),
5523
+ );
5524
+ }
5525
+
5526
+ export function dollarOrDollarNinFromJSON(
5527
+ jsonString: string,
5528
+ ): SafeParseResult<DollarOrDollarNin, SDKValidationError> {
5529
+ return safeParse(
5530
+ jsonString,
5531
+ (x) => DollarOrDollarNin$inboundSchema.parse(JSON.parse(x)),
5532
+ `Failed to parse 'DollarOrDollarNin' from JSON`,
5533
+ );
5534
+ }
5535
+
5536
+ /** @internal */
5537
+ export const DeploymentGetConfigDollarOrDollarIn$inboundSchema: z.ZodType<
5538
+ DeploymentGetConfigDollarOrDollarIn,
5539
+ z.ZodTypeDef,
5540
+ unknown
5541
+ > = z.union([z.string(), z.number(), z.boolean()]);
5542
+
5543
+ /** @internal */
5544
+ export type DeploymentGetConfigDollarOrDollarIn$Outbound =
5545
+ | string
5546
+ | number
5547
+ | boolean;
5548
+
5549
+ /** @internal */
5550
+ export const DeploymentGetConfigDollarOrDollarIn$outboundSchema: z.ZodType<
5551
+ DeploymentGetConfigDollarOrDollarIn$Outbound,
5552
+ z.ZodTypeDef,
5553
+ DeploymentGetConfigDollarOrDollarIn
5554
+ > = z.union([z.string(), z.number(), z.boolean()]);
5555
+
5556
+ /**
5557
+ * @internal
5558
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5559
+ */
5560
+ export namespace DeploymentGetConfigDollarOrDollarIn$ {
5561
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarIn$inboundSchema` instead. */
5562
+ export const inboundSchema =
5563
+ DeploymentGetConfigDollarOrDollarIn$inboundSchema;
5564
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarIn$outboundSchema` instead. */
5565
+ export const outboundSchema =
5566
+ DeploymentGetConfigDollarOrDollarIn$outboundSchema;
5567
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarIn$Outbound` instead. */
5568
+ export type Outbound = DeploymentGetConfigDollarOrDollarIn$Outbound;
5569
+ }
5570
+
5571
+ export function deploymentGetConfigDollarOrDollarInToJSON(
5572
+ deploymentGetConfigDollarOrDollarIn: DeploymentGetConfigDollarOrDollarIn,
5573
+ ): string {
5574
+ return JSON.stringify(
5575
+ DeploymentGetConfigDollarOrDollarIn$outboundSchema.parse(
5576
+ deploymentGetConfigDollarOrDollarIn,
5577
+ ),
5578
+ );
5579
+ }
5580
+
5581
+ export function deploymentGetConfigDollarOrDollarInFromJSON(
5582
+ jsonString: string,
5583
+ ): SafeParseResult<DeploymentGetConfigDollarOrDollarIn, SDKValidationError> {
5584
+ return safeParse(
5585
+ jsonString,
5586
+ (x) =>
5587
+ DeploymentGetConfigDollarOrDollarIn$inboundSchema.parse(JSON.parse(x)),
5588
+ `Failed to parse 'DeploymentGetConfigDollarOrDollarIn' from JSON`,
5589
+ );
5590
+ }
5591
+
5592
+ /** @internal */
5593
+ export const DollarOrDollarIn$inboundSchema: z.ZodType<
5594
+ DollarOrDollarIn,
5595
+ z.ZodTypeDef,
5596
+ unknown
5597
+ > = z.object({
5598
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
5599
+ }).transform((v) => {
5600
+ return remap$(v, {
5601
+ "$in": "dollarIn",
5602
+ });
5603
+ });
5604
+
5605
+ /** @internal */
5606
+ export type DollarOrDollarIn$Outbound = {
5607
+ $in: Array<string | number | boolean>;
5608
+ };
5609
+
5610
+ /** @internal */
5611
+ export const DollarOrDollarIn$outboundSchema: z.ZodType<
5612
+ DollarOrDollarIn$Outbound,
5613
+ z.ZodTypeDef,
5614
+ DollarOrDollarIn
5615
+ > = z.object({
5616
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
5617
+ }).transform((v) => {
5618
+ return remap$(v, {
5619
+ dollarIn: "$in",
5620
+ });
5621
+ });
5622
+
5623
+ /**
5624
+ * @internal
5625
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5626
+ */
5627
+ export namespace DollarOrDollarIn$ {
5628
+ /** @deprecated use `DollarOrDollarIn$inboundSchema` instead. */
5629
+ export const inboundSchema = DollarOrDollarIn$inboundSchema;
5630
+ /** @deprecated use `DollarOrDollarIn$outboundSchema` instead. */
5631
+ export const outboundSchema = DollarOrDollarIn$outboundSchema;
5632
+ /** @deprecated use `DollarOrDollarIn$Outbound` instead. */
5633
+ export type Outbound = DollarOrDollarIn$Outbound;
5634
+ }
5635
+
5636
+ export function dollarOrDollarInToJSON(
5637
+ dollarOrDollarIn: DollarOrDollarIn,
5638
+ ): string {
5639
+ return JSON.stringify(
5640
+ DollarOrDollarIn$outboundSchema.parse(dollarOrDollarIn),
5641
+ );
5642
+ }
5643
+
5644
+ export function dollarOrDollarInFromJSON(
5645
+ jsonString: string,
5646
+ ): SafeParseResult<DollarOrDollarIn, SDKValidationError> {
5647
+ return safeParse(
5648
+ jsonString,
5649
+ (x) => DollarOrDollarIn$inboundSchema.parse(JSON.parse(x)),
5650
+ `Failed to parse 'DollarOrDollarIn' from JSON`,
5651
+ );
5652
+ }
5653
+
5654
+ /** @internal */
5655
+ export const DollarOrDollarLte$inboundSchema: z.ZodType<
5656
+ DollarOrDollarLte,
5657
+ z.ZodTypeDef,
5658
+ unknown
5659
+ > = z.object({
5660
+ $lte: z.number(),
5661
+ }).transform((v) => {
5662
+ return remap$(v, {
5663
+ "$lte": "dollarLte",
5664
+ });
5665
+ });
5666
+
5667
+ /** @internal */
5668
+ export type DollarOrDollarLte$Outbound = {
5669
+ $lte: number;
5670
+ };
5671
+
5672
+ /** @internal */
5673
+ export const DollarOrDollarLte$outboundSchema: z.ZodType<
5674
+ DollarOrDollarLte$Outbound,
5675
+ z.ZodTypeDef,
5676
+ DollarOrDollarLte
5677
+ > = z.object({
5678
+ dollarLte: z.number(),
5679
+ }).transform((v) => {
5680
+ return remap$(v, {
5681
+ dollarLte: "$lte",
5682
+ });
5683
+ });
5684
+
5685
+ /**
5686
+ * @internal
5687
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5688
+ */
5689
+ export namespace DollarOrDollarLte$ {
5690
+ /** @deprecated use `DollarOrDollarLte$inboundSchema` instead. */
5691
+ export const inboundSchema = DollarOrDollarLte$inboundSchema;
5692
+ /** @deprecated use `DollarOrDollarLte$outboundSchema` instead. */
5693
+ export const outboundSchema = DollarOrDollarLte$outboundSchema;
5694
+ /** @deprecated use `DollarOrDollarLte$Outbound` instead. */
5695
+ export type Outbound = DollarOrDollarLte$Outbound;
5696
+ }
5697
+
5698
+ export function dollarOrDollarLteToJSON(
5699
+ dollarOrDollarLte: DollarOrDollarLte,
5700
+ ): string {
5701
+ return JSON.stringify(
5702
+ DollarOrDollarLte$outboundSchema.parse(dollarOrDollarLte),
5703
+ );
5704
+ }
5705
+
5706
+ export function dollarOrDollarLteFromJSON(
5707
+ jsonString: string,
5708
+ ): SafeParseResult<DollarOrDollarLte, SDKValidationError> {
5709
+ return safeParse(
5710
+ jsonString,
5711
+ (x) => DollarOrDollarLte$inboundSchema.parse(JSON.parse(x)),
5712
+ `Failed to parse 'DollarOrDollarLte' from JSON`,
5713
+ );
5714
+ }
5715
+
5716
+ /** @internal */
5717
+ export const DollarOrDollarLt$inboundSchema: z.ZodType<
5718
+ DollarOrDollarLt,
5719
+ z.ZodTypeDef,
5720
+ unknown
5721
+ > = z.object({
5722
+ $lt: z.number(),
5723
+ }).transform((v) => {
5724
+ return remap$(v, {
5725
+ "$lt": "dollarLt",
5726
+ });
5727
+ });
5728
+
5729
+ /** @internal */
5730
+ export type DollarOrDollarLt$Outbound = {
5731
+ $lt: number;
5732
+ };
5733
+
5734
+ /** @internal */
5735
+ export const DollarOrDollarLt$outboundSchema: z.ZodType<
5736
+ DollarOrDollarLt$Outbound,
5737
+ z.ZodTypeDef,
5738
+ DollarOrDollarLt
5739
+ > = z.object({
5740
+ dollarLt: z.number(),
5741
+ }).transform((v) => {
5742
+ return remap$(v, {
5743
+ dollarLt: "$lt",
5744
+ });
5745
+ });
5746
+
5747
+ /**
5748
+ * @internal
5749
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5750
+ */
5751
+ export namespace DollarOrDollarLt$ {
5752
+ /** @deprecated use `DollarOrDollarLt$inboundSchema` instead. */
5753
+ export const inboundSchema = DollarOrDollarLt$inboundSchema;
5754
+ /** @deprecated use `DollarOrDollarLt$outboundSchema` instead. */
5755
+ export const outboundSchema = DollarOrDollarLt$outboundSchema;
5756
+ /** @deprecated use `DollarOrDollarLt$Outbound` instead. */
5757
+ export type Outbound = DollarOrDollarLt$Outbound;
5758
+ }
5759
+
5760
+ export function dollarOrDollarLtToJSON(
5761
+ dollarOrDollarLt: DollarOrDollarLt,
5762
+ ): string {
5763
+ return JSON.stringify(
5764
+ DollarOrDollarLt$outboundSchema.parse(dollarOrDollarLt),
5765
+ );
5766
+ }
5767
+
5768
+ export function dollarOrDollarLtFromJSON(
5769
+ jsonString: string,
5770
+ ): SafeParseResult<DollarOrDollarLt, SDKValidationError> {
5771
+ return safeParse(
5772
+ jsonString,
5773
+ (x) => DollarOrDollarLt$inboundSchema.parse(JSON.parse(x)),
5774
+ `Failed to parse 'DollarOrDollarLt' from JSON`,
5775
+ );
5776
+ }
5777
+
5778
+ /** @internal */
5779
+ export const DollarOrDollarGte$inboundSchema: z.ZodType<
5780
+ DollarOrDollarGte,
5781
+ z.ZodTypeDef,
5782
+ unknown
5783
+ > = z.object({
5784
+ $gte: z.number(),
5785
+ }).transform((v) => {
5786
+ return remap$(v, {
5787
+ "$gte": "dollarGte",
5788
+ });
5789
+ });
5790
+
5791
+ /** @internal */
5792
+ export type DollarOrDollarGte$Outbound = {
5793
+ $gte: number;
5794
+ };
5795
+
5796
+ /** @internal */
5797
+ export const DollarOrDollarGte$outboundSchema: z.ZodType<
5798
+ DollarOrDollarGte$Outbound,
5799
+ z.ZodTypeDef,
5800
+ DollarOrDollarGte
5801
+ > = z.object({
5802
+ dollarGte: z.number(),
5803
+ }).transform((v) => {
5804
+ return remap$(v, {
5805
+ dollarGte: "$gte",
5806
+ });
5807
+ });
5808
+
5809
+ /**
5810
+ * @internal
5811
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5812
+ */
5813
+ export namespace DollarOrDollarGte$ {
5814
+ /** @deprecated use `DollarOrDollarGte$inboundSchema` instead. */
5815
+ export const inboundSchema = DollarOrDollarGte$inboundSchema;
5816
+ /** @deprecated use `DollarOrDollarGte$outboundSchema` instead. */
5817
+ export const outboundSchema = DollarOrDollarGte$outboundSchema;
5818
+ /** @deprecated use `DollarOrDollarGte$Outbound` instead. */
5819
+ export type Outbound = DollarOrDollarGte$Outbound;
5820
+ }
5821
+
5822
+ export function dollarOrDollarGteToJSON(
5823
+ dollarOrDollarGte: DollarOrDollarGte,
5824
+ ): string {
5825
+ return JSON.stringify(
5826
+ DollarOrDollarGte$outboundSchema.parse(dollarOrDollarGte),
5827
+ );
5828
+ }
5829
+
5830
+ export function dollarOrDollarGteFromJSON(
5831
+ jsonString: string,
5832
+ ): SafeParseResult<DollarOrDollarGte, SDKValidationError> {
5833
+ return safeParse(
5834
+ jsonString,
5835
+ (x) => DollarOrDollarGte$inboundSchema.parse(JSON.parse(x)),
5836
+ `Failed to parse 'DollarOrDollarGte' from JSON`,
5837
+ );
5838
+ }
5839
+
5840
+ /** @internal */
5841
+ export const DollarOr3$inboundSchema: z.ZodType<
5842
+ DollarOr3,
5843
+ z.ZodTypeDef,
5844
+ unknown
5845
+ > = z.object({
5846
+ $gt: z.number(),
5847
+ }).transform((v) => {
5848
+ return remap$(v, {
5849
+ "$gt": "dollarGt",
5850
+ });
5851
+ });
5852
+
5853
+ /** @internal */
5854
+ export type DollarOr3$Outbound = {
5855
+ $gt: number;
5856
+ };
5857
+
5858
+ /** @internal */
5859
+ export const DollarOr3$outboundSchema: z.ZodType<
5860
+ DollarOr3$Outbound,
5861
+ z.ZodTypeDef,
5862
+ DollarOr3
5863
+ > = z.object({
5864
+ dollarGt: z.number(),
5865
+ }).transform((v) => {
5866
+ return remap$(v, {
5867
+ dollarGt: "$gt",
5868
+ });
5869
+ });
5870
+
5871
+ /**
5872
+ * @internal
5873
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5874
+ */
5875
+ export namespace DollarOr3$ {
5876
+ /** @deprecated use `DollarOr3$inboundSchema` instead. */
5877
+ export const inboundSchema = DollarOr3$inboundSchema;
5878
+ /** @deprecated use `DollarOr3$outboundSchema` instead. */
5879
+ export const outboundSchema = DollarOr3$outboundSchema;
5880
+ /** @deprecated use `DollarOr3$Outbound` instead. */
5881
+ export type Outbound = DollarOr3$Outbound;
5882
+ }
5883
+
5884
+ export function dollarOr3ToJSON(dollarOr3: DollarOr3): string {
5885
+ return JSON.stringify(DollarOr3$outboundSchema.parse(dollarOr3));
5886
+ }
5887
+
5888
+ export function dollarOr3FromJSON(
5889
+ jsonString: string,
5890
+ ): SafeParseResult<DollarOr3, SDKValidationError> {
5891
+ return safeParse(
5892
+ jsonString,
5893
+ (x) => DollarOr3$inboundSchema.parse(JSON.parse(x)),
5894
+ `Failed to parse 'DollarOr3' from JSON`,
5895
+ );
5896
+ }
5897
+
5898
+ /** @internal */
5899
+ export const DeploymentGetConfigDollarOrDollarNe$inboundSchema: z.ZodType<
5900
+ DeploymentGetConfigDollarOrDollarNe,
5901
+ z.ZodTypeDef,
5902
+ unknown
5903
+ > = z.union([z.string(), z.number(), z.boolean()]);
5904
+
5905
+ /** @internal */
5906
+ export type DeploymentGetConfigDollarOrDollarNe$Outbound =
5907
+ | string
5908
+ | number
5909
+ | boolean;
5910
+
5911
+ /** @internal */
5912
+ export const DeploymentGetConfigDollarOrDollarNe$outboundSchema: z.ZodType<
5913
+ DeploymentGetConfigDollarOrDollarNe$Outbound,
5914
+ z.ZodTypeDef,
5915
+ DeploymentGetConfigDollarOrDollarNe
5916
+ > = z.union([z.string(), z.number(), z.boolean()]);
5917
+
5918
+ /**
5919
+ * @internal
5920
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5921
+ */
5922
+ export namespace DeploymentGetConfigDollarOrDollarNe$ {
5923
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNe$inboundSchema` instead. */
5924
+ export const inboundSchema =
5925
+ DeploymentGetConfigDollarOrDollarNe$inboundSchema;
5926
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNe$outboundSchema` instead. */
5927
+ export const outboundSchema =
5928
+ DeploymentGetConfigDollarOrDollarNe$outboundSchema;
5929
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNe$Outbound` instead. */
5930
+ export type Outbound = DeploymentGetConfigDollarOrDollarNe$Outbound;
5931
+ }
5932
+
5933
+ export function deploymentGetConfigDollarOrDollarNeToJSON(
5934
+ deploymentGetConfigDollarOrDollarNe: DeploymentGetConfigDollarOrDollarNe,
5935
+ ): string {
5936
+ return JSON.stringify(
5937
+ DeploymentGetConfigDollarOrDollarNe$outboundSchema.parse(
5938
+ deploymentGetConfigDollarOrDollarNe,
5939
+ ),
5940
+ );
5941
+ }
5942
+
5943
+ export function deploymentGetConfigDollarOrDollarNeFromJSON(
5944
+ jsonString: string,
5945
+ ): SafeParseResult<DeploymentGetConfigDollarOrDollarNe, SDKValidationError> {
5946
+ return safeParse(
5947
+ jsonString,
5948
+ (x) =>
5949
+ DeploymentGetConfigDollarOrDollarNe$inboundSchema.parse(JSON.parse(x)),
5950
+ `Failed to parse 'DeploymentGetConfigDollarOrDollarNe' from JSON`,
5951
+ );
5952
+ }
5953
+
5954
+ /** @internal */
5955
+ export const DollarOrDollarNe$inboundSchema: z.ZodType<
5956
+ DollarOrDollarNe,
5957
+ z.ZodTypeDef,
5958
+ unknown
5959
+ > = z.object({
5960
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
5961
+ }).transform((v) => {
5962
+ return remap$(v, {
5963
+ "$ne": "dollarNe",
5964
+ });
5965
+ });
5966
+
5967
+ /** @internal */
5968
+ export type DollarOrDollarNe$Outbound = {
5969
+ $ne: string | number | boolean;
5970
+ };
5971
+
5972
+ /** @internal */
5973
+ export const DollarOrDollarNe$outboundSchema: z.ZodType<
5974
+ DollarOrDollarNe$Outbound,
5975
+ z.ZodTypeDef,
5976
+ DollarOrDollarNe
5977
+ > = z.object({
5978
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
5979
+ }).transform((v) => {
5980
+ return remap$(v, {
5981
+ dollarNe: "$ne",
5982
+ });
5983
+ });
5984
+
5985
+ /**
5986
+ * @internal
5987
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5988
+ */
5989
+ export namespace DollarOrDollarNe$ {
5990
+ /** @deprecated use `DollarOrDollarNe$inboundSchema` instead. */
5991
+ export const inboundSchema = DollarOrDollarNe$inboundSchema;
5992
+ /** @deprecated use `DollarOrDollarNe$outboundSchema` instead. */
5993
+ export const outboundSchema = DollarOrDollarNe$outboundSchema;
5994
+ /** @deprecated use `DollarOrDollarNe$Outbound` instead. */
5995
+ export type Outbound = DollarOrDollarNe$Outbound;
5996
+ }
5997
+
5998
+ export function dollarOrDollarNeToJSON(
5999
+ dollarOrDollarNe: DollarOrDollarNe,
6000
+ ): string {
6001
+ return JSON.stringify(
6002
+ DollarOrDollarNe$outboundSchema.parse(dollarOrDollarNe),
6003
+ );
6004
+ }
6005
+
6006
+ export function dollarOrDollarNeFromJSON(
6007
+ jsonString: string,
6008
+ ): SafeParseResult<DollarOrDollarNe, SDKValidationError> {
6009
+ return safeParse(
6010
+ jsonString,
6011
+ (x) => DollarOrDollarNe$inboundSchema.parse(JSON.parse(x)),
6012
+ `Failed to parse 'DollarOrDollarNe' from JSON`,
6013
+ );
6014
+ }
6015
+
6016
+ /** @internal */
6017
+ export const DeploymentGetConfigDollarOrDollarEq$inboundSchema: z.ZodType<
6018
+ DeploymentGetConfigDollarOrDollarEq,
6019
+ z.ZodTypeDef,
6020
+ unknown
6021
+ > = z.union([z.string(), z.number(), z.boolean()]);
6022
+
6023
+ /** @internal */
6024
+ export type DeploymentGetConfigDollarOrDollarEq$Outbound =
6025
+ | string
6026
+ | number
6027
+ | boolean;
6028
+
6029
+ /** @internal */
6030
+ export const DeploymentGetConfigDollarOrDollarEq$outboundSchema: z.ZodType<
6031
+ DeploymentGetConfigDollarOrDollarEq$Outbound,
6032
+ z.ZodTypeDef,
6033
+ DeploymentGetConfigDollarOrDollarEq
6034
+ > = z.union([z.string(), z.number(), z.boolean()]);
6035
+
6036
+ /**
6037
+ * @internal
6038
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6039
+ */
6040
+ export namespace DeploymentGetConfigDollarOrDollarEq$ {
6041
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarEq$inboundSchema` instead. */
6042
+ export const inboundSchema =
6043
+ DeploymentGetConfigDollarOrDollarEq$inboundSchema;
6044
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarEq$outboundSchema` instead. */
6045
+ export const outboundSchema =
6046
+ DeploymentGetConfigDollarOrDollarEq$outboundSchema;
6047
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarEq$Outbound` instead. */
6048
+ export type Outbound = DeploymentGetConfigDollarOrDollarEq$Outbound;
6049
+ }
6050
+
6051
+ export function deploymentGetConfigDollarOrDollarEqToJSON(
6052
+ deploymentGetConfigDollarOrDollarEq: DeploymentGetConfigDollarOrDollarEq,
6053
+ ): string {
6054
+ return JSON.stringify(
6055
+ DeploymentGetConfigDollarOrDollarEq$outboundSchema.parse(
6056
+ deploymentGetConfigDollarOrDollarEq,
6057
+ ),
6058
+ );
6059
+ }
6060
+
6061
+ export function deploymentGetConfigDollarOrDollarEqFromJSON(
6062
+ jsonString: string,
6063
+ ): SafeParseResult<DeploymentGetConfigDollarOrDollarEq, SDKValidationError> {
6064
+ return safeParse(
6065
+ jsonString,
6066
+ (x) =>
6067
+ DeploymentGetConfigDollarOrDollarEq$inboundSchema.parse(JSON.parse(x)),
6068
+ `Failed to parse 'DeploymentGetConfigDollarOrDollarEq' from JSON`,
6069
+ );
6070
+ }
6071
+
6072
+ /** @internal */
6073
+ export const DollarOrDollarEq$inboundSchema: z.ZodType<
6074
+ DollarOrDollarEq,
6075
+ z.ZodTypeDef,
6076
+ unknown
6077
+ > = z.object({
6078
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
6079
+ }).transform((v) => {
6080
+ return remap$(v, {
6081
+ "$eq": "dollarEq",
6082
+ });
6083
+ });
6084
+
6085
+ /** @internal */
6086
+ export type DollarOrDollarEq$Outbound = {
6087
+ $eq: string | number | boolean;
6088
+ };
6089
+
6090
+ /** @internal */
6091
+ export const DollarOrDollarEq$outboundSchema: z.ZodType<
6092
+ DollarOrDollarEq$Outbound,
6093
+ z.ZodTypeDef,
6094
+ DollarOrDollarEq
6095
+ > = z.object({
6096
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
6097
+ }).transform((v) => {
6098
+ return remap$(v, {
6099
+ dollarEq: "$eq",
6100
+ });
6101
+ });
6102
+
6103
+ /**
6104
+ * @internal
6105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6106
+ */
6107
+ export namespace DollarOrDollarEq$ {
6108
+ /** @deprecated use `DollarOrDollarEq$inboundSchema` instead. */
6109
+ export const inboundSchema = DollarOrDollarEq$inboundSchema;
6110
+ /** @deprecated use `DollarOrDollarEq$outboundSchema` instead. */
6111
+ export const outboundSchema = DollarOrDollarEq$outboundSchema;
6112
+ /** @deprecated use `DollarOrDollarEq$Outbound` instead. */
6113
+ export type Outbound = DollarOrDollarEq$Outbound;
6114
+ }
6115
+
6116
+ export function dollarOrDollarEqToJSON(
6117
+ dollarOrDollarEq: DollarOrDollarEq,
6118
+ ): string {
6119
+ return JSON.stringify(
6120
+ DollarOrDollarEq$outboundSchema.parse(dollarOrDollarEq),
6121
+ );
6122
+ }
6123
+
6124
+ export function dollarOrDollarEqFromJSON(
6125
+ jsonString: string,
6126
+ ): SafeParseResult<DollarOrDollarEq, SDKValidationError> {
6127
+ return safeParse(
6128
+ jsonString,
6129
+ (x) => DollarOrDollarEq$inboundSchema.parse(JSON.parse(x)),
6130
+ `Failed to parse 'DollarOrDollarEq' from JSON`,
6131
+ );
6132
+ }
6133
+
6134
+ /** @internal */
6135
+ export const KnowledgeFilterDollarOr$inboundSchema: z.ZodType<
6136
+ KnowledgeFilterDollarOr,
6137
+ z.ZodTypeDef,
6138
+ unknown
6139
+ > = z.union([
6140
+ z.lazy(() => DollarOrDollarEq$inboundSchema),
6141
+ z.lazy(() => DollarOrDollarNe$inboundSchema),
6142
+ z.lazy(() => DollarOr3$inboundSchema),
6143
+ z.lazy(() => DollarOrDollarGte$inboundSchema),
6144
+ z.lazy(() => DollarOrDollarLt$inboundSchema),
6145
+ z.lazy(() => DollarOrDollarLte$inboundSchema),
6146
+ z.lazy(() => DollarOrDollarIn$inboundSchema),
6147
+ z.lazy(() => DollarOrDollarNin$inboundSchema),
6148
+ z.lazy(() => DollarOrDollarExists$inboundSchema),
6149
+ ]);
6150
+
6151
+ /** @internal */
6152
+ export type KnowledgeFilterDollarOr$Outbound =
6153
+ | DollarOrDollarEq$Outbound
6154
+ | DollarOrDollarNe$Outbound
6155
+ | DollarOr3$Outbound
6156
+ | DollarOrDollarGte$Outbound
6157
+ | DollarOrDollarLt$Outbound
6158
+ | DollarOrDollarLte$Outbound
6159
+ | DollarOrDollarIn$Outbound
6160
+ | DollarOrDollarNin$Outbound
6161
+ | DollarOrDollarExists$Outbound;
6162
+
6163
+ /** @internal */
6164
+ export const KnowledgeFilterDollarOr$outboundSchema: z.ZodType<
6165
+ KnowledgeFilterDollarOr$Outbound,
6166
+ z.ZodTypeDef,
6167
+ KnowledgeFilterDollarOr
6168
+ > = z.union([
6169
+ z.lazy(() => DollarOrDollarEq$outboundSchema),
6170
+ z.lazy(() => DollarOrDollarNe$outboundSchema),
6171
+ z.lazy(() => DollarOr3$outboundSchema),
6172
+ z.lazy(() => DollarOrDollarGte$outboundSchema),
6173
+ z.lazy(() => DollarOrDollarLt$outboundSchema),
6174
+ z.lazy(() => DollarOrDollarLte$outboundSchema),
6175
+ z.lazy(() => DollarOrDollarIn$outboundSchema),
6176
+ z.lazy(() => DollarOrDollarNin$outboundSchema),
6177
+ z.lazy(() => DollarOrDollarExists$outboundSchema),
6178
+ ]);
6179
+
6180
+ /**
6181
+ * @internal
6182
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6183
+ */
6184
+ export namespace KnowledgeFilterDollarOr$ {
6185
+ /** @deprecated use `KnowledgeFilterDollarOr$inboundSchema` instead. */
6186
+ export const inboundSchema = KnowledgeFilterDollarOr$inboundSchema;
6187
+ /** @deprecated use `KnowledgeFilterDollarOr$outboundSchema` instead. */
6188
+ export const outboundSchema = KnowledgeFilterDollarOr$outboundSchema;
6189
+ /** @deprecated use `KnowledgeFilterDollarOr$Outbound` instead. */
6190
+ export type Outbound = KnowledgeFilterDollarOr$Outbound;
6191
+ }
6192
+
6193
+ export function knowledgeFilterDollarOrToJSON(
6194
+ knowledgeFilterDollarOr: KnowledgeFilterDollarOr,
6195
+ ): string {
6196
+ return JSON.stringify(
6197
+ KnowledgeFilterDollarOr$outboundSchema.parse(knowledgeFilterDollarOr),
6198
+ );
6199
+ }
6200
+
6201
+ export function knowledgeFilterDollarOrFromJSON(
6202
+ jsonString: string,
6203
+ ): SafeParseResult<KnowledgeFilterDollarOr, SDKValidationError> {
6204
+ return safeParse(
6205
+ jsonString,
6206
+ (x) => KnowledgeFilterDollarOr$inboundSchema.parse(JSON.parse(x)),
6207
+ `Failed to parse 'KnowledgeFilterDollarOr' from JSON`,
6208
+ );
6209
+ }
6210
+
6211
+ /** @internal */
6212
+ export const DollarOr$inboundSchema: z.ZodType<
6213
+ DollarOr,
6214
+ z.ZodTypeDef,
6215
+ unknown
6216
+ > = z.object({
6217
+ $or: z.array(
6218
+ z.record(z.union([
6219
+ z.lazy(() => DollarOrDollarEq$inboundSchema),
6220
+ z.lazy(() =>
6221
+ DollarOrDollarNe$inboundSchema
6222
+ ),
6223
+ z.lazy(() => DollarOr3$inboundSchema),
6224
+ z.lazy(() => DollarOrDollarGte$inboundSchema),
6225
+ z.lazy(() => DollarOrDollarLt$inboundSchema),
6226
+ z.lazy(() => DollarOrDollarLte$inboundSchema),
6227
+ z.lazy(() => DollarOrDollarIn$inboundSchema),
6228
+ z.lazy(() => DollarOrDollarNin$inboundSchema),
6229
+ z.lazy(() => DollarOrDollarExists$inboundSchema),
6230
+ ])),
6231
+ ),
6232
+ }).transform((v) => {
6233
+ return remap$(v, {
6234
+ "$or": "dollarOr",
6235
+ });
6236
+ });
6237
+
6238
+ /** @internal */
6239
+ export type DollarOr$Outbound = {
6240
+ $or: Array<
6241
+ {
6242
+ [k: string]:
6243
+ | DollarOrDollarEq$Outbound
6244
+ | DollarOrDollarNe$Outbound
6245
+ | DollarOr3$Outbound
6246
+ | DollarOrDollarGte$Outbound
6247
+ | DollarOrDollarLt$Outbound
6248
+ | DollarOrDollarLte$Outbound
6249
+ | DollarOrDollarIn$Outbound
6250
+ | DollarOrDollarNin$Outbound
6251
+ | DollarOrDollarExists$Outbound;
6252
+ }
6253
+ >;
6254
+ };
6255
+
6256
+ /** @internal */
6257
+ export const DollarOr$outboundSchema: z.ZodType<
6258
+ DollarOr$Outbound,
6259
+ z.ZodTypeDef,
6260
+ DollarOr
6261
+ > = z.object({
6262
+ dollarOr: z.array(
6263
+ z.record(z.union([
6264
+ z.lazy(() => DollarOrDollarEq$outboundSchema),
6265
+ z.lazy(() =>
6266
+ DollarOrDollarNe$outboundSchema
6267
+ ),
6268
+ z.lazy(() => DollarOr3$outboundSchema),
6269
+ z.lazy(() => DollarOrDollarGte$outboundSchema),
6270
+ z.lazy(() => DollarOrDollarLt$outboundSchema),
6271
+ z.lazy(() => DollarOrDollarLte$outboundSchema),
6272
+ z.lazy(() => DollarOrDollarIn$outboundSchema),
6273
+ z.lazy(() => DollarOrDollarNin$outboundSchema),
6274
+ z.lazy(() => DollarOrDollarExists$outboundSchema),
6275
+ ])),
6276
+ ),
6277
+ }).transform((v) => {
6278
+ return remap$(v, {
6279
+ dollarOr: "$or",
6280
+ });
6281
+ });
6282
+
6283
+ /**
6284
+ * @internal
6285
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6286
+ */
6287
+ export namespace DollarOr$ {
6288
+ /** @deprecated use `DollarOr$inboundSchema` instead. */
6289
+ export const inboundSchema = DollarOr$inboundSchema;
6290
+ /** @deprecated use `DollarOr$outboundSchema` instead. */
6291
+ export const outboundSchema = DollarOr$outboundSchema;
6292
+ /** @deprecated use `DollarOr$Outbound` instead. */
6293
+ export type Outbound = DollarOr$Outbound;
6294
+ }
6295
+
6296
+ export function dollarOrToJSON(dollarOr: DollarOr): string {
6297
+ return JSON.stringify(DollarOr$outboundSchema.parse(dollarOr));
6298
+ }
6299
+
6300
+ export function dollarOrFromJSON(
6301
+ jsonString: string,
6302
+ ): SafeParseResult<DollarOr, SDKValidationError> {
6303
+ return safeParse(
6304
+ jsonString,
6305
+ (x) => DollarOr$inboundSchema.parse(JSON.parse(x)),
6306
+ `Failed to parse 'DollarOr' from JSON`,
6307
+ );
6308
+ }
6309
+
6310
+ /** @internal */
6311
+ export const DollarAndDollarExists$inboundSchema: z.ZodType<
6312
+ DollarAndDollarExists,
6313
+ z.ZodTypeDef,
6314
+ unknown
6315
+ > = z.object({
6316
+ $exists: z.boolean(),
6317
+ }).transform((v) => {
6318
+ return remap$(v, {
6319
+ "$exists": "dollarExists",
6320
+ });
6321
+ });
6322
+
6323
+ /** @internal */
6324
+ export type DollarAndDollarExists$Outbound = {
6325
+ $exists: boolean;
6326
+ };
6327
+
6328
+ /** @internal */
6329
+ export const DollarAndDollarExists$outboundSchema: z.ZodType<
6330
+ DollarAndDollarExists$Outbound,
6331
+ z.ZodTypeDef,
6332
+ DollarAndDollarExists
6333
+ > = z.object({
6334
+ dollarExists: z.boolean(),
6335
+ }).transform((v) => {
6336
+ return remap$(v, {
6337
+ dollarExists: "$exists",
6338
+ });
6339
+ });
6340
+
6341
+ /**
6342
+ * @internal
6343
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6344
+ */
6345
+ export namespace DollarAndDollarExists$ {
6346
+ /** @deprecated use `DollarAndDollarExists$inboundSchema` instead. */
6347
+ export const inboundSchema = DollarAndDollarExists$inboundSchema;
6348
+ /** @deprecated use `DollarAndDollarExists$outboundSchema` instead. */
6349
+ export const outboundSchema = DollarAndDollarExists$outboundSchema;
6350
+ /** @deprecated use `DollarAndDollarExists$Outbound` instead. */
6351
+ export type Outbound = DollarAndDollarExists$Outbound;
6352
+ }
6353
+
6354
+ export function dollarAndDollarExistsToJSON(
6355
+ dollarAndDollarExists: DollarAndDollarExists,
6356
+ ): string {
6357
+ return JSON.stringify(
6358
+ DollarAndDollarExists$outboundSchema.parse(dollarAndDollarExists),
6359
+ );
6360
+ }
6361
+
6362
+ export function dollarAndDollarExistsFromJSON(
6363
+ jsonString: string,
6364
+ ): SafeParseResult<DollarAndDollarExists, SDKValidationError> {
6365
+ return safeParse(
6366
+ jsonString,
6367
+ (x) => DollarAndDollarExists$inboundSchema.parse(JSON.parse(x)),
6368
+ `Failed to parse 'DollarAndDollarExists' from JSON`,
6369
+ );
6370
+ }
6371
+
6372
+ /** @internal */
6373
+ export const DeploymentGetConfigDollarAndDollarNin$inboundSchema: z.ZodType<
6374
+ DeploymentGetConfigDollarAndDollarNin,
6375
+ z.ZodTypeDef,
6376
+ unknown
6377
+ > = z.union([z.string(), z.number(), z.boolean()]);
6378
+
6379
+ /** @internal */
6380
+ export type DeploymentGetConfigDollarAndDollarNin$Outbound =
6381
+ | string
6382
+ | number
6383
+ | boolean;
6384
+
6385
+ /** @internal */
6386
+ export const DeploymentGetConfigDollarAndDollarNin$outboundSchema: z.ZodType<
6387
+ DeploymentGetConfigDollarAndDollarNin$Outbound,
6388
+ z.ZodTypeDef,
6389
+ DeploymentGetConfigDollarAndDollarNin
6390
+ > = z.union([z.string(), z.number(), z.boolean()]);
6391
+
6392
+ /**
6393
+ * @internal
6394
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6395
+ */
6396
+ export namespace DeploymentGetConfigDollarAndDollarNin$ {
6397
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNin$inboundSchema` instead. */
6398
+ export const inboundSchema =
6399
+ DeploymentGetConfigDollarAndDollarNin$inboundSchema;
6400
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNin$outboundSchema` instead. */
6401
+ export const outboundSchema =
6402
+ DeploymentGetConfigDollarAndDollarNin$outboundSchema;
6403
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNin$Outbound` instead. */
6404
+ export type Outbound = DeploymentGetConfigDollarAndDollarNin$Outbound;
6405
+ }
6406
+
6407
+ export function deploymentGetConfigDollarAndDollarNinToJSON(
6408
+ deploymentGetConfigDollarAndDollarNin: DeploymentGetConfigDollarAndDollarNin,
6409
+ ): string {
6410
+ return JSON.stringify(
6411
+ DeploymentGetConfigDollarAndDollarNin$outboundSchema.parse(
6412
+ deploymentGetConfigDollarAndDollarNin,
6413
+ ),
6414
+ );
6415
+ }
6416
+
6417
+ export function deploymentGetConfigDollarAndDollarNinFromJSON(
6418
+ jsonString: string,
6419
+ ): SafeParseResult<DeploymentGetConfigDollarAndDollarNin, SDKValidationError> {
6420
+ return safeParse(
6421
+ jsonString,
6422
+ (x) =>
6423
+ DeploymentGetConfigDollarAndDollarNin$inboundSchema.parse(JSON.parse(x)),
6424
+ `Failed to parse 'DeploymentGetConfigDollarAndDollarNin' from JSON`,
6425
+ );
6426
+ }
6427
+
6428
+ /** @internal */
6429
+ export const DollarAndDollarNin$inboundSchema: z.ZodType<
6430
+ DollarAndDollarNin,
6431
+ z.ZodTypeDef,
6432
+ unknown
6433
+ > = z.object({
6434
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6435
+ }).transform((v) => {
6436
+ return remap$(v, {
6437
+ "$nin": "dollarNin",
6438
+ });
6439
+ });
6440
+
6441
+ /** @internal */
6442
+ export type DollarAndDollarNin$Outbound = {
6443
+ $nin: Array<string | number | boolean>;
6444
+ };
6445
+
6446
+ /** @internal */
6447
+ export const DollarAndDollarNin$outboundSchema: z.ZodType<
6448
+ DollarAndDollarNin$Outbound,
6449
+ z.ZodTypeDef,
6450
+ DollarAndDollarNin
6451
+ > = z.object({
6452
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6453
+ }).transform((v) => {
6454
+ return remap$(v, {
6455
+ dollarNin: "$nin",
6456
+ });
6457
+ });
6458
+
6459
+ /**
6460
+ * @internal
6461
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6462
+ */
6463
+ export namespace DollarAndDollarNin$ {
6464
+ /** @deprecated use `DollarAndDollarNin$inboundSchema` instead. */
6465
+ export const inboundSchema = DollarAndDollarNin$inboundSchema;
6466
+ /** @deprecated use `DollarAndDollarNin$outboundSchema` instead. */
6467
+ export const outboundSchema = DollarAndDollarNin$outboundSchema;
6468
+ /** @deprecated use `DollarAndDollarNin$Outbound` instead. */
6469
+ export type Outbound = DollarAndDollarNin$Outbound;
6470
+ }
6471
+
6472
+ export function dollarAndDollarNinToJSON(
6473
+ dollarAndDollarNin: DollarAndDollarNin,
6474
+ ): string {
6475
+ return JSON.stringify(
6476
+ DollarAndDollarNin$outboundSchema.parse(dollarAndDollarNin),
6477
+ );
6478
+ }
6479
+
6480
+ export function dollarAndDollarNinFromJSON(
6481
+ jsonString: string,
6482
+ ): SafeParseResult<DollarAndDollarNin, SDKValidationError> {
6483
+ return safeParse(
6484
+ jsonString,
6485
+ (x) => DollarAndDollarNin$inboundSchema.parse(JSON.parse(x)),
6486
+ `Failed to parse 'DollarAndDollarNin' from JSON`,
6487
+ );
6488
+ }
6489
+
6490
+ /** @internal */
6491
+ export const DeploymentGetConfigDollarAndDollarIn$inboundSchema: z.ZodType<
6492
+ DeploymentGetConfigDollarAndDollarIn,
6493
+ z.ZodTypeDef,
6494
+ unknown
6495
+ > = z.union([z.string(), z.number(), z.boolean()]);
6496
+
6497
+ /** @internal */
6498
+ export type DeploymentGetConfigDollarAndDollarIn$Outbound =
6499
+ | string
6500
+ | number
6501
+ | boolean;
6502
+
6503
+ /** @internal */
6504
+ export const DeploymentGetConfigDollarAndDollarIn$outboundSchema: z.ZodType<
6505
+ DeploymentGetConfigDollarAndDollarIn$Outbound,
6506
+ z.ZodTypeDef,
6507
+ DeploymentGetConfigDollarAndDollarIn
6508
+ > = z.union([z.string(), z.number(), z.boolean()]);
6509
+
6510
+ /**
6511
+ * @internal
6512
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6513
+ */
6514
+ export namespace DeploymentGetConfigDollarAndDollarIn$ {
6515
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarIn$inboundSchema` instead. */
6516
+ export const inboundSchema =
6517
+ DeploymentGetConfigDollarAndDollarIn$inboundSchema;
6518
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarIn$outboundSchema` instead. */
6519
+ export const outboundSchema =
6520
+ DeploymentGetConfigDollarAndDollarIn$outboundSchema;
6521
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarIn$Outbound` instead. */
6522
+ export type Outbound = DeploymentGetConfigDollarAndDollarIn$Outbound;
6523
+ }
6524
+
6525
+ export function deploymentGetConfigDollarAndDollarInToJSON(
6526
+ deploymentGetConfigDollarAndDollarIn: DeploymentGetConfigDollarAndDollarIn,
6527
+ ): string {
6528
+ return JSON.stringify(
6529
+ DeploymentGetConfigDollarAndDollarIn$outboundSchema.parse(
6530
+ deploymentGetConfigDollarAndDollarIn,
6531
+ ),
6532
+ );
6533
+ }
6534
+
6535
+ export function deploymentGetConfigDollarAndDollarInFromJSON(
6536
+ jsonString: string,
6537
+ ): SafeParseResult<DeploymentGetConfigDollarAndDollarIn, SDKValidationError> {
6538
+ return safeParse(
6539
+ jsonString,
6540
+ (x) =>
6541
+ DeploymentGetConfigDollarAndDollarIn$inboundSchema.parse(JSON.parse(x)),
6542
+ `Failed to parse 'DeploymentGetConfigDollarAndDollarIn' from JSON`,
6543
+ );
6544
+ }
6545
+
6546
+ /** @internal */
6547
+ export const DollarAndDollarIn$inboundSchema: z.ZodType<
6548
+ DollarAndDollarIn,
6549
+ z.ZodTypeDef,
6550
+ unknown
6551
+ > = z.object({
6552
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
6553
+ }).transform((v) => {
6554
+ return remap$(v, {
6555
+ "$in": "dollarIn",
6556
+ });
6557
+ });
6558
+
6559
+ /** @internal */
6560
+ export type DollarAndDollarIn$Outbound = {
6561
+ $in: Array<string | number | boolean>;
6562
+ };
6563
+
6564
+ /** @internal */
6565
+ export const DollarAndDollarIn$outboundSchema: z.ZodType<
6566
+ DollarAndDollarIn$Outbound,
6567
+ z.ZodTypeDef,
6568
+ DollarAndDollarIn
6569
+ > = z.object({
6570
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
6571
+ }).transform((v) => {
6572
+ return remap$(v, {
6573
+ dollarIn: "$in",
6574
+ });
6575
+ });
6576
+
6577
+ /**
6578
+ * @internal
6579
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6580
+ */
6581
+ export namespace DollarAndDollarIn$ {
6582
+ /** @deprecated use `DollarAndDollarIn$inboundSchema` instead. */
6583
+ export const inboundSchema = DollarAndDollarIn$inboundSchema;
6584
+ /** @deprecated use `DollarAndDollarIn$outboundSchema` instead. */
6585
+ export const outboundSchema = DollarAndDollarIn$outboundSchema;
6586
+ /** @deprecated use `DollarAndDollarIn$Outbound` instead. */
6587
+ export type Outbound = DollarAndDollarIn$Outbound;
6588
+ }
6589
+
6590
+ export function dollarAndDollarInToJSON(
6591
+ dollarAndDollarIn: DollarAndDollarIn,
6592
+ ): string {
6593
+ return JSON.stringify(
6594
+ DollarAndDollarIn$outboundSchema.parse(dollarAndDollarIn),
6595
+ );
6596
+ }
6597
+
6598
+ export function dollarAndDollarInFromJSON(
6599
+ jsonString: string,
6600
+ ): SafeParseResult<DollarAndDollarIn, SDKValidationError> {
6601
+ return safeParse(
6602
+ jsonString,
6603
+ (x) => DollarAndDollarIn$inboundSchema.parse(JSON.parse(x)),
6604
+ `Failed to parse 'DollarAndDollarIn' from JSON`,
6605
+ );
6606
+ }
6607
+
6608
+ /** @internal */
6609
+ export const DollarAndDollarLte$inboundSchema: z.ZodType<
6610
+ DollarAndDollarLte,
6611
+ z.ZodTypeDef,
6612
+ unknown
6613
+ > = z.object({
6614
+ $lte: z.number(),
6615
+ }).transform((v) => {
6616
+ return remap$(v, {
6617
+ "$lte": "dollarLte",
6618
+ });
6619
+ });
6620
+
6621
+ /** @internal */
6622
+ export type DollarAndDollarLte$Outbound = {
6623
+ $lte: number;
6624
+ };
6625
+
6626
+ /** @internal */
6627
+ export const DollarAndDollarLte$outboundSchema: z.ZodType<
6628
+ DollarAndDollarLte$Outbound,
6629
+ z.ZodTypeDef,
6630
+ DollarAndDollarLte
6631
+ > = z.object({
6632
+ dollarLte: z.number(),
6633
+ }).transform((v) => {
6634
+ return remap$(v, {
6635
+ dollarLte: "$lte",
6636
+ });
6637
+ });
6638
+
6639
+ /**
6640
+ * @internal
6641
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6642
+ */
6643
+ export namespace DollarAndDollarLte$ {
6644
+ /** @deprecated use `DollarAndDollarLte$inboundSchema` instead. */
6645
+ export const inboundSchema = DollarAndDollarLte$inboundSchema;
6646
+ /** @deprecated use `DollarAndDollarLte$outboundSchema` instead. */
6647
+ export const outboundSchema = DollarAndDollarLte$outboundSchema;
6648
+ /** @deprecated use `DollarAndDollarLte$Outbound` instead. */
6649
+ export type Outbound = DollarAndDollarLte$Outbound;
6650
+ }
6651
+
6652
+ export function dollarAndDollarLteToJSON(
6653
+ dollarAndDollarLte: DollarAndDollarLte,
6654
+ ): string {
6655
+ return JSON.stringify(
6656
+ DollarAndDollarLte$outboundSchema.parse(dollarAndDollarLte),
6657
+ );
6658
+ }
6659
+
6660
+ export function dollarAndDollarLteFromJSON(
6661
+ jsonString: string,
6662
+ ): SafeParseResult<DollarAndDollarLte, SDKValidationError> {
6663
+ return safeParse(
6664
+ jsonString,
6665
+ (x) => DollarAndDollarLte$inboundSchema.parse(JSON.parse(x)),
6666
+ `Failed to parse 'DollarAndDollarLte' from JSON`,
6667
+ );
6668
+ }
6669
+
6670
+ /** @internal */
6671
+ export const DollarAndDollarLt$inboundSchema: z.ZodType<
6672
+ DollarAndDollarLt,
6673
+ z.ZodTypeDef,
6674
+ unknown
6675
+ > = z.object({
6676
+ $lt: z.number(),
6677
+ }).transform((v) => {
6678
+ return remap$(v, {
6679
+ "$lt": "dollarLt",
6680
+ });
6681
+ });
6682
+
6683
+ /** @internal */
6684
+ export type DollarAndDollarLt$Outbound = {
6685
+ $lt: number;
6686
+ };
6687
+
6688
+ /** @internal */
6689
+ export const DollarAndDollarLt$outboundSchema: z.ZodType<
6690
+ DollarAndDollarLt$Outbound,
6691
+ z.ZodTypeDef,
6692
+ DollarAndDollarLt
6693
+ > = z.object({
6694
+ dollarLt: z.number(),
6695
+ }).transform((v) => {
6696
+ return remap$(v, {
6697
+ dollarLt: "$lt",
6698
+ });
6699
+ });
6700
+
6701
+ /**
6702
+ * @internal
6703
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6704
+ */
6705
+ export namespace DollarAndDollarLt$ {
6706
+ /** @deprecated use `DollarAndDollarLt$inboundSchema` instead. */
6707
+ export const inboundSchema = DollarAndDollarLt$inboundSchema;
6708
+ /** @deprecated use `DollarAndDollarLt$outboundSchema` instead. */
6709
+ export const outboundSchema = DollarAndDollarLt$outboundSchema;
6710
+ /** @deprecated use `DollarAndDollarLt$Outbound` instead. */
6711
+ export type Outbound = DollarAndDollarLt$Outbound;
6712
+ }
6713
+
6714
+ export function dollarAndDollarLtToJSON(
6715
+ dollarAndDollarLt: DollarAndDollarLt,
6716
+ ): string {
6717
+ return JSON.stringify(
6718
+ DollarAndDollarLt$outboundSchema.parse(dollarAndDollarLt),
6719
+ );
6720
+ }
6721
+
6722
+ export function dollarAndDollarLtFromJSON(
6723
+ jsonString: string,
6724
+ ): SafeParseResult<DollarAndDollarLt, SDKValidationError> {
6725
+ return safeParse(
6726
+ jsonString,
6727
+ (x) => DollarAndDollarLt$inboundSchema.parse(JSON.parse(x)),
6728
+ `Failed to parse 'DollarAndDollarLt' from JSON`,
6729
+ );
6730
+ }
6731
+
6732
+ /** @internal */
6733
+ export const DollarAndDollarGte$inboundSchema: z.ZodType<
6734
+ DollarAndDollarGte,
6735
+ z.ZodTypeDef,
6736
+ unknown
6737
+ > = z.object({
6738
+ $gte: z.number(),
6739
+ }).transform((v) => {
6740
+ return remap$(v, {
6741
+ "$gte": "dollarGte",
6742
+ });
6743
+ });
6744
+
6745
+ /** @internal */
6746
+ export type DollarAndDollarGte$Outbound = {
6747
+ $gte: number;
6748
+ };
6749
+
6750
+ /** @internal */
6751
+ export const DollarAndDollarGte$outboundSchema: z.ZodType<
6752
+ DollarAndDollarGte$Outbound,
6753
+ z.ZodTypeDef,
6754
+ DollarAndDollarGte
6755
+ > = z.object({
6756
+ dollarGte: z.number(),
6757
+ }).transform((v) => {
6758
+ return remap$(v, {
6759
+ dollarGte: "$gte",
6760
+ });
6761
+ });
6762
+
6763
+ /**
6764
+ * @internal
6765
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6766
+ */
6767
+ export namespace DollarAndDollarGte$ {
6768
+ /** @deprecated use `DollarAndDollarGte$inboundSchema` instead. */
6769
+ export const inboundSchema = DollarAndDollarGte$inboundSchema;
6770
+ /** @deprecated use `DollarAndDollarGte$outboundSchema` instead. */
6771
+ export const outboundSchema = DollarAndDollarGte$outboundSchema;
6772
+ /** @deprecated use `DollarAndDollarGte$Outbound` instead. */
6773
+ export type Outbound = DollarAndDollarGte$Outbound;
6774
+ }
6775
+
6776
+ export function dollarAndDollarGteToJSON(
6777
+ dollarAndDollarGte: DollarAndDollarGte,
6778
+ ): string {
6779
+ return JSON.stringify(
6780
+ DollarAndDollarGte$outboundSchema.parse(dollarAndDollarGte),
6781
+ );
6782
+ }
6783
+
6784
+ export function dollarAndDollarGteFromJSON(
6785
+ jsonString: string,
6786
+ ): SafeParseResult<DollarAndDollarGte, SDKValidationError> {
6787
+ return safeParse(
6788
+ jsonString,
6789
+ (x) => DollarAndDollarGte$inboundSchema.parse(JSON.parse(x)),
6790
+ `Failed to parse 'DollarAndDollarGte' from JSON`,
6791
+ );
6792
+ }
6793
+
6794
+ /** @internal */
6795
+ export const DollarAnd3$inboundSchema: z.ZodType<
6796
+ DollarAnd3,
6797
+ z.ZodTypeDef,
6798
+ unknown
6799
+ > = z.object({
6800
+ $gt: z.number(),
6801
+ }).transform((v) => {
6802
+ return remap$(v, {
6803
+ "$gt": "dollarGt",
6804
+ });
6805
+ });
6806
+
6807
+ /** @internal */
6808
+ export type DollarAnd3$Outbound = {
6809
+ $gt: number;
6810
+ };
6811
+
6812
+ /** @internal */
6813
+ export const DollarAnd3$outboundSchema: z.ZodType<
6814
+ DollarAnd3$Outbound,
6815
+ z.ZodTypeDef,
6816
+ DollarAnd3
6817
+ > = z.object({
6818
+ dollarGt: z.number(),
6819
+ }).transform((v) => {
6820
+ return remap$(v, {
6821
+ dollarGt: "$gt",
6822
+ });
6823
+ });
6824
+
6825
+ /**
6826
+ * @internal
6827
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6828
+ */
6829
+ export namespace DollarAnd3$ {
6830
+ /** @deprecated use `DollarAnd3$inboundSchema` instead. */
6831
+ export const inboundSchema = DollarAnd3$inboundSchema;
6832
+ /** @deprecated use `DollarAnd3$outboundSchema` instead. */
6833
+ export const outboundSchema = DollarAnd3$outboundSchema;
6834
+ /** @deprecated use `DollarAnd3$Outbound` instead. */
6835
+ export type Outbound = DollarAnd3$Outbound;
6836
+ }
6837
+
6838
+ export function dollarAnd3ToJSON(dollarAnd3: DollarAnd3): string {
6839
+ return JSON.stringify(DollarAnd3$outboundSchema.parse(dollarAnd3));
6840
+ }
6841
+
6842
+ export function dollarAnd3FromJSON(
6843
+ jsonString: string,
6844
+ ): SafeParseResult<DollarAnd3, SDKValidationError> {
6845
+ return safeParse(
6846
+ jsonString,
6847
+ (x) => DollarAnd3$inboundSchema.parse(JSON.parse(x)),
6848
+ `Failed to parse 'DollarAnd3' from JSON`,
6849
+ );
6850
+ }
6851
+
6852
+ /** @internal */
6853
+ export const DeploymentGetConfigDollarAndDollarNe$inboundSchema: z.ZodType<
6854
+ DeploymentGetConfigDollarAndDollarNe,
6855
+ z.ZodTypeDef,
6856
+ unknown
6857
+ > = z.union([z.string(), z.number(), z.boolean()]);
6858
+
6859
+ /** @internal */
6860
+ export type DeploymentGetConfigDollarAndDollarNe$Outbound =
6861
+ | string
6862
+ | number
6863
+ | boolean;
6864
+
6865
+ /** @internal */
6866
+ export const DeploymentGetConfigDollarAndDollarNe$outboundSchema: z.ZodType<
6867
+ DeploymentGetConfigDollarAndDollarNe$Outbound,
6868
+ z.ZodTypeDef,
6869
+ DeploymentGetConfigDollarAndDollarNe
6870
+ > = z.union([z.string(), z.number(), z.boolean()]);
6871
+
6872
+ /**
6873
+ * @internal
6874
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6875
+ */
6876
+ export namespace DeploymentGetConfigDollarAndDollarNe$ {
6877
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNe$inboundSchema` instead. */
6878
+ export const inboundSchema =
6879
+ DeploymentGetConfigDollarAndDollarNe$inboundSchema;
6880
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNe$outboundSchema` instead. */
6881
+ export const outboundSchema =
6882
+ DeploymentGetConfigDollarAndDollarNe$outboundSchema;
6883
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNe$Outbound` instead. */
6884
+ export type Outbound = DeploymentGetConfigDollarAndDollarNe$Outbound;
6885
+ }
6886
+
6887
+ export function deploymentGetConfigDollarAndDollarNeToJSON(
6888
+ deploymentGetConfigDollarAndDollarNe: DeploymentGetConfigDollarAndDollarNe,
6889
+ ): string {
6890
+ return JSON.stringify(
6891
+ DeploymentGetConfigDollarAndDollarNe$outboundSchema.parse(
6892
+ deploymentGetConfigDollarAndDollarNe,
6893
+ ),
6894
+ );
6895
+ }
6896
+
6897
+ export function deploymentGetConfigDollarAndDollarNeFromJSON(
6898
+ jsonString: string,
6899
+ ): SafeParseResult<DeploymentGetConfigDollarAndDollarNe, SDKValidationError> {
6900
+ return safeParse(
6901
+ jsonString,
6902
+ (x) =>
6903
+ DeploymentGetConfigDollarAndDollarNe$inboundSchema.parse(JSON.parse(x)),
6904
+ `Failed to parse 'DeploymentGetConfigDollarAndDollarNe' from JSON`,
6905
+ );
6906
+ }
6907
+
6908
+ /** @internal */
6909
+ export const DollarAndDollarNe$inboundSchema: z.ZodType<
6910
+ DollarAndDollarNe,
6911
+ z.ZodTypeDef,
6912
+ unknown
6913
+ > = z.object({
6914
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
6915
+ }).transform((v) => {
6916
+ return remap$(v, {
6917
+ "$ne": "dollarNe",
6918
+ });
6919
+ });
6920
+
6921
+ /** @internal */
6922
+ export type DollarAndDollarNe$Outbound = {
6923
+ $ne: string | number | boolean;
6924
+ };
6925
+
6926
+ /** @internal */
6927
+ export const DollarAndDollarNe$outboundSchema: z.ZodType<
6928
+ DollarAndDollarNe$Outbound,
6929
+ z.ZodTypeDef,
6930
+ DollarAndDollarNe
6931
+ > = z.object({
6932
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
6933
+ }).transform((v) => {
6934
+ return remap$(v, {
6935
+ dollarNe: "$ne",
6936
+ });
6937
+ });
6938
+
6939
+ /**
6940
+ * @internal
6941
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6942
+ */
6943
+ export namespace DollarAndDollarNe$ {
6944
+ /** @deprecated use `DollarAndDollarNe$inboundSchema` instead. */
6945
+ export const inboundSchema = DollarAndDollarNe$inboundSchema;
6946
+ /** @deprecated use `DollarAndDollarNe$outboundSchema` instead. */
6947
+ export const outboundSchema = DollarAndDollarNe$outboundSchema;
6948
+ /** @deprecated use `DollarAndDollarNe$Outbound` instead. */
6949
+ export type Outbound = DollarAndDollarNe$Outbound;
6950
+ }
6951
+
6952
+ export function dollarAndDollarNeToJSON(
6953
+ dollarAndDollarNe: DollarAndDollarNe,
6954
+ ): string {
6955
+ return JSON.stringify(
6956
+ DollarAndDollarNe$outboundSchema.parse(dollarAndDollarNe),
6957
+ );
6958
+ }
6959
+
6960
+ export function dollarAndDollarNeFromJSON(
6961
+ jsonString: string,
6962
+ ): SafeParseResult<DollarAndDollarNe, SDKValidationError> {
6963
+ return safeParse(
6964
+ jsonString,
6965
+ (x) => DollarAndDollarNe$inboundSchema.parse(JSON.parse(x)),
6966
+ `Failed to parse 'DollarAndDollarNe' from JSON`,
6967
+ );
6968
+ }
6969
+
6970
+ /** @internal */
6971
+ export const DeploymentGetConfigDollarAndDollarEq$inboundSchema: z.ZodType<
6972
+ DeploymentGetConfigDollarAndDollarEq,
6973
+ z.ZodTypeDef,
6974
+ unknown
6975
+ > = z.union([z.string(), z.number(), z.boolean()]);
6976
+
6977
+ /** @internal */
6978
+ export type DeploymentGetConfigDollarAndDollarEq$Outbound =
6979
+ | string
6980
+ | number
6981
+ | boolean;
6982
+
6983
+ /** @internal */
6984
+ export const DeploymentGetConfigDollarAndDollarEq$outboundSchema: z.ZodType<
6985
+ DeploymentGetConfigDollarAndDollarEq$Outbound,
6986
+ z.ZodTypeDef,
6987
+ DeploymentGetConfigDollarAndDollarEq
6988
+ > = z.union([z.string(), z.number(), z.boolean()]);
6989
+
6990
+ /**
6991
+ * @internal
6992
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6993
+ */
6994
+ export namespace DeploymentGetConfigDollarAndDollarEq$ {
6995
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarEq$inboundSchema` instead. */
6996
+ export const inboundSchema =
6997
+ DeploymentGetConfigDollarAndDollarEq$inboundSchema;
6998
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarEq$outboundSchema` instead. */
6999
+ export const outboundSchema =
7000
+ DeploymentGetConfigDollarAndDollarEq$outboundSchema;
7001
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarEq$Outbound` instead. */
7002
+ export type Outbound = DeploymentGetConfigDollarAndDollarEq$Outbound;
7003
+ }
7004
+
7005
+ export function deploymentGetConfigDollarAndDollarEqToJSON(
7006
+ deploymentGetConfigDollarAndDollarEq: DeploymentGetConfigDollarAndDollarEq,
7007
+ ): string {
7008
+ return JSON.stringify(
7009
+ DeploymentGetConfigDollarAndDollarEq$outboundSchema.parse(
7010
+ deploymentGetConfigDollarAndDollarEq,
7011
+ ),
7012
+ );
7013
+ }
7014
+
7015
+ export function deploymentGetConfigDollarAndDollarEqFromJSON(
7016
+ jsonString: string,
7017
+ ): SafeParseResult<DeploymentGetConfigDollarAndDollarEq, SDKValidationError> {
7018
+ return safeParse(
7019
+ jsonString,
7020
+ (x) =>
7021
+ DeploymentGetConfigDollarAndDollarEq$inboundSchema.parse(JSON.parse(x)),
7022
+ `Failed to parse 'DeploymentGetConfigDollarAndDollarEq' from JSON`,
7023
+ );
7024
+ }
7025
+
7026
+ /** @internal */
7027
+ export const DollarAndDollarEq$inboundSchema: z.ZodType<
7028
+ DollarAndDollarEq,
7029
+ z.ZodTypeDef,
7030
+ unknown
7031
+ > = z.object({
7032
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
7033
+ }).transform((v) => {
7034
+ return remap$(v, {
7035
+ "$eq": "dollarEq",
7036
+ });
7037
+ });
7038
+
7039
+ /** @internal */
7040
+ export type DollarAndDollarEq$Outbound = {
7041
+ $eq: string | number | boolean;
7042
+ };
7043
+
7044
+ /** @internal */
7045
+ export const DollarAndDollarEq$outboundSchema: z.ZodType<
7046
+ DollarAndDollarEq$Outbound,
7047
+ z.ZodTypeDef,
7048
+ DollarAndDollarEq
7049
+ > = z.object({
7050
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
7051
+ }).transform((v) => {
7052
+ return remap$(v, {
7053
+ dollarEq: "$eq",
7054
+ });
7055
+ });
7056
+
7057
+ /**
7058
+ * @internal
7059
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7060
+ */
7061
+ export namespace DollarAndDollarEq$ {
7062
+ /** @deprecated use `DollarAndDollarEq$inboundSchema` instead. */
7063
+ export const inboundSchema = DollarAndDollarEq$inboundSchema;
7064
+ /** @deprecated use `DollarAndDollarEq$outboundSchema` instead. */
7065
+ export const outboundSchema = DollarAndDollarEq$outboundSchema;
7066
+ /** @deprecated use `DollarAndDollarEq$Outbound` instead. */
7067
+ export type Outbound = DollarAndDollarEq$Outbound;
7068
+ }
7069
+
7070
+ export function dollarAndDollarEqToJSON(
7071
+ dollarAndDollarEq: DollarAndDollarEq,
7072
+ ): string {
7073
+ return JSON.stringify(
7074
+ DollarAndDollarEq$outboundSchema.parse(dollarAndDollarEq),
7075
+ );
7076
+ }
7077
+
7078
+ export function dollarAndDollarEqFromJSON(
7079
+ jsonString: string,
7080
+ ): SafeParseResult<DollarAndDollarEq, SDKValidationError> {
7081
+ return safeParse(
7082
+ jsonString,
7083
+ (x) => DollarAndDollarEq$inboundSchema.parse(JSON.parse(x)),
7084
+ `Failed to parse 'DollarAndDollarEq' from JSON`,
7085
+ );
7086
+ }
7087
+
7088
+ /** @internal */
7089
+ export const KnowledgeFilterDollarAnd$inboundSchema: z.ZodType<
7090
+ KnowledgeFilterDollarAnd,
7091
+ z.ZodTypeDef,
7092
+ unknown
7093
+ > = z.union([
7094
+ z.lazy(() => DollarAndDollarEq$inboundSchema),
7095
+ z.lazy(() => DollarAndDollarNe$inboundSchema),
7096
+ z.lazy(() => DollarAnd3$inboundSchema),
7097
+ z.lazy(() => DollarAndDollarGte$inboundSchema),
7098
+ z.lazy(() => DollarAndDollarLt$inboundSchema),
7099
+ z.lazy(() => DollarAndDollarLte$inboundSchema),
7100
+ z.lazy(() => DollarAndDollarIn$inboundSchema),
7101
+ z.lazy(() => DollarAndDollarNin$inboundSchema),
7102
+ z.lazy(() => DollarAndDollarExists$inboundSchema),
7103
+ ]);
7104
+
7105
+ /** @internal */
7106
+ export type KnowledgeFilterDollarAnd$Outbound =
7107
+ | DollarAndDollarEq$Outbound
7108
+ | DollarAndDollarNe$Outbound
7109
+ | DollarAnd3$Outbound
7110
+ | DollarAndDollarGte$Outbound
7111
+ | DollarAndDollarLt$Outbound
7112
+ | DollarAndDollarLte$Outbound
7113
+ | DollarAndDollarIn$Outbound
7114
+ | DollarAndDollarNin$Outbound
7115
+ | DollarAndDollarExists$Outbound;
7116
+
7117
+ /** @internal */
7118
+ export const KnowledgeFilterDollarAnd$outboundSchema: z.ZodType<
7119
+ KnowledgeFilterDollarAnd$Outbound,
7120
+ z.ZodTypeDef,
7121
+ KnowledgeFilterDollarAnd
7122
+ > = z.union([
7123
+ z.lazy(() => DollarAndDollarEq$outboundSchema),
7124
+ z.lazy(() => DollarAndDollarNe$outboundSchema),
7125
+ z.lazy(() => DollarAnd3$outboundSchema),
7126
+ z.lazy(() => DollarAndDollarGte$outboundSchema),
7127
+ z.lazy(() => DollarAndDollarLt$outboundSchema),
7128
+ z.lazy(() => DollarAndDollarLte$outboundSchema),
7129
+ z.lazy(() => DollarAndDollarIn$outboundSchema),
7130
+ z.lazy(() => DollarAndDollarNin$outboundSchema),
7131
+ z.lazy(() => DollarAndDollarExists$outboundSchema),
7132
+ ]);
7133
+
7134
+ /**
7135
+ * @internal
7136
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7137
+ */
7138
+ export namespace KnowledgeFilterDollarAnd$ {
7139
+ /** @deprecated use `KnowledgeFilterDollarAnd$inboundSchema` instead. */
7140
+ export const inboundSchema = KnowledgeFilterDollarAnd$inboundSchema;
7141
+ /** @deprecated use `KnowledgeFilterDollarAnd$outboundSchema` instead. */
7142
+ export const outboundSchema = KnowledgeFilterDollarAnd$outboundSchema;
7143
+ /** @deprecated use `KnowledgeFilterDollarAnd$Outbound` instead. */
7144
+ export type Outbound = KnowledgeFilterDollarAnd$Outbound;
7145
+ }
7146
+
7147
+ export function knowledgeFilterDollarAndToJSON(
7148
+ knowledgeFilterDollarAnd: KnowledgeFilterDollarAnd,
7149
+ ): string {
7150
+ return JSON.stringify(
7151
+ KnowledgeFilterDollarAnd$outboundSchema.parse(knowledgeFilterDollarAnd),
7152
+ );
7153
+ }
7154
+
7155
+ export function knowledgeFilterDollarAndFromJSON(
7156
+ jsonString: string,
7157
+ ): SafeParseResult<KnowledgeFilterDollarAnd, SDKValidationError> {
7158
+ return safeParse(
7159
+ jsonString,
7160
+ (x) => KnowledgeFilterDollarAnd$inboundSchema.parse(JSON.parse(x)),
7161
+ `Failed to parse 'KnowledgeFilterDollarAnd' from JSON`,
7162
+ );
7163
+ }
7164
+
7165
+ /** @internal */
7166
+ export const DollarAnd$inboundSchema: z.ZodType<
7167
+ DollarAnd,
7168
+ z.ZodTypeDef,
7169
+ unknown
7170
+ > = z.object({
7171
+ $and: z.array(
7172
+ z.record(z.union([
7173
+ z.lazy(() => DollarAndDollarEq$inboundSchema),
7174
+ z.lazy(() =>
7175
+ DollarAndDollarNe$inboundSchema
7176
+ ),
7177
+ z.lazy(() => DollarAnd3$inboundSchema),
7178
+ z.lazy(() => DollarAndDollarGte$inboundSchema),
7179
+ z.lazy(() => DollarAndDollarLt$inboundSchema),
7180
+ z.lazy(() => DollarAndDollarLte$inboundSchema),
7181
+ z.lazy(() => DollarAndDollarIn$inboundSchema),
7182
+ z.lazy(() => DollarAndDollarNin$inboundSchema),
7183
+ z.lazy(() => DollarAndDollarExists$inboundSchema),
7184
+ ])),
7185
+ ),
7186
+ }).transform((v) => {
7187
+ return remap$(v, {
7188
+ "$and": "dollarAnd",
7189
+ });
7190
+ });
7191
+
7192
+ /** @internal */
7193
+ export type DollarAnd$Outbound = {
7194
+ $and: Array<
7195
+ {
7196
+ [k: string]:
7197
+ | DollarAndDollarEq$Outbound
7198
+ | DollarAndDollarNe$Outbound
7199
+ | DollarAnd3$Outbound
7200
+ | DollarAndDollarGte$Outbound
7201
+ | DollarAndDollarLt$Outbound
7202
+ | DollarAndDollarLte$Outbound
7203
+ | DollarAndDollarIn$Outbound
7204
+ | DollarAndDollarNin$Outbound
7205
+ | DollarAndDollarExists$Outbound;
7206
+ }
7207
+ >;
7208
+ };
7209
+
7210
+ /** @internal */
7211
+ export const DollarAnd$outboundSchema: z.ZodType<
7212
+ DollarAnd$Outbound,
7213
+ z.ZodTypeDef,
7214
+ DollarAnd
7215
+ > = z.object({
7216
+ dollarAnd: z.array(
7217
+ z.record(z.union([
7218
+ z.lazy(() => DollarAndDollarEq$outboundSchema),
7219
+ z.lazy(() =>
7220
+ DollarAndDollarNe$outboundSchema
7221
+ ),
7222
+ z.lazy(() => DollarAnd3$outboundSchema),
7223
+ z.lazy(() => DollarAndDollarGte$outboundSchema),
7224
+ z.lazy(() => DollarAndDollarLt$outboundSchema),
7225
+ z.lazy(() => DollarAndDollarLte$outboundSchema),
7226
+ z.lazy(() => DollarAndDollarIn$outboundSchema),
7227
+ z.lazy(() => DollarAndDollarNin$outboundSchema),
7228
+ z.lazy(() => DollarAndDollarExists$outboundSchema),
7229
+ ])),
7230
+ ),
7231
+ }).transform((v) => {
7232
+ return remap$(v, {
7233
+ dollarAnd: "$and",
7234
+ });
7235
+ });
7236
+
7237
+ /**
7238
+ * @internal
7239
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7240
+ */
7241
+ export namespace DollarAnd$ {
7242
+ /** @deprecated use `DollarAnd$inboundSchema` instead. */
7243
+ export const inboundSchema = DollarAnd$inboundSchema;
7244
+ /** @deprecated use `DollarAnd$outboundSchema` instead. */
7245
+ export const outboundSchema = DollarAnd$outboundSchema;
7246
+ /** @deprecated use `DollarAnd$Outbound` instead. */
7247
+ export type Outbound = DollarAnd$Outbound;
7248
+ }
7249
+
7250
+ export function dollarAndToJSON(dollarAnd: DollarAnd): string {
7251
+ return JSON.stringify(DollarAnd$outboundSchema.parse(dollarAnd));
7252
+ }
7253
+
7254
+ export function dollarAndFromJSON(
7255
+ jsonString: string,
7256
+ ): SafeParseResult<DollarAnd, SDKValidationError> {
7257
+ return safeParse(
7258
+ jsonString,
7259
+ (x) => DollarAnd$inboundSchema.parse(JSON.parse(x)),
7260
+ `Failed to parse 'DollarAnd' from JSON`,
7261
+ );
7262
+ }
7263
+
7264
+ /** @internal */
7265
+ export const DollarExists$inboundSchema: z.ZodType<
7266
+ DollarExists,
7267
+ z.ZodTypeDef,
7268
+ unknown
7269
+ > = z.object({
7270
+ $exists: z.boolean(),
7271
+ }).transform((v) => {
7272
+ return remap$(v, {
7273
+ "$exists": "dollarExists",
7274
+ });
7275
+ });
7276
+
7277
+ /** @internal */
7278
+ export type DollarExists$Outbound = {
7279
+ $exists: boolean;
7280
+ };
7281
+
7282
+ /** @internal */
7283
+ export const DollarExists$outboundSchema: z.ZodType<
7284
+ DollarExists$Outbound,
7285
+ z.ZodTypeDef,
7286
+ DollarExists
7287
+ > = z.object({
7288
+ dollarExists: z.boolean(),
7289
+ }).transform((v) => {
7290
+ return remap$(v, {
7291
+ dollarExists: "$exists",
7292
+ });
7293
+ });
7294
+
7295
+ /**
7296
+ * @internal
7297
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7298
+ */
7299
+ export namespace DollarExists$ {
7300
+ /** @deprecated use `DollarExists$inboundSchema` instead. */
7301
+ export const inboundSchema = DollarExists$inboundSchema;
7302
+ /** @deprecated use `DollarExists$outboundSchema` instead. */
7303
+ export const outboundSchema = DollarExists$outboundSchema;
7304
+ /** @deprecated use `DollarExists$Outbound` instead. */
7305
+ export type Outbound = DollarExists$Outbound;
7306
+ }
7307
+
7308
+ export function dollarExistsToJSON(dollarExists: DollarExists): string {
7309
+ return JSON.stringify(DollarExists$outboundSchema.parse(dollarExists));
7310
+ }
7311
+
7312
+ export function dollarExistsFromJSON(
7313
+ jsonString: string,
7314
+ ): SafeParseResult<DollarExists, SDKValidationError> {
7315
+ return safeParse(
7316
+ jsonString,
7317
+ (x) => DollarExists$inboundSchema.parse(JSON.parse(x)),
7318
+ `Failed to parse 'DollarExists' from JSON`,
7319
+ );
7320
+ }
7321
+
7322
+ /** @internal */
7323
+ export const OneDollarNin$inboundSchema: z.ZodType<
7324
+ OneDollarNin,
7325
+ z.ZodTypeDef,
7326
+ unknown
7327
+ > = z.union([z.string(), z.number(), z.boolean()]);
7328
+
7329
+ /** @internal */
7330
+ export type OneDollarNin$Outbound = string | number | boolean;
7331
+
7332
+ /** @internal */
7333
+ export const OneDollarNin$outboundSchema: z.ZodType<
7334
+ OneDollarNin$Outbound,
7335
+ z.ZodTypeDef,
7336
+ OneDollarNin
7337
+ > = z.union([z.string(), z.number(), z.boolean()]);
7338
+
7339
+ /**
7340
+ * @internal
7341
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7342
+ */
7343
+ export namespace OneDollarNin$ {
7344
+ /** @deprecated use `OneDollarNin$inboundSchema` instead. */
7345
+ export const inboundSchema = OneDollarNin$inboundSchema;
7346
+ /** @deprecated use `OneDollarNin$outboundSchema` instead. */
7347
+ export const outboundSchema = OneDollarNin$outboundSchema;
7348
+ /** @deprecated use `OneDollarNin$Outbound` instead. */
7349
+ export type Outbound = OneDollarNin$Outbound;
7350
+ }
7351
+
7352
+ export function oneDollarNinToJSON(oneDollarNin: OneDollarNin): string {
7353
+ return JSON.stringify(OneDollarNin$outboundSchema.parse(oneDollarNin));
7354
+ }
7355
+
7356
+ export function oneDollarNinFromJSON(
7357
+ jsonString: string,
7358
+ ): SafeParseResult<OneDollarNin, SDKValidationError> {
7359
+ return safeParse(
7360
+ jsonString,
7361
+ (x) => OneDollarNin$inboundSchema.parse(JSON.parse(x)),
7362
+ `Failed to parse 'OneDollarNin' from JSON`,
7363
+ );
7364
+ }
7365
+
7366
+ /** @internal */
7367
+ export const DollarNin$inboundSchema: z.ZodType<
7368
+ DollarNin,
7369
+ z.ZodTypeDef,
7370
+ unknown
7371
+ > = z.object({
7372
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
7373
+ }).transform((v) => {
7374
+ return remap$(v, {
7375
+ "$nin": "dollarNin",
7376
+ });
7377
+ });
7378
+
7379
+ /** @internal */
7380
+ export type DollarNin$Outbound = {
7381
+ $nin: Array<string | number | boolean>;
7382
+ };
7383
+
7384
+ /** @internal */
7385
+ export const DollarNin$outboundSchema: z.ZodType<
7386
+ DollarNin$Outbound,
7387
+ z.ZodTypeDef,
7388
+ DollarNin
7389
+ > = z.object({
7390
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
7391
+ }).transform((v) => {
7392
+ return remap$(v, {
7393
+ dollarNin: "$nin",
7394
+ });
7395
+ });
7396
+
7397
+ /**
7398
+ * @internal
7399
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7400
+ */
7401
+ export namespace DollarNin$ {
7402
+ /** @deprecated use `DollarNin$inboundSchema` instead. */
7403
+ export const inboundSchema = DollarNin$inboundSchema;
7404
+ /** @deprecated use `DollarNin$outboundSchema` instead. */
7405
+ export const outboundSchema = DollarNin$outboundSchema;
7406
+ /** @deprecated use `DollarNin$Outbound` instead. */
7407
+ export type Outbound = DollarNin$Outbound;
7408
+ }
7409
+
7410
+ export function dollarNinToJSON(dollarNin: DollarNin): string {
7411
+ return JSON.stringify(DollarNin$outboundSchema.parse(dollarNin));
7412
+ }
7413
+
7414
+ export function dollarNinFromJSON(
7415
+ jsonString: string,
7416
+ ): SafeParseResult<DollarNin, SDKValidationError> {
7417
+ return safeParse(
7418
+ jsonString,
7419
+ (x) => DollarNin$inboundSchema.parse(JSON.parse(x)),
7420
+ `Failed to parse 'DollarNin' from JSON`,
7421
+ );
7422
+ }
7423
+
7424
+ /** @internal */
7425
+ export const OneDollarIn$inboundSchema: z.ZodType<
7426
+ OneDollarIn,
7427
+ z.ZodTypeDef,
7428
+ unknown
7429
+ > = z.union([z.string(), z.number(), z.boolean()]);
7430
+
7431
+ /** @internal */
7432
+ export type OneDollarIn$Outbound = string | number | boolean;
7433
+
7434
+ /** @internal */
7435
+ export const OneDollarIn$outboundSchema: z.ZodType<
7436
+ OneDollarIn$Outbound,
7437
+ z.ZodTypeDef,
7438
+ OneDollarIn
7439
+ > = z.union([z.string(), z.number(), z.boolean()]);
7440
+
7441
+ /**
7442
+ * @internal
7443
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7444
+ */
7445
+ export namespace OneDollarIn$ {
7446
+ /** @deprecated use `OneDollarIn$inboundSchema` instead. */
7447
+ export const inboundSchema = OneDollarIn$inboundSchema;
7448
+ /** @deprecated use `OneDollarIn$outboundSchema` instead. */
7449
+ export const outboundSchema = OneDollarIn$outboundSchema;
7450
+ /** @deprecated use `OneDollarIn$Outbound` instead. */
7451
+ export type Outbound = OneDollarIn$Outbound;
7452
+ }
7453
+
7454
+ export function oneDollarInToJSON(oneDollarIn: OneDollarIn): string {
7455
+ return JSON.stringify(OneDollarIn$outboundSchema.parse(oneDollarIn));
7456
+ }
7457
+
7458
+ export function oneDollarInFromJSON(
7459
+ jsonString: string,
7460
+ ): SafeParseResult<OneDollarIn, SDKValidationError> {
7461
+ return safeParse(
7462
+ jsonString,
7463
+ (x) => OneDollarIn$inboundSchema.parse(JSON.parse(x)),
7464
+ `Failed to parse 'OneDollarIn' from JSON`,
7465
+ );
7466
+ }
7467
+
7468
+ /** @internal */
7469
+ export const DollarIn$inboundSchema: z.ZodType<
7470
+ DollarIn,
7471
+ z.ZodTypeDef,
7472
+ unknown
7473
+ > = z.object({
7474
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
7475
+ }).transform((v) => {
7476
+ return remap$(v, {
7477
+ "$in": "dollarIn",
7478
+ });
7479
+ });
7480
+
7481
+ /** @internal */
7482
+ export type DollarIn$Outbound = {
7483
+ $in: Array<string | number | boolean>;
7484
+ };
7485
+
7486
+ /** @internal */
7487
+ export const DollarIn$outboundSchema: z.ZodType<
7488
+ DollarIn$Outbound,
7489
+ z.ZodTypeDef,
7490
+ DollarIn
7491
+ > = z.object({
7492
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
7493
+ }).transform((v) => {
7494
+ return remap$(v, {
7495
+ dollarIn: "$in",
7496
+ });
7497
+ });
7498
+
7499
+ /**
7500
+ * @internal
7501
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7502
+ */
7503
+ export namespace DollarIn$ {
7504
+ /** @deprecated use `DollarIn$inboundSchema` instead. */
7505
+ export const inboundSchema = DollarIn$inboundSchema;
7506
+ /** @deprecated use `DollarIn$outboundSchema` instead. */
7507
+ export const outboundSchema = DollarIn$outboundSchema;
7508
+ /** @deprecated use `DollarIn$Outbound` instead. */
7509
+ export type Outbound = DollarIn$Outbound;
7510
+ }
7511
+
7512
+ export function dollarInToJSON(dollarIn: DollarIn): string {
7513
+ return JSON.stringify(DollarIn$outboundSchema.parse(dollarIn));
7514
+ }
7515
+
7516
+ export function dollarInFromJSON(
7517
+ jsonString: string,
7518
+ ): SafeParseResult<DollarIn, SDKValidationError> {
7519
+ return safeParse(
7520
+ jsonString,
7521
+ (x) => DollarIn$inboundSchema.parse(JSON.parse(x)),
7522
+ `Failed to parse 'DollarIn' from JSON`,
7523
+ );
7524
+ }
7525
+
7526
+ /** @internal */
7527
+ export const DollarLte$inboundSchema: z.ZodType<
7528
+ DollarLte,
7529
+ z.ZodTypeDef,
7530
+ unknown
7531
+ > = z.object({
7532
+ $lte: z.number(),
7533
+ }).transform((v) => {
7534
+ return remap$(v, {
7535
+ "$lte": "dollarLte",
7536
+ });
7537
+ });
7538
+
7539
+ /** @internal */
7540
+ export type DollarLte$Outbound = {
7541
+ $lte: number;
7542
+ };
7543
+
7544
+ /** @internal */
7545
+ export const DollarLte$outboundSchema: z.ZodType<
7546
+ DollarLte$Outbound,
7547
+ z.ZodTypeDef,
7548
+ DollarLte
7549
+ > = z.object({
7550
+ dollarLte: z.number(),
7551
+ }).transform((v) => {
7552
+ return remap$(v, {
7553
+ dollarLte: "$lte",
7554
+ });
7555
+ });
7556
+
7557
+ /**
7558
+ * @internal
7559
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7560
+ */
7561
+ export namespace DollarLte$ {
7562
+ /** @deprecated use `DollarLte$inboundSchema` instead. */
7563
+ export const inboundSchema = DollarLte$inboundSchema;
7564
+ /** @deprecated use `DollarLte$outboundSchema` instead. */
7565
+ export const outboundSchema = DollarLte$outboundSchema;
7566
+ /** @deprecated use `DollarLte$Outbound` instead. */
7567
+ export type Outbound = DollarLte$Outbound;
7568
+ }
7569
+
7570
+ export function dollarLteToJSON(dollarLte: DollarLte): string {
7571
+ return JSON.stringify(DollarLte$outboundSchema.parse(dollarLte));
7572
+ }
7573
+
7574
+ export function dollarLteFromJSON(
7575
+ jsonString: string,
7576
+ ): SafeParseResult<DollarLte, SDKValidationError> {
7577
+ return safeParse(
7578
+ jsonString,
7579
+ (x) => DollarLte$inboundSchema.parse(JSON.parse(x)),
7580
+ `Failed to parse 'DollarLte' from JSON`,
7581
+ );
7582
+ }
7583
+
7584
+ /** @internal */
7585
+ export const DollarLt$inboundSchema: z.ZodType<
7586
+ DollarLt,
7587
+ z.ZodTypeDef,
7588
+ unknown
7589
+ > = z.object({
7590
+ $lt: z.number(),
7591
+ }).transform((v) => {
7592
+ return remap$(v, {
7593
+ "$lt": "dollarLt",
7594
+ });
7595
+ });
7596
+
7597
+ /** @internal */
7598
+ export type DollarLt$Outbound = {
7599
+ $lt: number;
7600
+ };
7601
+
7602
+ /** @internal */
7603
+ export const DollarLt$outboundSchema: z.ZodType<
7604
+ DollarLt$Outbound,
7605
+ z.ZodTypeDef,
7606
+ DollarLt
7607
+ > = z.object({
7608
+ dollarLt: z.number(),
7609
+ }).transform((v) => {
7610
+ return remap$(v, {
7611
+ dollarLt: "$lt",
7612
+ });
7613
+ });
7614
+
7615
+ /**
7616
+ * @internal
7617
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7618
+ */
7619
+ export namespace DollarLt$ {
7620
+ /** @deprecated use `DollarLt$inboundSchema` instead. */
7621
+ export const inboundSchema = DollarLt$inboundSchema;
7622
+ /** @deprecated use `DollarLt$outboundSchema` instead. */
7623
+ export const outboundSchema = DollarLt$outboundSchema;
7624
+ /** @deprecated use `DollarLt$Outbound` instead. */
7625
+ export type Outbound = DollarLt$Outbound;
7626
+ }
7627
+
7628
+ export function dollarLtToJSON(dollarLt: DollarLt): string {
7629
+ return JSON.stringify(DollarLt$outboundSchema.parse(dollarLt));
7630
+ }
7631
+
7632
+ export function dollarLtFromJSON(
7633
+ jsonString: string,
7634
+ ): SafeParseResult<DollarLt, SDKValidationError> {
7635
+ return safeParse(
7636
+ jsonString,
7637
+ (x) => DollarLt$inboundSchema.parse(JSON.parse(x)),
7638
+ `Failed to parse 'DollarLt' from JSON`,
7639
+ );
7640
+ }
7641
+
7642
+ /** @internal */
7643
+ export const DollarGte$inboundSchema: z.ZodType<
7644
+ DollarGte,
7645
+ z.ZodTypeDef,
7646
+ unknown
7647
+ > = z.object({
7648
+ $gte: z.number(),
7649
+ }).transform((v) => {
7650
+ return remap$(v, {
7651
+ "$gte": "dollarGte",
7652
+ });
7653
+ });
7654
+
7655
+ /** @internal */
7656
+ export type DollarGte$Outbound = {
7657
+ $gte: number;
7658
+ };
7659
+
7660
+ /** @internal */
7661
+ export const DollarGte$outboundSchema: z.ZodType<
7662
+ DollarGte$Outbound,
7663
+ z.ZodTypeDef,
7664
+ DollarGte
7665
+ > = z.object({
7666
+ dollarGte: z.number(),
7667
+ }).transform((v) => {
7668
+ return remap$(v, {
7669
+ dollarGte: "$gte",
7670
+ });
7671
+ });
7672
+
7673
+ /**
7674
+ * @internal
7675
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7676
+ */
7677
+ export namespace DollarGte$ {
7678
+ /** @deprecated use `DollarGte$inboundSchema` instead. */
7679
+ export const inboundSchema = DollarGte$inboundSchema;
7680
+ /** @deprecated use `DollarGte$outboundSchema` instead. */
7681
+ export const outboundSchema = DollarGte$outboundSchema;
7682
+ /** @deprecated use `DollarGte$Outbound` instead. */
7683
+ export type Outbound = DollarGte$Outbound;
7684
+ }
7685
+
7686
+ export function dollarGteToJSON(dollarGte: DollarGte): string {
7687
+ return JSON.stringify(DollarGte$outboundSchema.parse(dollarGte));
7688
+ }
7689
+
7690
+ export function dollarGteFromJSON(
7691
+ jsonString: string,
7692
+ ): SafeParseResult<DollarGte, SDKValidationError> {
7693
+ return safeParse(
7694
+ jsonString,
7695
+ (x) => DollarGte$inboundSchema.parse(JSON.parse(x)),
7696
+ `Failed to parse 'DollarGte' from JSON`,
7697
+ );
7698
+ }
7699
+
7700
+ /** @internal */
7701
+ export const One3$inboundSchema: z.ZodType<One3, z.ZodTypeDef, unknown> = z
7702
+ .object({
7703
+ $gt: z.number(),
7704
+ }).transform((v) => {
7705
+ return remap$(v, {
7706
+ "$gt": "dollarGt",
7707
+ });
7708
+ });
7709
+
7710
+ /** @internal */
7711
+ export type One3$Outbound = {
7712
+ $gt: number;
7713
+ };
7714
+
7715
+ /** @internal */
7716
+ export const One3$outboundSchema: z.ZodType<One3$Outbound, z.ZodTypeDef, One3> =
7717
+ z.object({
7718
+ dollarGt: z.number(),
7719
+ }).transform((v) => {
7720
+ return remap$(v, {
7721
+ dollarGt: "$gt",
7722
+ });
7723
+ });
7724
+
7725
+ /**
7726
+ * @internal
7727
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7728
+ */
7729
+ export namespace One3$ {
7730
+ /** @deprecated use `One3$inboundSchema` instead. */
7731
+ export const inboundSchema = One3$inboundSchema;
7732
+ /** @deprecated use `One3$outboundSchema` instead. */
7733
+ export const outboundSchema = One3$outboundSchema;
7734
+ /** @deprecated use `One3$Outbound` instead. */
7735
+ export type Outbound = One3$Outbound;
7736
+ }
7737
+
7738
+ export function one3ToJSON(one3: One3): string {
7739
+ return JSON.stringify(One3$outboundSchema.parse(one3));
7740
+ }
7741
+
7742
+ export function one3FromJSON(
7743
+ jsonString: string,
7744
+ ): SafeParseResult<One3, SDKValidationError> {
7745
+ return safeParse(
7746
+ jsonString,
7747
+ (x) => One3$inboundSchema.parse(JSON.parse(x)),
7748
+ `Failed to parse 'One3' from JSON`,
7749
+ );
7750
+ }
7751
+
7752
+ /** @internal */
7753
+ export const OneDollarNe$inboundSchema: z.ZodType<
7754
+ OneDollarNe,
7755
+ z.ZodTypeDef,
7756
+ unknown
7757
+ > = z.union([z.string(), z.number(), z.boolean()]);
7758
+
7759
+ /** @internal */
7760
+ export type OneDollarNe$Outbound = string | number | boolean;
7761
+
7762
+ /** @internal */
7763
+ export const OneDollarNe$outboundSchema: z.ZodType<
7764
+ OneDollarNe$Outbound,
7765
+ z.ZodTypeDef,
7766
+ OneDollarNe
7767
+ > = z.union([z.string(), z.number(), z.boolean()]);
7768
+
7769
+ /**
7770
+ * @internal
7771
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7772
+ */
7773
+ export namespace OneDollarNe$ {
7774
+ /** @deprecated use `OneDollarNe$inboundSchema` instead. */
7775
+ export const inboundSchema = OneDollarNe$inboundSchema;
7776
+ /** @deprecated use `OneDollarNe$outboundSchema` instead. */
7777
+ export const outboundSchema = OneDollarNe$outboundSchema;
7778
+ /** @deprecated use `OneDollarNe$Outbound` instead. */
7779
+ export type Outbound = OneDollarNe$Outbound;
7780
+ }
7781
+
7782
+ export function oneDollarNeToJSON(oneDollarNe: OneDollarNe): string {
7783
+ return JSON.stringify(OneDollarNe$outboundSchema.parse(oneDollarNe));
7784
+ }
7785
+
7786
+ export function oneDollarNeFromJSON(
7787
+ jsonString: string,
7788
+ ): SafeParseResult<OneDollarNe, SDKValidationError> {
7789
+ return safeParse(
7790
+ jsonString,
7791
+ (x) => OneDollarNe$inboundSchema.parse(JSON.parse(x)),
7792
+ `Failed to parse 'OneDollarNe' from JSON`,
7793
+ );
7794
+ }
7795
+
7796
+ /** @internal */
7797
+ export const DollarNe$inboundSchema: z.ZodType<
7798
+ DollarNe,
7799
+ z.ZodTypeDef,
7800
+ unknown
7801
+ > = z.object({
7802
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
7803
+ }).transform((v) => {
7804
+ return remap$(v, {
7805
+ "$ne": "dollarNe",
7806
+ });
7807
+ });
7808
+
7809
+ /** @internal */
7810
+ export type DollarNe$Outbound = {
7811
+ $ne: string | number | boolean;
7812
+ };
7813
+
7814
+ /** @internal */
7815
+ export const DollarNe$outboundSchema: z.ZodType<
7816
+ DollarNe$Outbound,
7817
+ z.ZodTypeDef,
7818
+ DollarNe
7819
+ > = z.object({
7820
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
7821
+ }).transform((v) => {
7822
+ return remap$(v, {
7823
+ dollarNe: "$ne",
7824
+ });
7825
+ });
7826
+
7827
+ /**
7828
+ * @internal
7829
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7830
+ */
7831
+ export namespace DollarNe$ {
7832
+ /** @deprecated use `DollarNe$inboundSchema` instead. */
7833
+ export const inboundSchema = DollarNe$inboundSchema;
7834
+ /** @deprecated use `DollarNe$outboundSchema` instead. */
7835
+ export const outboundSchema = DollarNe$outboundSchema;
7836
+ /** @deprecated use `DollarNe$Outbound` instead. */
7837
+ export type Outbound = DollarNe$Outbound;
7838
+ }
7839
+
7840
+ export function dollarNeToJSON(dollarNe: DollarNe): string {
7841
+ return JSON.stringify(DollarNe$outboundSchema.parse(dollarNe));
7842
+ }
7843
+
7844
+ export function dollarNeFromJSON(
7845
+ jsonString: string,
7846
+ ): SafeParseResult<DollarNe, SDKValidationError> {
7847
+ return safeParse(
7848
+ jsonString,
7849
+ (x) => DollarNe$inboundSchema.parse(JSON.parse(x)),
7850
+ `Failed to parse 'DollarNe' from JSON`,
7851
+ );
7852
+ }
7853
+
7854
+ /** @internal */
7855
+ export const OneDollarEq$inboundSchema: z.ZodType<
7856
+ OneDollarEq,
7857
+ z.ZodTypeDef,
7858
+ unknown
7859
+ > = z.union([z.string(), z.number(), z.boolean()]);
7860
+
7861
+ /** @internal */
7862
+ export type OneDollarEq$Outbound = string | number | boolean;
7863
+
7864
+ /** @internal */
7865
+ export const OneDollarEq$outboundSchema: z.ZodType<
7866
+ OneDollarEq$Outbound,
7867
+ z.ZodTypeDef,
7868
+ OneDollarEq
7869
+ > = z.union([z.string(), z.number(), z.boolean()]);
7870
+
7871
+ /**
7872
+ * @internal
7873
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7874
+ */
7875
+ export namespace OneDollarEq$ {
7876
+ /** @deprecated use `OneDollarEq$inboundSchema` instead. */
7877
+ export const inboundSchema = OneDollarEq$inboundSchema;
7878
+ /** @deprecated use `OneDollarEq$outboundSchema` instead. */
7879
+ export const outboundSchema = OneDollarEq$outboundSchema;
7880
+ /** @deprecated use `OneDollarEq$Outbound` instead. */
7881
+ export type Outbound = OneDollarEq$Outbound;
7882
+ }
7883
+
7884
+ export function oneDollarEqToJSON(oneDollarEq: OneDollarEq): string {
7885
+ return JSON.stringify(OneDollarEq$outboundSchema.parse(oneDollarEq));
7886
+ }
7887
+
7888
+ export function oneDollarEqFromJSON(
7889
+ jsonString: string,
7890
+ ): SafeParseResult<OneDollarEq, SDKValidationError> {
7891
+ return safeParse(
7892
+ jsonString,
7893
+ (x) => OneDollarEq$inboundSchema.parse(JSON.parse(x)),
7894
+ `Failed to parse 'OneDollarEq' from JSON`,
7895
+ );
7896
+ }
7897
+
7898
+ /** @internal */
7899
+ export const DollarEq$inboundSchema: z.ZodType<
7900
+ DollarEq,
7901
+ z.ZodTypeDef,
7902
+ unknown
7903
+ > = z.object({
7904
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
7905
+ }).transform((v) => {
7906
+ return remap$(v, {
7907
+ "$eq": "dollarEq",
7908
+ });
7909
+ });
7910
+
7911
+ /** @internal */
7912
+ export type DollarEq$Outbound = {
7913
+ $eq: string | number | boolean;
7914
+ };
7915
+
7916
+ /** @internal */
7917
+ export const DollarEq$outboundSchema: z.ZodType<
7918
+ DollarEq$Outbound,
7919
+ z.ZodTypeDef,
7920
+ DollarEq
7921
+ > = z.object({
7922
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
7923
+ }).transform((v) => {
7924
+ return remap$(v, {
7925
+ dollarEq: "$eq",
7926
+ });
7927
+ });
7928
+
7929
+ /**
7930
+ * @internal
7931
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7932
+ */
7933
+ export namespace DollarEq$ {
7934
+ /** @deprecated use `DollarEq$inboundSchema` instead. */
7935
+ export const inboundSchema = DollarEq$inboundSchema;
7936
+ /** @deprecated use `DollarEq$outboundSchema` instead. */
7937
+ export const outboundSchema = DollarEq$outboundSchema;
7938
+ /** @deprecated use `DollarEq$Outbound` instead. */
7939
+ export type Outbound = DollarEq$Outbound;
7940
+ }
7941
+
7942
+ export function dollarEqToJSON(dollarEq: DollarEq): string {
7943
+ return JSON.stringify(DollarEq$outboundSchema.parse(dollarEq));
7944
+ }
7945
+
7946
+ export function dollarEqFromJSON(
7947
+ jsonString: string,
7948
+ ): SafeParseResult<DollarEq, SDKValidationError> {
7949
+ return safeParse(
7950
+ jsonString,
7951
+ (x) => DollarEq$inboundSchema.parse(JSON.parse(x)),
7952
+ `Failed to parse 'DollarEq' from JSON`,
7953
+ );
7954
+ }
7955
+
7956
+ /** @internal */
7957
+ export const KnowledgeFilter1$inboundSchema: z.ZodType<
7958
+ KnowledgeFilter1,
7959
+ z.ZodTypeDef,
7960
+ unknown
7961
+ > = z.union([
7962
+ z.lazy(() => DollarEq$inboundSchema),
7963
+ z.lazy(() => DollarNe$inboundSchema),
7964
+ z.lazy(() => One3$inboundSchema),
7965
+ z.lazy(() => DollarGte$inboundSchema),
7966
+ z.lazy(() => DollarLt$inboundSchema),
7967
+ z.lazy(() => DollarLte$inboundSchema),
7968
+ z.lazy(() => DollarIn$inboundSchema),
7969
+ z.lazy(() => DollarNin$inboundSchema),
7970
+ z.lazy(() => DollarExists$inboundSchema),
7971
+ ]);
7972
+
7973
+ /** @internal */
7974
+ export type KnowledgeFilter1$Outbound =
7975
+ | DollarEq$Outbound
7976
+ | DollarNe$Outbound
7977
+ | One3$Outbound
7978
+ | DollarGte$Outbound
7979
+ | DollarLt$Outbound
7980
+ | DollarLte$Outbound
7981
+ | DollarIn$Outbound
7982
+ | DollarNin$Outbound
7983
+ | DollarExists$Outbound;
7984
+
7985
+ /** @internal */
7986
+ export const KnowledgeFilter1$outboundSchema: z.ZodType<
7987
+ KnowledgeFilter1$Outbound,
7988
+ z.ZodTypeDef,
7989
+ KnowledgeFilter1
7990
+ > = z.union([
7991
+ z.lazy(() => DollarEq$outboundSchema),
7992
+ z.lazy(() => DollarNe$outboundSchema),
7993
+ z.lazy(() => One3$outboundSchema),
7994
+ z.lazy(() => DollarGte$outboundSchema),
7995
+ z.lazy(() => DollarLt$outboundSchema),
7996
+ z.lazy(() => DollarLte$outboundSchema),
7997
+ z.lazy(() => DollarIn$outboundSchema),
7998
+ z.lazy(() => DollarNin$outboundSchema),
7999
+ z.lazy(() => DollarExists$outboundSchema),
8000
+ ]);
8001
+
8002
+ /**
8003
+ * @internal
8004
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8005
+ */
8006
+ export namespace KnowledgeFilter1$ {
8007
+ /** @deprecated use `KnowledgeFilter1$inboundSchema` instead. */
8008
+ export const inboundSchema = KnowledgeFilter1$inboundSchema;
8009
+ /** @deprecated use `KnowledgeFilter1$outboundSchema` instead. */
8010
+ export const outboundSchema = KnowledgeFilter1$outboundSchema;
8011
+ /** @deprecated use `KnowledgeFilter1$Outbound` instead. */
8012
+ export type Outbound = KnowledgeFilter1$Outbound;
8013
+ }
8014
+
8015
+ export function knowledgeFilter1ToJSON(
8016
+ knowledgeFilter1: KnowledgeFilter1,
8017
+ ): string {
8018
+ return JSON.stringify(
8019
+ KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
8020
+ );
8021
+ }
8022
+
8023
+ export function knowledgeFilter1FromJSON(
8024
+ jsonString: string,
8025
+ ): SafeParseResult<KnowledgeFilter1, SDKValidationError> {
8026
+ return safeParse(
8027
+ jsonString,
8028
+ (x) => KnowledgeFilter1$inboundSchema.parse(JSON.parse(x)),
8029
+ `Failed to parse 'KnowledgeFilter1' from JSON`,
8030
+ );
8031
+ }
8032
+
8033
+ /** @internal */
8034
+ export const KnowledgeFilter$inboundSchema: z.ZodType<
8035
+ KnowledgeFilter,
8036
+ z.ZodTypeDef,
8037
+ unknown
8038
+ > = z.union([
8039
+ z.lazy(() => DollarAnd$inboundSchema),
8040
+ z.lazy(() => DollarOr$inboundSchema),
8041
+ z.record(z.union([
8042
+ z.lazy(() => DollarEq$inboundSchema),
8043
+ z.lazy(() => DollarNe$inboundSchema),
8044
+ z.lazy(() => One3$inboundSchema),
8045
+ z.lazy(() => DollarGte$inboundSchema),
8046
+ z.lazy(() => DollarLt$inboundSchema),
8047
+ z.lazy(() => DollarLte$inboundSchema),
8048
+ z.lazy(() => DollarIn$inboundSchema),
8049
+ z.lazy(() => DollarNin$inboundSchema),
8050
+ z.lazy(() => DollarExists$inboundSchema),
8051
+ ])),
8052
+ ]);
8053
+
8054
+ /** @internal */
8055
+ export type KnowledgeFilter$Outbound =
8056
+ | DollarAnd$Outbound
8057
+ | DollarOr$Outbound
8058
+ | {
8059
+ [k: string]:
8060
+ | DollarEq$Outbound
8061
+ | DollarNe$Outbound
8062
+ | One3$Outbound
8063
+ | DollarGte$Outbound
8064
+ | DollarLt$Outbound
8065
+ | DollarLte$Outbound
8066
+ | DollarIn$Outbound
8067
+ | DollarNin$Outbound
8068
+ | DollarExists$Outbound;
8069
+ };
8070
+
8071
+ /** @internal */
8072
+ export const KnowledgeFilter$outboundSchema: z.ZodType<
8073
+ KnowledgeFilter$Outbound,
8074
+ z.ZodTypeDef,
8075
+ KnowledgeFilter
8076
+ > = z.union([
8077
+ z.lazy(() => DollarAnd$outboundSchema),
8078
+ z.lazy(() => DollarOr$outboundSchema),
8079
+ z.record(z.union([
8080
+ z.lazy(() => DollarEq$outboundSchema),
8081
+ z.lazy(() => DollarNe$outboundSchema),
8082
+ z.lazy(() => One3$outboundSchema),
8083
+ z.lazy(() => DollarGte$outboundSchema),
8084
+ z.lazy(() => DollarLt$outboundSchema),
8085
+ z.lazy(() => DollarLte$outboundSchema),
8086
+ z.lazy(() => DollarIn$outboundSchema),
8087
+ z.lazy(() => DollarNin$outboundSchema),
8088
+ z.lazy(() => DollarExists$outboundSchema),
8089
+ ])),
8090
+ ]);
8091
+
8092
+ /**
8093
+ * @internal
8094
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8095
+ */
8096
+ export namespace KnowledgeFilter$ {
8097
+ /** @deprecated use `KnowledgeFilter$inboundSchema` instead. */
8098
+ export const inboundSchema = KnowledgeFilter$inboundSchema;
8099
+ /** @deprecated use `KnowledgeFilter$outboundSchema` instead. */
8100
+ export const outboundSchema = KnowledgeFilter$outboundSchema;
8101
+ /** @deprecated use `KnowledgeFilter$Outbound` instead. */
8102
+ export type Outbound = KnowledgeFilter$Outbound;
8103
+ }
8104
+
8105
+ export function knowledgeFilterToJSON(
8106
+ knowledgeFilter: KnowledgeFilter,
8107
+ ): string {
8108
+ return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
8109
+ }
8110
+
8111
+ export function knowledgeFilterFromJSON(
8112
+ jsonString: string,
8113
+ ): SafeParseResult<KnowledgeFilter, SDKValidationError> {
8114
+ return safeParse(
8115
+ jsonString,
8116
+ (x) => KnowledgeFilter$inboundSchema.parse(JSON.parse(x)),
8117
+ `Failed to parse 'KnowledgeFilter' from JSON`,
8118
+ );
8119
+ }
8120
+
8121
+ /** @internal */
8122
+ export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
8123
+ DeploymentGetConfigRequestBody,
8124
+ z.ZodTypeDef,
8125
+ unknown
8126
+ > = z.object({
8127
+ key: z.string(),
8128
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
8129
+ context: z.record(z.any()).optional(),
8130
+ prefix_messages: z.array(
8131
+ z.union([
8132
+ z.lazy(() => DeveloperMessage$inboundSchema),
8133
+ z.lazy(() => SystemMessage$inboundSchema),
8134
+ z.lazy(() => UserMessage$inboundSchema),
8135
+ z.lazy(() => ToolMessage$inboundSchema),
8136
+ z.lazy(() => AssistantMessage$inboundSchema),
8137
+ ]),
8138
+ ).optional(),
8139
+ messages: z.array(
8140
+ z.union([
8141
+ z.lazy(() => MessagesDeveloperMessage$inboundSchema),
8142
+ z.lazy(() => MessagesSystemMessage$inboundSchema),
8143
+ z.lazy(() => MessagesUserMessage$inboundSchema),
8144
+ z.lazy(() => MessagesToolMessage$inboundSchema),
8145
+ z.lazy(() => MessagesAssistantMessage$inboundSchema),
8146
+ ]),
8147
+ ).optional(),
8148
+ file_ids: z.array(z.string()).optional(),
8149
+ metadata: z.record(z.any()).optional(),
8150
+ extra_params: z.record(z.any()).optional(),
8151
+ documents: z.array(z.lazy(() => Documents$inboundSchema)).optional(),
8152
+ invoke_options: z.lazy(() => InvokeOptions$inboundSchema).optional(),
8153
+ thread: z.lazy(() => Thread$inboundSchema).optional(),
8154
+ knowledge_filter: z.union([
8155
+ z.lazy(() => DollarAnd$inboundSchema),
8156
+ z.lazy(() => DollarOr$inboundSchema),
8157
+ z.record(z.union([
8158
+ z.lazy(() => DollarEq$inboundSchema),
8159
+ z.lazy(() => DollarNe$inboundSchema),
8160
+ z.lazy(() => One3$inboundSchema),
8161
+ z.lazy(() => DollarGte$inboundSchema),
8162
+ z.lazy(() => DollarLt$inboundSchema),
8163
+ z.lazy(() => DollarLte$inboundSchema),
8164
+ z.lazy(() => DollarIn$inboundSchema),
8165
+ z.lazy(() => DollarNin$inboundSchema),
8166
+ z.lazy(() => DollarExists$inboundSchema),
8167
+ ])),
8168
+ ]).optional(),
8169
+ }).transform((v) => {
8170
+ return remap$(v, {
8171
+ "prefix_messages": "prefixMessages",
8172
+ "file_ids": "fileIds",
8173
+ "extra_params": "extraParams",
8174
+ "invoke_options": "invokeOptions",
8175
+ "knowledge_filter": "knowledgeFilter",
8176
+ });
8177
+ });
8178
+
8179
+ /** @internal */
8180
+ export type DeploymentGetConfigRequestBody$Outbound = {
8181
+ key: string;
8182
+ inputs?: { [k: string]: string | number | boolean } | undefined;
8183
+ context?: { [k: string]: any } | undefined;
8184
+ prefix_messages?:
8185
+ | Array<
8186
+ | DeveloperMessage$Outbound
8187
+ | SystemMessage$Outbound
8188
+ | UserMessage$Outbound
8189
+ | ToolMessage$Outbound
8190
+ | AssistantMessage$Outbound
8191
+ >
8192
+ | undefined;
8193
+ messages?:
8194
+ | Array<
8195
+ | MessagesDeveloperMessage$Outbound
8196
+ | MessagesSystemMessage$Outbound
8197
+ | MessagesUserMessage$Outbound
8198
+ | MessagesToolMessage$Outbound
8199
+ | MessagesAssistantMessage$Outbound
8200
+ >
8201
+ | undefined;
8202
+ file_ids?: Array<string> | undefined;
8203
+ metadata?: { [k: string]: any } | undefined;
8204
+ extra_params?: { [k: string]: any } | undefined;
8205
+ documents?: Array<Documents$Outbound> | undefined;
8206
+ invoke_options?: InvokeOptions$Outbound | undefined;
8207
+ thread?: Thread$Outbound | undefined;
8208
+ knowledge_filter?: DollarAnd$Outbound | DollarOr$Outbound | {
8209
+ [k: string]:
8210
+ | DollarEq$Outbound
8211
+ | DollarNe$Outbound
8212
+ | One3$Outbound
8213
+ | DollarGte$Outbound
8214
+ | DollarLt$Outbound
8215
+ | DollarLte$Outbound
8216
+ | DollarIn$Outbound
8217
+ | DollarNin$Outbound
8218
+ | DollarExists$Outbound;
8219
+ } | undefined;
8220
+ };
8221
+
8222
+ /** @internal */
8223
+ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
8224
+ DeploymentGetConfigRequestBody$Outbound,
8225
+ z.ZodTypeDef,
8226
+ DeploymentGetConfigRequestBody
8227
+ > = z.object({
8228
+ key: z.string(),
8229
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
8230
+ context: z.record(z.any()).optional(),
8231
+ prefixMessages: z.array(
8232
+ z.union([
8233
+ z.lazy(() => DeveloperMessage$outboundSchema),
8234
+ z.lazy(() => SystemMessage$outboundSchema),
8235
+ z.lazy(() => UserMessage$outboundSchema),
8236
+ z.lazy(() => ToolMessage$outboundSchema),
8237
+ z.lazy(() => AssistantMessage$outboundSchema),
8238
+ ]),
8239
+ ).optional(),
8240
+ messages: z.array(
8241
+ z.union([
8242
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
8243
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
8244
+ z.lazy(() => MessagesUserMessage$outboundSchema),
8245
+ z.lazy(() => MessagesToolMessage$outboundSchema),
8246
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
8247
+ ]),
8248
+ ).optional(),
8249
+ fileIds: z.array(z.string()).optional(),
8250
+ metadata: z.record(z.any()).optional(),
8251
+ extraParams: z.record(z.any()).optional(),
8252
+ documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
8253
+ invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
8254
+ thread: z.lazy(() => Thread$outboundSchema).optional(),
8255
+ knowledgeFilter: z.union([
8256
+ z.lazy(() => DollarAnd$outboundSchema),
8257
+ z.lazy(() => DollarOr$outboundSchema),
8258
+ z.record(z.union([
8259
+ z.lazy(() => DollarEq$outboundSchema),
8260
+ z.lazy(() => DollarNe$outboundSchema),
8261
+ z.lazy(() => One3$outboundSchema),
8262
+ z.lazy(() => DollarGte$outboundSchema),
8263
+ z.lazy(() => DollarLt$outboundSchema),
8264
+ z.lazy(() => DollarLte$outboundSchema),
8265
+ z.lazy(() => DollarIn$outboundSchema),
8266
+ z.lazy(() => DollarNin$outboundSchema),
8267
+ z.lazy(() => DollarExists$outboundSchema),
8268
+ ])),
8269
+ ]).optional(),
5154
8270
  }).transform((v) => {
5155
8271
  return remap$(v, {
5156
8272
  prefixMessages: "prefix_messages",
5157
8273
  fileIds: "file_ids",
5158
8274
  extraParams: "extra_params",
5159
8275
  invokeOptions: "invoke_options",
8276
+ knowledgeFilter: "knowledge_filter",
5160
8277
  });
5161
8278
  });
5162
8279