epo-ops-sdk
Version:
TypeScript SDK for the European Patent Office's Open Patent Services (OPS) API with OAuth support
311 lines • 8.63 kB
TypeScript
import { z } from 'zod';
export declare const PatentReferenceSchema: z.ZodObject<{
type: z.ZodEnum<["application", "priority", "publication"]>;
format: z.ZodEnum<["docdb", "epodoc"]>;
number: z.ZodString;
}, "strip", z.ZodTypeAny, {
number: string;
type: "application" | "priority" | "publication";
format: "docdb" | "epodoc";
}, {
number: string;
type: "application" | "priority" | "publication";
format: "docdb" | "epodoc";
}>;
export declare const SearchOptionsSchema: z.ZodObject<{
range: z.ZodOptional<z.ZodString>;
constituent: z.ZodOptional<z.ZodEnum<["biblio", "full-cycle", "abstract"]>>;
}, "strip", z.ZodTypeAny, {
range?: string | undefined;
constituent?: "biblio" | "full-cycle" | "abstract" | undefined;
}, {
range?: string | undefined;
constituent?: "biblio" | "full-cycle" | "abstract" | undefined;
}>;
export declare const ClassificationOptionsSchema: z.ZodObject<{
ancestors: z.ZodOptional<z.ZodBoolean>;
navigation: z.ZodOptional<z.ZodBoolean>;
depth: z.ZodOptional<z.ZodEnum<["0", "1", "2", "3", "all"]>>;
}, "strip", z.ZodTypeAny, {
ancestors?: boolean | undefined;
navigation?: boolean | undefined;
depth?: "0" | "1" | "2" | "3" | "all" | undefined;
}, {
ancestors?: boolean | undefined;
navigation?: boolean | undefined;
depth?: "0" | "1" | "2" | "3" | "all" | undefined;
}>;
export declare const BibliographicDataSchema: z.ZodObject<{
title: z.ZodString;
abstract: z.ZodString;
inventors: z.ZodArray<z.ZodString, "many">;
applicants: z.ZodArray<z.ZodString, "many">;
publicationDate: z.ZodString;
applicationDate: z.ZodString;
priorityDate: z.ZodOptional<z.ZodString>;
classification: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
abstract: string;
title: string;
inventors: string[];
applicants: string[];
publicationDate: string;
applicationDate: string;
classification: string[];
priorityDate?: string | undefined;
}, {
abstract: string;
title: string;
inventors: string[];
applicants: string[];
publicationDate: string;
applicationDate: string;
classification: string[];
priorityDate?: string | undefined;
}>;
export declare const ClaimsSchema: z.ZodObject<{
independent: z.ZodArray<z.ZodString, "many">;
dependent: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
independent: string[];
dependent: string[];
}, {
independent: string[];
dependent: string[];
}>;
export declare const FamilyMemberSchema: z.ZodObject<{
publicationNumber: z.ZodString;
publicationDate: z.ZodString;
title: z.ZodString;
abstract: z.ZodOptional<z.ZodString>;
country: z.ZodString;
kind: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
publicationDate: string;
publicationNumber: string;
country: string;
kind: string;
abstract?: string | undefined;
}, {
title: string;
publicationDate: string;
publicationNumber: string;
country: string;
kind: string;
abstract?: string | undefined;
}>;
export declare const LegalStatusSchema: z.ZodObject<{
status: z.ZodString;
date: z.ZodString;
description: z.ZodString;
country: z.ZodString;
}, "strip", z.ZodTypeAny, {
status: string;
date: string;
country: string;
description: string;
}, {
status: string;
date: string;
country: string;
description: string;
}>;
export declare const SearchResponseSchema: z.ZodObject<{
status: z.ZodNumber;
data: z.ZodObject<{
query: z.ZodString;
results: z.ZodArray<z.ZodObject<{
id: z.ZodString;
title: z.ZodString;
abstract: z.ZodOptional<z.ZodString>;
publicationDate: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
title: string;
id: string;
abstract?: string | undefined;
publicationDate?: string | undefined;
}, {
title: string;
id: string;
abstract?: string | undefined;
publicationDate?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
query: string;
results: {
title: string;
id: string;
abstract?: string | undefined;
publicationDate?: string | undefined;
}[];
}, {
query: string;
results: {
title: string;
id: string;
abstract?: string | undefined;
publicationDate?: string | undefined;
}[];
}>;
}, "strip", z.ZodTypeAny, {
status: number;
data: {
query: string;
results: {
title: string;
id: string;
abstract?: string | undefined;
publicationDate?: string | undefined;
}[];
};
}, {
status: number;
data: {
query: string;
results: {
title: string;
id: string;
abstract?: string | undefined;
publicationDate?: string | undefined;
}[];
};
}>;
export declare const ClassificationResponseSchema: z.ZodObject<{
status: z.ZodNumber;
data: z.ZodObject<{
class: z.ZodString;
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
subclasses: z.ZodOptional<z.ZodArray<z.ZodObject<{
code: z.ZodString;
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
code: string;
title: string;
description?: string | undefined;
}, {
code: string;
title: string;
description?: string | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
title: string;
class: string;
description?: string | undefined;
subclasses?: {
code: string;
title: string;
description?: string | undefined;
}[] | undefined;
}, {
title: string;
class: string;
description?: string | undefined;
subclasses?: {
code: string;
title: string;
description?: string | undefined;
}[] | undefined;
}>;
}, "strip", z.ZodTypeAny, {
status: number;
data: {
title: string;
class: string;
description?: string | undefined;
subclasses?: {
code: string;
title: string;
description?: string | undefined;
}[] | undefined;
};
}, {
status: number;
data: {
title: string;
class: string;
description?: string | undefined;
subclasses?: {
code: string;
title: string;
description?: string | undefined;
}[] | undefined;
};
}>;
export declare const NumberConversionResponseSchema: z.ZodObject<{
status: z.ZodNumber;
data: z.ZodObject<{
input: z.ZodObject<{
type: z.ZodString;
format: z.ZodString;
number: z.ZodString;
}, "strip", z.ZodTypeAny, {
number: string;
type: string;
format: string;
}, {
number: string;
type: string;
format: string;
}>;
output: z.ZodObject<{
format: z.ZodString;
number: z.ZodString;
}, "strip", z.ZodTypeAny, {
number: string;
format: string;
}, {
number: string;
format: string;
}>;
}, "strip", z.ZodTypeAny, {
input: {
number: string;
type: string;
format: string;
};
output: {
number: string;
format: string;
};
}, {
input: {
number: string;
type: string;
format: string;
};
output: {
number: string;
format: string;
};
}>;
}, "strip", z.ZodTypeAny, {
status: number;
data: {
input: {
number: string;
type: string;
format: string;
};
output: {
number: string;
format: string;
};
};
}, {
status: number;
data: {
input: {
number: string;
type: string;
format: string;
};
output: {
number: string;
format: string;
};
};
}>;
//# sourceMappingURL=schemas.d.ts.map