/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: c244886b2cd6
 */

import * as z from "zod/v4";

export type ConnectorsQueryFilters = {
  /**
   * Filter for active connectors for a given user, workspace and organization.
   */
  active?: boolean | null | undefined;
};

/** @internal */
export type ConnectorsQueryFilters$Outbound = {
  active?: boolean | null | undefined;
};

/** @internal */
export const ConnectorsQueryFilters$outboundSchema: z.ZodType<
  ConnectorsQueryFilters$Outbound,
  ConnectorsQueryFilters
> = z.object({
  active: z.nullable(z.boolean()).optional(),
});

export function connectorsQueryFiltersToJSON(
  connectorsQueryFilters: ConnectorsQueryFilters,
): string {
  return JSON.stringify(
    ConnectorsQueryFilters$outboundSchema.parse(connectorsQueryFilters),
  );
}
