@lineai/gov-deals
Version:
Explore Federal contracts for government building renovations, city hall renovations, courthouse updates, library modernizations, federal building improvement contracts, base housing and facilities upgrades.
1,098 lines (1,097 loc) • 42.5 kB
TypeScript
/**
* SAM.gov Opportunity types with Zod validation
*/
import { z } from 'zod';
/**
* Classification code (NAICS, PSC, etc.)
*/
export declare const SamClassificationCodeSchema: z.ZodObject<{
type: z.ZodEnum<["NAICS", "PSC", "FSC"]>;
code: z.ZodString;
description: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code: string;
type: "NAICS" | "PSC" | "FSC";
description?: string | undefined;
}, {
code: string;
type: "NAICS" | "PSC" | "FSC";
description?: string | undefined;
}>;
export type SamClassificationCode = z.infer<typeof SamClassificationCodeSchema>;
/**
* Attachment/document information
*/
export declare const SamAttachmentSchema: z.ZodObject<{
name: z.ZodString;
type: z.ZodOptional<z.ZodString>;
size: z.ZodOptional<z.ZodNumber>;
url: z.ZodOptional<z.ZodString>;
postedDate: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name: string;
url?: string | undefined;
type?: string | undefined;
size?: number | undefined;
postedDate?: string | undefined;
}, {
name: string;
url?: string | undefined;
type?: string | undefined;
size?: number | undefined;
postedDate?: string | undefined;
}>;
export type SamAttachment = z.infer<typeof SamAttachmentSchema>;
/**
* Important dates for an opportunity
*/
export declare const SamOpportunityDatesSchema: z.ZodObject<{
posted: z.ZodOptional<z.ZodString>;
modified: z.ZodOptional<z.ZodString>;
responseDeadline: z.ZodOptional<z.ZodString>;
archiveDate: z.ZodOptional<z.ZodString>;
closeDate: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
posted?: string | undefined;
modified?: string | undefined;
responseDeadline?: string | undefined;
archiveDate?: string | undefined;
closeDate?: string | undefined;
}, {
posted?: string | undefined;
modified?: string | undefined;
responseDeadline?: string | undefined;
archiveDate?: string | undefined;
closeDate?: string | undefined;
}>;
export type SamOpportunityDates = z.infer<typeof SamOpportunityDatesSchema>;
/**
* Award information
*/
export declare const SamAwardInfoSchema: z.ZodObject<{
awardDate: z.ZodOptional<z.ZodString>;
awardNumber: z.ZodOptional<z.ZodString>;
awardAmount: z.ZodOptional<z.ZodNumber>;
awardee: z.ZodOptional<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
uei: z.ZodOptional<z.ZodString>;
cageCode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name?: string | undefined;
uei?: string | undefined;
cageCode?: string | undefined;
}, {
name?: string | undefined;
uei?: string | undefined;
cageCode?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
awardDate?: string | undefined;
awardNumber?: string | undefined;
awardAmount?: number | undefined;
awardee?: {
name?: string | undefined;
uei?: string | undefined;
cageCode?: string | undefined;
} | undefined;
}, {
awardDate?: string | undefined;
awardNumber?: string | undefined;
awardAmount?: number | undefined;
awardee?: {
name?: string | undefined;
uei?: string | undefined;
cageCode?: string | undefined;
} | undefined;
}>;
export type SamAwardInfo = z.infer<typeof SamAwardInfoSchema>;
/**
* Resource link
*/
export declare const SamResourceLinkSchema: z.ZodObject<{
url: z.ZodString;
description: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
url: string;
description?: string | undefined;
}, {
url: string;
description?: string | undefined;
}>;
export type SamResourceLink = z.infer<typeof SamResourceLinkSchema>;
/**
* Point of Contact schema (actual API structure)
*/
export declare const SamPointOfContactSchema: z.ZodObject<{
type: z.ZodString;
fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}, {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}>;
export type SamPointOfContact = z.infer<typeof SamPointOfContactSchema>;
/**
* Office Address schema (actual API structure)
*/
export declare const SamOfficeAddressSchema: z.ZodObject<{
zipcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
}, {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
}>;
/**
* Place of Performance schema (actual API structure with nested objects)
*/
export declare const SamPlaceOfPerformanceSchema: z.ZodObject<{
city: z.ZodOptional<z.ZodNullable<z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
name?: string | undefined;
}, {
code?: string | undefined;
name?: string | undefined;
}>>>;
state: z.ZodOptional<z.ZodNullable<z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
name?: string | undefined;
}, {
code?: string | undefined;
name?: string | undefined;
}>>>;
country: z.ZodOptional<z.ZodNullable<z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
name?: string | undefined;
}, {
code?: string | undefined;
name?: string | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
}, {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
}>;
export type SamOfficeAddress = z.infer<typeof SamOfficeAddressSchema>;
/**
* Award schema (actual API structure)
*/
export declare const SamAwardSchema: z.ZodObject<{
awardee: z.ZodOptional<z.ZodObject<{
manual: z.ZodOptional<z.ZodBoolean>;
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
uei: z.ZodOptional<z.ZodNullable<z.ZodString>>;
cageCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
}, {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
}, {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
}>;
export type SamAward = z.infer<typeof SamAwardSchema>;
/**
* Link schema
*/
export declare const SamLinkSchema: z.ZodObject<{
rel: z.ZodString;
href: z.ZodString;
}, "strip", z.ZodTypeAny, {
rel: string;
href: string;
}, {
rel: string;
href: string;
}>;
export type SamLink = z.infer<typeof SamLinkSchema>;
/**
* Full SAM.gov Opportunity schema (based on actual API response)
*/
export declare const SamOpportunitySchema: z.ZodObject<{
noticeId: z.ZodString;
title: z.ZodString;
solicitationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
fullParentPathName: z.ZodOptional<z.ZodString>;
fullParentPathCode: z.ZodOptional<z.ZodString>;
organizationType: z.ZodOptional<z.ZodString>;
postedDate: z.ZodString;
responseDeadLine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
archiveDate: z.ZodOptional<z.ZodString>;
type: z.ZodString;
baseType: z.ZodOptional<z.ZodString>;
archiveType: z.ZodOptional<z.ZodString>;
typeOfSetAside: z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodEnum<["SBA", "SBP", "8A", "8AN", "8AC", "HZC", "HZS", "SDVOSBC", "SDVOSBS", "WOSB", "EDWOSB", "LAS", "IEE", "ISBEE", "BICiv", "VSA", "VSS", "NONE"]>>>, z.ZodLiteral<"">]>;
typeOfSetAsideDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
naicsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
naicsCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
classificationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
active: z.ZodOptional<z.ZodEnum<["Yes", "No"]>>;
description: z.ZodOptional<z.ZodString>;
pointOfContact: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodString;
fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}, {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}>, "many">>;
officeAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
zipcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
}, {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
}>>>;
placeOfPerformance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
city: z.ZodOptional<z.ZodNullable<z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
name?: string | undefined;
}, {
code?: string | undefined;
name?: string | undefined;
}>>>;
state: z.ZodOptional<z.ZodNullable<z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
name?: string | undefined;
}, {
code?: string | undefined;
name?: string | undefined;
}>>>;
country: z.ZodOptional<z.ZodNullable<z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
name?: string | undefined;
}, {
code?: string | undefined;
name?: string | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
}, {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
}>>>;
award: z.ZodOptional<z.ZodNullable<z.ZodObject<{
awardee: z.ZodOptional<z.ZodObject<{
manual: z.ZodOptional<z.ZodBoolean>;
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
uei: z.ZodOptional<z.ZodNullable<z.ZodString>>;
cageCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
}, {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
}, {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
}>>>;
uiLink: z.ZodOptional<z.ZodString>;
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
rel: z.ZodString;
href: z.ZodString;
}, "strip", z.ZodTypeAny, {
rel: string;
href: string;
}, {
rel: string;
href: string;
}>, "many">>;
additionalInfoLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
resourceLinks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
}, "strip", z.ZodTypeAny, {
type: string;
title: string;
postedDate: string;
noticeId: string;
description?: string | undefined;
archiveDate?: string | undefined;
solicitationNumber?: string | null | undefined;
fullParentPathName?: string | undefined;
fullParentPathCode?: string | undefined;
organizationType?: string | undefined;
responseDeadLine?: string | null | undefined;
baseType?: string | undefined;
archiveType?: string | undefined;
typeOfSetAside?: "" | "SBA" | "SBP" | "8A" | "8AN" | "8AC" | "HZC" | "HZS" | "SDVOSBC" | "SDVOSBS" | "WOSB" | "EDWOSB" | "LAS" | "IEE" | "ISBEE" | "BICiv" | "VSA" | "VSS" | "NONE" | null | undefined;
typeOfSetAsideDescription?: string | null | undefined;
naicsCode?: string | null | undefined;
naicsCodes?: string[] | undefined;
classificationCode?: string | null | undefined;
active?: "Yes" | "No" | undefined;
pointOfContact?: {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}[] | undefined;
officeAddress?: {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
} | null | undefined;
placeOfPerformance?: {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
} | null | undefined;
award?: {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
} | null | undefined;
uiLink?: string | undefined;
links?: {
rel: string;
href: string;
}[] | undefined;
additionalInfoLink?: string | null | undefined;
resourceLinks?: string[] | null | undefined;
}, {
type: string;
title: string;
postedDate: string;
noticeId: string;
description?: string | undefined;
archiveDate?: string | undefined;
solicitationNumber?: string | null | undefined;
fullParentPathName?: string | undefined;
fullParentPathCode?: string | undefined;
organizationType?: string | undefined;
responseDeadLine?: string | null | undefined;
baseType?: string | undefined;
archiveType?: string | undefined;
typeOfSetAside?: "" | "SBA" | "SBP" | "8A" | "8AN" | "8AC" | "HZC" | "HZS" | "SDVOSBC" | "SDVOSBS" | "WOSB" | "EDWOSB" | "LAS" | "IEE" | "ISBEE" | "BICiv" | "VSA" | "VSS" | "NONE" | null | undefined;
typeOfSetAsideDescription?: string | null | undefined;
naicsCode?: string | null | undefined;
naicsCodes?: string[] | undefined;
classificationCode?: string | null | undefined;
active?: "Yes" | "No" | undefined;
pointOfContact?: {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}[] | undefined;
officeAddress?: {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
} | null | undefined;
placeOfPerformance?: {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
} | null | undefined;
award?: {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
} | null | undefined;
uiLink?: string | undefined;
links?: {
rel: string;
href: string;
}[] | undefined;
additionalInfoLink?: string | null | undefined;
resourceLinks?: string[] | null | undefined;
}>;
export type SamOpportunity = z.infer<typeof SamOpportunitySchema>;
/**
* Search filters for opportunities
*/
export declare const SamOpportunitySearchFiltersSchema: z.ZodObject<{
keywords: z.ZodOptional<z.ZodString>;
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["p", "o", "a", "i", "u", "r", "s", "k", "g"]>, "many">>;
naicsCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
pscCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
placeOfPerformanceStates: z.ZodOptional<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">>;
placeOfPerformanceZips: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
agencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
setAsideTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["SBA", "SBP", "8A", "8AN", "8AC", "HZC", "HZS", "SDVOSBC", "SDVOSBS", "WOSB", "EDWOSB", "LAS", "IEE", "ISBEE", "BICiv", "VSA", "VSS", "NONE"]>, "many">>;
postedFrom: z.ZodOptional<z.ZodString>;
postedTo: z.ZodOptional<z.ZodString>;
responseDeadlineFrom: z.ZodOptional<z.ZodString>;
responseDeadlineTo: z.ZodOptional<z.ZodString>;
estimatedValueMin: z.ZodOptional<z.ZodNumber>;
estimatedValueMax: z.ZodOptional<z.ZodNumber>;
activeOnly: z.ZodOptional<z.ZodBoolean>;
includeArchived: z.ZodOptional<z.ZodBoolean>;
competitionStrategy: z.ZodOptional<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">>;
}, "strip", z.ZodTypeAny, {
naicsCodes?: string[] | undefined;
keywords?: string | undefined;
types?: ("p" | "o" | "a" | "i" | "u" | "r" | "s" | "k" | "g")[] | undefined;
pscCodes?: string[] | undefined;
placeOfPerformanceStates?: string[] | undefined;
placeOfPerformanceZips?: string[] | undefined;
agencies?: string[] | undefined;
setAsideTypes?: ("SBA" | "SBP" | "8A" | "8AN" | "8AC" | "HZC" | "HZS" | "SDVOSBC" | "SDVOSBS" | "WOSB" | "EDWOSB" | "LAS" | "IEE" | "ISBEE" | "BICiv" | "VSA" | "VSS" | "NONE")[] | undefined;
postedFrom?: string | undefined;
postedTo?: string | undefined;
responseDeadlineFrom?: string | undefined;
responseDeadlineTo?: string | undefined;
estimatedValueMin?: number | undefined;
estimatedValueMax?: number | undefined;
activeOnly?: boolean | undefined;
includeArchived?: boolean | undefined;
competitionStrategy?: string[] | undefined;
}, {
naicsCodes?: string[] | undefined;
keywords?: string | undefined;
types?: ("p" | "o" | "a" | "i" | "u" | "r" | "s" | "k" | "g")[] | undefined;
pscCodes?: string[] | undefined;
placeOfPerformanceStates?: string[] | undefined;
placeOfPerformanceZips?: string[] | undefined;
agencies?: string[] | undefined;
setAsideTypes?: ("SBA" | "SBP" | "8A" | "8AN" | "8AC" | "HZC" | "HZS" | "SDVOSBC" | "SDVOSBS" | "WOSB" | "EDWOSB" | "LAS" | "IEE" | "ISBEE" | "BICiv" | "VSA" | "VSS" | "NONE")[] | undefined;
postedFrom?: string | undefined;
postedTo?: string | undefined;
responseDeadlineFrom?: string | undefined;
responseDeadlineTo?: string | undefined;
estimatedValueMin?: number | undefined;
estimatedValueMax?: number | undefined;
activeOnly?: boolean | undefined;
includeArchived?: boolean | undefined;
competitionStrategy?: string[] | undefined;
}>;
export type SamOpportunitySearchFilters = z.infer<typeof SamOpportunitySearchFiltersSchema>;
/**
* Sort options for opportunity searches
*/
export declare const SamOpportunitySortOptionsSchema: z.ZodObject<{
field: z.ZodEnum<["postedDate", "modifiedDate", "responseDeadline", "title", "estimatedValue"]>;
order: z.ZodEnum<["asc", "desc"]>;
}, "strip", z.ZodTypeAny, {
field: "title" | "postedDate" | "responseDeadline" | "modifiedDate" | "estimatedValue";
order: "asc" | "desc";
}, {
field: "title" | "postedDate" | "responseDeadline" | "modifiedDate" | "estimatedValue";
order: "asc" | "desc";
}>;
export type SamOpportunitySortOptions = z.infer<typeof SamOpportunitySortOptionsSchema>;
/**
* API response for opportunity search (actual API structure)
*/
export declare const SamOpportunitySearchResponseSchema: z.ZodObject<{
totalRecords: z.ZodNumber;
limit: z.ZodNumber;
offset: z.ZodNumber;
opportunitiesData: z.ZodArray<z.ZodObject<{
noticeId: z.ZodString;
title: z.ZodString;
solicitationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
fullParentPathName: z.ZodOptional<z.ZodString>;
fullParentPathCode: z.ZodOptional<z.ZodString>;
organizationType: z.ZodOptional<z.ZodString>;
postedDate: z.ZodString;
responseDeadLine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
archiveDate: z.ZodOptional<z.ZodString>;
type: z.ZodString;
baseType: z.ZodOptional<z.ZodString>;
archiveType: z.ZodOptional<z.ZodString>;
typeOfSetAside: z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodEnum<["SBA", "SBP", "8A", "8AN", "8AC", "HZC", "HZS", "SDVOSBC", "SDVOSBS", "WOSB", "EDWOSB", "LAS", "IEE", "ISBEE", "BICiv", "VSA", "VSS", "NONE"]>>>, z.ZodLiteral<"">]>;
typeOfSetAsideDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
naicsCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
naicsCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
classificationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
active: z.ZodOptional<z.ZodEnum<["Yes", "No"]>>;
description: z.ZodOptional<z.ZodString>;
pointOfContact: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodString;
fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}, {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}>, "many">>;
officeAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
zipcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
}, {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
}>>>;
placeOfPerformance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
city: z.ZodOptional<z.ZodNullable<z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
name?: string | undefined;
}, {
code?: string | undefined;
name?: string | undefined;
}>>>;
state: z.ZodOptional<z.ZodNullable<z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
name?: string | undefined;
}, {
code?: string | undefined;
name?: string | undefined;
}>>>;
country: z.ZodOptional<z.ZodNullable<z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
name?: string | undefined;
}, {
code?: string | undefined;
name?: string | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
}, {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
}>>>;
award: z.ZodOptional<z.ZodNullable<z.ZodObject<{
awardee: z.ZodOptional<z.ZodObject<{
manual: z.ZodOptional<z.ZodBoolean>;
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
uei: z.ZodOptional<z.ZodNullable<z.ZodString>>;
cageCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
}, {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
}, {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
}>>>;
uiLink: z.ZodOptional<z.ZodString>;
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
rel: z.ZodString;
href: z.ZodString;
}, "strip", z.ZodTypeAny, {
rel: string;
href: string;
}, {
rel: string;
href: string;
}>, "many">>;
additionalInfoLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
resourceLinks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
}, "strip", z.ZodTypeAny, {
type: string;
title: string;
postedDate: string;
noticeId: string;
description?: string | undefined;
archiveDate?: string | undefined;
solicitationNumber?: string | null | undefined;
fullParentPathName?: string | undefined;
fullParentPathCode?: string | undefined;
organizationType?: string | undefined;
responseDeadLine?: string | null | undefined;
baseType?: string | undefined;
archiveType?: string | undefined;
typeOfSetAside?: "" | "SBA" | "SBP" | "8A" | "8AN" | "8AC" | "HZC" | "HZS" | "SDVOSBC" | "SDVOSBS" | "WOSB" | "EDWOSB" | "LAS" | "IEE" | "ISBEE" | "BICiv" | "VSA" | "VSS" | "NONE" | null | undefined;
typeOfSetAsideDescription?: string | null | undefined;
naicsCode?: string | null | undefined;
naicsCodes?: string[] | undefined;
classificationCode?: string | null | undefined;
active?: "Yes" | "No" | undefined;
pointOfContact?: {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}[] | undefined;
officeAddress?: {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
} | null | undefined;
placeOfPerformance?: {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
} | null | undefined;
award?: {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
} | null | undefined;
uiLink?: string | undefined;
links?: {
rel: string;
href: string;
}[] | undefined;
additionalInfoLink?: string | null | undefined;
resourceLinks?: string[] | null | undefined;
}, {
type: string;
title: string;
postedDate: string;
noticeId: string;
description?: string | undefined;
archiveDate?: string | undefined;
solicitationNumber?: string | null | undefined;
fullParentPathName?: string | undefined;
fullParentPathCode?: string | undefined;
organizationType?: string | undefined;
responseDeadLine?: string | null | undefined;
baseType?: string | undefined;
archiveType?: string | undefined;
typeOfSetAside?: "" | "SBA" | "SBP" | "8A" | "8AN" | "8AC" | "HZC" | "HZS" | "SDVOSBC" | "SDVOSBS" | "WOSB" | "EDWOSB" | "LAS" | "IEE" | "ISBEE" | "BICiv" | "VSA" | "VSS" | "NONE" | null | undefined;
typeOfSetAsideDescription?: string | null | undefined;
naicsCode?: string | null | undefined;
naicsCodes?: string[] | undefined;
classificationCode?: string | null | undefined;
active?: "Yes" | "No" | undefined;
pointOfContact?: {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}[] | undefined;
officeAddress?: {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
} | null | undefined;
placeOfPerformance?: {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
} | null | undefined;
award?: {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
} | null | undefined;
uiLink?: string | undefined;
links?: {
rel: string;
href: string;
}[] | undefined;
additionalInfoLink?: string | null | undefined;
resourceLinks?: string[] | null | undefined;
}>, "many">;
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
rel: z.ZodString;
href: z.ZodString;
}, "strip", z.ZodTypeAny, {
rel: string;
href: string;
}, {
rel: string;
href: string;
}>, "many">>;
searchTips: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
limit: number;
offset: number;
totalRecords: number;
opportunitiesData: {
type: string;
title: string;
postedDate: string;
noticeId: string;
description?: string | undefined;
archiveDate?: string | undefined;
solicitationNumber?: string | null | undefined;
fullParentPathName?: string | undefined;
fullParentPathCode?: string | undefined;
organizationType?: string | undefined;
responseDeadLine?: string | null | undefined;
baseType?: string | undefined;
archiveType?: string | undefined;
typeOfSetAside?: "" | "SBA" | "SBP" | "8A" | "8AN" | "8AC" | "HZC" | "HZS" | "SDVOSBC" | "SDVOSBS" | "WOSB" | "EDWOSB" | "LAS" | "IEE" | "ISBEE" | "BICiv" | "VSA" | "VSS" | "NONE" | null | undefined;
typeOfSetAsideDescription?: string | null | undefined;
naicsCode?: string | null | undefined;
naicsCodes?: string[] | undefined;
classificationCode?: string | null | undefined;
active?: "Yes" | "No" | undefined;
pointOfContact?: {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}[] | undefined;
officeAddress?: {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
} | null | undefined;
placeOfPerformance?: {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
} | null | undefined;
award?: {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
} | null | undefined;
uiLink?: string | undefined;
links?: {
rel: string;
href: string;
}[] | undefined;
additionalInfoLink?: string | null | undefined;
resourceLinks?: string[] | null | undefined;
}[];
links?: {
rel: string;
href: string;
}[] | undefined;
searchTips?: string[] | undefined;
}, {
limit: number;
offset: number;
totalRecords: number;
opportunitiesData: {
type: string;
title: string;
postedDate: string;
noticeId: string;
description?: string | undefined;
archiveDate?: string | undefined;
solicitationNumber?: string | null | undefined;
fullParentPathName?: string | undefined;
fullParentPathCode?: string | undefined;
organizationType?: string | undefined;
responseDeadLine?: string | null | undefined;
baseType?: string | undefined;
archiveType?: string | undefined;
typeOfSetAside?: "" | "SBA" | "SBP" | "8A" | "8AN" | "8AC" | "HZC" | "HZS" | "SDVOSBC" | "SDVOSBS" | "WOSB" | "EDWOSB" | "LAS" | "IEE" | "ISBEE" | "BICiv" | "VSA" | "VSS" | "NONE" | null | undefined;
typeOfSetAsideDescription?: string | null | undefined;
naicsCode?: string | null | undefined;
naicsCodes?: string[] | undefined;
classificationCode?: string | null | undefined;
active?: "Yes" | "No" | undefined;
pointOfContact?: {
type: string;
email?: string | null | undefined;
phone?: string | null | undefined;
title?: string | null | undefined;
fullName?: string | null | undefined;
fax?: string | null | undefined;
}[] | undefined;
officeAddress?: {
city?: string | null | undefined;
state?: string | null | undefined;
zipcode?: string | null | undefined;
countryCode?: string | null | undefined;
} | null | undefined;
placeOfPerformance?: {
city?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
state?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
country?: {
code?: string | undefined;
name?: string | undefined;
} | null | undefined;
} | null | undefined;
award?: {
awardee?: {
name?: string | null | undefined;
uei?: string | null | undefined;
cageCode?: string | null | undefined;
manual?: boolean | undefined;
} | undefined;
} | null | undefined;
uiLink?: string | undefined;
links?: {
rel: string;
href: string;
}[] | undefined;
additionalInfoLink?: string | null | undefined;
resourceLinks?: string[] | null | undefined;
}[];
links?: {
rel: string;
href: string;
}[] | undefined;
searchTips?: string[] | undefined;
}>;
export type SamOpportunitySearchResponse = z.infer<typeof SamOpportunitySearchResponseSchema>;