import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { ListResourceProduct } from "../components/listresourceproduct.js"; import { ProductSortProperty } from "../components/productsortproperty.js"; import { ProductVisibility } from "../components/productvisibility.js"; import { MetadataQuery, MetadataQuery$Outbound } from "../components/subscriptionslist.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Filter by product ID. */ export type QueryParamProductIDFilter = string | Array; /** * Filter by organization ID. */ export type ProductsListQueryParamOrganizationIDFilter = string | Array; /** * Filter products granting specific benefit. */ export type BenefitIDFilter = string | Array; export type ProductsListRequest = { /** * Filter by product ID. */ id?: string | Array | null | undefined; /** * Filter by organization ID. */ organizationId?: string | Array | null | undefined; /** * Filter by product name. */ query?: string | null | undefined; /** * Filter on archived products. */ isArchived?: boolean | null | undefined; /** * Filter on recurring products. If `true`, only subscriptions tiers are returned. If `false`, only one-time purchase products are returned. */ isRecurring?: boolean | null | undefined; /** * Filter products granting specific benefit. */ benefitId?: string | Array | null | undefined; /** * Filter by visibility. */ visibility?: Array | null | undefined; /** * Page number, defaults to 1. */ page?: number | undefined; /** * Size of a page, defaults to 10. Maximum is 100. */ limit?: number | undefined; /** * Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. */ sorting?: Array | null | undefined; /** * Filter by metadata key-value pairs. It uses the `deepObject` style, e.g. `?metadata[key]=value`. */ metadata?: { [k: string]: MetadataQuery; } | null | undefined; }; export type ProductsListResponse = { result: ListResourceProduct; }; /** @internal */ export type QueryParamProductIDFilter$Outbound = string | Array; /** @internal */ export declare const QueryParamProductIDFilter$outboundSchema: z.ZodMiniType; export declare function queryParamProductIDFilterToJSON(queryParamProductIDFilter: QueryParamProductIDFilter): string; /** @internal */ export type ProductsListQueryParamOrganizationIDFilter$Outbound = string | Array; /** @internal */ export declare const ProductsListQueryParamOrganizationIDFilter$outboundSchema: z.ZodMiniType; export declare function productsListQueryParamOrganizationIDFilterToJSON(productsListQueryParamOrganizationIDFilter: ProductsListQueryParamOrganizationIDFilter): string; /** @internal */ export type BenefitIDFilter$Outbound = string | Array; /** @internal */ export declare const BenefitIDFilter$outboundSchema: z.ZodMiniType; export declare function benefitIDFilterToJSON(benefitIDFilter: BenefitIDFilter): string; /** @internal */ export type ProductsListRequest$Outbound = { id?: string | Array | null | undefined; organization_id?: string | Array | null | undefined; query?: string | null | undefined; is_archived?: boolean | null | undefined; is_recurring?: boolean | null | undefined; benefit_id?: string | Array | null | undefined; visibility?: Array | null | undefined; page: number; limit: number; sorting?: Array | null | undefined; metadata?: { [k: string]: MetadataQuery$Outbound; } | null | undefined; }; /** @internal */ export declare const ProductsListRequest$outboundSchema: z.ZodMiniType; export declare function productsListRequestToJSON(productsListRequest: ProductsListRequest): string; /** @internal */ export declare const ProductsListResponse$inboundSchema: z.ZodMiniType; export declare function productsListResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=productslist.d.ts.map