import { JSONSchema7, JSONSchema7Definition } from "json-schema"; import { z } from "zod"; import { Organization } from "./core/organization"; import { User } from "./core/user"; export type ErrorDetails = { "@type": string; violations?: Violation[]; description?: string; }; export type Violation = { type: string; description: string; subject: string; }; export type Visibility = "VISIBILITY_UNSPECIFIED" | "VISIBILITY_PRIVATE" | "VISIBILITY_PUBLIC"; export type Permission = { canEdit: boolean; canTrigger: boolean; }; export declare const PermissionSchema: z.ZodObject<{ canEdit: z.ZodBoolean; canTrigger: z.ZodBoolean; }, "strip", z.ZodTypeAny, { canEdit: boolean; canTrigger: boolean; }, { canEdit: boolean; canTrigger: boolean; }>; export type UserOwner = { user: User; }; export declare const UserOwnerSchema: z.ZodObject<{ user: z.ZodObject<{ name: z.ZodString; uid: z.ZodString; id: z.ZodString; createTime: z.ZodString; updateTime: z.ZodString; profile: z.ZodOptional; bio: z.ZodOptional; publicEmail: z.ZodOptional; companyName: z.ZodOptional; avatar: z.ZodOptional; socialProfileLinks: z.ZodOptional; x: z.ZodOptional; github: z.ZodOptional; }, "strip", z.ZodTypeAny, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }>>; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }, { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { user: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; }, { user: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; }>; export type OrganizationOwner = { organization: Organization; }; export declare const OrganizationOwnerSchema: z.ZodObject<{ organization: z.ZodObject<{ name: z.ZodString; uid: z.ZodString; id: z.ZodString; createTime: z.ZodString; updateTime: z.ZodString; owner: z.ZodObject<{ name: z.ZodString; uid: z.ZodString; id: z.ZodString; createTime: z.ZodString; updateTime: z.ZodString; profile: z.ZodOptional; bio: z.ZodOptional; publicEmail: z.ZodOptional; companyName: z.ZodOptional; avatar: z.ZodOptional; socialProfileLinks: z.ZodOptional; x: z.ZodOptional; github: z.ZodOptional; }, "strip", z.ZodTypeAny, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }>>; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }, { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }>; profile: z.ZodOptional; bio: z.ZodOptional; publicEmail: z.ZodOptional; avatar: z.ZodOptional; socialProfileLinks: z.ZodOptional; x: z.ZodOptional; github: z.ZodOptional; }, "strip", z.ZodTypeAny, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }>>; stats: z.ZodObject<{ userCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { userCount: number; }, { userCount: number; }>; }, "strip", z.ZodTypeAny, { name: string; uid: string; id: string; owner: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; createTime: string; updateTime: string; stats: { userCount: number; }; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }, { name: string; uid: string; id: string; owner: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; createTime: string; updateTime: string; stats: { userCount: number; }; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { organization: { name: string; uid: string; id: string; owner: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; createTime: string; updateTime: string; stats: { userCount: number; }; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; }, { organization: { name: string; uid: string; id: string; owner: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; createTime: string; updateTime: string; stats: { userCount: number; }; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; }>; export type Nullable = T | null; export type WithNullableFields = { [P in keyof T]-?: T[P] | null; }; export type GeneralRecord = Record; export type Owner = UserOwner | OrganizationOwner; export declare const OwnerSchema: z.ZodUnion<[z.ZodObject<{ user: z.ZodObject<{ name: z.ZodString; uid: z.ZodString; id: z.ZodString; createTime: z.ZodString; updateTime: z.ZodString; profile: z.ZodOptional; bio: z.ZodOptional; publicEmail: z.ZodOptional; companyName: z.ZodOptional; avatar: z.ZodOptional; socialProfileLinks: z.ZodOptional; x: z.ZodOptional; github: z.ZodOptional; }, "strip", z.ZodTypeAny, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }>>; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }, { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { user: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; }, { user: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; }>, z.ZodObject<{ organization: z.ZodObject<{ name: z.ZodString; uid: z.ZodString; id: z.ZodString; createTime: z.ZodString; updateTime: z.ZodString; owner: z.ZodObject<{ name: z.ZodString; uid: z.ZodString; id: z.ZodString; createTime: z.ZodString; updateTime: z.ZodString; profile: z.ZodOptional; bio: z.ZodOptional; publicEmail: z.ZodOptional; companyName: z.ZodOptional; avatar: z.ZodOptional; socialProfileLinks: z.ZodOptional; x: z.ZodOptional; github: z.ZodOptional; }, "strip", z.ZodTypeAny, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }>>; email: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }, { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }>; profile: z.ZodOptional; bio: z.ZodOptional; publicEmail: z.ZodOptional; avatar: z.ZodOptional; socialProfileLinks: z.ZodOptional; x: z.ZodOptional; github: z.ZodOptional; }, "strip", z.ZodTypeAny, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }, { website?: string | undefined; x?: string | undefined; github?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }, { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; }>>; stats: z.ZodObject<{ userCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { userCount: number; }, { userCount: number; }>; }, "strip", z.ZodTypeAny, { name: string; uid: string; id: string; owner: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; createTime: string; updateTime: string; stats: { userCount: number; }; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }, { name: string; uid: string; id: string; owner: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; createTime: string; updateTime: string; stats: { userCount: number; }; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { organization: { name: string; uid: string; id: string; owner: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; createTime: string; updateTime: string; stats: { userCount: number; }; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; }, { organization: { name: string; uid: string; id: string; owner: { name: string; uid: string; id: string; createTime: string; updateTime: string; email: string; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; companyName?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; createTime: string; updateTime: string; stats: { userCount: number; }; profile?: { displayName?: string | undefined; bio?: string | undefined; publicEmail?: string | undefined; avatar?: string | undefined; socialProfileLinks?: { website?: string | undefined; x?: string | undefined; github?: string | undefined; } | undefined; } | undefined; }; }>]>; export type InstillCredentialMap = { targets: string[]; values: string[]; }; export type InstillCustomProps = { instillUpstreamType?: string; instillUpstreamTypes?: string[]; instillFormat?: string; instillAcceptFormats?: string[]; instillShortDescription?: string; instillUIOrder?: number; instillUIMultiline?: boolean; instillEditOnNodeFields?: string[]; instillSecret?: boolean; instillPatternErrorMessage?: string; instillCredentialMap?: InstillCredentialMap; instillCredential?: boolean; instillModelPromptImageBase64ObjectFormat?: boolean; }; export type InstillJSONSchemaDefinition = InstillJSONSchema | boolean; type InstillJsonSchemaProps = { example?: string | number; "x-oaiTypeLabel"?: string; "x-go-type"?: string; nullable?: boolean; } & InstillCustomProps; export type InstillJSONSchema = { [Property in keyof JSONSchema7]+?: JSONSchema7[Property] extends boolean ? boolean : Property extends "enum" ? string[] : Property extends "if" | "then" ? InstillJSONSchema : Property extends "allOf" ? InstillJSONSchema[] | undefined : Property extends "oneOf" ? InstillJSONSchema[] | undefined : Property extends "anyOf" ? InstillJSONSchema[] | undefined : Property extends "properties" | "patternProperties" | "definitions" ? Record : Property extends "items" ? InstillJSONSchema : JSONSchema7[Property] extends JSONSchema7Definition | JSONSchema7Definition[] ? InstillJSONSchemaDefinition | InstillJSONSchemaDefinition[] : JSONSchema7[Property] extends InstillJSONSchema ? InstillJSONSchema : JSONSchema7[Property] extends InstillJSONSchema[] ? InstillJSONSchema[] : JSONSchema7[Property] extends InstillJSONSchema | InstillJSONSchema[] ? InstillJSONSchema | InstillJSONSchema[] : JSONSchema7[Property]; } & InstillJsonSchemaProps; export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; export type Operation = { name: string; response?: { "@type": string; request: { name: string; taskInputs: GeneralRecord[]; version: string; }; response: { task: string; taskOutputs: GeneralRecord[]; }; }; metadata?: GeneralRecord; error?: GeneralRecord; done: boolean; }; export type DataSpecification = { input: Nullable; output: Nullable; }; export type EventSpecification = { title: string; configSchema: Nullable; description: string; messageExamples: GeneralRecord[]; messageSchema: Nullable; }; export declare const DataSpecificationSchema: z.ZodObject<{ input: z.ZodNullable; output: z.ZodNullable; }, "strip", z.ZodTypeAny, { input?: any; output?: any; }, { input?: any; output?: any; }>; export type Spec = { componentSpecification: InstillJSONSchema; dataSpecifications: Nullable>; eventSpecifications: Nullable>; }; export declare const SpecSchema: z.ZodObject<{ componentSpecification: z.ZodRecord; dataSpecifications: z.ZodNullable; output: z.ZodNullable; }, "strip", z.ZodTypeAny, { input?: any; output?: any; }, { input?: any; output?: any; }>>>; }, "strip", z.ZodTypeAny, { componentSpecification: Record; dataSpecifications: Record | null; }, { componentSpecification: Record; dataSpecifications: Record | null; }>; export declare class InstillError extends Error { response?: InstillErrorResponse; status: number; constructor(message: string, status: number, response?: InstillErrorResponse); } export type InstillErrorResponse = { code: number; message: string; details: ErrorDetails[]; }; export type FileReference = { name: string; type: string; size: number; url: string; }; export {}; //# sourceMappingURL=types.d.ts.map