openfda-mcp-server 1.1.0 → 1.2.0

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 (39) hide show
  1. package/dist/defineProperty-BEGP2H1W.js +1 -0
  2. package/dist/handlers/bulk-data-handlers.d.ts +108 -0
  3. package/dist/handlers/bulk-data-handlers.js +2 -0
  4. package/dist/handlers/bulk-data-handlers.js.map +1 -0
  5. package/dist/handlers/device-handlers.d.ts +0 -1
  6. package/dist/handlers/device-handlers.js +2 -1
  7. package/dist/handlers/device-handlers.js.map +1 -0
  8. package/dist/handlers/drug-handlers.d.ts +0 -1
  9. package/dist/handlers/drug-handlers.js +2 -1
  10. package/dist/handlers/drug-handlers.js.map +1 -0
  11. package/dist/index.js +1 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/lib.d.ts +4 -2
  14. package/dist/lib.js +1 -1
  15. package/dist/server.d.ts +1 -2
  16. package/dist/server.js +1 -1
  17. package/dist/server.js.map +1 -1
  18. package/dist/tools/index.d.ts +205 -382
  19. package/dist/tools/index.js +2 -1
  20. package/dist/tools/index.js.map +1 -0
  21. package/dist/types/fda.d.ts +58 -1
  22. package/dist/utils/api-client.d.ts +0 -1
  23. package/dist/utils/api-client.js +2 -1
  24. package/dist/utils/api-client.js.map +1 -0
  25. package/dist/utils/bulk-data-client.d.ts +24 -0
  26. package/dist/utils/bulk-data-client.js +4 -0
  27. package/dist/utils/bulk-data-client.js.map +1 -0
  28. package/dist/utils/logger.d.ts +1 -1
  29. package/dist/utils/logger.js +1 -1
  30. package/dist/utils/logger.js.map +1 -1
  31. package/package.json +27 -23
  32. package/dist/api-client-BGnUXMwX.js +0 -2
  33. package/dist/api-client-BGnUXMwX.js.map +0 -1
  34. package/dist/device-handlers-D8AD5oIk.js +0 -2
  35. package/dist/device-handlers-D8AD5oIk.js.map +0 -1
  36. package/dist/drug-handlers-D5VxbBCL.js +0 -2
  37. package/dist/drug-handlers-D5VxbBCL.js.map +0 -1
  38. package/dist/tools-3M3lSxQv.js +0 -2
  39. package/dist/tools-3M3lSxQv.js.map +0 -1
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/tools/index.d.ts
4
-
5
4
  declare const searchDrugAdverseEventsSchema: z.ZodObject<{
6
5
  limit: z.ZodOptional<z.ZodNumber>;
7
6
  skip: z.ZodOptional<z.ZodNumber>;
@@ -12,27 +11,7 @@ declare const searchDrugAdverseEventsSchema: z.ZodObject<{
12
11
  reaction: z.ZodOptional<z.ZodString>;
13
12
  manufacturer: z.ZodOptional<z.ZodString>;
14
13
  serious: z.ZodOptional<z.ZodBoolean>;
15
- }, "strip", z.ZodTypeAny, {
16
- safetyReportId?: string | undefined;
17
- drugName?: string | undefined;
18
- reaction?: string | undefined;
19
- manufacturer?: string | undefined;
20
- serious?: boolean | undefined;
21
- limit?: number | undefined;
22
- skip?: number | undefined;
23
- dateFrom?: string | undefined;
24
- dateTo?: string | undefined;
25
- }, {
26
- safetyReportId?: string | undefined;
27
- drugName?: string | undefined;
28
- reaction?: string | undefined;
29
- manufacturer?: string | undefined;
30
- serious?: boolean | undefined;
31
- limit?: number | undefined;
32
- skip?: number | undefined;
33
- dateFrom?: string | undefined;
34
- dateTo?: string | undefined;
35
- }>;
14
+ }, z.core.$strip>;
36
15
  declare const labelSections: readonly ["indications_and_usage", "dosage_and_administration", "contraindications", "warnings", "warnings_and_cautions", "adverse_reactions", "drug_interactions", "clinical_pharmacology", "mechanism_of_action", "pharmacokinetics", "overdosage", "description", "how_supplied", "storage_and_handling", "boxed_warning"];
