import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ResourceStatus } from "./resourcestatus.js"; export type LinkedResources = { /** * ID of the resource, typically a lowercased version of name. */ id?: string | undefined; /** * Name of the property in our Unified API. */ unifiedProperty?: string | undefined; }; /** * JSON Schema of the resource in our Unified API */ export type Schema = {}; export type ApiResource = { /** * ID of the resource, typically a lowercased version of name. */ id?: string | undefined; /** * Name of the resource (plural) */ name?: string | undefined; /** * Status of the resource. Resources with status live or beta are callable. */ status?: ResourceStatus | undefined; /** * List of linked resources. */ linkedResources?: Array | undefined; /** * JSON Schema of the resource in our Unified API */ schema?: Schema | undefined; }; /** @internal */ export declare const LinkedResources$inboundSchema: z.ZodType; /** @internal */ export type LinkedResources$Outbound = { id?: string | undefined; unified_property?: string | undefined; }; /** @internal */ export declare const LinkedResources$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace LinkedResources$ { /** @deprecated use `LinkedResources$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `LinkedResources$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `LinkedResources$Outbound` instead. */ type Outbound = LinkedResources$Outbound; } export declare function linkedResourcesToJSON(linkedResources: LinkedResources): string; export declare function linkedResourcesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Schema$inboundSchema: z.ZodType; /** @internal */ export type Schema$Outbound = {}; /** @internal */ export declare const Schema$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Schema$ { /** @deprecated use `Schema$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Schema$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Schema$Outbound` instead. */ type Outbound = Schema$Outbound; } export declare function schemaToJSON(schema: Schema): string; export declare function schemaFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ApiResource$inboundSchema: z.ZodType; /** @internal */ export type ApiResource$Outbound = { id?: string | undefined; name?: string | undefined; status?: string | undefined; linked_resources?: Array | undefined; schema?: Schema$Outbound | undefined; }; /** @internal */ export declare const ApiResource$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ApiResource$ { /** @deprecated use `ApiResource$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ApiResource$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ApiResource$Outbound` instead. */ type Outbound = ApiResource$Outbound; } export declare function apiResourceToJSON(apiResource: ApiResource): string; export declare function apiResourceFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=apiresource.d.ts.map