import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PaginationCoverage, PaginationCoverage$Outbound } from "./paginationcoverage.js"; import { ResourceStatus } from "./resourcestatus.js"; import { SupportedProperty, SupportedProperty$Outbound } from "./supportedproperty.js"; export type ConnectorResource = { /** * ID of the resource, typically a lowercased version of name. */ id?: string | undefined; /** * Name of the resource (plural) */ name?: string | undefined; /** * ID of the resource in the Connector's API (downstream) */ downstreamId?: string | undefined; /** * Name of the resource in the Connector's API (downstream) */ downstreamName?: string | undefined; /** * Status of the resource. Resources with status live or beta are callable. */ status?: ResourceStatus | undefined; /** * Indicates if pagination (cursor and limit parameters) is supported on the list endpoint of the resource. */ paginationSupported?: boolean | undefined; pagination?: PaginationCoverage | undefined; /** * Indicates if custom fields are supported on this resource. */ customFieldsSupported?: boolean | undefined; /** * List of supported operations on the resource. */ supportedOperations?: Array | undefined; /** * List of operations that are not supported on the downstream. */ downstreamUnsupportedOperations?: Array | undefined; /** * Supported filters on the list endpoint of the resource. */ supportedFilters?: Array | undefined; /** * Supported sorting properties on the list endpoint of the resource. */ supportedSortBy?: Array | undefined; /** * Supported fields on the detail endpoint. */ supportedFields?: Array | undefined; /** * Supported fields on the list endpoint. */ supportedListFields?: Array | undefined; }; /** @internal */ export declare const ConnectorResource$inboundSchema: z.ZodType; /** @internal */ export type ConnectorResource$Outbound = { id?: string | undefined; name?: string | undefined; downstream_id?: string | undefined; downstream_name?: string | undefined; status?: string | undefined; pagination_supported?: boolean | undefined; pagination?: PaginationCoverage$Outbound | undefined; custom_fields_supported?: boolean | undefined; supported_operations?: Array | undefined; downstream_unsupported_operations?: Array | undefined; supported_filters?: Array | undefined; supported_sort_by?: Array | undefined; supported_fields?: Array | undefined; supported_list_fields?: Array | undefined; }; /** @internal */ export declare const ConnectorResource$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 ConnectorResource$ { /** @deprecated use `ConnectorResource$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ConnectorResource$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ConnectorResource$Outbound` instead. */ type Outbound = ConnectorResource$Outbound; } export declare function connectorResourceToJSON(connectorResource: ConnectorResource): string; export declare function connectorResourceFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=connectorresource.d.ts.map