37
16
  declare const searchDrugLabelsSchema: z.ZodObject<{
38
17
  limit: z.ZodOptional<z.ZodNumber>;
@@ -43,28 +22,24 @@ declare const searchDrugLabelsSchema: z.ZodObject<{
43
22
  activeIngredient: z.ZodOptional<z.ZodString>;
44
23
  route: z.ZodOptional<z.ZodString>;
45
24
  hasBoxedWarning: z.ZodOptional<z.ZodBoolean>;
46
- sections: z.ZodOptional<z.ZodArray<z.ZodEnum<["indications_and_usage", "dosage_and_administration", "contraindications", "warnings", "warnings_and_cautions", "adverse_reactions", "drug_interactions", "clinical_pharmacology", "mechanism_of_action", "pharmacokinetics", "overdosage", "description", "how_supplied", "storage_and_handling", "boxed_warning"]>, "many">>;
47
- }, "strip", z.ZodTypeAny, {
48
- drugName?: string | undefined;
49
- limit?: number | undefined;
50
- skip?: number | undefined;
51
- setId?: string | undefined;
52
- indication?: string | undefined;
53
- activeIngredient?: string | undefined;
54
- route?: string | undefined;
55
- hasBoxedWarning?: boolean | undefined;
56
- sections?: ("indications_and_usage" | "dosage_and_administration" | "contraindications" | "warnings" | "warnings_and_cautions" | "adverse_reactions" | "drug_interactions" | "clinical_pharmacology" | "mechanism_of_action" | "pharmacokinetics" | "overdosage" | "description" | "how_supplied" | "storage_and_handling" | "boxed_warning")[] | undefined;
57
- }, {
58
- drugName?: string | undefined;
59
- limit?: number | undefined;
60
- skip?: number | undefined;
61
- setId?: string | undefined;
62
- indication?: string | undefined;
63
- activeIngredient?: string | undefined;
64
- route?: string | undefined;
65
- hasBoxedWarning?: boolean | undefined;
66
- sections?: ("indications_and_usage" | "dosage_and_administration" | "contraindications" | "warnings" | "warnings_and_cautions" | "adverse_reactions" | "drug_interactions" | "clinical_pharmacology" | "mechanism_of_action" | "pharmacokinetics" | "overdosage" | "description" | "how_supplied" | "storage_and_handling" | "boxed_warning")[] | undefined;
67
- }>;
25
+ sections: z.ZodOptional<z.ZodArray<z.ZodEnum<{
26
+ indications_and_usage: "indications_and_usage";
27
+ dosage_and_administration: "dosage_and_administration";
28
+ contraindications: "contraindications";
29
+ warnings: "warnings";
30
+ warnings_and_cautions: "warnings_and_cautions";
31
+ adverse_reactions: "adverse_reactions";
32
+ drug_interactions: "drug_interactions";
33
+ clinical_pharmacology: "clinical_pharmacology";
34
+ mechanism_of_action: "mechanism_of_action";
35
+ pharmacokinetics: "pharmacokinetics";
36
+ overdosage: "overdosage";
37
+ description: "description";
38
+ how_supplied: "how_supplied";
39
+ storage_and_handling: "storage_and_handling";
40
+ boxed_warning: "boxed_warning";
41
+ }>>>;
42
+ }, z.core.$strip>;
68
43
  declare const searchDrugNDCSchema: z.ZodObject<{
69
44
  limit: z.ZodOptional<z.ZodNumber>;
70
45
  skip: z.ZodOptional<z.ZodNumber>;
@@ -74,53 +49,26 @@ declare const searchDrugNDCSchema: z.ZodObject<{
74
49
  labelerName: z.ZodOptional<z.ZodString>;
75
50
  dosageForm: z.ZodOptional<z.ZodString>;
76
51
  route: z.ZodOptional<z.ZodString>;
77
- }, "strip", z.ZodTypeAny, {
78
- limit?: number | undefined;
79
- skip?: number | undefined;
80
- route?: string | undefined;
81
- productNdc?: string | undefined;
82
- brandName?: string | undefined;
83
- genericName?: string | undefined;
84
- labelerName?: string | undefined;
85
- dosageForm?: string | undefined;
86
- }, {
87
- limit?: number | undefined;
88
- skip?: number | undefined;
89
- route?: string | undefined;
90
- productNdc?: string | undefined;
91
- brandName?: string | undefined;
92
- genericName?: string | undefined;
93
- labelerName?: string | undefined;
94
- dosageForm?: string | undefined;
95
- }>;
52
+ }, z.core.$strip>;
96
53
  declare const searchDrugEnforcementSchema: z.ZodObject<{
97
54
  limit: z.ZodOptional<z.ZodNumber>;
98
55
  skip: z.ZodOptional<z.ZodNumber>;
99
56
  dateFrom: z.ZodOptional<z.ZodString>;
100
57
  dateTo: z.ZodOptional<z.ZodString>;
101
58
  recallingFirm: z.ZodOptional<z.ZodString>;
102
- classification: z.ZodOptional<z.ZodEnum<["Class I", "Class II", "Class III"]>>;
103
- status: z.ZodOptional<z.ZodEnum<["Ongoing", "Completed", "Terminated", "Pending"]>>;
59
+ classification: z.ZodOptional<z.ZodEnum<{
60
+ "Class I": "Class I";
61
+ "Class II": "Class II";
62
+ "Class III": "Class III";
63
+ }>>;
64
+ status: z.ZodOptional<z.ZodEnum<{
65
+ Ongoing: "Ongoing";
66
+ Completed: "Completed";
67
+ Terminated: "Terminated";
68
+ Pending: "Pending";
69
+ }>>;
104
70
  state: z.ZodOptional<z.ZodString>;
105
- }, "strip", z.ZodTypeAny, {
106
- status?: "Ongoing" | "Completed" | "Terminated" | "Pending" | undefined;
107
- limit?: number | undefined;
108
- skip?: number | undefined;
109
- dateFrom?: string | undefined;
110
- dateTo?: string | undefined;
111
- recallingFirm?: string | undefined;
112
- classification?: "Class I" | "Class II" | "Class III" | undefined;
113
- state?: string | undefined;
114
- }, {
115
- status?: "Ongoing" | "Completed" | "Terminated" | "Pending" | undefined;
116
- limit?: number | undefined;
117
- skip?: number | undefined;
118
- dateFrom?: string | undefined;
119
- dateTo?: string | undefined;
120
- recallingFirm?: string | undefined;
121
- classification?: "Class I" | "Class II" | "Class III" | undefined;
122
- state?: string | undefined;
123
- }>;
71
+ }, z.core.$strip>;
124
72
  declare const searchDrugsFDASchema: z.ZodObject<{
125
73
  limit: z.ZodOptional<z.ZodNumber>;
126
74
  skip: z.ZodOptional<z.ZodNumber>;
@@ -128,37 +76,16 @@ declare const searchDrugsFDASchema: z.ZodObject<{
128
76
  applicationNumber: z.ZodOptional<z.ZodString>;
129
77
  brandName: z.ZodOptional<z.ZodString>;
130
78
  marketingStatus: z.ZodOptional<z.ZodString>;
131
- }, "strip", z.ZodTypeAny, {
132
- limit?: number | undefined;
133
- skip?: number | undefined;
134
- brandName?: string | undefined;
135
- sponsorName?: string | undefined;
136
- applicationNumber?: string | undefined;
137
- marketingStatus?: string | undefined;
138
- }, {
139
- limit?: number | undefined;
140
- skip?: number | undefined;
141
- brandName?: string | undefined;
142
- sponsorName?: string | undefined;
143
- applicationNumber?: string | undefined;
144
- marketingStatus?: string | undefined;
145
- }>;
79
+ }, z.core.$strip>;
146
80
  declare const searchDrugShortagesSchema: z.ZodObject<{
147
81
  limit: z.ZodOptional<z.ZodNumber>;
148
82
  skip: z.ZodOptional<z.ZodNumber>;
149
83
  genericName: z.ZodOptional<z.ZodString>;
150
- status: z.ZodOptional<z.ZodEnum<["Current", "Resolved"]>>;
151
- }, "strip", z.ZodTypeAny, {
152
- status?: "Current" | "Resolved" | undefined;
153
- limit?: number | undefined;
154
- skip?: number | undefined;
155
- genericName?: string | undefined;
156
- }, {
157
- status?: "Current" | "Resolved" | undefined;
158
- limit?: number | undefined;
159
- skip?: number | undefined;
160
- genericName?: string | undefined;
161
- }>;
84
+ status: z.ZodOptional<z.ZodEnum<{
85
+ Current: "Current";
86
+ Resolved: "Resolved";
87
+ }>>;
88
+ }, z.core.$strip>;
162
89
  declare const searchDevice510KSchema: z.ZodObject<{
163
90
  limit: z.ZodOptional<z.ZodNumber>;
164
91
  skip: z.ZodOptional<z.ZodNumber>;
@@ -168,50 +95,20 @@ declare const searchDevice510KSchema: z.ZodObject<{
168
95
  clearanceType: z.ZodOptional<z.ZodString>;
169
96
  decisionDateFrom: z.ZodOptional<z.ZodString>;
170
97
  decisionDateTo: z.ZodOptional<z.ZodString>;
171
- }, "strip", z.ZodTypeAny, {
172
- limit?: number | undefined;
173
- skip?: number | undefined;
174
- deviceName?: string | undefined;
175
- applicant?: string | undefined;
176
- productCode?: string | undefined;
177
- clearanceType?: string | undefined;
178
- decisionDateFrom?: string | undefined;
179
- decisionDateTo?: string | undefined;
180
- }, {
181
- limit?: number | undefined;
182
- skip?: number | undefined;
183
- deviceName?: string | undefined;
184
- applicant?: string | undefined;
185
- productCode?: string | undefined;
186
- clearanceType?: string | undefined;
187
- decisionDateFrom?: string | undefined;
188
- decisionDateTo?: string | undefined;
189
- }>;
98
+ }, z.core.$strip>;
190
99
  declare const searchDeviceClassificationsSchema: z.ZodObject<{
191
100
  limit: z.ZodOptional<z.ZodNumber>;
192
101
  skip: z.ZodOptional<z.ZodNumber>;
193
102
  deviceName: z.ZodOptional<z.ZodString>;
194
- deviceClass: z.ZodOptional<z.ZodEnum<["1", "2", "3"]>>;
103
+ deviceClass: z.ZodOptional<z.ZodEnum<{
104
+ 1: "1";
105
+ 2: "2";
106
+ 3: "3";
107
+ }>>;
195
108
  medicalSpecialty: z.ZodOptional<z.ZodString>;
196
109
  productCode: z.ZodOptional<z.ZodString>;
197
110
  regulationNumber: z.ZodOptional<z.ZodString>;
198
- }, "strip", z.ZodTypeAny, {
199
- limit?: number | undefined;
200
- skip?: number | undefined;
201
- deviceName?: string | undefined;
202
- productCode?: string | undefined;
203
- deviceClass?: "1" | "2" | "3" | undefined;
204
- medicalSpecialty?: string | undefined;
205
- regulationNumber?: string | undefined;
206
- }, {
207
- limit?: number | undefined;
208
- skip?: number | undefined;
209
- deviceName?: string | undefined;
210
- productCode?: string | undefined;
211
- deviceClass?: "1" | "2" | "3" | undefined;
212
- medicalSpecialty?: string | undefined;
213
- regulationNumber?: string | undefined;
214
- }>;
111
+ }, z.core.$strip>;
215
112
  declare const searchDeviceAdverseEventsSchema: z.ZodObject<{
216
113
  limit: z.ZodOptional<z.ZodNumber>;
217
114
  skip: z.ZodOptional<z.ZodNumber>;
@@ -221,28 +118,13 @@ declare const searchDeviceAdverseEventsSchema: z.ZodObject<{
221
118
  deviceName: z.ZodOptional<z.ZodString>;
222
119
  brandName: z.ZodOptional<z.ZodString>;
223
120
  manufacturerName: z.ZodOptional<z.ZodString>;
224
- eventType: z.ZodOptional<z.ZodEnum<["Injury", "Malfunction", "Death", "Other"]>>;
225
- }, "strip", z.ZodTypeAny, {
226
- limit?: number | undefined;
227
- skip?: number | undefined;
228
- dateFrom?: string | undefined;
229
- dateTo?: string | undefined;
230
- brandName?: string | undefined;
231
- deviceName?: string | undefined;
232
- reportNumber?: string | undefined;
233
- manufacturerName?: string | undefined;
234
- eventType?: "Injury" | "Malfunction" | "Death" | "Other" | undefined;
235
- }, {
236
- limit?: number | undefined;
237
- skip?: number | undefined;
238
- dateFrom?: string | undefined;
239
- dateTo?: string | undefined;
240
- brandName?: string | undefined;
241
- deviceName?: string | undefined;
242
- reportNumber?: string | undefined;
243
- manufacturerName?: string | undefined;
244
- eventType?: "Injury" | "Malfunction" | "Death" | "Other" | undefined;
245
- }>;
121
+ eventType: z.ZodOptional<z.ZodEnum<{
122
+ Injury: "Injury";
123
+ Malfunction: "Malfunction";
124
+ Death: "Death";
125
+ Other: "Other";
126
+ }>>;
127
+ }, z.core.$strip>;
246
128
  declare const searchDeviceEnforcementSchema: z.ZodObject<{
247
129
  limit: z.ZodOptional<z.ZodNumber>;
248
130
  skip: z.ZodOptional<z.ZodNumber>;
@@ -250,27 +132,54 @@ declare const searchDeviceEnforcementSchema: z.ZodObject<{
250
132
  dateTo: z.ZodOptional<z.ZodString>;
251
133
  recallingFirm: z.ZodOptional<z.ZodString>;
252
134
  productDescription: z.ZodOptional<z.ZodString>;
253
- classification: z.ZodOptional<z.ZodEnum<["Class I", "Class II", "Class III"]>>;
254
- status: z.ZodOptional<z.ZodEnum<["Ongoing", "Completed", "Terminated", "Pending"]>>;
255
- }, "strip", z.ZodTypeAny, {
256
- status?: "Ongoing" | "Completed" | "Terminated" | "Pending" | undefined;
257
- limit?: number | undefined;
258
- skip?: number | undefined;
259
- dateFrom?: string | undefined;
260
- dateTo?: string | undefined;
261
- recallingFirm?: string | undefined;
262
- classification?: "Class I" | "Class II" | "Class III" | undefined;
263
- productDescription?: string | undefined;
264
- }, {
265
- status?: "Ongoing" | "Completed" | "Terminated" | "Pending" | undefined;
266
- limit?: number | undefined;
267
- skip?: number | undefined;
268
- dateFrom?: string | undefined;
269
- dateTo?: string | undefined;
270
- recallingFirm?: string | undefined;
271
- classification?: "Class I" | "Class II" | "Class III" | undefined;
272
- productDescription?: string | undefined;
273
- }>;
135
+ classification: z.ZodOptional<z.ZodEnum<{
136
+ "Class I": "Class I";
137
+ "Class II": "Class II";
138
+ "Class III": "Class III";
139
+ }>>;
140
+ status: z.ZodOptional<z.ZodEnum<{
141
+ Ongoing: "Ongoing";
142
+ Completed: "Completed";
143
+ Terminated: "Terminated";
144
+ Pending: "Pending";
145
+ }>>;
146
+ }, z.core.$strip>;
147
+ declare const searchOrangeBookSchema: z.ZodObject<{
148
+ limit: z.ZodOptional<z.ZodNumber>;
149
+ skip: z.ZodOptional<z.ZodNumber>;
150
+ drugName: z.ZodOptional<z.ZodString>;
151
+ applicant: z.ZodOptional<z.ZodString>;
152
+ applNo: z.ZodOptional<z.ZodString>;
153
+ teCode: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strip>;
155
+ declare const searchOrangeBookPatentsSchema: z.ZodObject<{
156
+ limit: z.ZodOptional<z.ZodNumber>;
157
+ skip: z.ZodOptional<z.ZodNumber>;
158
+ drugName: z.ZodOptional<z.ZodString>;
159
+ applNo: z.ZodOptional<z.ZodString>;
160
+ patentNo: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strip>;
162
+ declare const searchPurpleBookSchema: z.ZodObject<{
163
+ limit: z.ZodOptional<z.ZodNumber>;
164
+ skip: z.ZodOptional<z.ZodNumber>;
165
+ productName: z.ZodOptional<z.ZodString>;
166
+ applicant: z.ZodOptional<z.ZodString>;
167
+ blaNumber: z.ZodOptional<z.ZodString>;
168
+ licenseType: z.ZodOptional<z.ZodEnum<{
169
+ "351(a)": "351(a)";
170
+ "351(k)": "351(k)";
171
+ }>>;
172
+ biosimilar: z.ZodOptional<z.ZodBoolean>;
173
+ interchangeable: z.ZodOptional<z.ZodBoolean>;
174
+ }, z.core.$strip>;
175
+ declare const searchDrugPatentExpirySchema: z.ZodObject<{
176
+ limit: z.ZodOptional<z.ZodNumber>;
177
+ skip: z.ZodOptional<z.ZodNumber>;
178
+ drugName: z.ZodOptional<z.ZodString>;
179
+ applNo: z.ZodOptional<z.ZodString>;
180
+ includeExclusivity: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
181
+ includePurpleBook: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
182
+ }, z.core.$strip>;
274
183
  declare const toolSchemas: {
275
184
  searchDrugAdverseEvents: z.ZodObject<{
276
185
  limit: z.ZodOptional<z.ZodNumber>;
@@ -282,27 +191,7 @@ declare const toolSchemas: {
282
191
  reaction: z.ZodOptional<z.ZodString>;
283
192
  manufacturer: z.ZodOptional<z.ZodString>;
284
193
  serious: z.ZodOptional<z.ZodBoolean>;
285
- }, "strip", z.ZodTypeAny, {
286
- safetyReportId?: string | undefined;
287
- drugName?: string | undefined;
288
- reaction?: string | undefined;
289
- manufacturer?: string | undefined;
290
- serious?: boolean | undefined;
291
- limit?: number | undefined;
292
- skip?: number | undefined;
293
- dateFrom?: string | undefined;
294
- dateTo?: string | undefined;
295
- }, {
296
- safetyReportId?: string | undefined;
297
- drugName?: string | undefined;
298
- reaction?: string | undefined;
299
- manufacturer?: string | undefined;
300
- serious?: boolean | undefined;
301
- limit?: number | undefined;
302
- skip?: number | undefined;
303
- dateFrom?: string | undefined;
304
- dateTo?: string | undefined;
305
- }>;
194
+ }, z.core.$strip>;
306
195
  searchDrugLabels: z.ZodObject<{
307
196
  limit: z.ZodOptional<z.ZodNumber>;
308
197
  skip: z.ZodOptional<z.ZodNumber>;
@@ -312,28 +201,24 @@ declare const toolSchemas: {
312
201
  activeIngredient: z.ZodOptional<z.ZodString>;
313
202
  route: z.ZodOptional<z.ZodString>;
314
203
  hasBoxedWarning: z.ZodOptional<z.ZodBoolean>;
315
- sections: z.ZodOptional<z.ZodArray<z.ZodEnum<["indications_and_usage", "dosage_and_administration", "contraindications", "warnings", "warnings_and_cautions", "adverse_reactions", "drug_interactions", "clinical_pharmacology", "mechanism_of_action", "pharmacokinetics", "overdosage", "description", "how_supplied", "storage_and_handling", "boxed_warning"]>, "many">>;
316
- }, "strip", z.ZodTypeAny, {
317
- drugName?: string | undefined;
318
- limit?: number | undefined;
319
- skip?: number | undefined;
320
- setId?: string | undefined;
321
- indication?: string | undefined;
322
- activeIngredient?: string | undefined;
323
- route?: string | undefined;
324
- hasBoxedWarning?: boolean | undefined;
325
- sections?: ("indications_and_usage" | "dosage_and_administration" | "contraindications" | "warnings" | "warnings_and_cautions" | "adverse_reactions" | "drug_interactions" | "clinical_pharmacology" | "mechanism_of_action" | "pharmacokinetics" | "overdosage" | "description" | "how_supplied" | "storage_and_handling" | "boxed_warning")[] | undefined;
326
- }, {
327
- drugName?: string | undefined;
328
- limit?: number | undefined;
329
- skip?: number | undefined;
330
- setId?: string | undefined;
331
- indication?: string | undefined;
332
- activeIngredient?: string | undefined;
333
- route?: string | undefined;
334
- hasBoxedWarning?: boolean | undefined;
335
- sections?: ("indications_and_usage" | "dosage_and_administration" | "contraindications" | "warnings" | "warnings_and_cautions" | "adverse_reactions" | "drug_interactions" | "clinical_pharmacology" | "mechanism_of_action" | "pharmacokinetics" | "overdosage" | "description" | "how_supplied" | "storage_and_handling" | "boxed_warning")[] | undefined;
336
- }>;
204
+ sections: z.ZodOptional<z.ZodArray<z.ZodEnum<{
205
+ indications_and_usage: "indications_and_usage";
206
+ dosage_and_administration: "dosage_and_administration";
207
+ contraindications: "contraindications";
208
+ warnings: "warnings";
209
+ warnings_and_cautions: "warnings_and_cautions";
210
+ adverse_reactions: "adverse_reactions";
211
+ drug_interactions: "drug_interactions";
212
+ clinical_pharmacology: "clinical_pharmacology";
213
+ mechanism_of_action: "mechanism_of_action";
214
+ pharmacokinetics: "pharmacokinetics";
215
+ overdosage: "overdosage";
216
+ description: "description";
217
+ how_supplied: "how_supplied";
218
+ storage_and_handling: "storage_and_handling";
219
+ boxed_warning: "boxed_warning";
220
+ }>>>;
221
+ }, z.core.$strip>;
337
222
  searchDrugNDC: z.ZodObject<{
338
223
  limit: z.ZodOptional<z.ZodNumber>;
339
224
  skip: z.ZodOptional<z.ZodNumber>;
@@ -343,53 +228,26 @@ declare const toolSchemas: {
343
228
  labelerName: z.ZodOptional<z.ZodString>;
344
229
  dosageForm: z.ZodOptional<z.ZodString>;
345
230
  route: z.ZodOptional<z.ZodString>;
346
- }, "strip", z.ZodTypeAny, {
347
- limit?: number | undefined;
348
- skip?: number | undefined;
349
- route?: string | undefined;
350
- productNdc?: string | undefined;
351
- brandName?: string | undefined;
352
- genericName?: string | undefined;
353
- labelerName?: string | undefined;
354
- dosageForm?: string | undefined;
355
- }, {
356
- limit?: number | undefined;
357
- skip?: number | undefined;
358
- route?: string | undefined;
359
- productNdc?: string | undefined;
360
- brandName?: string | undefined;
361
- genericName?: string | undefined;
362
- labelerName?: string | undefined;
363
- dosageForm?: string | undefined;
364
- }>;
231
+ }, z.core.$strip>;
365
232
  searchDrugEnforcement: z.ZodObject<{
366
233
  limit: z.ZodOptional<z.ZodNumber>;
367
234
  skip: z.ZodOptional<z.ZodNumber>;
368
235
  dateFrom: z.ZodOptional<z.ZodString>;
369
236
  dateTo: z.ZodOptional<z.ZodString>;
370
237
  recallingFirm: z.ZodOptional<z.ZodString>;
371
- classification: z.ZodOptional<z.ZodEnum<["Class I", "Class II", "Class III"]>>;
372
- status: z.ZodOptional<z.ZodEnum<["Ongoing", "Completed", "Terminated", "Pending"]>>;
238
+ classification: z.ZodOptional<z.ZodEnum<{
239
+ "Class I": "Class I";
240
+ "Class II": "Class II";
241
+ "Class III": "Class III";
242
+ }>>;
243
+ status: z.ZodOptional<z.ZodEnum<{
244
+ Ongoing: "Ongoing";
245
+ Completed: "Completed";
246
+ Terminated: "Terminated";
247
+ Pending: "Pending";
248
+ }>>;
373
249
  state: z.ZodOptional<z.ZodString>;
374
- }, "strip", z.ZodTypeAny, {
375
- status?: "Ongoing" | "Completed" | "Terminated" | "Pending" | undefined;
376
- limit?: number | undefined;
377
- skip?: number | undefined;
378
- dateFrom?: string | undefined;
379
- dateTo?: string | undefined;
380
- recallingFirm?: string | undefined;
381
- classification?: "Class I" | "Class II" | "Class III" | undefined;
382
- state?: string | undefined;
383
- }, {
384
- status?: "Ongoing" | "Completed" | "Terminated" | "Pending" | undefined;
385
- limit?: number | undefined;
386
- skip?: number | undefined;
387
- dateFrom?: string | undefined;
388
- dateTo?: string | undefined;
389
- recallingFirm?: string | undefined;
390
- classification?: "Class I" | "Class II" | "Class III" | undefined;
391
- state?: string | undefined;
392
- }>;
250
+ }, z.core.$strip>;
393
251
  searchDrugsFDA: z.ZodObject<{
394
252
  limit: z.ZodOptional<z.ZodNumber>;
395
253
  skip: z.ZodOptional<z.ZodNumber>;
@@ -397,37 +255,16 @@ declare const toolSchemas: {
397
255
  applicationNumber: z.ZodOptional<z.ZodString>;
398
256
  brandName: z.ZodOptional<z.ZodString>;
399
257
  marketingStatus: z.ZodOptional<z.ZodString>;
400
- }, "strip", z.ZodTypeAny, {
401
- limit?: number | undefined;
402
- skip?: number | undefined;
403
- brandName?: string | undefined;
404
- sponsorName?: string | undefined;
405
- applicationNumber?: string | undefined;
406
- marketingStatus?: string | undefined;
407
- }, {
408
- limit?: number | undefined;
409
- skip?: number | undefined;
410
- brandName?: string | undefined;
411
- sponsorName?: string | undefined;
412
- applicationNumber?: string | undefined;
413
- marketingStatus?: string | undefined;
414
- }>;
258
+ }, z.core.$strip>;
415
259
  searchDrugShortages: z.ZodObject<{
416
260
  limit: z.ZodOptional<z.ZodNumber>;
417
261
  skip: z.ZodOptional<z.ZodNumber>;
418
262
  genericName: z.ZodOptional<z.ZodString>;
419
- status: z.ZodOptional<z.ZodEnum<["Current", "Resolved"]>>;
420
- }, "strip", z.ZodTypeAny, {
421
- status?: "Current" | "Resolved" | undefined;
422
- limit?: number | undefined;
423
- skip?: number | undefined;
424
- genericName?: string | undefined;
425
- }, {
426
- status?: "Current" | "Resolved" | undefined;
427
- limit?: number | undefined;
428
- skip?: number | undefined;
429
- genericName?: string | undefined;
430
- }>;
263
+ status: z.ZodOptional<z.ZodEnum<{
264
+ Current: "Current";
265
+ Resolved: "Resolved";
266
+ }>>;
267
+ }, z.core.$strip>;
431
268
  searchDevice510K: z.ZodObject<{
432
269
  limit: z.ZodOptional<z.ZodNumber>;
433
270
  skip: z.ZodOptional<z.ZodNumber>;
@@ -437,50 +274,20 @@ declare const toolSchemas: {
437
274
  clearanceType: z.ZodOptional<z.ZodString>;
438
275
  decisionDateFrom: z.ZodOptional<z.ZodString>;
439
276
  decisionDateTo: z.ZodOptional<z.ZodString>;
440
- }, "strip", z.ZodTypeAny, {
441
- limit?: number | undefined;
442
- skip?: number | undefined;
443
- deviceName?: string | undefined;
444
- applicant?: string | undefined;
445
- productCode?: string | undefined;
446
- clearanceType?: string | undefined;
447
- decisionDateFrom?: string | undefined;
448
- decisionDateTo?: string | undefined;
449
- }, {
450
- limit?: number | undefined;
451
- skip?: number | undefined;
452
- deviceName?: string | undefined;
453
- applicant?: string | undefined;
454
- productCode?: string | undefined;
455
- clearanceType?: string | undefined;
456
- decisionDateFrom?: string | undefined;
457
- decisionDateTo?: string | undefined;
458
- }>;
277
+ }, z.core.$strip>;
459
278
  searchDeviceClassifications: z.ZodObject<{
460
279
  limit: z.ZodOptional<z.ZodNumber>;
461
280
  skip: z.ZodOptional<z.ZodNumber>;
462
281
  deviceName: z.ZodOptional<z.ZodString>;
463
- deviceClass: z.ZodOptional<z.ZodEnum<["1", "2", "3"]>>;
282
+ deviceClass: z.ZodOptional<z.ZodEnum<{
283
+ 1: "1";
284
+ 2: "2";
285
+ 3: "3";
286
+ }>>;
464
287
  medicalSpecialty: z.ZodOptional<z.ZodString>;
465
288
  productCode: z.ZodOptional<z.ZodString>;
466
289
  regulationNumber: z.ZodOptional<z.ZodString>;
467
- }, "strip", z.ZodTypeAny, {
468
- limit?: number | undefined;
469
- skip?: number | undefined;
470
- deviceName?: string | undefined;
471
- productCode?: string | undefined;
472
- deviceClass?: "1" | "2" | "3" | undefined;
473
- medicalSpecialty?: string | undefined;
474
- regulationNumber?: string | undefined;
475
- }, {
476
- limit?: number | undefined;
477
- skip?: number | undefined;
478
- deviceName?: string | undefined;
479
- productCode?: string | undefined;
480
- deviceClass?: "1" | "2" | "3" | undefined;
481
- medicalSpecialty?: string | undefined;
482
- regulationNumber?: string | undefined;
483
- }>;
290
+ }, z.core.$strip>;
484
291
  searchDeviceAdverseEvents: z.ZodObject<{
485
292
  limit: z.ZodOptional<z.ZodNumber>;
486
293
  skip: z.ZodOptional<z.ZodNumber>;
@@ -490,28 +297,13 @@ declare const toolSchemas: {
490
297
  deviceName: z.ZodOptional<z.ZodString>;
491
298
  brandName: z.ZodOptional<z.ZodString>;
492
299
  manufacturerName: z.ZodOptional<z.ZodString>;
493
- eventType: z.ZodOptional<z.ZodEnum<["Injury", "Malfunction", "Death", "Other"]>>;
494
- }, "strip", z.ZodTypeAny, {
495
- limit?: number | undefined;
496
- skip?: number | undefined;
497
- dateFrom?: string | undefined;
498
- dateTo?: string | undefined;
499
- brandName?: string | undefined;
500
- deviceName?: string | undefined;
501
- reportNumber?: string | undefined;
502
- manufacturerName?: string | undefined;
503
- eventType?: "Injury" | "Malfunction" | "Death" | "Other" | undefined;
504
- }, {
505
- limit?: number | undefined;
506
- skip?: number | undefined;
507
- dateFrom?: string | undefined;
508
- dateTo?: string | undefined;
509
- brandName?: string | undefined;
510
- deviceName?: string | undefined;
511
- reportNumber?: string | undefined;
512
- manufacturerName?: string | undefined;
513
- eventType?: "Injury" | "Malfunction" | "Death" | "Other" | undefined;
514
- }>;
300
+ eventType: z.ZodOptional<z.ZodEnum<{
301
+ Injury: "Injury";
302
+ Malfunction: "Malfunction";
303
+ Death: "Death";
304
+ Other: "Other";
305
+ }>>;
306
+ }, z.core.$strip>;
515
307
  searchDeviceEnforcement: z.ZodObject<{
516
308
  limit: z.ZodOptional<z.ZodNumber>;
517
309
  skip: z.ZodOptional<z.ZodNumber>;
@@ -519,27 +311,54 @@ declare const toolSchemas: {
519
311
  dateTo: z.ZodOptional<z.ZodString>;
520
312
  recallingFirm: z.ZodOptional<z.ZodString>;
521
313
  productDescription: z.ZodOptional<z.ZodString>;
522
- classification: z.ZodOptional<z.ZodEnum<["Class I", "Class II", "Class III"]>>;
523
- status: z.ZodOptional<z.ZodEnum<["Ongoing", "Completed", "Terminated", "Pending"]>>;
524
- }, "strip", z.ZodTypeAny, {
525
- status?: "Ongoing" | "Completed" | "Terminated" | "Pending" | undefined;
526
- limit?: number | undefined;
527
- skip?: number | undefined;
528
- dateFrom?: string | undefined;
529
- dateTo?: string | undefined;
530
- recallingFirm?: string | undefined;
531
- classification?: "Class I" | "Class II" | "Class III" | undefined;
532
- productDescription?: string | undefined;
533
- }, {
534
- status?: "Ongoing" | "Completed" | "Terminated" | "Pending" | undefined;
535
- limit?: number | undefined;
536
- skip?: number | undefined;
537
- dateFrom?: string | undefined;
538
- dateTo?: string | undefined;
539
- recallingFirm?: string | undefined;
540
- classification?: "Class I" | "Class II" | "Class III" | undefined;
541
- productDescription?: string | undefined;
542
- }>;
314
+ classification: z.ZodOptional<z.ZodEnum<{
315
+ "Class I": "Class I";
316
+ "Class II": "Class II";
317
+ "Class III": "Class III";
318
+ }>>;
319
+ status: z.ZodOptional<z.ZodEnum<{
320
+ Ongoing: "Ongoing";
321
+ Completed: "Completed";
322
+ Terminated: "Terminated";
323
+ Pending: "Pending";
324
+ }>>;
325
+ }, z.core.$strip>;
326
+ searchOrangeBook: z.ZodObject<{
327
+ limit: z.ZodOptional<z.ZodNumber>;
328
+ skip: z.ZodOptional<z.ZodNumber>;
329
+ drugName: z.ZodOptional<z.ZodString>;
330
+ applicant: z.ZodOptional<z.ZodString>;
331
+ applNo: z.ZodOptional<z.ZodString>;
332
+ teCode: z.ZodOptional<z.ZodString>;
333
+ }, z.core.$strip>;
334
+ searchOrangeBookPatents: z.ZodObject<{
335
+ limit: z.ZodOptional<z.ZodNumber>;
336
+ skip: z.ZodOptional<z.ZodNumber>;
337
+ drugName: z.ZodOptional<z.ZodString>;
338
+ applNo: z.ZodOptional<z.ZodString>;
339
+ patentNo: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$strip>;
341
+ searchPurpleBook: z.ZodObject<{
342
+ limit: z.ZodOptional<z.ZodNumber>;
343
+ skip: z.ZodOptional<z.ZodNumber>;
344
+ productName: z.ZodOptional<z.ZodString>;
345
+ applicant: z.ZodOptional<z.ZodString>;
346
+ blaNumber: z.ZodOptional<z.ZodString>;
347
+ licenseType: z.ZodOptional<z.ZodEnum<{
348
+ "351(a)": "351(a)";
349
+ "351(k)": "351(k)";
350
+ }>>;
351
+ biosimilar: z.ZodOptional<z.ZodBoolean>;
352
+ interchangeable: z.ZodOptional<z.ZodBoolean>;
353
+ }, z.core.$strip>;
354
+ searchDrugPatentExpiry: z.ZodObject<{
355
+ limit: z.ZodOptional<z.ZodNumber>;
356
+ skip: z.ZodOptional<z.ZodNumber>;
357
+ drugName: z.ZodOptional<z.ZodString>;
358
+ applNo: z.ZodOptional<z.ZodString>;
359
+ includeExclusivity: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
360
+ includePurpleBook: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
361
+ }, z.core.$strip>;
543
362
  };
