import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; export declare class Partners extends ClientSDK { /** * List all partners * * @remarks * List all partners for a partner program. */ list(request?: operations.ListPartnersRequest | undefined, options?: RequestOptions): Promise>; /** * Create or update a partner * * @remarks * Creates or updates a partner record (upsert behavior). If a partner with the same email already exists, their program enrollment will be updated with the provided tenantId. If no existing partner is found, a new partner will be created using the supplied information. */ create(request?: operations.CreatePartnerRequestBody | undefined, options?: RequestOptions): Promise; /** * Retrieve a partner's links. * * @remarks * Retrieve a partner's links by their partner ID or tenant ID. */ retrieveLinks(request?: operations.RetrieveLinksRequest | undefined, options?: RequestOptions): Promise>; /** * Create a link for a partner * * @remarks * Create a link for a partner that is enrolled in your program. */ createLink(request?: operations.CreatePartnerLinkRequestBody | undefined, options?: RequestOptions): Promise; /** * Upsert a link for a partner * * @remarks * Upsert a link for a partner that is enrolled in your program. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created. */ upsertLink(request?: operations.UpsertPartnerLinkRequestBody | undefined, options?: RequestOptions): Promise; /** * Retrieve analytics for a partner * * @remarks * Retrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter. */ analytics(request?: operations.RetrievePartnerAnalyticsRequest | undefined, options?: RequestOptions): Promise; /** * Ban a partner * * @remarks * Ban a partner from your program. This will disable all links and mark all commissions as canceled. */ ban(request?: operations.BanPartnerRequestBody | undefined, options?: RequestOptions): Promise; /** * Deactivate a partner * * @remarks * This will deactivate the partner from your program and disable all their active links. Their commissions and payouts will remain intact. You can reactivate them later if needed. */ deactivate(request?: operations.DeactivatePartnerRequestBody | undefined, options?: RequestOptions): Promise; } //# sourceMappingURL=partners.d.ts.map