import { z } from 'zod'; import { CredentialType } from '@bubblelab/shared-schemas'; export declare const XeroParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_invoice">; type: z.ZodEnum<["ACCREC", "ACCPAY"]>; contact_id: z.ZodString; line_items: z.ZodArray>; UnitAmount: z.ZodNumber; AccountCode: z.ZodOptional; TaxType: z.ZodOptional; ItemCode: z.ZodOptional; }, "strip", z.ZodTypeAny, { Description: string; Quantity: number; UnitAmount: number; AccountCode?: string | undefined; TaxType?: string | undefined; ItemCode?: string | undefined; }, { Description: string; UnitAmount: number; Quantity?: number | undefined; AccountCode?: string | undefined; TaxType?: string | undefined; ItemCode?: string | undefined; }>, "many">; date: z.ZodOptional; due_date: z.ZodOptional; reference: z.ZodOptional; status: z.ZodDefault>>; currency_code: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "ACCREC" | "ACCPAY"; status: "DRAFT" | "SUBMITTED" | "AUTHORISED"; operation: "create_invoice"; contact_id: string; line_items: { Description: string; Quantity: number; UnitAmount: number; AccountCode?: string | undefined; TaxType?: string | undefined; ItemCode?: string | undefined; }[]; date?: string | undefined; credentials?: Partial> | undefined; due_date?: string | undefined; reference?: string | undefined; currency_code?: string | undefined; }, { type: "ACCREC" | "ACCPAY"; operation: "create_invoice"; contact_id: string; line_items: { Description: string; UnitAmount: number; Quantity?: number | undefined; AccountCode?: string | undefined; TaxType?: string | undefined; ItemCode?: string | undefined; }[]; date?: string | undefined; status?: "DRAFT" | "SUBMITTED" | "AUTHORISED" | undefined; credentials?: Partial> | undefined; due_date?: string | undefined; reference?: string | undefined; currency_code?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_invoice">; invoice_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_invoice"; invoice_id: string; credentials?: Partial> | undefined; }, { operation: "get_invoice"; invoice_id: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_invoices">; status: z.ZodOptional>; page: z.ZodDefault>; where: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_invoices"; page: number; status?: "DRAFT" | "SUBMITTED" | "AUTHORISED" | "PAID" | "VOIDED" | "DELETED" | undefined; credentials?: Partial> | undefined; where?: string | undefined; }, { operation: "list_invoices"; status?: "DRAFT" | "SUBMITTED" | "AUTHORISED" | "PAID" | "VOIDED" | "DELETED" | undefined; credentials?: Partial> | undefined; page?: number | undefined; where?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_contact">; name: z.ZodString; email: z.ZodOptional; first_name: z.ZodOptional; last_name: z.ZodOptional; phone: z.ZodOptional; account_number: z.ZodOptional; tax_number: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_contact"; credentials?: Partial> | undefined; email?: string | undefined; phone?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; account_number?: string | undefined; tax_number?: string | undefined; }, { name: string; operation: "create_contact"; credentials?: Partial> | undefined; email?: string | undefined; phone?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; account_number?: string | undefined; tax_number?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_contact">; contact_id: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_contact"; contact_id: string; credentials?: Partial> | undefined; }, { operation: "get_contact"; contact_id: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_contacts">; page: z.ZodDefault>; where: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_contacts"; page: number; credentials?: Partial> | undefined; where?: string | undefined; }, { operation: "list_contacts"; credentials?: Partial> | undefined; page?: number | undefined; where?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_accounts">; type: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_accounts"; type?: string | undefined; credentials?: Partial> | undefined; }, { operation: "list_accounts"; type?: string | undefined; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_report">; report_type: z.ZodEnum<["BalanceSheet", "ProfitAndLoss", "TrialBalance", "BankSummary", "ExecutiveSummary", "BudgetSummary", "AgedReceivablesByContact", "AgedPayablesByContact"]>; date: z.ZodOptional; from_date: z.ZodOptional; to_date: z.ZodOptional; periods: z.ZodOptional; timeframe: z.ZodOptional>; contact_id: z.ZodOptional; payments_only: z.ZodOptional; tracking_category_id: z.ZodOptional; tracking_option_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_report"; report_type: "BalanceSheet" | "ProfitAndLoss" | "TrialBalance" | "BankSummary" | "ExecutiveSummary" | "BudgetSummary" | "AgedReceivablesByContact" | "AgedPayablesByContact"; date?: string | undefined; credentials?: Partial> | undefined; contact_id?: string | undefined; from_date?: string | undefined; to_date?: string | undefined; periods?: number | undefined; timeframe?: "MONTH" | "QUARTER" | "YEAR" | undefined; payments_only?: boolean | undefined; tracking_category_id?: string | undefined; tracking_option_id?: string | undefined; }, { operation: "get_report"; report_type: "BalanceSheet" | "ProfitAndLoss" | "TrialBalance" | "BankSummary" | "ExecutiveSummary" | "BudgetSummary" | "AgedReceivablesByContact" | "AgedPayablesByContact"; date?: string | undefined; credentials?: Partial> | undefined; contact_id?: string | undefined; from_date?: string | undefined; to_date?: string | undefined; periods?: number | undefined; timeframe?: "MONTH" | "QUARTER" | "YEAR" | undefined; payments_only?: boolean | undefined; tracking_category_id?: string | undefined; tracking_option_id?: string | undefined; }>]>; export declare const XeroResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_invoice">; success: z.ZodBoolean; invoice: z.ZodOptional; Type: z.ZodString; Status: z.ZodString; Contact: z.ZodOptional; }, "strip", z.ZodTypeAny, { ContactID: string; Name?: string | undefined; }, { ContactID: string; Name?: string | undefined; }>>; Date: z.ZodOptional; DueDate: z.ZodOptional; SubTotal: z.ZodOptional; Total: z.ZodOptional; AmountDue: z.ZodOptional; AmountPaid: z.ZodOptional; CurrencyCode: z.ZodOptional; Reference: z.ZodOptional; LineItems: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; }, { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_invoice"; invoice?: { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_invoice"; invoice?: { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_invoice">; success: z.ZodBoolean; invoice: z.ZodOptional; Type: z.ZodString; Status: z.ZodString; Contact: z.ZodOptional; }, "strip", z.ZodTypeAny, { ContactID: string; Name?: string | undefined; }, { ContactID: string; Name?: string | undefined; }>>; Date: z.ZodOptional; DueDate: z.ZodOptional; SubTotal: z.ZodOptional; Total: z.ZodOptional; AmountDue: z.ZodOptional; AmountPaid: z.ZodOptional; CurrencyCode: z.ZodOptional; Reference: z.ZodOptional; LineItems: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; }, { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_invoice"; invoice?: { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_invoice"; invoice?: { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_invoices">; success: z.ZodBoolean; invoices: z.ZodOptional; Type: z.ZodString; Status: z.ZodString; Contact: z.ZodOptional; }, "strip", z.ZodTypeAny, { ContactID: string; Name?: string | undefined; }, { ContactID: string; Name?: string | undefined; }>>; Date: z.ZodOptional; DueDate: z.ZodOptional; SubTotal: z.ZodOptional; Total: z.ZodOptional; AmountDue: z.ZodOptional; AmountPaid: z.ZodOptional; CurrencyCode: z.ZodOptional; Reference: z.ZodOptional; LineItems: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; }, { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_invoices"; invoices?: { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_invoices"; invoices?: { InvoiceID: string; Type: string; Status: string; Date?: string | undefined; InvoiceNumber?: string | undefined; Contact?: { ContactID: string; Name?: string | undefined; } | undefined; DueDate?: string | undefined; SubTotal?: number | undefined; Total?: number | undefined; AmountDue?: number | undefined; AmountPaid?: number | undefined; CurrencyCode?: string | undefined; Reference?: string | undefined; LineItems?: Record[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_contact">; success: z.ZodBoolean; contact: z.ZodOptional; LastName: z.ZodOptional; EmailAddress: z.ZodOptional; AccountNumber: z.ZodOptional; TaxNumber: z.ZodOptional; ContactStatus: z.ZodOptional; Phones: z.ZodOptional, "many">>; Addresses: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; }, { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_contact"; contact?: { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_contact"; contact?: { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_contact">; success: z.ZodBoolean; contact: z.ZodOptional; LastName: z.ZodOptional; EmailAddress: z.ZodOptional; AccountNumber: z.ZodOptional; TaxNumber: z.ZodOptional; ContactStatus: z.ZodOptional; Phones: z.ZodOptional, "many">>; Addresses: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; }, { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_contact"; contact?: { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_contact"; contact?: { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_contacts">; success: z.ZodBoolean; contacts: z.ZodOptional; LastName: z.ZodOptional; EmailAddress: z.ZodOptional; AccountNumber: z.ZodOptional; TaxNumber: z.ZodOptional; ContactStatus: z.ZodOptional; Phones: z.ZodOptional, "many">>; Addresses: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; }, { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_contacts"; contacts?: { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_contacts"; contacts?: { ContactID: string; Name: string; FirstName?: string | undefined; LastName?: string | undefined; EmailAddress?: string | undefined; AccountNumber?: string | undefined; TaxNumber?: string | undefined; ContactStatus?: string | undefined; Phones?: Record[] | undefined; Addresses?: Record[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_accounts">; success: z.ZodBoolean; accounts: z.ZodOptional; Name: z.ZodString; Type: z.ZodString; Status: z.ZodOptional; Description: z.ZodOptional; Class: z.ZodOptional; TaxType: z.ZodOptional; }, "strip", z.ZodTypeAny, { Type: string; Name: string; AccountID: string; Description?: string | undefined; TaxType?: string | undefined; Status?: string | undefined; Code?: string | undefined; Class?: string | undefined; }, { Type: string; Name: string; AccountID: string; Description?: string | undefined; TaxType?: string | undefined; Status?: string | undefined; Code?: string | undefined; Class?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_accounts"; accounts?: { Type: string; Name: string; AccountID: string; Description?: string | undefined; TaxType?: string | undefined; Status?: string | undefined; Code?: string | undefined; Class?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_accounts"; accounts?: { Type: string; Name: string; AccountID: string; Description?: string | undefined; TaxType?: string | undefined; Status?: string | undefined; Code?: string | undefined; Class?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_report">; success: z.ZodBoolean; report: z.ZodOptional; reportTitles: z.ZodOptional>; rows: z.ZodArray; cells: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; accountId?: string | undefined; }, { value: string; accountId?: string | undefined; }>, "many">>; rows: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { rowType: string; title?: string | undefined; rows?: Record[] | undefined; cells?: { value: string; accountId?: string | undefined; }[] | undefined; }, { rowType: string; title?: string | undefined; rows?: Record[] | undefined; cells?: { value: string; accountId?: string | undefined; }[] | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { rows: { rowType: string; title?: string | undefined; rows?: Record[] | undefined; cells?: { value: string; accountId?: string | undefined; }[] | undefined; }[]; reportName: string; reportType: string; reportDate?: string | undefined; reportTitles?: string[] | undefined; }, { rows: { rowType: string; title?: string | undefined; rows?: Record[] | undefined; cells?: { value: string; accountId?: string | undefined; }[] | undefined; }[]; reportName: string; reportType: string; reportDate?: string | undefined; reportTitles?: string[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_report"; report?: { rows: { rowType: string; title?: string | undefined; rows?: Record[] | undefined; cells?: { value: string; accountId?: string | undefined; }[] | undefined; }[]; reportName: string; reportType: string; reportDate?: string | undefined; reportTitles?: string[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_report"; report?: { rows: { rowType: string; title?: string | undefined; rows?: Record[] | undefined; cells?: { value: string; accountId?: string | undefined; }[] | undefined; }[]; reportName: string; reportType: string; reportDate?: string | undefined; reportTitles?: string[] | undefined; } | undefined; }>]>; export type XeroParams = z.output; export type XeroParamsInput = z.input; export type XeroResult = z.output; //# sourceMappingURL=xero.schema.d.ts.map