@orq-ai/node 3.5.11 → 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 +40 -40
  2. package/bin/mcp-server.js.map +21 -21
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  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 +3 -3
  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
@@ -949,6 +949,326 @@ export type DeploymentStreamThread = {
949
949
  tags?: Array<string> | undefined;
950
950
  };
951
951
 
952
+ /**
953
+ * Exists
954
+ */
955
+ export type DeploymentStreamDollarOrDollarExists = {
956
+ dollarExists: boolean;
957
+ };
958
+
959
+ export type DeploymentStreamDollarOrDeploymentsDollarNin =
960
+ | string
961
+ | number
962
+ | boolean;
963
+
964
+ /**
965
+ * Not in
966
+ */
967
+ export type DeploymentStreamDollarOrDollarNin = {
968
+ dollarNin: Array<string | number | boolean>;
969
+ };
970
+
971
+ export type DeploymentStreamDollarOrDeploymentsDollarIn =
972
+ | string
973
+ | number
974
+ | boolean;
975
+
976
+ /**
977
+ * In
978
+ */
979
+ export type DeploymentStreamDollarOrDollarIn = {
980
+ dollarIn: Array<string | number | boolean>;
981
+ };
982
+
983
+ /**
984
+ * Less than or equal to
985
+ */
986
+ export type DeploymentStreamDollarOrDollarLte = {
987
+ dollarLte: number;
988
+ };
989
+
990
+ /**
991
+ * Less than
992
+ */
993
+ export type DeploymentStreamDollarOrDollarLt = {
994
+ dollarLt: number;
995
+ };
996
+
997
+ /**
998
+ * Greater than or equal to
999
+ */
1000
+ export type DeploymentStreamDollarOrDollarGte = {
1001
+ dollarGte: number;
1002
+ };
1003
+
1004
+ export type DeploymentStreamDollarOr3 = {
1005
+ dollarGt: number;
1006
+ };
1007
+
1008
+ export type DeploymentStreamDollarOrDeploymentsDollarNe =
1009
+ | string
1010
+ | number
1011
+ | boolean;
1012
+
1013
+ /**
1014
+ * Not equal to
1015
+ */
1016
+ export type DeploymentStreamDollarOrDollarNe = {
1017
+ dollarNe: string | number | boolean;
1018
+ };
1019
+
1020
+ export type DeploymentStreamDollarOrDeploymentsDollarEq =
1021
+ | string
1022
+ | number
1023
+ | boolean;
1024
+
1025
+ /**
1026
+ * Equal to
1027
+ */
1028
+ export type DeploymentStreamDollarOrDollarEq = {
1029
+ dollarEq: string | number | boolean;
1030
+ };
1031
+
1032
+ export type DeploymentStreamKnowledgeFilterDeploymentsDollarOr =
1033
+ | DeploymentStreamDollarOrDollarEq
1034
+ | DeploymentStreamDollarOrDollarNe
1035
+ | DeploymentStreamDollarOr3
1036
+ | DeploymentStreamDollarOrDollarGte
1037
+ | DeploymentStreamDollarOrDollarLt
1038
+ | DeploymentStreamDollarOrDollarLte
1039
+ | DeploymentStreamDollarOrDollarIn
1040
+ | DeploymentStreamDollarOrDollarNin
1041
+ | DeploymentStreamDollarOrDollarExists;
1042
+
1043
+ /**
1044
+ * Or
1045
+ */
1046
+ export type DeploymentStreamKnowledgeFilterDollarOr = {
1047
+ dollarOr: Array<
1048
+ {
1049
+ [k: string]:
1050
+ | DeploymentStreamDollarOrDollarEq
1051
+ | DeploymentStreamDollarOrDollarNe
1052
+ | DeploymentStreamDollarOr3
1053
+ | DeploymentStreamDollarOrDollarGte
1054
+ | DeploymentStreamDollarOrDollarLt
1055
+ | DeploymentStreamDollarOrDollarLte
1056
+ | DeploymentStreamDollarOrDollarIn
1057
+ | DeploymentStreamDollarOrDollarNin
1058
+ | DeploymentStreamDollarOrDollarExists;
1059
+ }
1060
+ >;
1061
+ };
1062
+
1063
+ /**
1064
+ * Exists
1065
+ */
1066
+ export type DeploymentStreamDollarAndDollarExists = {
1067
+ dollarExists: boolean;
1068
+ };
1069
+
1070
+ export type DeploymentStreamDollarAndDeploymentsDollarNin =
1071
+ | string
1072
+ | number
1073
+ | boolean;
1074
+
1075
+ /**
1076
+ * Not in
1077
+ */
1078
+ export type DeploymentStreamDollarAndDollarNin = {
1079
+ dollarNin: Array<string | number | boolean>;
1080
+ };
1081
+
1082
+ export type DeploymentStreamDollarAndDeploymentsDollarIn =
1083
+ | string
1084
+ | number
1085
+ | boolean;
1086
+
1087
+ /**
1088
+ * In
1089
+ */
1090
+ export type DeploymentStreamDollarAndDollarIn = {
1091
+ dollarIn: Array<string | number | boolean>;
1092
+ };
1093
+
1094
+ /**
1095
+ * Less than or equal to
1096
+ */
1097
+ export type DeploymentStreamDollarAndDollarLte = {
1098
+ dollarLte: number;
1099
+ };
1100
+
1101
+ /**
1102
+ * Less than
1103
+ */
1104
+ export type DeploymentStreamDollarAndDollarLt = {
1105
+ dollarLt: number;
1106
+ };
1107
+
1108
+ /**
1109
+ * Greater than or equal to
1110
+ */
1111
+ export type DeploymentStreamDollarAndDollarGte = {
1112
+ dollarGte: number;
1113
+ };
1114
+
1115
+ export type DeploymentStreamDollarAnd3 = {
1116
+ dollarGt: number;
1117
+ };
1118
+
1119
+ export type DeploymentStreamDollarAndDeploymentsDollarNe =
1120
+ | string
1121
+ | number
1122
+ | boolean;
1123
+
1124
+ /**
1125
+ * Not equal to
1126
+ */
1127
+ export type DeploymentStreamDollarAndDollarNe = {
1128
+ dollarNe: string | number | boolean;
1129
+ };
1130
+
1131
+ export type DeploymentStreamDollarAndDeploymentsDollarEq =
1132
+ | string
1133
+ | number
1134
+ | boolean;
1135
+
1136
+ /**
1137
+ * Equal to
1138
+ */
1139
+ export type DeploymentStreamDollarAndDollarEq = {
1140
+ dollarEq: string | number | boolean;
1141
+ };
1142
+
1143
+ export type DeploymentStreamKnowledgeFilterDeploymentsDollarAnd =
1144
+ | DeploymentStreamDollarAndDollarEq
1145
+ | DeploymentStreamDollarAndDollarNe
1146
+ | DeploymentStreamDollarAnd3
1147
+ | DeploymentStreamDollarAndDollarGte
1148
+ | DeploymentStreamDollarAndDollarLt
1149
+ | DeploymentStreamDollarAndDollarLte
1150
+ | DeploymentStreamDollarAndDollarIn
1151
+ | DeploymentStreamDollarAndDollarNin
1152
+ | DeploymentStreamDollarAndDollarExists;
1153
+
1154
+ /**
1155
+ * And
1156
+ */
1157
+ export type DeploymentStreamKnowledgeFilterDollarAnd = {
1158
+ dollarAnd: Array<
1159
+ {
1160
+ [k: string]:
1161
+ | DeploymentStreamDollarAndDollarEq
1162
+ | DeploymentStreamDollarAndDollarNe
1163
+ | DeploymentStreamDollarAnd3
1164
+ | DeploymentStreamDollarAndDollarGte
1165
+ | DeploymentStreamDollarAndDollarLt
1166
+ | DeploymentStreamDollarAndDollarLte
1167
+ | DeploymentStreamDollarAndDollarIn
1168
+ | DeploymentStreamDollarAndDollarNin
1169
+ | DeploymentStreamDollarAndDollarExists;
1170
+ }
1171
+ >;
1172
+ };
1173
+
1174
+ /**
1175
+ * Exists
1176
+ */
1177
+ export type OneDollarExists = {
1178
+ dollarExists: boolean;
1179
+ };
1180
+
1181
+ export type DeploymentStream1DeploymentsDollarNin = string | number | boolean;
1182
+
1183
+ /**
1184
+ * Not in
1185
+ */
1186
+ export type DeploymentStream1DollarNin = {
1187
+ dollarNin: Array<string | number | boolean>;
1188
+ };
1189
+
1190
+ export type DeploymentStream1DeploymentsDollarIn = string | number | boolean;
1191
+
1192
+ /**
1193
+ * In
1194
+ */
1195
+ export type DeploymentStream1DollarIn = {
1196
+ dollarIn: Array<string | number | boolean>;
1197
+ };
1198
+
1199
+ /**
1200
+ * Less than or equal to
1201
+ */
1202
+ export type OneDollarLte = {
1203
+ dollarLte: number;
1204
+ };
1205
+
1206
+ /**
1207
+ * Less than
1208
+ */
1209
+ export type OneDollarLt = {
1210
+ dollarLt: number;
1211
+ };
1212
+
1213
+ /**
1214
+ * Greater than or equal to
1215
+ */
1216
+ export type OneDollarGte = {
1217
+ dollarGte: number;
1218
+ };
1219
+
1220
+ export type DeploymentStream13 = {
1221
+ dollarGt: number;
1222
+ };
1223
+
1224
+ export type DeploymentStream1DeploymentsDollarNe = string | number | boolean;
1225
+
1226
+ /**
1227
+ * Not equal to
1228
+ */
1229
+ export type DeploymentStream1DollarNe = {
1230
+ dollarNe: string | number | boolean;
1231
+ };
1232
+
1233
+ export type DeploymentStream1DeploymentsDollarEq = string | number | boolean;
1234
+
1235
+ /**
1236
+ * Equal to
1237
+ */
1238
+ export type DeploymentStream1DollarEq = {
1239
+ dollarEq: string | number | boolean;
1240
+ };
1241
+
1242
+ export type DeploymentStreamKnowledgeFilter1 =
1243
+ | DeploymentStream1DollarEq
1244
+ | DeploymentStream1DollarNe
1245
+ | DeploymentStream13
1246
+ | OneDollarGte
1247
+ | OneDollarLt
1248
+ | OneDollarLte
1249
+ | DeploymentStream1DollarIn
1250
+ | DeploymentStream1DollarNin
1251
+ | OneDollarExists;
1252
+
1253
+ /**
1254
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1255
+ */
1256
+ export type DeploymentStreamKnowledgeFilter =
1257
+ | DeploymentStreamKnowledgeFilterDollarAnd
1258
+ | DeploymentStreamKnowledgeFilterDollarOr
1259
+ | {
1260
+ [k: string]:
1261
+ | DeploymentStream1DollarEq
1262
+ | DeploymentStream1DollarNe
1263
+ | DeploymentStream13
1264
+ | OneDollarGte
1265
+ | OneDollarLt
1266
+ | OneDollarLte
1267
+ | DeploymentStream1DollarIn
1268
+ | DeploymentStream1DollarNin
1269
+ | OneDollarExists;
1270
+ };
1271
+
952
1272
  export type DeploymentStreamRequestBody = {
953
1273
  /**
954
1274
  * The deployment key to invoke
@@ -1004,6 +1324,25 @@ export type DeploymentStreamRequestBody = {
1004
1324
  documents?: Array<DeploymentStreamDocuments> | undefined;
1005
1325
  invokeOptions?: DeploymentStreamInvokeOptions | undefined;
1006
1326
  thread?: DeploymentStreamThread | undefined;
1327
+ /**
1328
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1329
+ */
1330
+ knowledgeFilter?:
1331
+ | DeploymentStreamKnowledgeFilterDollarAnd
1332
+ | DeploymentStreamKnowledgeFilterDollarOr
1333
+ | {
1334
+ [k: string]:
1335
+ | DeploymentStream1DollarEq
1336
+ | DeploymentStream1DollarNe
1337
+ | DeploymentStream13
1338
+ | OneDollarGte
1339
+ | OneDollarLt
1340
+ | OneDollarLte
1341
+ | DeploymentStream1DollarIn
1342
+ | DeploymentStream1DollarNin
1343
+ | OneDollarExists;
1344
+ }
1345
+ | undefined;
1007
1346
  };
1008
1347
 
1009
1348
  /**
@@ -5474,121 +5813,3205 @@ export function deploymentStreamThreadFromJSON(
5474
5813
  }
5475
5814
 
5476
5815
  /** @internal */
5477
- export const DeploymentStreamRequestBody$inboundSchema: z.ZodType<
5478
- DeploymentStreamRequestBody,
5816
+ export const DeploymentStreamDollarOrDollarExists$inboundSchema: z.ZodType<
5817
+ DeploymentStreamDollarOrDollarExists,
5479
5818
  z.ZodTypeDef,
5480
5819
  unknown
