@seamapi/blueprint
Version:
Build tools for the Seam API using this blueprint.
481 lines (480 loc) • 16.1 kB
TypeScript
import { z } from 'zod';
export declare const ParameterSchema: z.ZodObject<{
name: z.ZodString;
in: z.ZodEnum<["query", "header", "path", "cookie"]>;
description: z.ZodDefault<z.ZodString>;
required: z.ZodDefault<z.ZodBoolean>;
schema: z.ZodOptional<z.ZodObject<{
type: z.ZodString;
format: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: string;
format?: string | undefined;
}, {
type: string;
format?: string | undefined;
}>>;
deprecated: z.ZodDefault<z.ZodBoolean>;
'x-undocumented': z.ZodDefault<z.ZodString>;
'x-deprecated': z.ZodDefault<z.ZodString>;
'x-draft': z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
required: boolean;
name: string;
description: string;
in: "header" | "path" | "query" | "cookie";
deprecated: boolean;
'x-undocumented': string;
'x-deprecated': string;
'x-draft': string;
schema?: {
type: string;
format?: string | undefined;
} | undefined;
}, {
name: string;
in: "header" | "path" | "query" | "cookie";
required?: boolean | undefined;
description?: string | undefined;
schema?: {
type: string;
format?: string | undefined;
} | undefined;
deprecated?: boolean | undefined;
'x-undocumented'?: string | undefined;
'x-deprecated'?: string | undefined;
'x-draft'?: string | undefined;
}>;
export declare const AuthMethodSchema: z.ZodCatch<z.ZodEnum<["api_key", "client_session", "console_session_token_with_workspace", "console_session_token_without_workspace", "pat_with_workspace", "pat_without_workspace", "publishable_key", "unknown"]>>;
export declare const OpenapiOperationSchema: z.ZodObject<{
operationId: z.ZodString;
summary: z.ZodOptional<z.ZodString>;
description: z.ZodDefault<z.ZodString>;
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
in: z.ZodEnum<["query", "header", "path", "cookie"]>;
description: z.ZodDefault<z.ZodString>;
required: z.ZodDefault<z.ZodBoolean>;
schema: z.ZodOptional<z.ZodObject<{
type: z.ZodString;
format: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: string;
format?: string | undefined;
}, {
type: string;
format?: string | undefined;
}>>;
deprecated: z.ZodDefault<z.ZodBoolean>;
'x-undocumented': z.ZodDefault<z.ZodString>;
'x-deprecated': z.ZodDefault<z.ZodString>;
'x-draft': z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
required: boolean;
name: string;
description: string;
in: "header" | "path" | "query" | "cookie";
deprecated: boolean;
'x-undocumented': string;
'x-deprecated': string;
'x-draft': string;
schema?: {
type: string;
format?: string | undefined;
} | undefined;
}, {
name: string;
in: "header" | "path" | "query" | "cookie";
required?: boolean | undefined;
description?: string | undefined;
schema?: {
type: string;
format?: string | undefined;
} | undefined;
deprecated?: boolean | undefined;
'x-undocumented'?: string | undefined;
'x-deprecated'?: string | undefined;
'x-draft'?: string | undefined;
}>, "many">>;
requestBody: z.ZodOptional<z.ZodObject<{
content: z.ZodRecord<z.ZodString, z.ZodObject<{
schema: z.ZodObject<{
$ref: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type?: string | undefined;
$ref?: string | undefined;
}, {
type?: string | undefined;
$ref?: string | undefined;
}>;
}, "strip", z.ZodTypeAny, {
schema: {
type?: string | undefined;
$ref?: string | undefined;
};
}, {
schema: {
type?: string | undefined;
$ref?: string | undefined;
};
}>>;
}, "strip", z.ZodTypeAny, {
content: Record<string, {
schema: {
type?: string | undefined;
$ref?: string | undefined;
};
}>;
}, {
content: Record<string, {
schema: {
type?: string | undefined;
$ref?: string | undefined;
};
}>;
}>>;
responses: z.ZodRecord<z.ZodString, z.ZodObject<{
description: z.ZodString;
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
schema: z.ZodObject<{
$ref: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodString>;
items: z.ZodOptional<z.ZodObject<{
$ref: z.ZodString;
}, "strip", z.ZodTypeAny, {
$ref: string;
}, {
$ref: string;
}>>;
}, "strip", z.ZodTypeAny, {
type?: string | undefined;
items?: {
$ref: string;
} | undefined;
$ref?: string | undefined;
}, {
type?: string | undefined;
items?: {
$ref: string;
} | undefined;
$ref?: string | undefined;
}>;
}, "strip", z.ZodTypeAny, {
schema: {
type?: string | undefined;
items?: {
$ref: string;
} | undefined;
$ref?: string | undefined;
};
}, {
schema: {
type?: string | undefined;
items?: {
$ref: string;
} | undefined;
$ref?: string | undefined;
};
}>>>;
}, "strip", z.ZodTypeAny, {
description: string;
content?: Record<string, {
schema: {
type?: string | undefined;
items?: {
$ref: string;
} | undefined;
$ref?: string | undefined;
};
}> | undefined;
}, {
description: string;
content?: Record<string, {
schema: {
type?: string | undefined;
items?: {
$ref: string;
} | undefined;
$ref?: string | undefined;
};
}> | undefined;
}>>;
security: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodPipeline<z.ZodString, z.ZodCatch<z.ZodEnum<["api_key", "client_session", "console_session_token_with_workspace", "console_session_token_without_workspace", "pat_with_workspace", "pat_without_workspace", "publishable_key", "unknown"]>>>, z.ZodArray<z.ZodNever, "many">>, "many">>;
deprecated: z.ZodDefault<z.ZodBoolean>;
'x-response-key': z.ZodOptional<z.ZodNullable<z.ZodString>>;
'x-title': z.ZodDefault<z.ZodString>;
'x-undocumented': z.ZodDefault<z.ZodString>;
'x-deprecated': z.ZodDefault<z.ZodString>;
'x-draft': z.ZodDefault<z.ZodString>;
'x-action-attempt-type': z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
description: string;
deprecated: boolean;
'x-undocumented': string;
'x-deprecated': string;
'x-draft': string;
operationId: string;
responses: Record<string, {
description: string;
content?: Record<string, {
schema: {
type?: string | undefined;
items?: {
$ref: string;
} | undefined;
$ref?: string | undefined;
};
}> | undefined;
}>;
security: Partial<Record<"unknown" | "api_key" | "client_session" | "console_session_token_with_workspace" | "console_session_token_without_workspace" | "pat_with_workspace" | "pat_without_workspace" | "publishable_key", never[]>>[];
'x-title': string;
summary?: string | undefined;
parameters?: {
required: boolean;
name: string;
description: string;
in: "header" | "path" | "query" | "cookie";
deprecated: boolean;
'x-undocumented': string;
'x-deprecated': string;
'x-draft': string;
schema?: {
type: string;
format?: string | undefined;
} | undefined;
}[] | undefined;
requestBody?: {
content: Record<string, {
schema: {
type?: string | undefined;
$ref?: string | undefined;
};
}>;
} | undefined;
'x-response-key'?: string | null | undefined;
'x-action-attempt-type'?: string | undefined;
}, {
operationId: string;
responses: Record<string, {
description: string;
content?: Record<string, {
schema: {
type?: string | undefined;
items?: {
$ref: string;
} | undefined;
$ref?: string | undefined;
};
}> | undefined;
}>;
summary?: string | undefined;
description?: string | undefined;
deprecated?: boolean | undefined;
'x-undocumented'?: string | undefined;
'x-deprecated'?: string | undefined;
'x-draft'?: string | undefined;
parameters?: {
name: string;
in: "header" | "path" | "query" | "cookie";
required?: boolean | undefined;
description?: string | undefined;
schema?: {
type: string;
format?: string | undefined;
} | undefined;
deprecated?: boolean | undefined;
'x-undocumented'?: string | undefined;
'x-deprecated'?: string | undefined;
'x-draft'?: string | undefined;
}[] | undefined;
requestBody?: {
content: Record<string, {
schema: {
type?: string | undefined;
$ref?: string | undefined;
};
}>;
} | undefined;
security?: Record<string, never[]>[] | undefined;
'x-response-key'?: string | null | undefined;
'x-title'?: string | undefined;
'x-action-attempt-type'?: string | undefined;
}>;
export declare const EnumValueSchema: z.ZodObject<{
description: z.ZodDefault<z.ZodString>;
undocumented: z.ZodDefault<z.ZodString>;
deprecated: z.ZodDefault<z.ZodString>;
draft: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
description: string;
deprecated: string;
undocumented: string;
draft: string;
}, {
description?: string | undefined;
deprecated?: string | undefined;
undocumented?: string | undefined;
draft?: string | undefined;
}>;
export declare const PropertySchema: z.ZodSchema<any>;
export declare const ResourceSchema: z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodType<any, z.ZodTypeDef, any>>;
required: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
description: z.ZodDefault<z.ZodString>;
'x-route-path': z.ZodDefault<z.ZodString>;
'x-undocumented': z.ZodDefault<z.ZodString>;
'x-deprecated': z.ZodDefault<z.ZodString>;
'x-draft': z.ZodDefault<z.ZodString>;
'x-property-groups': z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>>>;
'x-variant-groups': z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>>>;
}, "strip", z.ZodTypeAny, {
required: string[];
type: "object";
description: string;
'x-undocumented': string;
'x-deprecated': string;
'x-draft': string;
'x-property-groups': Record<string, {
name: string;
}>;
'x-variant-groups': Record<string, {
name: string;
}>;
properties: Record<string, any>;
'x-route-path': string;
}, {
type: "object";
properties: Record<string, any>;
required?: string[] | undefined;
description?: string | undefined;
'x-undocumented'?: string | undefined;
'x-deprecated'?: string | undefined;
'x-draft'?: string | undefined;
'x-property-groups'?: Record<string, {
name: string;
}> | undefined;
'x-variant-groups'?: Record<string, {
name: string;
}> | undefined;
'x-route-path'?: string | undefined;
}>;
export declare const EventResourceSchema: z.ZodObject<{
'x-route-path': z.ZodDefault<z.ZodString>;
discriminator: z.ZodObject<{
propertyName: z.ZodString;
}, "strip", z.ZodTypeAny, {
propertyName: string;
}, {
propertyName: string;
}>;
oneOf: z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodType<any, z.ZodTypeDef, any>>;
required: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
description: z.ZodDefault<z.ZodString>;
'x-route-path': z.ZodDefault<z.ZodString>;
'x-undocumented': z.ZodDefault<z.ZodString>;
'x-deprecated': z.ZodDefault<z.ZodString>;
'x-draft': z.ZodDefault<z.ZodString>;
'x-property-groups': z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>>>;
'x-variant-groups': z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>>>;
}, "strip", z.ZodTypeAny, {
required: string[];
type: "object";
description: string;
'x-undocumented': string;
'x-deprecated': string;
'x-draft': string;
'x-property-groups': Record<string, {
name: string;
}>;
'x-variant-groups': Record<string, {
name: string;
}>;
properties: Record<string, any>;
'x-route-path': string;
}, {
type: "object";
properties: Record<string, any>;
required?: string[] | undefined;
description?: string | undefined;
'x-undocumented'?: string | undefined;
'x-deprecated'?: string | undefined;
'x-draft'?: string | undefined;
'x-property-groups'?: Record<string, {
name: string;
}> | undefined;
'x-variant-groups'?: Record<string, {
name: string;
}> | undefined;
'x-route-path'?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
discriminator: {
propertyName: string;
};
oneOf: {
required: string[];
type: "object";
description: string;
'x-undocumented': string;
'x-deprecated': string;
'x-draft': string;
'x-property-groups': Record<string, {
name: string;
}>;
'x-variant-groups': Record<string, {
name: string;
}>;
properties: Record<string, any>;
'x-route-path': string;
}[];
'x-route-path': string;
}, {
discriminator: {
propertyName: string;
};
oneOf: {
type: "object";
properties: Record<string, any>;
required?: string[] | undefined;
description?: string | undefined;
'x-undocumented'?: string | undefined;
'x-deprecated'?: string | undefined;
'x-draft'?: string | undefined;
'x-property-groups'?: Record<string, {
name: string;
}> | undefined;
'x-variant-groups'?: Record<string, {
name: string;
}> | undefined;
'x-route-path'?: string | undefined;
}[];
'x-route-path'?: string | undefined;
}>;