/** * MPC (Mutuo, Préstamos y Créditos) Clients Resource * * Extends MexClientsResource with MPC-specific behavior. * MPC clients support Individual, Company, and Trust discriminated union types. * Returns MexMPCClient models. */ import type { AtomicBatchResult, ClientRelationshipType, ClientSort, CreateBankAccountInput, CreateClientInput, CreateContactMethodInput, CreateMexAddressInput, CreateMPCClientInput, LinkedClient as LinkedClientInput, ListOptions, MPCClientFilter, MPCClientSort, PaginatedResponse, PartialBatchResult, SyncCreateDocumentInput, SyncItem, SyncResult, SyncUpdateDocumentInput, UpdateBankAccountInput, UpdateClientInput, UpdateContactMethodInput, UpdateMexAddressInput, UpdateMPCClientInput, UpsertMPCClientInput, UpsertResult } from "@artu-ai/shared"; import { type ClientData, ContactMethod, Document, LinkedClient, MexAddress, MexBankAccount, MexMPCClient } from "../../../../models"; import { type ClientIncludeMap } from "../../../clients"; import type { RelatedPartyParent, RelatedPartySubresource } from "../../../related-parties/base"; import { AVClientsResource } from "../clients"; /** * MPC (Mutuo, Préstamos y Créditos) scoped clients resource. * * @example * ```typescript * const mpcSdk = new ComplianceSDK({ * apiKey, * environment: "test", * scope: "MX:AV:MPC", * }); * * const client = await mpcSdk.clients.create({ * type: ClientType.Person, * name: "Juan García", * rfc: "GAJL850101ABC", * }); * * // Returns MexMPCClient * ``` */ export declare class MPCClientsResource extends AVClientsResource { readonly legalRepresentatives: RelatedPartySubresource; readonly controllingBeneficiaries: RelatedPartySubresource; protected relatedPartyParent(): RelatedPartyParent; create(data: CreateMPCClientInput): Promise; retrieve(id: string, options?: { include?: ClientIncludeMap; crossScope?: boolean; }): Promise; retrieveByExternalId(externalId: string, opts?: { crossScope?: boolean; }): Promise; update(id: string, data: UpdateMPCClientInput): Promise; list(options?: ListOptions & { includePrimaryContacts?: boolean; includeNonPrimary?: boolean; crossScope?: boolean; }): Promise>; iterate(options?: { filter?: MPCClientFilter; sort?: MPCClientSort; pageSize?: number; crossScope?: boolean; }): AsyncGenerator; count(filter?: MPCClientFilter, options?: { includeNonPrimary?: boolean; crossScope?: boolean; }): Promise; createMany(clients: CreateMPCClientInput[], options?: { atomic?: true; }): Promise>; createMany(clients: CreateMPCClientInput[], options: { atomic: false; }): Promise>; updateMany(updates: { id: string; data: UpdateMPCClientInput; }[], options?: { atomic?: true; }): Promise>; updateMany(updates: { id: string; data: UpdateMPCClientInput; }[], options: { atomic: false; }): Promise>; upsertByExternalId(data: UpsertMPCClientInput): Promise>; upsertManyByExternalId(clients: UpsertMPCClientInput[], options?: { atomic?: true; }): Promise>>; upsertManyByExternalId(clients: UpsertMPCClientInput[], options: { atomic: false; }): Promise>>; linkClient(parentClientId: string, childClientId: string, relationshipType: ClientRelationshipType, metadata?: Record): Promise; unlinkClient(parentClientId: string, childClientId: string, relationshipType: ClientRelationshipType): Promise; listLinkedClients(parentClientId: string, relationshipType?: ClientRelationshipType): Promise; setLinkedClients(parentClientId: string, linkedClients: LinkedClientInput[]): Promise; syncAll(clientId: undefined, data: { client: CreateMPCClientInput; addresses?: SyncItem[]; contactMethods?: SyncItem[]; bankAccounts?: SyncItem[]; documents?: SyncItem[]; linkedClients?: LinkedClientInput[]; }, options?: { replaceMode?: boolean; }): Promise<{ client: MexMPCClient; addresses: SyncResult; contactMethods: SyncResult; bankAccounts: SyncResult; documents: SyncResult; }>; syncAll(clientId: string, data: { client?: UpdateMPCClientInput; addresses?: SyncItem[]; contactMethods?: SyncItem[]; bankAccounts?: SyncItem[]; documents?: SyncItem[]; linkedClients?: LinkedClientInput[]; }, options: { replaceMode: true; }): Promise<{ client: MexMPCClient; addresses: SyncResult; contactMethods: SyncResult; bankAccounts: SyncResult; documents: SyncResult; }>; syncAll(clientId: string, data: { client?: UpdateMPCClientInput; addresses?: SyncItem[]; contactMethods?: SyncItem[]; bankAccounts?: SyncItem[]; documents?: SyncItem[]; linkedClients?: LinkedClientInput[]; }, options?: { replaceMode?: boolean; }): Promise<{ client: MexMPCClient; addresses: SyncResult; contactMethods: SyncResult; bankAccounts: SyncResult; documents: SyncResult; }>; protected transformToNested(data: CreateMPCClientInput): CreateClientInput; protected transformUpdateToNested(data: UpdateMPCClientInput): UpdateClientInput; protected instantiate(data: ClientData): MexMPCClient; /** Materializes a raw payload into a {@link MexMPCClient} (return type narrowed via the `instantiate` override). */ materialize(data: ClientData): MexMPCClient; protected applyScopeToSort(sort?: MPCClientSort): ClientSort | undefined; }