5481
5820
  > = z.object({
5482
- key: z.string(),
5483
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
5484
- context: z.record(z.any()).optional(),
5485
- prefix_messages: z.array(
5486
- z.union([
5487
- z.lazy(() => PrefixMessagesDeveloperMessage$inboundSchema),
5488
- z.lazy(() => PrefixMessagesSystemMessage$inboundSchema),
5489
- z.lazy(() => PrefixMessagesUserMessage$inboundSchema),
5490
- z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
5491
- z.lazy(() => PrefixMessagesAssistantMessage$inboundSchema),
5492
- ]),
5493
- ).optional(),
5494
- messages: z.array(
5495
- z.union([
5496
- z.lazy(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
5497
- z.lazy(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
5498
- z.lazy(() => DeploymentStreamMessagesUserMessage$inboundSchema),
5499
- z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
5500
- z.lazy(() => DeploymentStreamMessagesAssistantMessage$inboundSchema),
5501
- ]),
5502
- ).optional(),
5503
- file_ids: z.array(z.string()).optional(),
5504
- metadata: z.record(z.any()).optional(),
5505
- extra_params: z.record(z.any()).optional(),
5506
- documents: z.array(z.lazy(() => DeploymentStreamDocuments$inboundSchema))
5507
- .optional(),
5508
- invoke_options: z.lazy(() => DeploymentStreamInvokeOptions$inboundSchema)
5509
- .optional(),
5510
- thread: z.lazy(() => DeploymentStreamThread$inboundSchema).optional(),
5821
+ $exists: z.boolean(),
5511
5822
  }).transform((v) => {
5512
5823
  return remap$(v, {
5513
- "prefix_messages": "prefixMessages",
5514
- "file_ids": "fileIds",
5515
- "extra_params": "extraParams",
5516
- "invoke_options": "invokeOptions",
5824
+ "$exists": "dollarExists",
5517
5825
  });
5518
5826
  });
5519
5827
 
5520
5828
  /** @internal */
5521
- export type DeploymentStreamRequestBody$Outbound = {
5522
- key: string;
5523
- inputs?: { [k: string]: string | number | boolean } | undefined;
5524
- context?: { [k: string]: any } | undefined;
5525
- prefix_messages?:
5526
- | Array<
5527
- | PrefixMessagesDeveloperMessage$Outbound
5528
- | PrefixMessagesSystemMessage$Outbound
5529
- | PrefixMessagesUserMessage$Outbound
5530
- | PrefixMessagesToolMessage$Outbound
5531
- | PrefixMessagesAssistantMessage$Outbound
5532
- >
5533
- | undefined;
5534
- messages?:
5535
- | Array<
5536
- | DeploymentStreamMessagesDeveloperMessage$Outbound
5537
- | DeploymentStreamMessagesSystemMessage$Outbound
5538
- | DeploymentStreamMessagesUserMessage$Outbound
5539
- | DeploymentStreamMessagesToolMessage$Outbound
5540
- | DeploymentStreamMessagesAssistantMessage$Outbound
5541
- >
5542
- | undefined;
5543
- file_ids?: Array<string> | undefined;
5544
- metadata?: { [k: string]: any } | undefined;
5545
- extra_params?: { [k: string]: any } | undefined;
5546
- documents?: Array<DeploymentStreamDocuments$Outbound> | undefined;
5547
- invoke_options?: DeploymentStreamInvokeOptions$Outbound | undefined;
5548
- thread?: DeploymentStreamThread$Outbound | undefined;
5829
+ export type DeploymentStreamDollarOrDollarExists$Outbound = {
5830
+ $exists: boolean;
5549
5831
  };
5550
5832
 
5551
5833
  /** @internal */
5552
- export const DeploymentStreamRequestBody$outboundSchema: z.ZodType<
5553
- DeploymentStreamRequestBody$Outbound,
5834
+ export const DeploymentStreamDollarOrDollarExists$outboundSchema: z.ZodType<
5835
+ DeploymentStreamDollarOrDollarExists$Outbound,
5554
5836
  z.ZodTypeDef,
5555
- DeploymentStreamRequestBody
5837
+ DeploymentStreamDollarOrDollarExists
5556
5838
  > = z.object({
5557
- key: z.string(),
5558
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
5559
- context: z.record(z.any()).optional(),
5560
- prefixMessages: z.array(
5561
- z.union([
5562
- z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
5563
- z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
5564
- z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
5565
- z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
5566
- z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
5567
- ]),
5568
- ).optional(),
5569
- messages: z.array(
5570
- z.union([
5571
- z.lazy(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
5572
- z.lazy(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
5573
- z.lazy(() => DeploymentStreamMessagesUserMessage$outboundSchema),
5574
- z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
5575
- z.lazy(() => DeploymentStreamMessagesAssistantMessage$outboundSchema),
5576
- ]),
5577
- ).optional(),
5578
- fileIds: z.array(z.string()).optional(),
5579
- metadata: z.record(z.any()).optional(),
5580
- extraParams: z.record(z.any()).optional(),
5581
- documents: z.array(z.lazy(() => DeploymentStreamDocuments$outboundSchema))
5582
- .optional(),
5583
- invokeOptions: z.lazy(() => DeploymentStreamInvokeOptions$outboundSchema)
5584
- .optional(),
5585
- thread: z.lazy(() => DeploymentStreamThread$outboundSchema).optional(),
5839
+ dollarExists: z.boolean(),
5840
+ }).transform((v) => {
5841
+ return remap$(v, {
5842
+ dollarExists: "$exists",
5843
+ });
5844
+ });
5845
+
5846
+ /**
5847
+ * @internal
5848
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5849
+ */
5850
+ export namespace DeploymentStreamDollarOrDollarExists$ {
5851
+ /** @deprecated use `DeploymentStreamDollarOrDollarExists$inboundSchema` instead. */
5852
+ export const inboundSchema =
5853
+ DeploymentStreamDollarOrDollarExists$inboundSchema;
5854
+ /** @deprecated use `DeploymentStreamDollarOrDollarExists$outboundSchema` instead. */
5855
+ export const outboundSchema =
5856
+ DeploymentStreamDollarOrDollarExists$outboundSchema;
5857
+ /** @deprecated use `DeploymentStreamDollarOrDollarExists$Outbound` instead. */
5858
+ export type Outbound = DeploymentStreamDollarOrDollarExists$Outbound;
5859
+ }
5860
+
5861
+ export function deploymentStreamDollarOrDollarExistsToJSON(
5862
+ deploymentStreamDollarOrDollarExists: DeploymentStreamDollarOrDollarExists,
5863
+ ): string {
5864
+ return JSON.stringify(
5865
+ DeploymentStreamDollarOrDollarExists$outboundSchema.parse(
5866
+ deploymentStreamDollarOrDollarExists,
5867
+ ),
5868
+ );
5869
+ }
5870
+
5871
+ export function deploymentStreamDollarOrDollarExistsFromJSON(
5872
+ jsonString: string,
5873
+ ): SafeParseResult<DeploymentStreamDollarOrDollarExists, SDKValidationError> {
5874
+ return safeParse(
5875
+ jsonString,
5876
+ (x) =>
5877
+ DeploymentStreamDollarOrDollarExists$inboundSchema.parse(JSON.parse(x)),
5878
+ `Failed to parse 'DeploymentStreamDollarOrDollarExists' from JSON`,
5879
+ );
5880
+ }
5881
+
5882
+ /** @internal */
5883
+ export const DeploymentStreamDollarOrDeploymentsDollarNin$inboundSchema:
5884
+ z.ZodType<
5885
+ DeploymentStreamDollarOrDeploymentsDollarNin,
5886
+ z.ZodTypeDef,
5887
+ unknown
5888
+ > = z.union([z.string(), z.number(), z.boolean()]);
5889
+
5890
+ /** @internal */
5891
+ export type DeploymentStreamDollarOrDeploymentsDollarNin$Outbound =
5892
+ | string
5893
+ | number
5894
+ | boolean;
5895
+
5896
+ /** @internal */
5897
+ export const DeploymentStreamDollarOrDeploymentsDollarNin$outboundSchema:
5898
+ z.ZodType<
5899
+ DeploymentStreamDollarOrDeploymentsDollarNin$Outbound,
5900
+ z.ZodTypeDef,
5901
+ DeploymentStreamDollarOrDeploymentsDollarNin
5902
+ > = z.union([z.string(), z.number(), z.boolean()]);
5903
+
5904
+ /**
5905
+ * @internal
5906
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5907
+ */
5908
+ export namespace DeploymentStreamDollarOrDeploymentsDollarNin$ {
5909
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNin$inboundSchema` instead. */
5910
+ export const inboundSchema =
5911
+ DeploymentStreamDollarOrDeploymentsDollarNin$inboundSchema;
5912
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNin$outboundSchema` instead. */
5913
+ export const outboundSchema =
5914
+ DeploymentStreamDollarOrDeploymentsDollarNin$outboundSchema;
5915
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNin$Outbound` instead. */
5916
+ export type Outbound = DeploymentStreamDollarOrDeploymentsDollarNin$Outbound;
5917
+ }
5918
+
5919
+ export function deploymentStreamDollarOrDeploymentsDollarNinToJSON(
5920
+ deploymentStreamDollarOrDeploymentsDollarNin:
5921
+ DeploymentStreamDollarOrDeploymentsDollarNin,
5922
+ ): string {
5923
+ return JSON.stringify(
5924
+ DeploymentStreamDollarOrDeploymentsDollarNin$outboundSchema.parse(
5925
+ deploymentStreamDollarOrDeploymentsDollarNin,
5926
+ ),
5927
+ );
5928
+ }
5929
+
5930
+ export function deploymentStreamDollarOrDeploymentsDollarNinFromJSON(
5931
+ jsonString: string,
5932
+ ): SafeParseResult<
5933
+ DeploymentStreamDollarOrDeploymentsDollarNin,
5934
+ SDKValidationError
5935
+ > {
5936
+ return safeParse(
5937
+ jsonString,
5938
+ (x) =>
5939
+ DeploymentStreamDollarOrDeploymentsDollarNin$inboundSchema.parse(
5940
+ JSON.parse(x),
5941
+ ),
5942
+ `Failed to parse 'DeploymentStreamDollarOrDeploymentsDollarNin' from JSON`,
5943
+ );
5944
+ }
5945
+
5946
+ /** @internal */
5947
+ export const DeploymentStreamDollarOrDollarNin$inboundSchema: z.ZodType<
5948
+ DeploymentStreamDollarOrDollarNin,
5949
+ z.ZodTypeDef,
5950
+ unknown
5951
+ > = z.object({
5952
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5953
+ }).transform((v) => {
5954
+ return remap$(v, {
5955
+ "$nin": "dollarNin",
5956
+ });
5957
+ });
5958
+
5959
+ /** @internal */
5960
+ export type DeploymentStreamDollarOrDollarNin$Outbound = {
5961
+ $nin: Array<string | number | boolean>;
5962
+ };
5963
+
5964
+ /** @internal */
5965
+ export const DeploymentStreamDollarOrDollarNin$outboundSchema: z.ZodType<
5966
+ DeploymentStreamDollarOrDollarNin$Outbound,
5967
+ z.ZodTypeDef,
5968
+ DeploymentStreamDollarOrDollarNin
5969
+ > = z.object({
5970
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5971
+ }).transform((v) => {
5972
+ return remap$(v, {
5973
+ dollarNin: "$nin",
5974
+ });
5975
+ });
5976
+
5977
+ /**
5978
+ * @internal
5979
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5980
+ */
5981
+ export namespace DeploymentStreamDollarOrDollarNin$ {
5982
+ /** @deprecated use `DeploymentStreamDollarOrDollarNin$inboundSchema` instead. */
5983
+ export const inboundSchema = DeploymentStreamDollarOrDollarNin$inboundSchema;
5984
+ /** @deprecated use `DeploymentStreamDollarOrDollarNin$outboundSchema` instead. */
5985
+ export const outboundSchema =
5986
+ DeploymentStreamDollarOrDollarNin$outboundSchema;
5987
+ /** @deprecated use `DeploymentStreamDollarOrDollarNin$Outbound` instead. */
5988
+ export type Outbound = DeploymentStreamDollarOrDollarNin$Outbound;
5989
+ }
5990
+
5991
+ export function deploymentStreamDollarOrDollarNinToJSON(
5992
+ deploymentStreamDollarOrDollarNin: DeploymentStreamDollarOrDollarNin,
5993
+ ): string {
5994
+ return JSON.stringify(
5995
+ DeploymentStreamDollarOrDollarNin$outboundSchema.parse(
5996
+ deploymentStreamDollarOrDollarNin,
5997
+ ),
5998
+ );
5999
+ }
6000
+
6001
+ export function deploymentStreamDollarOrDollarNinFromJSON(
6002
+ jsonString: string,
6003
+ ): SafeParseResult<DeploymentStreamDollarOrDollarNin, SDKValidationError> {
6004
+ return safeParse(
6005
+ jsonString,
6006
+ (x) => DeploymentStreamDollarOrDollarNin$inboundSchema.parse(JSON.parse(x)),
6007
+ `Failed to parse 'DeploymentStreamDollarOrDollarNin' from JSON`,
6008
+ );
6009
+ }
6010
+
6011
+ /** @internal */
6012
+ export const DeploymentStreamDollarOrDeploymentsDollarIn$inboundSchema:
6013
+ z.ZodType<
6014
+ DeploymentStreamDollarOrDeploymentsDollarIn,
6015
+ z.ZodTypeDef,
6016
+ unknown
6017
+ > = z.union([z.string(), z.number(), z.boolean()]);
6018
+
6019
+ /** @internal */
6020
+ export type DeploymentStreamDollarOrDeploymentsDollarIn$Outbound =
6021
+ | string
6022
+ | number
6023
+ | boolean;
6024
+
6025
+ /** @internal */
6026
+ export const DeploymentStreamDollarOrDeploymentsDollarIn$outboundSchema:
6027
+ z.ZodType<
6028
+ DeploymentStreamDollarOrDeploymentsDollarIn$Outbound,
6029
+ z.ZodTypeDef,
6030
+ DeploymentStreamDollarOrDeploymentsDollarIn
6031
+ > = z.union([z.string(), z.number(), z.boolean()]);
6032
+
6033
+ /**
6034
+ * @internal
6035
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6036
+ */
6037
+ export namespace DeploymentStreamDollarOrDeploymentsDollarIn$ {
6038
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarIn$inboundSchema` instead. */
6039
+ export const inboundSchema =
6040
+ DeploymentStreamDollarOrDeploymentsDollarIn$inboundSchema;
6041
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarIn$outboundSchema` instead. */
6042
+ export const outboundSchema =
6043
+ DeploymentStreamDollarOrDeploymentsDollarIn$outboundSchema;
6044
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarIn$Outbound` instead. */
6045
+ export type Outbound = DeploymentStreamDollarOrDeploymentsDollarIn$Outbound;
6046
+ }
6047
+
6048
+ export function deploymentStreamDollarOrDeploymentsDollarInToJSON(
6049
+ deploymentStreamDollarOrDeploymentsDollarIn:
6050
+ DeploymentStreamDollarOrDeploymentsDollarIn,
6051
+ ): string {
6052
+ return JSON.stringify(
6053
+ DeploymentStreamDollarOrDeploymentsDollarIn$outboundSchema.parse(
6054
+ deploymentStreamDollarOrDeploymentsDollarIn,
6055
+ ),
6056
+ );
6057
+ }
6058
+
6059
+ export function deploymentStreamDollarOrDeploymentsDollarInFromJSON(
6060
+ jsonString: string,
6061
+ ): SafeParseResult<
6062
+ DeploymentStreamDollarOrDeploymentsDollarIn,
6063
+ SDKValidationError
6064
+ > {
6065
+ return safeParse(
6066
+ jsonString,
6067
+ (x) =>
6068
+ DeploymentStreamDollarOrDeploymentsDollarIn$inboundSchema.parse(
6069
+ JSON.parse(x),
6070
+ ),
6071
+ `Failed to parse 'DeploymentStreamDollarOrDeploymentsDollarIn' from JSON`,
6072
+ );
6073
+ }
6074
+
6075
+ /** @internal */
6076
+ export const DeploymentStreamDollarOrDollarIn$inboundSchema: z.ZodType<
6077
+ DeploymentStreamDollarOrDollarIn,
6078
+ z.ZodTypeDef,
6079
+ unknown
6080
+ > = z.object({
6081
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
6082
+ }).transform((v) => {
6083
+ return remap$(v, {
6084
+ "$in": "dollarIn",
6085
+ });
6086
+ });
6087
+
6088
+ /** @internal */
6089
+ export type DeploymentStreamDollarOrDollarIn$Outbound = {
6090
+ $in: Array<string | number | boolean>;
6091
+ };
6092
+
6093
+ /** @internal */
6094
+ export const DeploymentStreamDollarOrDollarIn$outboundSchema: z.ZodType<
6095
+ DeploymentStreamDollarOrDollarIn$Outbound,
6096
+ z.ZodTypeDef,
6097
+ DeploymentStreamDollarOrDollarIn
6098
+ > = z.object({
6099
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
6100
+ }).transform((v) => {
6101
+ return remap$(v, {
6102
+ dollarIn: "$in",
6103
+ });
6104
+ });
6105
+
6106
+ /**
6107
+ * @internal
6108
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6109
+ */
6110
+ export namespace DeploymentStreamDollarOrDollarIn$ {
6111
+ /** @deprecated use `DeploymentStreamDollarOrDollarIn$inboundSchema` instead. */
6112
+ export const inboundSchema = DeploymentStreamDollarOrDollarIn$inboundSchema;
6113
+ /** @deprecated use `DeploymentStreamDollarOrDollarIn$outboundSchema` instead. */
6114
+ export const outboundSchema = DeploymentStreamDollarOrDollarIn$outboundSchema;
6115
+ /** @deprecated use `DeploymentStreamDollarOrDollarIn$Outbound` instead. */
6116
+ export type Outbound = DeploymentStreamDollarOrDollarIn$Outbound;
6117
+ }
6118
+
6119
+ export function deploymentStreamDollarOrDollarInToJSON(
6120
+ deploymentStreamDollarOrDollarIn: DeploymentStreamDollarOrDollarIn,
6121
+ ): string {
6122
+ return JSON.stringify(
6123
+ DeploymentStreamDollarOrDollarIn$outboundSchema.parse(
6124
+ deploymentStreamDollarOrDollarIn,
6125
+ ),
6126
+ );
6127
+ }
6128
+
6129
+ export function deploymentStreamDollarOrDollarInFromJSON(
6130
+ jsonString: string,
6131
+ ): SafeParseResult<DeploymentStreamDollarOrDollarIn, SDKValidationError> {
6132
+ return safeParse(
6133
+ jsonString,
6134
+ (x) => DeploymentStreamDollarOrDollarIn$inboundSchema.parse(JSON.parse(x)),
6135
+ `Failed to parse 'DeploymentStreamDollarOrDollarIn' from JSON`,
6136
+ );
6137
+ }
6138
+
6139
+ /** @internal */
6140
+ export const DeploymentStreamDollarOrDollarLte$inboundSchema: z.ZodType<
6141
+ DeploymentStreamDollarOrDollarLte,
6142
+ z.ZodTypeDef,
6143
+ unknown
6144
+ > = z.object({
6145
+ $lte: z.number(),
6146
+ }).transform((v) => {
6147
+ return remap$(v, {
6148
+ "$lte": "dollarLte",
6149
+ });
6150
+ });
6151
+
6152
+ /** @internal */
6153
+ export type DeploymentStreamDollarOrDollarLte$Outbound = {
6154
+ $lte: number;
6155
+ };
6156
+
6157
+ /** @internal */
6158
+ export const DeploymentStreamDollarOrDollarLte$outboundSchema: z.ZodType<
6159
+ DeploymentStreamDollarOrDollarLte$Outbound,
6160
+ z.ZodTypeDef,
6161
+ DeploymentStreamDollarOrDollarLte
6162
+ > = z.object({
6163
+ dollarLte: z.number(),
6164
+ }).transform((v) => {
6165
+ return remap$(v, {
6166
+ dollarLte: "$lte",
6167
+ });
6168
+ });
6169
+
6170
+ /**
6171
+ * @internal
6172
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6173
+ */
6174
+ export namespace DeploymentStreamDollarOrDollarLte$ {
6175
+ /** @deprecated use `DeploymentStreamDollarOrDollarLte$inboundSchema` instead. */
6176
+ export const inboundSchema = DeploymentStreamDollarOrDollarLte$inboundSchema;
6177
+ /** @deprecated use `DeploymentStreamDollarOrDollarLte$outboundSchema` instead. */
6178
+ export const outboundSchema =
6179
+ DeploymentStreamDollarOrDollarLte$outboundSchema;
6180
+ /** @deprecated use `DeploymentStreamDollarOrDollarLte$Outbound` instead. */
6181
+ export type Outbound = DeploymentStreamDollarOrDollarLte$Outbound;
6182
+ }
6183
+
6184
+ export function deploymentStreamDollarOrDollarLteToJSON(
6185
+ deploymentStreamDollarOrDollarLte: DeploymentStreamDollarOrDollarLte,
6186
+ ): string {
6187
+ return JSON.stringify(
6188
+ DeploymentStreamDollarOrDollarLte$outboundSchema.parse(
6189
+ deploymentStreamDollarOrDollarLte,
6190
+ ),
6191
+ );
6192
+ }
6193
+
6194
+ export function deploymentStreamDollarOrDollarLteFromJSON(
6195
+ jsonString: string,
6196
+ ): SafeParseResult<DeploymentStreamDollarOrDollarLte, SDKValidationError> {
6197
+ return safeParse(
6198
+ jsonString,
6199
+ (x) => DeploymentStreamDollarOrDollarLte$inboundSchema.parse(JSON.parse(x)),
6200
+ `Failed to parse 'DeploymentStreamDollarOrDollarLte' from JSON`,
6201
+ );
6202
+ }
6203
+
6204
+ /** @internal */
6205
+ export const DeploymentStreamDollarOrDollarLt$inboundSchema: z.ZodType<
6206
+ DeploymentStreamDollarOrDollarLt,
6207
+ z.ZodTypeDef,
6208
+ unknown
6209
+ > = z.object({
6210
+ $lt: z.number(),
6211
+ }).transform((v) => {
6212
+ return remap$(v, {
6213
+ "$lt": "dollarLt",
6214
+ });
6215
+ });
6216
+
6217
+ /** @internal */
6218
+ export type DeploymentStreamDollarOrDollarLt$Outbound = {
6219
+ $lt: number;
6220
+ };
6221
+
6222
+ /** @internal */
6223
+ export const DeploymentStreamDollarOrDollarLt$outboundSchema: z.ZodType<
6224
+ DeploymentStreamDollarOrDollarLt$Outbound,
6225
+ z.ZodTypeDef,
6226
+ DeploymentStreamDollarOrDollarLt
6227
+ > = z.object({
6228
+ dollarLt: z.number(),
6229
+ }).transform((v) => {
6230
+ return remap$(v, {
6231
+ dollarLt: "$lt",
6232
+ });
6233
+ });
6234
+
6235
+ /**
6236
+ * @internal
6237
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6238
+ */
6239
+ export namespace DeploymentStreamDollarOrDollarLt$ {
6240
+ /** @deprecated use `DeploymentStreamDollarOrDollarLt$inboundSchema` instead. */
6241
+ export const inboundSchema = DeploymentStreamDollarOrDollarLt$inboundSchema;
6242
+ /** @deprecated use `DeploymentStreamDollarOrDollarLt$outboundSchema` instead. */
6243
+ export const outboundSchema = DeploymentStreamDollarOrDollarLt$outboundSchema;
6244
+ /** @deprecated use `DeploymentStreamDollarOrDollarLt$Outbound` instead. */
6245
+ export type Outbound = DeploymentStreamDollarOrDollarLt$Outbound;
6246
+ }
6247
+
6248
+ export function deploymentStreamDollarOrDollarLtToJSON(
6249
+ deploymentStreamDollarOrDollarLt: DeploymentStreamDollarOrDollarLt,
6250
+ ): string {
6251
+ return JSON.stringify(
6252
+ DeploymentStreamDollarOrDollarLt$outboundSchema.parse(
6253
+ deploymentStreamDollarOrDollarLt,
6254
+ ),
6255
+ );
6256
+ }
6257
+
6258
+ export function deploymentStreamDollarOrDollarLtFromJSON(
6259
+ jsonString: string,
6260
+ ): SafeParseResult<DeploymentStreamDollarOrDollarLt, SDKValidationError> {
6261
+ return safeParse(
6262
+ jsonString,
6263
+ (x) => DeploymentStreamDollarOrDollarLt$inboundSchema.parse(JSON.parse(x)),
6264
+ `Failed to parse 'DeploymentStreamDollarOrDollarLt' from JSON`,
6265
+ );
6266
+ }
6267
+
6268
+ /** @internal */
6269
+ export const DeploymentStreamDollarOrDollarGte$inboundSchema: z.ZodType<
6270
+ DeploymentStreamDollarOrDollarGte,
6271
+ z.ZodTypeDef,
6272
+ unknown
6273
+ > = z.object({
6274
+ $gte: z.number(),
6275
+ }).transform((v) => {
6276
+ return remap$(v, {
6277
+ "$gte": "dollarGte",
6278
+ });
6279
+ });
6280
+
6281
+ /** @internal */
6282
+ export type DeploymentStreamDollarOrDollarGte$Outbound = {
6283
+ $gte: number;
6284
+ };
6285
+
6286
+ /** @internal */
6287
+ export const DeploymentStreamDollarOrDollarGte$outboundSchema: z.ZodType<
6288
+ DeploymentStreamDollarOrDollarGte$Outbound,
6289
+ z.ZodTypeDef,
6290
+ DeploymentStreamDollarOrDollarGte
6291
+ > = z.object({
6292
+ dollarGte: z.number(),
6293
+ }).transform((v) => {
6294
+ return remap$(v, {
6295
+ dollarGte: "$gte",
6296
+ });
6297
+ });
6298
+
6299
+ /**
6300
+ * @internal
6301
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6302
+ */
6303
+ export namespace DeploymentStreamDollarOrDollarGte$ {
6304
+ /** @deprecated use `DeploymentStreamDollarOrDollarGte$inboundSchema` instead. */
6305
+ export const inboundSchema = DeploymentStreamDollarOrDollarGte$inboundSchema;
6306
+ /** @deprecated use `DeploymentStreamDollarOrDollarGte$outboundSchema` instead. */
6307
+ export const outboundSchema =
6308
+ DeploymentStreamDollarOrDollarGte$outboundSchema;
6309
+ /** @deprecated use `DeploymentStreamDollarOrDollarGte$Outbound` instead. */
6310
+ export type Outbound = DeploymentStreamDollarOrDollarGte$Outbound;
6311
+ }
6312
+
6313
+ export function deploymentStreamDollarOrDollarGteToJSON(
6314
+ deploymentStreamDollarOrDollarGte: DeploymentStreamDollarOrDollarGte,
6315
+ ): string {
6316
+ return JSON.stringify(
6317
+ DeploymentStreamDollarOrDollarGte$outboundSchema.parse(
6318
+ deploymentStreamDollarOrDollarGte,
6319
+ ),
6320
+ );
6321
+ }
6322
+
6323
+ export function deploymentStreamDollarOrDollarGteFromJSON(
6324
+ jsonString: string,
6325
+ ): SafeParseResult<DeploymentStreamDollarOrDollarGte, SDKValidationError> {
6326
+ return safeParse(
6327
+ jsonString,
6328
+ (x) => DeploymentStreamDollarOrDollarGte$inboundSchema.parse(JSON.parse(x)),
6329
+ `Failed to parse 'DeploymentStreamDollarOrDollarGte' from JSON`,
6330
+ );
6331
+ }
6332
+
6333
+ /** @internal */
6334
+ export const DeploymentStreamDollarOr3$inboundSchema: z.ZodType<
6335
+ DeploymentStreamDollarOr3,
6336
+ z.ZodTypeDef,
6337
+ unknown
6338
+ > = z.object({
6339
+ $gt: z.number(),
6340
+ }).transform((v) => {
6341
+ return remap$(v, {
6342
+ "$gt": "dollarGt",
6343
+ });
6344
+ });
6345
+
6346
+ /** @internal */
6347
+ export type DeploymentStreamDollarOr3$Outbound = {
6348
+ $gt: number;
6349
+ };
6350
+
6351
+ /** @internal */
6352
+ export const DeploymentStreamDollarOr3$outboundSchema: z.ZodType<
6353
+ DeploymentStreamDollarOr3$Outbound,
6354
+ z.ZodTypeDef,
6355
+ DeploymentStreamDollarOr3
6356
+ > = z.object({
6357
+ dollarGt: z.number(),
6358
+ }).transform((v) => {
6359
+ return remap$(v, {
6360
+ dollarGt: "$gt",
6361
+ });
6362
+ });
6363
+
6364
+ /**
6365
+ * @internal
6366
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6367
+ */
6368
+ export namespace DeploymentStreamDollarOr3$ {
6369
+ /** @deprecated use `DeploymentStreamDollarOr3$inboundSchema` instead. */
6370
+ export const inboundSchema = DeploymentStreamDollarOr3$inboundSchema;
6371
+ /** @deprecated use `DeploymentStreamDollarOr3$outboundSchema` instead. */
6372
+ export const outboundSchema = DeploymentStreamDollarOr3$outboundSchema;
6373
+ /** @deprecated use `DeploymentStreamDollarOr3$Outbound` instead. */
6374
+ export type Outbound = DeploymentStreamDollarOr3$Outbound;
6375
+ }
6376
+
6377
+ export function deploymentStreamDollarOr3ToJSON(
6378
+ deploymentStreamDollarOr3: DeploymentStreamDollarOr3,
6379
+ ): string {
6380
+ return JSON.stringify(
6381
+ DeploymentStreamDollarOr3$outboundSchema.parse(deploymentStreamDollarOr3),
6382
+ );
6383
+ }
6384
+
6385
+ export function deploymentStreamDollarOr3FromJSON(
6386
+ jsonString: string,
6387
+ ): SafeParseResult<DeploymentStreamDollarOr3, SDKValidationError> {
6388
+ return safeParse(
6389
+ jsonString,
6390
+ (x) => DeploymentStreamDollarOr3$inboundSchema.parse(JSON.parse(x)),
6391
+ `Failed to parse 'DeploymentStreamDollarOr3' from JSON`,
6392
+ );
6393
+ }
6394
+
6395
+ /** @internal */
6396
+ export const DeploymentStreamDollarOrDeploymentsDollarNe$inboundSchema:
6397
+ z.ZodType<
6398
+ DeploymentStreamDollarOrDeploymentsDollarNe,
6399
+ z.ZodTypeDef,
6400
+ unknown
6401
+ > = z.union([z.string(), z.number(), z.boolean()]);
6402
+
6403
+ /** @internal */
6404
+ export type DeploymentStreamDollarOrDeploymentsDollarNe$Outbound =
6405
+ | string
6406
+ | number
6407
+ | boolean;
6408
+
6409
+ /** @internal */
6410
+ export const DeploymentStreamDollarOrDeploymentsDollarNe$outboundSchema:
6411
+ z.ZodType<
6412
+ DeploymentStreamDollarOrDeploymentsDollarNe$Outbound,
6413
+ z.ZodTypeDef,
6414
+ DeploymentStreamDollarOrDeploymentsDollarNe
6415
+ > = z.union([z.string(), z.number(), z.boolean()]);
6416
+
6417
+ /**
6418
+ * @internal
6419
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6420
+ */
6421
+ export namespace DeploymentStreamDollarOrDeploymentsDollarNe$ {
6422
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNe$inboundSchema` instead. */
6423
+ export const inboundSchema =
6424
+ DeploymentStreamDollarOrDeploymentsDollarNe$inboundSchema;
6425
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNe$outboundSchema` instead. */
6426
+ export const outboundSchema =
6427
+ DeploymentStreamDollarOrDeploymentsDollarNe$outboundSchema;
6428
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNe$Outbound` instead. */
6429
+ export type Outbound = DeploymentStreamDollarOrDeploymentsDollarNe$Outbound;
6430
+ }
6431
+
6432
+ export function deploymentStreamDollarOrDeploymentsDollarNeToJSON(
6433
+ deploymentStreamDollarOrDeploymentsDollarNe:
6434
+ DeploymentStreamDollarOrDeploymentsDollarNe,
6435
+ ): string {
6436
+ return JSON.stringify(
6437
+ DeploymentStreamDollarOrDeploymentsDollarNe$outboundSchema.parse(
6438
+ deploymentStreamDollarOrDeploymentsDollarNe,
6439
+ ),
6440
+ );
6441
+ }
6442
+
6443
+ export function deploymentStreamDollarOrDeploymentsDollarNeFromJSON(
6444
+ jsonString: string,
6445
+ ): SafeParseResult<
6446
+ DeploymentStreamDollarOrDeploymentsDollarNe,
6447
+ SDKValidationError
6448
+ > {
6449
+ return safeParse(
6450
+ jsonString,
6451
+ (x) =>
6452
+ DeploymentStreamDollarOrDeploymentsDollarNe$inboundSchema.parse(
6453
+ JSON.parse(x),
6454
+ ),
6455
+ `Failed to parse 'DeploymentStreamDollarOrDeploymentsDollarNe' from JSON`,
6456
+ );
6457
+ }
6458
+
6459
+ /** @internal */
6460
+ export const DeploymentStreamDollarOrDollarNe$inboundSchema: z.ZodType<
6461
+ DeploymentStreamDollarOrDollarNe,
6462
+ z.ZodTypeDef,
6463
+ unknown
6464
+ > = z.object({
6465
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
6466
+ }).transform((v) => {
6467
+ return remap$(v, {
6468
+ "$ne": "dollarNe",
6469
+ });
6470
+ });
6471
+
6472
+ /** @internal */
6473
+ export type DeploymentStreamDollarOrDollarNe$Outbound = {
6474
+ $ne: string | number | boolean;
6475
+ };
6476
+
6477
+ /** @internal */
6478
+ export const DeploymentStreamDollarOrDollarNe$outboundSchema: z.ZodType<
6479
+ DeploymentStreamDollarOrDollarNe$Outbound,
6480
+ z.ZodTypeDef,
6481
+ DeploymentStreamDollarOrDollarNe
6482
+ > = z.object({
6483
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
6484
+ }).transform((v) => {
6485
+ return remap$(v, {
6486
+ dollarNe: "$ne",
6487
+ });
6488
+ });
6489
+
6490
+ /**
6491
+ * @internal
6492
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6493
+ */
6494
+ export namespace DeploymentStreamDollarOrDollarNe$ {
6495
+ /** @deprecated use `DeploymentStreamDollarOrDollarNe$inboundSchema` instead. */
6496
+ export const inboundSchema = DeploymentStreamDollarOrDollarNe$inboundSchema;
6497
+ /** @deprecated use `DeploymentStreamDollarOrDollarNe$outboundSchema` instead. */
6498
+ export const outboundSchema = DeploymentStreamDollarOrDollarNe$outboundSchema;
6499
+ /** @deprecated use `DeploymentStreamDollarOrDollarNe$Outbound` instead. */
6500
+ export type Outbound = DeploymentStreamDollarOrDollarNe$Outbound;
6501
+ }
6502
+
6503
+ export function deploymentStreamDollarOrDollarNeToJSON(
6504
+ deploymentStreamDollarOrDollarNe: DeploymentStreamDollarOrDollarNe,
6505
+ ): string {
6506
+ return JSON.stringify(
6507
+ DeploymentStreamDollarOrDollarNe$outboundSchema.parse(
6508
+ deploymentStreamDollarOrDollarNe,
6509
+ ),
6510
+ );
6511
+ }
6512
+
6513
+ export function deploymentStreamDollarOrDollarNeFromJSON(
6514
+ jsonString: string,
6515
+ ): SafeParseResult<DeploymentStreamDollarOrDollarNe, SDKValidationError> {
6516
+ return safeParse(
6517
+ jsonString,
6518
+ (x) => DeploymentStreamDollarOrDollarNe$inboundSchema.parse(JSON.parse(x)),
6519
+ `Failed to parse 'DeploymentStreamDollarOrDollarNe' from JSON`,
6520
+ );
6521
+ }
6522
+
6523
+ /** @internal */
6524
+ export const DeploymentStreamDollarOrDeploymentsDollarEq$inboundSchema:
6525
+ z.ZodType<
6526
+ DeploymentStreamDollarOrDeploymentsDollarEq,
6527
+ z.ZodTypeDef,
6528
+ unknown
6529
+ > = z.union([z.string(), z.number(), z.boolean()]);
6530
+
6531
+ /** @internal */
6532
+ export type DeploymentStreamDollarOrDeploymentsDollarEq$Outbound =
6533
+ | string
6534
+ | number
6535
+ | boolean;
6536
+
6537
+ /** @internal */
6538
+ export const DeploymentStreamDollarOrDeploymentsDollarEq$outboundSchema:
6539
+ z.ZodType<
6540
+ DeploymentStreamDollarOrDeploymentsDollarEq$Outbound,
6541
+ z.ZodTypeDef,
6542
+ DeploymentStreamDollarOrDeploymentsDollarEq
6543
+ > = z.union([z.string(), z.number(), z.boolean()]);
6544
+
6545
+ /**
6546
+ * @internal
6547
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6548
+ */
6549
+ export namespace DeploymentStreamDollarOrDeploymentsDollarEq$ {
6550
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarEq$inboundSchema` instead. */
6551
+ export const inboundSchema =
6552
+ DeploymentStreamDollarOrDeploymentsDollarEq$inboundSchema;
6553
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarEq$outboundSchema` instead. */
6554
+ export const outboundSchema =
6555
+ DeploymentStreamDollarOrDeploymentsDollarEq$outboundSchema;
6556
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarEq$Outbound` instead. */
6557
+ export type Outbound = DeploymentStreamDollarOrDeploymentsDollarEq$Outbound;
6558
+ }
6559
+
6560
+ export function deploymentStreamDollarOrDeploymentsDollarEqToJSON(
6561
+ deploymentStreamDollarOrDeploymentsDollarEq:
6562
+ DeploymentStreamDollarOrDeploymentsDollarEq,
6563
+ ): string {
6564
+ return JSON.stringify(
6565
+ DeploymentStreamDollarOrDeploymentsDollarEq$outboundSchema.parse(
6566
+ deploymentStreamDollarOrDeploymentsDollarEq,
6567
+ ),
6568
+ );
6569
+ }
6570
+
6571
+ export function deploymentStreamDollarOrDeploymentsDollarEqFromJSON(
6572
+ jsonString: string,
6573
+ ): SafeParseResult<
6574
+ DeploymentStreamDollarOrDeploymentsDollarEq,
6575
+ SDKValidationError
6576
+ > {
6577
+ return safeParse(
6578
+ jsonString,
6579
+ (x) =>
6580
+ DeploymentStreamDollarOrDeploymentsDollarEq$inboundSchema.parse(
6581
+ JSON.parse(x),
6582
+ ),
6583
+ `Failed to parse 'DeploymentStreamDollarOrDeploymentsDollarEq' from JSON`,
6584
+ );
6585
+ }
6586
+
6587
+ /** @internal */
6588
+ export const DeploymentStreamDollarOrDollarEq$inboundSchema: z.ZodType<
6589
+ DeploymentStreamDollarOrDollarEq,
6590
+ z.ZodTypeDef,
6591
+ unknown
6592
+ > = z.object({
6593
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
6594
+ }).transform((v) => {
6595
+ return remap$(v, {
6596
+ "$eq": "dollarEq",
6597
+ });
6598
+ });
6599
+
6600
+ /** @internal */
6601
+ export type DeploymentStreamDollarOrDollarEq$Outbound = {
6602
+ $eq: string | number | boolean;
6603
+ };
6604
+
6605
+ /** @internal */
6606
+ export const DeploymentStreamDollarOrDollarEq$outboundSchema: z.ZodType<
6607
+ DeploymentStreamDollarOrDollarEq$Outbound,
6608
+ z.ZodTypeDef,
6609
+ DeploymentStreamDollarOrDollarEq
6610
+ > = z.object({
6611
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
6612
+ }).transform((v) => {
6613
+ return remap$(v, {
6614
+ dollarEq: "$eq",
6615
+ });
6616
+ });
6617
+
6618
+ /**
6619
+ * @internal
6620
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6621
+ */
6622
+ export namespace DeploymentStreamDollarOrDollarEq$ {
6623
+ /** @deprecated use `DeploymentStreamDollarOrDollarEq$inboundSchema` instead. */
6624
+ export const inboundSchema = DeploymentStreamDollarOrDollarEq$inboundSchema;
6625
+ /** @deprecated use `DeploymentStreamDollarOrDollarEq$outboundSchema` instead. */
6626
+ export const outboundSchema = DeploymentStreamDollarOrDollarEq$outboundSchema;
6627
+ /** @deprecated use `DeploymentStreamDollarOrDollarEq$Outbound` instead. */
6628
+ export type Outbound = DeploymentStreamDollarOrDollarEq$Outbound;
6629
+ }
6630
+
6631
+ export function deploymentStreamDollarOrDollarEqToJSON(
6632
+ deploymentStreamDollarOrDollarEq: DeploymentStreamDollarOrDollarEq,
6633
+ ): string {
6634
+ return JSON.stringify(
6635
+ DeploymentStreamDollarOrDollarEq$outboundSchema.parse(
6636
+ deploymentStreamDollarOrDollarEq,
6637
+ ),
6638
+ );
6639
+ }
6640
+
6641
+ export function deploymentStreamDollarOrDollarEqFromJSON(
6642
+ jsonString: string,
6643
+ ): SafeParseResult<DeploymentStreamDollarOrDollarEq, SDKValidationError> {
6644
+ return safeParse(
6645
+ jsonString,
6646
+ (x) => DeploymentStreamDollarOrDollarEq$inboundSchema.parse(JSON.parse(x)),
6647
+ `Failed to parse 'DeploymentStreamDollarOrDollarEq' from JSON`,
6648
+ );
6649
+ }
6650
+
6651
+ /** @internal */
6652
+ export const DeploymentStreamKnowledgeFilterDeploymentsDollarOr$inboundSchema:
6653
+ z.ZodType<
6654
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr,
6655
+ z.ZodTypeDef,
6656
+ unknown
6657
+ > = z.union([
6658
+ z.lazy(() => DeploymentStreamDollarOrDollarEq$inboundSchema),
6659
+ z.lazy(() => DeploymentStreamDollarOrDollarNe$inboundSchema),
6660
+ z.lazy(() => DeploymentStreamDollarOr3$inboundSchema),
6661
+ z.lazy(() => DeploymentStreamDollarOrDollarGte$inboundSchema),
6662
+ z.lazy(() => DeploymentStreamDollarOrDollarLt$inboundSchema),
6663
+ z.lazy(() => DeploymentStreamDollarOrDollarLte$inboundSchema),
6664
+ z.lazy(() => DeploymentStreamDollarOrDollarIn$inboundSchema),
6665
+ z.lazy(() => DeploymentStreamDollarOrDollarNin$inboundSchema),
6666
+ z.lazy(() => DeploymentStreamDollarOrDollarExists$inboundSchema),
6667
+ ]);
6668
+
6669
+ /** @internal */
6670
+ export type DeploymentStreamKnowledgeFilterDeploymentsDollarOr$Outbound =
6671
+ | DeploymentStreamDollarOrDollarEq$Outbound
6672
+ | DeploymentStreamDollarOrDollarNe$Outbound
6673
+ | DeploymentStreamDollarOr3$Outbound
6674
+ | DeploymentStreamDollarOrDollarGte$Outbound
6675
+ | DeploymentStreamDollarOrDollarLt$Outbound
6676
+ | DeploymentStreamDollarOrDollarLte$Outbound
6677
+ | DeploymentStreamDollarOrDollarIn$Outbound
6678
+ | DeploymentStreamDollarOrDollarNin$Outbound
6679
+ | DeploymentStreamDollarOrDollarExists$Outbound;
6680
+
6681
+ /** @internal */
6682
+ export const DeploymentStreamKnowledgeFilterDeploymentsDollarOr$outboundSchema:
6683
+ z.ZodType<
6684
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$Outbound,
6685
+ z.ZodTypeDef,
6686
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr
6687
+ > = z.union([
6688
+ z.lazy(() => DeploymentStreamDollarOrDollarEq$outboundSchema),
6689
+ z.lazy(() => DeploymentStreamDollarOrDollarNe$outboundSchema),
6690
+ z.lazy(() => DeploymentStreamDollarOr3$outboundSchema),
6691
+ z.lazy(() => DeploymentStreamDollarOrDollarGte$outboundSchema),
6692
+ z.lazy(() => DeploymentStreamDollarOrDollarLt$outboundSchema),
6693
+ z.lazy(() => DeploymentStreamDollarOrDollarLte$outboundSchema),
6694
+ z.lazy(() => DeploymentStreamDollarOrDollarIn$outboundSchema),
6695
+ z.lazy(() => DeploymentStreamDollarOrDollarNin$outboundSchema),
6696
+ z.lazy(() => DeploymentStreamDollarOrDollarExists$outboundSchema),
6697
+ ]);
6698
+
6699
+ /**
6700
+ * @internal
6701
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6702
+ */
6703
+ export namespace DeploymentStreamKnowledgeFilterDeploymentsDollarOr$ {
6704
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarOr$inboundSchema` instead. */
6705
+ export const inboundSchema =
6706
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$inboundSchema;
6707
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarOr$outboundSchema` instead. */
6708
+ export const outboundSchema =
6709
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$outboundSchema;
6710
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarOr$Outbound` instead. */
6711
+ export type Outbound =
6712
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$Outbound;
6713
+ }
6714
+
6715
+ export function deploymentStreamKnowledgeFilterDeploymentsDollarOrToJSON(
6716
+ deploymentStreamKnowledgeFilterDeploymentsDollarOr:
6717
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr,
6718
+ ): string {
6719
+ return JSON.stringify(
6720
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$outboundSchema.parse(
6721
+ deploymentStreamKnowledgeFilterDeploymentsDollarOr,
6722
+ ),
6723
+ );
6724
+ }
6725
+
6726
+ export function deploymentStreamKnowledgeFilterDeploymentsDollarOrFromJSON(
6727
+ jsonString: string,
6728
+ ): SafeParseResult<
6729
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr,
6730
+ SDKValidationError
6731
+ > {
6732
+ return safeParse(
6733
+ jsonString,
6734
+ (x) =>
6735
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$inboundSchema.parse(
6736
+ JSON.parse(x),
6737
+ ),
6738
+ `Failed to parse 'DeploymentStreamKnowledgeFilterDeploymentsDollarOr' from JSON`,
6739
+ );
6740
+ }
6741
+
6742
+ /** @internal */
6743
+ export const DeploymentStreamKnowledgeFilterDollarOr$inboundSchema: z.ZodType<
6744
+ DeploymentStreamKnowledgeFilterDollarOr,
6745
+ z.ZodTypeDef,
6746
+ unknown
6747
+ > = z.object({
6748
+ $or: z.array(
6749
+ z.record(z.union([
6750
+ z.lazy(() => DeploymentStreamDollarOrDollarEq$inboundSchema),
6751
+ z.lazy(() =>
6752
+ DeploymentStreamDollarOrDollarNe$inboundSchema
6753
+ ),
6754
+ z.lazy(() => DeploymentStreamDollarOr3$inboundSchema),
6755
+ z.lazy(() => DeploymentStreamDollarOrDollarGte$inboundSchema),
6756
+ z.lazy(() => DeploymentStreamDollarOrDollarLt$inboundSchema),
6757
+ z.lazy(() => DeploymentStreamDollarOrDollarLte$inboundSchema),
6758
+ z.lazy(() => DeploymentStreamDollarOrDollarIn$inboundSchema),
6759
+ z.lazy(() => DeploymentStreamDollarOrDollarNin$inboundSchema),
6760
+ z.lazy(() => DeploymentStreamDollarOrDollarExists$inboundSchema),
6761
+ ])),
6762
+ ),
6763
+ }).transform((v) => {
6764
+ return remap$(v, {
6765
+ "$or": "dollarOr",
6766
+ });
6767
+ });
6768
+
6769
+ /** @internal */
6770
+ export type DeploymentStreamKnowledgeFilterDollarOr$Outbound = {
6771
+ $or: Array<
6772
+ {
6773
+ [k: string]:
6774
+ | DeploymentStreamDollarOrDollarEq$Outbound
6775
+ | DeploymentStreamDollarOrDollarNe$Outbound
6776
+ | DeploymentStreamDollarOr3$Outbound
6777
+ | DeploymentStreamDollarOrDollarGte$Outbound
6778
+ | DeploymentStreamDollarOrDollarLt$Outbound
6779
+ | DeploymentStreamDollarOrDollarLte$Outbound
6780
+ | DeploymentStreamDollarOrDollarIn$Outbound
6781
+ | DeploymentStreamDollarOrDollarNin$Outbound
6782
+ | DeploymentStreamDollarOrDollarExists$Outbound;
6783
+ }
6784
+ >;
6785
+ };
6786
+
6787
+ /** @internal */
6788
+ export const DeploymentStreamKnowledgeFilterDollarOr$outboundSchema: z.ZodType<
6789
+ DeploymentStreamKnowledgeFilterDollarOr$Outbound,
6790
+ z.ZodTypeDef,
6791
+ DeploymentStreamKnowledgeFilterDollarOr
6792
+ > = z.object({
6793
+ dollarOr: z.array(
6794
+ z.record(z.union([
6795
+ z.lazy(() => DeploymentStreamDollarOrDollarEq$outboundSchema),
6796
+ z.lazy(() =>
6797
+ DeploymentStreamDollarOrDollarNe$outboundSchema
6798
+ ),
6799
+ z.lazy(() => DeploymentStreamDollarOr3$outboundSchema),
6800
+ z.lazy(() => DeploymentStreamDollarOrDollarGte$outboundSchema),
6801
+ z.lazy(() => DeploymentStreamDollarOrDollarLt$outboundSchema),
6802
+ z.lazy(() => DeploymentStreamDollarOrDollarLte$outboundSchema),
6803
+ z.lazy(() => DeploymentStreamDollarOrDollarIn$outboundSchema),
6804
+ z.lazy(() => DeploymentStreamDollarOrDollarNin$outboundSchema),
6805
+ z.lazy(() => DeploymentStreamDollarOrDollarExists$outboundSchema),
6806
+ ])),
6807
+ ),
6808
+ }).transform((v) => {
6809
+ return remap$(v, {
6810
+ dollarOr: "$or",
6811
+ });
6812
+ });
6813
+
6814
+ /**
6815
+ * @internal
6816
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6817
+ */
6818
+ export namespace DeploymentStreamKnowledgeFilterDollarOr$ {
6819
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarOr$inboundSchema` instead. */
6820
+ export const inboundSchema =
6821
+ DeploymentStreamKnowledgeFilterDollarOr$inboundSchema;
6822
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarOr$outboundSchema` instead. */
6823
+ export const outboundSchema =
6824
+ DeploymentStreamKnowledgeFilterDollarOr$outboundSchema;
6825
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarOr$Outbound` instead. */
6826
+ export type Outbound = DeploymentStreamKnowledgeFilterDollarOr$Outbound;
6827
+ }
6828
+
6829
+ export function deploymentStreamKnowledgeFilterDollarOrToJSON(
6830
+ deploymentStreamKnowledgeFilterDollarOr:
6831
+ DeploymentStreamKnowledgeFilterDollarOr,
6832
+ ): string {
6833
+ return JSON.stringify(
6834
+ DeploymentStreamKnowledgeFilterDollarOr$outboundSchema.parse(
6835
+ deploymentStreamKnowledgeFilterDollarOr,
6836
+ ),
6837
+ );
6838
+ }
6839
+
6840
+ export function deploymentStreamKnowledgeFilterDollarOrFromJSON(
6841
+ jsonString: string,
6842
+ ): SafeParseResult<
6843
+ DeploymentStreamKnowledgeFilterDollarOr,
6844
+ SDKValidationError
6845
+ > {
6846
+ return safeParse(
6847
+ jsonString,
6848
+ (x) =>
6849
+ DeploymentStreamKnowledgeFilterDollarOr$inboundSchema.parse(
6850
+ JSON.parse(x),
6851
+ ),
6852
+ `Failed to parse 'DeploymentStreamKnowledgeFilterDollarOr' from JSON`,
6853
+ );
6854
+ }
6855
+
6856
+ /** @internal */
6857
+ export const DeploymentStreamDollarAndDollarExists$inboundSchema: z.ZodType<
6858
+ DeploymentStreamDollarAndDollarExists,
6859
+ z.ZodTypeDef,
6860
+ unknown
6861
+ > = z.object({
6862
+ $exists: z.boolean(),
6863
+ }).transform((v) => {
6864
+ return remap$(v, {
6865
+ "$exists": "dollarExists",
6866
+ });
6867
+ });
6868
+
6869
+ /** @internal */
6870
+ export type DeploymentStreamDollarAndDollarExists$Outbound = {
6871
+ $exists: boolean;
6872
+ };
6873
+
6874
+ /** @internal */
6875
+ export const DeploymentStreamDollarAndDollarExists$outboundSchema: z.ZodType<
6876
+ DeploymentStreamDollarAndDollarExists$Outbound,
6877
+ z.ZodTypeDef,
6878
+ DeploymentStreamDollarAndDollarExists
6879
+ > = z.object({
6880
+ dollarExists: z.boolean(),
6881
+ }).transform((v) => {
6882
+ return remap$(v, {
6883
+ dollarExists: "$exists",
6884
+ });
6885
+ });
6886
+
6887
+ /**
6888
+ * @internal
6889
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6890
+ */
6891
+ export namespace DeploymentStreamDollarAndDollarExists$ {
6892
+ /** @deprecated use `DeploymentStreamDollarAndDollarExists$inboundSchema` instead. */
6893
+ export const inboundSchema =
6894
+ DeploymentStreamDollarAndDollarExists$inboundSchema;
6895
+ /** @deprecated use `DeploymentStreamDollarAndDollarExists$outboundSchema` instead. */
6896
+ export const outboundSchema =
6897
+ DeploymentStreamDollarAndDollarExists$outboundSchema;
6898
+ /** @deprecated use `DeploymentStreamDollarAndDollarExists$Outbound` instead. */
6899
+ export type Outbound = DeploymentStreamDollarAndDollarExists$Outbound;
6900
+ }
6901
+
6902
+ export function deploymentStreamDollarAndDollarExistsToJSON(
6903
+ deploymentStreamDollarAndDollarExists: DeploymentStreamDollarAndDollarExists,
6904
+ ): string {
6905
+ return JSON.stringify(
6906
+ DeploymentStreamDollarAndDollarExists$outboundSchema.parse(
6907
+ deploymentStreamDollarAndDollarExists,
6908
+ ),
6909
+ );
6910
+ }
6911
+
6912
+ export function deploymentStreamDollarAndDollarExistsFromJSON(
6913
+ jsonString: string,
6914
+ ): SafeParseResult<DeploymentStreamDollarAndDollarExists, SDKValidationError> {
6915
+ return safeParse(
6916
+ jsonString,
6917
+ (x) =>
6918
+ DeploymentStreamDollarAndDollarExists$inboundSchema.parse(JSON.parse(x)),
6919
+ `Failed to parse 'DeploymentStreamDollarAndDollarExists' from JSON`,
6920
+ );
6921
+ }
6922
+
6923
+ /** @internal */
6924
+ export const DeploymentStreamDollarAndDeploymentsDollarNin$inboundSchema:
6925
+ z.ZodType<
6926
+ DeploymentStreamDollarAndDeploymentsDollarNin,
6927
+ z.ZodTypeDef,
6928
+ unknown
6929
+ > = z.union([z.string(), z.number(), z.boolean()]);
6930
+
6931
+ /** @internal */
6932
+ export type DeploymentStreamDollarAndDeploymentsDollarNin$Outbound =
6933
+ | string
6934
+ | number
6935
+ | boolean;
6936
+
6937
+ /** @internal */
6938
+ export const DeploymentStreamDollarAndDeploymentsDollarNin$outboundSchema:
6939
+ z.ZodType<
6940
+ DeploymentStreamDollarAndDeploymentsDollarNin$Outbound,
6941
+ z.ZodTypeDef,
6942
+ DeploymentStreamDollarAndDeploymentsDollarNin
6943
+ > = z.union([z.string(), z.number(), z.boolean()]);
6944
+
6945
+ /**
6946
+ * @internal
6947
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6948
+ */
6949
+ export namespace DeploymentStreamDollarAndDeploymentsDollarNin$ {
6950
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNin$inboundSchema` instead. */
6951
+ export const inboundSchema =
6952
+ DeploymentStreamDollarAndDeploymentsDollarNin$inboundSchema;
6953
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNin$outboundSchema` instead. */
6954
+ export const outboundSchema =
6955
+ DeploymentStreamDollarAndDeploymentsDollarNin$outboundSchema;
6956
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNin$Outbound` instead. */
6957
+ export type Outbound = DeploymentStreamDollarAndDeploymentsDollarNin$Outbound;
6958
+ }
6959
+
6960
+ export function deploymentStreamDollarAndDeploymentsDollarNinToJSON(
6961
+ deploymentStreamDollarAndDeploymentsDollarNin:
6962
+ DeploymentStreamDollarAndDeploymentsDollarNin,
6963
+ ): string {
6964
+ return JSON.stringify(
6965
+ DeploymentStreamDollarAndDeploymentsDollarNin$outboundSchema.parse(
6966
+ deploymentStreamDollarAndDeploymentsDollarNin,
6967
+ ),
6968
+ );
6969
+ }
6970
+
6971
+ export function deploymentStreamDollarAndDeploymentsDollarNinFromJSON(
6972
+ jsonString: string,
6973
+ ): SafeParseResult<
6974
+ DeploymentStreamDollarAndDeploymentsDollarNin,
6975
+ SDKValidationError
6976
+ > {
6977
+ return safeParse(
6978
+ jsonString,
6979
+ (x) =>
6980
+ DeploymentStreamDollarAndDeploymentsDollarNin$inboundSchema.parse(
6981
+ JSON.parse(x),
6982
+ ),
6983
+ `Failed to parse 'DeploymentStreamDollarAndDeploymentsDollarNin' from JSON`,
6984
+ );
6985
+ }
6986
+
6987
+ /** @internal */
6988
+ export const DeploymentStreamDollarAndDollarNin$inboundSchema: z.ZodType<
6989
+ DeploymentStreamDollarAndDollarNin,
6990
+ z.ZodTypeDef,
6991
+ unknown
6992
+ > = z.object({
6993
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6994
+ }).transform((v) => {
6995
+ return remap$(v, {
6996
+ "$nin": "dollarNin",
6997
+ });
6998
+ });
6999
+
7000
+ /** @internal */
7001
+ export type DeploymentStreamDollarAndDollarNin$Outbound = {
7002
+ $nin: Array<string | number | boolean>;
7003
+ };
7004
+
7005
+ /** @internal */
7006
+ export const DeploymentStreamDollarAndDollarNin$outboundSchema: z.ZodType<
7007
+ DeploymentStreamDollarAndDollarNin$Outbound,
7008
+ z.ZodTypeDef,
7009
+ DeploymentStreamDollarAndDollarNin
7010
+ > = z.object({
7011
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
7012
+ }).transform((v) => {
7013
+ return remap$(v, {
7014
+ dollarNin: "$nin",
7015
+ });
7016
+ });
7017
+
7018
+ /**
7019
+ * @internal
7020
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7021
+ */
7022
+ export namespace DeploymentStreamDollarAndDollarNin$ {
7023
+ /** @deprecated use `DeploymentStreamDollarAndDollarNin$inboundSchema` instead. */
7024
+ export const inboundSchema = DeploymentStreamDollarAndDollarNin$inboundSchema;
7025
+ /** @deprecated use `DeploymentStreamDollarAndDollarNin$outboundSchema` instead. */
7026
+ export const outboundSchema =
7027
+ DeploymentStreamDollarAndDollarNin$outboundSchema;
7028
+ /** @deprecated use `DeploymentStreamDollarAndDollarNin$Outbound` instead. */
7029
+ export type Outbound = DeploymentStreamDollarAndDollarNin$Outbound;
7030
+ }
7031
+
7032
+ export function deploymentStreamDollarAndDollarNinToJSON(
7033
+ deploymentStreamDollarAndDollarNin: DeploymentStreamDollarAndDollarNin,
7034
+ ): string {
7035
+ return JSON.stringify(
7036
+ DeploymentStreamDollarAndDollarNin$outboundSchema.parse(
7037
+ deploymentStreamDollarAndDollarNin,
7038
+ ),
7039
+ );
7040
+ }
7041
+
7042
+ export function deploymentStreamDollarAndDollarNinFromJSON(
7043
+ jsonString: string,
7044
+ ): SafeParseResult<DeploymentStreamDollarAndDollarNin, SDKValidationError> {
7045
+ return safeParse(
7046
+ jsonString,
7047
+ (x) =>
7048
+ DeploymentStreamDollarAndDollarNin$inboundSchema.parse(JSON.parse(x)),
7049
+ `Failed to parse 'DeploymentStreamDollarAndDollarNin' from JSON`,
7050
+ );
7051
+ }
7052
+
7053
+ /** @internal */
7054
+ export const DeploymentStreamDollarAndDeploymentsDollarIn$inboundSchema:
7055
+ z.ZodType<
7056
+ DeploymentStreamDollarAndDeploymentsDollarIn,
7057
+ z.ZodTypeDef,
7058
+ unknown
7059
+ > = z.union([z.string(), z.number(), z.boolean()]);
7060
+
7061
+ /** @internal */
7062
+ export type DeploymentStreamDollarAndDeploymentsDollarIn$Outbound =
7063
+ | string
7064
+ | number
7065
+ | boolean;
7066
+
7067
+ /** @internal */
7068
+ export const DeploymentStreamDollarAndDeploymentsDollarIn$outboundSchema:
7069
+ z.ZodType<
7070
+ DeploymentStreamDollarAndDeploymentsDollarIn$Outbound,
7071
+ z.ZodTypeDef,
7072
+ DeploymentStreamDollarAndDeploymentsDollarIn
7073
+ > = z.union([z.string(), z.number(), z.boolean()]);
7074
+
7075
+ /**
7076
+ * @internal
7077
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7078
+ */
7079
+ export namespace DeploymentStreamDollarAndDeploymentsDollarIn$ {
7080
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarIn$inboundSchema` instead. */
7081
+ export const inboundSchema =
7082
+ DeploymentStreamDollarAndDeploymentsDollarIn$inboundSchema;
7083
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarIn$outboundSchema` instead. */
7084
+ export const outboundSchema =
7085
+ DeploymentStreamDollarAndDeploymentsDollarIn$outboundSchema;
7086
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarIn$Outbound` instead. */
7087
+ export type Outbound = DeploymentStreamDollarAndDeploymentsDollarIn$Outbound;
7088
+ }
7089
+
7090
+ export function deploymentStreamDollarAndDeploymentsDollarInToJSON(
7091
+ deploymentStreamDollarAndDeploymentsDollarIn:
7092
+ DeploymentStreamDollarAndDeploymentsDollarIn,
7093
+ ): string {
7094
+ return JSON.stringify(
7095
+ DeploymentStreamDollarAndDeploymentsDollarIn$outboundSchema.parse(
7096
+ deploymentStreamDollarAndDeploymentsDollarIn,
7097
+ ),
7098
+ );
7099
+ }
7100
+
7101
+ export function deploymentStreamDollarAndDeploymentsDollarInFromJSON(
7102
+ jsonString: string,
7103
+ ): SafeParseResult<
7104
+ DeploymentStreamDollarAndDeploymentsDollarIn,
7105
+ SDKValidationError
7106
+ > {
7107
+ return safeParse(
7108
+ jsonString,
7109
+ (x) =>
7110
+ DeploymentStreamDollarAndDeploymentsDollarIn$inboundSchema.parse(
7111
+ JSON.parse(x),
7112
+ ),
7113
+ `Failed to parse 'DeploymentStreamDollarAndDeploymentsDollarIn' from JSON`,
7114
+ );
7115
+ }
7116
+
7117
+ /** @internal */
7118
+ export const DeploymentStreamDollarAndDollarIn$inboundSchema: z.ZodType<
7119
+ DeploymentStreamDollarAndDollarIn,
7120
+ z.ZodTypeDef,
7121
+ unknown
7122
+ > = z.object({
7123
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
7124
+ }).transform((v) => {
7125
+ return remap$(v, {
7126
+ "$in": "dollarIn",
7127
+ });
7128
+ });
7129
+
7130
+ /** @internal */
7131
+ export type DeploymentStreamDollarAndDollarIn$Outbound = {
7132
+ $in: Array<string | number | boolean>;
7133
+ };
7134
+
7135
+ /** @internal */
7136
+ export const DeploymentStreamDollarAndDollarIn$outboundSchema: z.ZodType<
7137
+ DeploymentStreamDollarAndDollarIn$Outbound,
7138
+ z.ZodTypeDef,
7139
+ DeploymentStreamDollarAndDollarIn
7140
+ > = z.object({
7141
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
7142
+ }).transform((v) => {
7143
+ return remap$(v, {
7144
+ dollarIn: "$in",
7145
+ });
7146
+ });
7147
+
7148
+ /**
7149
+ * @internal
7150
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7151
+ */
7152
+ export namespace DeploymentStreamDollarAndDollarIn$ {
7153
+ /** @deprecated use `DeploymentStreamDollarAndDollarIn$inboundSchema` instead. */
7154
+ export const inboundSchema = DeploymentStreamDollarAndDollarIn$inboundSchema;
7155
+ /** @deprecated use `DeploymentStreamDollarAndDollarIn$outboundSchema` instead. */
7156
+ export const outboundSchema =
7157
+ DeploymentStreamDollarAndDollarIn$outboundSchema;
7158
+ /** @deprecated use `DeploymentStreamDollarAndDollarIn$Outbound` instead. */
7159
+ export type Outbound = DeploymentStreamDollarAndDollarIn$Outbound;
7160
+ }
7161
+
7162
+ export function deploymentStreamDollarAndDollarInToJSON(
7163
+ deploymentStreamDollarAndDollarIn: DeploymentStreamDollarAndDollarIn,
7164
+ ): string {
7165
+ return JSON.stringify(
7166
+ DeploymentStreamDollarAndDollarIn$outboundSchema.parse(
7167
+ deploymentStreamDollarAndDollarIn,
7168
+ ),
7169
+ );
7170
+ }
7171
+
7172
+ export function deploymentStreamDollarAndDollarInFromJSON(
7173
+ jsonString: string,
7174
+ ): SafeParseResult<DeploymentStreamDollarAndDollarIn, SDKValidationError> {
7175
+ return safeParse(
7176
+ jsonString,
7177
+ (x) => DeploymentStreamDollarAndDollarIn$inboundSchema.parse(JSON.parse(x)),
7178
+ `Failed to parse 'DeploymentStreamDollarAndDollarIn' from JSON`,
7179
+ );
7180
+ }
7181
+
7182
+ /** @internal */
7183
+ export const DeploymentStreamDollarAndDollarLte$inboundSchema: z.ZodType<
7184
+ DeploymentStreamDollarAndDollarLte,
7185
+ z.ZodTypeDef,
7186
+ unknown
7187
+ > = z.object({
7188
+ $lte: z.number(),
7189
+ }).transform((v) => {
7190
+ return remap$(v, {
7191
+ "$lte": "dollarLte",
7192
+ });
7193
+ });
7194
+
7195
+ /** @internal */
7196
+ export type DeploymentStreamDollarAndDollarLte$Outbound = {
7197
+ $lte: number;
7198
+ };
7199
+
7200
+ /** @internal */
7201
+ export const DeploymentStreamDollarAndDollarLte$outboundSchema: z.ZodType<
7202
+ DeploymentStreamDollarAndDollarLte$Outbound,
7203
+ z.ZodTypeDef,
7204
+ DeploymentStreamDollarAndDollarLte
7205
+ > = z.object({
7206
+ dollarLte: z.number(),
7207
+ }).transform((v) => {
7208
+ return remap$(v, {
7209
+ dollarLte: "$lte",
7210
+ });
7211
+ });
7212
+
7213
+ /**
7214
+ * @internal
7215
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7216
+ */
7217
+ export namespace DeploymentStreamDollarAndDollarLte$ {
7218
+ /** @deprecated use `DeploymentStreamDollarAndDollarLte$inboundSchema` instead. */
7219
+ export const inboundSchema = DeploymentStreamDollarAndDollarLte$inboundSchema;
7220
+ /** @deprecated use `DeploymentStreamDollarAndDollarLte$outboundSchema` instead. */
7221
+ export const outboundSchema =
7222
+ DeploymentStreamDollarAndDollarLte$outboundSchema;
7223
+ /** @deprecated use `DeploymentStreamDollarAndDollarLte$Outbound` instead. */
7224
+ export type Outbound = DeploymentStreamDollarAndDollarLte$Outbound;
7225
+ }
7226
+
7227
+ export function deploymentStreamDollarAndDollarLteToJSON(
7228
+ deploymentStreamDollarAndDollarLte: DeploymentStreamDollarAndDollarLte,
7229
+ ): string {
7230
+ return JSON.stringify(
7231
+ DeploymentStreamDollarAndDollarLte$outboundSchema.parse(
7232
+ deploymentStreamDollarAndDollarLte,
7233
+ ),
7234
+ );
7235
+ }
7236
+
7237
+ export function deploymentStreamDollarAndDollarLteFromJSON(
7238
+ jsonString: string,
7239
+ ): SafeParseResult<DeploymentStreamDollarAndDollarLte, SDKValidationError> {
7240
+ return safeParse(
7241
+ jsonString,
7242
+ (x) =>
7243
+ DeploymentStreamDollarAndDollarLte$inboundSchema.parse(JSON.parse(x)),
7244
+ `Failed to parse 'DeploymentStreamDollarAndDollarLte' from JSON`,
7245
+ );
7246
+ }
7247
+
7248
+ /** @internal */
7249
+ export const DeploymentStreamDollarAndDollarLt$inboundSchema: z.ZodType<
7250
+ DeploymentStreamDollarAndDollarLt,
7251
+ z.ZodTypeDef,
7252
+ unknown
7253
+ > = z.object({
7254
+ $lt: z.number(),
7255
+ }).transform((v) => {
7256
+ return remap$(v, {
7257
+ "$lt": "dollarLt",
7258
+ });
7259
+ });
7260
+
7261
+ /** @internal */
7262
+ export type DeploymentStreamDollarAndDollarLt$Outbound = {
7263
+ $lt: number;
7264
+ };
7265
+
7266
+ /** @internal */
7267
+ export const DeploymentStreamDollarAndDollarLt$outboundSchema: z.ZodType<
7268
+ DeploymentStreamDollarAndDollarLt$Outbound,
7269
+ z.ZodTypeDef,
7270
+ DeploymentStreamDollarAndDollarLt
7271
+ > = z.object({
7272
+ dollarLt: z.number(),
7273
+ }).transform((v) => {
7274
+ return remap$(v, {
7275
+ dollarLt: "$lt",
7276
+ });
7277
+ });
7278
+
7279
+ /**
7280
+ * @internal
7281
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7282
+ */
7283
+ export namespace DeploymentStreamDollarAndDollarLt$ {
7284
+ /** @deprecated use `DeploymentStreamDollarAndDollarLt$inboundSchema` instead. */
7285
+ export const inboundSchema = DeploymentStreamDollarAndDollarLt$inboundSchema;
7286
+ /** @deprecated use `DeploymentStreamDollarAndDollarLt$outboundSchema` instead. */
7287
+ export const outboundSchema =
7288
+ DeploymentStreamDollarAndDollarLt$outboundSchema;
7289
+ /** @deprecated use `DeploymentStreamDollarAndDollarLt$Outbound` instead. */
7290
+ export type Outbound = DeploymentStreamDollarAndDollarLt$Outbound;
7291
+ }
7292
+
7293
+ export function deploymentStreamDollarAndDollarLtToJSON(
7294
+ deploymentStreamDollarAndDollarLt: DeploymentStreamDollarAndDollarLt,
7295
+ ): string {
7296
+ return JSON.stringify(
7297
+ DeploymentStreamDollarAndDollarLt$outboundSchema.parse(
7298
+ deploymentStreamDollarAndDollarLt,
7299
+ ),
7300
+ );
7301
+ }
7302
+
7303
+ export function deploymentStreamDollarAndDollarLtFromJSON(
7304
+ jsonString: string,
7305
+ ): SafeParseResult<DeploymentStreamDollarAndDollarLt, SDKValidationError> {
7306
+ return safeParse(
7307
+ jsonString,
7308
+ (x) => DeploymentStreamDollarAndDollarLt$inboundSchema.parse(JSON.parse(x)),
7309
+ `Failed to parse 'DeploymentStreamDollarAndDollarLt' from JSON`,
7310
+ );
7311
+ }
7312
+
7313
+ /** @internal */
7314
+ export const DeploymentStreamDollarAndDollarGte$inboundSchema: z.ZodType<
7315
+ DeploymentStreamDollarAndDollarGte,
7316
+ z.ZodTypeDef,
7317
+ unknown
7318
+ > = z.object({
7319
+ $gte: z.number(),
7320
+ }).transform((v) => {
7321
+ return remap$(v, {
7322
+ "$gte": "dollarGte",
7323
+ });
7324
+ });
7325
+
7326
+ /** @internal */
7327
+ export type DeploymentStreamDollarAndDollarGte$Outbound = {
7328
+ $gte: number;
7329
+ };
7330
+
7331
+ /** @internal */
7332
+ export const DeploymentStreamDollarAndDollarGte$outboundSchema: z.ZodType<
7333
+ DeploymentStreamDollarAndDollarGte$Outbound,
7334
+ z.ZodTypeDef,
7335
+ DeploymentStreamDollarAndDollarGte
7336
+ > = z.object({
7337
+ dollarGte: z.number(),
7338
+ }).transform((v) => {
7339
+ return remap$(v, {
7340
+ dollarGte: "$gte",
7341
+ });
7342
+ });
7343
+
7344
+ /**
7345
+ * @internal
7346
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7347
+ */
7348
+ export namespace DeploymentStreamDollarAndDollarGte$ {
7349
+ /** @deprecated use `DeploymentStreamDollarAndDollarGte$inboundSchema` instead. */
7350
+ export const inboundSchema = DeploymentStreamDollarAndDollarGte$inboundSchema;
7351
+ /** @deprecated use `DeploymentStreamDollarAndDollarGte$outboundSchema` instead. */
7352
+ export const outboundSchema =
7353
+ DeploymentStreamDollarAndDollarGte$outboundSchema;
7354
+ /** @deprecated use `DeploymentStreamDollarAndDollarGte$Outbound` instead. */
7355
+ export type Outbound = DeploymentStreamDollarAndDollarGte$Outbound;
7356
+ }
7357
+
7358
+ export function deploymentStreamDollarAndDollarGteToJSON(
7359
+ deploymentStreamDollarAndDollarGte: DeploymentStreamDollarAndDollarGte,
7360
+ ): string {
7361
+ return JSON.stringify(
7362
+ DeploymentStreamDollarAndDollarGte$outboundSchema.parse(
7363
+ deploymentStreamDollarAndDollarGte,
7364
+ ),
7365
+ );
7366
+ }
7367
+
7368
+ export function deploymentStreamDollarAndDollarGteFromJSON(
7369
+ jsonString: string,
7370
+ ): SafeParseResult<DeploymentStreamDollarAndDollarGte, SDKValidationError> {
7371
+ return safeParse(
7372
+ jsonString,
7373
+ (x) =>
7374
+ DeploymentStreamDollarAndDollarGte$inboundSchema.parse(JSON.parse(x)),
7375
+ `Failed to parse 'DeploymentStreamDollarAndDollarGte' from JSON`,
7376
+ );
7377
+ }
7378
+
7379
+ /** @internal */
7380
+ export const DeploymentStreamDollarAnd3$inboundSchema: z.ZodType<
7381
+ DeploymentStreamDollarAnd3,
7382
+ z.ZodTypeDef,
7383
+ unknown
7384
+ > = z.object({
7385
+ $gt: z.number(),
7386
+ }).transform((v) => {
7387
+ return remap$(v, {
7388
+ "$gt": "dollarGt",
7389
+ });
7390
+ });
7391
+
7392
+ /** @internal */
7393
+ export type DeploymentStreamDollarAnd3$Outbound = {
7394
+ $gt: number;
7395
+ };
7396
+
7397
+ /** @internal */
7398
+ export const DeploymentStreamDollarAnd3$outboundSchema: z.ZodType<
7399
+ DeploymentStreamDollarAnd3$Outbound,
7400
+ z.ZodTypeDef,
7401
+ DeploymentStreamDollarAnd3
7402
+ > = z.object({
7403
+ dollarGt: z.number(),
7404
+ }).transform((v) => {
7405
+ return remap$(v, {
7406
+ dollarGt: "$gt",
7407
+ });
7408
+ });
7409
+
7410
+ /**
7411
+ * @internal
7412
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7413
+ */
7414
+ export namespace DeploymentStreamDollarAnd3$ {
7415
+ /** @deprecated use `DeploymentStreamDollarAnd3$inboundSchema` instead. */
7416
+ export const inboundSchema = DeploymentStreamDollarAnd3$inboundSchema;
7417
+ /** @deprecated use `DeploymentStreamDollarAnd3$outboundSchema` instead. */
7418
+ export const outboundSchema = DeploymentStreamDollarAnd3$outboundSchema;
7419
+ /** @deprecated use `DeploymentStreamDollarAnd3$Outbound` instead. */
7420
+ export type Outbound = DeploymentStreamDollarAnd3$Outbound;
7421
+ }
7422
+
7423
+ export function deploymentStreamDollarAnd3ToJSON(
7424
+ deploymentStreamDollarAnd3: DeploymentStreamDollarAnd3,
7425
+ ): string {
7426
+ return JSON.stringify(
7427
+ DeploymentStreamDollarAnd3$outboundSchema.parse(deploymentStreamDollarAnd3),
7428
+ );
7429
+ }
7430
+
7431
+ export function deploymentStreamDollarAnd3FromJSON(
7432
+ jsonString: string,
7433
+ ): SafeParseResult<DeploymentStreamDollarAnd3, SDKValidationError> {
7434
+ return safeParse(
7435
+ jsonString,
7436
+ (x) => DeploymentStreamDollarAnd3$inboundSchema.parse(JSON.parse(x)),
7437
+ `Failed to parse 'DeploymentStreamDollarAnd3' from JSON`,
7438
+ );
7439
+ }
7440
+
7441
+ /** @internal */
7442
+ export const DeploymentStreamDollarAndDeploymentsDollarNe$inboundSchema:
7443
+ z.ZodType<
7444
+ DeploymentStreamDollarAndDeploymentsDollarNe,
7445
+ z.ZodTypeDef,
7446
+ unknown
7447
+ > = z.union([z.string(), z.number(), z.boolean()]);
7448
+
7449
+ /** @internal */
7450
+ export type DeploymentStreamDollarAndDeploymentsDollarNe$Outbound =
7451
+ | string
7452
+ | number
7453
+ | boolean;
7454
+
7455
+ /** @internal */
7456
+ export const DeploymentStreamDollarAndDeploymentsDollarNe$outboundSchema:
7457
+ z.ZodType<
7458
+ DeploymentStreamDollarAndDeploymentsDollarNe$Outbound,
7459
+ z.ZodTypeDef,
7460
+ DeploymentStreamDollarAndDeploymentsDollarNe
7461
+ > = z.union([z.string(), z.number(), z.boolean()]);
7462
+
7463
+ /**
7464
+ * @internal
7465
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7466
+ */
7467
+ export namespace DeploymentStreamDollarAndDeploymentsDollarNe$ {
7468
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNe$inboundSchema` instead. */
7469
+ export const inboundSchema =
7470
+ DeploymentStreamDollarAndDeploymentsDollarNe$inboundSchema;
7471
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNe$outboundSchema` instead. */
7472
+ export const outboundSchema =
7473
+ DeploymentStreamDollarAndDeploymentsDollarNe$outboundSchema;
7474
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNe$Outbound` instead. */
7475
+ export type Outbound = DeploymentStreamDollarAndDeploymentsDollarNe$Outbound;
7476
+ }
7477
+
7478
+ export function deploymentStreamDollarAndDeploymentsDollarNeToJSON(
7479
+ deploymentStreamDollarAndDeploymentsDollarNe:
7480
+ DeploymentStreamDollarAndDeploymentsDollarNe,
7481
+ ): string {
7482
+ return JSON.stringify(
7483
+ DeploymentStreamDollarAndDeploymentsDollarNe$outboundSchema.parse(
7484
+ deploymentStreamDollarAndDeploymentsDollarNe,
7485
+ ),
7486
+ );
7487
+ }
7488
+
7489
+ export function deploymentStreamDollarAndDeploymentsDollarNeFromJSON(
7490
+ jsonString: string,
7491
+ ): SafeParseResult<
7492
+ DeploymentStreamDollarAndDeploymentsDollarNe,
7493
+ SDKValidationError
7494
+ > {
7495
+ return safeParse(
7496
+ jsonString,
7497
+ (x) =>
7498
+ DeploymentStreamDollarAndDeploymentsDollarNe$inboundSchema.parse(
7499
+ JSON.parse(x),
7500
+ ),
7501
+ `Failed to parse 'DeploymentStreamDollarAndDeploymentsDollarNe' from JSON`,
7502
+ );
7503
+ }
7504
+
7505
+ /** @internal */
7506
+ export const DeploymentStreamDollarAndDollarNe$inboundSchema: z.ZodType<
7507
+ DeploymentStreamDollarAndDollarNe,
7508
+ z.ZodTypeDef,
7509
+ unknown
7510
+ > = z.object({
7511
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
7512
+ }).transform((v) => {
7513
+ return remap$(v, {
7514
+ "$ne": "dollarNe",
7515
+ });
7516
+ });
7517
+
7518
+ /** @internal */
7519
+ export type DeploymentStreamDollarAndDollarNe$Outbound = {
7520
+ $ne: string | number | boolean;
7521
+ };
7522
+
7523
+ /** @internal */
7524
+ export const DeploymentStreamDollarAndDollarNe$outboundSchema: z.ZodType<
7525
+ DeploymentStreamDollarAndDollarNe$Outbound,
7526
+ z.ZodTypeDef,
7527
+ DeploymentStreamDollarAndDollarNe
7528
+ > = z.object({
7529
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
7530
+ }).transform((v) => {
7531
+ return remap$(v, {
7532
+ dollarNe: "$ne",
7533
+ });
7534
+ });
7535
+
7536
+ /**
7537
+ * @internal
7538
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7539
+ */
7540
+ export namespace DeploymentStreamDollarAndDollarNe$ {
7541
+ /** @deprecated use `DeploymentStreamDollarAndDollarNe$inboundSchema` instead. */
7542
+ export const inboundSchema = DeploymentStreamDollarAndDollarNe$inboundSchema;
7543
+ /** @deprecated use `DeploymentStreamDollarAndDollarNe$outboundSchema` instead. */
7544
+ export const outboundSchema =
7545
+ DeploymentStreamDollarAndDollarNe$outboundSchema;
7546
+ /** @deprecated use `DeploymentStreamDollarAndDollarNe$Outbound` instead. */
7547
+ export type Outbound = DeploymentStreamDollarAndDollarNe$Outbound;
7548
+ }
7549
+
7550
+ export function deploymentStreamDollarAndDollarNeToJSON(
7551
+ deploymentStreamDollarAndDollarNe: DeploymentStreamDollarAndDollarNe,
7552
+ ): string {
7553
+ return JSON.stringify(
7554
+ DeploymentStreamDollarAndDollarNe$outboundSchema.parse(
7555
+ deploymentStreamDollarAndDollarNe,
7556
+ ),
7557
+ );
7558
+ }
7559
+
7560
+ export function deploymentStreamDollarAndDollarNeFromJSON(
7561
+ jsonString: string,
7562
+ ): SafeParseResult<DeploymentStreamDollarAndDollarNe, SDKValidationError> {
7563
+ return safeParse(
7564
+ jsonString,
7565
+ (x) => DeploymentStreamDollarAndDollarNe$inboundSchema.parse(JSON.parse(x)),
7566
+ `Failed to parse 'DeploymentStreamDollarAndDollarNe' from JSON`,
7567
+ );
7568
+ }
7569
+
7570
+ /** @internal */
7571
+ export const DeploymentStreamDollarAndDeploymentsDollarEq$inboundSchema:
7572
+ z.ZodType<
7573
+ DeploymentStreamDollarAndDeploymentsDollarEq,
7574
+ z.ZodTypeDef,
7575
+ unknown
7576
+ > = z.union([z.string(), z.number(), z.boolean()]);
7577
+
7578
+ /** @internal */
7579
+ export type DeploymentStreamDollarAndDeploymentsDollarEq$Outbound =
7580
+ | string
7581
+ | number
7582
+ | boolean;
7583
+
7584
+ /** @internal */
7585
+ export const DeploymentStreamDollarAndDeploymentsDollarEq$outboundSchema:
7586
+ z.ZodType<
7587
+ DeploymentStreamDollarAndDeploymentsDollarEq$Outbound,
7588
+ z.ZodTypeDef,
7589
+ DeploymentStreamDollarAndDeploymentsDollarEq
7590
+ > = z.union([z.string(), z.number(), z.boolean()]);
7591
+
7592
+ /**
7593
+ * @internal
7594
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7595
+ */
7596
+ export namespace DeploymentStreamDollarAndDeploymentsDollarEq$ {
7597
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarEq$inboundSchema` instead. */
7598
+ export const inboundSchema =
7599
+ DeploymentStreamDollarAndDeploymentsDollarEq$inboundSchema;
7600
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarEq$outboundSchema` instead. */
7601
+ export const outboundSchema =
7602
+ DeploymentStreamDollarAndDeploymentsDollarEq$outboundSchema;
7603
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarEq$Outbound` instead. */
7604
+ export type Outbound = DeploymentStreamDollarAndDeploymentsDollarEq$Outbound;
7605
+ }
7606
+
7607
+ export function deploymentStreamDollarAndDeploymentsDollarEqToJSON(
7608
+ deploymentStreamDollarAndDeploymentsDollarEq:
7609
+ DeploymentStreamDollarAndDeploymentsDollarEq,
7610
+ ): string {
7611
+ return JSON.stringify(
7612
+ DeploymentStreamDollarAndDeploymentsDollarEq$outboundSchema.parse(
7613
+ deploymentStreamDollarAndDeploymentsDollarEq,
7614
+ ),
7615
+ );
7616
+ }
7617
+
7618
+ export function deploymentStreamDollarAndDeploymentsDollarEqFromJSON(
7619
+ jsonString: string,
7620
+ ): SafeParseResult<
7621
+ DeploymentStreamDollarAndDeploymentsDollarEq,
7622
+ SDKValidationError
7623
+ > {
7624
+ return safeParse(
7625
+ jsonString,
7626
+ (x) =>
7627
+ DeploymentStreamDollarAndDeploymentsDollarEq$inboundSchema.parse(
7628
+ JSON.parse(x),
7629
+ ),
7630
+ `Failed to parse 'DeploymentStreamDollarAndDeploymentsDollarEq' from JSON`,
7631
+ );
7632
+ }
7633
+
7634
+ /** @internal */
7635
+ export const DeploymentStreamDollarAndDollarEq$inboundSchema: z.ZodType<
7636
+ DeploymentStreamDollarAndDollarEq,
7637
+ z.ZodTypeDef,
7638
+ unknown
7639
+ > = z.object({
7640
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
7641
+ }).transform((v) => {
7642
+ return remap$(v, {
7643
+ "$eq": "dollarEq",
7644
+ });
7645
+ });
7646
+
7647
+ /** @internal */
7648
+ export type DeploymentStreamDollarAndDollarEq$Outbound = {
7649
+ $eq: string | number | boolean;
7650
+ };
7651
+
7652
+ /** @internal */
7653
+ export const DeploymentStreamDollarAndDollarEq$outboundSchema: z.ZodType<
7654
+ DeploymentStreamDollarAndDollarEq$Outbound,
7655
+ z.ZodTypeDef,
7656
+ DeploymentStreamDollarAndDollarEq
7657
+ > = z.object({
7658
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
7659
+ }).transform((v) => {
7660
+ return remap$(v, {
7661
+ dollarEq: "$eq",
7662
+ });
7663
+ });
7664
+
7665
+ /**
7666
+ * @internal
7667
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7668
+ */
7669
+ export namespace DeploymentStreamDollarAndDollarEq$ {
7670
+ /** @deprecated use `DeploymentStreamDollarAndDollarEq$inboundSchema` instead. */
7671
+ export const inboundSchema = DeploymentStreamDollarAndDollarEq$inboundSchema;
7672
+ /** @deprecated use `DeploymentStreamDollarAndDollarEq$outboundSchema` instead. */
7673
+ export const outboundSchema =
7674
+ DeploymentStreamDollarAndDollarEq$outboundSchema;
7675
+ /** @deprecated use `DeploymentStreamDollarAndDollarEq$Outbound` instead. */
7676
+ export type Outbound = DeploymentStreamDollarAndDollarEq$Outbound;
7677
+ }
7678
+
7679
+ export function deploymentStreamDollarAndDollarEqToJSON(
7680
+ deploymentStreamDollarAndDollarEq: DeploymentStreamDollarAndDollarEq,
7681
+ ): string {
7682
+ return JSON.stringify(
7683
+ DeploymentStreamDollarAndDollarEq$outboundSchema.parse(
7684
+ deploymentStreamDollarAndDollarEq,
7685
+ ),
7686
+ );
7687
+ }
7688
+
7689
+ export function deploymentStreamDollarAndDollarEqFromJSON(
7690
+ jsonString: string,
7691
+ ): SafeParseResult<DeploymentStreamDollarAndDollarEq, SDKValidationError> {
7692
+ return safeParse(
7693
+ jsonString,
7694
+ (x) => DeploymentStreamDollarAndDollarEq$inboundSchema.parse(JSON.parse(x)),
7695
+ `Failed to parse 'DeploymentStreamDollarAndDollarEq' from JSON`,
7696
+ );
7697
+ }
7698
+
7699
+ /** @internal */
7700
+ export const DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$inboundSchema:
7701
+ z.ZodType<
7702
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd,
7703
+ z.ZodTypeDef,
7704
+ unknown
7705
+ > = z.union([
7706
+ z.lazy(() => DeploymentStreamDollarAndDollarEq$inboundSchema),
7707
+ z.lazy(() => DeploymentStreamDollarAndDollarNe$inboundSchema),
7708
+ z.lazy(() => DeploymentStreamDollarAnd3$inboundSchema),
7709
+ z.lazy(() => DeploymentStreamDollarAndDollarGte$inboundSchema),
7710
+ z.lazy(() => DeploymentStreamDollarAndDollarLt$inboundSchema),
7711
+ z.lazy(() => DeploymentStreamDollarAndDollarLte$inboundSchema),
7712
+ z.lazy(() => DeploymentStreamDollarAndDollarIn$inboundSchema),
7713
+ z.lazy(() => DeploymentStreamDollarAndDollarNin$inboundSchema),
7714
+ z.lazy(() => DeploymentStreamDollarAndDollarExists$inboundSchema),
7715
+ ]);
7716
+
7717
+ /** @internal */
7718
+ export type DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$Outbound =
7719
+ | DeploymentStreamDollarAndDollarEq$Outbound
7720
+ | DeploymentStreamDollarAndDollarNe$Outbound
7721
+ | DeploymentStreamDollarAnd3$Outbound
7722
+ | DeploymentStreamDollarAndDollarGte$Outbound
7723
+ | DeploymentStreamDollarAndDollarLt$Outbound
7724
+ | DeploymentStreamDollarAndDollarLte$Outbound
7725
+ | DeploymentStreamDollarAndDollarIn$Outbound
7726
+ | DeploymentStreamDollarAndDollarNin$Outbound
7727
+ | DeploymentStreamDollarAndDollarExists$Outbound;
7728
+
7729
+ /** @internal */
7730
+ export const DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$outboundSchema:
7731
+ z.ZodType<
7732
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$Outbound,
7733
+ z.ZodTypeDef,
7734
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd
7735
+ > = z.union([
7736
+ z.lazy(() => DeploymentStreamDollarAndDollarEq$outboundSchema),
7737
+ z.lazy(() => DeploymentStreamDollarAndDollarNe$outboundSchema),
7738
+ z.lazy(() => DeploymentStreamDollarAnd3$outboundSchema),
7739
+ z.lazy(() => DeploymentStreamDollarAndDollarGte$outboundSchema),
7740
+ z.lazy(() => DeploymentStreamDollarAndDollarLt$outboundSchema),
7741
+ z.lazy(() => DeploymentStreamDollarAndDollarLte$outboundSchema),
7742
+ z.lazy(() => DeploymentStreamDollarAndDollarIn$outboundSchema),
7743
+ z.lazy(() => DeploymentStreamDollarAndDollarNin$outboundSchema),
7744
+ z.lazy(() => DeploymentStreamDollarAndDollarExists$outboundSchema),
7745
+ ]);
7746
+
7747
+ /**
7748
+ * @internal
7749
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7750
+ */
7751
+ export namespace DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$ {
7752
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$inboundSchema` instead. */
7753
+ export const inboundSchema =
7754
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$inboundSchema;
7755
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$outboundSchema` instead. */
7756
+ export const outboundSchema =
7757
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$outboundSchema;
7758
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$Outbound` instead. */
7759
+ export type Outbound =
7760
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$Outbound;
7761
+ }
7762
+
7763
+ export function deploymentStreamKnowledgeFilterDeploymentsDollarAndToJSON(
7764
+ deploymentStreamKnowledgeFilterDeploymentsDollarAnd:
7765
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd,
7766
+ ): string {
7767
+ return JSON.stringify(
7768
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$outboundSchema.parse(
7769
+ deploymentStreamKnowledgeFilterDeploymentsDollarAnd,
7770
+ ),
7771
+ );
7772
+ }
7773
+
7774
+ export function deploymentStreamKnowledgeFilterDeploymentsDollarAndFromJSON(
7775
+ jsonString: string,
7776
+ ): SafeParseResult<
7777
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd,
7778
+ SDKValidationError
7779
+ > {
7780
+ return safeParse(
7781
+ jsonString,
7782
+ (x) =>
7783
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$inboundSchema.parse(
7784
+ JSON.parse(x),
7785
+ ),
7786
+ `Failed to parse 'DeploymentStreamKnowledgeFilterDeploymentsDollarAnd' from JSON`,
7787
+ );
7788
+ }
7789
+
7790
+ /** @internal */
7791
+ export const DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema: z.ZodType<
7792
+ DeploymentStreamKnowledgeFilterDollarAnd,
7793
+ z.ZodTypeDef,
7794
+ unknown
7795
+ > = z.object({
7796
+ $and: z.array(
7797
+ z.record(z.union([
7798
+ z.lazy(() => DeploymentStreamDollarAndDollarEq$inboundSchema),
7799
+ z.lazy(() =>
7800
+ DeploymentStreamDollarAndDollarNe$inboundSchema
7801
+ ),
7802
+ z.lazy(() => DeploymentStreamDollarAnd3$inboundSchema),
7803
+ z.lazy(() => DeploymentStreamDollarAndDollarGte$inboundSchema),
7804
+ z.lazy(() => DeploymentStreamDollarAndDollarLt$inboundSchema),
7805
+ z.lazy(() => DeploymentStreamDollarAndDollarLte$inboundSchema),
7806
+ z.lazy(() => DeploymentStreamDollarAndDollarIn$inboundSchema),
7807
+ z.lazy(() => DeploymentStreamDollarAndDollarNin$inboundSchema),
7808
+ z.lazy(() => DeploymentStreamDollarAndDollarExists$inboundSchema),
7809
+ ])),
7810
+ ),
7811
+ }).transform((v) => {
7812
+ return remap$(v, {
7813
+ "$and": "dollarAnd",
7814
+ });
7815
+ });
7816
+
7817
+ /** @internal */
7818
+ export type DeploymentStreamKnowledgeFilterDollarAnd$Outbound = {
7819
+ $and: Array<
7820
+ {
7821
+ [k: string]:
7822
+ | DeploymentStreamDollarAndDollarEq$Outbound
7823
+ | DeploymentStreamDollarAndDollarNe$Outbound
7824
+ | DeploymentStreamDollarAnd3$Outbound
7825
+ | DeploymentStreamDollarAndDollarGte$Outbound
7826
+ | DeploymentStreamDollarAndDollarLt$Outbound
7827
+ | DeploymentStreamDollarAndDollarLte$Outbound
7828
+ | DeploymentStreamDollarAndDollarIn$Outbound
7829
+ | DeploymentStreamDollarAndDollarNin$Outbound
7830
+ | DeploymentStreamDollarAndDollarExists$Outbound;
7831
+ }
7832
+ >;
7833
+ };
7834
+
7835
+ /** @internal */
7836
+ export const DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema: z.ZodType<
7837
+ DeploymentStreamKnowledgeFilterDollarAnd$Outbound,
7838
+ z.ZodTypeDef,
7839
+ DeploymentStreamKnowledgeFilterDollarAnd
7840
+ > = z.object({
7841
+ dollarAnd: z.array(
7842
+ z.record(z.union([
7843
+ z.lazy(() => DeploymentStreamDollarAndDollarEq$outboundSchema),
7844
+ z.lazy(() =>
7845
+ DeploymentStreamDollarAndDollarNe$outboundSchema
7846
+ ),
7847
+ z.lazy(() => DeploymentStreamDollarAnd3$outboundSchema),
7848
+ z.lazy(() => DeploymentStreamDollarAndDollarGte$outboundSchema),
7849
+ z.lazy(() => DeploymentStreamDollarAndDollarLt$outboundSchema),
7850
+ z.lazy(() => DeploymentStreamDollarAndDollarLte$outboundSchema),
7851
+ z.lazy(() => DeploymentStreamDollarAndDollarIn$outboundSchema),
7852
+ z.lazy(() => DeploymentStreamDollarAndDollarNin$outboundSchema),
7853
+ z.lazy(() => DeploymentStreamDollarAndDollarExists$outboundSchema),
7854
+ ])),
7855
+ ),
7856
+ }).transform((v) => {
7857
+ return remap$(v, {
7858
+ dollarAnd: "$and",
7859
+ });
7860
+ });
7861
+
7862
+ /**
7863
+ * @internal
7864
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7865
+ */
7866
+ export namespace DeploymentStreamKnowledgeFilterDollarAnd$ {
7867
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema` instead. */
7868
+ export const inboundSchema =
7869
+ DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema;
7870
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema` instead. */
7871
+ export const outboundSchema =
7872
+ DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema;
7873
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarAnd$Outbound` instead. */
7874
+ export type Outbound = DeploymentStreamKnowledgeFilterDollarAnd$Outbound;
7875
+ }
7876
+
7877
+ export function deploymentStreamKnowledgeFilterDollarAndToJSON(
7878
+ deploymentStreamKnowledgeFilterDollarAnd:
7879
+ DeploymentStreamKnowledgeFilterDollarAnd,
7880
+ ): string {
7881
+ return JSON.stringify(
7882
+ DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema.parse(
7883
+ deploymentStreamKnowledgeFilterDollarAnd,
7884
+ ),
7885
+ );
7886
+ }
7887
+
7888
+ export function deploymentStreamKnowledgeFilterDollarAndFromJSON(
7889
+ jsonString: string,
7890
+ ): SafeParseResult<
7891
+ DeploymentStreamKnowledgeFilterDollarAnd,
7892
+ SDKValidationError
7893
+ > {
7894
+ return safeParse(
7895
+ jsonString,
7896
+ (x) =>
7897
+ DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema.parse(
7898
+ JSON.parse(x),
7899
+ ),
7900
+ `Failed to parse 'DeploymentStreamKnowledgeFilterDollarAnd' from JSON`,
7901
+ );
7902
+ }
7903
+
7904
+ /** @internal */
7905
+ export const OneDollarExists$inboundSchema: z.ZodType<
7906
+ OneDollarExists,
7907
+ z.ZodTypeDef,
7908
+ unknown
7909
+ > = z.object({
7910
+ $exists: z.boolean(),
7911
+ }).transform((v) => {
7912
+ return remap$(v, {
7913
+ "$exists": "dollarExists",
7914
+ });
7915
+ });
7916
+
7917
+ /** @internal */
7918
+ export type OneDollarExists$Outbound = {
7919
+ $exists: boolean;
7920
+ };
7921
+
7922
+ /** @internal */
7923
+ export const OneDollarExists$outboundSchema: z.ZodType<
7924
+ OneDollarExists$Outbound,
7925
+ z.ZodTypeDef,
7926
+ OneDollarExists
7927
+ > = z.object({
7928
+ dollarExists: z.boolean(),
7929
+ }).transform((v) => {
7930
+ return remap$(v, {
7931
+ dollarExists: "$exists",
7932
+ });
7933
+ });
7934
+
7935
+ /**
7936
+ * @internal
7937
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7938
+ */
7939
+ export namespace OneDollarExists$ {
7940
+ /** @deprecated use `OneDollarExists$inboundSchema` instead. */
7941
+ export const inboundSchema = OneDollarExists$inboundSchema;
7942
+ /** @deprecated use `OneDollarExists$outboundSchema` instead. */
7943
+ export const outboundSchema = OneDollarExists$outboundSchema;
7944
+ /** @deprecated use `OneDollarExists$Outbound` instead. */
7945
+ export type Outbound = OneDollarExists$Outbound;
7946
+ }
7947
+
7948
+ export function oneDollarExistsToJSON(
7949
+ oneDollarExists: OneDollarExists,
7950
+ ): string {
7951
+ return JSON.stringify(OneDollarExists$outboundSchema.parse(oneDollarExists));
7952
+ }
7953
+
7954
+ export function oneDollarExistsFromJSON(
7955
+ jsonString: string,
7956
+ ): SafeParseResult<OneDollarExists, SDKValidationError> {
7957
+ return safeParse(
7958
+ jsonString,
7959
+ (x) => OneDollarExists$inboundSchema.parse(JSON.parse(x)),
7960
+ `Failed to parse 'OneDollarExists' from JSON`,
7961
+ );
7962
+ }
7963
+
7964
+ /** @internal */
7965
+ export const DeploymentStream1DeploymentsDollarNin$inboundSchema: z.ZodType<
7966
+ DeploymentStream1DeploymentsDollarNin,
7967
+ z.ZodTypeDef,
7968
+ unknown
7969
+ > = z.union([z.string(), z.number(), z.boolean()]);
7970
+
7971
+ /** @internal */
7972
+ export type DeploymentStream1DeploymentsDollarNin$Outbound =
7973
+ | string
7974
+ | number
7975
+ | boolean;
7976
+
7977
+ /** @internal */
7978
+ export const DeploymentStream1DeploymentsDollarNin$outboundSchema: z.ZodType<
7979
+ DeploymentStream1DeploymentsDollarNin$Outbound,
7980
+ z.ZodTypeDef,
7981
+ DeploymentStream1DeploymentsDollarNin
7982
+ > = z.union([z.string(), z.number(), z.boolean()]);
7983
+
7984
+ /**
7985
+ * @internal
7986
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7987
+ */
7988
+ export namespace DeploymentStream1DeploymentsDollarNin$ {
7989
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNin$inboundSchema` instead. */
7990
+ export const inboundSchema =
7991
+ DeploymentStream1DeploymentsDollarNin$inboundSchema;
7992
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNin$outboundSchema` instead. */
7993
+ export const outboundSchema =
7994
+ DeploymentStream1DeploymentsDollarNin$outboundSchema;
7995
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNin$Outbound` instead. */
7996
+ export type Outbound = DeploymentStream1DeploymentsDollarNin$Outbound;
7997
+ }
7998
+
7999
+ export function deploymentStream1DeploymentsDollarNinToJSON(
8000
+ deploymentStream1DeploymentsDollarNin: DeploymentStream1DeploymentsDollarNin,
8001
+ ): string {
8002
+ return JSON.stringify(
8003
+ DeploymentStream1DeploymentsDollarNin$outboundSchema.parse(
8004
+ deploymentStream1DeploymentsDollarNin,
8005
+ ),
8006
+ );
8007
+ }
8008
+
8009
+ export function deploymentStream1DeploymentsDollarNinFromJSON(
8010
+ jsonString: string,
8011
+ ): SafeParseResult<DeploymentStream1DeploymentsDollarNin, SDKValidationError> {
8012
+ return safeParse(
8013
+ jsonString,
8014
+ (x) =>
8015
+ DeploymentStream1DeploymentsDollarNin$inboundSchema.parse(JSON.parse(x)),
8016
+ `Failed to parse 'DeploymentStream1DeploymentsDollarNin' from JSON`,
8017
+ );
8018
+ }
8019
+
8020
+ /** @internal */
8021
+ export const DeploymentStream1DollarNin$inboundSchema: z.ZodType<
8022
+ DeploymentStream1DollarNin,
8023
+ z.ZodTypeDef,
8024
+ unknown
8025
+ > = z.object({
8026
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
8027
+ }).transform((v) => {
8028
+ return remap$(v, {
8029
+ "$nin": "dollarNin",
8030
+ });
8031
+ });
8032
+
8033
+ /** @internal */
8034
+ export type DeploymentStream1DollarNin$Outbound = {
8035
+ $nin: Array<string | number | boolean>;
8036
+ };
8037
+
8038
+ /** @internal */
8039
+ export const DeploymentStream1DollarNin$outboundSchema: z.ZodType<
8040
+ DeploymentStream1DollarNin$Outbound,
8041
+ z.ZodTypeDef,
8042
+ DeploymentStream1DollarNin
8043
+ > = z.object({
8044
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
8045
+ }).transform((v) => {
8046
+ return remap$(v, {
8047
+ dollarNin: "$nin",
8048
+ });
8049
+ });
8050
+
8051
+ /**
8052
+ * @internal
8053
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8054
+ */
8055
+ export namespace DeploymentStream1DollarNin$ {
8056
+ /** @deprecated use `DeploymentStream1DollarNin$inboundSchema` instead. */
8057
+ export const inboundSchema = DeploymentStream1DollarNin$inboundSchema;
8058
+ /** @deprecated use `DeploymentStream1DollarNin$outboundSchema` instead. */
8059
+ export const outboundSchema = DeploymentStream1DollarNin$outboundSchema;
8060
+ /** @deprecated use `DeploymentStream1DollarNin$Outbound` instead. */
8061
+ export type Outbound = DeploymentStream1DollarNin$Outbound;
8062
+ }
8063
+
8064
+ export function deploymentStream1DollarNinToJSON(
8065
+ deploymentStream1DollarNin: DeploymentStream1DollarNin,
8066
+ ): string {
8067
+ return JSON.stringify(
8068
+ DeploymentStream1DollarNin$outboundSchema.parse(deploymentStream1DollarNin),
8069
+ );
8070
+ }
8071
+
8072
+ export function deploymentStream1DollarNinFromJSON(
8073
+ jsonString: string,
8074
+ ): SafeParseResult<DeploymentStream1DollarNin, SDKValidationError> {
8075
+ return safeParse(
8076
+ jsonString,
8077
+ (x) => DeploymentStream1DollarNin$inboundSchema.parse(JSON.parse(x)),
8078
+ `Failed to parse 'DeploymentStream1DollarNin' from JSON`,
8079
+ );
8080
+ }
8081
+
8082
+ /** @internal */
8083
+ export const DeploymentStream1DeploymentsDollarIn$inboundSchema: z.ZodType<
8084
+ DeploymentStream1DeploymentsDollarIn,
8085
+ z.ZodTypeDef,
8086
+ unknown
8087
+ > = z.union([z.string(), z.number(), z.boolean()]);
8088
+
8089
+ /** @internal */
8090
+ export type DeploymentStream1DeploymentsDollarIn$Outbound =
8091
+ | string
8092
+ | number
8093
+ | boolean;
8094
+
8095
+ /** @internal */
8096
+ export const DeploymentStream1DeploymentsDollarIn$outboundSchema: z.ZodType<
8097
+ DeploymentStream1DeploymentsDollarIn$Outbound,
8098
+ z.ZodTypeDef,
8099
+ DeploymentStream1DeploymentsDollarIn
8100
+ > = z.union([z.string(), z.number(), z.boolean()]);
8101
+
8102
+ /**
8103
+ * @internal
8104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8105
+ */
8106
+ export namespace DeploymentStream1DeploymentsDollarIn$ {
8107
+ /** @deprecated use `DeploymentStream1DeploymentsDollarIn$inboundSchema` instead. */
8108
+ export const inboundSchema =
8109
+ DeploymentStream1DeploymentsDollarIn$inboundSchema;
8110
+ /** @deprecated use `DeploymentStream1DeploymentsDollarIn$outboundSchema` instead. */
8111
+ export const outboundSchema =
8112
+ DeploymentStream1DeploymentsDollarIn$outboundSchema;
8113
+ /** @deprecated use `DeploymentStream1DeploymentsDollarIn$Outbound` instead. */
8114
+ export type Outbound = DeploymentStream1DeploymentsDollarIn$Outbound;
8115
+ }
8116
+
8117
+ export function deploymentStream1DeploymentsDollarInToJSON(
8118
+ deploymentStream1DeploymentsDollarIn: DeploymentStream1DeploymentsDollarIn,
8119
+ ): string {
8120
+ return JSON.stringify(
8121
+ DeploymentStream1DeploymentsDollarIn$outboundSchema.parse(
8122
+ deploymentStream1DeploymentsDollarIn,
8123
+ ),
8124
+ );
8125
+ }
8126
+
8127
+ export function deploymentStream1DeploymentsDollarInFromJSON(
8128
+ jsonString: string,
8129
+ ): SafeParseResult<DeploymentStream1DeploymentsDollarIn, SDKValidationError> {
8130
+ return safeParse(
8131
+ jsonString,
8132
+ (x) =>
8133
+ DeploymentStream1DeploymentsDollarIn$inboundSchema.parse(JSON.parse(x)),
8134
+ `Failed to parse 'DeploymentStream1DeploymentsDollarIn' from JSON`,
8135
+ );
8136
+ }
8137
+
8138
+ /** @internal */
8139
+ export const DeploymentStream1DollarIn$inboundSchema: z.ZodType<
8140
+ DeploymentStream1DollarIn,
8141
+ z.ZodTypeDef,
8142
+ unknown
8143
+ > = z.object({
8144
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
8145
+ }).transform((v) => {
8146
+ return remap$(v, {
8147
+ "$in": "dollarIn",
8148
+ });
8149
+ });
8150
+
8151
+ /** @internal */
8152
+ export type DeploymentStream1DollarIn$Outbound = {
8153
+ $in: Array<string | number | boolean>;
8154
+ };
8155
+
8156
+ /** @internal */
8157
+ export const DeploymentStream1DollarIn$outboundSchema: z.ZodType<
8158
+ DeploymentStream1DollarIn$Outbound,
8159
+ z.ZodTypeDef,
8160
+ DeploymentStream1DollarIn
8161
+ > = z.object({
8162
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
8163
+ }).transform((v) => {
8164
+ return remap$(v, {
8165
+ dollarIn: "$in",
8166
+ });
8167
+ });
8168
+
8169
+ /**
8170
+ * @internal
8171
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8172
+ */
8173
+ export namespace DeploymentStream1DollarIn$ {
8174
+ /** @deprecated use `DeploymentStream1DollarIn$inboundSchema` instead. */
8175
+ export const inboundSchema = DeploymentStream1DollarIn$inboundSchema;
8176
+ /** @deprecated use `DeploymentStream1DollarIn$outboundSchema` instead. */
8177
+ export const outboundSchema = DeploymentStream1DollarIn$outboundSchema;
8178
+ /** @deprecated use `DeploymentStream1DollarIn$Outbound` instead. */
8179
+ export type Outbound = DeploymentStream1DollarIn$Outbound;
8180
+ }
8181
+
8182
+ export function deploymentStream1DollarInToJSON(
8183
+ deploymentStream1DollarIn: DeploymentStream1DollarIn,
8184
+ ): string {
8185
+ return JSON.stringify(
8186
+ DeploymentStream1DollarIn$outboundSchema.parse(deploymentStream1DollarIn),
8187
+ );
8188
+ }
8189
+
8190
+ export function deploymentStream1DollarInFromJSON(
8191
+ jsonString: string,
8192
+ ): SafeParseResult<DeploymentStream1DollarIn, SDKValidationError> {
8193
+ return safeParse(
8194
+ jsonString,
8195
+ (x) => DeploymentStream1DollarIn$inboundSchema.parse(JSON.parse(x)),
8196
+ `Failed to parse 'DeploymentStream1DollarIn' from JSON`,
8197
+ );
8198
+ }
8199
+
8200
+ /** @internal */
8201
+ export const OneDollarLte$inboundSchema: z.ZodType<
8202
+ OneDollarLte,
8203
+ z.ZodTypeDef,
8204
+ unknown
8205
+ > = z.object({
8206
+ $lte: z.number(),
8207
+ }).transform((v) => {
8208
+ return remap$(v, {
8209
+ "$lte": "dollarLte",
8210
+ });
8211
+ });
8212
+
8213
+ /** @internal */
8214
+ export type OneDollarLte$Outbound = {
8215
+ $lte: number;
8216
+ };
8217
+
8218
+ /** @internal */
8219
+ export const OneDollarLte$outboundSchema: z.ZodType<
8220
+ OneDollarLte$Outbound,
8221
+ z.ZodTypeDef,
8222
+ OneDollarLte
8223
+ > = z.object({
8224
+ dollarLte: z.number(),
8225
+ }).transform((v) => {
8226
+ return remap$(v, {
8227
+ dollarLte: "$lte",
8228
+ });
8229
+ });
8230
+
8231
+ /**
8232
+ * @internal
8233
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8234
+ */
8235
+ export namespace OneDollarLte$ {
8236
+ /** @deprecated use `OneDollarLte$inboundSchema` instead. */
8237
+ export const inboundSchema = OneDollarLte$inboundSchema;
8238
+ /** @deprecated use `OneDollarLte$outboundSchema` instead. */
8239
+ export const outboundSchema = OneDollarLte$outboundSchema;
8240
+ /** @deprecated use `OneDollarLte$Outbound` instead. */
8241
+ export type Outbound = OneDollarLte$Outbound;
8242
+ }
8243
+
8244
+ export function oneDollarLteToJSON(oneDollarLte: OneDollarLte): string {
8245
+ return JSON.stringify(OneDollarLte$outboundSchema.parse(oneDollarLte));
8246
+ }
8247
+
8248
+ export function oneDollarLteFromJSON(
8249
+ jsonString: string,
8250
+ ): SafeParseResult<OneDollarLte, SDKValidationError> {
8251
+ return safeParse(
8252
+ jsonString,
8253
+ (x) => OneDollarLte$inboundSchema.parse(JSON.parse(x)),
8254
+ `Failed to parse 'OneDollarLte' from JSON`,
8255
+ );
8256
+ }
8257
+
8258
+ /** @internal */
8259
+ export const OneDollarLt$inboundSchema: z.ZodType<
8260
+ OneDollarLt,
8261
+ z.ZodTypeDef,
8262
+ unknown
8263
+ > = z.object({
8264
+ $lt: z.number(),
8265
+ }).transform((v) => {
8266
+ return remap$(v, {
8267
+ "$lt": "dollarLt",
8268
+ });
8269
+ });
8270
+
8271
+ /** @internal */
8272
+ export type OneDollarLt$Outbound = {
8273
+ $lt: number;
8274
+ };
8275
+
8276
+ /** @internal */
8277
+ export const OneDollarLt$outboundSchema: z.ZodType<
8278
+ OneDollarLt$Outbound,
8279
+ z.ZodTypeDef,
8280
+ OneDollarLt
8281
+ > = z.object({
8282
+ dollarLt: z.number(),
8283
+ }).transform((v) => {
8284
+ return remap$(v, {
8285
+ dollarLt: "$lt",
8286
+ });
8287
+ });
8288
+
8289
+ /**
8290
+ * @internal
8291
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8292
+ */
8293
+ export namespace OneDollarLt$ {
8294
+ /** @deprecated use `OneDollarLt$inboundSchema` instead. */
8295
+ export const inboundSchema = OneDollarLt$inboundSchema;
8296
+ /** @deprecated use `OneDollarLt$outboundSchema` instead. */
8297
+ export const outboundSchema = OneDollarLt$outboundSchema;
8298
+ /** @deprecated use `OneDollarLt$Outbound` instead. */
8299
+ export type Outbound = OneDollarLt$Outbound;
8300
+ }
8301
+
8302
+ export function oneDollarLtToJSON(oneDollarLt: OneDollarLt): string {
8303
+ return JSON.stringify(OneDollarLt$outboundSchema.parse(oneDollarLt));
8304
+ }
8305
+
8306
+ export function oneDollarLtFromJSON(
8307
+ jsonString: string,
8308
+ ): SafeParseResult<OneDollarLt, SDKValidationError> {
8309
+ return safeParse(
8310
+ jsonString,
8311
+ (x) => OneDollarLt$inboundSchema.parse(JSON.parse(x)),
8312
+ `Failed to parse 'OneDollarLt' from JSON`,
8313
+ );
8314
+ }
8315
+
8316
+ /** @internal */
8317
+ export const OneDollarGte$inboundSchema: z.ZodType<
8318
+ OneDollarGte,
8319
+ z.ZodTypeDef,
8320
+ unknown
8321
+ > = z.object({
8322
+ $gte: z.number(),
8323
+ }).transform((v) => {
8324
+ return remap$(v, {
8325
+ "$gte": "dollarGte",
8326
+ });
8327
+ });
8328
+
8329
+ /** @internal */
8330
+ export type OneDollarGte$Outbound = {
8331
+ $gte: number;
8332
+ };
8333
+
8334
+ /** @internal */
8335
+ export const OneDollarGte$outboundSchema: z.ZodType<
8336
+ OneDollarGte$Outbound,
8337
+ z.ZodTypeDef,
8338
+ OneDollarGte
8339
+ > = z.object({
8340
+ dollarGte: z.number(),
8341
+ }).transform((v) => {
8342
+ return remap$(v, {
8343
+ dollarGte: "$gte",
8344
+ });
8345
+ });
8346
+
8347
+ /**
8348
+ * @internal
8349
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8350
+ */
8351
+ export namespace OneDollarGte$ {
8352
+ /** @deprecated use `OneDollarGte$inboundSchema` instead. */
8353
+ export const inboundSchema = OneDollarGte$inboundSchema;
8354
+ /** @deprecated use `OneDollarGte$outboundSchema` instead. */
8355
+ export const outboundSchema = OneDollarGte$outboundSchema;
8356
+ /** @deprecated use `OneDollarGte$Outbound` instead. */
8357
+ export type Outbound = OneDollarGte$Outbound;
8358
+ }
8359
+
8360
+ export function oneDollarGteToJSON(oneDollarGte: OneDollarGte): string {
8361
+ return JSON.stringify(OneDollarGte$outboundSchema.parse(oneDollarGte));
8362
+ }
8363
+
8364
+ export function oneDollarGteFromJSON(
8365
+ jsonString: string,
8366
+ ): SafeParseResult<OneDollarGte, SDKValidationError> {
8367
+ return safeParse(
8368
+ jsonString,
8369
+ (x) => OneDollarGte$inboundSchema.parse(JSON.parse(x)),
8370
+ `Failed to parse 'OneDollarGte' from JSON`,
8371
+ );
8372
+ }
8373
+
8374
+ /** @internal */
8375
+ export const DeploymentStream13$inboundSchema: z.ZodType<
8376
+ DeploymentStream13,
8377
+ z.ZodTypeDef,
8378
+ unknown
8379
+ > = z.object({
8380
+ $gt: z.number(),
8381
+ }).transform((v) => {
8382
+ return remap$(v, {
8383
+ "$gt": "dollarGt",
8384
+ });
8385
+ });
8386
+
8387
+ /** @internal */
8388
+ export type DeploymentStream13$Outbound = {
8389
+ $gt: number;
8390
+ };
8391
+
8392
+ /** @internal */
8393
+ export const DeploymentStream13$outboundSchema: z.ZodType<
8394
+ DeploymentStream13$Outbound,
8395
+ z.ZodTypeDef,
8396
+ DeploymentStream13
8397
+ > = z.object({
8398
+ dollarGt: z.number(),
8399
+ }).transform((v) => {
8400
+ return remap$(v, {
8401
+ dollarGt: "$gt",
8402
+ });
8403
+ });
8404
+
8405
+ /**
8406
+ * @internal
8407
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8408
+ */
8409
+ export namespace DeploymentStream13$ {
8410
+ /** @deprecated use `DeploymentStream13$inboundSchema` instead. */
8411
+ export const inboundSchema = DeploymentStream13$inboundSchema;
8412
+ /** @deprecated use `DeploymentStream13$outboundSchema` instead. */
8413
+ export const outboundSchema = DeploymentStream13$outboundSchema;
8414
+ /** @deprecated use `DeploymentStream13$Outbound` instead. */
8415
+ export type Outbound = DeploymentStream13$Outbound;
8416
+ }
8417
+
8418
+ export function deploymentStream13ToJSON(
8419
+ deploymentStream13: DeploymentStream13,
8420
+ ): string {
8421
+ return JSON.stringify(
8422
+ DeploymentStream13$outboundSchema.parse(deploymentStream13),
8423
+ );
8424
+ }
8425
+
8426
+ export function deploymentStream13FromJSON(
8427
+ jsonString: string,
8428
+ ): SafeParseResult<DeploymentStream13, SDKValidationError> {
8429
+ return safeParse(
8430
+ jsonString,
8431
+ (x) => DeploymentStream13$inboundSchema.parse(JSON.parse(x)),
8432
+ `Failed to parse 'DeploymentStream13' from JSON`,
8433
+ );
8434
+ }
8435
+
8436
+ /** @internal */
8437
+ export const DeploymentStream1DeploymentsDollarNe$inboundSchema: z.ZodType<
8438
+ DeploymentStream1DeploymentsDollarNe,
8439
+ z.ZodTypeDef,
8440
+ unknown
8441
+ > = z.union([z.string(), z.number(), z.boolean()]);
8442
+
8443
+ /** @internal */
8444
+ export type DeploymentStream1DeploymentsDollarNe$Outbound =
8445
+ | string
8446
+ | number
8447
+ | boolean;
8448
+
8449
+ /** @internal */
8450
+ export const DeploymentStream1DeploymentsDollarNe$outboundSchema: z.ZodType<
8451
+ DeploymentStream1DeploymentsDollarNe$Outbound,
8452
+ z.ZodTypeDef,
8453
+ DeploymentStream1DeploymentsDollarNe
8454
+ > = z.union([z.string(), z.number(), z.boolean()]);
8455
+
8456
+ /**
8457
+ * @internal
8458
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8459
+ */
8460
+ export namespace DeploymentStream1DeploymentsDollarNe$ {
8461
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNe$inboundSchema` instead. */
8462
+ export const inboundSchema =
8463
+ DeploymentStream1DeploymentsDollarNe$inboundSchema;
8464
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNe$outboundSchema` instead. */
8465
+ export const outboundSchema =
8466
+ DeploymentStream1DeploymentsDollarNe$outboundSchema;
8467
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNe$Outbound` instead. */
8468
+ export type Outbound = DeploymentStream1DeploymentsDollarNe$Outbound;
8469
+ }
8470
+
8471
+ export function deploymentStream1DeploymentsDollarNeToJSON(
8472
+ deploymentStream1DeploymentsDollarNe: DeploymentStream1DeploymentsDollarNe,
8473
+ ): string {
8474
+ return JSON.stringify(
8475
+ DeploymentStream1DeploymentsDollarNe$outboundSchema.parse(
8476
+ deploymentStream1DeploymentsDollarNe,
8477
+ ),
8478
+ );
8479
+ }
8480
+
8481
+ export function deploymentStream1DeploymentsDollarNeFromJSON(
8482
+ jsonString: string,
8483
+ ): SafeParseResult<DeploymentStream1DeploymentsDollarNe, SDKValidationError> {
8484
+ return safeParse(
8485
+ jsonString,
8486
+ (x) =>
8487
+ DeploymentStream1DeploymentsDollarNe$inboundSchema.parse(JSON.parse(x)),
8488
+ `Failed to parse 'DeploymentStream1DeploymentsDollarNe' from JSON`,
8489
+ );
8490
+ }
8491
+
8492
+ /** @internal */
8493
+ export const DeploymentStream1DollarNe$inboundSchema: z.ZodType<
8494
+ DeploymentStream1DollarNe,
8495
+ z.ZodTypeDef,
8496
+ unknown
8497
+ > = z.object({
8498
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
8499
+ }).transform((v) => {
8500
+ return remap$(v, {
8501
+ "$ne": "dollarNe",
8502
+ });
8503
+ });
8504
+
8505
+ /** @internal */
8506
+ export type DeploymentStream1DollarNe$Outbound = {
8507
+ $ne: string | number | boolean;
8508
+ };
8509
+
8510
+ /** @internal */
8511
+ export const DeploymentStream1DollarNe$outboundSchema: z.ZodType<
8512
+ DeploymentStream1DollarNe$Outbound,
8513
+ z.ZodTypeDef,
8514
+ DeploymentStream1DollarNe
8515
+ > = z.object({
8516
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
8517
+ }).transform((v) => {
8518
+ return remap$(v, {
8519
+ dollarNe: "$ne",
8520
+ });
8521
+ });
8522
+
8523
+ /**
8524
+ * @internal
8525
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8526
+ */
8527
+ export namespace DeploymentStream1DollarNe$ {
8528
+ /** @deprecated use `DeploymentStream1DollarNe$inboundSchema` instead. */
8529
+ export const inboundSchema = DeploymentStream1DollarNe$inboundSchema;
8530
+ /** @deprecated use `DeploymentStream1DollarNe$outboundSchema` instead. */
8531
+ export const outboundSchema = DeploymentStream1DollarNe$outboundSchema;
8532
+ /** @deprecated use `DeploymentStream1DollarNe$Outbound` instead. */
8533
+ export type Outbound = DeploymentStream1DollarNe$Outbound;
8534
+ }
8535
+
8536
+ export function deploymentStream1DollarNeToJSON(
8537
+ deploymentStream1DollarNe: DeploymentStream1DollarNe,
8538
+ ): string {
8539
+ return JSON.stringify(
8540
+ DeploymentStream1DollarNe$outboundSchema.parse(deploymentStream1DollarNe),
8541
+ );
8542
+ }
8543
+
8544
+ export function deploymentStream1DollarNeFromJSON(
8545
+ jsonString: string,
8546
+ ): SafeParseResult<DeploymentStream1DollarNe, SDKValidationError> {
8547
+ return safeParse(
8548
+ jsonString,
8549
+ (x) => DeploymentStream1DollarNe$inboundSchema.parse(JSON.parse(x)),
8550
+ `Failed to parse 'DeploymentStream1DollarNe' from JSON`,
8551
+ );
8552
+ }
8553
+
8554
+ /** @internal */
8555
+ export const DeploymentStream1DeploymentsDollarEq$inboundSchema: z.ZodType<
8556
+ DeploymentStream1DeploymentsDollarEq,
8557
+ z.ZodTypeDef,
8558
+ unknown
8559
+ > = z.union([z.string(), z.number(), z.boolean()]);
8560
+
8561
+ /** @internal */
8562
+ export type DeploymentStream1DeploymentsDollarEq$Outbound =
8563
+ | string
8564
+ | number
8565
+ | boolean;
8566
+
8567
+ /** @internal */
8568
+ export const DeploymentStream1DeploymentsDollarEq$outboundSchema: z.ZodType<
8569
+ DeploymentStream1DeploymentsDollarEq$Outbound,
8570
+ z.ZodTypeDef,
8571
+ DeploymentStream1DeploymentsDollarEq
8572
+ > = z.union([z.string(), z.number(), z.boolean()]);
8573
+
8574
+ /**
8575
+ * @internal
8576
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8577
+ */
8578
+ export namespace DeploymentStream1DeploymentsDollarEq$ {
8579
+ /** @deprecated use `DeploymentStream1DeploymentsDollarEq$inboundSchema` instead. */
8580
+ export const inboundSchema =
8581
+ DeploymentStream1DeploymentsDollarEq$inboundSchema;
8582
+ /** @deprecated use `DeploymentStream1DeploymentsDollarEq$outboundSchema` instead. */
8583
+ export const outboundSchema =
8584
+ DeploymentStream1DeploymentsDollarEq$outboundSchema;
8585
+ /** @deprecated use `DeploymentStream1DeploymentsDollarEq$Outbound` instead. */
8586
+ export type Outbound = DeploymentStream1DeploymentsDollarEq$Outbound;
8587
+ }
8588
+
8589
+ export function deploymentStream1DeploymentsDollarEqToJSON(
8590
+ deploymentStream1DeploymentsDollarEq: DeploymentStream1DeploymentsDollarEq,
8591
+ ): string {
8592
+ return JSON.stringify(
8593
+ DeploymentStream1DeploymentsDollarEq$outboundSchema.parse(
8594
+ deploymentStream1DeploymentsDollarEq,
8595
+ ),
8596
+ );
8597
+ }
8598
+
8599
+ export function deploymentStream1DeploymentsDollarEqFromJSON(
8600
+ jsonString: string,
8601
+ ): SafeParseResult<DeploymentStream1DeploymentsDollarEq, SDKValidationError> {
8602
+ return safeParse(
8603
+ jsonString,
8604
+ (x) =>
8605
+ DeploymentStream1DeploymentsDollarEq$inboundSchema.parse(JSON.parse(x)),
8606
+ `Failed to parse 'DeploymentStream1DeploymentsDollarEq' from JSON`,
8607
+ );
8608
+ }
8609
+
8610
+ /** @internal */
8611
+ export const DeploymentStream1DollarEq$inboundSchema: z.ZodType<
8612
+ DeploymentStream1DollarEq,
8613
+ z.ZodTypeDef,
8614
+ unknown
8615
+ > = z.object({
8616
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
8617
+ }).transform((v) => {
8618
+ return remap$(v, {
8619
+ "$eq": "dollarEq",
8620
+ });
8621
+ });
8622
+
8623
+ /** @internal */
8624
+ export type DeploymentStream1DollarEq$Outbound = {
8625
+ $eq: string | number | boolean;
8626
+ };
8627
+
8628
+ /** @internal */
8629
+ export const DeploymentStream1DollarEq$outboundSchema: z.ZodType<
8630
+ DeploymentStream1DollarEq$Outbound,
8631
+ z.ZodTypeDef,
8632
+ DeploymentStream1DollarEq
8633
+ > = z.object({
8634
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
8635
+ }).transform((v) => {
8636
+ return remap$(v, {
8637
+ dollarEq: "$eq",
8638
+ });
8639
+ });
8640
+
8641
+ /**
8642
+ * @internal
8643
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8644
+ */
8645
+ export namespace DeploymentStream1DollarEq$ {
8646
+ /** @deprecated use `DeploymentStream1DollarEq$inboundSchema` instead. */
8647
+ export const inboundSchema = DeploymentStream1DollarEq$inboundSchema;
8648
+ /** @deprecated use `DeploymentStream1DollarEq$outboundSchema` instead. */
8649
+ export const outboundSchema = DeploymentStream1DollarEq$outboundSchema;
8650
+ /** @deprecated use `DeploymentStream1DollarEq$Outbound` instead. */
8651
+ export type Outbound = DeploymentStream1DollarEq$Outbound;
8652
+ }
8653
+
8654
+ export function deploymentStream1DollarEqToJSON(
8655
+ deploymentStream1DollarEq: DeploymentStream1DollarEq,
8656
+ ): string {
8657
+ return JSON.stringify(
8658
+ DeploymentStream1DollarEq$outboundSchema.parse(deploymentStream1DollarEq),
8659
+ );
8660
+ }
8661
+
8662
+ export function deploymentStream1DollarEqFromJSON(
8663
+ jsonString: string,
8664
+ ): SafeParseResult<DeploymentStream1DollarEq, SDKValidationError> {
8665
+ return safeParse(
8666
+ jsonString,
8667
+ (x) => DeploymentStream1DollarEq$inboundSchema.parse(JSON.parse(x)),
8668
+ `Failed to parse 'DeploymentStream1DollarEq' from JSON`,
8669
+ );
8670
+ }
8671
+
8672
+ /** @internal */
8673
+ export const DeploymentStreamKnowledgeFilter1$inboundSchema: z.ZodType<
8674
+ DeploymentStreamKnowledgeFilter1,
8675
+ z.ZodTypeDef,
8676
+ unknown
8677
+ > = z.union([
8678
+ z.lazy(() => DeploymentStream1DollarEq$inboundSchema),
8679
+ z.lazy(() => DeploymentStream1DollarNe$inboundSchema),
8680
+ z.lazy(() => DeploymentStream13$inboundSchema),
8681
+ z.lazy(() => OneDollarGte$inboundSchema),
8682
+ z.lazy(() => OneDollarLt$inboundSchema),
8683
+ z.lazy(() => OneDollarLte$inboundSchema),
8684
+ z.lazy(() => DeploymentStream1DollarIn$inboundSchema),
8685
+ z.lazy(() => DeploymentStream1DollarNin$inboundSchema),
8686
+ z.lazy(() => OneDollarExists$inboundSchema),
8687
+ ]);
8688
+
8689
+ /** @internal */
8690
+ export type DeploymentStreamKnowledgeFilter1$Outbound =
8691
+ | DeploymentStream1DollarEq$Outbound
8692
+ | DeploymentStream1DollarNe$Outbound
8693
+ | DeploymentStream13$Outbound
8694
+ | OneDollarGte$Outbound
8695
+ | OneDollarLt$Outbound
8696
+ | OneDollarLte$Outbound
8697
+ | DeploymentStream1DollarIn$Outbound
8698
+ | DeploymentStream1DollarNin$Outbound
8699
+ | OneDollarExists$Outbound;
8700
+
8701
+ /** @internal */
8702
+ export const DeploymentStreamKnowledgeFilter1$outboundSchema: z.ZodType<
8703
+ DeploymentStreamKnowledgeFilter1$Outbound,
8704
+ z.ZodTypeDef,
8705
+ DeploymentStreamKnowledgeFilter1
8706
+ > = z.union([
8707
+ z.lazy(() => DeploymentStream1DollarEq$outboundSchema),
8708
+ z.lazy(() => DeploymentStream1DollarNe$outboundSchema),
8709
+ z.lazy(() => DeploymentStream13$outboundSchema),
8710
+ z.lazy(() => OneDollarGte$outboundSchema),
8711
+ z.lazy(() => OneDollarLt$outboundSchema),
8712
+ z.lazy(() => OneDollarLte$outboundSchema),
8713
+ z.lazy(() => DeploymentStream1DollarIn$outboundSchema),
8714
+ z.lazy(() => DeploymentStream1DollarNin$outboundSchema),
8715
+ z.lazy(() => OneDollarExists$outboundSchema),
8716
+ ]);
8717
+
8718
+ /**
8719
+ * @internal
8720
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8721
+ */
8722
+ export namespace DeploymentStreamKnowledgeFilter1$ {
8723
+ /** @deprecated use `DeploymentStreamKnowledgeFilter1$inboundSchema` instead. */
8724
+ export const inboundSchema = DeploymentStreamKnowledgeFilter1$inboundSchema;
8725
+ /** @deprecated use `DeploymentStreamKnowledgeFilter1$outboundSchema` instead. */
8726
+ export const outboundSchema = DeploymentStreamKnowledgeFilter1$outboundSchema;
8727
+ /** @deprecated use `DeploymentStreamKnowledgeFilter1$Outbound` instead. */
8728
+ export type Outbound = DeploymentStreamKnowledgeFilter1$Outbound;
8729
+ }
8730
+
8731
+ export function deploymentStreamKnowledgeFilter1ToJSON(
8732
+ deploymentStreamKnowledgeFilter1: DeploymentStreamKnowledgeFilter1,
8733
+ ): string {
8734
+ return JSON.stringify(
8735
+ DeploymentStreamKnowledgeFilter1$outboundSchema.parse(
8736
+ deploymentStreamKnowledgeFilter1,
8737
+ ),
8738
+ );
8739
+ }
8740
+
8741
+ export function deploymentStreamKnowledgeFilter1FromJSON(
8742
+ jsonString: string,
8743
+ ): SafeParseResult<DeploymentStreamKnowledgeFilter1, SDKValidationError> {
8744
+ return safeParse(
8745
+ jsonString,
8746
+ (x) => DeploymentStreamKnowledgeFilter1$inboundSchema.parse(JSON.parse(x)),
8747
+ `Failed to parse 'DeploymentStreamKnowledgeFilter1' from JSON`,
8748
+ );
8749
+ }
8750
+
8751
+ /** @internal */
8752
+ export const DeploymentStreamKnowledgeFilter$inboundSchema: z.ZodType<
8753
+ DeploymentStreamKnowledgeFilter,
8754
+ z.ZodTypeDef,
8755
+ unknown
8756
+ > = z.union([
8757
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema),
8758
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarOr$inboundSchema),
8759
+ z.record(
8760
+ z.union([
8761
+ z.lazy(() => DeploymentStream1DollarEq$inboundSchema),
8762
+ z.lazy(() => DeploymentStream1DollarNe$inboundSchema),
8763
+ z.lazy(() => DeploymentStream13$inboundSchema),
8764
+ z.lazy(() => OneDollarGte$inboundSchema),
8765
+ z.lazy(() => OneDollarLt$inboundSchema),
8766
+ z.lazy(() => OneDollarLte$inboundSchema),
8767
+ z.lazy(() => DeploymentStream1DollarIn$inboundSchema),
8768
+ z.lazy(() => DeploymentStream1DollarNin$inboundSchema),
8769
+ z.lazy(() => OneDollarExists$inboundSchema),
8770
+ ]),
8771
+ ),
8772
+ ]);
8773
+
8774
+ /** @internal */
8775
+ export type DeploymentStreamKnowledgeFilter$Outbound =
8776
+ | DeploymentStreamKnowledgeFilterDollarAnd$Outbound
8777
+ | DeploymentStreamKnowledgeFilterDollarOr$Outbound
8778
+ | {
8779
+ [k: string]:
8780
+ | DeploymentStream1DollarEq$Outbound
8781
+ | DeploymentStream1DollarNe$Outbound
8782
+ | DeploymentStream13$Outbound
8783
+ | OneDollarGte$Outbound
8784
+ | OneDollarLt$Outbound
8785
+ | OneDollarLte$Outbound
8786
+ | DeploymentStream1DollarIn$Outbound
8787
+ | DeploymentStream1DollarNin$Outbound
8788
+ | OneDollarExists$Outbound;
8789
+ };
8790
+
8791
+ /** @internal */
8792
+ export const DeploymentStreamKnowledgeFilter$outboundSchema: z.ZodType<
8793
+ DeploymentStreamKnowledgeFilter$Outbound,
8794
+ z.ZodTypeDef,
8795
+ DeploymentStreamKnowledgeFilter
8796
+ > = z.union([
8797
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema),
8798
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarOr$outboundSchema),
8799
+ z.record(
8800
+ z.union([
8801
+ z.lazy(() => DeploymentStream1DollarEq$outboundSchema),
8802
+ z.lazy(() => DeploymentStream1DollarNe$outboundSchema),
8803
+ z.lazy(() => DeploymentStream13$outboundSchema),
8804
+ z.lazy(() => OneDollarGte$outboundSchema),
8805
+ z.lazy(() => OneDollarLt$outboundSchema),
8806
+ z.lazy(() => OneDollarLte$outboundSchema),
8807
+ z.lazy(() => DeploymentStream1DollarIn$outboundSchema),
8808
+ z.lazy(() => DeploymentStream1DollarNin$outboundSchema),
8809
+ z.lazy(() => OneDollarExists$outboundSchema),
8810
+ ]),
8811
+ ),
8812
+ ]);
8813
+
8814
+ /**
8815
+ * @internal
8816
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8817
+ */
8818
+ export namespace DeploymentStreamKnowledgeFilter$ {
8819
+ /** @deprecated use `DeploymentStreamKnowledgeFilter$inboundSchema` instead. */
8820
+ export const inboundSchema = DeploymentStreamKnowledgeFilter$inboundSchema;
8821
+ /** @deprecated use `DeploymentStreamKnowledgeFilter$outboundSchema` instead. */
8822
+ export const outboundSchema = DeploymentStreamKnowledgeFilter$outboundSchema;
8823
+ /** @deprecated use `DeploymentStreamKnowledgeFilter$Outbound` instead. */
8824
+ export type Outbound = DeploymentStreamKnowledgeFilter$Outbound;
8825
+ }
8826
+
8827
+ export function deploymentStreamKnowledgeFilterToJSON(
8828
+ deploymentStreamKnowledgeFilter: DeploymentStreamKnowledgeFilter,
8829
+ ): string {
8830
+ return JSON.stringify(
8831
+ DeploymentStreamKnowledgeFilter$outboundSchema.parse(
8832
+ deploymentStreamKnowledgeFilter,
8833
+ ),
8834
+ );
8835
+ }
8836
+
8837
+ export function deploymentStreamKnowledgeFilterFromJSON(
8838
+ jsonString: string,
8839
+ ): SafeParseResult<DeploymentStreamKnowledgeFilter, SDKValidationError> {
8840
+ return safeParse(
8841
+ jsonString,
8842
+ (x) => DeploymentStreamKnowledgeFilter$inboundSchema.parse(JSON.parse(x)),
8843
+ `Failed to parse 'DeploymentStreamKnowledgeFilter' from JSON`,
8844
+ );
8845
+ }
8846
+
8847
+ /** @internal */
8848
+ export const DeploymentStreamRequestBody$inboundSchema: z.ZodType<
8849
+ DeploymentStreamRequestBody,
8850
+ z.ZodTypeDef,
8851
+ unknown
8852
+ > = z.object({
8853
+ key: z.string(),
8854
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
8855
+ context: z.record(z.any()).optional(),
8856
+ prefix_messages: z.array(
8857
+ z.union([
8858
+ z.lazy(() => PrefixMessagesDeveloperMessage$inboundSchema),
8859
+ z.lazy(() => PrefixMessagesSystemMessage$inboundSchema),
8860
+ z.lazy(() => PrefixMessagesUserMessage$inboundSchema),
8861
+ z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
8862
+ z.lazy(() => PrefixMessagesAssistantMessage$inboundSchema),
8863
+ ]),
8864
+ ).optional(),
8865
+ messages: z.array(
8866
+ z.union([
8867
+ z.lazy(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
8868
+ z.lazy(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
8869
+ z.lazy(() => DeploymentStreamMessagesUserMessage$inboundSchema),
8870
+ z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
8871
+ z.lazy(() => DeploymentStreamMessagesAssistantMessage$inboundSchema),
8872
+ ]),
8873
+ ).optional(),
8874
+ file_ids: z.array(z.string()).optional(),
8875
+ metadata: z.record(z.any()).optional(),
8876
+ extra_params: z.record(z.any()).optional(),
8877
+ documents: z.array(z.lazy(() => DeploymentStreamDocuments$inboundSchema))
8878
+ .optional(),
8879
+ invoke_options: z.lazy(() => DeploymentStreamInvokeOptions$inboundSchema)
8880
+ .optional(),
8881
+ thread: z.lazy(() => DeploymentStreamThread$inboundSchema).optional(),
8882
+ knowledge_filter: z.union([
8883
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema),
8884
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarOr$inboundSchema),
8885
+ z.record(
8886
+ z.union([
8887
+ z.lazy(() => DeploymentStream1DollarEq$inboundSchema),
8888
+ z.lazy(() => DeploymentStream1DollarNe$inboundSchema),
8889
+ z.lazy(() => DeploymentStream13$inboundSchema),
8890
+ z.lazy(() => OneDollarGte$inboundSchema),
8891
+ z.lazy(() => OneDollarLt$inboundSchema),
8892
+ z.lazy(() => OneDollarLte$inboundSchema),
8893
+ z.lazy(() => DeploymentStream1DollarIn$inboundSchema),
8894
+ z.lazy(() => DeploymentStream1DollarNin$inboundSchema),
8895
+ z.lazy(() => OneDollarExists$inboundSchema),
8896
+ ]),
8897
+ ),
8898
+ ]).optional(),
8899
+ }).transform((v) => {
8900
+ return remap$(v, {
8901
+ "prefix_messages": "prefixMessages",
8902
+ "file_ids": "fileIds",
8903
+ "extra_params": "extraParams",
8904
+ "invoke_options": "invokeOptions",
8905
+ "knowledge_filter": "knowledgeFilter",
8906
+ });
8907
+ });
8908
+
8909
+ /** @internal */
8910
+ export type DeploymentStreamRequestBody$Outbound = {
8911
+ key: string;
8912
+ inputs?: { [k: string]: string | number | boolean } | undefined;
8913
+ context?: { [k: string]: any } | undefined;
8914
+ prefix_messages?:
8915
+ | Array<
8916
+ | PrefixMessagesDeveloperMessage$Outbound
8917
+ | PrefixMessagesSystemMessage$Outbound
8918
+ | PrefixMessagesUserMessage$Outbound
8919
+ | PrefixMessagesToolMessage$Outbound
8920
+ | PrefixMessagesAssistantMessage$Outbound
8921
+ >
8922
+ | undefined;
8923
+ messages?:
8924
+ | Array<
8925
+ | DeploymentStreamMessagesDeveloperMessage$Outbound
8926
+ | DeploymentStreamMessagesSystemMessage$Outbound
8927
+ | DeploymentStreamMessagesUserMessage$Outbound
8928
+ | DeploymentStreamMessagesToolMessage$Outbound
8929
+ | DeploymentStreamMessagesAssistantMessage$Outbound
8930
+ >
8931
+ | undefined;
8932
+ file_ids?: Array<string> | undefined;
8933
+ metadata?: { [k: string]: any } | undefined;
8934
+ extra_params?: { [k: string]: any } | undefined;
8935
+ documents?: Array<DeploymentStreamDocuments$Outbound> | undefined;
8936
+ invoke_options?: DeploymentStreamInvokeOptions$Outbound | undefined;
8937
+ thread?: DeploymentStreamThread$Outbound | undefined;
8938
+ knowledge_filter?:
8939
+ | DeploymentStreamKnowledgeFilterDollarAnd$Outbound
8940
+ | DeploymentStreamKnowledgeFilterDollarOr$Outbound
8941
+ | {
8942
+ [k: string]:
8943
+ | DeploymentStream1DollarEq$Outbound
8944
+ | DeploymentStream1DollarNe$Outbound
8945
+ | DeploymentStream13$Outbound
8946
+ | OneDollarGte$Outbound
8947
+ | OneDollarLt$Outbound
8948
+ | OneDollarLte$Outbound
8949
+ | DeploymentStream1DollarIn$Outbound
8950
+ | DeploymentStream1DollarNin$Outbound
8951
+ | OneDollarExists$Outbound;
8952
+ }
8953
+ | undefined;
8954
+ };
8955
+
8956
+ /** @internal */
8957
+ export const DeploymentStreamRequestBody$outboundSchema: z.ZodType<
8958
+ DeploymentStreamRequestBody$Outbound,
8959
+ z.ZodTypeDef,
8960
+ DeploymentStreamRequestBody
8961
+ > = z.object({
8962
+ key: z.string(),
8963
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
8964
+ context: z.record(z.any()).optional(),
8965
+ prefixMessages: z.array(
8966
+ z.union([
8967
+ z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
8968
+ z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
8969
+ z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
8970
+ z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
8971
+ z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
8972
+ ]),
8973
+ ).optional(),
8974
+ messages: z.array(
8975
+ z.union([
8976
+ z.lazy(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
8977
+ z.lazy(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
8978
+ z.lazy(() => DeploymentStreamMessagesUserMessage$outboundSchema),
8979
+ z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
8980
+ z.lazy(() => DeploymentStreamMessagesAssistantMessage$outboundSchema),
8981
+ ]),
8982
+ ).optional(),
8983
+ fileIds: z.array(z.string()).optional(),
8984
+ metadata: z.record(z.any()).optional(),
8985
+ extraParams: z.record(z.any()).optional(),
8986
+ documents: z.array(z.lazy(() => DeploymentStreamDocuments$outboundSchema))
8987
+ .optional(),
8988
+ invokeOptions: z.lazy(() => DeploymentStreamInvokeOptions$outboundSchema)
8989
+ .optional(),
8990
+ thread: z.lazy(() => DeploymentStreamThread$outboundSchema).optional(),
8991
+ knowledgeFilter: z.union([
8992
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema),
8993
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarOr$outboundSchema),
8994
+ z.record(
8995
+ z.union([
8996
+ z.lazy(() => DeploymentStream1DollarEq$outboundSchema),
8997
+ z.lazy(() => DeploymentStream1DollarNe$outboundSchema),
8998
+ z.lazy(() => DeploymentStream13$outboundSchema),
8999
+ z.lazy(() => OneDollarGte$outboundSchema),
9000
+ z.lazy(() => OneDollarLt$outboundSchema),
9001
+ z.lazy(() => OneDollarLte$outboundSchema),
9002
+ z.lazy(() => DeploymentStream1DollarIn$outboundSchema),
9003
+ z.lazy(() => DeploymentStream1DollarNin$outboundSchema),
9004
+ z.lazy(() => OneDollarExists$outboundSchema),
9005
+ ]),
9006
+ ),
9007
+ ]).optional(),
5586
9008
  }).transform((v) => {
5587
9009
  return remap$(v, {
5588
9010
  prefixMessages: "prefix_messages",
5589
9011
  fileIds: "file_ids",
5590
9012
  extraParams: "extra_params",
5591
9013
  invokeOptions: "invoke_options",
9014
+ knowledgeFilter: "knowledge_filter",
5592
9015
  });
5593
9016
  });
5594
9017