@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
163 lines • 6.21 kB
TypeScript
import { z } from 'zod';
/** Search attributes params */
export declare const SearchAttributesParamsSchema: z.ZodObject<{
q: z.ZodString;
searchType: z.ZodEnum<["query", "similarity"]>;
cacheSiteId: z.ZodOptional<z.ZodString>;
cacheTtl: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
filters: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
q: string;
searchType: "query" | "similarity";
cacheTtl: number;
cacheSiteId?: string | undefined;
filters?: string | undefined;
}, {
q: string;
searchType: "query" | "similarity";
cacheTtl?: number | undefined;
cacheSiteId?: string | undefined;
filters?: string | undefined;
}>;
export type SearchAttributesParams = z.infer<typeof SearchAttributesParamsSchema>;
/** Attribute value - key field only, passthrough for API flexibility */
export declare const AttributeValueSchema: z.ZodObject<{
attributeValueUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributeValueUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributeValueUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export type AttributeValue = z.infer<typeof AttributeValueSchema>;
/** Attribute - key field only, passthrough for API flexibility */
export declare const AttributeSchema: z.ZodObject<{
attributeUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export type Attribute = z.infer<typeof AttributeSchema>;
/** Search attributes data - passthrough for API flexibility */
export declare const SearchAttributesDataSchema: z.ZodObject<{
attributes: z.ZodArray<z.ZodObject<{
attributeUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributes: z.ZodArray<z.ZodObject<{
attributeUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributes: z.ZodArray<z.ZodObject<{
attributeUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, z.ZodTypeAny, "passthrough">>;
export type SearchAttributesData = z.infer<typeof SearchAttributesDataSchema>;
export declare const SearchAttributesResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodObject<{
attributes: z.ZodArray<z.ZodObject<{
attributeUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributes: z.ZodArray<z.ZodObject<{
attributeUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributes: z.ZodArray<z.ZodObject<{
attributeUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, z.ZodTypeAny, "passthrough">>;
message: z.ZodString;
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
status: z.ZodNumber;
total: z.ZodNumber;
totalResults: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
params: Record<string, unknown> | unknown[];
data: {
attributes: z.objectOutputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
attributes: z.objectInputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: {
attributes: z.objectOutputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
attributes: z.objectInputType<{
attributeUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export type SearchAttributesResponse = z.infer<typeof SearchAttributesResponseSchema>;
//# sourceMappingURL=itemSearchAttributes.d.ts.map