/** * Plugin schemas for listApps * * Imports base query schema from @zapier/zapier-sdk-core (sdkapi) and extends * with SDK-specific options. * * Note: The sdkapi endpoint uses ListAppsQuerySchema (HTTP query params), * but the SDK exposes ListAppsSchema (user-friendly options): * - ListAppsOptions accepts `appKeys` as array, `cursor`, `maxItems` * - ListAppsQuery accepts `appKeys` as comma-separated string, `offset` * - The plugin transforms between these formats */ import { z } from "zod"; import type { PaginatedSdkFunction } from "../../types/functions"; import { AppItemSchema as AppItemSchemaBase, ListAppsResponseSchema as ListAppsResponseSchemaBase, type AppItem, type ListAppsResponse } from "@zapier/zapier-sdk-core/v0/schemas/apps"; export { AppItemSchemaBase as AppItemSchema }; export { ListAppsResponseSchemaBase as ListAppsResponseSchema }; export type { AppItem, ListAppsResponse }; /** * SDK user-facing options for listApps * * Extends ListAppsQuerySchema from zapier-sdk-core with SDK-specific options: * - appKeys: array (not comma-separated string) * - cursor: pagination cursor (not offset) * - maxItems: SDK-specific pagination limit */ export declare const ListAppsSchema: z.ZodObject<{ search: z.ZodOptional; apps: z.ZodOptional>; appKeys: z.ZodOptional>; pageSize: z.ZodOptional; maxItems: z.ZodOptional; cursor: z.ZodOptional; }, z.core.$strip>; export type ListAppsOptions = z.infer; export interface ListAppsPage { data: AppItem[]; nextCursor?: string; } export interface ListAppsSdkFunction { listApps: PaginatedSdkFunction; } //# sourceMappingURL=schemas.d.ts.map