544
363
  type SearchDrugAdverseEventsParams = z.infer<typeof searchDrugAdverseEventsSchema>;
545
364
  type SearchDrugLabelsParams = z.infer<typeof searchDrugLabelsSchema>;
@@ -551,7 +370,11 @@ type SearchDevice510KParams = z.infer<typeof searchDevice510KSchema>;
551
370
  type SearchDeviceClassificationsParams = z.infer<typeof searchDeviceClassificationsSchema>;
552
371
  type SearchDeviceAdverseEventsParams = z.infer<typeof searchDeviceAdverseEventsSchema>;
553
372
  type SearchDeviceEnforcementParams = z.infer<typeof searchDeviceEnforcementSchema>;
373
+ type SearchOrangeBookParams = z.infer<typeof searchOrangeBookSchema>;
374
+ type SearchOrangeBookPatentsParams = z.infer<typeof searchOrangeBookPatentsSchema>;
375
+ type SearchPurpleBookParams = z.infer<typeof searchPurpleBookSchema>;
376
+ type SearchDrugPatentExpiryParams = z.infer<typeof searchDrugPatentExpirySchema>;
554
377
  type LabelSection = (typeof labelSections)[number];
555
378
  //#endregion
556
- export { LabelSection, SearchDevice510KParams, SearchDeviceAdverseEventsParams, SearchDeviceClassificationsParams, SearchDeviceEnforcementParams, SearchDrugAdverseEventsParams, SearchDrugEnforcementParams, SearchDrugLabelsParams, SearchDrugNDCParams, SearchDrugShortagesParams, SearchDrugsFDAParams, labelSections, searchDevice510KSchema, searchDeviceAdverseEventsSchema, searchDeviceClassificationsSchema, searchDeviceEnforcementSchema, searchDrugAdverseEventsSchema, searchDrugEnforcementSchema, searchDrugLabelsSchema, searchDrugNDCSchema, searchDrugShortagesSchema, searchDrugsFDASchema, toolSchemas };
379
+ export { LabelSection, SearchDevice510KParams, SearchDeviceAdverseEventsParams, SearchDeviceClassificationsParams, SearchDeviceEnforcementParams, SearchDrugAdverseEventsParams, SearchDrugEnforcementParams, SearchDrugLabelsParams, SearchDrugNDCParams, SearchDrugPatentExpiryParams, SearchDrugShortagesParams, SearchDrugsFDAParams, SearchOrangeBookParams, SearchOrangeBookPatentsParams, SearchPurpleBookParams, labelSections, searchDevice510KSchema, searchDeviceAdverseEventsSchema, searchDeviceClassificationsSchema, searchDeviceEnforcementSchema, searchDrugAdverseEventsSchema, searchDrugEnforcementSchema, searchDrugLabelsSchema, searchDrugNDCSchema, searchDrugPatentExpirySchema, searchDrugShortagesSchema, searchDrugsFDASchema, searchOrangeBookPatentsSchema, searchOrangeBookSchema, searchPurpleBookSchema, toolSchemas };
557
380
  //# sourceMappingURL=index.d.ts.map