@spaceinvoices/js-sdk 14.15.0 → 14.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/model/transactionTypeCheckResponse.d.cts +1 -1
- package/dist/generated/model/transactionTypeCheckResponse.d.ts +1 -1
- package/dist/generated/model/updateItemBody.d.cts +6 -5
- package/dist/generated/model/updateItemBody.d.ts +6 -5
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -193,7 +193,7 @@ Not applicable for separator items.`),metadata:e.record(e.string(),e.string()).r
|
|
|
193
193
|
When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
|
|
194
194
|
Defaults to true (best-effort). When omitted, behaves like true but won't fail the request if persistence fails.`),sku:e.string().max(yJ0).nullish().describe("Stock keeping unit used to link this line to a catalog item. Case-insensitive and trimmed; blank means no SKU.\nWhen `item_id` is omitted and `save_item` is not false, the line is linked to the catalog item with this SKU. Without one, it matches by name among items that have no SKU, or a new catalog item is created with this SKU.\nLinking does not copy catalog values onto the line, so use `item_id` to prefill. On document updates, only an existing item with this SKU is linked.\nNot stored on the line. Ignored when `item_id` is provided and for separator items."),financial_category_key:e.string().max(OJ0).nullish().describe("Key of the reporting financial category to assign to this line item (for example `office-supplies`), as an alternative to `financial_category_id`. Provide either, not both; a null value counts as not provided.")})).min(1).describe("Line items for the invoice. At least one item is required."),linked_documents:e.array(e.string().min(1).max(vJ0)).nullish().describe("Link this invoice to source documents. Advance invoices must use the same currency, be issued, be fully paid, and have a remaining balance; their available amount is applied automatically. Creates document relations automatically."),category_assignments:e.array(e.object({item_index:e.number().min(SJ0).nullish().describe("Zero-based index of the target line item in the request `items` array. Omit or null on a single entry to apply the assignment to all non-separator items."),financial_category_id:e.string().max(hJ0).nullish().describe("Reporting financial category to assign to the targeted document line. Use null to explicitly leave the targeted item or full document uncategorized."),financial_category_key:e.string().max(bJ0).nullish().describe("Key of the financial category to assign (for example `office-supplies`), as an alternative to `financial_category_id`. Provide either, not both; a null value counts as not provided. Use `financial_category_id: null` to explicitly leave the targeted item or full document uncategorized.")})).nullish().describe("Optional document line category assignments. Omit or send null to derive assignments from saved item defaults. Send an empty array to explicitly skip categorization. A single entry without `item_index` applies to all non-separator items."),fina:e.union([e.object({business_premise_name:e.string().min(1).max(zJ0).regex(fJ0).nullish().describe("CIS business premise name (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),electronic_device_name:e.string().min(1).max(BJ0).regex(TJ0).nullish().describe("CIS electronic device name (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e.string().min(IJ0).max(EJ0).nullish().describe("Operator OIB (11 digits). If not provided and using user authentication, defaults to the user's FINA settings. Otherwise falls back to entity settings."),operator_label:e.string().nullish().describe("Operator label/name. If not provided and using user authentication, defaults to the user's FINA settings. Otherwise falls back to entity settings."),payment_type:e.union([e.literal("cash"),e.literal("card"),e.literal("credit_card"),e.literal("debit_card"),e.literal("online"),e.literal("bank_transfer"),e.literal("paypal"),e.literal("crypto"),e.literal("coupon"),e.literal("other"),e.literal(null)]).nullish().describe("Expected payment method for CIS (NacinPlac field). Optional when document payments are provided because the API derives it from the document payments; when multiple payments are present, FINA uses 'other'.")}),e.null()]).optional(),ticketbai:e.union([e.object({lroe_income_epigraphs:e.array(e.string().regex(DJ0)).min(1).max(RJ0).nullish().describe("Explicit IAE activity epigraphs for this invoice. Required for Bizkaia model 140; unsupported for model 240."),simplified:e.boolean().nullish().describe("Issue a simplified invoice only when legally eligible. Defaults to false."),description:e.string().min(1).max(_J0).nullish(),tax_treatment:e.union([e.literal("taxable"),e.literal("exempt"),e.literal("non_subject"),e.literal("reverse_charge"),e.literal(null)]).nullish().describe("Treatment for the whole invoice. Required for zero-rate or untaxed invoices; positive VAT defaults to taxable. Mixed treatments require separate invoices in the pilot."),vat_regime:e.union([e.literal("01"),e.literal("02"),e.literal(null)]).nullish().describe("01 general regime (default); 02 export operations. Other special regimes are outside the pilot."),exemption_cause:e.union([e.literal("E1"),e.literal("E2"),e.literal("E3"),e.literal("E4"),e.literal("E5"),e.literal("E6"),e.literal(null)]).nullish(),non_subject_cause:e.union([e.literal("OT"),e.literal("RL"),e.literal("VT"),e.literal("IE"),e.literal(null)]).nullish(),recipient_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal(null)]).nullish().describe("Foreign recipient identification type. Required for a non-Spanish recipient."),operation_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("Required when the foreign recipient needs an operation-level breakdown."),rectification_code:e.union([e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("Required for credit notes. The pilot uses difference rectification (I) and the linked source invoices.")}),e.null()]).optional(),verifactu:e.union([e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(NJ0).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(MJ0).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex(UJ0).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(PJ0).nullish().describe("Explicit classifications for exceptional tax rows. Ordinary domestic positive-rate IVA defaults to 01/01/S1. Zero, exempt, reverse-charge and non-domestic rows require classification.")}).describe("Fiscal classifications supplied before issue, or as an append-only fiscal metadata correction."),e.null()]).optional(),e_invoicing:e.union([e.object({send_enabled:e.boolean().nullish().describe("Whether to send this document electronically after creation. True explicitly opts in even when entity auto-send is disabled; false opts out unless sending is legally required. When omitted, the entity auto-send setting applies.")}).describe("Per-document Peppol sending controls for invoices and credit notes."),e.null()]).optional(),xrechnung:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Override whether this document should be validated for German XRechnung/ZUGFeRD on this request. Entity-level XRechnung/ZUGFeRD settings enable soft validation by default; false can suppress that optional validation for this request unless validation_required is true."),validation_required:e.boolean().nullish().describe("Request strict German validation for this document. Final document creation/finalization fails if current validation is invalid; draft creation stores validation status without blocking. Export/download always re-validates the current document when the stored result is not current, and fails with a 422 if that validation is invalid, regardless of this flag.")}).describe("Optional per-document German validation controls accepted on invoice and credit-note create/preview payloads as xrechnung or zugferd. This input does not contain XRechnung buyer reference or Leitweg-ID; send that value as customer.e_invoicing.buyer_reference."),e.null()]).optional(),zugferd:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Override whether this document should be validated for German XRechnung/ZUGFeRD on this request. Entity-level XRechnung/ZUGFeRD settings enable soft validation by default; false can suppress that optional validation for this request unless validation_required is true."),validation_required:e.boolean().nullish().describe("Request strict German validation for this document. Final document creation/finalization fails if current validation is invalid; draft creation stores validation status without blocking. Export/download always re-validates the current document when the stored result is not current, and fails with a 422 if that validation is invalid, regardless of this flag.")}).describe("Optional per-document German validation controls accepted on invoice and credit-note create/preview payloads as xrechnung or zugferd. This input does not contain XRechnung buyer reference or Leitweg-ID; send that value as customer.e_invoicing.buyer_reference."),e.null()]).optional(),ujp:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Enable UJP package validation for this document. true = validate, false = skip, null/undefined = use default."),validation_required:e.boolean().nullish().describe("Require UJP validation to pass before final document creation. Draft creation records validation status but does not block.")}),e.null()]).optional(),tax_rules:e.union([e.object({slovenia:e.union([e.object({article_76a:e.boolean().nullish().describe("Apply Slovenian domestic reverse charge under Article 76.a ZDDV-1. Null is treated as omitted.")}),e.null()]).optional()}),e.null()]).optional(),expected_total_with_tax:e.number().gt(CJ0).nullish().describe("Expected total with tax in the currency's major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is \xB11.00 in the same major unit. Useful when importing invoices from external systems with different rounding rules."),force_linked_documents:e.boolean().nullish().describe("Force linking an estimate or delivery note that is already linked to another invoice. This does not bypass advance-invoice eligibility or available-balance validation. Defaults to false."),id:e.string().nullish(),furs:e.union([e.object({business_premise_name:e.string().min(1).nullish().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e.string().min(1).nullish().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e.string().nullish().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e.string().nullish().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:e.boolean().nullish().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law."),payment_amount:e.number().min(wJ0).nullish().describe("Optional FURS PaymentAmount override in the document currency. Cannot be supplied with skip=true; provide payment_amount when subsequently fiscalizing instead. When omitted, PaymentAmount equals InvoiceAmount. When provided, FURS uses this value for PaymentAmount (converted to EUR the same way as InvoiceAmount) while InvoiceAmount and taxes stay based on the full invoice total. Do not derive this from payments, total_paid, or total_due. Send a non-negative logical amount from 0 through total_with_tax; credit-note sign is applied server-side. Use this for cases such as a \u20AC30 ZZZS copayment on a \u20AC100 invoice.")}),e.null()]).optional(),creation_source:e.union([e.literal("custom"),e.literal(null)]).nullish(),total:e.number().nullish(),total_with_tax:e.number().nullish(),total_discount:e.number().nullish(),taxes:e.array(e.object({rate:e.number().nullable(),tax_id:e.string().nullish(),base:e.number(),amount:e.number(),base_converted:e.number().nullish(),amount_converted:e.number().nullish(),reverse_charge:e.boolean().nullish()})).nullish()})]),AJ0=new RegExp("^[a-z]{3,4}_[0-9a-f]{24}$"),sxS=e.object({id:e.stringFormat("resource-id",AJ0).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),oxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ixS=e.object({reason:e.string().min(1).optional().describe("Technical reason for voiding. Required for TicketBAI: 1\u2013500 characters after trimming."),has_original_document:e.boolean().nullish().describe("Whether the original physical/manual PT document is still available.")}),FJ0=36,kJ0=100,jJ0=255,HJ0=2,LJ0=500,GJ0=500,VJ0=20,KJ0=100,ZJ0="FR",qJ0=2,WJ0=2,YJ0="iban",$J0=new RegExp("^[A-Za-z0-9]{7}$"),QJ0=new RegExp("^(?:[0-9]{11}|[A-Z0-9]{16})$"),JJ0=new RegExp("^RF\\d{2}$"),XJ0="iban",eX0=20,tX0=128,nX0=new RegExp("^[A-Za-z0-9:]+$"),sX0=50,oX0=2,iX0=2,aX0=new RegExp("^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"),rX0=30,lX0=100,dX0=2e3,uX0=2e3,cX0=2e3,pX0=2e3,mX0=2e3,xX0=2e3,gX0=2e3,yX0=2e3,OX0=2e3,vX0=2e3,SX0=2e3,hX0=2e3,bX0=2e3,zX0=2e3,fX0=2e3,BX0=2e3,TX0=2e3,IX0=2e3,EX0=2e3,DX0=500,RX0=500,_X0=500,NX0=500,MX0=500,UX0=500,PX0=500,CX0=500,wX0=500,AX0=500,FX0=500,kX0=500,jX0=500,HX0=500,LX0=500,GX0=500,VX0=500,KX0=500,ZX0=500,qX0=2e3,WX0=2e3,YX0=2e3,$X0=2e3,QX0=2e3,JX0=2e3,XX0=2e3,eey=2e3,tey=2e3,ney=2e3,sey=2e3,oey=2e3,iey=2e3,aey=2e3,rey=2e3,ley=2e3,dey=2e3,uey=2e3,cey=2e3,pey=500,mey=500,xey=500,gey=500,yey=500,Oey=500,vey=500,Sey=500,hey=500,bey=500,zey=500,fey=500,Bey=500,Tey=500,Iey=500,Eey=500,Dey=500,Rey=500,_ey=500,Ney=2e3,Mey=2e3,Uey=2e3,Pey=2e3,Cey=2e3,wey=2e3,Aey=2e3,Fey=2e3,key=2e3,jey=2e3,Hey=2e3,Ley=2e3,Gey=2e3,Vey=2e3,Key=2e3,Zey=2e3,qey=2e3,Wey=2e3,Yey=2e3,$ey=500,Qey=500,Jey=500,Xey=500,ety=500,tty=500,nty=500,sty=500,oty=500,ity=500,aty=500,rty=500,lty=500,dty=500,uty=500,cty=500,pty=500,mty=500,xty=500,gty=2e3,yty=2e3,Oty=2e3,vty=2e3,Sty=2e3,hty=2e3,bty=2e3,zty=2e3,fty=2e3,Bty=2e3,Tty=2e3,Ity=2e3,Ety=2e3,Dty=2e3,Rty=2e3,_ty=2e3,Nty=2e3,Mty=2e3,Uty=2e3,Pty=2e3,Cty=2e3,wty=2e3,Aty=2e3,Fty=2e3,kty=2e3,jty=2e3,Hty=2e3,Lty=2e3,Gty=2e3,Vty=2e3,Kty=2e3,Zty=2e3,qty=2e3,Wty=2e3,Yty=2e3,$ty=2e3,Qty=2e3,Jty=2e3,Xty=500,eny=500,tny=500,nny=500,sny=500,ony=500,iny=500,any=500,rny=500,lny=500,dny=500,uny=500,cny=500,pny=500,mny=500,xny=500,gny=500,yny=500,Ony=500,vny=1e3,Sny=1e3,hny=1e3,bny=1e3,zny=1e3,fny=1e3,Bny=1e3,Tny=1e3,Iny=1e3,Eny=1e3,Dny=1e3,Rny=1e3,_ny=1e3,Nny=1e3,Mny=1e3,Uny=1e3,Pny=1e3,Cny=1e3,wny=1e3,Any=500,Fny=500,kny=500,jny=500,Hny=500,Lny=500,Gny=500,Vny=500,Kny=500,Zny=500,qny=500,Wny=500,Yny=500,$ny=500,Qny=500,Jny=500,Xny=500,esy=500,tsy=500,nsy=2e3,ssy=2e3,osy=2e3,isy=2e3,asy=2e3,rsy=2e3,lsy=2e3,dsy=2e3,usy=2e3,csy=2e3,psy=2e3,msy=2e3,xsy=2e3,gsy=2e3,ysy=2e3,Osy=2e3,vsy=2e3,Ssy=2e3,hsy=2e3,bsy=500,zsy=500,fsy=500,Bsy=500,Tsy=500,Isy=500,Esy=500,Dsy=500,Rsy=500,_sy=500,Nsy=500,Msy=500,Usy=500,Psy=500,Csy=500,wsy=500,Asy=500,Fsy=500,ksy=500,jsy=2e3,Hsy=2e3,Lsy=2e3,Gsy=2e3,Vsy=2e3,Ksy=2e3,Zsy=2e3,qsy=2e3,Wsy=2e3,Ysy=2e3,$sy=2e3,Qsy=2e3,Jsy=2e3,Xsy=2e3,eoy=2e3,toy=2e3,noy=2e3,soy=2e3,ooy=2e3,ioy=500,aoy=500,roy=500,loy=500,doy=500,uoy=500,coy=500,poy=500,moy=500,xoy=500,goy=500,yoy=500,Ooy=500,voy=500,Soy=500,hoy=500,boy=500,zoy=500,foy=500,Boy=2e3,Toy=2e3,Ioy=2e3,Eoy=2e3,Doy=2e3,Roy=2e3,_oy=2e3,Noy=2e3,Moy=2e3,Uoy=2e3,Poy=2e3,Coy=2e3,woy=2e3,Aoy=2e3,Foy=2e3,koy=2e3,joy=2e3,Hoy=2e3,Loy=2e3,Goy=500,Voy=500,Koy=500,Zoy=500,qoy=500,Woy=500,Yoy=500,$oy=500,Qoy=500,Joy=500,Xoy=500,eiy=500,tiy=500,niy=500,siy=500,oiy=500,iiy=500,aiy=500,riy=500,liy=2e3,diy=2e3,uiy=2e3,ciy=2e3,piy=2e3,miy=2e3,xiy=2e3,giy=2e3,yiy=2e3,Oiy=2e3,viy=2e3,Siy=2e3,hiy=2e3,biy=2e3,ziy=2e3,fiy=2e3,Biy=2e3,Tiy=2e3,Iiy=2e3,Eiy=500,Diy=500,Riy=500,_iy=500,Niy=500,Miy=500,Uiy=500,Piy=500,Ciy=500,wiy=500,Aiy=500,Fiy=500,kiy=500,jiy=500,Hiy=500,Liy=500,Giy=500,Viy=500,Kiy=500,Ziy=2e3,qiy=2e3,Wiy=2e3,Yiy=2e3,$iy=2e3,Qiy=2e3,Jiy=2e3,Xiy=2e3,eay=2e3,tay=2e3,nay=2e3,say=2e3,oay=2e3,iay=2e3,aay=2e3,ray=2e3,lay=2e3,day=2e3,uay=2e3,cay=500,pay=500,may=500,xay=500,gay=500,yay=500,Oay=500,vay=500,Say=500,hay=500,bay=500,zay=500,fay=500,Bay=500,Tay=500,Iay=500,Eay=500,Day=500,Ray=500,_ay=2e3,Nay=2e3,May=2e3,Uay=2e3,Pay=2e3,Cay=2e3,way=2e3,Aay=2e3,Fay=2e3,kay=2e3,jay=2e3,Hay=2e3,Lay=2e3,Gay=2e3,Vay=2e3,Kay=2e3,Zay=2e3,qay=2e3,Way=2e3,Yay=500,$ay=500,Qay=500,Jay=500,Xay=500,ery=500,nry=500,sry=500,ory=500,iry=500,ary=500,rry=500,lry=500,dry=500,ury=500,cry=500,pry=500,mry=500,xry=500,gry=2e3,yry=2e3,Ory=2e3,vry=2e3,Sry=2e3,hry=2e3,bry=2e3,zry=2e3,fry=2e3,Bry=2e3,Try=2e3,Iry=2e3,Ery=2e3,Dry=2e3,Rry=2e3,_ry=2e3,Nry=2e3,Mry=2e3,Ury=2e3,Pry=2e3,Cry=2e3,wry=2e3,Ary=2e3,Fry=2e3,kry=2e3,jry=2e3,Hry=2e3,Lry=2e3,Gry=2e3,Vry=2e3,Kry=2e3,Zry=2e3,qry=2e3,Wry=2e3,Yry=2e3,$ry=2e3,Qry=2e3,Jry=2e3,Xry=2e3,ely=2e3,tly=2e3,nly=2e3,sly=2e3,oly=2e3,ily=2e3,aly=2e3,rly=2e3,lly=2e3,dly=2e3,uly=2e3,cly=2e3,ply=2e3,mly=2e3,xly=2e3,gly=2e3,yly=2e3,Oly=2e3,vly=2e3,Sly=2e3,hly=2e3,bly=2e3,zly=2e3,fly=2e3,Bly=2e3,Tly=2e3,Ily=2e3,Ely=2e3,Dly=2e3,Rly=2e3,_ly=2e3,Nly=2e3,Mly=2e3,Uly=2e3,Ply=2e3,Cly=2e3,wly=2e3,Aly=2e3,Fly=2e3,kly=2e3,jly=2e3,Hly=2e3,Lly=2e3,Gly=2e3,Vly=2e3,Kly=2e3,Zly=2e3,qly=2e3,Wly=2e3,Yly=2e3,$ly=2e3,Qly=2e3,Jly=2e3,Xly=2e3,edy=2e3,tdy=2e3,ndy=2e3,sdy=2e3,ody=2e3,idy=2e3,ady=2e3,rdy=2e3,ldy=2e3,ddy=2e3,udy=2e3,cdy=2e3,pdy=2e3,mdy=2e3,xdy=2e3,gdy=2e3,ydy=2e3,Ody=2e3,vdy=2e3,Sdy=2e3,hdy=2e3,bdy=2e3,zdy=2e3,fdy=2e3,Bdy=2e3,Tdy=2e3,Idy=2e3,Edy=2e3,Ddy=2e3,Rdy=2e3,_dy=2e3,Ndy=2e3,Mdy=2e3,Udy=2e3,Pdy=2e3,Cdy=2e3,wdy=2e3,Ady=2e3,Fdy=2e3,kdy=2e3,jdy=2e3,Hdy=2e3,Ldy=2e3,Gdy=2e3,Vdy=2e3,Kdy=2e3,Zdy=2e3,qdy=2e3,Wdy=2e3,Ydy=2e3,$dy=2e3,Qdy=2e3,Jdy=2e3,Xdy=2e3,euy=2e3,tuy=2e3,nuy=2e3,suy=2e3,ouy=2e3,iuy=2e3,auy=2e3,ruy=2e3,luy=2e3,duy=2e3,uuy=2e3,cuy=2e3,puy=2e3,muy=2e3,xuy=2e3,guy=2e3,yuy=2e3,Ouy=2e3,vuy=2e3,Suy=2e3,huy=2e3,buy=2e3,zuy=2e3,fuy=2e3,Buy=2e3,Tuy=2e3,Iuy=2e3,Euy=2e3,Duy=2e3,Ruy=2e3,_uy=2e3,Nuy=2e3,Muy=2e3,Uuy=2e3,Puy=2e3,Cuy=2e3,wuy=2e3,Auy=2e3,Fuy=2e3,kuy=2e3,juy=2e3,Huy=2e3,Luy=2e3,Guy=500,Vuy="iban",Kuy=36,Zuy=255,quy=2,Wuy=500,Yuy=500,$uy=20,Quy=100,Juy="FR",Xuy=2,ecy=2,tcy="iban",ncy=new RegExp("^[A-Za-z0-9]{7}$"),scy=new RegExp("^(?:[0-9]{11}|[A-Z0-9]{16})$"),ocy=new RegExp("^RF\\d{2}$"),icy="iban",acy=500,rcy=2e3,lcy=2e3,dcy=2e3,ucy=2e3,ccy=2e3,pcy=2e3,mcy=2e3,xcy=2e3,gcy=2e3,ycy=2e3,Ocy=2e3,vcy=2e3,Scy=2e3,hcy=2e3,bcy=2e3,zcy=2e3,fcy=2e3,Bcy=2e3,Tcy=2e3,Icy=500,Ecy=500,Dcy=500,Rcy=500,_cy=500,Ncy=500,Mcy=500,Ucy=500,Pcy=500,Ccy=500,wcy=500,Acy=500,Fcy=500,kcy=500,jcy=500,Hcy=500,Lcy=500,Gcy=500,Vcy=500,Kcy=2e3,Zcy=2e3,qcy=2e3,Wcy=2e3,Ycy=2e3,$cy=2e3,Qcy=2e3,Jcy=2e3,Xcy=2e3,epy=2e3,tpy=2e3,npy=2e3,spy=2e3,opy=2e3,ipy=2e3,apy=2e3,rpy=2e3,lpy=2e3,dpy=2e3,upy=500,cpy=500,ppy=500,mpy=500,xpy=500,gpy=500,ypy=500,Opy=500,vpy=500,Spy=500,hpy=500,bpy=500,zpy=500,fpy=500,Bpy=500,Tpy=500,Ipy=500,Epy=500,Dpy=500,Rpy=1e3,_py=1e3,Npy=1e3,Mpy=1e3,Upy=1e3,Ppy=1e3,Cpy=1e3,wpy=1e3,Apy=1e3,Fpy=1e3,kpy=1e3,jpy=1e3,Hpy=1e3,Lpy=1e3,Gpy=1e3,Vpy=1e3,Kpy=1e3,Zpy=1e3,qpy=1e3,Wpy=10,Ypy=36,$py=-2147483648,Qpy=2147483647,Jpy=100,Xpy=0,emy=3,tmy=3,nmy=0,smy=-140737488355328,omy=0x7fffffffffff,imy=-140737488355328,amy=0x7fffffffffff,rmy=-140737488355328,lmy=0x7fffffffffff,dmy=-140737488355328,umy=0x7fffffffffff,cmy=500,pmy=0,mmy=new RegExp("^\\d{2}$"),xmy=12,gmy=0,ymy=0,Omy=0,vmy=new RegExp("^\\d{1,7}$"),Smy=10,hmy=250,bmy=0,zmy=100,fmy=1e-4,Bmy=0,Tmy=3650,Imy=0,Emy=4,Dmy=0,Rmy=0,_my=new RegExp("^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z?)?$"),Nmy=new RegExp("^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z?)?$"),Mmy=36,Umy=500,Pmy=8,Cmy=new RegExp("^VATEX-[A-Z0-9-]{2,24}$"),wmy=500,Amy=100,Fmy=200,kmy=200,jmy=0,Hmy=100,Lmy=2,Gmy=2,Vmy=0,Kmy="percent",Zmy=5,qmy=-140737488355328,Wmy=0x7fffffffffff,Ymy=-140737488355328,$my=0x7fffffffffff,Qmy=36,Jmy=36,Xmy=36,exy=36,txy=36,nxy=500,sxy=500,oxy=500,ixy=500,axy=500,rxy=500,lxy=500,dxy=500,uxy=500,cxy=500,pxy=500,mxy=500,xxy=500,gxy=500,yxy=500,Oxy=500,vxy=500,Sxy=500,hxy=500,bxy=2e3,zxy=2e3,fxy=2e3,Bxy=2e3,Txy=2e3,Ixy=2e3,Exy=2e3,Dxy=2e3,Rxy=2e3,_xy=2e3,Nxy=2e3,Mxy=2e3,Uxy=2e3,Pxy=2e3,Cxy=2e3,wxy=2e3,Axy=2e3,Fxy=2e3,kxy=2e3,jxy=36,Hxy=36,Lxy=36,Gxy=36,Vxy=36,Kxy=36,Zxy=10,qxy=-140737488355328,Wxy=0x7fffffffffff,Yxy=100,$xy=100,Qxy=500,Jxy=36,Xxy=36,egy=100,tgy=36,ngy=100,sgy=36,ogy=100,igy=36,agy=255,rgy=new RegExp("^\\d{4}-\\d{2}-\\d{2}$"),lgy=-140737488355328,dgy=0x7fffffffffff,ugy=36,cgy=255,pgy=new RegExp("^\\d{4}-\\d{2}-\\d{2}$"),mgy=-140737488355328,xgy=0x7fffffffffff,axS=e.object({id:e.string().max(FJ0),number:e.string().max(kJ0),is_draft:e.boolean().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e.iso.datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:e.object({name:e.string().nullish(),unit_name:e.string().nullish().describe("Deprecated compatibility field. This value is no longer used for business-unit rendering; use `business_unit.name` on the document instead."),email:e.string().max(jJ0).nullish(),address:e.string().nullish(),address_2:e.string().nullish(),post_code:e.string().nullish(),city:e.string().nullish(),state:e.string().nullish(),country:e.string().nullish(),country_code:e.string().max(HJ0).nullish(),tax_number:e.string().nullish(),tax_number_2:e.string().nullish(),company_number:e.string().nullish(),phone:e.string().nullish(),peppol_id:e.string().nullish(),peppol_scheme_id:e.string().nullish(),e_invoicing:e.union([e.object({buyer_reference:e.string().nullish().describe("Canonical EN 16931 BT-10 buyer reference stored on the document customer snapshot. For German public-sector recipients, enter the Leitweg-ID here. For German B2B recipients this is optional unless the buyer requires it. Do not send a separate leitweg_id, routing_id, or top-level buyer_reference field.")}).describe("Customer e-invoicing data copied into the document customer snapshot. These fields are buyer/customer document data, not German validation state."),e.null()]).optional(),delivery_address:e.union([e.object({address:e.string().min(1).max(LJ0),address_2:e.string().max(GJ0).nullish(),post_code:e.string().min(1).max(VJ0),city:e.string().min(1).max(KJ0),country_code:e.string().min(qJ0).max(WJ0).nullish().default(ZJ0)}).describe("Physical delivery address when it differs from the buyer's billing address. Required by French law when applicable."),e.null()]).optional().describe("Physical delivery address for this document when it differs from the customer's billing address. It is stored only on the document snapshot and is not saved to the customer record."),bank_accounts:e.array(e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(YJ0).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)"),is_default:e.boolean().nullish().describe("Whether this is the default account for new invoices")})).nullish(),is_end_consumer:e.boolean().nullish(),is_tax_subject:e.boolean().nullish().describe("Whether the customer is VAT identified. Stored in the document snapshot and used by country-specific tax reports; a country code alone does not imply VAT identification."),ujp:e.union([e.object({receiver_name:e.string().min(1).nullish().describe("UJP envelope recipient name. If omitted, package generation falls back to the document customer name."),receiver_identifier:e.string().min(1).nullish().describe("Optional recipient tax number or identifier override for the UJP envelope. If omitted, package generation falls back to the document customer tax number."),receiver_agent:e.string().min(1).nullish().describe("Recipient BIC for the UJP envelope. Public budget users normally use UJPLSI2DICL."),receiver_mailbox:e.string().min(1).nullish().describe("Recipient IBAN/TRR mailbox for the UJP envelope.")}).describe("Optional Slovenian UJP recipient routing data stored on customers and copied into document customer snapshots."),e.null()]).optional(),sdi:e.union([e.object({recipient_code:e.string().regex($J0).nullish().describe("Italian SdI recipient code for buyer routing. When neither a code nor PEC is supplied, domestic invoices use 0000000 and the seller must provide the buyer a courtesy copy and availability notice."),pec:e.email().nullish().describe("Italian certified email address for buyer routing. When provided without an SdI recipient code, FatturaPA uses `CodiceDestinatario = 0000000` plus `PECDestinatario`."),fiscal_code:e.string().regex(QJ0).nullish().describe("Buyer's Italian codice fiscale, independent of their VAT number. For a domestic consumer, legacy tax_number remains a fallback fiscal-code input. Required for VAT-group participants where applicable."),fiscal_regime:e.string().regex(JJ0).nullish().describe("Issuer-only fiscal regime snapshot, captured from settings.tax_rules.italy at issuance. Ignored for buyer routing.")}),e.null()]).optional(),bank_account:e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(XJ0).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)")}).nullish(),crypto_wallet:e.union([e.object({code:e.enum(["BTC","ETH","SOL","USDC","USDT"]).describe("Crypto asset code this wallet receives."),address:e.string().min(eX0).max(tX0).regex(nX0).describe("Wallet address for this asset."),network:e.string().max(sX0).nullish().describe("Free-text network label printed alongside the wallet address, e.g. 'Ethereum', 'Solana', 'Tron'.")}),e.null()]).optional()}).describe("Document issuer (entity) information"),business_unit_id:e.string().nullish().describe("Selected business-unit ID used to derive document presentation and defaults."),business_unit:e.union([e.object({id:e.string(),name:e.string(),deleted_at:e.iso.datetime({}).nullish(),address:e.string().nullish(),address_2:e.string().nullish(),post_code:e.string().nullish(),city:e.string().nullish(),state:e.string().nullish(),country:e.string().nullish(),country_code:e.string().min(oX0).max(iX0).nullish(),email:e.email().nullish(),phone:e.string().nullish(),website:e.url().nullish(),settings:e.object({pdf_template:e.union([e.literal("modern"),e.literal("classic"),e.literal("condensed"),e.literal("minimal"),e.literal("fashion"),e.literal("timeless_modern_full_data"),e.literal(null)]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),primary_color:e.string().regex(aX0).nullish(),logo_scale_percent:e.number().min(rX0).max(lX0).nullish().describe("Scale the PDF logo size as a percentage of the template default size. 100 keeps the original size."),email_defaults:e.object({invoice_subject:e.string().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e.string().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),estimate_subject:e.string().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e.string().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),credit_note_subject:e.string().nullish().describe("Default subject line for credit note emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),credit_note_body:e.string().nullish().describe("Default body text for credit note emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),advance_invoice_subject:e.string().nullish().describe("Default subject line for advance invoice emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),advance_invoice_body:e.string().nullish().describe("Default body text for advance invoice emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),delivery_note_subject:e.string().nullish().describe("Default subject line for delivery note emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),delivery_note_body:e.string().nullish().describe("Default body text for delivery note emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),purchase_order_subject:e.string().nullish().describe("Default subject line for purchase order emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),purchase_order_body:e.string().nullish().describe("Default body text for purchase order emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}")}).nullish(),translations:e.union([e.object({default_invoice_note:e.object({"en-US":e.string().max(dX0).optional(),"de-DE":e.string().max(uX0).optional(),"it-IT":e.string().max(cX0).optional(),"fr-FR":e.string().max(pX0).optional(),"es-ES":e.string().max(mX0).optional(),"sl-SI":e.string().max(xX0).optional(),"pt-PT":e.string().max(gX0).optional(),"nl-NL":e.string().max(yX0).optional(),"pl-PL":e.string().max(OX0).optional(),"hr-HR":e.string().max(vX0).optional(),"sv-SE":e.string().max(SX0).optional(),"fi-FI":e.string().max(hX0).optional(),"et-EE":e.string().max(bX0).optional(),"bg-BG":e.string().max(zX0).optional(),"cs-CZ":e.string().max(fX0).optional(),"sk-SK":e.string().max(BX0).optional(),"nb-NO":e.string().max(TX0).optional(),"is-IS":e.string().max(IX0).optional(),"hu-HU":e.string().max(EX0).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_invoice_payment_terms:e.object({"en-US":e.string().max(DX0).optional(),"de-DE":e.string().max(RX0).optional(),"it-IT":e.string().max(_X0).optional(),"fr-FR":e.string().max(NX0).optional(),"es-ES":e.string().max(MX0).optional(),"sl-SI":e.string().max(UX0).optional(),"pt-PT":e.string().max(PX0).optional(),"nl-NL":e.string().max(CX0).optional(),"pl-PL":e.string().max(wX0).optional(),"hr-HR":e.string().max(AX0).optional(),"sv-SE":e.string().max(FX0).optional(),"fi-FI":e.string().max(kX0).optional(),"et-EE":e.string().max(jX0).optional(),"bg-BG":e.string().max(HX0).optional(),"cs-CZ":e.string().max(LX0).optional(),"sk-SK":e.string().max(GX0).optional(),"nb-NO":e.string().max(VX0).optional(),"is-IS":e.string().max(KX0).optional(),"hu-HU":e.string().max(ZX0).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_estimate_note:e.object({"en-US":e.string().max(qX0).optional(),"de-DE":e.string().max(WX0).optional(),"it-IT":e.string().max(YX0).optional(),"fr-FR":e.string().max($X0).optional(),"es-ES":e.string().max(QX0).optional(),"sl-SI":e.string().max(JX0).optional(),"pt-PT":e.string().max(XX0).optional(),"nl-NL":e.string().max(eey).optional(),"pl-PL":e.string().max(tey).optional(),"hr-HR":e.string().max(ney).optional(),"sv-SE":e.string().max(sey).optional(),"fi-FI":e.string().max(oey).optional(),"et-EE":e.string().max(iey).optional(),"bg-BG":e.string().max(aey).optional(),"cs-CZ":e.string().max(rey).optional(),"sk-SK":e.string().max(ley).optional(),"nb-NO":e.string().max(dey).optional(),"is-IS":e.string().max(uey).optional(),"hu-HU":e.string().max(cey).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_estimate_payment_terms:e.object({"en-US":e.string().max(pey).optional(),"de-DE":e.string().max(mey).optional(),"it-IT":e.string().max(xey).optional(),"fr-FR":e.string().max(gey).optional(),"es-ES":e.string().max(yey).optional(),"sl-SI":e.string().max(Oey).optional(),"pt-PT":e.string().max(vey).optional(),"nl-NL":e.string().max(Sey).optional(),"pl-PL":e.string().max(hey).optional(),"hr-HR":e.string().max(bey).optional(),"sv-SE":e.string().max(zey).optional(),"fi-FI":e.string().max(fey).optional(),"et-EE":e.string().max(Bey).optional(),"bg-BG":e.string().max(Tey).optional(),"cs-CZ":e.string().max(Iey).optional(),"sk-SK":e.string().max(Eey).optional(),"nb-NO":e.string().max(Dey).optional(),"is-IS":e.string().max(Rey).optional(),"hu-HU":e.string().max(_ey).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_credit_note_note:e.object({"en-US":e.string().max(Ney).optional(),"de-DE":e.string().max(Mey).optional(),"it-IT":e.string().max(Uey).optional(),"fr-FR":e.string().max(Pey).optional(),"es-ES":e.string().max(Cey).optional(),"sl-SI":e.string().max(wey).optional(),"pt-PT":e.string().max(Aey).optional(),"nl-NL":e.string().max(Fey).optional(),"pl-PL":e.string().max(key).optional(),"hr-HR":e.string().max(jey).optional(),"sv-SE":e.string().max(Hey).optional(),"fi-FI":e.string().max(Ley).optional(),"et-EE":e.string().max(Gey).optional(),"bg-BG":e.string().max(Vey).optional(),"cs-CZ":e.string().max(Key).optional(),"sk-SK":e.string().max(Zey).optional(),"nb-NO":e.string().max(qey).optional(),"is-IS":e.string().max(Wey).optional(),"hu-HU":e.string().max(Yey).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_credit_note_payment_terms:e.object({"en-US":e.string().max($ey).optional(),"de-DE":e.string().max(Qey).optional(),"it-IT":e.string().max(Jey).optional(),"fr-FR":e.string().max(Xey).optional(),"es-ES":e.string().max(ety).optional(),"sl-SI":e.string().max(tty).optional(),"pt-PT":e.string().max(nty).optional(),"nl-NL":e.string().max(sty).optional(),"pl-PL":e.string().max(oty).optional(),"hr-HR":e.string().max(ity).optional(),"sv-SE":e.string().max(aty).optional(),"fi-FI":e.string().max(rty).optional(),"et-EE":e.string().max(lty).optional(),"bg-BG":e.string().max(dty).optional(),"cs-CZ":e.string().max(uty).optional(),"sk-SK":e.string().max(cty).optional(),"nb-NO":e.string().max(pty).optional(),"is-IS":e.string().max(mty).optional(),"hu-HU":e.string().max(xty).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_advance_invoice_note:e.object({"en-US":e.string().max(gty).optional(),"de-DE":e.string().max(yty).optional(),"it-IT":e.string().max(Oty).optional(),"fr-FR":e.string().max(vty).optional(),"es-ES":e.string().max(Sty).optional(),"sl-SI":e.string().max(hty).optional(),"pt-PT":e.string().max(bty).optional(),"nl-NL":e.string().max(zty).optional(),"pl-PL":e.string().max(fty).optional(),"hr-HR":e.string().max(Bty).optional(),"sv-SE":e.string().max(Tty).optional(),"fi-FI":e.string().max(Ity).optional(),"et-EE":e.string().max(Ety).optional(),"bg-BG":e.string().max(Dty).optional(),"cs-CZ":e.string().max(Rty).optional(),"sk-SK":e.string().max(_ty).optional(),"nb-NO":e.string().max(Nty).optional(),"is-IS":e.string().max(Mty).optional(),"hu-HU":e.string().max(Uty).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_delivery_note_note:e.object({"en-US":e.string().max(Pty).optional(),"de-DE":e.string().max(Cty).optional(),"it-IT":e.string().max(wty).optional(),"fr-FR":e.string().max(Aty).optional(),"es-ES":e.string().max(Fty).optional(),"sl-SI":e.string().max(kty).optional(),"pt-PT":e.string().max(jty).optional(),"nl-NL":e.string().max(Hty).optional(),"pl-PL":e.string().max(Lty).optional(),"hr-HR":e.string().max(Gty).optional(),"sv-SE":e.string().max(Vty).optional(),"fi-FI":e.string().max(Kty).optional(),"et-EE":e.string().max(Zty).optional(),"bg-BG":e.string().max(qty).optional(),"cs-CZ":e.string().max(Wty).optional(),"sk-SK":e.string().max(Yty).optional(),"nb-NO":e.string().max($ty).optional(),"is-IS":e.string().max(Qty).optional(),"hu-HU":e.string().max(Jty).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),document_footer:e.object({"en-US":e.string().max(Xty).optional(),"de-DE":e.string().max(eny).optional(),"it-IT":e.string().max(tny).optional(),"fr-FR":e.string().max(nny).optional(),"es-ES":e.string().max(sny).optional(),"sl-SI":e.string().max(ony).optional(),"pt-PT":e.string().max(iny).optional(),"nl-NL":e.string().max(any).optional(),"pl-PL":e.string().max(rny).optional(),"hr-HR":e.string().max(lny).optional(),"sv-SE":e.string().max(dny).optional(),"fi-FI":e.string().max(uny).optional(),"et-EE":e.string().max(cny).optional(),"bg-BG":e.string().max(pny).optional(),"cs-CZ":e.string().max(mny).optional(),"sk-SK":e.string().max(xny).optional(),"nb-NO":e.string().max(gny).optional(),"is-IS":e.string().max(yny).optional(),"hu-HU":e.string().max(Ony).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_document_signature:e.object({"en-US":e.string().max(vny).optional(),"de-DE":e.string().max(Sny).optional(),"it-IT":e.string().max(hny).optional(),"fr-FR":e.string().max(bny).optional(),"es-ES":e.string().max(zny).optional(),"sl-SI":e.string().max(fny).optional(),"pt-PT":e.string().max(Bny).optional(),"nl-NL":e.string().max(Tny).optional(),"pl-PL":e.string().max(Iny).optional(),"hr-HR":e.string().max(Eny).optional(),"sv-SE":e.string().max(Dny).optional(),"fi-FI":e.string().max(Rny).optional(),"et-EE":e.string().max(_ny).optional(),"bg-BG":e.string().max(Nny).optional(),"cs-CZ":e.string().max(Mny).optional(),"sk-SK":e.string().max(Uny).optional(),"nb-NO":e.string().max(Pny).optional(),"is-IS":e.string().max(Cny).optional(),"hu-HU":e.string().max(wny).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),email_defaults:e.object({invoice_subject:e.object({"en-US":e.string().max(Any).optional(),"de-DE":e.string().max(Fny).optional(),"it-IT":e.string().max(kny).optional(),"fr-FR":e.string().max(jny).optional(),"es-ES":e.string().max(Hny).optional(),"sl-SI":e.string().max(Lny).optional(),"pt-PT":e.string().max(Gny).optional(),"nl-NL":e.string().max(Vny).optional(),"pl-PL":e.string().max(Kny).optional(),"hr-HR":e.string().max(Zny).optional(),"sv-SE":e.string().max(qny).optional(),"fi-FI":e.string().max(Wny).optional(),"et-EE":e.string().max(Yny).optional(),"bg-BG":e.string().max($ny).optional(),"cs-CZ":e.string().max(Qny).optional(),"sk-SK":e.string().max(Jny).optional(),"nb-NO":e.string().max(Xny).optional(),"is-IS":e.string().max(esy).optional(),"hu-HU":e.string().max(tsy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),invoice_body:e.object({"en-US":e.string().max(nsy).optional(),"de-DE":e.string().max(ssy).optional(),"it-IT":e.string().max(osy).optional(),"fr-FR":e.string().max(isy).optional(),"es-ES":e.string().max(asy).optional(),"sl-SI":e.string().max(rsy).optional(),"pt-PT":e.string().max(lsy).optional(),"nl-NL":e.string().max(dsy).optional(),"pl-PL":e.string().max(usy).optional(),"hr-HR":e.string().max(csy).optional(),"sv-SE":e.string().max(psy).optional(),"fi-FI":e.string().max(msy).optional(),"et-EE":e.string().max(xsy).optional(),"bg-BG":e.string().max(gsy).optional(),"cs-CZ":e.string().max(ysy).optional(),"sk-SK":e.string().max(Osy).optional(),"nb-NO":e.string().max(vsy).optional(),"is-IS":e.string().max(Ssy).optional(),"hu-HU":e.string().max(hsy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),estimate_subject:e.object({"en-US":e.string().max(bsy).optional(),"de-DE":e.string().max(zsy).optional(),"it-IT":e.string().max(fsy).optional(),"fr-FR":e.string().max(Bsy).optional(),"es-ES":e.string().max(Tsy).optional(),"sl-SI":e.string().max(Isy).optional(),"pt-PT":e.string().max(Esy).optional(),"nl-NL":e.string().max(Dsy).optional(),"pl-PL":e.string().max(Rsy).optional(),"hr-HR":e.string().max(_sy).optional(),"sv-SE":e.string().max(Nsy).optional(),"fi-FI":e.string().max(Msy).optional(),"et-EE":e.string().max(Usy).optional(),"bg-BG":e.string().max(Psy).optional(),"cs-CZ":e.string().max(Csy).optional(),"sk-SK":e.string().max(wsy).optional(),"nb-NO":e.string().max(Asy).optional(),"is-IS":e.string().max(Fsy).optional(),"hu-HU":e.string().max(ksy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),estimate_body:e.object({"en-US":e.string().max(jsy).optional(),"de-DE":e.string().max(Hsy).optional(),"it-IT":e.string().max(Lsy).optional(),"fr-FR":e.string().max(Gsy).optional(),"es-ES":e.string().max(Vsy).optional(),"sl-SI":e.string().max(Ksy).optional(),"pt-PT":e.string().max(Zsy).optional(),"nl-NL":e.string().max(qsy).optional(),"pl-PL":e.string().max(Wsy).optional(),"hr-HR":e.string().max(Ysy).optional(),"sv-SE":e.string().max($sy).optional(),"fi-FI":e.string().max(Qsy).optional(),"et-EE":e.string().max(Jsy).optional(),"bg-BG":e.string().max(Xsy).optional(),"cs-CZ":e.string().max(eoy).optional(),"sk-SK":e.string().max(toy).optional(),"nb-NO":e.string().max(noy).optional(),"is-IS":e.string().max(soy).optional(),"hu-HU":e.string().max(ooy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),credit_note_subject:e.object({"en-US":e.string().max(ioy).optional(),"de-DE":e.string().max(aoy).optional(),"it-IT":e.string().max(roy).optional(),"fr-FR":e.string().max(loy).optional(),"es-ES":e.string().max(doy).optional(),"sl-SI":e.string().max(uoy).optional(),"pt-PT":e.string().max(coy).optional(),"nl-NL":e.string().max(poy).optional(),"pl-PL":e.string().max(moy).optional(),"hr-HR":e.string().max(xoy).optional(),"sv-SE":e.string().max(goy).optional(),"fi-FI":e.string().max(yoy).optional(),"et-EE":e.string().max(Ooy).optional(),"bg-BG":e.string().max(voy).optional(),"cs-CZ":e.string().max(Soy).optional(),"sk-SK":e.string().max(hoy).optional(),"nb-NO":e.string().max(boy).optional(),"is-IS":e.string().max(zoy).optional(),"hu-HU":e.string().max(foy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),credit_note_body:e.object({"en-US":e.string().max(Boy).optional(),"de-DE":e.string().max(Toy).optional(),"it-IT":e.string().max(Ioy).optional(),"fr-FR":e.string().max(Eoy).optional(),"es-ES":e.string().max(Doy).optional(),"sl-SI":e.string().max(Roy).optional(),"pt-PT":e.string().max(_oy).optional(),"nl-NL":e.string().max(Noy).optional(),"pl-PL":e.string().max(Moy).optional(),"hr-HR":e.string().max(Uoy).optional(),"sv-SE":e.string().max(Poy).optional(),"fi-FI":e.string().max(Coy).optional(),"et-EE":e.string().max(woy).optional(),"bg-BG":e.string().max(Aoy).optional(),"cs-CZ":e.string().max(Foy).optional(),"sk-SK":e.string().max(koy).optional(),"nb-NO":e.string().max(joy).optional(),"is-IS":e.string().max(Hoy).optional(),"hu-HU":e.string().max(Loy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),advance_invoice_subject:e.object({"en-US":e.string().max(Goy).optional(),"de-DE":e.string().max(Voy).optional(),"it-IT":e.string().max(Koy).optional(),"fr-FR":e.string().max(Zoy).optional(),"es-ES":e.string().max(qoy).optional(),"sl-SI":e.string().max(Woy).optional(),"pt-PT":e.string().max(Yoy).optional(),"nl-NL":e.string().max($oy).optional(),"pl-PL":e.string().max(Qoy).optional(),"hr-HR":e.string().max(Joy).optional(),"sv-SE":e.string().max(Xoy).optional(),"fi-FI":e.string().max(eiy).optional(),"et-EE":e.string().max(tiy).optional(),"bg-BG":e.string().max(niy).optional(),"cs-CZ":e.string().max(siy).optional(),"sk-SK":e.string().max(oiy).optional(),"nb-NO":e.string().max(iiy).optional(),"is-IS":e.string().max(aiy).optional(),"hu-HU":e.string().max(riy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),advance_invoice_body:e.object({"en-US":e.string().max(liy).optional(),"de-DE":e.string().max(diy).optional(),"it-IT":e.string().max(uiy).optional(),"fr-FR":e.string().max(ciy).optional(),"es-ES":e.string().max(piy).optional(),"sl-SI":e.string().max(miy).optional(),"pt-PT":e.string().max(xiy).optional(),"nl-NL":e.string().max(giy).optional(),"pl-PL":e.string().max(yiy).optional(),"hr-HR":e.string().max(Oiy).optional(),"sv-SE":e.string().max(viy).optional(),"fi-FI":e.string().max(Siy).optional(),"et-EE":e.string().max(hiy).optional(),"bg-BG":e.string().max(biy).optional(),"cs-CZ":e.string().max(ziy).optional(),"sk-SK":e.string().max(fiy).optional(),"nb-NO":e.string().max(Biy).optional(),"is-IS":e.string().max(Tiy).optional(),"hu-HU":e.string().max(Iiy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),delivery_note_subject:e.object({"en-US":e.string().max(Eiy).optional(),"de-DE":e.string().max(Diy).optional(),"it-IT":e.string().max(Riy).optional(),"fr-FR":e.string().max(_iy).optional(),"es-ES":e.string().max(Niy).optional(),"sl-SI":e.string().max(Miy).optional(),"pt-PT":e.string().max(Uiy).optional(),"nl-NL":e.string().max(Piy).optional(),"pl-PL":e.string().max(Ciy).optional(),"hr-HR":e.string().max(wiy).optional(),"sv-SE":e.string().max(Aiy).optional(),"fi-FI":e.string().max(Fiy).optional(),"et-EE":e.string().max(kiy).optional(),"bg-BG":e.string().max(jiy).optional(),"cs-CZ":e.string().max(Hiy).optional(),"sk-SK":e.string().max(Liy).optional(),"nb-NO":e.string().max(Giy).optional(),"is-IS":e.string().max(Viy).optional(),"hu-HU":e.string().max(Kiy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),delivery_note_body:e.object({"en-US":e.string().max(Ziy).optional(),"de-DE":e.string().max(qiy).optional(),"it-IT":e.string().max(Wiy).optional(),"fr-FR":e.string().max(Yiy).optional(),"es-ES":e.string().max($iy).optional(),"sl-SI":e.string().max(Qiy).optional(),"pt-PT":e.string().max(Jiy).optional(),"nl-NL":e.string().max(Xiy).optional(),"pl-PL":e.string().max(eay).optional(),"hr-HR":e.string().max(tay).optional(),"sv-SE":e.string().max(nay).optional(),"fi-FI":e.string().max(say).optional(),"et-EE":e.string().max(oay).optional(),"bg-BG":e.string().max(iay).optional(),"cs-CZ":e.string().max(aay).optional(),"sk-SK":e.string().max(ray).optional(),"nb-NO":e.string().max(lay).optional(),"is-IS":e.string().max(day).optional(),"hu-HU":e.string().max(uay).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),purchase_order_subject:e.object({"en-US":e.string().max(cay).nullish(),"de-DE":e.string().max(pay).nullish(),"it-IT":e.string().max(may).nullish(),"fr-FR":e.string().max(xay).nullish(),"es-ES":e.string().max(gay).nullish(),"sl-SI":e.string().max(yay).nullish(),"pt-PT":e.string().max(Oay).nullish(),"nl-NL":e.string().max(vay).nullish(),"pl-PL":e.string().max(Say).nullish(),"hr-HR":e.string().max(hay).nullish(),"sv-SE":e.string().max(bay).nullish(),"fi-FI":e.string().max(zay).nullish(),"et-EE":e.string().max(fay).nullish(),"bg-BG":e.string().max(Bay).nullish(),"cs-CZ":e.string().max(Tay).nullish(),"sk-SK":e.string().max(Iay).nullish(),"nb-NO":e.string().max(Eay).nullish(),"is-IS":e.string().max(Day).nullish(),"hu-HU":e.string().max(Ray).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),purchase_order_body:e.object({"en-US":e.string().max(_ay).nullish(),"de-DE":e.string().max(Nay).nullish(),"it-IT":e.string().max(May).nullish(),"fr-FR":e.string().max(Uay).nullish(),"es-ES":e.string().max(Pay).nullish(),"sl-SI":e.string().max(Cay).nullish(),"pt-PT":e.string().max(way).nullish(),"nl-NL":e.string().max(Aay).nullish(),"pl-PL":e.string().max(Fay).nullish(),"hr-HR":e.string().max(kay).nullish(),"sv-SE":e.string().max(jay).nullish(),"fi-FI":e.string().max(Hay).nullish(),"et-EE":e.string().max(Lay).nullish(),"bg-BG":e.string().max(Gay).nullish(),"cs-CZ":e.string().max(Vay).nullish(),"sk-SK":e.string().max(Kay).nullish(),"nb-NO":e.string().max(Zay).nullish(),"is-IS":e.string().max(qay).nullish(),"hu-HU":e.string().max(Way).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Translated default email subjects and bodies keyed by full supported locales. Base scalar email defaults remain the default-language source of truth."),payment_reminders:e.object({email_subject:e.object({"en-US":e.string().max(Yay).optional(),"de-DE":e.string().max($ay).optional(),"it-IT":e.string().max(Qay).optional(),"fr-FR":e.string().max(Jay).optional(),"es-ES":e.string().max(Xay).optional(),"sl-SI":e.string().max(ery).optional(),"pt-PT":e.string().max(nry).optional(),"nl-NL":e.string().max(sry).optional(),"pl-PL":e.string().max(ory).optional(),"hr-HR":e.string().max(iry).optional(),"sv-SE":e.string().max(ary).optional(),"fi-FI":e.string().max(rry).optional(),"et-EE":e.string().max(lry).optional(),"bg-BG":e.string().max(dry).optional(),"cs-CZ":e.string().max(ury).optional(),"sk-SK":e.string().max(cry).optional(),"nb-NO":e.string().max(pry).optional(),"is-IS":e.string().max(mry).optional(),"hu-HU":e.string().max(xry).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),email_body:e.object({"en-US":e.string().max(gry).optional(),"de-DE":e.string().max(yry).optional(),"it-IT":e.string().max(Ory).optional(),"fr-FR":e.string().max(vry).optional(),"es-ES":e.string().max(Sry).optional(),"sl-SI":e.string().max(hry).optional(),"pt-PT":e.string().max(bry).optional(),"nl-NL":e.string().max(zry).optional(),"pl-PL":e.string().max(fry).optional(),"hr-HR":e.string().max(Bry).optional(),"sv-SE":e.string().max(Try).optional(),"fi-FI":e.string().max(Iry).optional(),"et-EE":e.string().max(Ery).optional(),"bg-BG":e.string().max(Dry).optional(),"cs-CZ":e.string().max(Rry).optional(),"sk-SK":e.string().max(_ry).optional(),"nb-NO":e.string().max(Nry).optional(),"is-IS":e.string().max(Mry).optional(),"hu-HU":e.string().max(Ury).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),payment_instructions:e.object({"en-US":e.string().max(Pry).optional(),"de-DE":e.string().max(Cry).optional(),"it-IT":e.string().max(wry).optional(),"fr-FR":e.string().max(Ary).optional(),"es-ES":e.string().max(Fry).optional(),"sl-SI":e.string().max(kry).optional(),"pt-PT":e.string().max(jry).optional(),"nl-NL":e.string().max(Hry).optional(),"pl-PL":e.string().max(Lry).optional(),"hr-HR":e.string().max(Gry).optional(),"sv-SE":e.string().max(Vry).optional(),"fi-FI":e.string().max(Kry).optional(),"et-EE":e.string().max(Zry).optional(),"bg-BG":e.string().max(qry).optional(),"cs-CZ":e.string().max(Wry).optional(),"sk-SK":e.string().max(Yry).optional(),"nb-NO":e.string().max($ry).optional(),"is-IS":e.string().max(Qry).optional(),"hu-HU":e.string().max(Jry).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Translated default payment reminder subject, body, and payment instructions keyed by full supported locales."),tax_clause_defaults:e.object({domestic:e.object({"en-US":e.string().max(Xry).optional(),"de-DE":e.string().max(ely).optional(),"it-IT":e.string().max(tly).optional(),"fr-FR":e.string().max(nly).optional(),"es-ES":e.string().max(sly).optional(),"sl-SI":e.string().max(oly).optional(),"pt-PT":e.string().max(ily).optional(),"nl-NL":e.string().max(aly).optional(),"pl-PL":e.string().max(rly).optional(),"hr-HR":e.string().max(lly).optional(),"sv-SE":e.string().max(dly).optional(),"fi-FI":e.string().max(uly).optional(),"et-EE":e.string().max(cly).optional(),"bg-BG":e.string().max(ply).optional(),"cs-CZ":e.string().max(mly).optional(),"sk-SK":e.string().max(xly).optional(),"nb-NO":e.string().max(gly).optional(),"is-IS":e.string().max(yly).optional(),"hu-HU":e.string().max(Oly).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),article_76a:e.object({"en-US":e.string().max(vly).nullish(),"de-DE":e.string().max(Sly).nullish(),"it-IT":e.string().max(hly).nullish(),"fr-FR":e.string().max(bly).nullish(),"es-ES":e.string().max(zly).nullish(),"sl-SI":e.string().max(fly).nullish(),"pt-PT":e.string().max(Bly).nullish(),"nl-NL":e.string().max(Tly).nullish(),"pl-PL":e.string().max(Ily).nullish(),"hr-HR":e.string().max(Ely).nullish(),"sv-SE":e.string().max(Dly).nullish(),"fi-FI":e.string().max(Rly).nullish(),"et-EE":e.string().max(_ly).nullish(),"bg-BG":e.string().max(Nly).nullish(),"cs-CZ":e.string().max(Mly).nullish(),"sk-SK":e.string().max(Uly).nullish(),"nb-NO":e.string().max(Ply).nullish(),"is-IS":e.string().max(Cly).nullish(),"hu-HU":e.string().max(wly).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),intra_eu_b2b:e.object({"en-US":e.string().max(Aly).optional(),"de-DE":e.string().max(Fly).optional(),"it-IT":e.string().max(kly).optional(),"fr-FR":e.string().max(jly).optional(),"es-ES":e.string().max(Hly).optional(),"sl-SI":e.string().max(Lly).optional(),"pt-PT":e.string().max(Gly).optional(),"nl-NL":e.string().max(Vly).optional(),"pl-PL":e.string().max(Kly).optional(),"hr-HR":e.string().max(Zly).optional(),"sv-SE":e.string().max(qly).optional(),"fi-FI":e.string().max(Wly).optional(),"et-EE":e.string().max(Yly).optional(),"bg-BG":e.string().max($ly).optional(),"cs-CZ":e.string().max(Qly).optional(),"sk-SK":e.string().max(Jly).optional(),"nb-NO":e.string().max(Xly).optional(),"is-IS":e.string().max(edy).optional(),"hu-HU":e.string().max(tdy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),intra_eu_b2b_goods:e.object({"en-US":e.string().max(ndy).nullish(),"de-DE":e.string().max(sdy).nullish(),"it-IT":e.string().max(ody).nullish(),"fr-FR":e.string().max(idy).nullish(),"es-ES":e.string().max(ady).nullish(),"sl-SI":e.string().max(rdy).nullish(),"pt-PT":e.string().max(ldy).nullish(),"nl-NL":e.string().max(ddy).nullish(),"pl-PL":e.string().max(udy).nullish(),"hr-HR":e.string().max(cdy).nullish(),"sv-SE":e.string().max(pdy).nullish(),"fi-FI":e.string().max(mdy).nullish(),"et-EE":e.string().max(xdy).nullish(),"bg-BG":e.string().max(gdy).nullish(),"cs-CZ":e.string().max(ydy).nullish(),"sk-SK":e.string().max(Ody).nullish(),"nb-NO":e.string().max(vdy).nullish(),"is-IS":e.string().max(Sdy).nullish(),"hu-HU":e.string().max(hdy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),intra_eu_b2c:e.object({"en-US":e.string().max(bdy).optional(),"de-DE":e.string().max(zdy).optional(),"it-IT":e.string().max(fdy).optional(),"fr-FR":e.string().max(Bdy).optional(),"es-ES":e.string().max(Tdy).optional(),"sl-SI":e.string().max(Idy).optional(),"pt-PT":e.string().max(Edy).optional(),"nl-NL":e.string().max(Ddy).optional(),"pl-PL":e.string().max(Rdy).optional(),"hr-HR":e.string().max(_dy).optional(),"sv-SE":e.string().max(Ndy).optional(),"fi-FI":e.string().max(Mdy).optional(),"et-EE":e.string().max(Udy).optional(),"bg-BG":e.string().max(Pdy).optional(),"cs-CZ":e.string().max(Cdy).optional(),"sk-SK":e.string().max(wdy).optional(),"nb-NO":e.string().max(Ady).optional(),"is-IS":e.string().max(Fdy).optional(),"hu-HU":e.string().max(kdy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),"3w_b2b":e.object({"en-US":e.string().max(jdy).optional(),"de-DE":e.string().max(Hdy).optional(),"it-IT":e.string().max(Ldy).optional(),"fr-FR":e.string().max(Gdy).optional(),"es-ES":e.string().max(Vdy).optional(),"sl-SI":e.string().max(Kdy).optional(),"pt-PT":e.string().max(Zdy).optional(),"nl-NL":e.string().max(qdy).optional(),"pl-PL":e.string().max(Wdy).optional(),"hr-HR":e.string().max(Ydy).optional(),"sv-SE":e.string().max($dy).optional(),"fi-FI":e.string().max(Qdy).optional(),"et-EE":e.string().max(Jdy).optional(),"bg-BG":e.string().max(Xdy).optional(),"cs-CZ":e.string().max(euy).optional(),"sk-SK":e.string().max(tuy).optional(),"nb-NO":e.string().max(nuy).optional(),"is-IS":e.string().max(suy).optional(),"hu-HU":e.string().max(ouy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),"3w_b2c":e.object({"en-US":e.string().max(iuy).optional(),"de-DE":e.string().max(auy).optional(),"it-IT":e.string().max(ruy).optional(),"fr-FR":e.string().max(luy).optional(),"es-ES":e.string().max(duy).optional(),"sl-SI":e.string().max(uuy).optional(),"pt-PT":e.string().max(cuy).optional(),"nl-NL":e.string().max(puy).optional(),"pl-PL":e.string().max(muy).optional(),"hr-HR":e.string().max(xuy).optional(),"sv-SE":e.string().max(guy).optional(),"fi-FI":e.string().max(yuy).optional(),"et-EE":e.string().max(Ouy).optional(),"bg-BG":e.string().max(vuy).optional(),"cs-CZ":e.string().max(Suy).optional(),"sk-SK":e.string().max(huy).optional(),"nb-NO":e.string().max(buy).optional(),"is-IS":e.string().max(zuy).optional(),"hu-HU":e.string().max(fuy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),export:e.object({"en-US":e.string().max(Buy).optional(),"de-DE":e.string().max(Tuy).optional(),"it-IT":e.string().max(Iuy).optional(),"fr-FR":e.string().max(Euy).optional(),"es-ES":e.string().max(Duy).optional(),"sl-SI":e.string().max(Ruy).optional(),"pt-PT":e.string().max(_uy).optional(),"nl-NL":e.string().max(Nuy).optional(),"pl-PL":e.string().max(Muy).optional(),"hr-HR":e.string().max(Uuy).optional(),"sv-SE":e.string().max(Puy).optional(),"fi-FI":e.string().max(Cuy).optional(),"et-EE":e.string().max(wuy).optional(),"bg-BG":e.string().max(Auy).optional(),"cs-CZ":e.string().max(Fuy).optional(),"sk-SK":e.string().max(kuy).optional(),"nb-NO":e.string().max(juy).optional(),"is-IS":e.string().max(Huy).optional(),"hu-HU":e.string().max(Luy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Translated default tax clauses keyed by transaction type. Each transaction-type entry is a localized-content map keyed by full supported locales.")}).describe("Translated default document-facing settings keyed by full supported locales. Base scalar settings remain the default-language source of truth."),e.null()]).optional().describe("Translated default document-facing settings keyed by full supported locales. Used when new documents inherit default texts and when document defaults are rendered in an explicit non-default language."),default_invoice_note:e.string().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e.string().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e.string().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e.string().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e.string().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e.string().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_advance_invoice_note:e.string().nullish().describe("Default note for new advance invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_delivery_note_note:e.string().nullish().describe("Default note for new delivery notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e.string().max(Guy).nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_document_signature:e.string().nullish().describe("Default signature text for all new documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),bank_accounts:e.array(e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(Vuy).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)"),is_default:e.boolean().nullish().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),delivery_note_hide_prices:e.boolean().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),purchase_order_hide_prices:e.boolean().nullish().describe("Default hide_prices for new purchase orders. When true, prices and totals are hidden by default. When false or unset, prices are hidden only while no line has a price."),credit_note_negative_values:e.boolean().nullish().describe("When true (default), credit note PDFs display line item quantities and totals as negative values while keeping prices positive. Zero quantities and totals stay unsigned. Set to false to show quantities and totals as positive."),show_payment_amounts:e.boolean().nullish().describe("When true, rendered document payment/refund sections show the payment amount next to each payment type. Defaults to false, which shows only the payment or refund type."),hide_tax_when_untaxed:e.boolean().nullish().describe("When true, rendered documents omit the tax row and per-line tax rate for lines and totals where no tax was applied. An explicitly applied 0% tax rate is still shown. Defaults to false, which keeps the 0% row for untaxed amounts."),tax_clause_defaults:e.union([e.object({domestic:e.string().nullish().describe("Default tax clause for domestic transactions (same country)"),article_76a:e.string().nullish().describe("Default clause for Slovenian domestic reverse charge under Article 76.a ZDDV-1."),intra_eu_b2b:e.string().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2b_goods:e.string().nullish().describe("Default tax clause for intra-EU B2B sales of goods (intra-community supply). Used when the lines are classified as product; falls back to intra_eu_b2b when empty."),intra_eu_b2c:e.string().nullish().describe("Default tax clause for intra-EU B2C transactions"),"3w_b2b":e.string().nullish().describe("Default tax clause for third-world B2B transactions (non-EU, business customer)"),"3w_b2c":e.string().nullish().describe("Default tax clause for third-world B2C transactions (non-EU, end consumer)"),export:e.string().nullish().describe("Deprecated: Use 3w_b2b and 3w_b2c instead. Default tax clause for export transactions.")}),e.null()]).optional().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc."),default_warehouse_id:e.string().nullish().describe("Warehouse to use for inventory movements created on documents issued by this business unit, when set and not deleted. Falls back to the entity's default warehouse otherwise. Send null to clear.")}).describe("Business-unit overrides for document-facing settings. Uses the same field names as entity settings while excluding entity-only compliance and fiscalization settings."),logo_url:e.url().nullish(),signature_url:e.url().nullish()}).describe("Frozen business-unit snapshot persisted on documents for rendering and history."),e.null()]).optional().describe("Frozen business-unit snapshot used for stable rendering and historical accuracy."),warehouse_id:e.string().nullish().describe("Warehouse the document's stock effect applies to. Omit or send null to use the business unit's default warehouse, then the entity default. Used by invoices, credit notes and expenses; stored but inert on other document types."),customer_id:e.string().max(Kuy).nullish(),customer:e.union([e.object({name:e.string().nullish(),unit_name:e.string().nullish().describe("Deprecated compatibility field. This value is no longer used for business-unit rendering; use `business_unit.name` on the document instead."),email:e.string().max(Zuy).nullish(),address:e.string().nullish(),address_2:e.string().nullish(),post_code:e.string().nullish(),city:e.string().nullish(),state:e.string().nullish(),country:e.string().nullish(),country_code:e.string().max(quy).nullish(),tax_number:e.string().nullish(),tax_number_2:e.string().nullish(),company_number:e.string().nullish(),phone:e.string().nullish(),peppol_id:e.string().nullish(),peppol_scheme_id:e.string().nullish(),e_invoicing:e.union([e.object({buyer_reference:e.string().nullish().describe("Canonical EN 16931 BT-10 buyer reference stored on the document customer snapshot. For German public-sector recipients, enter the Leitweg-ID here. For German B2B recipients this is optional unless the buyer requires it. Do not send a separate leitweg_id, routing_id, or top-level buyer_reference field.")}).describe("Customer e-invoicing data copied into the document customer snapshot. These fields are buyer/customer document data, not German validation state."),e.null()]).optional(),delivery_address:e.union([e.object({address:e.string().min(1).max(Wuy),address_2:e.string().max(Yuy).nullish(),post_code:e.string().min(1).max($uy),city:e.string().min(1).max(Quy),country_code:e.string().min(Xuy).max(ecy).nullish().default(Juy)}).describe("Physical delivery address when it differs from the buyer's billing address. Required by French law when applicable."),e.null()]).optional().describe("Physical delivery address for this document when it differs from the customer's billing address. It is stored only on the document snapshot and is not saved to the customer record."),bank_accounts:e.array(e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(tcy).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)"),is_default:e.boolean().nullish().describe("Whether this is the default account for new invoices")})).nullish(),is_end_consumer:e.boolean().nullish(),is_tax_subject:e.boolean().nullish().describe("Whether the customer is VAT identified. Stored in the document snapshot and used by country-specific tax reports; a country code alone does not imply VAT identification."),ujp:e.union([e.object({receiver_name:e.string().min(1).nullish().describe("UJP envelope recipient name. If omitted, package generation falls back to the document customer name."),receiver_identifier:e.string().min(1).nullish().describe("Optional recipient tax number or identifier override for the UJP envelope. If omitted, package generation falls back to the document customer tax number."),receiver_agent:e.string().min(1).nullish().describe("Recipient BIC for the UJP envelope. Public budget users normally use UJPLSI2DICL."),receiver_mailbox:e.string().min(1).nullish().describe("Recipient IBAN/TRR mailbox for the UJP envelope.")}).describe("Optional Slovenian UJP recipient routing data stored on customers and copied into document customer snapshots."),e.null()]).optional(),sdi:e.union([e.object({recipient_code:e.string().regex(ncy).nullish().describe("Italian SdI recipient code for buyer routing. When neither a code nor PEC is supplied, domestic invoices use 0000000 and the seller must provide the buyer a courtesy copy and availability notice."),pec:e.email().nullish().describe("Italian certified email address for buyer routing. When provided without an SdI recipient code, FatturaPA uses `CodiceDestinatario = 0000000` plus `PECDestinatario`."),fiscal_code:e.string().regex(scy).nullish().describe("Buyer's Italian codice fiscale, independent of their VAT number. For a domestic consumer, legacy tax_number remains a fallback fiscal-code input. Required for VAT-group participants where applicable."),fiscal_regime:e.string().regex(ocy).nullish().describe("Issuer-only fiscal regime snapshot, captured from settings.tax_rules.italy at issuance. Ignored for buyer routing.")}),e.null()]).optional(),bank_account:e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(icy).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Customer recipient snapshot stored on the document. When a document is created with customer_id only, the snapshot is populated from the saved customer. When an explicit customer object is provided, the snapshot is built from that payload and known omitted fields are stored and returned as null instead of being backfilled from the saved customer."),e.null()]).optional().describe("Customer information snapshot stored on the document. Null means no customer. When present, known customer fields are returned with null for omitted values."),note:e.string().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e.string().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e.string().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),footer:e.string().max(acy).nullish(),signature:e.string().nullish().describe("Signature text for the document (e.g. 'John Smith, CEO'). If not provided, defaults to entity's default_document_signature setting. Pass empty string to explicitly set no signature."),translations:e.object({note:e.object({"en-US":e.string().max(rcy).optional(),"de-DE":e.string().max(lcy).optional(),"it-IT":e.string().max(dcy).optional(),"fr-FR":e.string().max(ucy).optional(),"es-ES":e.string().max(ccy).optional(),"sl-SI":e.string().max(pcy).optional(),"pt-PT":e.string().max(mcy).optional(),"nl-NL":e.string().max(xcy).optional(),"pl-PL":e.string().max(gcy).optional(),"hr-HR":e.string().max(ycy).optional(),"sv-SE":e.string().max(Ocy).optional(),"fi-FI":e.string().max(vcy).optional(),"et-EE":e.string().max(Scy).optional(),"bg-BG":e.string().max(hcy).optional(),"cs-CZ":e.string().max(bcy).optional(),"sk-SK":e.string().max(zcy).optional(),"nb-NO":e.string().max(fcy).optional(),"is-IS":e.string().max(Bcy).optional(),"hu-HU":e.string().max(Tcy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),payment_terms:e.object({"en-US":e.string().max(Icy).optional(),"de-DE":e.string().max(Ecy).optional(),"it-IT":e.string().max(Dcy).optional(),"fr-FR":e.string().max(Rcy).optional(),"es-ES":e.string().max(_cy).optional(),"sl-SI":e.string().max(Ncy).optional(),"pt-PT":e.string().max(Mcy).optional(),"nl-NL":e.string().max(Ucy).optional(),"pl-PL":e.string().max(Pcy).optional(),"hr-HR":e.string().max(Ccy).optional(),"sv-SE":e.string().max(wcy).optional(),"fi-FI":e.string().max(Acy).optional(),"et-EE":e.string().max(Fcy).optional(),"bg-BG":e.string().max(kcy).optional(),"cs-CZ":e.string().max(jcy).optional(),"sk-SK":e.string().max(Hcy).optional(),"nb-NO":e.string().max(Lcy).optional(),"is-IS":e.string().max(Gcy).optional(),"hu-HU":e.string().max(Vcy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),tax_clause:e.object({"en-US":e.string().max(Kcy).optional(),"de-DE":e.string().max(Zcy).optional(),"it-IT":e.string().max(qcy).optional(),"fr-FR":e.string().max(Wcy).optional(),"es-ES":e.string().max(Ycy).optional(),"sl-SI":e.string().max($cy).optional(),"pt-PT":e.string().max(Qcy).optional(),"nl-NL":e.string().max(Jcy).optional(),"pl-PL":e.string().max(Xcy).optional(),"hr-HR":e.string().max(epy).optional(),"sv-SE":e.string().max(tpy).optional(),"fi-FI":e.string().max(npy).optional(),"et-EE":e.string().max(spy).optional(),"bg-BG":e.string().max(opy).optional(),"cs-CZ":e.string().max(ipy).optional(),"sk-SK":e.string().max(apy).optional(),"nb-NO":e.string().max(rpy).optional(),"is-IS":e.string().max(lpy).optional(),"hu-HU":e.string().max(dpy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),footer:e.object({"en-US":e.string().max(upy).optional(),"de-DE":e.string().max(cpy).optional(),"it-IT":e.string().max(ppy).optional(),"fr-FR":e.string().max(mpy).optional(),"es-ES":e.string().max(xpy).optional(),"sl-SI":e.string().max(gpy).optional(),"pt-PT":e.string().max(ypy).optional(),"nl-NL":e.string().max(Opy).optional(),"pl-PL":e.string().max(vpy).optional(),"hr-HR":e.string().max(Spy).optional(),"sv-SE":e.string().max(hpy).optional(),"fi-FI":e.string().max(bpy).optional(),"et-EE":e.string().max(zpy).optional(),"bg-BG":e.string().max(fpy).optional(),"cs-CZ":e.string().max(Bpy).optional(),"sk-SK":e.string().max(Tpy).optional(),"nb-NO":e.string().max(Ipy).optional(),"is-IS":e.string().max(Epy).optional(),"hu-HU":e.string().max(Dpy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),signature:e.object({"en-US":e.string().max(Rpy).optional(),"de-DE":e.string().max(_py).optional(),"it-IT":e.string().max(Npy).optional(),"fr-FR":e.string().max(Mpy).optional(),"es-ES":e.string().max(Upy).optional(),"sl-SI":e.string().max(Ppy).optional(),"pt-PT":e.string().max(Cpy).optional(),"nl-NL":e.string().max(wpy).optional(),"pl-PL":e.string().max(Apy).optional(),"hr-HR":e.string().max(Fpy).optional(),"sv-SE":e.string().max(kpy).optional(),"fi-FI":e.string().max(jpy).optional(),"et-EE":e.string().max(Hpy).optional(),"bg-BG":e.string().max(Lpy).optional(),"cs-CZ":e.string().max(Gpy).optional(),"sk-SK":e.string().max(Vpy).optional(),"nb-NO":e.string().max(Kpy).optional(),"is-IS":e.string().max(Zpy).optional(),"hu-HU":e.string().max(qpy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored document content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),total:e.number().describe("Document total before tax in the currency's major unit. For EUR, `29.90` means \u20AC29.90, not 2,990 cents."),total_with_tax:e.number().describe("Document total after tax in the currency's major unit. For EUR, `29.90` means \u20AC29.90, not 2,990 cents."),total_discount:e.number().describe("Document discount total in the currency's major unit, stored as a net-equivalent amount for compatibility. In `b2b_standard`, this is the net value of line-item discounts applied before tax. In `b2c_gross_discount`, gross discounts are converted back to their net-equivalent value here. 0 when no discounts applied."),creation_source:e.enum(["standard","custom"]).describe("Internal origin of the create request. `standard` means a normal create endpoint calculated the totals. `custom` means the document was created through a `/custom` endpoint."),calculation_mode:e.enum(["b2b_standard","b2c_gross_discount"]).describe("Resolved calculation mode used for this document. Stored on the document so recalculation and rendering remain stable even if entity defaults change later."),taxes:e.array(e.object({rate:e.number().nullable(),tax_id:e.string().nullish(),base:e.number(),amount:e.number(),base_converted:e.number().nullish(),amount_converted:e.number().nullish(),reverse_charge:e.boolean().nullish()})).describe("Applied taxes summary"),currency_code:e.string().max(Wpy),entity_id:e.string().max(Ypy),date_year:e.number().min($py).max(Qpy),shareable_id:e.string().max(Jpy).nullish(),voided_at:e.iso.datetime({}).nullish(),transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal("export"),e.literal(null)]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),exchange_rate:e.union([e.object({rate:e.number().gt(Xpy).describe("Positive exchange rate used for conversion"),source:e.string().describe("Source of the exchange rate (e.g., 'auto' or 'manual')"),date:e.iso.datetime({}).describe("Date of the exchange rate"),quote_currency:e.string().min(emy).max(tmy).describe("Quote currency (the base currency converted to)")}),e.null()]).optional().describe("Currency exchange rate information if conversion was applied. Resolved for the supply/tax-point date (date_service_to, else date_service) when it falls on or before the issue date (date); otherwise resolved for the issue date."),crypto_equivalents:e.array(e.object({code:e.enum(["BTC","ETH","SOL","USDC","USDT"]).describe("Crypto asset code."),amount:e.number().describe("Crypto amount equivalent to the document's total_with_tax at `rate`."),rate:e.number().gt(nmy).describe("Units of the document currency per 1 unit of `code`, at `date`."),quote_currency:e.string().describe("The document's currency_code this equivalent was computed against."),source:e.string().describe("Source of the rate (e.g. 'auto')."),date:e.iso.datetime({}).describe("Date the rate was resolved for."),wallet_address:e.string().nullable().describe("Wallet address snapshot from entity settings at the time this equivalent was computed."),network:e.string().nullable().describe("Network label snapshot from entity settings at the time this equivalent was computed.")})).nullish().describe("Opt-in, informational crypto amount(s) equivalent to total_with_tax at the document-date rate. Null unless entity settings.crypto_equivalents is enabled and the document type supports it (invoice, advance_invoice, estimate). The document itself is always invoiced and settled in currency_code."),total_converted:e.number().min(smy).max(omy).nullish(),total_with_tax_converted:e.number().min(imy).max(amy).nullish(),rounding_correction:e.number().nullish().describe("Rounding correction in the currency's major unit, applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_required:e.boolean().nullish().describe("When true, final document creation/finalization must fail if current e-SLOG validation fails. Draft creation stores validation status without blocking."),validation_status:e.union([e.literal("valid"),e.literal("invalid"),e.literal("not_validated"),e.literal(null)]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:e.array(e.string()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e.string().nullish().describe("ISO timestamp when validation was last performed"),validation_version:e.string().nullish().describe("Validator/generator version used for the stored validation result"),validation_cache_key:e.string().nullish().describe("Hash of the relevant document/entity data used for the stored validation result")}),e.null()]).optional().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),reference:e.string().nullish().describe("Custom reference for the document (e.g., purchase order number, payment reference). When set, used as the UPN payment reference instead of the auto-generated one."),vies:e.union([e.object({warning:e.string().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:e.boolean().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail."),request_id:e.string().nullish().describe("VIES consultation number, returned when the check was made with the entity's own VAT number. Read-only.")}),e.null(),e.null()]).optional().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e.iso.datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),created_by_user_id:e.string().nullish().describe("ID of the user who created the document; null for documents created with an API key, by automation, or before this field existed. Read-only."),date_due:e.iso.datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:e.number().min(rmy).max(lmy),total_due:e.number().min(dmy).max(umy),paid_in_full:e.boolean(),verifactu:e.union([e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(cmy).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(pmy).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex(mmy).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(xmy).nullish().describe("Explicit classifications for exceptional tax rows. Ordinary domestic positive-rate IVA defaults to 01/01/S1. Zero, exempt, reverse-charge and non-domestic rows require classification.")}).describe("Fiscal classifications supplied before issue, or as an append-only fiscal metadata correction."),e.null()]).optional(),furs:e.union([e.object({status:e.enum(["pending","success","failed","skipped"]),fiscalized_at:e.iso.datetime({}).optional(),error:e.string().optional(),cancellation_reason:e.string().optional(),data:e.object({zoi:e.string(),eor:e.string().optional(),qr_code:e.string().optional(),business_premise_name:e.string(),electronic_device_name:e.string(),invoice_number:e.string(),iteration:e.number().default(gmy),issue_date_time:e.string().optional(),payload:e.record(e.string(),e.unknown()).describe("FURS API request payload"),issuer_tax_number:e.string().optional(),operator_tax_number:e.string().optional(),operator_label:e.string().optional(),foreign_operator:e.boolean().optional(),print_count:e.number().min(ymy).optional(),cancelled:e.boolean().optional(),cancelled_eor:e.string().optional(),cancellation_payload:e.record(e.string(),e.unknown()).optional().describe("FURS API cancellation payload")}).optional()}).describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),e.null()]).optional(),fina:e.union([e.object({status:e.enum(["pending","success","failed"]),fiscalized_at:e.iso.datetime({}).optional(),error:e.string().optional(),data:e.object({zki:e.string(),jir:e.string().optional(),qr_code_url:e.string().optional(),business_premise_name:e.string(),electronic_device_name:e.string(),invoice_number:e.string(),operator_oib:e.string().optional(),payment_type:e.string().optional(),payment_type_changed_at:e.iso.datetime({}).optional().describe("Set when the method was corrected after issuing and the change was accepted by CIS."),payment_change_unconfirmed:e.object({attempt_id:e.string().describe("Identifies the unresolved payment-method change. Retries of the same change retain this identifier."),payment_type:e.string().describe("CIS NacinPlac code the change was sent with."),payment_id:e.string().optional(),attempted_at:e.iso.datetime({}),reason:e.enum(["sent","unreachable","unrecorded","refused"]).describe("`sent` \u2014 awaiting CIS; `unreachable` \u2014 the answer never came; `unrecorded` \u2014 CIS accepted but the record could not be written; `refused` \u2014 a retry was refused while the first send is still unconfirmed.")}).optional().describe("A payment-method change was sent to CIS and not yet confirmed. The stored method is the old one; CIS may hold the new one. Cleared when a retry of the same change is confirmed; any other change is refused (409) while this is set."),numbering_sequence:e.string().optional(),issue_date_time:e.string().optional(),issue_date_time_iso:e.iso.datetime({}).optional(),payload:e.record(e.string(),e.unknown()).describe("CIS SOAP request payload"),cis_record:e.record(e.string(),e.unknown()).optional().describe("The record as submitted to CIS. Retained so a later payment-method change can resend it verbatim; never rewritten, since the ZKI was computed over these exact values."),subsequent_submit:e.boolean().optional().describe("Server-managed subsequent submission state (FINA NakDost); never accepted as document input."),issuer_oib:e.string().optional(),operator_label:e.string().optional(),print_count:e.number().min(Omy).optional()}).optional()}).describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, business premise name, electronic device name, and CIS identifiers (ZKI, JIR, QR code URL)."),e.null()]).optional(),pt:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),ticketbai:e.union([e.object({lroe_income_epigraphs:e.array(e.string().regex(vmy)).min(1).max(Smy).nullish().describe("Explicit IAE activity epigraphs for this invoice. Required for Bizkaia model 140; unsupported for model 240."),simplified:e.boolean().nullish().describe("Issue a simplified invoice only when legally eligible. Defaults to false."),description:e.string().min(1).max(hmy).nullish(),tax_treatment:e.union([e.literal("taxable"),e.literal("exempt"),e.literal("non_subject"),e.literal("reverse_charge"),e.literal(null)]).nullish().describe("Treatment for the whole invoice. Required for zero-rate or untaxed invoices; positive VAT defaults to taxable. Mixed treatments require separate invoices in the pilot."),vat_regime:e.union([e.literal("01"),e.literal("02"),e.literal(null)]).nullish().describe("01 general regime (default); 02 export operations. Other special regimes are outside the pilot."),exemption_cause:e.union([e.literal("E1"),e.literal("E2"),e.literal("E3"),e.literal("E4"),e.literal("E5"),e.literal("E6"),e.literal(null)]).nullish(),non_subject_cause:e.union([e.literal("OT"),e.literal("RL"),e.literal("VT"),e.literal("IE"),e.literal(null)]).nullish(),recipient_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal(null)]).nullish().describe("Foreign recipient identification type. Required for a non-Spanish recipient."),operation_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("Required when the foreign recipient needs an operation-level breakdown."),rectification_code:e.union([e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("Required for credit notes. The pilot uses difference rectification (I) and the linked source invoices."),cancellation:e.object({record_id:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),reason:e.string()}).nullish(),record_id:e.string().nullish(),identifier:e.string().nullish(),qr_url:e.string().nullish(),status:e.union([e.literal("pending"),e.literal("sending"),e.literal("accepted"),e.literal("accepted_with_errors"),e.literal("rejected"),e.literal("unknown"),e.literal(null)]).nullish()}),e.null()]).optional(),ksef:e.union([e.object({submission_id:e.string(),status:e.enum(["reserved","processing","dispatching","submitted","accepted","rejected","retryable_error"]),revision:e.number(),error_code:e.string().nullable(),error_message:e.string().nullable(),ksef_number:e.string().nullable(),invoice_hash:e.string().nullable(),upo_available:e.boolean(),recovery_available:e.boolean().optional().describe("Whether recovery can be requested. The recovery action verifies definitive nonacceptance before returning the document to draft; ambiguous results return 409.")}).describe("Server-managed Poland KSeF lifecycle. Dispatching is ambiguous and cannot be automatically resent. Acceptance requires authority invoice hash verification."),e.null()]).optional(),early_payment_discount:e.union([e.object({terms_id:e.string().optional(),percentage:e.number().gt(bmy).lt(zmy).multipleOf(fmy).describe("Discount percentage with at most four decimal places, greater than zero and less than 100."),days:e.number().min(Bmy).max(Tmy),deadline:e.string().describe("Inclusive, snapshotted local eligibility date (YYYY-MM-DD)."),timezone:e.string().describe("Issuer IANA timezone snapshotted with the terms."),currency_precision:e.number().min(Imy).max(Emy),eligible_base:e.number(),discount_amount:e.number().describe("Available conditional discount; does not reduce the invoice total."),discounted_payable:e.number().describe("Cash required in total within the discount window, before subtracting partial cash already received."),remaining_discounted_payable:e.number().describe("Conditional cash still required after payments already received; usable only while the offer remains eligible."),discount_taken:e.number().describe("Realised non-cash settlement, recorded separately from payments and ordinary discounts."),total_cash_received:e.number(),total_non_cash_applied:e.number().describe("Applied credits and advances/deposits, separate from cash and the realised discount."),qualification_base:e.number().nullable().describe("Historical earned qualification base, retained to revalidate cash after later credits, advances and payment restoration. Null before any qualification."),total_settled:e.number().describe("Cash, applied advances/credits and realised discount combined. Can exceed invoice total for an overpayment."),qualifying_payment_id:e.string().nullable()}),e.null()]).optional(),xrechnung:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Whether German XRechnung/ZUGFeRD validation was enabled when this document was last validated. This is server-managed document validation state, not buyer/customer routing data."),validation_required:e.boolean().nullish().describe("Whether this validation result was required for the save/finalization call. When true, final document creation/finalization fails if current German e-invoice validation fails. Draft creation stores validation status without blocking."),validation_status:e.union([e.literal("valid"),e.literal("invalid"),e.literal("not_validated"),e.literal(null)]).nullish().describe("Stored German validation status from the last saved validation: 'valid', 'invalid', or 'not_validated'. German export downloads use this stored result when it is still current for the document; otherwise export re-validates the current document and returns a 422 with field errors if that live validation fails."),validation_errors:e.array(e.string()).nullish().describe("German XRechnung/ZUGFeRD validation error messages from the last validation run. These messages describe missing or invalid document/entity/customer data."),validated_at:e.string().nullish().describe("ISO timestamp when validation was last performed."),validation_version:e.string().nullish().describe("Validator/generator version used for the stored validation result."),validation_cache_key:e.string().nullish().describe("Hash of the relevant document, entity, and customer data used for the stored validation result. Export code uses this with validation_version to avoid trusting stale validation state.")}).describe("Server-managed validation state for a German e-invoice standard. Stored on invoice and credit-note documents as either xrechnung or zugferd. Buyer reference / Leitweg-ID input belongs under customer.e_invoicing.buyer_reference, not here."),e.null()]).optional().describe("Server-managed German XRechnung validation data stored on invoices. Only applicable when entity.country_code = 'DE' and XRechnung is enabled. Buyer reference / Leitweg-ID input is stored on customer.e_invoicing.buyer_reference."),zugferd:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Whether German XRechnung/ZUGFeRD validation was enabled when this document was last validated. This is server-managed document validation state, not buyer/customer routing data."),validation_required:e.boolean().nullish().describe("Whether this validation result was required for the save/finalization call. When true, final document creation/finalization fails if current German e-invoice validation fails. Draft creation stores validation status without blocking."),validation_status:e.union([e.literal("valid"),e.literal("invalid"),e.literal("not_validated"),e.literal(null)]).nullish().describe("Stored German validation status from the last saved validation: 'valid', 'invalid', or 'not_validated'. German export downloads use this stored result when it is still current for the document; otherwise export re-validates the current document and returns a 422 with field errors if that live validation fails."),validation_errors:e.array(e.string()).nullish().describe("German XRechnung/ZUGFeRD validation error messages from the last validation run. These messages describe missing or invalid document/entity/customer data."),validated_at:e.string().nullish().describe("ISO timestamp when validation was last performed."),validation_version:e.string().nullish().describe("Validator/generator version used for the stored validation result."),validation_cache_key:e.string().nullish().describe("Hash of the relevant document, entity, and customer data used for the stored validation result. Export code uses this with validation_version to avoid trusting stale validation state.")}).describe("Server-managed validation state for a German e-invoice standard. Stored on invoice and credit-note documents as either xrechnung or zugferd. Buyer reference / Leitweg-ID input belongs under customer.e_invoicing.buyer_reference, not here."),e.null()]).optional().describe("Server-managed German ZUGFeRD/Factur-X validation data stored on invoices. Only applicable when entity.country_code = 'DE' and ZUGFeRD is enabled. Buyer reference / Leitweg-ID input is stored on customer.e_invoicing.buyer_reference."),ujp:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Override entity/default behavior: true = validate UJP package requirements, false = skip, null = use default."),validation_required:e.boolean().nullish().describe("When true, final document creation must fail if current UJP package validation fails."),validation_status:e.union([e.literal("valid"),e.literal("invalid"),e.literal("not_validated"),e.literal(null)]).nullish().describe("Validation status for UJP package/envelope requirements."),validation_errors:e.array(e.string()).nullish().describe("Array of validation error messages when status is invalid."),validated_at:e.string().nullish().describe("ISO timestamp when UJP validation was last performed."),validation_version:e.string().nullish().describe("Validator/generator version used for the stored UJP validation result."),validation_cache_key:e.string().nullish().describe("Hash of the relevant document/entity data used for the stored UJP validation result.")}).describe("UJP package validation data for Slovenian invoice/credit-note exports. Web may expose UJP download as a secondary e-SLOG dropdown action when current UJP validation is valid."),e.null()]).optional().describe("UJP package validation data for Slovenian invoice exports. Only applicable when entity.country_code = 'SI' and UJP validation is enabled."),nav:e.union([e.object({status:e.enum(["reserved","dispatching","submitted","done","done_with_warnings","aborted","ambiguous","failed","annulment_pending","annulled"]).describe("Lifecycle status of a document's NAV submission."),operation:e.enum(["CREATE","MODIFY","STORNO"]).describe("NAV `invoiceOperation` used for this document's submission."),submission_id:e.string().describe("Identifier of the underlying nav_submissions row driving this document's NAV lifecycle."),environment:e.enum(["test","production"]).describe("NAV Online Sz\xE1mla environment. Test and production are fully separate NAV registrations."),invoice_number:e.string().describe("Invoice number as reported to NAV."),original_invoice_number:e.string().nullable().describe("Original invoice number this submission modifies/cancels, if this is a MODIFY/STORNO."),modification_index:e.number().nullable().describe("Modification index within the original invoice's NAV chain, if this is a MODIFY/STORNO."),transaction_id:e.string().nullable().describe("NAV transaction ID once the submission has been accepted by NAV."),submitted_at:e.string().nullable().describe("ISO datetime the submission was sent to NAV, if it has been."),completed_at:e.string().nullable().describe("ISO datetime NAV processing finished (done/failed/aborted/annulled), if it has."),error_code:e.string().nullable().describe("Top-level NAV error code, if the submission failed."),error_message:e.string().nullable().describe("Top-level NAV error message, if the submission failed."),messages:e.array(e.object({severity:e.enum(["error","warning","info"]).describe("Severity of the NAV validation/processing message."),code:e.string().nullable().describe("NAV validation/error code, if any."),message:e.string().nullable().describe("Human-readable message text from NAV, if any."),tag:e.string().nullable().describe("XML tag the message points to, if any."),line:e.number().nullable().describe("XML line number the message points to, if any.")}).describe("A single NAV technical or business validation/processing message.")).describe("Technical and business validation/processing messages returned by NAV."),retry_available:e.boolean().describe("Whether a retry action is currently available for this document's NAV submission."),reconcile_available:e.boolean().describe("Whether a manual reconcile-with-NAV action is currently available for this document."),annulment_available:e.boolean().describe("Whether a technical annulment action is currently available for this document's NAV submission.")}).describe("Server-managed Hungarian NAV Online Sz\xE1mla submission state for an invoice, credit note, or advance invoice. Never accepted as create/update input."),e.null()]).optional().describe("Server-managed Hungarian NAV Online Sz\xE1mla submission state for this invoice. Only applicable when entity.country_code = 'HU' and NAV is enabled."),sdi:e.union([e.object({country_code:e.enum(["IT"]).describe("Country code for Italy SDI lifecycle data."),status:e.enum(["pending","submitted","accepted","delivered","rejected","non_deliverable","failed","retry_scheduled"]).describe("Current SDI lifecycle status for the document."),latest_submission_id:e.string().nullish(),file_name:e.string().nullish(),sdi_identifier:e.string().nullish(),submitted_at:e.iso.datetime({}).nullish(),accepted_at:e.iso.datetime({}).nullish(),delivered_at:e.iso.datetime({}).nullish(),rejected_at:e.iso.datetime({}).nullish(),non_deliverable_at:e.iso.datetime({}).nullish(),failed_at:e.iso.datetime({}).nullish(),next_retry_at:e.iso.datetime({}).nullish(),retry_attempts:e.number().min(Dmy).nullish(),last_error:e.object({code:e.string().nullish(),message:e.string(),source:e.union([e.literal("validation"),e.literal("soap"),e.literal("callback"),e.literal("config"),e.literal("unknown"),e.literal(null)]).nullish()}).nullish(),diagnostics:e.object({requires_reconciliation:e.boolean().nullish().describe("True when dispatch may have reached SdI but no authoritative outcome is known; never automatically resend."),preparation_retry_count:e.number().min(Rmy).nullish(),certificate_warnings:e.array(e.string()).nullish(),endpoint:e.string().nullish(),certificate_fingerprint:e.string().nullish(),certificate_expires_at:e.iso.datetime({}).nullish()}).nullish()}).describe("Italy SDI/FatturaPA document lifecycle data. This is current document-facing state; full attempt history lives in SDI submissions and activities."),e.null()]).optional(),date_service:e.string().regex(_my).nullish().describe("Service date in YYYY-MM-DD format. For invoices and credit notes. When it (or date_service_to, if later) falls on or before date, foreign-currency conversion uses it as the exchange-rate reference date instead of date."),date_service_to:e.string().regex(Nmy).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices and credit notes. Use with date_service for date ranges. Continuous/period supplies are chargeable at period end, so this takes precedence over date_service as the exchange-rate reference date when it falls on or before date."),tax_rules:e.object({slovenia:e.object({article_76a:e.boolean().describe("Whether this domestic Slovenian document uses reverse charge under Article 76.a ZDDV-1. VAT remains reported but is not added to the payable total.")})}).optional(),items:e.array(e.object({id:e.string().max(Mmy),type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Item type. null = regular line item, 'separator' = visual section header."),name:e.string().max(Umy),description:e.string().nullable(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification: product, service, or advance. Used by country-specific tax and e-invoicing mappings, including Poland goods/services and Portugal SAF-T product typing."),price:e.number().nullish().describe("Per-unit net price before tax in the document currency's major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. Always stores net price. Null for separator items."),gross_price:e.number().nullish().describe("Per-unit gross price including tax in the document currency's major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents.\nOnly present if user originally sent gross price.\nUse gross pricing to keep invoice totals stable when VIES reverse charge is applied."),quantity:e.number().nullish().describe("Item quantity. Null for separator items."),unit:e.string().nullish().describe("Display unit for this line item. E-invoicing XML unit output may be overridden by `e_invoicing.unit_code`."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(Pmy).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(Cmy).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(wmy).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(Amy).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(Fmy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(kmy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Line-level e-invoicing options for XML output."),taxes:e.array(e.object({rate:e.number().nullish(),tax_id:e.string().nullish(),classification:e.string().nullish(),reverse_charge:e.boolean().nullish(),amount:e.number().nullish(),is_deductible:e.boolean().nullish().describe("AP compatibility flag derived from deductible_percentage when supplied. Without a percentage, true resolves to 100 and false resolves to 0."),deductible_percentage:e.number().min(jmy).max(Hmy).nullish().describe("Percentage of input tax that is deductible for AP bookkeeping, from 0 through 100."),pt_exemption_code:e.string().nullish(),pt_exemption_reason:e.string().nullish().describe("Optional Portugal legal wording override, at most 60 characters at issuance. Omit to use the explicitly selected tax's matching wording or the standard wording of pt_exemption_code. M19 has no default and requires a specific legal reason. The effective wording is saved on issuance."),destination_vat_country_code:e.string().min(Lmy).max(Gmy).nullish().describe("Server-owned ISO 3166-1 alpha-2 destination country marker indicating that this line tax is destination VAT for EU OSS. Null or omitted means issuer-country VAT.")}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:e.array(e.object({value:e.number().min(Vmy).describe("Discount value"),type:e.enum(["percent","amount"]).default(Kmy).describe("Discount type: 'percent' (default) or 'amount'")})).max(Zmy).describe("Line discounts (max 5) in request order. In `b2b_standard`, percentage discounts are calculated from the original line subtotal and fixed amounts are summed before tax. In `b2c_gross_discount`, discounts are applied sequentially to the running gross subtotal."),total:e.number().nullish().describe("Line total before tax in the document currency's major unit. Null for separator items."),total_with_tax:e.number().nullish().describe("Line total after tax in the document currency's major unit. Null for separator items."),total_converted:e.number().min(qmy).max(Wmy).nullish(),total_with_tax_converted:e.number().min(Ymy).max($my).nullish(),invoice_id:e.string().max(Qmy).nullish(),advance_invoice_id:e.string().max(Jmy).nullish(),delivery_note_id:e.string().max(Xmy).nullish(),expense_id:e.string().max(exy).nullish(),item_id:e.string().max(txy).nullish(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),revenue_recognition:e.union([e.object({method:e.union([e.literal("immediate"),e.literal("service_period_daily"),e.literal(null)]).nullish().describe("Line-level revenue recognition override. immediate recognizes on the document date; service_period_daily spreads over date_from/date_to."),date_from:e.string().nullish().describe("Line-level service period start date in YYYY-MM-DD format."),date_to:e.string().nullish().describe("Line-level service period end date in YYYY-MM-DD format.")}),e.null()]).optional().describe("Optional line-level revenue recognition override."),translations:e.object({name:e.object({"en-US":e.string().max(nxy).optional(),"de-DE":e.string().max(sxy).optional(),"it-IT":e.string().max(oxy).optional(),"fr-FR":e.string().max(ixy).optional(),"es-ES":e.string().max(axy).optional(),"sl-SI":e.string().max(rxy).optional(),"pt-PT":e.string().max(lxy).optional(),"nl-NL":e.string().max(dxy).optional(),"pl-PL":e.string().max(uxy).optional(),"hr-HR":e.string().max(cxy).optional(),"sv-SE":e.string().max(pxy).optional(),"fi-FI":e.string().max(mxy).optional(),"et-EE":e.string().max(xxy).optional(),"bg-BG":e.string().max(gxy).optional(),"cs-CZ":e.string().max(yxy).optional(),"sk-SK":e.string().max(Oxy).optional(),"nb-NO":e.string().max(vxy).optional(),"is-IS":e.string().max(Sxy).optional(),"hu-HU":e.string().max(hxy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(bxy).optional(),"de-DE":e.string().max(zxy).optional(),"it-IT":e.string().max(fxy).optional(),"fr-FR":e.string().max(Bxy).optional(),"es-ES":e.string().max(Txy).optional(),"sl-SI":e.string().max(Ixy).optional(),"pt-PT":e.string().max(Exy).optional(),"nl-NL":e.string().max(Dxy).optional(),"pl-PL":e.string().max(Rxy).optional(),"hr-HR":e.string().max(_xy).optional(),"sv-SE":e.string().max(Nxy).optional(),"fi-FI":e.string().max(Mxy).optional(),"et-EE":e.string().max(Uxy).optional(),"bg-BG":e.string().max(Pxy).optional(),"cs-CZ":e.string().max(Cxy).optional(),"sk-SK":e.string().max(wxy).optional(),"nb-NO":e.string().max(Axy).optional(),"is-IS":e.string().max(Fxy).optional(),"hu-HU":e.string().max(kxy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),financial_category_id:e.string().nullish().describe("Reporting financial category assigned to this document line.")})),document_relations:e.array(e.object({id:e.string(),source_type:e.enum(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e.string(),target_type:e.enum(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e.string(),relation_type:e.string(),entity_id:e.string(),created_at:e.iso.datetime({}),linked_document_voided_at:e.iso.datetime({}).nullish(),related_document:e.object({id:e.string(),type:e.enum(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),number:e.string(),date:e.string(),total_with_tax:e.number(),currency_code:e.string(),is_draft:e.boolean(),voided_at:e.string().nullable(),paid_in_full:e.boolean().nullable(),title_type:e.union([e.literal("estimate"),e.literal("proforma_invoice"),e.literal(null)]).nullable(),hide_prices:e.boolean().nullable()}).optional()})).optional(),payments:e.array(e.object({id:e.string().max(jxy),invoice_id:e.string().max(Hxy).nullish(),credit_note_id:e.string().max(Lxy).nullish(),advance_invoice_id:e.string().max(Gxy).nullish(),expense_id:e.string().max(Vxy).nullish(),applied_to_expense_id:e.string().max(Kxy).nullish(),amount:e.number().describe("Payment amount in the linked document currency's major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents."),currency_code:e.string().max(Zxy),amount_converted:e.number().min(qxy).max(Wxy),type:e.enum(["cash","bank_transfer","card","credit_card","debit_card","check","paypal","coupon","crypto","other","credit_note","advance"]).describe("Payment method. Use credit_card or debit_card to preserve the card distinction in Portuguese SAF-T (CC/CD). Legacy card remains accepted and exports as CC. crypto is opt-in: it is accepted only on a crypto-currency document, or when the entity enabled settings.crypto_invoicing or settings.crypto_equivalents; otherwise the API answers 422 with cause.code crypto_payment_type_not_enabled."),date:e.iso.datetime({}).describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),tag:e.string().max(Yxy).nullish(),reference:e.string().max($xy).nullish(),note:e.string().max(Qxy).nullish(),entity_id:e.string().max(Jxy),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),Invoice:e.object({id:e.string().max(Xxy),number:e.string().max(egy),voided_at:e.iso.datetime({}).nullish()}).nullish().describe("Related invoice, including cancellation status for payment controls"),CreditNote:e.object({id:e.string().max(tgy),number:e.string().max(ngy),voided_at:e.iso.datetime({}).nullish()}).nullish().describe("Related credit note, including cancellation status for payment controls"),AdvanceInvoice:e.object({id:e.string().max(sgy),number:e.string().max(ogy),is_draft:e.boolean().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),voided_at:e.iso.datetime({}).nullish()}).nullish().describe("Related advance invoice with lifecycle state used to determine payment mutability"),Expense:e.object({id:e.string().max(igy),type:e.enum(["invoice","credit_note","advance_invoice"]).describe("Expense document type. V1 accepts `invoice` only; AP credit notes and advance invoices are reserved for a later version."),supplier_document_number:e.string().max(agy).nullish(),date:e.string().regex(rgy).nullish(),total_with_tax:e.number().min(lgy).max(dgy).nullish()}).nullish().describe("Related expense"),AppliedToExpense:e.object({id:e.string().max(ugy),type:e.enum(["invoice","credit_note","advance_invoice"]).describe("Expense document type. V1 accepts `invoice` only; AP credit notes and advance invoices are reserved for a later version."),supplier_document_number:e.string().max(cgy).nullish(),date:e.string().regex(pgy).nullish(),total_with_tax:e.number().min(mgy).max(xgy).nullish()}).nullish().describe("Related expense")}).describe("Payment record for an outgoing document or expense")).optional().describe("Payment records linked to this invoice. Only present when requested via `?include=payments`.")}).describe("Invoice document with fiscalization support"),ggy=new RegExp("^[a-z]{3,4}_[0-9a-f]{24}$"),rxS=e.object({id:e.stringFormat("resource-id",ggy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),lxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ygy=36,Ogy=100,vgy=255,Sgy=2,hgy=500,bgy=500,zgy=20,fgy=100,Bgy="FR",Tgy=2,Igy=2,Egy="iban",Dgy=new RegExp("^[A-Za-z0-9]{7}$"),Rgy=new RegExp("^(?:[0-9]{11}|[A-Z0-9]{16})$"),_gy=new RegExp("^RF\\d{2}$"),Ngy="iban",Mgy=20,Ugy=128,Pgy=new RegExp("^[A-Za-z0-9:]+$"),Cgy=50,wgy=2,Agy=2,Fgy=new RegExp("^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"),kgy=30,jgy=100,Hgy=2e3,Lgy=2e3,Ggy=2e3,Vgy=2e3,Kgy=2e3,Zgy=2e3,qgy=2e3,Wgy=2e3,Ygy=2e3,$gy=2e3,Qgy=2e3,Jgy=2e3,Xgy=2e3,e0y=2e3,t0y=2e3,n0y=2e3,s0y=2e3,o0y=2e3,i0y=2e3,a0y=500,r0y=500,l0y=500,d0y=500,u0y=500,c0y=500,p0y=500,m0y=500,x0y=500,g0y=500,y0y=500,O0y=500,v0y=500,S0y=500,h0y=500,b0y=500,z0y=500,f0y=500,B0y=500,T0y=2e3,I0y=2e3,E0y=2e3,D0y=2e3,R0y=2e3,_0y=2e3,N0y=2e3,M0y=2e3,U0y=2e3,P0y=2e3,C0y=2e3,w0y=2e3,A0y=2e3,F0y=2e3,k0y=2e3,j0y=2e3,H0y=2e3,L0y=2e3,G0y=2e3,V0y=500,K0y=500,Z0y=500,q0y=500,W0y=500,Y0y=500,$0y=500,Q0y=500,J0y=500,X0y=500,eyy=500,tyy=500,nyy=500,syy=500,oyy=500,iyy=500,ayy=500,ryy=500,lyy=500,dyy=2e3,uyy=2e3,cyy=2e3,pyy=2e3,myy=2e3,xyy=2e3,gyy=2e3,yyy=2e3,Oyy=2e3,vyy=2e3,Syy=2e3,hyy=2e3,byy=2e3,zyy=2e3,fyy=2e3,Byy=2e3,Tyy=2e3,Iyy=2e3,Eyy=2e3,Dyy=500,Ryy=500,_yy=500,Nyy=500,Myy=500,Uyy=500,Pyy=500,Cyy=500,wyy=500,Ayy=500,Fyy=500,kyy=500,jyy=500,Hyy=500,Lyy=500,Gyy=500,Vyy=500,Kyy=500,Zyy=500,qyy=2e3,Wyy=2e3,Yyy=2e3,$yy=2e3,Qyy=2e3,Jyy=2e3,Xyy=2e3,eOy=2e3,tOy=2e3,nOy=2e3,sOy=2e3,oOy=2e3,iOy=2e3,aOy=2e3,rOy=2e3,lOy=2e3,dOy=2e3,uOy=2e3,cOy=2e3,pOy=2e3,mOy=2e3,xOy=2e3,gOy=2e3,yOy=2e3,OOy=2e3,vOy=2e3,SOy=2e3,hOy=2e3,bOy=2e3,zOy=2e3,fOy=2e3,BOy=2e3,TOy=2e3,IOy=2e3,EOy=2e3,DOy=2e3,ROy=2e3,_Oy=2e3,NOy=500,MOy=500,UOy=500,POy=500,COy=500,wOy=500,AOy=500,FOy=500,kOy=500,jOy=500,HOy=500,LOy=500,GOy=500,VOy=500,KOy=500,ZOy=500,qOy=500,WOy=500,YOy=500,$Oy=1e3,QOy=1e3,JOy=1e3,XOy=1e3,evy=1e3,tvy=1e3,nvy=1e3,svy=1e3,ovy=1e3,ivy=1e3,avy=1e3,rvy=1e3,lvy=1e3,dvy=1e3,uvy=1e3,cvy=1e3,pvy=1e3,mvy=1e3,xvy=1e3,gvy=500,yvy=500,Ovy=500,vvy=500,Svy=500,hvy=500,bvy=500,zvy=500,fvy=500,Bvy=500,Tvy=500,Ivy=500,Evy=500,Dvy=500,Rvy=500,_vy=500,Nvy=500,Mvy=500,Uvy=500,Pvy=2e3,Cvy=2e3,wvy=2e3,Avy=2e3,Fvy=2e3,kvy=2e3,jvy=2e3,Hvy=2e3,Lvy=2e3,Gvy=2e3,Vvy=2e3,Kvy=2e3,Zvy=2e3,qvy=2e3,Wvy=2e3,Yvy=2e3,$vy=2e3,Qvy=2e3,Jvy=2e3,Xvy=500,eSy=500,tSy=500,nSy=500,sSy=500,oSy=500,iSy=500,aSy=500,rSy=500,lSy=500,dSy=500,uSy=500,cSy=500,pSy=500,mSy=500,xSy=500,gSy=500,ySy=500,OSy=500,vSy=2e3,SSy=2e3,hSy=2e3,bSy=2e3,zSy=2e3,fSy=2e3,BSy=2e3,TSy=2e3,ISy=2e3,ESy=2e3,DSy=2e3,RSy=2e3,_Sy=2e3,NSy=2e3,MSy=2e3,USy=2e3,PSy=2e3,CSy=2e3,wSy=2e3,ASy=500,FSy=500,kSy=500,jSy=500,HSy=500,LSy=500,GSy=500,VSy=500,KSy=500,ZSy=500,qSy=500,WSy=500,YSy=500,$Sy=500,QSy=500,JSy=500,XSy=500,ehy=500,thy=500,nhy=2e3,shy=2e3,ohy=2e3,ihy=2e3,ahy=2e3,rhy=2e3,lhy=2e3,dhy=2e3,uhy=2e3,chy=2e3,phy=2e3,mhy=2e3,xhy=2e3,ghy=2e3,yhy=2e3,Ohy=2e3,vhy=2e3,Shy=2e3,hhy=2e3,bhy=500,zhy=500,fhy=500,Bhy=500,Thy=500,Ihy=500,Ehy=500,Dhy=500,Rhy=500,_hy=500,Nhy=500,Mhy=500,Uhy=500,Phy=500,Chy=500,why=500,Ahy=500,Fhy=500,khy=500,jhy=2e3,Hhy=2e3,Lhy=2e3,Ghy=2e3,Vhy=2e3,Khy=2e3,Zhy=2e3,qhy=2e3,Why=2e3,Yhy=2e3,$hy=2e3,Qhy=2e3,Jhy=2e3,Xhy=2e3,eby=2e3,tby=2e3,nby=2e3,sby=2e3,oby=2e3,iby=500,aby=500,rby=500,lby=500,dby=500,uby=500,cby=500,pby=500,mby=500,xby=500,gby=500,yby=500,Oby=500,vby=500,Sby=500,hby=500,bby=500,zby=500,fby=500,Bby=2e3,Tby=2e3,Iby=2e3,Eby=2e3,Dby=2e3,Rby=2e3,_by=2e3,Nby=2e3,Mby=2e3,Uby=2e3,Pby=2e3,Cby=2e3,wby=2e3,Aby=2e3,Fby=2e3,kby=2e3,jby=2e3,Hby=2e3,Lby=2e3,Gby=500,Vby=500,Kby=500,Zby=500,qby=500,Wby=500,Yby=500,$by=500,Qby=500,Jby=500,Xby=500,ezy=500,tzy=500,nzy=500,szy=500,ozy=500,izy=500,azy=500,rzy=500,lzy=2e3,dzy=2e3,uzy=2e3,czy=2e3,pzy=2e3,mzy=2e3,xzy=2e3,gzy=2e3,yzy=2e3,Ozy=2e3,vzy=2e3,Szy=2e3,hzy=2e3,bzy=2e3,zzy=2e3,fzy=2e3,Bzy=2e3,Tzy=2e3,Izy=2e3,Ezy=500,Dzy=500,Rzy=500,_zy=500,Nzy=500,Mzy=500,Uzy=500,Pzy=500,Czy=500,wzy=500,Azy=500,Fzy=500,kzy=500,jzy=500,Hzy=500,Lzy=500,Gzy=500,Vzy=500,Kzy=500,Zzy=2e3,qzy=2e3,Wzy=2e3,Yzy=2e3,$zy=2e3,Qzy=2e3,Jzy=2e3,Xzy=2e3,efy=2e3,tfy=2e3,nfy=2e3,sfy=2e3,ofy=2e3,ify=2e3,afy=2e3,rfy=2e3,lfy=2e3,dfy=2e3,ufy=2e3,cfy=2e3,pfy=2e3,mfy=2e3,xfy=2e3,gfy=2e3,yfy=2e3,Ofy=2e3,vfy=2e3,Sfy=2e3,hfy=2e3,bfy=2e3,zfy=2e3,ffy=2e3,Bfy=2e3,Tfy=2e3,Ify=2e3,Efy=2e3,Dfy=2e3,Rfy=2e3,_fy=2e3,Nfy=2e3,Mfy=2e3,Ufy=2e3,Pfy=2e3,Cfy=2e3,wfy=2e3,Afy=2e3,Ffy=2e3,kfy=2e3,jfy=2e3,Hfy=2e3,Lfy=2e3,Gfy=2e3,Vfy=2e3,Kfy=2e3,Zfy=2e3,qfy=2e3,Wfy=2e3,Yfy=2e3,$fy=2e3,Qfy=2e3,Jfy=2e3,Xfy=2e3,eBy=2e3,tBy=2e3,nBy=2e3,sBy=2e3,oBy=2e3,iBy=2e3,aBy=2e3,rBy=2e3,lBy=2e3,dBy=2e3,uBy=2e3,cBy=2e3,pBy=2e3,mBy=2e3,xBy=2e3,gBy=2e3,yBy=2e3,OBy=2e3,vBy=2e3,SBy=2e3,hBy=2e3,bBy=2e3,zBy=2e3,fBy=2e3,BBy=2e3,TBy=2e3,IBy=2e3,EBy=2e3,DBy=2e3,RBy=2e3,_By=2e3,NBy=2e3,MBy=2e3,UBy=2e3,PBy=2e3,CBy=2e3,wBy=2e3,ABy=2e3,FBy=2e3,kBy=2e3,jBy=2e3,HBy=2e3,LBy=2e3,GBy=2e3,VBy=2e3,KBy=2e3,ZBy=2e3,qBy=2e3,WBy=2e3,YBy=2e3,$By=2e3,QBy=2e3,JBy=2e3,XBy=2e3,eTy=2e3,tTy=2e3,nTy=2e3,sTy=2e3,oTy=2e3,iTy=2e3,aTy=2e3,rTy=2e3,lTy=2e3,dTy=2e3,uTy=2e3,cTy=2e3,pTy=2e3,mTy=2e3,xTy=2e3,gTy=2e3,yTy=2e3,OTy=2e3,vTy=2e3,STy=2e3,hTy=2e3,bTy=2e3,zTy=2e3,fTy=2e3,BTy=2e3,TTy=2e3,ITy=2e3,ETy=2e3,DTy=2e3,RTy=2e3,_Ty=2e3,NTy=2e3,MTy=2e3,UTy=2e3,PTy=2e3,CTy=2e3,wTy=2e3,ATy=2e3,FTy=2e3,kTy=2e3,jTy=2e3,HTy=2e3,LTy=2e3,GTy=2e3,VTy=2e3,KTy=2e3,ZTy=2e3,qTy=2e3,WTy=2e3,YTy=2e3,$Ty=2e3,QTy=2e3,JTy=2e3,XTy=2e3,eIy=2e3,tIy=2e3,nIy=2e3,sIy=2e3,oIy=2e3,iIy=2e3,aIy=2e3,rIy=2e3,lIy=2e3,dIy=2e3,uIy=2e3,cIy=2e3,pIy=2e3,mIy=2e3,xIy=2e3,gIy=2e3,yIy=2e3,OIy=2e3,vIy=2e3,SIy=2e3,hIy=500,bIy="iban",zIy=36,fIy=255,BIy=2,TIy=500,IIy=500,EIy=20,DIy=100,RIy="FR",_Iy=2,NIy=2,MIy="iban",UIy=new RegExp("^[A-Za-z0-9]{7}$"),PIy=new RegExp("^(?:[0-9]{11}|[A-Z0-9]{16})$"),CIy=new RegExp("^RF\\d{2}$"),wIy="iban",AIy=500,FIy=2e3,kIy=2e3,jIy=2e3,HIy=2e3,LIy=2e3,GIy=2e3,VIy=2e3,KIy=2e3,ZIy=2e3,qIy=2e3,WIy=2e3,YIy=2e3,$Iy=2e3,QIy=2e3,JIy=2e3,XIy=2e3,eEy=2e3,tEy=2e3,nEy=2e3,sEy=500,oEy=500,iEy=500,aEy=500,rEy=500,lEy=500,dEy=500,uEy=500,cEy=500,pEy=500,mEy=500,xEy=500,gEy=500,yEy=500,OEy=500,vEy=500,SEy=500,hEy=500,bEy=500,zEy=2e3,fEy=2e3,BEy=2e3,TEy=2e3,IEy=2e3,EEy=2e3,DEy=2e3,REy=2e3,_Ey=2e3,NEy=2e3,MEy=2e3,UEy=2e3,PEy=2e3,CEy=2e3,wEy=2e3,AEy=2e3,FEy=2e3,kEy=2e3,jEy=2e3,HEy=500,LEy=500,GEy=500,VEy=500,KEy=500,ZEy=500,qEy=500,WEy=500,YEy=500,$Ey=500,QEy=500,JEy=500,XEy=500,eDy=500,tDy=500,nDy=500,sDy=500,oDy=500,iDy=500,aDy=1e3,rDy=1e3,lDy=1e3,dDy=1e3,uDy=1e3,cDy=1e3,pDy=1e3,mDy=1e3,xDy=1e3,gDy=1e3,yDy=1e3,ODy=1e3,vDy=1e3,SDy=1e3,hDy=1e3,bDy=1e3,zDy=1e3,fDy=1e3,BDy=1e3,TDy=10,IDy=36,EDy=-2147483648,DDy=2147483647,RDy=100,_Dy=0,NDy=3,MDy=3,UDy=0,PDy=-140737488355328,CDy=0x7fffffffffff,wDy=-140737488355328,ADy=0x7fffffffffff,FDy=-140737488355328,kDy=0x7fffffffffff,jDy=-140737488355328,HDy=0x7fffffffffff,LDy=500,GDy=0,VDy=new RegExp("^\\d{2}$"),KDy=12,ZDy=0,qDy=0,WDy=0,YDy=new RegExp("^\\d{1,7}$"),$Dy=10,QDy=250,JDy=0,XDy=100,eRy=1e-4,tRy=0,nRy=3650,sRy=0,oRy=4,iRy=0,aRy=0,rRy=new RegExp("^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z?)?$"),lRy=new RegExp("^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z?)?$"),dRy=36,uRy=500,cRy=8,pRy=new RegExp("^VATEX-[A-Z0-9-]{2,24}$"),mRy=500,xRy=100,gRy=200,yRy=200,ORy=0,vRy=100,SRy=2,hRy=2,bRy=0,zRy="percent",fRy=5,BRy=-140737488355328,TRy=0x7fffffffffff,IRy=-140737488355328,ERy=0x7fffffffffff,DRy=36,RRy=36,_Ry=36,NRy=36,MRy=36,URy=500,PRy=500,CRy=500,wRy=500,ARy=500,FRy=500,kRy=500,jRy=500,HRy=500,LRy=500,GRy=500,VRy=500,KRy=500,ZRy=500,qRy=500,WRy=500,YRy=500,$Ry=500,QRy=500,JRy=2e3,XRy=2e3,e_y=2e3,t_y=2e3,n_y=2e3,s_y=2e3,o_y=2e3,i_y=2e3,a_y=2e3,r_y=2e3,l_y=2e3,d_y=2e3,u_y=2e3,c_y=2e3,p_y=2e3,m_y=2e3,x_y=2e3,g_y=2e3,y_y=2e3,O_y=36,v_y=36,S_y=36,h_y=36,b_y=36,z_y=36,f_y=10,B_y=-140737488355328,T_y=0x7fffffffffff,I_y=100,E_y=100,D_y=500,R_y=36,__y=36,N_y=100,M_y=36,U_y=100,P_y=36,C_y=100,w_y=36,A_y=255,F_y=new RegExp("^\\d{4}-\\d{2}-\\d{2}$"),k_y=-140737488355328,j_y=0x7fffffffffff,H_y=36,L_y=255,G_y=new RegExp("^\\d{4}-\\d{2}-\\d{2}$"),V_y=-140737488355328,K_y=0x7fffffffffff,dxS=e.object({id:e.string().max(ygy),number:e.string().max(Ogy),is_draft:e.boolean().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e.iso.datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:e.object({name:e.string().nullish(),unit_name:e.string().nullish().describe("Deprecated compatibility field. This value is no longer used for business-unit rendering; use `business_unit.name` on the document instead."),email:e.string().max(vgy).nullish(),address:e.string().nullish(),address_2:e.string().nullish(),post_code:e.string().nullish(),city:e.string().nullish(),state:e.string().nullish(),country:e.string().nullish(),country_code:e.string().max(Sgy).nullish(),tax_number:e.string().nullish(),tax_number_2:e.string().nullish(),company_number:e.string().nullish(),phone:e.string().nullish(),peppol_id:e.string().nullish(),peppol_scheme_id:e.string().nullish(),e_invoicing:e.union([e.object({buyer_reference:e.string().nullish().describe("Canonical EN 16931 BT-10 buyer reference stored on the document customer snapshot. For German public-sector recipients, enter the Leitweg-ID here. For German B2B recipients this is optional unless the buyer requires it. Do not send a separate leitweg_id, routing_id, or top-level buyer_reference field.")}).describe("Customer e-invoicing data copied into the document customer snapshot. These fields are buyer/customer document data, not German validation state."),e.null()]).optional(),delivery_address:e.union([e.object({address:e.string().min(1).max(hgy),address_2:e.string().max(bgy).nullish(),post_code:e.string().min(1).max(zgy),city:e.string().min(1).max(fgy),country_code:e.string().min(Tgy).max(Igy).nullish().default(Bgy)}).describe("Physical delivery address when it differs from the buyer's billing address. Required by French law when applicable."),e.null()]).optional().describe("Physical delivery address for this document when it differs from the customer's billing address. It is stored only on the document snapshot and is not saved to the customer record."),bank_accounts:e.array(e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(Egy).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)"),is_default:e.boolean().nullish().describe("Whether this is the default account for new invoices")})).nullish(),is_end_consumer:e.boolean().nullish(),is_tax_subject:e.boolean().nullish().describe("Whether the customer is VAT identified. Stored in the document snapshot and used by country-specific tax reports; a country code alone does not imply VAT identification."),ujp:e.union([e.object({receiver_name:e.string().min(1).nullish().describe("UJP envelope recipient name. If omitted, package generation falls back to the document customer name."),receiver_identifier:e.string().min(1).nullish().describe("Optional recipient tax number or identifier override for the UJP envelope. If omitted, package generation falls back to the document customer tax number."),receiver_agent:e.string().min(1).nullish().describe("Recipient BIC for the UJP envelope. Public budget users normally use UJPLSI2DICL."),receiver_mailbox:e.string().min(1).nullish().describe("Recipient IBAN/TRR mailbox for the UJP envelope.")}).describe("Optional Slovenian UJP recipient routing data stored on customers and copied into document customer snapshots."),e.null()]).optional(),sdi:e.union([e.object({recipient_code:e.string().regex(Dgy).nullish().describe("Italian SdI recipient code for buyer routing. When neither a code nor PEC is supplied, domestic invoices use 0000000 and the seller must provide the buyer a courtesy copy and availability notice."),pec:e.email().nullish().describe("Italian certified email address for buyer routing. When provided without an SdI recipient code, FatturaPA uses `CodiceDestinatario = 0000000` plus `PECDestinatario`."),fiscal_code:e.string().regex(Rgy).nullish().describe("Buyer's Italian codice fiscale, independent of their VAT number. For a domestic consumer, legacy tax_number remains a fallback fiscal-code input. Required for VAT-group participants where applicable."),fiscal_regime:e.string().regex(_gy).nullish().describe("Issuer-only fiscal regime snapshot, captured from settings.tax_rules.italy at issuance. Ignored for buyer routing.")}),e.null()]).optional(),bank_account:e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(Ngy).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)")}).nullish(),crypto_wallet:e.union([e.object({code:e.enum(["BTC","ETH","SOL","USDC","USDT"]).describe("Crypto asset code this wallet receives."),address:e.string().min(Mgy).max(Ugy).regex(Pgy).describe("Wallet address for this asset."),network:e.string().max(Cgy).nullish().describe("Free-text network label printed alongside the wallet address, e.g. 'Ethereum', 'Solana', 'Tron'.")}),e.null()]).optional()}).describe("Document issuer (entity) information"),business_unit_id:e.string().nullish().describe("Selected business-unit ID used to derive document presentation and defaults."),business_unit:e.union([e.object({id:e.string(),name:e.string(),deleted_at:e.iso.datetime({}).nullish(),address:e.string().nullish(),address_2:e.string().nullish(),post_code:e.string().nullish(),city:e.string().nullish(),state:e.string().nullish(),country:e.string().nullish(),country_code:e.string().min(wgy).max(Agy).nullish(),email:e.email().nullish(),phone:e.string().nullish(),website:e.url().nullish(),settings:e.object({pdf_template:e.union([e.literal("modern"),e.literal("classic"),e.literal("condensed"),e.literal("minimal"),e.literal("fashion"),e.literal("timeless_modern_full_data"),e.literal(null)]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),primary_color:e.string().regex(Fgy).nullish(),logo_scale_percent:e.number().min(kgy).max(jgy).nullish().describe("Scale the PDF logo size as a percentage of the template default size. 100 keeps the original size."),email_defaults:e.object({invoice_subject:e.string().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e.string().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),estimate_subject:e.string().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e.string().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),credit_note_subject:e.string().nullish().describe("Default subject line for credit note emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),credit_note_body:e.string().nullish().describe("Default body text for credit note emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),advance_invoice_subject:e.string().nullish().describe("Default subject line for advance invoice emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),advance_invoice_body:e.string().nullish().describe("Default body text for advance invoice emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),delivery_note_subject:e.string().nullish().describe("Default subject line for delivery note emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),delivery_note_body:e.string().nullish().describe("Default body text for delivery note emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),purchase_order_subject:e.string().nullish().describe("Default subject line for purchase order emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}"),purchase_order_body:e.string().nullish().describe("Default body text for purchase order emails. Available variables: {document_number}, {entity_name}, {entity_email}, {entity_address}, {entity_post_code}, {entity_city}, {entity_country}, {entity_tax_number}, {entity_company_number}, {customer_name}, {document_date}, {document_total}, {document_currency}")}).nullish(),translations:e.union([e.object({default_invoice_note:e.object({"en-US":e.string().max(Hgy).optional(),"de-DE":e.string().max(Lgy).optional(),"it-IT":e.string().max(Ggy).optional(),"fr-FR":e.string().max(Vgy).optional(),"es-ES":e.string().max(Kgy).optional(),"sl-SI":e.string().max(Zgy).optional(),"pt-PT":e.string().max(qgy).optional(),"nl-NL":e.string().max(Wgy).optional(),"pl-PL":e.string().max(Ygy).optional(),"hr-HR":e.string().max($gy).optional(),"sv-SE":e.string().max(Qgy).optional(),"fi-FI":e.string().max(Jgy).optional(),"et-EE":e.string().max(Xgy).optional(),"bg-BG":e.string().max(e0y).optional(),"cs-CZ":e.string().max(t0y).optional(),"sk-SK":e.string().max(n0y).optional(),"nb-NO":e.string().max(s0y).optional(),"is-IS":e.string().max(o0y).optional(),"hu-HU":e.string().max(i0y).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_invoice_payment_terms:e.object({"en-US":e.string().max(a0y).optional(),"de-DE":e.string().max(r0y).optional(),"it-IT":e.string().max(l0y).optional(),"fr-FR":e.string().max(d0y).optional(),"es-ES":e.string().max(u0y).optional(),"sl-SI":e.string().max(c0y).optional(),"pt-PT":e.string().max(p0y).optional(),"nl-NL":e.string().max(m0y).optional(),"pl-PL":e.string().max(x0y).optional(),"hr-HR":e.string().max(g0y).optional(),"sv-SE":e.string().max(y0y).optional(),"fi-FI":e.string().max(O0y).optional(),"et-EE":e.string().max(v0y).optional(),"bg-BG":e.string().max(S0y).optional(),"cs-CZ":e.string().max(h0y).optional(),"sk-SK":e.string().max(b0y).optional(),"nb-NO":e.string().max(z0y).optional(),"is-IS":e.string().max(f0y).optional(),"hu-HU":e.string().max(B0y).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_estimate_note:e.object({"en-US":e.string().max(T0y).optional(),"de-DE":e.string().max(I0y).optional(),"it-IT":e.string().max(E0y).optional(),"fr-FR":e.string().max(D0y).optional(),"es-ES":e.string().max(R0y).optional(),"sl-SI":e.string().max(_0y).optional(),"pt-PT":e.string().max(N0y).optional(),"nl-NL":e.string().max(M0y).optional(),"pl-PL":e.string().max(U0y).optional(),"hr-HR":e.string().max(P0y).optional(),"sv-SE":e.string().max(C0y).optional(),"fi-FI":e.string().max(w0y).optional(),"et-EE":e.string().max(A0y).optional(),"bg-BG":e.string().max(F0y).optional(),"cs-CZ":e.string().max(k0y).optional(),"sk-SK":e.string().max(j0y).optional(),"nb-NO":e.string().max(H0y).optional(),"is-IS":e.string().max(L0y).optional(),"hu-HU":e.string().max(G0y).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_estimate_payment_terms:e.object({"en-US":e.string().max(V0y).optional(),"de-DE":e.string().max(K0y).optional(),"it-IT":e.string().max(Z0y).optional(),"fr-FR":e.string().max(q0y).optional(),"es-ES":e.string().max(W0y).optional(),"sl-SI":e.string().max(Y0y).optional(),"pt-PT":e.string().max($0y).optional(),"nl-NL":e.string().max(Q0y).optional(),"pl-PL":e.string().max(J0y).optional(),"hr-HR":e.string().max(X0y).optional(),"sv-SE":e.string().max(eyy).optional(),"fi-FI":e.string().max(tyy).optional(),"et-EE":e.string().max(nyy).optional(),"bg-BG":e.string().max(syy).optional(),"cs-CZ":e.string().max(oyy).optional(),"sk-SK":e.string().max(iyy).optional(),"nb-NO":e.string().max(ayy).optional(),"is-IS":e.string().max(ryy).optional(),"hu-HU":e.string().max(lyy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_credit_note_note:e.object({"en-US":e.string().max(dyy).optional(),"de-DE":e.string().max(uyy).optional(),"it-IT":e.string().max(cyy).optional(),"fr-FR":e.string().max(pyy).optional(),"es-ES":e.string().max(myy).optional(),"sl-SI":e.string().max(xyy).optional(),"pt-PT":e.string().max(gyy).optional(),"nl-NL":e.string().max(yyy).optional(),"pl-PL":e.string().max(Oyy).optional(),"hr-HR":e.string().max(vyy).optional(),"sv-SE":e.string().max(Syy).optional(),"fi-FI":e.string().max(hyy).optional(),"et-EE":e.string().max(byy).optional(),"bg-BG":e.string().max(zyy).optional(),"cs-CZ":e.string().max(fyy).optional(),"sk-SK":e.string().max(Byy).optional(),"nb-NO":e.string().max(Tyy).optional(),"is-IS":e.string().max(Iyy).optional(),"hu-HU":e.string().max(Eyy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_credit_note_payment_terms:e.object({"en-US":e.string().max(Dyy).optional(),"de-DE":e.string().max(Ryy).optional(),"it-IT":e.string().max(_yy).optional(),"fr-FR":e.string().max(Nyy).optional(),"es-ES":e.string().max(Myy).optional(),"sl-SI":e.string().max(Uyy).optional(),"pt-PT":e.string().max(Pyy).optional(),"nl-NL":e.string().max(Cyy).optional(),"pl-PL":e.string().max(wyy).optional(),"hr-HR":e.string().max(Ayy).optional(),"sv-SE":e.string().max(Fyy).optional(),"fi-FI":e.string().max(kyy).optional(),"et-EE":e.string().max(jyy).optional(),"bg-BG":e.string().max(Hyy).optional(),"cs-CZ":e.string().max(Lyy).optional(),"sk-SK":e.string().max(Gyy).optional(),"nb-NO":e.string().max(Vyy).optional(),"is-IS":e.string().max(Kyy).optional(),"hu-HU":e.string().max(Zyy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_advance_invoice_note:e.object({"en-US":e.string().max(qyy).optional(),"de-DE":e.string().max(Wyy).optional(),"it-IT":e.string().max(Yyy).optional(),"fr-FR":e.string().max($yy).optional(),"es-ES":e.string().max(Qyy).optional(),"sl-SI":e.string().max(Jyy).optional(),"pt-PT":e.string().max(Xyy).optional(),"nl-NL":e.string().max(eOy).optional(),"pl-PL":e.string().max(tOy).optional(),"hr-HR":e.string().max(nOy).optional(),"sv-SE":e.string().max(sOy).optional(),"fi-FI":e.string().max(oOy).optional(),"et-EE":e.string().max(iOy).optional(),"bg-BG":e.string().max(aOy).optional(),"cs-CZ":e.string().max(rOy).optional(),"sk-SK":e.string().max(lOy).optional(),"nb-NO":e.string().max(dOy).optional(),"is-IS":e.string().max(uOy).optional(),"hu-HU":e.string().max(cOy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_delivery_note_note:e.object({"en-US":e.string().max(pOy).optional(),"de-DE":e.string().max(mOy).optional(),"it-IT":e.string().max(xOy).optional(),"fr-FR":e.string().max(gOy).optional(),"es-ES":e.string().max(yOy).optional(),"sl-SI":e.string().max(OOy).optional(),"pt-PT":e.string().max(vOy).optional(),"nl-NL":e.string().max(SOy).optional(),"pl-PL":e.string().max(hOy).optional(),"hr-HR":e.string().max(bOy).optional(),"sv-SE":e.string().max(zOy).optional(),"fi-FI":e.string().max(fOy).optional(),"et-EE":e.string().max(BOy).optional(),"bg-BG":e.string().max(TOy).optional(),"cs-CZ":e.string().max(IOy).optional(),"sk-SK":e.string().max(EOy).optional(),"nb-NO":e.string().max(DOy).optional(),"is-IS":e.string().max(ROy).optional(),"hu-HU":e.string().max(_Oy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),document_footer:e.object({"en-US":e.string().max(NOy).optional(),"de-DE":e.string().max(MOy).optional(),"it-IT":e.string().max(UOy).optional(),"fr-FR":e.string().max(POy).optional(),"es-ES":e.string().max(COy).optional(),"sl-SI":e.string().max(wOy).optional(),"pt-PT":e.string().max(AOy).optional(),"nl-NL":e.string().max(FOy).optional(),"pl-PL":e.string().max(kOy).optional(),"hr-HR":e.string().max(jOy).optional(),"sv-SE":e.string().max(HOy).optional(),"fi-FI":e.string().max(LOy).optional(),"et-EE":e.string().max(GOy).optional(),"bg-BG":e.string().max(VOy).optional(),"cs-CZ":e.string().max(KOy).optional(),"sk-SK":e.string().max(ZOy).optional(),"nb-NO":e.string().max(qOy).optional(),"is-IS":e.string().max(WOy).optional(),"hu-HU":e.string().max(YOy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),default_document_signature:e.object({"en-US":e.string().max($Oy).optional(),"de-DE":e.string().max(QOy).optional(),"it-IT":e.string().max(JOy).optional(),"fr-FR":e.string().max(XOy).optional(),"es-ES":e.string().max(evy).optional(),"sl-SI":e.string().max(tvy).optional(),"pt-PT":e.string().max(nvy).optional(),"nl-NL":e.string().max(svy).optional(),"pl-PL":e.string().max(ovy).optional(),"hr-HR":e.string().max(ivy).optional(),"sv-SE":e.string().max(avy).optional(),"fi-FI":e.string().max(rvy).optional(),"et-EE":e.string().max(lvy).optional(),"bg-BG":e.string().max(dvy).optional(),"cs-CZ":e.string().max(uvy).optional(),"sk-SK":e.string().max(cvy).optional(),"nb-NO":e.string().max(pvy).optional(),"is-IS":e.string().max(mvy).optional(),"hu-HU":e.string().max(xvy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),email_defaults:e.object({invoice_subject:e.object({"en-US":e.string().max(gvy).optional(),"de-DE":e.string().max(yvy).optional(),"it-IT":e.string().max(Ovy).optional(),"fr-FR":e.string().max(vvy).optional(),"es-ES":e.string().max(Svy).optional(),"sl-SI":e.string().max(hvy).optional(),"pt-PT":e.string().max(bvy).optional(),"nl-NL":e.string().max(zvy).optional(),"pl-PL":e.string().max(fvy).optional(),"hr-HR":e.string().max(Bvy).optional(),"sv-SE":e.string().max(Tvy).optional(),"fi-FI":e.string().max(Ivy).optional(),"et-EE":e.string().max(Evy).optional(),"bg-BG":e.string().max(Dvy).optional(),"cs-CZ":e.string().max(Rvy).optional(),"sk-SK":e.string().max(_vy).optional(),"nb-NO":e.string().max(Nvy).optional(),"is-IS":e.string().max(Mvy).optional(),"hu-HU":e.string().max(Uvy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),invoice_body:e.object({"en-US":e.string().max(Pvy).optional(),"de-DE":e.string().max(Cvy).optional(),"it-IT":e.string().max(wvy).optional(),"fr-FR":e.string().max(Avy).optional(),"es-ES":e.string().max(Fvy).optional(),"sl-SI":e.string().max(kvy).optional(),"pt-PT":e.string().max(jvy).optional(),"nl-NL":e.string().max(Hvy).optional(),"pl-PL":e.string().max(Lvy).optional(),"hr-HR":e.string().max(Gvy).optional(),"sv-SE":e.string().max(Vvy).optional(),"fi-FI":e.string().max(Kvy).optional(),"et-EE":e.string().max(Zvy).optional(),"bg-BG":e.string().max(qvy).optional(),"cs-CZ":e.string().max(Wvy).optional(),"sk-SK":e.string().max(Yvy).optional(),"nb-NO":e.string().max($vy).optional(),"is-IS":e.string().max(Qvy).optional(),"hu-HU":e.string().max(Jvy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),estimate_subject:e.object({"en-US":e.string().max(Xvy).optional(),"de-DE":e.string().max(eSy).optional(),"it-IT":e.string().max(tSy).optional(),"fr-FR":e.string().max(nSy).optional(),"es-ES":e.string().max(sSy).optional(),"sl-SI":e.string().max(oSy).optional(),"pt-PT":e.string().max(iSy).optional(),"nl-NL":e.string().max(aSy).optional(),"pl-PL":e.string().max(rSy).optional(),"hr-HR":e.string().max(lSy).optional(),"sv-SE":e.string().max(dSy).optional(),"fi-FI":e.string().max(uSy).optional(),"et-EE":e.string().max(cSy).optional(),"bg-BG":e.string().max(pSy).optional(),"cs-CZ":e.string().max(mSy).optional(),"sk-SK":e.string().max(xSy).optional(),"nb-NO":e.string().max(gSy).optional(),"is-IS":e.string().max(ySy).optional(),"hu-HU":e.string().max(OSy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),estimate_body:e.object({"en-US":e.string().max(vSy).optional(),"de-DE":e.string().max(SSy).optional(),"it-IT":e.string().max(hSy).optional(),"fr-FR":e.string().max(bSy).optional(),"es-ES":e.string().max(zSy).optional(),"sl-SI":e.string().max(fSy).optional(),"pt-PT":e.string().max(BSy).optional(),"nl-NL":e.string().max(TSy).optional(),"pl-PL":e.string().max(ISy).optional(),"hr-HR":e.string().max(ESy).optional(),"sv-SE":e.string().max(DSy).optional(),"fi-FI":e.string().max(RSy).optional(),"et-EE":e.string().max(_Sy).optional(),"bg-BG":e.string().max(NSy).optional(),"cs-CZ":e.string().max(MSy).optional(),"sk-SK":e.string().max(USy).optional(),"nb-NO":e.string().max(PSy).optional(),"is-IS":e.string().max(CSy).optional(),"hu-HU":e.string().max(wSy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),credit_note_subject:e.object({"en-US":e.string().max(ASy).optional(),"de-DE":e.string().max(FSy).optional(),"it-IT":e.string().max(kSy).optional(),"fr-FR":e.string().max(jSy).optional(),"es-ES":e.string().max(HSy).optional(),"sl-SI":e.string().max(LSy).optional(),"pt-PT":e.string().max(GSy).optional(),"nl-NL":e.string().max(VSy).optional(),"pl-PL":e.string().max(KSy).optional(),"hr-HR":e.string().max(ZSy).optional(),"sv-SE":e.string().max(qSy).optional(),"fi-FI":e.string().max(WSy).optional(),"et-EE":e.string().max(YSy).optional(),"bg-BG":e.string().max($Sy).optional(),"cs-CZ":e.string().max(QSy).optional(),"sk-SK":e.string().max(JSy).optional(),"nb-NO":e.string().max(XSy).optional(),"is-IS":e.string().max(ehy).optional(),"hu-HU":e.string().max(thy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),credit_note_body:e.object({"en-US":e.string().max(nhy).optional(),"de-DE":e.string().max(shy).optional(),"it-IT":e.string().max(ohy).optional(),"fr-FR":e.string().max(ihy).optional(),"es-ES":e.string().max(ahy).optional(),"sl-SI":e.string().max(rhy).optional(),"pt-PT":e.string().max(lhy).optional(),"nl-NL":e.string().max(dhy).optional(),"pl-PL":e.string().max(uhy).optional(),"hr-HR":e.string().max(chy).optional(),"sv-SE":e.string().max(phy).optional(),"fi-FI":e.string().max(mhy).optional(),"et-EE":e.string().max(xhy).optional(),"bg-BG":e.string().max(ghy).optional(),"cs-CZ":e.string().max(yhy).optional(),"sk-SK":e.string().max(Ohy).optional(),"nb-NO":e.string().max(vhy).optional(),"is-IS":e.string().max(Shy).optional(),"hu-HU":e.string().max(hhy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),advance_invoice_subject:e.object({"en-US":e.string().max(bhy).optional(),"de-DE":e.string().max(zhy).optional(),"it-IT":e.string().max(fhy).optional(),"fr-FR":e.string().max(Bhy).optional(),"es-ES":e.string().max(Thy).optional(),"sl-SI":e.string().max(Ihy).optional(),"pt-PT":e.string().max(Ehy).optional(),"nl-NL":e.string().max(Dhy).optional(),"pl-PL":e.string().max(Rhy).optional(),"hr-HR":e.string().max(_hy).optional(),"sv-SE":e.string().max(Nhy).optional(),"fi-FI":e.string().max(Mhy).optional(),"et-EE":e.string().max(Uhy).optional(),"bg-BG":e.string().max(Phy).optional(),"cs-CZ":e.string().max(Chy).optional(),"sk-SK":e.string().max(why).optional(),"nb-NO":e.string().max(Ahy).optional(),"is-IS":e.string().max(Fhy).optional(),"hu-HU":e.string().max(khy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),advance_invoice_body:e.object({"en-US":e.string().max(jhy).optional(),"de-DE":e.string().max(Hhy).optional(),"it-IT":e.string().max(Lhy).optional(),"fr-FR":e.string().max(Ghy).optional(),"es-ES":e.string().max(Vhy).optional(),"sl-SI":e.string().max(Khy).optional(),"pt-PT":e.string().max(Zhy).optional(),"nl-NL":e.string().max(qhy).optional(),"pl-PL":e.string().max(Why).optional(),"hr-HR":e.string().max(Yhy).optional(),"sv-SE":e.string().max($hy).optional(),"fi-FI":e.string().max(Qhy).optional(),"et-EE":e.string().max(Jhy).optional(),"bg-BG":e.string().max(Xhy).optional(),"cs-CZ":e.string().max(eby).optional(),"sk-SK":e.string().max(tby).optional(),"nb-NO":e.string().max(nby).optional(),"is-IS":e.string().max(sby).optional(),"hu-HU":e.string().max(oby).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),delivery_note_subject:e.object({"en-US":e.string().max(iby).optional(),"de-DE":e.string().max(aby).optional(),"it-IT":e.string().max(rby).optional(),"fr-FR":e.string().max(lby).optional(),"es-ES":e.string().max(dby).optional(),"sl-SI":e.string().max(uby).optional(),"pt-PT":e.string().max(cby).optional(),"nl-NL":e.string().max(pby).optional(),"pl-PL":e.string().max(mby).optional(),"hr-HR":e.string().max(xby).optional(),"sv-SE":e.string().max(gby).optional(),"fi-FI":e.string().max(yby).optional(),"et-EE":e.string().max(Oby).optional(),"bg-BG":e.string().max(vby).optional(),"cs-CZ":e.string().max(Sby).optional(),"sk-SK":e.string().max(hby).optional(),"nb-NO":e.string().max(bby).optional(),"is-IS":e.string().max(zby).optional(),"hu-HU":e.string().max(fby).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),delivery_note_body:e.object({"en-US":e.string().max(Bby).optional(),"de-DE":e.string().max(Tby).optional(),"it-IT":e.string().max(Iby).optional(),"fr-FR":e.string().max(Eby).optional(),"es-ES":e.string().max(Dby).optional(),"sl-SI":e.string().max(Rby).optional(),"pt-PT":e.string().max(_by).optional(),"nl-NL":e.string().max(Nby).optional(),"pl-PL":e.string().max(Mby).optional(),"hr-HR":e.string().max(Uby).optional(),"sv-SE":e.string().max(Pby).optional(),"fi-FI":e.string().max(Cby).optional(),"et-EE":e.string().max(wby).optional(),"bg-BG":e.string().max(Aby).optional(),"cs-CZ":e.string().max(Fby).optional(),"sk-SK":e.string().max(kby).optional(),"nb-NO":e.string().max(jby).optional(),"is-IS":e.string().max(Hby).optional(),"hu-HU":e.string().max(Lby).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),purchase_order_subject:e.object({"en-US":e.string().max(Gby).nullish(),"de-DE":e.string().max(Vby).nullish(),"it-IT":e.string().max(Kby).nullish(),"fr-FR":e.string().max(Zby).nullish(),"es-ES":e.string().max(qby).nullish(),"sl-SI":e.string().max(Wby).nullish(),"pt-PT":e.string().max(Yby).nullish(),"nl-NL":e.string().max($by).nullish(),"pl-PL":e.string().max(Qby).nullish(),"hr-HR":e.string().max(Jby).nullish(),"sv-SE":e.string().max(Xby).nullish(),"fi-FI":e.string().max(ezy).nullish(),"et-EE":e.string().max(tzy).nullish(),"bg-BG":e.string().max(nzy).nullish(),"cs-CZ":e.string().max(szy).nullish(),"sk-SK":e.string().max(ozy).nullish(),"nb-NO":e.string().max(izy).nullish(),"is-IS":e.string().max(azy).nullish(),"hu-HU":e.string().max(rzy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),purchase_order_body:e.object({"en-US":e.string().max(lzy).nullish(),"de-DE":e.string().max(dzy).nullish(),"it-IT":e.string().max(uzy).nullish(),"fr-FR":e.string().max(czy).nullish(),"es-ES":e.string().max(pzy).nullish(),"sl-SI":e.string().max(mzy).nullish(),"pt-PT":e.string().max(xzy).nullish(),"nl-NL":e.string().max(gzy).nullish(),"pl-PL":e.string().max(yzy).nullish(),"hr-HR":e.string().max(Ozy).nullish(),"sv-SE":e.string().max(vzy).nullish(),"fi-FI":e.string().max(Szy).nullish(),"et-EE":e.string().max(hzy).nullish(),"bg-BG":e.string().max(bzy).nullish(),"cs-CZ":e.string().max(zzy).nullish(),"sk-SK":e.string().max(fzy).nullish(),"nb-NO":e.string().max(Bzy).nullish(),"is-IS":e.string().max(Tzy).nullish(),"hu-HU":e.string().max(Izy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Translated default email subjects and bodies keyed by full supported locales. Base scalar email defaults remain the default-language source of truth."),payment_reminders:e.object({email_subject:e.object({"en-US":e.string().max(Ezy).optional(),"de-DE":e.string().max(Dzy).optional(),"it-IT":e.string().max(Rzy).optional(),"fr-FR":e.string().max(_zy).optional(),"es-ES":e.string().max(Nzy).optional(),"sl-SI":e.string().max(Mzy).optional(),"pt-PT":e.string().max(Uzy).optional(),"nl-NL":e.string().max(Pzy).optional(),"pl-PL":e.string().max(Czy).optional(),"hr-HR":e.string().max(wzy).optional(),"sv-SE":e.string().max(Azy).optional(),"fi-FI":e.string().max(Fzy).optional(),"et-EE":e.string().max(kzy).optional(),"bg-BG":e.string().max(jzy).optional(),"cs-CZ":e.string().max(Hzy).optional(),"sk-SK":e.string().max(Lzy).optional(),"nb-NO":e.string().max(Gzy).optional(),"is-IS":e.string().max(Vzy).optional(),"hu-HU":e.string().max(Kzy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),email_body:e.object({"en-US":e.string().max(Zzy).optional(),"de-DE":e.string().max(qzy).optional(),"it-IT":e.string().max(Wzy).optional(),"fr-FR":e.string().max(Yzy).optional(),"es-ES":e.string().max($zy).optional(),"sl-SI":e.string().max(Qzy).optional(),"pt-PT":e.string().max(Jzy).optional(),"nl-NL":e.string().max(Xzy).optional(),"pl-PL":e.string().max(efy).optional(),"hr-HR":e.string().max(tfy).optional(),"sv-SE":e.string().max(nfy).optional(),"fi-FI":e.string().max(sfy).optional(),"et-EE":e.string().max(ofy).optional(),"bg-BG":e.string().max(ify).optional(),"cs-CZ":e.string().max(afy).optional(),"sk-SK":e.string().max(rfy).optional(),"nb-NO":e.string().max(lfy).optional(),"is-IS":e.string().max(dfy).optional(),"hu-HU":e.string().max(ufy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),payment_instructions:e.object({"en-US":e.string().max(cfy).optional(),"de-DE":e.string().max(pfy).optional(),"it-IT":e.string().max(mfy).optional(),"fr-FR":e.string().max(xfy).optional(),"es-ES":e.string().max(gfy).optional(),"sl-SI":e.string().max(yfy).optional(),"pt-PT":e.string().max(Ofy).optional(),"nl-NL":e.string().max(vfy).optional(),"pl-PL":e.string().max(Sfy).optional(),"hr-HR":e.string().max(hfy).optional(),"sv-SE":e.string().max(bfy).optional(),"fi-FI":e.string().max(zfy).optional(),"et-EE":e.string().max(ffy).optional(),"bg-BG":e.string().max(Bfy).optional(),"cs-CZ":e.string().max(Tfy).optional(),"sk-SK":e.string().max(Ify).optional(),"nb-NO":e.string().max(Efy).optional(),"is-IS":e.string().max(Dfy).optional(),"hu-HU":e.string().max(Rfy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Translated default payment reminder subject, body, and payment instructions keyed by full supported locales."),tax_clause_defaults:e.object({domestic:e.object({"en-US":e.string().max(_fy).optional(),"de-DE":e.string().max(Nfy).optional(),"it-IT":e.string().max(Mfy).optional(),"fr-FR":e.string().max(Ufy).optional(),"es-ES":e.string().max(Pfy).optional(),"sl-SI":e.string().max(Cfy).optional(),"pt-PT":e.string().max(wfy).optional(),"nl-NL":e.string().max(Afy).optional(),"pl-PL":e.string().max(Ffy).optional(),"hr-HR":e.string().max(kfy).optional(),"sv-SE":e.string().max(jfy).optional(),"fi-FI":e.string().max(Hfy).optional(),"et-EE":e.string().max(Lfy).optional(),"bg-BG":e.string().max(Gfy).optional(),"cs-CZ":e.string().max(Vfy).optional(),"sk-SK":e.string().max(Kfy).optional(),"nb-NO":e.string().max(Zfy).optional(),"is-IS":e.string().max(qfy).optional(),"hu-HU":e.string().max(Wfy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),article_76a:e.object({"en-US":e.string().max(Yfy).nullish(),"de-DE":e.string().max($fy).nullish(),"it-IT":e.string().max(Qfy).nullish(),"fr-FR":e.string().max(Jfy).nullish(),"es-ES":e.string().max(Xfy).nullish(),"sl-SI":e.string().max(eBy).nullish(),"pt-PT":e.string().max(tBy).nullish(),"nl-NL":e.string().max(nBy).nullish(),"pl-PL":e.string().max(sBy).nullish(),"hr-HR":e.string().max(oBy).nullish(),"sv-SE":e.string().max(iBy).nullish(),"fi-FI":e.string().max(aBy).nullish(),"et-EE":e.string().max(rBy).nullish(),"bg-BG":e.string().max(lBy).nullish(),"cs-CZ":e.string().max(dBy).nullish(),"sk-SK":e.string().max(uBy).nullish(),"nb-NO":e.string().max(cBy).nullish(),"is-IS":e.string().max(pBy).nullish(),"hu-HU":e.string().max(mBy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),intra_eu_b2b:e.object({"en-US":e.string().max(xBy).optional(),"de-DE":e.string().max(gBy).optional(),"it-IT":e.string().max(yBy).optional(),"fr-FR":e.string().max(OBy).optional(),"es-ES":e.string().max(vBy).optional(),"sl-SI":e.string().max(SBy).optional(),"pt-PT":e.string().max(hBy).optional(),"nl-NL":e.string().max(bBy).optional(),"pl-PL":e.string().max(zBy).optional(),"hr-HR":e.string().max(fBy).optional(),"sv-SE":e.string().max(BBy).optional(),"fi-FI":e.string().max(TBy).optional(),"et-EE":e.string().max(IBy).optional(),"bg-BG":e.string().max(EBy).optional(),"cs-CZ":e.string().max(DBy).optional(),"sk-SK":e.string().max(RBy).optional(),"nb-NO":e.string().max(_By).optional(),"is-IS":e.string().max(NBy).optional(),"hu-HU":e.string().max(MBy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),intra_eu_b2b_goods:e.object({"en-US":e.string().max(UBy).nullish(),"de-DE":e.string().max(PBy).nullish(),"it-IT":e.string().max(CBy).nullish(),"fr-FR":e.string().max(wBy).nullish(),"es-ES":e.string().max(ABy).nullish(),"sl-SI":e.string().max(FBy).nullish(),"pt-PT":e.string().max(kBy).nullish(),"nl-NL":e.string().max(jBy).nullish(),"pl-PL":e.string().max(HBy).nullish(),"hr-HR":e.string().max(LBy).nullish(),"sv-SE":e.string().max(GBy).nullish(),"fi-FI":e.string().max(VBy).nullish(),"et-EE":e.string().max(KBy).nullish(),"bg-BG":e.string().max(ZBy).nullish(),"cs-CZ":e.string().max(qBy).nullish(),"sk-SK":e.string().max(WBy).nullish(),"nb-NO":e.string().max(YBy).nullish(),"is-IS":e.string().max($By).nullish(),"hu-HU":e.string().max(QBy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),intra_eu_b2c:e.object({"en-US":e.string().max(JBy).optional(),"de-DE":e.string().max(XBy).optional(),"it-IT":e.string().max(eTy).optional(),"fr-FR":e.string().max(tTy).optional(),"es-ES":e.string().max(nTy).optional(),"sl-SI":e.string().max(sTy).optional(),"pt-PT":e.string().max(oTy).optional(),"nl-NL":e.string().max(iTy).optional(),"pl-PL":e.string().max(aTy).optional(),"hr-HR":e.string().max(rTy).optional(),"sv-SE":e.string().max(lTy).optional(),"fi-FI":e.string().max(dTy).optional(),"et-EE":e.string().max(uTy).optional(),"bg-BG":e.string().max(cTy).optional(),"cs-CZ":e.string().max(pTy).optional(),"sk-SK":e.string().max(mTy).optional(),"nb-NO":e.string().max(xTy).optional(),"is-IS":e.string().max(gTy).optional(),"hu-HU":e.string().max(yTy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),"3w_b2b":e.object({"en-US":e.string().max(OTy).optional(),"de-DE":e.string().max(vTy).optional(),"it-IT":e.string().max(STy).optional(),"fr-FR":e.string().max(hTy).optional(),"es-ES":e.string().max(bTy).optional(),"sl-SI":e.string().max(zTy).optional(),"pt-PT":e.string().max(fTy).optional(),"nl-NL":e.string().max(BTy).optional(),"pl-PL":e.string().max(TTy).optional(),"hr-HR":e.string().max(ITy).optional(),"sv-SE":e.string().max(ETy).optional(),"fi-FI":e.string().max(DTy).optional(),"et-EE":e.string().max(RTy).optional(),"bg-BG":e.string().max(_Ty).optional(),"cs-CZ":e.string().max(NTy).optional(),"sk-SK":e.string().max(MTy).optional(),"nb-NO":e.string().max(UTy).optional(),"is-IS":e.string().max(PTy).optional(),"hu-HU":e.string().max(CTy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),"3w_b2c":e.object({"en-US":e.string().max(wTy).optional(),"de-DE":e.string().max(ATy).optional(),"it-IT":e.string().max(FTy).optional(),"fr-FR":e.string().max(kTy).optional(),"es-ES":e.string().max(jTy).optional(),"sl-SI":e.string().max(HTy).optional(),"pt-PT":e.string().max(LTy).optional(),"nl-NL":e.string().max(GTy).optional(),"pl-PL":e.string().max(VTy).optional(),"hr-HR":e.string().max(KTy).optional(),"sv-SE":e.string().max(ZTy).optional(),"fi-FI":e.string().max(qTy).optional(),"et-EE":e.string().max(WTy).optional(),"bg-BG":e.string().max(YTy).optional(),"cs-CZ":e.string().max($Ty).optional(),"sk-SK":e.string().max(QTy).optional(),"nb-NO":e.string().max(JTy).optional(),"is-IS":e.string().max(XTy).optional(),"hu-HU":e.string().max(eIy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),export:e.object({"en-US":e.string().max(tIy).optional(),"de-DE":e.string().max(nIy).optional(),"it-IT":e.string().max(sIy).optional(),"fr-FR":e.string().max(oIy).optional(),"es-ES":e.string().max(iIy).optional(),"sl-SI":e.string().max(aIy).optional(),"pt-PT":e.string().max(rIy).optional(),"nl-NL":e.string().max(lIy).optional(),"pl-PL":e.string().max(dIy).optional(),"hr-HR":e.string().max(uIy).optional(),"sv-SE":e.string().max(cIy).optional(),"fi-FI":e.string().max(pIy).optional(),"et-EE":e.string().max(mIy).optional(),"bg-BG":e.string().max(xIy).optional(),"cs-CZ":e.string().max(gIy).optional(),"sk-SK":e.string().max(yIy).optional(),"nb-NO":e.string().max(OIy).optional(),"is-IS":e.string().max(vIy).optional(),"hu-HU":e.string().max(SIy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Translated default tax clauses keyed by transaction type. Each transaction-type entry is a localized-content map keyed by full supported locales.")}).describe("Translated default document-facing settings keyed by full supported locales. Base scalar settings remain the default-language source of truth."),e.null()]).optional().describe("Translated default document-facing settings keyed by full supported locales. Used when new documents inherit default texts and when document defaults are rendered in an explicit non-default language."),default_invoice_note:e.string().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e.string().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e.string().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e.string().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e.string().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e.string().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_advance_invoice_note:e.string().nullish().describe("Default note for new advance invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_delivery_note_note:e.string().nullish().describe("Default note for new delivery notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e.string().max(hIy).nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_document_signature:e.string().nullish().describe("Default signature text for all new documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),bank_accounts:e.array(e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(bIy).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)"),is_default:e.boolean().nullish().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),delivery_note_hide_prices:e.boolean().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),purchase_order_hide_prices:e.boolean().nullish().describe("Default hide_prices for new purchase orders. When true, prices and totals are hidden by default. When false or unset, prices are hidden only while no line has a price."),credit_note_negative_values:e.boolean().nullish().describe("When true (default), credit note PDFs display line item quantities and totals as negative values while keeping prices positive. Zero quantities and totals stay unsigned. Set to false to show quantities and totals as positive."),show_payment_amounts:e.boolean().nullish().describe("When true, rendered document payment/refund sections show the payment amount next to each payment type. Defaults to false, which shows only the payment or refund type."),hide_tax_when_untaxed:e.boolean().nullish().describe("When true, rendered documents omit the tax row and per-line tax rate for lines and totals where no tax was applied. An explicitly applied 0% tax rate is still shown. Defaults to false, which keeps the 0% row for untaxed amounts."),tax_clause_defaults:e.union([e.object({domestic:e.string().nullish().describe("Default tax clause for domestic transactions (same country)"),article_76a:e.string().nullish().describe("Default clause for Slovenian domestic reverse charge under Article 76.a ZDDV-1."),intra_eu_b2b:e.string().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2b_goods:e.string().nullish().describe("Default tax clause for intra-EU B2B sales of goods (intra-community supply). Used when the lines are classified as product; falls back to intra_eu_b2b when empty."),intra_eu_b2c:e.string().nullish().describe("Default tax clause for intra-EU B2C transactions"),"3w_b2b":e.string().nullish().describe("Default tax clause for third-world B2B transactions (non-EU, business customer)"),"3w_b2c":e.string().nullish().describe("Default tax clause for third-world B2C transactions (non-EU, end consumer)"),export:e.string().nullish().describe("Deprecated: Use 3w_b2b and 3w_b2c instead. Default tax clause for export transactions.")}),e.null()]).optional().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc."),default_warehouse_id:e.string().nullish().describe("Warehouse to use for inventory movements created on documents issued by this business unit, when set and not deleted. Falls back to the entity's default warehouse otherwise. Send null to clear.")}).describe("Business-unit overrides for document-facing settings. Uses the same field names as entity settings while excluding entity-only compliance and fiscalization settings."),logo_url:e.url().nullish(),signature_url:e.url().nullish()}).describe("Frozen business-unit snapshot persisted on documents for rendering and history."),e.null()]).optional().describe("Frozen business-unit snapshot used for stable rendering and historical accuracy."),warehouse_id:e.string().nullish().describe("Warehouse the document's stock effect applies to. Omit or send null to use the business unit's default warehouse, then the entity default. Used by invoices, credit notes and expenses; stored but inert on other document types."),customer_id:e.string().max(zIy).nullish(),customer:e.union([e.object({name:e.string().nullish(),unit_name:e.string().nullish().describe("Deprecated compatibility field. This value is no longer used for business-unit rendering; use `business_unit.name` on the document instead."),email:e.string().max(fIy).nullish(),address:e.string().nullish(),address_2:e.string().nullish(),post_code:e.string().nullish(),city:e.string().nullish(),state:e.string().nullish(),country:e.string().nullish(),country_code:e.string().max(BIy).nullish(),tax_number:e.string().nullish(),tax_number_2:e.string().nullish(),company_number:e.string().nullish(),phone:e.string().nullish(),peppol_id:e.string().nullish(),peppol_scheme_id:e.string().nullish(),e_invoicing:e.union([e.object({buyer_reference:e.string().nullish().describe("Canonical EN 16931 BT-10 buyer reference stored on the document customer snapshot. For German public-sector recipients, enter the Leitweg-ID here. For German B2B recipients this is optional unless the buyer requires it. Do not send a separate leitweg_id, routing_id, or top-level buyer_reference field.")}).describe("Customer e-invoicing data copied into the document customer snapshot. These fields are buyer/customer document data, not German validation state."),e.null()]).optional(),delivery_address:e.union([e.object({address:e.string().min(1).max(TIy),address_2:e.string().max(IIy).nullish(),post_code:e.string().min(1).max(EIy),city:e.string().min(1).max(DIy),country_code:e.string().min(_Iy).max(NIy).nullish().default(RIy)}).describe("Physical delivery address when it differs from the buyer's billing address. Required by French law when applicable."),e.null()]).optional().describe("Physical delivery address for this document when it differs from the customer's billing address. It is stored only on the document snapshot and is not saved to the customer record."),bank_accounts:e.array(e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(MIy).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)"),is_default:e.boolean().nullish().describe("Whether this is the default account for new invoices")})).nullish(),is_end_consumer:e.boolean().nullish(),is_tax_subject:e.boolean().nullish().describe("Whether the customer is VAT identified. Stored in the document snapshot and used by country-specific tax reports; a country code alone does not imply VAT identification."),ujp:e.union([e.object({receiver_name:e.string().min(1).nullish().describe("UJP envelope recipient name. If omitted, package generation falls back to the document customer name."),receiver_identifier:e.string().min(1).nullish().describe("Optional recipient tax number or identifier override for the UJP envelope. If omitted, package generation falls back to the document customer tax number."),receiver_agent:e.string().min(1).nullish().describe("Recipient BIC for the UJP envelope. Public budget users normally use UJPLSI2DICL."),receiver_mailbox:e.string().min(1).nullish().describe("Recipient IBAN/TRR mailbox for the UJP envelope.")}).describe("Optional Slovenian UJP recipient routing data stored on customers and copied into document customer snapshots."),e.null()]).optional(),sdi:e.union([e.object({recipient_code:e.string().regex(UIy).nullish().describe("Italian SdI recipient code for buyer routing. When neither a code nor PEC is supplied, domestic invoices use 0000000 and the seller must provide the buyer a courtesy copy and availability notice."),pec:e.email().nullish().describe("Italian certified email address for buyer routing. When provided without an SdI recipient code, FatturaPA uses `CodiceDestinatario = 0000000` plus `PECDestinatario`."),fiscal_code:e.string().regex(PIy).nullish().describe("Buyer's Italian codice fiscale, independent of their VAT number. For a domestic consumer, legacy tax_number remains a fallback fiscal-code input. Required for VAT-group participants where applicable."),fiscal_regime:e.string().regex(CIy).nullish().describe("Issuer-only fiscal regime snapshot, captured from settings.tax_rules.italy at issuance. Ignored for buyer routing.")}),e.null()]).optional(),bank_account:e.object({type:e.enum(["iban","us_domestic","uk_domestic","other"]).default(wIy).describe("Account type determines which fields are used"),name:e.string().nullish().describe("Display name for this account. Falls back to account number if not set"),bank_name:e.string().nullish().describe("Bank name"),iban:e.string().nullish().describe("IBAN (for type=iban)"),account_number:e.string().nullish().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e.string().nullish().describe("BIC/SWIFT code for international transfers"),routing_number:e.string().nullish().describe("US ABA routing number (for type=us_domestic)"),sort_code:e.string().nullish().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Customer recipient snapshot stored on the document. When a document is created with customer_id only, the snapshot is populated from the saved customer. When an explicit customer object is provided, the snapshot is built from that payload and known omitted fields are stored and returned as null instead of being backfilled from the saved customer."),e.null()]).optional().describe("Customer information snapshot stored on the document. Null means no customer. When present, known customer fields are returned with null for omitted values."),note:e.string().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e.string().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e.string().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),footer:e.string().max(AIy).nullish(),signature:e.string().nullish().describe("Signature text for the document (e.g. 'John Smith, CEO'). If not provided, defaults to entity's default_document_signature setting. Pass empty string to explicitly set no signature."),translations:e.object({note:e.object({"en-US":e.string().max(FIy).optional(),"de-DE":e.string().max(kIy).optional(),"it-IT":e.string().max(jIy).optional(),"fr-FR":e.string().max(HIy).optional(),"es-ES":e.string().max(LIy).optional(),"sl-SI":e.string().max(GIy).optional(),"pt-PT":e.string().max(VIy).optional(),"nl-NL":e.string().max(KIy).optional(),"pl-PL":e.string().max(ZIy).optional(),"hr-HR":e.string().max(qIy).optional(),"sv-SE":e.string().max(WIy).optional(),"fi-FI":e.string().max(YIy).optional(),"et-EE":e.string().max($Iy).optional(),"bg-BG":e.string().max(QIy).optional(),"cs-CZ":e.string().max(JIy).optional(),"sk-SK":e.string().max(XIy).optional(),"nb-NO":e.string().max(eEy).optional(),"is-IS":e.string().max(tEy).optional(),"hu-HU":e.string().max(nEy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),payment_terms:e.object({"en-US":e.string().max(sEy).optional(),"de-DE":e.string().max(oEy).optional(),"it-IT":e.string().max(iEy).optional(),"fr-FR":e.string().max(aEy).optional(),"es-ES":e.string().max(rEy).optional(),"sl-SI":e.string().max(lEy).optional(),"pt-PT":e.string().max(dEy).optional(),"nl-NL":e.string().max(uEy).optional(),"pl-PL":e.string().max(cEy).optional(),"hr-HR":e.string().max(pEy).optional(),"sv-SE":e.string().max(mEy).optional(),"fi-FI":e.string().max(xEy).optional(),"et-EE":e.string().max(gEy).optional(),"bg-BG":e.string().max(yEy).optional(),"cs-CZ":e.string().max(OEy).optional(),"sk-SK":e.string().max(vEy).optional(),"nb-NO":e.string().max(SEy).optional(),"is-IS":e.string().max(hEy).optional(),"hu-HU":e.string().max(bEy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),tax_clause:e.object({"en-US":e.string().max(zEy).optional(),"de-DE":e.string().max(fEy).optional(),"it-IT":e.string().max(BEy).optional(),"fr-FR":e.string().max(TEy).optional(),"es-ES":e.string().max(IEy).optional(),"sl-SI":e.string().max(EEy).optional(),"pt-PT":e.string().max(DEy).optional(),"nl-NL":e.string().max(REy).optional(),"pl-PL":e.string().max(_Ey).optional(),"hr-HR":e.string().max(NEy).optional(),"sv-SE":e.string().max(MEy).optional(),"fi-FI":e.string().max(UEy).optional(),"et-EE":e.string().max(PEy).optional(),"bg-BG":e.string().max(CEy).optional(),"cs-CZ":e.string().max(wEy).optional(),"sk-SK":e.string().max(AEy).optional(),"nb-NO":e.string().max(FEy).optional(),"is-IS":e.string().max(kEy).optional(),"hu-HU":e.string().max(jEy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),footer:e.object({"en-US":e.string().max(HEy).optional(),"de-DE":e.string().max(LEy).optional(),"it-IT":e.string().max(GEy).optional(),"fr-FR":e.string().max(VEy).optional(),"es-ES":e.string().max(KEy).optional(),"sl-SI":e.string().max(ZEy).optional(),"pt-PT":e.string().max(qEy).optional(),"nl-NL":e.string().max(WEy).optional(),"pl-PL":e.string().max(YEy).optional(),"hr-HR":e.string().max($Ey).optional(),"sv-SE":e.string().max(QEy).optional(),"fi-FI":e.string().max(JEy).optional(),"et-EE":e.string().max(XEy).optional(),"bg-BG":e.string().max(eDy).optional(),"cs-CZ":e.string().max(tDy).optional(),"sk-SK":e.string().max(nDy).optional(),"nb-NO":e.string().max(sDy).optional(),"is-IS":e.string().max(oDy).optional(),"hu-HU":e.string().max(iDy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),signature:e.object({"en-US":e.string().max(aDy).optional(),"de-DE":e.string().max(rDy).optional(),"it-IT":e.string().max(lDy).optional(),"fr-FR":e.string().max(dDy).optional(),"es-ES":e.string().max(uDy).optional(),"sl-SI":e.string().max(cDy).optional(),"pt-PT":e.string().max(pDy).optional(),"nl-NL":e.string().max(mDy).optional(),"pl-PL":e.string().max(xDy).optional(),"hr-HR":e.string().max(gDy).optional(),"sv-SE":e.string().max(yDy).optional(),"fi-FI":e.string().max(ODy).optional(),"et-EE":e.string().max(vDy).optional(),"bg-BG":e.string().max(SDy).optional(),"cs-CZ":e.string().max(hDy).optional(),"sk-SK":e.string().max(bDy).optional(),"nb-NO":e.string().max(zDy).optional(),"is-IS":e.string().max(fDy).optional(),"hu-HU":e.string().max(BDy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored document content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),total:e.number().describe("Document total before tax in the currency's major unit. For EUR, `29.90` means \u20AC29.90, not 2,990 cents."),total_with_tax:e.number().describe("Document total after tax in the currency's major unit. For EUR, `29.90` means \u20AC29.90, not 2,990 cents."),total_discount:e.number().describe("Document discount total in the currency's major unit, stored as a net-equivalent amount for compatibility. In `b2b_standard`, this is the net value of line-item discounts applied before tax. In `b2c_gross_discount`, gross discounts are converted back to their net-equivalent value here. 0 when no discounts applied."),creation_source:e.enum(["standard","custom"]).describe("Internal origin of the create request. `standard` means a normal create endpoint calculated the totals. `custom` means the document was created through a `/custom` endpoint."),calculation_mode:e.enum(["b2b_standard","b2c_gross_discount"]).describe("Resolved calculation mode used for this document. Stored on the document so recalculation and rendering remain stable even if entity defaults change later."),taxes:e.array(e.object({rate:e.number().nullable(),tax_id:e.string().nullish(),base:e.number(),amount:e.number(),base_converted:e.number().nullish(),amount_converted:e.number().nullish(),reverse_charge:e.boolean().nullish()})).describe("Applied taxes summary"),currency_code:e.string().max(TDy),entity_id:e.string().max(IDy),date_year:e.number().min(EDy).max(DDy),shareable_id:e.string().max(RDy).nullish(),voided_at:e.iso.datetime({}).nullish(),transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal("export"),e.literal(null)]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),exchange_rate:e.union([e.object({rate:e.number().gt(_Dy).describe("Positive exchange rate used for conversion"),source:e.string().describe("Source of the exchange rate (e.g., 'auto' or 'manual')"),date:e.iso.datetime({}).describe("Date of the exchange rate"),quote_currency:e.string().min(NDy).max(MDy).describe("Quote currency (the base currency converted to)")}),e.null()]).optional().describe("Currency exchange rate information if conversion was applied. Resolved for the supply/tax-point date (date_service_to, else date_service) when it falls on or before the issue date (date); otherwise resolved for the issue date."),crypto_equivalents:e.array(e.object({code:e.enum(["BTC","ETH","SOL","USDC","USDT"]).describe("Crypto asset code."),amount:e.number().describe("Crypto amount equivalent to the document's total_with_tax at `rate`."),rate:e.number().gt(UDy).describe("Units of the document currency per 1 unit of `code`, at `date`."),quote_currency:e.string().describe("The document's currency_code this equivalent was computed against."),source:e.string().describe("Source of the rate (e.g. 'auto')."),date:e.iso.datetime({}).describe("Date the rate was resolved for."),wallet_address:e.string().nullable().describe("Wallet address snapshot from entity settings at the time this equivalent was computed."),network:e.string().nullable().describe("Network label snapshot from entity settings at the time this equivalent was computed.")})).nullish().describe("Opt-in, informational crypto amount(s) equivalent to total_with_tax at the document-date rate. Null unless entity settings.crypto_equivalents is enabled and the document type supports it (invoice, advance_invoice, estimate). The document itself is always invoiced and settled in currency_code."),total_converted:e.number().min(PDy).max(CDy).nullish(),total_with_tax_converted:e.number().min(wDy).max(ADy).nullish(),rounding_correction:e.number().nullish().describe("Rounding correction in the currency's major unit, applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_required:e.boolean().nullish().describe("When true, final document creation/finalization must fail if current e-SLOG validation fails. Draft creation stores validation status without blocking."),validation_status:e.union([e.literal("valid"),e.literal("invalid"),e.literal("not_validated"),e.literal(null)]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:e.array(e.string()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e.string().nullish().describe("ISO timestamp when validation was last performed"),validation_version:e.string().nullish().describe("Validator/generator version used for the stored validation result"),validation_cache_key:e.string().nullish().describe("Hash of the relevant document/entity data used for the stored validation result")}),e.null()]).optional().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),reference:e.string().nullish().describe("Custom reference for the document (e.g., purchase order number, payment reference). When set, used as the UPN payment reference instead of the auto-generated one."),vies:e.union([e.object({warning:e.string().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:e.boolean().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail."),request_id:e.string().nullish().describe("VIES consultation number, returned when the check was made with the entity's own VAT number. Read-only.")}),e.null(),e.null()]).optional().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e.iso.datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),created_by_user_id:e.string().nullish().describe("ID of the user who created the document; null for documents created with an API key, by automation, or before this field existed. Read-only."),date_due:e.iso.datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:e.number().min(FDy).max(kDy),total_due:e.number().min(jDy).max(HDy),paid_in_full:e.boolean(),verifactu:e.union([e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(LDy).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(GDy).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex(VDy).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(KDy).nullish().describe("Explicit classifications for exceptional tax rows. Ordinary domestic positive-rate IVA defaults to 01/01/S1. Zero, exempt, reverse-charge and non-domestic rows require classification.")}).describe("Fiscal classifications supplied before issue, or as an append-only fiscal metadata correction."),e.null()]).optional(),furs:e.union([e.object({status:e.enum(["pending","success","failed","skipped"]),fiscalized_at:e.iso.datetime({}).optional(),error:e.string().optional(),cancellation_reason:e.string().optional(),data:e.object({zoi:e.string(),eor:e.string().optional(),qr_code:e.string().optional(),business_premise_name:e.string(),electronic_device_name:e.string(),invoice_number:e.string(),iteration:e.number().default(ZDy),issue_date_time:e.string().optional(),payload:e.record(e.string(),e.unknown()).describe("FURS API request payload"),issuer_tax_number:e.string().optional(),operator_tax_number:e.string().optional(),operator_label:e.string().optional(),foreign_operator:e.boolean().optional(),print_count:e.number().min(qDy).optional(),cancelled:e.boolean().optional(),cancelled_eor:e.string().optional(),cancellation_payload:e.record(e.string(),e.unknown()).optional().describe("FURS API cancellation payload")}).optional()}).describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),e.null()]).optional(),fina:e.union([e.object({status:e.enum(["pending","success","failed"]),fiscalized_at:e.iso.datetime({}).optional(),error:e.string().optional(),data:e.object({zki:e.string(),jir:e.string().optional(),qr_code_url:e.string().optional(),business_premise_name:e.string(),electronic_device_name:e.string(),invoice_number:e.string(),operator_oib:e.string().optional(),payment_type:e.string().optional(),payment_type_changed_at:e.iso.datetime({}).optional().describe("Set when the method was corrected after issuing and the change was accepted by CIS."),payment_change_unconfirmed:e.object({attempt_id:e.string().describe("Identifies the unresolved payment-method change. Retries of the same change retain this identifier."),payment_type:e.string().describe("CIS NacinPlac code the change was sent with."),payment_id:e.string().optional(),attempted_at:e.iso.datetime({}),reason:e.enum(["sent","unreachable","unrecorded","refused"]).describe("`sent` \u2014 awaiting CIS; `unreachable` \u2014 the answer never came; `unrecorded` \u2014 CIS accepted but the record could not be written; `refused` \u2014 a retry was refused while the first send is still unconfirmed.")}).optional().describe("A payment-method change was sent to CIS and not yet confirmed. The stored method is the old one; CIS may hold the new one. Cleared when a retry of the same change is confirmed; any other change is refused (409) while this is set."),numbering_sequence:e.string().optional(),issue_date_time:e.string().optional(),issue_date_time_iso:e.iso.datetime({}).optional(),payload:e.record(e.string(),e.unknown()).describe("CIS SOAP request payload"),cis_record:e.record(e.string(),e.unknown()).optional().describe("The record as submitted to CIS. Retained so a later payment-method change can resend it verbatim; never rewritten, since the ZKI was computed over these exact values."),subsequent_submit:e.boolean().optional().describe("Server-managed subsequent submission state (FINA NakDost); never accepted as document input."),issuer_oib:e.string().optional(),operator_label:e.string().optional(),print_count:e.number().min(WDy).optional()}).optional()}).describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, business premise name, electronic device name, and CIS identifiers (ZKI, JIR, QR code URL)."),e.null()]).optional(),pt:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),ticketbai:e.union([e.object({lroe_income_epigraphs:e.array(e.string().regex(YDy)).min(1).max($Dy).nullish().describe("Explicit IAE activity epigraphs for this invoice. Required for Bizkaia model 140; unsupported for model 240."),simplified:e.boolean().nullish().describe("Issue a simplified invoice only when legally eligible. Defaults to false."),description:e.string().min(1).max(QDy).nullish(),tax_treatment:e.union([e.literal("taxable"),e.literal("exempt"),e.literal("non_subject"),e.literal("reverse_charge"),e.literal(null)]).nullish().describe("Treatment for the whole invoice. Required for zero-rate or untaxed invoices; positive VAT defaults to taxable. Mixed treatments require separate invoices in the pilot."),vat_regime:e.union([e.literal("01"),e.literal("02"),e.literal(null)]).nullish().describe("01 general regime (default); 02 export operations. Other special regimes are outside the pilot."),exemption_cause:e.union([e.literal("E1"),e.literal("E2"),e.literal("E3"),e.literal("E4"),e.literal("E5"),e.literal("E6"),e.literal(null)]).nullish(),non_subject_cause:e.union([e.literal("OT"),e.literal("RL"),e.literal("VT"),e.literal("IE"),e.literal(null)]).nullish(),recipient_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal(null)]).nullish().describe("Foreign recipient identification type. Required for a non-Spanish recipient."),operation_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("Required when the foreign recipient needs an operation-level breakdown."),rectification_code:e.union([e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("Required for credit notes. The pilot uses difference rectification (I) and the linked source invoices."),cancellation:e.object({record_id:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),reason:e.string()}).nullish(),record_id:e.string().nullish(),identifier:e.string().nullish(),qr_url:e.string().nullish(),status:e.union([e.literal("pending"),e.literal("sending"),e.literal("accepted"),e.literal("accepted_with_errors"),e.literal("rejected"),e.literal("unknown"),e.literal(null)]).nullish()}),e.null()]).optional(),ksef:e.union([e.object({submission_id:e.string(),status:e.enum(["reserved","processing","dispatching","submitted","accepted","rejected","retryable_error"]),revision:e.number(),error_code:e.string().nullable(),error_message:e.string().nullable(),ksef_number:e.string().nullable(),invoice_hash:e.string().nullable(),upo_available:e.boolean(),recovery_available:e.boolean().optional().describe("Whether recovery can be requested. The recovery action verifies definitive nonacceptance before returning the document to draft; ambiguous results return 409.")}).describe("Server-managed Poland KSeF lifecycle. Dispatching is ambiguous and cannot be automatically resent. Acceptance requires authority invoice hash verification."),e.null()]).optional(),early_payment_discount:e.union([e.object({terms_id:e.string().optional(),percentage:e.number().gt(JDy).lt(XDy).multipleOf(eRy).describe("Discount percentage with at most four decimal places, greater than zero and less than 100."),days:e.number().min(tRy).max(nRy),deadline:e.string().describe("Inclusive, snapshotted local eligibility date (YYYY-MM-DD)."),timezone:e.string().describe("Issuer IANA timezone snapshotted with the terms."),currency_precision:e.number().min(sRy).max(oRy),eligible_base:e.number(),discount_amount:e.number().describe("Available conditional discount; does not reduce the invoice total."),discounted_payable:e.number().describe("Cash required in total within the discount window, before subtracting partial cash already received."),remaining_discounted_payable:e.number().describe("Conditional cash still required after payments already received; usable only while the offer remains eligible."),discount_taken:e.number().describe("Realised non-cash settlement, recorded separately from payments and ordinary discounts."),total_cash_received:e.number(),total_non_cash_applied:e.number().describe("Applied credits and advances/deposits, separate from cash and the realised discount."),qualification_base:e.number().nullable().describe("Historical earned qualification base, retained to revalidate cash after later credits, advances and payment restoration. Null before any qualification."),total_settled:e.number().describe("Cash, applied advances/credits and realised discount combined. Can exceed invoice total for an overpayment."),qualifying_payment_id:e.string().nullable()}),e.null()]).optional(),xrechnung:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Whether German XRechnung/ZUGFeRD validation was enabled when this document was last validated. This is server-managed document validation state, not buyer/customer routing data."),validation_required:e.boolean().nullish().describe("Whether this validation result was required for the save/finalization call. When true, final document creation/finalization fails if current German e-invoice validation fails. Draft creation stores validation status without blocking."),validation_status:e.union([e.literal("valid"),e.literal("invalid"),e.literal("not_validated"),e.literal(null)]).nullish().describe("Stored German validation status from the last saved validation: 'valid', 'invalid', or 'not_validated'. German export downloads use this stored result when it is still current for the document; otherwise export re-validates the current document and returns a 422 with field errors if that live validation fails."),validation_errors:e.array(e.string()).nullish().describe("German XRechnung/ZUGFeRD validation error messages from the last validation run. These messages describe missing or invalid document/entity/customer data."),validated_at:e.string().nullish().describe("ISO timestamp when validation was last performed."),validation_version:e.string().nullish().describe("Validator/generator version used for the stored validation result."),validation_cache_key:e.string().nullish().describe("Hash of the relevant document, entity, and customer data used for the stored validation result. Export code uses this with validation_version to avoid trusting stale validation state.")}).describe("Server-managed validation state for a German e-invoice standard. Stored on invoice and credit-note documents as either xrechnung or zugferd. Buyer reference / Leitweg-ID input belongs under customer.e_invoicing.buyer_reference, not here."),e.null()]).optional().describe("Server-managed German XRechnung validation data stored on invoices. Only applicable when entity.country_code = 'DE' and XRechnung is enabled. Buyer reference / Leitweg-ID input is stored on customer.e_invoicing.buyer_reference."),zugferd:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Whether German XRechnung/ZUGFeRD validation was enabled when this document was last validated. This is server-managed document validation state, not buyer/customer routing data."),validation_required:e.boolean().nullish().describe("Whether this validation result was required for the save/finalization call. When true, final document creation/finalization fails if current German e-invoice validation fails. Draft creation stores validation status without blocking."),validation_status:e.union([e.literal("valid"),e.literal("invalid"),e.literal("not_validated"),e.literal(null)]).nullish().describe("Stored German validation status from the last saved validation: 'valid', 'invalid', or 'not_validated'. German export downloads use this stored result when it is still current for the document; otherwise export re-validates the current document and returns a 422 with field errors if that live validation fails."),validation_errors:e.array(e.string()).nullish().describe("German XRechnung/ZUGFeRD validation error messages from the last validation run. These messages describe missing or invalid document/entity/customer data."),validated_at:e.string().nullish().describe("ISO timestamp when validation was last performed."),validation_version:e.string().nullish().describe("Validator/generator version used for the stored validation result."),validation_cache_key:e.string().nullish().describe("Hash of the relevant document, entity, and customer data used for the stored validation result. Export code uses this with validation_version to avoid trusting stale validation state.")}).describe("Server-managed validation state for a German e-invoice standard. Stored on invoice and credit-note documents as either xrechnung or zugferd. Buyer reference / Leitweg-ID input belongs under customer.e_invoicing.buyer_reference, not here."),e.null()]).optional().describe("Server-managed German ZUGFeRD/Factur-X validation data stored on invoices. Only applicable when entity.country_code = 'DE' and ZUGFeRD is enabled. Buyer reference / Leitweg-ID input is stored on customer.e_invoicing.buyer_reference."),ujp:e.union([e.object({validation_enabled:e.boolean().nullish().describe("Override entity/default behavior: true = validate UJP package requirements, false = skip, null = use default."),validation_required:e.boolean().nullish().describe("When true, final document creation must fail if current UJP package validation fails."),validation_status:e.union([e.literal("valid"),e.literal("invalid"),e.literal("not_validated"),e.literal(null)]).nullish().describe("Validation status for UJP package/envelope requirements."),validation_errors:e.array(e.string()).nullish().describe("Array of validation error messages when status is invalid."),validated_at:e.string().nullish().describe("ISO timestamp when UJP validation was last performed."),validation_version:e.string().nullish().describe("Validator/generator version used for the stored UJP validation result."),validation_cache_key:e.string().nullish().describe("Hash of the relevant document/entity data used for the stored UJP validation result.")}).describe("UJP package validation data for Slovenian invoice/credit-note exports. Web may expose UJP download as a secondary e-SLOG dropdown action when current UJP validation is valid."),e.null()]).optional().describe("UJP package validation data for Slovenian invoice exports. Only applicable when entity.country_code = 'SI' and UJP validation is enabled."),nav:e.union([e.object({status:e.enum(["reserved","dispatching","submitted","done","done_with_warnings","aborted","ambiguous","failed","annulment_pending","annulled"]).describe("Lifecycle status of a document's NAV submission."),operation:e.enum(["CREATE","MODIFY","STORNO"]).describe("NAV `invoiceOperation` used for this document's submission."),submission_id:e.string().describe("Identifier of the underlying nav_submissions row driving this document's NAV lifecycle."),environment:e.enum(["test","production"]).describe("NAV Online Sz\xE1mla environment. Test and production are fully separate NAV registrations."),invoice_number:e.string().describe("Invoice number as reported to NAV."),original_invoice_number:e.string().nullable().describe("Original invoice number this submission modifies/cancels, if this is a MODIFY/STORNO."),modification_index:e.number().nullable().describe("Modification index within the original invoice's NAV chain, if this is a MODIFY/STORNO."),transaction_id:e.string().nullable().describe("NAV transaction ID once the submission has been accepted by NAV."),submitted_at:e.string().nullable().describe("ISO datetime the submission was sent to NAV, if it has been."),completed_at:e.string().nullable().describe("ISO datetime NAV processing finished (done/failed/aborted/annulled), if it has."),error_code:e.string().nullable().describe("Top-level NAV error code, if the submission failed."),error_message:e.string().nullable().describe("Top-level NAV error message, if the submission failed."),messages:e.array(e.object({severity:e.enum(["error","warning","info"]).describe("Severity of the NAV validation/processing message."),code:e.string().nullable().describe("NAV validation/error code, if any."),message:e.string().nullable().describe("Human-readable message text from NAV, if any."),tag:e.string().nullable().describe("XML tag the message points to, if any."),line:e.number().nullable().describe("XML line number the message points to, if any.")}).describe("A single NAV technical or business validation/processing message.")).describe("Technical and business validation/processing messages returned by NAV."),retry_available:e.boolean().describe("Whether a retry action is currently available for this document's NAV submission."),reconcile_available:e.boolean().describe("Whether a manual reconcile-with-NAV action is currently available for this document."),annulment_available:e.boolean().describe("Whether a technical annulment action is currently available for this document's NAV submission.")}).describe("Server-managed Hungarian NAV Online Sz\xE1mla submission state for an invoice, credit note, or advance invoice. Never accepted as create/update input."),e.null()]).optional().describe("Server-managed Hungarian NAV Online Sz\xE1mla submission state for this invoice. Only applicable when entity.country_code = 'HU' and NAV is enabled."),sdi:e.union([e.object({country_code:e.enum(["IT"]).describe("Country code for Italy SDI lifecycle data."),status:e.enum(["pending","submitted","accepted","delivered","rejected","non_deliverable","failed","retry_scheduled"]).describe("Current SDI lifecycle status for the document."),latest_submission_id:e.string().nullish(),file_name:e.string().nullish(),sdi_identifier:e.string().nullish(),submitted_at:e.iso.datetime({}).nullish(),accepted_at:e.iso.datetime({}).nullish(),delivered_at:e.iso.datetime({}).nullish(),rejected_at:e.iso.datetime({}).nullish(),non_deliverable_at:e.iso.datetime({}).nullish(),failed_at:e.iso.datetime({}).nullish(),next_retry_at:e.iso.datetime({}).nullish(),retry_attempts:e.number().min(iRy).nullish(),last_error:e.object({code:e.string().nullish(),message:e.string(),source:e.union([e.literal("validation"),e.literal("soap"),e.literal("callback"),e.literal("config"),e.literal("unknown"),e.literal(null)]).nullish()}).nullish(),diagnostics:e.object({requires_reconciliation:e.boolean().nullish().describe("True when dispatch may have reached SdI but no authoritative outcome is known; never automatically resend."),preparation_retry_count:e.number().min(aRy).nullish(),certificate_warnings:e.array(e.string()).nullish(),endpoint:e.string().nullish(),certificate_fingerprint:e.string().nullish(),certificate_expires_at:e.iso.datetime({}).nullish()}).nullish()}).describe("Italy SDI/FatturaPA document lifecycle data. This is current document-facing state; full attempt history lives in SDI submissions and activities."),e.null()]).optional(),date_service:e.string().regex(rRy).nullish().describe("Service date in YYYY-MM-DD format. For invoices and credit notes. When it (or date_service_to, if later) falls on or before date, foreign-currency conversion uses it as the exchange-rate reference date instead of date."),date_service_to:e.string().regex(lRy).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices and credit notes. Use with date_service for date ranges. Continuous/period supplies are chargeable at period end, so this takes precedence over date_service as the exchange-rate reference date when it falls on or before date."),tax_rules:e.object({slovenia:e.object({article_76a:e.boolean().describe("Whether this domestic Slovenian document uses reverse charge under Article 76.a ZDDV-1. VAT remains reported but is not added to the payable total.")})}).optional(),items:e.array(e.object({id:e.string().max(dRy),type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Item type. null = regular line item, 'separator' = visual section header."),name:e.string().max(uRy),description:e.string().nullable(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification: product, service, or advance. Used by country-specific tax and e-invoicing mappings, including Poland goods/services and Portugal SAF-T product typing."),price:e.number().nullish().describe("Per-unit net price before tax in the document currency's major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. Always stores net price. Null for separator items."),gross_price:e.number().nullish().describe("Per-unit gross price including tax in the document currency's major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents.\nOnly present if user originally sent gross price.\nUse gross pricing to keep invoice totals stable when VIES reverse charge is applied."),quantity:e.number().nullish().describe("Item quantity. Null for separator items."),unit:e.string().nullish().describe("Display unit for this line item. E-invoicing XML unit output may be overridden by `e_invoicing.unit_code`."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(cRy).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(pRy).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(mRy).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(xRy).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(gRy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(yRy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Line-level e-invoicing options for XML output."),taxes:e.array(e.object({rate:e.number().nullish(),tax_id:e.string().nullish(),classification:e.string().nullish(),reverse_charge:e.boolean().nullish(),amount:e.number().nullish(),is_deductible:e.boolean().nullish().describe("AP compatibility flag derived from deductible_percentage when supplied. Without a percentage, true resolves to 100 and false resolves to 0."),deductible_percentage:e.number().min(ORy).max(vRy).nullish().describe("Percentage of input tax that is deductible for AP bookkeeping, from 0 through 100."),pt_exemption_code:e.string().nullish(),pt_exemption_reason:e.string().nullish().describe("Optional Portugal legal wording override, at most 60 characters at issuance. Omit to use the explicitly selected tax's matching wording or the standard wording of pt_exemption_code. M19 has no default and requires a specific legal reason. The effective wording is saved on issuance."),destination_vat_country_code:e.string().min(SRy).max(hRy).nullish().describe("Server-owned ISO 3166-1 alpha-2 destination country marker indicating that this line tax is destination VAT for EU OSS. Null or omitted means issuer-country VAT.")}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:e.array(e.object({value:e.number().min(bRy).describe("Discount value"),type:e.enum(["percent","amount"]).default(zRy).describe("Discount type: 'percent' (default) or 'amount'")})).max(fRy).describe("Line discounts (max 5) in request order. In `b2b_standard`, percentage discounts are calculated from the original line subtotal and fixed amounts are summed before tax. In `b2c_gross_discount`, discounts are applied sequentially to the running gross subtotal."),total:e.number().nullish().describe("Line total before tax in the document currency's major unit. Null for separator items."),total_with_tax:e.number().nullish().describe("Line total after tax in the document currency's major unit. Null for separator items."),total_converted:e.number().min(BRy).max(TRy).nullish(),total_with_tax_converted:e.number().min(IRy).max(ERy).nullish(),invoice_id:e.string().max(DRy).nullish(),advance_invoice_id:e.string().max(RRy).nullish(),delivery_note_id:e.string().max(_Ry).nullish(),expense_id:e.string().max(NRy).nullish(),item_id:e.string().max(MRy).nullish(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),revenue_recognition:e.union([e.object({method:e.union([e.literal("immediate"),e.literal("service_period_daily"),e.literal(null)]).nullish().describe("Line-level revenue recognition override. immediate recognizes on the document date; service_period_daily spreads over date_from/date_to."),date_from:e.string().nullish().describe("Line-level service period start date in YYYY-MM-DD format."),date_to:e.string().nullish().describe("Line-level service period end date in YYYY-MM-DD format.")}),e.null()]).optional().describe("Optional line-level revenue recognition override."),translations:e.object({name:e.object({"en-US":e.string().max(URy).optional(),"de-DE":e.string().max(PRy).optional(),"it-IT":e.string().max(CRy).optional(),"fr-FR":e.string().max(wRy).optional(),"es-ES":e.string().max(ARy).optional(),"sl-SI":e.string().max(FRy).optional(),"pt-PT":e.string().max(kRy).optional(),"nl-NL":e.string().max(jRy).optional(),"pl-PL":e.string().max(HRy).optional(),"hr-HR":e.string().max(LRy).optional(),"sv-SE":e.string().max(GRy).optional(),"fi-FI":e.string().max(VRy).optional(),"et-EE":e.string().max(KRy).optional(),"bg-BG":e.string().max(ZRy).optional(),"cs-CZ":e.string().max(qRy).optional(),"sk-SK":e.string().max(WRy).optional(),"nb-NO":e.string().max(YRy).optional(),"is-IS":e.string().max($Ry).optional(),"hu-HU":e.string().max(QRy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(JRy).optional(),"de-DE":e.string().max(XRy).optional(),"it-IT":e.string().max(e_y).optional(),"fr-FR":e.string().max(t_y).optional(),"es-ES":e.string().max(n_y).optional(),"sl-SI":e.string().max(s_y).optional(),"pt-PT":e.string().max(o_y).optional(),"nl-NL":e.string().max(i_y).optional(),"pl-PL":e.string().max(a_y).optional(),"hr-HR":e.string().max(r_y).optional(),"sv-SE":e.string().max(l_y).optional(),"fi-FI":e.string().max(d_y).optional(),"et-EE":e.string().max(u_y).optional(),"bg-BG":e.string().max(c_y).optional(),"cs-CZ":e.string().max(p_y).optional(),"sk-SK":e.string().max(m_y).optional(),"nb-NO":e.string().max(x_y).optional(),"is-IS":e.string().max(g_y).optional(),"hu-HU":e.string().max(y_y).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),financial_category_id:e.string().nullish().describe("Reporting financial category assigned to this document line.")})),document_relations:e.array(e.object({id:e.string(),source_type:e.enum(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e.string(),target_type:e.enum(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e.string(),relation_type:e.string(),entity_id:e.string(),created_at:e.iso.datetime({}),linked_document_voided_at:e.iso.datetime({}).nullish(),related_document:e.object({id:e.string(),type:e.enum(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),number:e.string(),date:e.string(),total_with_tax:e.number(),currency_code:e.string(),is_draft:e.boolean(),voided_at:e.string().nullable(),paid_in_full:e.boolean().nullable(),title_type:e.union([e.literal("estimate"),e.literal("proforma_invoice"),e.literal(null)]).nullable(),hide_prices:e.boolean().nullable()}).optional()})).optional(),payments:e.array(e.object({id:e.string().max(O_y),invoice_id:e.string().max(v_y).nullish(),credit_note_id:e.string().max(S_y).nullish(),advance_invoice_id:e.string().max(h_y).nullish(),expense_id:e.string().max(b_y).nullish(),applied_to_expense_id:e.string().max(z_y).nullish(),amount:e.number().describe("Payment amount in the linked document currency's major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents."),currency_code:e.string().max(f_y),amount_converted:e.number().min(B_y).max(T_y),type:e.enum(["cash","bank_transfer","card","credit_card","debit_card","check","paypal","coupon","crypto","other","credit_note","advance"]).describe("Payment method. Use credit_card or debit_card to preserve the card distinction in Portuguese SAF-T (CC/CD). Legacy card remains accepted and exports as CC. crypto is opt-in: it is accepted only on a crypto-currency document, or when the entity enabled settings.crypto_invoicing or settings.crypto_equivalents; otherwise the API answers 422 with cause.code crypto_payment_type_not_enabled."),date:e.iso.datetime({}).describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),tag:e.string().max(I_y).nullish(),reference:e.string().max(E_y).nullish(),note:e.string().max(D_y).nullish(),entity_id:e.string().max(R_y),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),Invoice:e.object({id:e.string().max(__y),number:e.string().max(N_y),voided_at:e.iso.datetime({}).nullish()}).nullish().describe("Related invoice, including cancellation status for payment controls"),CreditNote:e.object({id:e.string().max(M_y),number:e.string().max(U_y),voided_at:e.iso.datetime({}).nullish()}).nullish().describe("Related credit note, including cancellation status for payment controls"),AdvanceInvoice:e.object({id:e.string().max(P_y),number:e.string().max(C_y),is_draft:e.boolean().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),voided_at:e.iso.datetime({}).nullish()}).nullish().describe("Related advance invoice with lifecycle state used to determine payment mutability"),Expense:e.object({id:e.string().max(w_y),type:e.enum(["invoice","credit_note","advance_invoice"]).describe("Expense document type. V1 accepts `invoice` only; AP credit notes and advance invoices are reserved for a later version."),supplier_document_number:e.string().max(A_y).nullish(),date:e.string().regex(F_y).nullish(),total_with_tax:e.number().min(k_y).max(j_y).nullish()}).nullish().describe("Related expense"),AppliedToExpense:e.object({id:e.string().max(H_y),type:e.enum(["invoice","credit_note","advance_invoice"]).describe("Expense document type. V1 accepts `invoice` only; AP credit notes and advance invoices are reserved for a later version."),supplier_document_number:e.string().max(L_y).nullish(),date:e.string().regex(G_y).nullish(),total_with_tax:e.number().min(V_y).max(K_y).nullish()}).nullish().describe("Related expense")}).describe("Payment record for an outgoing document or expense")).optional().describe("Payment records linked to this invoice. Only present when requested via `?include=payments`.")}).describe("Invoice document with fiscalization support"),Z_y=new RegExp("^(?:[a-z]{3,4}|po)_[0-9a-f]{24}$"),uxS=e.object({id:e.stringFormat("resource-id",Z_y).describe("Document identifier. Prefix depends on the document type: inv_, est_, crn_, adv_, dln_ or po_ (purchase order).")}),q_y=2,W_y=5,Y_y=2,$_y=5,cxS=e.object({template:e.enum(["modern","classic","condensed","minimal","fashion"]).optional().describe("Document template design to use. When not specified, uses the entity's configured template."),locale:e.string().min(q_y).max(W_y).nullish().describe("Locale for number and date formatting (decimal separators, date order). When not specified, uses the entity's configured locale. For example, 'sl-SI' formats decimals with commas (5,5%) and dates as DD. MM. YYYY."),language:e.string().min(Y_y).max($_y).nullish().describe("Language for document labels and translations (e.g., 'Invoice', 'Tax', 'Total'). When not specified, uses the same value as locale. Use this to get entity-locale formatting with different-language labels \u2014 for example, a Slovenian entity (sl-SI formatting with commas) but English labels.")}),pxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Q_y=new RegExp("^(?:[a-z]{3,4}|po)_[0-9a-f]{24}$"),mxS=e.object({id:e.stringFormat("resource-id",Q_y).describe("Document identifier. Prefix depends on the document type: inv_, est_, crn_, adv_, dln_ or po_ (purchase order).")}),J_y=2,X_y=5,eNy=2,tNy=5,xxS=e.object({template:e.enum(["modern","classic","condensed","minimal","fashion"]).optional().describe("Document template design to use. When not specified, uses the entity's configured template."),locale:e.string().min(J_y).max(X_y).nullish().describe("Locale for number and date formatting (decimal separators, date order). When not specified, uses the entity's configured locale. For example, 'sl-SI' formats decimals with commas (5,5%) and dates as DD. MM. YYYY."),language:e.string().min(eNy).max(tNy).nullish().describe("Language for document labels and translations (e.g., 'Invoice', 'Tax', 'Total'). When not specified, uses the same value as locale. Use this to get entity-locale formatting with different-language labels \u2014 for example, a Slovenian entity (sl-SI formatting with commas) but English labels.")}),gxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var ct={};W(ct,{CreateItemBody:()=>OxS,CreateItemHeader:()=>yxS,CreateItemInventoryMovementBody:()=>QxS,CreateItemInventoryMovementHeader:()=>$xS,CreateItemInventoryMovementParams:()=>YxS,DeleteItemHeader:()=>wxS,DeleteItemInventoryMovementHeader:()=>XxS,DeleteItemInventoryMovementParams:()=>JxS,DeleteItemParams:()=>CxS,GetItemCategoriesHeader:()=>bxS,GetItemCategoriesResponse:()=>zxS,GetItemInventoryHeader:()=>GxS,GetItemInventoryMovementsHeader:()=>qxS,GetItemInventoryMovementsParams:()=>KxS,GetItemInventoryMovementsQueryParams:()=>ZxS,GetItemInventoryMovementsResponse:()=>WxS,GetItemInventoryParams:()=>LxS,GetItemInventoryResponse:()=>VxS,GetItemsHeader:()=>SxS,GetItemsImportTemplateHeader:()=>BxS,GetItemsImportTemplateQueryParams:()=>fxS,GetItemsQueryParams:()=>vxS,GetItemsResponse:()=>hxS,ImportItemsBody:()=>RxS,ImportItemsHeader:()=>DxS,ImportItemsResponse:()=>_xS,PermanentDeleteItemHeader:()=>HxS,PermanentDeleteItemParams:()=>jxS,PreviewItemsImportBody:()=>IxS,PreviewItemsImportHeader:()=>TxS,PreviewItemsImportResponse:()=>ExS,RestoreItemHeader:()=>FxS,RestoreItemParams:()=>AxS,RestoreItemResponse:()=>kxS,UpdateItemBody:()=>UxS,UpdateItemHeader:()=>MxS,UpdateItemParams:()=>NxS,UpdateItemResponse:()=>PxS,createItemBodyBarcodeMax:()=>pNy,createItemBodyCategoriesItemMax:()=>uNy,createItemBodyDescriptionMax:()=>nNy,createItemBodyEInvoicingOneHungaryVatTreatmentOneReasonMax:()=>rNy,createItemBodyEInvoicingOneHungaryVatTreatmentTwoReasonMax:()=>lNy,createItemBodyEInvoicingOneItalyOneLegalReferenceMax:()=>aNy,createItemBodyEInvoicingOneUnitCodeMax:()=>sNy,createItemBodyEInvoicingOneVatCategoryOneExemptionReasonCodeRegExp:()=>oNy,createItemBodyEInvoicingOneVatCategoryOneExemptionReasonMax:()=>iNy,createItemBodyFinancialCategoryKeyMax:()=>JNy,createItemBodyPurchasePriceMin:()=>mNy,createItemBodySkuMax:()=>cNy,createItemBodyTaxIdsItemMax:()=>dNy,createItemBodyTaxesItemClassificationMax:()=>tMy,createItemBodyTaxesItemRateMax:()=>eMy,createItemBodyTaxesItemRateMin:()=>XNy,createItemBodyTaxesMax:()=>nMy,createItemBodyTranslationsOneDescriptionBgBGMax:()=>ZNy,createItemBodyTranslationsOneDescriptionCsCZMax:()=>qNy,createItemBodyTranslationsOneDescriptionDeDEMax:()=>PNy,createItemBodyTranslationsOneDescriptionEnUSMax:()=>UNy,createItemBodyTranslationsOneDescriptionEsESMax:()=>ANy,createItemBodyTranslationsOneDescriptionEtEEMax:()=>KNy,createItemBodyTranslationsOneDescriptionFiFIMax:()=>VNy,createItemBodyTranslationsOneDescriptionFrFRMax:()=>wNy,createItemBodyTranslationsOneDescriptionHrHRMax:()=>LNy,createItemBodyTranslationsOneDescriptionHuHUMax:()=>QNy,createItemBodyTranslationsOneDescriptionIsISMax:()=>$Ny,createItemBodyTranslationsOneDescriptionItITMax:()=>CNy,createItemBodyTranslationsOneDescriptionNbNOMax:()=>YNy,createItemBodyTranslationsOneDescriptionNlNLMax:()=>jNy,createItemBodyTranslationsOneDescriptionPlPLMax:()=>HNy,createItemBodyTranslationsOneDescriptionPtPTMax:()=>kNy,createItemBodyTranslationsOneDescriptionSkSKMax:()=>WNy,createItemBodyTranslationsOneDescriptionSlSIMax:()=>FNy,createItemBodyTranslationsOneDescriptionSvSEMax:()=>GNy,createItemBodyTranslationsOneNameBgBGMax:()=>ENy,createItemBodyTranslationsOneNameCsCZMax:()=>DNy,createItemBodyTranslationsOneNameDeDEMax:()=>gNy,createItemBodyTranslationsOneNameEnUSMax:()=>xNy,createItemBodyTranslationsOneNameEsESMax:()=>vNy,createItemBodyTranslationsOneNameEtEEMax:()=>INy,createItemBodyTranslationsOneNameFiFIMax:()=>TNy,createItemBodyTranslationsOneNameFrFRMax:()=>ONy,createItemBodyTranslationsOneNameHrHRMax:()=>fNy,createItemBodyTranslationsOneNameHuHUMax:()=>MNy,createItemBodyTranslationsOneNameIsISMax:()=>NNy,createItemBodyTranslationsOneNameItITMax:()=>yNy,createItemBodyTranslationsOneNameNbNOMax:()=>_Ny,createItemBodyTranslationsOneNameNlNLMax:()=>bNy,createItemBodyTranslationsOneNamePlPLMax:()=>zNy,createItemBodyTranslationsOneNamePtPTMax:()=>hNy,createItemBodyTranslationsOneNameSkSKMax:()=>RNy,createItemBodyTranslationsOneNameSlSIMax:()=>SNy,createItemBodyTranslationsOneNameSvSEMax:()=>BNy,createItemInventoryMovementBodyNoteMax:()=>cCy,createItemInventoryMovementBodyQuantityExclusiveMin:()=>dCy,createItemInventoryMovementBodyUnitCostMin:()=>uCy,createItemInventoryMovementPathIdRegExp:()=>lCy,deleteItemInventoryMovementPathIdRegExp:()=>pCy,deleteItemInventoryMovementPathMovementIdRegExp:()=>mCy,deleteItemPathIdRegExp:()=>s2y,getItemInventoryMovementsPathIdRegExp:()=>iCy,getItemInventoryMovementsQueryLimitDefault:()=>aCy,getItemInventoryMovementsQueryLimitMax:()=>rCy,getItemInventoryPathIdRegExp:()=>oCy,getItemsQueryLimitDefault:()=>sMy,getItemsQueryLimitMax:()=>oMy,getItemsResponseDataItemOneCategoriesItemMax:()=>gMy,getItemsResponseDataItemOneDescriptionMax:()=>rMy,getItemsResponseDataItemOneEInvoicingOneHungaryVatTreatmentOneReasonMax:()=>pMy,getItemsResponseDataItemOneEInvoicingOneHungaryVatTreatmentTwoReasonMax:()=>mMy,getItemsResponseDataItemOneEInvoicingOneItalyOneLegalReferenceMax:()=>cMy,getItemsResponseDataItemOneEInvoicingOneUnitCodeMax:()=>lMy,getItemsResponseDataItemOneEInvoicingOneVatCategoryOneExemptionReasonCodeRegExp:()=>dMy,getItemsResponseDataItemOneEInvoicingOneVatCategoryOneExemptionReasonMax:()=>uMy,getItemsResponseDataItemOneEntityIdMax:()=>vMy,getItemsResponseDataItemOneIdMax:()=>iMy,getItemsResponseDataItemOneNameMax:()=>aMy,getItemsResponseDataItemOneTaxIdsItemMax:()=>xMy,getItemsResponseDataItemOneTotalTaxMax:()=>OMy,getItemsResponseDataItemOneTotalTaxMin:()=>yMy,getItemsResponseDataItemOneTranslationsDescriptionBgBGMax:()=>QMy,getItemsResponseDataItemOneTranslationsDescriptionCsCZMax:()=>JMy,getItemsResponseDataItemOneTranslationsDescriptionDeDEMax:()=>kMy,getItemsResponseDataItemOneTranslationsDescriptionEnUSMax:()=>FMy,getItemsResponseDataItemOneTranslationsDescriptionEsESMax:()=>LMy,getItemsResponseDataItemOneTranslationsDescriptionEtEEMax:()=>$My,getItemsResponseDataItemOneTranslationsDescriptionFiFIMax:()=>YMy,getItemsResponseDataItemOneTranslationsDescriptionFrFRMax:()=>HMy,getItemsResponseDataItemOneTranslationsDescriptionHrHRMax:()=>qMy,getItemsResponseDataItemOneTranslationsDescriptionHuHUMax:()=>nUy,getItemsResponseDataItemOneTranslationsDescriptionIsISMax:()=>tUy,getItemsResponseDataItemOneTranslationsDescriptionItITMax:()=>jMy,getItemsResponseDataItemOneTranslationsDescriptionNbNOMax:()=>eUy,getItemsResponseDataItemOneTranslationsDescriptionNlNLMax:()=>KMy,getItemsResponseDataItemOneTranslationsDescriptionPlPLMax:()=>ZMy,getItemsResponseDataItemOneTranslationsDescriptionPtPTMax:()=>VMy,getItemsResponseDataItemOneTranslationsDescriptionSkSKMax:()=>XMy,getItemsResponseDataItemOneTranslationsDescriptionSlSIMax:()=>GMy,getItemsResponseDataItemOneTranslationsDescriptionSvSEMax:()=>WMy,getItemsResponseDataItemOneTranslationsNameBgBGMax:()=>MMy,getItemsResponseDataItemOneTranslationsNameCsCZMax:()=>UMy,getItemsResponseDataItemOneTranslationsNameDeDEMax:()=>hMy,getItemsResponseDataItemOneTranslationsNameEnUSMax:()=>SMy,getItemsResponseDataItemOneTranslationsNameEsESMax:()=>fMy,getItemsResponseDataItemOneTranslationsNameEtEEMax:()=>NMy,getItemsResponseDataItemOneTranslationsNameFiFIMax:()=>_My,getItemsResponseDataItemOneTranslationsNameFrFRMax:()=>zMy,getItemsResponseDataItemOneTranslationsNameHrHRMax:()=>DMy,getItemsResponseDataItemOneTranslationsNameHuHUMax:()=>AMy,getItemsResponseDataItemOneTranslationsNameIsISMax:()=>wMy,getItemsResponseDataItemOneTranslationsNameItITMax:()=>bMy,getItemsResponseDataItemOneTranslationsNameNbNOMax:()=>CMy,getItemsResponseDataItemOneTranslationsNameNlNLMax:()=>IMy,getItemsResponseDataItemOneTranslationsNamePlPLMax:()=>EMy,getItemsResponseDataItemOneTranslationsNamePtPTMax:()=>TMy,getItemsResponseDataItemOneTranslationsNameSkSKMax:()=>PMy,getItemsResponseDataItemOneTranslationsNameSlSIMax:()=>BMy,getItemsResponseDataItemOneTranslationsNameSvSEMax:()=>RMy,permanentDeleteItemPathIdRegExp:()=>sCy,restoreItemPathIdRegExp:()=>o2y,restoreItemResponseOneCategoriesItemMax:()=>g2y,restoreItemResponseOneDescriptionMax:()=>r2y,restoreItemResponseOneEInvoicingOneHungaryVatTreatmentOneReasonMax:()=>p2y,restoreItemResponseOneEInvoicingOneHungaryVatTreatmentTwoReasonMax:()=>m2y,restoreItemResponseOneEInvoicingOneItalyOneLegalReferenceMax:()=>c2y,restoreItemResponseOneEInvoicingOneUnitCodeMax:()=>l2y,restoreItemResponseOneEInvoicingOneVatCategoryOneExemptionReasonCodeRegExp:()=>d2y,restoreItemResponseOneEInvoicingOneVatCategoryOneExemptionReasonMax:()=>u2y,restoreItemResponseOneEntityIdMax:()=>v2y,restoreItemResponseOneIdMax:()=>i2y,restoreItemResponseOneNameMax:()=>a2y,restoreItemResponseOneTaxIdsItemMax:()=>x2y,restoreItemResponseOneTotalTaxMax:()=>O2y,restoreItemResponseOneTotalTaxMin:()=>y2y,restoreItemResponseOneTranslationsDescriptionBgBGMax:()=>Q2y,restoreItemResponseOneTranslationsDescriptionCsCZMax:()=>J2y,restoreItemResponseOneTranslationsDescriptionDeDEMax:()=>k2y,restoreItemResponseOneTranslationsDescriptionEnUSMax:()=>F2y,restoreItemResponseOneTranslationsDescriptionEsESMax:()=>L2y,restoreItemResponseOneTranslationsDescriptionEtEEMax:()=>$2y,restoreItemResponseOneTranslationsDescriptionFiFIMax:()=>Y2y,restoreItemResponseOneTranslationsDescriptionFrFRMax:()=>H2y,restoreItemResponseOneTranslationsDescriptionHrHRMax:()=>q2y,restoreItemResponseOneTranslationsDescriptionHuHUMax:()=>nCy,restoreItemResponseOneTranslationsDescriptionIsISMax:()=>tCy,restoreItemResponseOneTranslationsDescriptionItITMax:()=>j2y,restoreItemResponseOneTranslationsDescriptionNbNOMax:()=>eCy,restoreItemResponseOneTranslationsDescriptionNlNLMax:()=>K2y,restoreItemResponseOneTranslationsDescriptionPlPLMax:()=>Z2y,restoreItemResponseOneTranslationsDescriptionPtPTMax:()=>V2y,restoreItemResponseOneTranslationsDescriptionSkSKMax:()=>X2y,restoreItemResponseOneTranslationsDescriptionSlSIMax:()=>G2y,restoreItemResponseOneTranslationsDescriptionSvSEMax:()=>W2y,restoreItemResponseOneTranslationsNameBgBGMax:()=>M2y,restoreItemResponseOneTranslationsNameCsCZMax:()=>U2y,restoreItemResponseOneTranslationsNameDeDEMax:()=>h2y,restoreItemResponseOneTranslationsNameEnUSMax:()=>S2y,restoreItemResponseOneTranslationsNameEsESMax:()=>f2y,restoreItemResponseOneTranslationsNameEtEEMax:()=>N2y,restoreItemResponseOneTranslationsNameFiFIMax:()=>_2y,restoreItemResponseOneTranslationsNameFrFRMax:()=>z2y,restoreItemResponseOneTranslationsNameHrHRMax:()=>D2y,restoreItemResponseOneTranslationsNameHuHUMax:()=>A2y,restoreItemResponseOneTranslationsNameIsISMax:()=>w2y,restoreItemResponseOneTranslationsNameItITMax:()=>b2y,restoreItemResponseOneTranslationsNameNbNOMax:()=>C2y,restoreItemResponseOneTranslationsNameNlNLMax:()=>I2y,restoreItemResponseOneTranslationsNamePlPLMax:()=>E2y,restoreItemResponseOneTranslationsNamePtPTMax:()=>T2y,restoreItemResponseOneTranslationsNameSkSKMax:()=>P2y,restoreItemResponseOneTranslationsNameSlSIMax:()=>B2y,restoreItemResponseOneTranslationsNameSvSEMax:()=>R2y,updateItemBodyBarcodeMax:()=>xUy,updateItemBodyCategoriesItemMax:()=>pUy,updateItemBodyDescriptionMax:()=>oUy,updateItemBodyEInvoicingOneHungaryVatTreatmentOneReasonMax:()=>dUy,updateItemBodyEInvoicingOneHungaryVatTreatmentTwoReasonMax:()=>uUy,updateItemBodyEInvoicingOneItalyOneLegalReferenceMax:()=>lUy,updateItemBodyEInvoicingOneUnitCodeMax:()=>iUy,updateItemBodyEInvoicingOneVatCategoryOneExemptionReasonCodeRegExp:()=>aUy,updateItemBodyEInvoicingOneVatCategoryOneExemptionReasonMax:()=>rUy,updateItemBodyFinancialCategoryKeyMax:()=>ePy,updateItemBodyPurchasePriceMin:()=>gUy,updateItemBodySkuMax:()=>mUy,updateItemBodyTaxIdsItemMax:()=>cUy,updateItemBodyTaxesItemClassificationMax:()=>sPy,updateItemBodyTaxesItemRateMax:()=>nPy,updateItemBodyTaxesItemRateMin:()=>tPy,updateItemBodyTaxesMax:()=>oPy,updateItemBodyTranslationsOneDescriptionBgBGMax:()=>WUy,updateItemBodyTranslationsOneDescriptionCsCZMax:()=>YUy,updateItemBodyTranslationsOneDescriptionDeDEMax:()=>wUy,updateItemBodyTranslationsOneDescriptionEnUSMax:()=>CUy,updateItemBodyTranslationsOneDescriptionEsESMax:()=>kUy,updateItemBodyTranslationsOneDescriptionEtEEMax:()=>qUy,updateItemBodyTranslationsOneDescriptionFiFIMax:()=>ZUy,updateItemBodyTranslationsOneDescriptionFrFRMax:()=>FUy,updateItemBodyTranslationsOneDescriptionHrHRMax:()=>VUy,updateItemBodyTranslationsOneDescriptionHuHUMax:()=>XUy,updateItemBodyTranslationsOneDescriptionIsISMax:()=>JUy,updateItemBodyTranslationsOneDescriptionItITMax:()=>AUy,updateItemBodyTranslationsOneDescriptionNbNOMax:()=>QUy,updateItemBodyTranslationsOneDescriptionNlNLMax:()=>LUy,updateItemBodyTranslationsOneDescriptionPlPLMax:()=>GUy,updateItemBodyTranslationsOneDescriptionPtPTMax:()=>HUy,updateItemBodyTranslationsOneDescriptionSkSKMax:()=>$Uy,updateItemBodyTranslationsOneDescriptionSlSIMax:()=>jUy,updateItemBodyTranslationsOneDescriptionSvSEMax:()=>KUy,updateItemBodyTranslationsOneNameBgBGMax:()=>RUy,updateItemBodyTranslationsOneNameCsCZMax:()=>_Uy,updateItemBodyTranslationsOneNameDeDEMax:()=>OUy,updateItemBodyTranslationsOneNameEnUSMax:()=>yUy,updateItemBodyTranslationsOneNameEsESMax:()=>hUy,updateItemBodyTranslationsOneNameEtEEMax:()=>DUy,updateItemBodyTranslationsOneNameFiFIMax:()=>EUy,updateItemBodyTranslationsOneNameFrFRMax:()=>SUy,updateItemBodyTranslationsOneNameHrHRMax:()=>TUy,updateItemBodyTranslationsOneNameHuHUMax:()=>PUy,updateItemBodyTranslationsOneNameIsISMax:()=>UUy,updateItemBodyTranslationsOneNameItITMax:()=>vUy,updateItemBodyTranslationsOneNameNbNOMax:()=>MUy,updateItemBodyTranslationsOneNameNlNLMax:()=>fUy,updateItemBodyTranslationsOneNamePlPLMax:()=>BUy,updateItemBodyTranslationsOneNamePtPTMax:()=>zUy,updateItemBodyTranslationsOneNameSkSKMax:()=>NUy,updateItemBodyTranslationsOneNameSlSIMax:()=>bUy,updateItemBodyTranslationsOneNameSvSEMax:()=>IUy,updateItemPathIdRegExp:()=>sUy,updateItemResponseOneCategoriesItemMax:()=>gPy,updateItemResponseOneDescriptionMax:()=>rPy,updateItemResponseOneEInvoicingOneHungaryVatTreatmentOneReasonMax:()=>pPy,updateItemResponseOneEInvoicingOneHungaryVatTreatmentTwoReasonMax:()=>mPy,updateItemResponseOneEInvoicingOneItalyOneLegalReferenceMax:()=>cPy,updateItemResponseOneEInvoicingOneUnitCodeMax:()=>lPy,updateItemResponseOneEInvoicingOneVatCategoryOneExemptionReasonCodeRegExp:()=>dPy,updateItemResponseOneEInvoicingOneVatCategoryOneExemptionReasonMax:()=>uPy,updateItemResponseOneEntityIdMax:()=>vPy,updateItemResponseOneIdMax:()=>iPy,updateItemResponseOneNameMax:()=>aPy,updateItemResponseOneTaxIdsItemMax:()=>xPy,updateItemResponseOneTotalTaxMax:()=>OPy,updateItemResponseOneTotalTaxMin:()=>yPy,updateItemResponseOneTranslationsDescriptionBgBGMax:()=>QPy,updateItemResponseOneTranslationsDescriptionCsCZMax:()=>JPy,updateItemResponseOneTranslationsDescriptionDeDEMax:()=>kPy,updateItemResponseOneTranslationsDescriptionEnUSMax:()=>FPy,updateItemResponseOneTranslationsDescriptionEsESMax:()=>LPy,updateItemResponseOneTranslationsDescriptionEtEEMax:()=>$Py,updateItemResponseOneTranslationsDescriptionFiFIMax:()=>YPy,updateItemResponseOneTranslationsDescriptionFrFRMax:()=>HPy,updateItemResponseOneTranslationsDescriptionHrHRMax:()=>qPy,updateItemResponseOneTranslationsDescriptionHuHUMax:()=>n2y,updateItemResponseOneTranslationsDescriptionIsISMax:()=>t2y,updateItemResponseOneTranslationsDescriptionItITMax:()=>jPy,updateItemResponseOneTranslationsDescriptionNbNOMax:()=>e2y,updateItemResponseOneTranslationsDescriptionNlNLMax:()=>KPy,updateItemResponseOneTranslationsDescriptionPlPLMax:()=>ZPy,updateItemResponseOneTranslationsDescriptionPtPTMax:()=>VPy,updateItemResponseOneTranslationsDescriptionSkSKMax:()=>XPy,updateItemResponseOneTranslationsDescriptionSlSIMax:()=>GPy,updateItemResponseOneTranslationsDescriptionSvSEMax:()=>WPy,updateItemResponseOneTranslationsNameBgBGMax:()=>MPy,updateItemResponseOneTranslationsNameCsCZMax:()=>UPy,updateItemResponseOneTranslationsNameDeDEMax:()=>hPy,updateItemResponseOneTranslationsNameEnUSMax:()=>SPy,updateItemResponseOneTranslationsNameEsESMax:()=>fPy,updateItemResponseOneTranslationsNameEtEEMax:()=>NPy,updateItemResponseOneTranslationsNameFiFIMax:()=>_Py,updateItemResponseOneTranslationsNameFrFRMax:()=>zPy,updateItemResponseOneTranslationsNameHrHRMax:()=>DPy,updateItemResponseOneTranslationsNameHuHUMax:()=>APy,updateItemResponseOneTranslationsNameIsISMax:()=>wPy,updateItemResponseOneTranslationsNameItITMax:()=>bPy,updateItemResponseOneTranslationsNameNbNOMax:()=>CPy,updateItemResponseOneTranslationsNameNlNLMax:()=>IPy,updateItemResponseOneTranslationsNamePlPLMax:()=>EPy,updateItemResponseOneTranslationsNamePtPTMax:()=>TPy,updateItemResponseOneTranslationsNameSkSKMax:()=>PPy,updateItemResponseOneTranslationsNameSlSIMax:()=>BPy,updateItemResponseOneTranslationsNameSvSEMax:()=>RPy});var yxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nNy=2e3,sNy=8,oNy=/^VATEX-[A-Z0-9-]{2,24}$/,iNy=500,aNy=100,rNy=200,lNy=200,dNy=36,uNy=100,cNy=100,pNy=50,mNy=0,xNy=500,gNy=500,yNy=500,ONy=500,vNy=500,SNy=500,hNy=500,bNy=500,zNy=500,fNy=500,BNy=500,TNy=500,INy=500,ENy=500,DNy=500,RNy=500,_Ny=500,NNy=500,MNy=500,UNy=2e3,PNy=2e3,CNy=2e3,wNy=2e3,ANy=2e3,FNy=2e3,kNy=2e3,jNy=2e3,HNy=2e3,LNy=2e3,GNy=2e3,VNy=2e3,KNy=2e3,ZNy=2e3,qNy=2e3,WNy=2e3,YNy=2e3,$Ny=2e3,QNy=2e3,JNy=200,XNy=0,eMy=100,tMy=50,nMy=2,OxS=e.object({name:e.string().min(1),description:e.string().max(nNy).nullish(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T item/service typing."),price:e.number().optional().describe("Net price per unit before tax in the item's currency major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. Provide either price OR gross_price, not both."),gross_price:e.number().optional().describe("Gross price per unit including tax in the item's currency major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. If provided, net price is calculated. Provide either price OR gross_price, not both."),unit:e.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(sNy).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(oNy).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(iNy).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(aNy).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(rNy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(lNy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e.array(e.string().max(dNy)).optional(),categories:e.array(e.string().max(uNy)).nullish().describe("Free-form groupings used to filter the catalog. Values are trimmed, lower-cased and de-duplicated on write. Omit or send null for none; on update, null clears the list."),track_inventory:e.boolean().nullish().describe("Opt in to stock tracking for this item. When enabled, inventory movements can be recorded and finalizing an invoice with this item automatically records a `sale` movement. Omit or send null for false."),sku:e.string().max(cNy).nullish().describe("Stock-keeping unit, free-form and merchant-defined. Omit or send null for none."),usage:e.union([e.literal("sale"),e.literal("purchase"),e.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders). Omit or send null for both."),barcode:e.string().max(pNy).nullish().describe("GTIN/EAN/UPC barcode. Omit or send null for none."),purchase_price:e.number().min(mNy).nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given. Omit or send null for none."),financial_category_id:e.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),translations:e.union([e.object({name:e.object({"en-US":e.string().max(xNy).nullish(),"de-DE":e.string().max(gNy).nullish(),"it-IT":e.string().max(yNy).nullish(),"fr-FR":e.string().max(ONy).nullish(),"es-ES":e.string().max(vNy).nullish(),"sl-SI":e.string().max(SNy).nullish(),"pt-PT":e.string().max(hNy).nullish(),"nl-NL":e.string().max(bNy).nullish(),"pl-PL":e.string().max(zNy).nullish(),"hr-HR":e.string().max(fNy).nullish(),"sv-SE":e.string().max(BNy).nullish(),"fi-FI":e.string().max(TNy).nullish(),"et-EE":e.string().max(INy).nullish(),"bg-BG":e.string().max(ENy).nullish(),"cs-CZ":e.string().max(DNy).nullish(),"sk-SK":e.string().max(RNy).nullish(),"nb-NO":e.string().max(_Ny).nullish(),"is-IS":e.string().max(NNy).nullish(),"hu-HU":e.string().max(MNy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(UNy).nullish(),"de-DE":e.string().max(PNy).nullish(),"it-IT":e.string().max(CNy).nullish(),"fr-FR":e.string().max(wNy).nullish(),"es-ES":e.string().max(ANy).nullish(),"sl-SI":e.string().max(FNy).nullish(),"pt-PT":e.string().max(kNy).nullish(),"nl-NL":e.string().max(jNy).nullish(),"pl-PL":e.string().max(HNy).nullish(),"hr-HR":e.string().max(LNy).nullish(),"sv-SE":e.string().max(GNy).nullish(),"fi-FI":e.string().max(VNy).nullish(),"et-EE":e.string().max(KNy).nullish(),"bg-BG":e.string().max(ZNy).nullish(),"cs-CZ":e.string().max(qNy).nullish(),"sk-SK":e.string().max(WNy).nullish(),"nb-NO":e.string().max(YNy).nullish(),"is-IS":e.string().max($Ny).nullish(),"hu-HU":e.string().max(QNy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content accepted on create and update. Same shape as `DocumentItemTranslations`; an explicit `null` for a field or a locale is treated as omitted."),e.null()]).optional().describe("Optional or null translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),financial_category_key:e.string().max(JNy).nullish().describe("Key of the default financial category (for example `office-supplies`), as an alternative to `financial_category_id`. Provide either, not both. On create a null value counts as not provided; on update null clears the default, and sending both fields is rejected."),taxes:e.array(e.object({rate:e.number().min(XNy).max(eMy).optional().describe("Tax rate percentage. Either rate or classification must be provided."),classification:e.string().max(tMy).optional().describe("Tax classification to lookup existing tax. Either rate or classification must be provided.")})).max(nMy).nullish().describe("Taxes for the item. Provide rate to auto-create, or classification to lookup existing tax.")}),sMy=10,oMy=100,vxS=e.object({limit:e.number().min(1).max(oMy).default(sMy).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e.union([e.enum(["id","name","price","created_at","updated_at","-id","-name","-price","-created_at","-updated_at"]),e.array(e.enum(["id","name","price","created_at","updated_at","-id","-name","-price","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, description, price, unit, categories, track_inventory, usage, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e.string().optional().describe(`Full-text search query to filter results across multiple fields.
|
|
195
195
|
Searches are case-insensitive and match partial strings.
|
|
196
|
-
Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items."),categories:e.string().optional().describe("Comma-separated categories. Returns items in *any* of them, which is what a point-of-sale category chip filters by. Shorthand for the equivalent `query` operator form, kept because a filter row should not have to build JSON."),usage:e.enum(["sale","purchase"]).optional().describe("Items for this side: items with this usage, items without a usage, and inventory-tracked items. Use `sale` for pickers on sales documents and `purchase` for pickers on expenses and purchase orders. Omit to list every item.")}),SxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),iMy=36,aMy=500,rMy=2e3,lMy=8,dMy=/^VATEX-[A-Z0-9-]{2,24}$/,uMy=500,cMy=100,pMy=200,mMy=200,xMy=36,gMy=100,yMy=-140737488355328,OMy=0x7fffffffffff,vMy=36,SMy=500,hMy=500,bMy=500,zMy=500,fMy=500,BMy=500,TMy=500,IMy=500,EMy=500,DMy=500,RMy=500,_My=500,NMy=500,MMy=500,UMy=500,PMy=500,CMy=500,wMy=500,AMy=500,FMy=2e3,kMy=2e3,jMy=2e3,HMy=2e3,LMy=2e3,GMy=2e3,VMy=2e3,KMy=2e3,ZMy=2e3,qMy=2e3,WMy=2e3,YMy=2e3,$My=2e3,QMy=2e3,JMy=2e3,XMy=2e3,eUy=2e3,tUy=2e3,nUy=2e3,hxS=e.object({data:e.array(e.object({id:e.string().max(iMy),name:e.string().max(aMy),description:e.string().max(rMy).nullish(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T product typing."),price:e.number().describe("Per-unit net price (before tax). Always stores net price."),gross_price:e.number().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),price_with_tax:e.number().describe("Per-unit price including tax. Stored for fast B2C/POS display regardless of input mode."),unit:e.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(lMy).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(dMy).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(uMy).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(cMy).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(pMy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(mMy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e.array(e.string().max(xMy)),categories:e.array(e.string().max(gMy)).optional().describe("Free-form groupings used to filter the catalog, typically shown as chips at a point of sale. An item can belong to several. Distinct from `financial_category_id` (accounting) and `classification` (e-invoicing). Empty when the item is in none."),track_inventory:e.boolean().optional().describe("Whether stock tracking is enabled for this item. When true, inventory movements can be recorded and invoicing this item records automatic `sale` movements."),sku:e.string().nullish().describe("Stock-keeping unit, free-form and merchant-defined."),usage:e.union([e.literal("sale"),e.literal("purchase"),e.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders), or null for both."),barcode:e.string().nullish().describe("GTIN/EAN/UPC barcode"),purchase_price:e.number().nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given."),total_tax:e.number().min(yMy).max(OMy),entity_id:e.string().max(vMy),financial_category_id:e.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),translations:e.object({name:e.object({"en-US":e.string().max(SMy).optional(),"de-DE":e.string().max(hMy).optional(),"it-IT":e.string().max(bMy).optional(),"fr-FR":e.string().max(zMy).optional(),"es-ES":e.string().max(fMy).optional(),"sl-SI":e.string().max(BMy).optional(),"pt-PT":e.string().max(TMy).optional(),"nl-NL":e.string().max(IMy).optional(),"pl-PL":e.string().max(EMy).optional(),"hr-HR":e.string().max(DMy).optional(),"sv-SE":e.string().max(RMy).optional(),"fi-FI":e.string().max(_My).optional(),"et-EE":e.string().max(NMy).optional(),"bg-BG":e.string().max(MMy).optional(),"cs-CZ":e.string().max(UMy).optional(),"sk-SK":e.string().max(PMy).optional(),"nb-NO":e.string().max(CMy).optional(),"is-IS":e.string().max(wMy).optional(),"hu-HU":e.string().max(AMy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(FMy).optional(),"de-DE":e.string().max(kMy).optional(),"it-IT":e.string().max(jMy).optional(),"fr-FR":e.string().max(HMy).optional(),"es-ES":e.string().max(LMy).optional(),"sl-SI":e.string().max(GMy).optional(),"pt-PT":e.string().max(VMy).optional(),"nl-NL":e.string().max(KMy).optional(),"pl-PL":e.string().max(ZMy).optional(),"hr-HR":e.string().max(qMy).optional(),"sv-SE":e.string().max(WMy).optional(),"fi-FI":e.string().max(YMy).optional(),"et-EE":e.string().max($My).optional(),"bg-BG":e.string().max(QMy).optional(),"cs-CZ":e.string().max(JMy).optional(),"sk-SK":e.string().max(XMy).optional(),"nb-NO":e.string().max(eUy).optional(),"is-IS":e.string().max(tUy).optional(),"hu-HU":e.string().max(nUy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Product or service item").and(e.looseObject({})).describe("Item or Service provided to customers by the Entity")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),bxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zxS=e.object({data:e.array(e.string())}),fxS=e.object({format:e.enum(["csv","xlsx"]).describe("Template file format."),language:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Language for the example row's free-text values (name, description, unit, category). Defaults to the entity locale when omitted. Column headers are always the English identifiers documented below.")}),BxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),IxS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("CSV or XLSX file to import")}),ExS=e.object({total_rows:e.number(),created:e.number(),updated:e.number(),skipped:e.number(),errors:e.number(),stock_movements:e.number().describe("Number of rows with starting stock to record as `adjustment_in` movements (0 when nothing to commit). For a preview, these are planned movements that would be created on commit; the movements themselves are only written once `committed` is true."),committed:e.boolean().describe("false for a preview; true once the commit endpoint has written the changes."),rows:e.array(e.object({row:e.number().describe("1-based data row number (header row is not counted)."),sku:e.string().nullable(),name:e.string().nullable(),action:e.enum(["create","update","skip","error"]).describe("What this row did (or would do) to the item catalog."),stock:e.enum(["create","skip","none"]).describe("What this row did (or would do) to starting stock."),messages:e.array(e.string()).describe("Human-readable notes and errors for this row.")}))}),DxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),RxS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("CSV or XLSX file to import")}),_xS=e.object({total_rows:e.number(),created:e.number(),updated:e.number(),skipped:e.number(),errors:e.number(),stock_movements:e.number().describe("Number of rows with starting stock to record as `adjustment_in` movements (0 when nothing to commit). For a preview, these are planned movements that would be created on commit; the movements themselves are only written once `committed` is true."),committed:e.boolean().describe("false for a preview; true once the commit endpoint has written the changes."),rows:e.array(e.object({row:e.number().describe("1-based data row number (header row is not counted)."),sku:e.string().nullable(),name:e.string().nullable(),action:e.enum(["create","update","skip","error"]).describe("What this row did (or would do) to the item catalog."),stock:e.enum(["create","skip","none"]).describe("What this row did (or would do) to starting stock."),messages:e.array(e.string()).describe("Human-readable notes and errors for this row.")}))}),sUy=/^[a-z]{3,4}_[0-9a-f]{24}$/,NxS=e.object({id:e.stringFormat("resource-id",sUy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),MxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),oUy=2e3,iUy=8,aUy=/^VATEX-[A-Z0-9-]{2,24}$/,rUy=500,lUy=100,dUy=200,uUy=200,cUy=36,pUy=100,mUy=100,xUy=50,gUy=0,yUy=500,OUy=500,vUy=500,SUy=500,hUy=500,bUy=500,zUy=500,fUy=500,BUy=500,TUy=500,IUy=500,EUy=500,DUy=500,RUy=500,_Uy=500,NUy=500,MUy=500,UUy=500,PUy=500,CUy=2e3,wUy=2e3,AUy=2e3,FUy=2e3,kUy=2e3,jUy=2e3,HUy=2e3,LUy=2e3,GUy=2e3,VUy=2e3,KUy=2e3,ZUy=2e3,qUy=2e3,WUy=2e3,YUy=2e3,$Uy=2e3,QUy=2e3,JUy=2e3,XUy=2e3,ePy=200,tPy=0,nPy=100,sPy=50,oPy=2,UxS=e.object({name:e.string().min(1).optional(),description:e.string().max(oUy).nullish(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T item/service typing."),price:e.number().optional().describe("Net price per unit before tax in the item's currency major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. Provide either price OR gross_price, not both."),gross_price:e.number().optional().describe("Gross price per unit including tax in the item's currency major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. If provided, net price is calculated. Provide either price OR gross_price, not both."),unit:e.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(iUy).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(aUy).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(rUy).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(lUy).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(dUy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(uUy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e.array(e.string().max(cUy)).optional(),categories:e.array(e.string().max(pUy)).nullish().describe("Free-form groupings used to filter the catalog. Values are trimmed, lower-cased and de-duplicated on write. Omit or send null for none; on update, null clears the list."),track_inventory:e.boolean().nullish().describe("Opt in to stock tracking for this item. When enabled, inventory movements can be recorded and finalizing an invoice with this item automatically records a `sale` movement. Omit or send null for false."),sku:e.string().max(mUy).nullish().describe("Stock-keeping unit, free-form and merchant-defined. Omit or send null for none."),usage:e.union([e.literal("sale"),e.literal("purchase"),e.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders). Omit to keep the current value; send null to clear it so the item is used for both."),barcode:e.string().max(xUy).nullish().describe("GTIN/EAN/UPC barcode. Omit or send null for none."),purchase_price:e.number().min(gUy).nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given. Omit or send null for none."),financial_category_id:e.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),translations:e.union([e.object({name:e.object({"en-US":e.string().max(yUy).nullish(),"de-DE":e.string().max(OUy).nullish(),"it-IT":e.string().max(vUy).nullish(),"fr-FR":e.string().max(SUy).nullish(),"es-ES":e.string().max(hUy).nullish(),"sl-SI":e.string().max(bUy).nullish(),"pt-PT":e.string().max(zUy).nullish(),"nl-NL":e.string().max(fUy).nullish(),"pl-PL":e.string().max(BUy).nullish(),"hr-HR":e.string().max(TUy).nullish(),"sv-SE":e.string().max(IUy).nullish(),"fi-FI":e.string().max(EUy).nullish(),"et-EE":e.string().max(DUy).nullish(),"bg-BG":e.string().max(RUy).nullish(),"cs-CZ":e.string().max(_Uy).nullish(),"sk-SK":e.string().max(NUy).nullish(),"nb-NO":e.string().max(MUy).nullish(),"is-IS":e.string().max(UUy).nullish(),"hu-HU":e.string().max(PUy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(CUy).nullish(),"de-DE":e.string().max(wUy).nullish(),"it-IT":e.string().max(AUy).nullish(),"fr-FR":e.string().max(FUy).nullish(),"es-ES":e.string().max(kUy).nullish(),"sl-SI":e.string().max(jUy).nullish(),"pt-PT":e.string().max(HUy).nullish(),"nl-NL":e.string().max(LUy).nullish(),"pl-PL":e.string().max(GUy).nullish(),"hr-HR":e.string().max(VUy).nullish(),"sv-SE":e.string().max(KUy).nullish(),"fi-FI":e.string().max(ZUy).nullish(),"et-EE":e.string().max(qUy).nullish(),"bg-BG":e.string().max(WUy).nullish(),"cs-CZ":e.string().max(YUy).nullish(),"sk-SK":e.string().max($Uy).nullish(),"nb-NO":e.string().max(QUy).nullish(),"is-IS":e.string().max(JUy).nullish(),"hu-HU":e.string().max(XUy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content accepted on create and update. Same shape as `DocumentItemTranslations`; an explicit `null` for a field or a locale is treated as omitted."),e.null()]).optional().describe("Translated catalog-item content. Set to null to clear all translations."),financial_category_key:e.string().max(ePy).nullish().describe("Key of the default financial category (for example `office-supplies`), as an alternative to `financial_category_id`. Provide either, not both. On create a null value counts as not provided; on update null clears the default, and sending both fields is rejected."),taxes:e.array(e.object({rate:e.number().min(tPy).max(nPy).optional().describe("Tax rate percentage. Either rate or classification must be provided."),classification:e.string().max(sPy).optional().describe("Tax classification to lookup existing tax. Either rate or classification must be provided.")})).max(oPy).nullish().describe("Taxes for the item. Provide rate to auto-create, or classification to lookup existing tax.")}),iPy=36,aPy=500,rPy=2e3,lPy=8,dPy=/^VATEX-[A-Z0-9-]{2,24}$/,uPy=500,cPy=100,pPy=200,mPy=200,xPy=36,gPy=100,yPy=-140737488355328,OPy=0x7fffffffffff,vPy=36,SPy=500,hPy=500,bPy=500,zPy=500,fPy=500,BPy=500,TPy=500,IPy=500,EPy=500,DPy=500,RPy=500,_Py=500,NPy=500,MPy=500,UPy=500,PPy=500,CPy=500,wPy=500,APy=500,FPy=2e3,kPy=2e3,jPy=2e3,HPy=2e3,LPy=2e3,GPy=2e3,VPy=2e3,KPy=2e3,ZPy=2e3,qPy=2e3,WPy=2e3,YPy=2e3,$Py=2e3,QPy=2e3,JPy=2e3,XPy=2e3,e2y=2e3,t2y=2e3,n2y=2e3,PxS=e.object({id:e.string().max(iPy),name:e.string().max(aPy),description:e.string().max(rPy).nullish(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T product typing."),price:e.number().describe("Per-unit net price (before tax). Always stores net price."),gross_price:e.number().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),price_with_tax:e.number().describe("Per-unit price including tax. Stored for fast B2C/POS display regardless of input mode."),unit:e.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(lPy).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(dPy).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(uPy).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(cPy).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(pPy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(mPy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e.array(e.string().max(xPy)),categories:e.array(e.string().max(gPy)).optional().describe("Free-form groupings used to filter the catalog, typically shown as chips at a point of sale. An item can belong to several. Distinct from `financial_category_id` (accounting) and `classification` (e-invoicing). Empty when the item is in none."),track_inventory:e.boolean().optional().describe("Whether stock tracking is enabled for this item. When true, inventory movements can be recorded and invoicing this item records automatic `sale` movements."),sku:e.string().nullish().describe("Stock-keeping unit, free-form and merchant-defined."),usage:e.union([e.literal("sale"),e.literal("purchase"),e.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders), or null for both."),barcode:e.string().nullish().describe("GTIN/EAN/UPC barcode"),purchase_price:e.number().nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given."),total_tax:e.number().min(yPy).max(OPy),entity_id:e.string().max(vPy),financial_category_id:e.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),translations:e.object({name:e.object({"en-US":e.string().max(SPy).optional(),"de-DE":e.string().max(hPy).optional(),"it-IT":e.string().max(bPy).optional(),"fr-FR":e.string().max(zPy).optional(),"es-ES":e.string().max(fPy).optional(),"sl-SI":e.string().max(BPy).optional(),"pt-PT":e.string().max(TPy).optional(),"nl-NL":e.string().max(IPy).optional(),"pl-PL":e.string().max(EPy).optional(),"hr-HR":e.string().max(DPy).optional(),"sv-SE":e.string().max(RPy).optional(),"fi-FI":e.string().max(_Py).optional(),"et-EE":e.string().max(NPy).optional(),"bg-BG":e.string().max(MPy).optional(),"cs-CZ":e.string().max(UPy).optional(),"sk-SK":e.string().max(PPy).optional(),"nb-NO":e.string().max(CPy).optional(),"is-IS":e.string().max(wPy).optional(),"hu-HU":e.string().max(APy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(FPy).optional(),"de-DE":e.string().max(kPy).optional(),"it-IT":e.string().max(jPy).optional(),"fr-FR":e.string().max(HPy).optional(),"es-ES":e.string().max(LPy).optional(),"sl-SI":e.string().max(GPy).optional(),"pt-PT":e.string().max(VPy).optional(),"nl-NL":e.string().max(KPy).optional(),"pl-PL":e.string().max(ZPy).optional(),"hr-HR":e.string().max(qPy).optional(),"sv-SE":e.string().max(WPy).optional(),"fi-FI":e.string().max(YPy).optional(),"et-EE":e.string().max($Py).optional(),"bg-BG":e.string().max(QPy).optional(),"cs-CZ":e.string().max(JPy).optional(),"sk-SK":e.string().max(XPy).optional(),"nb-NO":e.string().max(e2y).optional(),"is-IS":e.string().max(t2y).optional(),"hu-HU":e.string().max(n2y).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Product or service item").and(e.looseObject({})).describe("Item or Service provided to customers by the Entity"),s2y=/^[a-z]{3,4}_[0-9a-f]{24}$/,CxS=e.object({id:e.stringFormat("resource-id",s2y).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),wxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),o2y=/^[a-z]{3,4}_[0-9a-f]{24}$/,AxS=e.object({id:e.stringFormat("resource-id",o2y).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),FxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),i2y=36,a2y=500,r2y=2e3,l2y=8,d2y=/^VATEX-[A-Z0-9-]{2,24}$/,u2y=500,c2y=100,p2y=200,m2y=200,x2y=36,g2y=100,y2y=-140737488355328,O2y=0x7fffffffffff,v2y=36,S2y=500,h2y=500,b2y=500,z2y=500,f2y=500,B2y=500,T2y=500,I2y=500,E2y=500,D2y=500,R2y=500,_2y=500,N2y=500,M2y=500,U2y=500,P2y=500,C2y=500,w2y=500,A2y=500,F2y=2e3,k2y=2e3,j2y=2e3,H2y=2e3,L2y=2e3,G2y=2e3,V2y=2e3,K2y=2e3,Z2y=2e3,q2y=2e3,W2y=2e3,Y2y=2e3,$2y=2e3,Q2y=2e3,J2y=2e3,X2y=2e3,eCy=2e3,tCy=2e3,nCy=2e3,kxS=e.object({id:e.string().max(i2y),name:e.string().max(a2y),description:e.string().max(r2y).nullish(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T product typing."),price:e.number().describe("Per-unit net price (before tax). Always stores net price."),gross_price:e.number().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),price_with_tax:e.number().describe("Per-unit price including tax. Stored for fast B2C/POS display regardless of input mode."),unit:e.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(l2y).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(d2y).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(u2y).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(c2y).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(p2y).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(m2y).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e.array(e.string().max(x2y)),categories:e.array(e.string().max(g2y)).optional().describe("Free-form groupings used to filter the catalog, typically shown as chips at a point of sale. An item can belong to several. Distinct from `financial_category_id` (accounting) and `classification` (e-invoicing). Empty when the item is in none."),track_inventory:e.boolean().optional().describe("Whether stock tracking is enabled for this item. When true, inventory movements can be recorded and invoicing this item records automatic `sale` movements."),sku:e.string().nullish().describe("Stock-keeping unit, free-form and merchant-defined."),usage:e.union([e.literal("sale"),e.literal("purchase"),e.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders), or null for both."),barcode:e.string().nullish().describe("GTIN/EAN/UPC barcode"),purchase_price:e.number().nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given."),total_tax:e.number().min(y2y).max(O2y),entity_id:e.string().max(v2y),financial_category_id:e.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),translations:e.object({name:e.object({"en-US":e.string().max(S2y).optional(),"de-DE":e.string().max(h2y).optional(),"it-IT":e.string().max(b2y).optional(),"fr-FR":e.string().max(z2y).optional(),"es-ES":e.string().max(f2y).optional(),"sl-SI":e.string().max(B2y).optional(),"pt-PT":e.string().max(T2y).optional(),"nl-NL":e.string().max(I2y).optional(),"pl-PL":e.string().max(E2y).optional(),"hr-HR":e.string().max(D2y).optional(),"sv-SE":e.string().max(R2y).optional(),"fi-FI":e.string().max(_2y).optional(),"et-EE":e.string().max(N2y).optional(),"bg-BG":e.string().max(M2y).optional(),"cs-CZ":e.string().max(U2y).optional(),"sk-SK":e.string().max(P2y).optional(),"nb-NO":e.string().max(C2y).optional(),"is-IS":e.string().max(w2y).optional(),"hu-HU":e.string().max(A2y).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(F2y).optional(),"de-DE":e.string().max(k2y).optional(),"it-IT":e.string().max(j2y).optional(),"fr-FR":e.string().max(H2y).optional(),"es-ES":e.string().max(L2y).optional(),"sl-SI":e.string().max(G2y).optional(),"pt-PT":e.string().max(V2y).optional(),"nl-NL":e.string().max(K2y).optional(),"pl-PL":e.string().max(Z2y).optional(),"hr-HR":e.string().max(q2y).optional(),"sv-SE":e.string().max(W2y).optional(),"fi-FI":e.string().max(Y2y).optional(),"et-EE":e.string().max($2y).optional(),"bg-BG":e.string().max(Q2y).optional(),"cs-CZ":e.string().max(J2y).optional(),"sk-SK":e.string().max(X2y).optional(),"nb-NO":e.string().max(eCy).optional(),"is-IS":e.string().max(tCy).optional(),"hu-HU":e.string().max(nCy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Product or service item").and(e.looseObject({})).describe("Item or Service provided to customers by the Entity"),sCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,jxS=e.object({id:e.stringFormat("resource-id",sCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),HxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),oCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,LxS=e.object({id:e.stringFormat("resource-id",oCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),GxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),VxS=e.object({item_id:e.string(),track_inventory:e.boolean(),quantity_on_hand:e.number().describe("Current stock on hand. May be negative if outbound movements outpaced recorded inbound stock."),total_value:e.number().describe("Remaining value of stock on hand, from FIFO cost layers."),average_unit_cost:e.number().nullable().describe("total_value / quantity_on_hand, or null when there is no stock on hand."),layers:e.array(e.object({movement_id:e.string(),occurred_at:e.iso.datetime({}),unit_cost:e.number(),quantity_remaining:e.number()})).describe("Current FIFO cost layers, oldest first."),warehouses:e.array(e.object({warehouse_id:e.string(),warehouse_name:e.string(),quantity_on_hand:e.number(),total_value:e.number().describe("Warehouse quantity \xD7 the entity's average cost. Cost layers are entity-level, not per-warehouse.")})).describe("Per-warehouse quantity and value. Includes every warehouse with a non-zero quantity, plus the entity's default warehouse even when empty.")}),iCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,KxS=e.object({id:e.stringFormat("resource-id",iCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),aCy=10,rCy=100,ZxS=e.object({limit:e.number().min(1).max(rCy).default(aCy).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),warehouse_id:e.string().optional().describe("Filter to movements where this warehouse is the source or destination."),document_id:e.string().nullish().describe("Filter to movements generated automatically by this document (e.g. the invoice or credit note whose finalization recorded them). Movements created manually through this endpoint have no document and never match.")}),qxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WxS=e.object({data:e.array(e.object({id:e.string(),item_id:e.string(),type:e.enum(["purchase","sale","adjustment_in","adjustment_out","sale_return","write_off","transfer"]).describe("Movement type. Inbound: `purchase`, `sale_return`, `adjustment_in`. Outbound: `sale`, `adjustment_out`, `write_off`. `transfer` relocates quantity between warehouses and never touches cost layers. `purchase`, `sale` and `sale_return` are recorded automatically by finalizing an expense, invoice, or credit note, respectively, for a tracked item \u2014 they cannot be created manually."),quantity:e.number(),unit_cost:e.number().nullable(),cost_total:e.number().describe("Total cost for this movement. For inbound movements this is quantity \xD7 unit_cost; for outbound movements it is derived from the FIFO layers consumed."),occurred_at:e.iso.datetime({}),warehouse_id:e.string().describe("Warehouse this movement affects (source warehouse for `transfer`)."),destination_warehouse_id:e.string().nullable().describe("Destination warehouse for `transfer` movements; null otherwise."),source_movement_id:e.string().nullable().describe("For `sale_return`: the `sale` movement being reversed, when known."),source_document_id:e.string().nullable().describe("For `sale_return`: the invoice being reversed, used to derive cost when `source_movement_id` is unavailable."),document_id:e.string().nullable().describe("The document that generated this movement, when it was created automatically (e.g. an invoice)."),document_type:e.string().nullable().describe("The kind of document that generated this movement automatically, e.g. `invoice` (sale), `credit_note` (sale_return), or `expense` (purchase). Null for manually-recorded movements."),note:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})})),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),lCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,YxS=e.object({id:e.stringFormat("resource-id",lCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),$xS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dCy=0,uCy=0,cCy=500,QxS=e.object({type:e.enum(["adjustment_in","adjustment_out","write_off","transfer"]).describe("Movement type for manually-recorded movements. `purchase`, `sale` and `sale_return` are recorded automatically by finalizing an expense, invoice, or credit note, respectively, and cannot be created through this endpoint. Use `adjustment_in` (with `unit_cost`) for opening stock, stock counts, or returns received without a credit note."),quantity:e.number().gt(dCy).describe("Movement quantity. Always positive; direction is determined by `type`."),unit_cost:e.number().min(uCy).nullish().describe("Per-unit cost in the entity's currency major unit. Required for `adjustment_in` unless the item has a `purchase_price`; ignored (forced to null) for outbound movements and `transfer`, whose cost is derived from FIFO layers."),occurred_at:e.iso.datetime({}).nullish().describe("When the movement occurred (ISO 8601 datetime with offset). Defaults to now."),warehouse_id:e.string().nullish().describe("Warehouse this movement affects (source warehouse for `transfer`). Omitted resolves to the business unit's default warehouse (if configured) or the entity's default warehouse, created on demand."),destination_warehouse_id:e.string().nullish().describe("Required for `transfer`: the warehouse quantity moves into. Must differ from `warehouse_id`."),note:e.string().max(cCy).nullish().describe("Optional free-text note about this movement.")}),pCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,mCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,JxS=e.object({id:e.stringFormat("resource-id",pCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_."),movementId:e.stringFormat("resource-id",mCy).describe("Inventory movement identifier.")}),XxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var pt={};W(pt,{CreateMigrationJobBody:()=>lgS,CreateMigrationJobHeader:()=>rgS,GetLegacyMigrationOrganizationHeader:()=>igS,GetLegacyMigrationOrganizationParams:()=>sgS,GetLegacyMigrationOrganizationQueryParams:()=>ogS,GetLegacyMigrationOrganizationResponse:()=>agS,GetMigrationJobHeader:()=>pgS,GetMigrationJobParams:()=>cgS,GetMigrationJobResponse:()=>mgS,LegacyMigrationAuthBody:()=>tgS,LegacyMigrationAuthHeader:()=>egS,LegacyMigrationAuthResponse:()=>ngS,ListMigrationJobsHeader:()=>dgS,ListMigrationJobsResponse:()=>ugS,createMigrationJobHeaderXAccountIdRegExp:()=>yCy,getLegacyMigrationOrganizationHeaderXAccountIdRegExp:()=>gCy,getMigrationJobHeaderXAccountIdRegExp:()=>vCy,legacyMigrationAuthHeaderXAccountIdRegExp:()=>xCy,listMigrationJobsHeaderXAccountIdRegExp:()=>OCy});var xCy=/^acc_[0-9a-fA-F]{24}$/,egS=e.object({"x-account-id":e.string().regex(xCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),tgS=e.object({email:e.email().describe("Email for legacy Space Invoices account"),password:e.string().min(1).describe("Password for legacy Space Invoices account")}),ngS=e.object({organizations:e.array(e.object({id:e.string().describe("Legacy organization ID"),name:e.string().describe("Organization name"),country:e.string().nullable().describe("Country"),tax_number:e.string().nullable().describe("Tax number"),created_at:e.string().describe("Creation date"),already_migrated:e.boolean().describe("Whether this org has already been migrated"),migrated_environment:e.string().nullable().describe("Environment it was migrated to")})),legacy_session_id:e.string().describe("Temporary server-side legacy session identifier used for async file migration")}),sgS=e.object({legacyOrgId:e.string().describe("Legacy organization ID")}),ogS=e.object({legacy_session_id:e.string().min(1).describe("Temporary legacy session ID created after legacy authentication")}),gCy=/^acc_[0-9a-fA-F]{24}$/,igS=e.object({"x-account-id":e.string().regex(gCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),agS=e.object({id:e.string().describe("Legacy organization ID"),name:e.string().describe("Organization name"),country:e.string().nullable().describe("Country"),tax_number:e.string().nullable().describe("Tax number"),created_at:e.string().describe("Creation date"),already_migrated:e.boolean().describe("Whether this org has already been migrated"),migrated_environment:e.string().nullable().describe("Environment it was migrated to"),unsupported:e.array(e.object({code:e.enum(["fiscalization_series","accounting_categories","inventory_and_pricing","sales_integrations","webhooks"]).describe("Unsupported migration warning code"),label:e.string().describe("User-facing label for the unsupported data group"),description:e.string().describe("Explanation of what must be set up manually"),count:e.number().describe("Records still requiring manual follow-up after migration"),collections:e.array(e.string()).describe("Legacy collections covered by the warning group"),coverage:e.object({migratable_count:e.number().describe("Records that can be migrated automatically"),total_count:e.number().describe("Total relevant legacy records detected")}).optional().describe("Optional automatic migration coverage details for partially supported groups")})).describe("Unsupported legacy data groups that require confirmation before migration"),requires_confirmation:e.boolean().describe("Whether the user must confirm migration despite unsupported legacy data"),subscription_review:e.object({legacy_subscription:e.object({gateway:e.enum(["braintree","bank","paypal","unknown"]),tier:e.number(),plan_name:e.string(),duration_months:e.number(),additions:e.array(e.string()),active_until:e.string().nullable(),price_cents:e.number().nullable()}).nullable(),recommended_plan:e.object({slug:e.string(),name:e.string(),billing_interval:e.enum(["monthly","yearly"]),price_cents:e.number(),base_price_cents:e.number(),extra_store_count:e.number(),extra_store_price_cents:e.number(),reasons:e.array(e.string())}).nullable(),trial_offer:e.object({eligible:e.boolean(),trial_days:e.number()}),price_difference_cents:e.number().nullable(),renewal_payment_provider:e.union([e.literal("braintree"),e.literal("bank"),e.literal("paypal"),e.literal("unknown"),e.literal(null)]).nullable(),requires_payment_method_update:e.boolean(),usage_signals:e.object({member_count:e.number(),recurring_count:e.number(),sales_integrations_count:e.number(),billable_store_count:e.number(),business_units_count:e.number(),financial_categories_count:e.number(),has_furs:e.boolean()})}).nullable().describe("Legacy subscription snapshot and recommended Apollo white-label plan for this organization")}),yCy=/^acc_[0-9a-fA-F]{24}$/,rgS=e.object({"x-account-id":e.string().regex(yCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),lgS=e.object({legacy_org_id:e.string().min(1).describe("Legacy organization ID to migrate"),legacy_session_id:e.string().min(1).describe("Temporary legacy session ID created after legacy authentication"),environment:e.enum(["live","sandbox"]).describe("Target environment"),confirm_unsupported_data:e.boolean().optional().describe("Explicit user confirmation that unsupported legacy data will need manual setup")}),OCy=/^acc_[0-9a-fA-F]{24}$/,dgS=e.object({"x-account-id":e.string().regex(OCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),ugS=e.object({data:e.array(e.object({id:e.string().describe("Job ID"),legacy_org_id:e.string().describe("Legacy organization ID"),environment:e.string().describe("Target environment"),entity_id:e.string().nullable().describe("Created entity ID (on completion)"),status:e.enum(["pending","processing","completed","failed"]).describe("Migration job status"),step:e.string().nullable().describe("Current step label"),step_number:e.number().describe("Current step number"),total_steps:e.number().describe("Total number of steps"),progress_detail:e.string().nullable().describe("Progress detail"),error:e.string().nullable().describe("User-friendly error message"),created_at:e.string().describe("Job creation date"),started_at:e.string().nullable().describe("Job start date"),completed_at:e.string().nullable().describe("Job completion date")}))}),cgS=e.object({id:e.string().describe("Migration job ID")}),vCy=/^acc_[0-9a-fA-F]{24}$/,pgS=e.object({"x-account-id":e.string().regex(vCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),mgS=e.object({id:e.string().describe("Job ID"),legacy_org_id:e.string().describe("Legacy organization ID"),environment:e.string().describe("Target environment"),entity_id:e.string().nullable().describe("Created entity ID (on completion)"),status:e.enum(["pending","processing","completed","failed"]).describe("Migration job status"),step:e.string().nullable().describe("Current step label"),step_number:e.number().describe("Current step number"),total_steps:e.number().describe("Total number of steps"),progress_detail:e.string().nullable().describe("Progress detail"),error:e.string().nullable().describe("User-friendly error message"),created_at:e.string().describe("Job creation date"),started_at:e.string().nullable().describe("Job start date"),completed_at:e.string().nullable().describe("Job completion date")});var mt={};W(mt,{AuthorizeMagentoBody:()=>bgS,AuthorizeMagentoHeader:()=>hgS,AuthorizeMagentoResponse:()=>zgS,AuthorizeShopifyBody:()=>ggS,AuthorizeShopifyHeader:()=>xgS,AuthorizeShopifyResponse:()=>ygS,AuthorizeWooCommerceBody:()=>vgS,AuthorizeWooCommerceHeader:()=>OgS,AuthorizeWooCommerceResponse:()=>SgS,ConnectCustomStoreBody:()=>jgS,ConnectCustomStoreHeader:()=>kgS,CreateOrderIntegrationBody:()=>YgS,CreateOrderIntegrationHeader:()=>WgS,DeleteOrderIntegrationHeader:()=>r0S,DeleteOrderIntegrationParams:()=>a0S,GetMagentoAuthorizationHeader:()=>BgS,GetMagentoAuthorizationParams:()=>fgS,GetMagentoAuthorizationResponse:()=>TgS,GetOrderIntegrationByIdHeader:()=>e0S,GetOrderIntegrationByIdParams:()=>XgS,GetOrderIntegrationByIdResponse:()=>t0S,GetOrderIntegrationsHeader:()=>QgS,GetOrderIntegrationsQueryParams:()=>$gS,GetOrderIntegrationsResponse:()=>JgS,PromoteShopifyBillingHeader:()=>RgS,PromoteShopifyBillingParams:()=>DgS,PromoteShopifyBillingResponse:()=>_gS,PushCustomStoreOrderBody:()=>ZgS,PushCustomStoreOrderHeader:()=>KgS,PushCustomStoreOrderParams:()=>VgS,PushCustomStoreOrderResponse:()=>qgS,ResumeShopifyInstallBody:()=>IgS,ResumeShopifyInstallResponse:()=>EgS,RotateCustomStoreSecretHeader:()=>LgS,RotateCustomStoreSecretParams:()=>HgS,RotateCustomStoreSecretResponse:()=>GgS,SyncOrderIntegrationBody:()=>AgS,SyncOrderIntegrationHeader:()=>wgS,SyncOrderIntegrationParams:()=>CgS,SyncOrderIntegrationResponse:()=>FgS,SyncShopifyOrdersBody:()=>UgS,SyncShopifyOrdersHeader:()=>MgS,SyncShopifyOrdersParams:()=>NgS,SyncShopifyOrdersResponse:()=>PgS,UpdateOrderIntegrationBody:()=>o0S,UpdateOrderIntegrationHeader:()=>s0S,UpdateOrderIntegrationParams:()=>n0S,UpdateOrderIntegrationResponse:()=>i0S,authorizeMagentoBodyAutoProcessDelaySecondsMin:()=>ICy,authorizeMagentoBodyBusinessUnitIdMax:()=>ECy,authorizeMagentoBodyReconnectIntegrationIdMax:()=>RCy,authorizeMagentoBodyStoreUrlMax:()=>DCy,authorizeShopifyBodyAutoProcessDelaySecondsMin:()=>hCy,authorizeShopifyBodyBusinessUnitIdMax:()=>bCy,authorizeShopifyBodyPendingInstallTokenMax:()=>SCy,authorizeWooCommerceBodyAutoProcessDelaySecondsMin:()=>zCy,authorizeWooCommerceBodyBusinessUnitIdMax:()=>fCy,authorizeWooCommerceBodyReconnectIntegrationIdMax:()=>TCy,authorizeWooCommerceBodyStoreUrlMax:()=>BCy,connectCustomStoreBodyAutoProcessDelaySecondsMin:()=>jCy,connectCustomStoreBodyBusinessUnitIdMax:()=>HCy,connectCustomStoreBodyNameMax:()=>kCy,connectCustomStoreBodyStoreUrlMax:()=>LCy,createOrderIntegrationBodyBusinessPremiseIdMax:()=>Cwy,createOrderIntegrationBodyBusinessUnitIdMax:()=>Pwy,createOrderIntegrationBodyElectronicDeviceIdMax:()=>wwy,createOrderIntegrationBodyLocaleMax:()=>Uwy,createOrderIntegrationBodySourceDefault:()=>Mwy,deleteOrderIntegrationPathIdRegExp:()=>NAy,getMagentoAuthorizationPathIdRegExp:()=>_Cy,getOrderIntegrationByIdPathIdRegExp:()=>Jwy,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMax:()=>rAy,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMin:()=>aAy,getOrderIntegrationByIdResponseOneBusinessPremiseIdMax:()=>uAy,getOrderIntegrationByIdResponseOneBusinessUnitIdMax:()=>dAy,getOrderIntegrationByIdResponseOneDefaultPaymentTypeMax:()=>iAy,getOrderIntegrationByIdResponseOneElectronicDeviceIdMax:()=>cAy,getOrderIntegrationByIdResponseOneEntityIdMax:()=>eAy,getOrderIntegrationByIdResponseOneIdMax:()=>Xwy,getOrderIntegrationByIdResponseOneLocaleMax:()=>lAy,getOrderIntegrationByIdResponseOneNameMax:()=>tAy,getOrderIntegrationByIdResponseOneScopesMax:()=>sAy,getOrderIntegrationByIdResponseOneShopDomainMax:()=>nAy,getOrderIntegrationByIdResponseOneStoreUrlMax:()=>oAy,getOrderIntegrationsQueryLimitDefault:()=>Awy,getOrderIntegrationsQueryLimitMax:()=>Fwy,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMax:()=>qwy,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMin:()=>Zwy,getOrderIntegrationsResponseDataItemOneBusinessPremiseIdMax:()=>$wy,getOrderIntegrationsResponseDataItemOneBusinessUnitIdMax:()=>Ywy,getOrderIntegrationsResponseDataItemOneDefaultPaymentTypeMax:()=>Kwy,getOrderIntegrationsResponseDataItemOneElectronicDeviceIdMax:()=>Qwy,getOrderIntegrationsResponseDataItemOneEntityIdMax:()=>jwy,getOrderIntegrationsResponseDataItemOneIdMax:()=>kwy,getOrderIntegrationsResponseDataItemOneLocaleMax:()=>Wwy,getOrderIntegrationsResponseDataItemOneNameMax:()=>Hwy,getOrderIntegrationsResponseDataItemOneScopesMax:()=>Gwy,getOrderIntegrationsResponseDataItemOneShopDomainMax:()=>Lwy,getOrderIntegrationsResponseDataItemOneStoreUrlMax:()=>Vwy,promoteShopifyBillingPathIdRegExp:()=>NCy,pushCustomStoreOrderBodyBillingAddressAddress2Max:()=>iwy,pushCustomStoreOrderBodyBillingAddressAddressMax:()=>owy,pushCustomStoreOrderBodyBillingAddressCityMax:()=>awy,pushCustomStoreOrderBodyBillingAddressCountryCodeMax:()=>cwy,pushCustomStoreOrderBodyBillingAddressCountryCodeMin:()=>uwy,pushCustomStoreOrderBodyBillingAddressCountryMax:()=>dwy,pushCustomStoreOrderBodyBillingAddressPostCodeMax:()=>lwy,pushCustomStoreOrderBodyBillingAddressStateMax:()=>rwy,pushCustomStoreOrderBodyCurrencyCodeRegExp:()=>WCy,pushCustomStoreOrderBodyCustomerCompanyNameMax:()=>ewy,pushCustomStoreOrderBodyCustomerCompanyNumberMax:()=>nwy,pushCustomStoreOrderBodyCustomerEmailMax:()=>JCy,pushCustomStoreOrderBodyCustomerNameMax:()=>QCy,pushCustomStoreOrderBodyCustomerNotesMax:()=>swy,pushCustomStoreOrderBodyCustomerPhoneMax:()=>XCy,pushCustomStoreOrderBodyCustomerTaxNumberMax:()=>twy,pushCustomStoreOrderBodyEventIdMax:()=>qCy,pushCustomStoreOrderBodyIdMax:()=>KCy,pushCustomStoreOrderBodyItemsItemDiscountMin:()=>Twy,pushCustomStoreOrderBodyItemsItemIdMax:()=>hwy,pushCustomStoreOrderBodyItemsItemNameMax:()=>bwy,pushCustomStoreOrderBodyItemsItemQuantityExclusiveMin:()=>fwy,pushCustomStoreOrderBodyItemsItemSkuMax:()=>zwy,pushCustomStoreOrderBodyItemsItemTaxRateMax:()=>Ewy,pushCustomStoreOrderBodyItemsItemTaxRateMin:()=>Iwy,pushCustomStoreOrderBodyItemsItemUnitMax:()=>Dwy,pushCustomStoreOrderBodyItemsItemUnitPriceMin:()=>Bwy,pushCustomStoreOrderBodyItemsMax:()=>Rwy,pushCustomStoreOrderBodyLocaleMax:()=>$Cy,pushCustomStoreOrderBodyOrderNumberMax:()=>ZCy,pushCustomStoreOrderBodyPaymentMethodMax:()=>_wy,pushCustomStoreOrderBodyPaymentReferenceMax:()=>Nwy,pushCustomStoreOrderBodyShippingAddressAddress2Max:()=>mwy,pushCustomStoreOrderBodyShippingAddressAddressMax:()=>pwy,pushCustomStoreOrderBodyShippingAddressCityMax:()=>xwy,pushCustomStoreOrderBodyShippingAddressCountryCodeMax:()=>Swy,pushCustomStoreOrderBodyShippingAddressCountryCodeMin:()=>vwy,pushCustomStoreOrderBodyShippingAddressCountryMax:()=>Owy,pushCustomStoreOrderBodyShippingAddressPostCodeMax:()=>ywy,pushCustomStoreOrderBodyShippingAddressStateMax:()=>gwy,pushCustomStoreOrderBodyTotalWithTaxMin:()=>YCy,pushCustomStoreOrderPathIdRegExp:()=>VCy,rotateCustomStoreSecretPathIdRegExp:()=>GCy,syncOrderIntegrationBodyCursorMax:()=>ACy,syncOrderIntegrationBodyDefault:()=>wCy,syncOrderIntegrationBodyLimitMax:()=>FCy,syncOrderIntegrationPathIdRegExp:()=>CCy,syncShopifyOrdersBodyCursorMax:()=>UCy,syncShopifyOrdersBodyLimitMax:()=>PCy,syncShopifyOrdersPathIdRegExp:()=>MCy,updateOrderIntegrationBodyAutoProcessDelaySecondsMin:()=>OAy,updateOrderIntegrationBodyBusinessPremiseIdMax:()=>gAy,updateOrderIntegrationBodyBusinessUnitIdMax:()=>xAy,updateOrderIntegrationBodyElectronicDeviceIdMax:()=>yAy,updateOrderIntegrationBodyLocaleMax:()=>mAy,updateOrderIntegrationPathIdRegExp:()=>pAy,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMax:()=>IAy,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMin:()=>TAy,updateOrderIntegrationResponseOneBusinessPremiseIdMax:()=>RAy,updateOrderIntegrationResponseOneBusinessUnitIdMax:()=>DAy,updateOrderIntegrationResponseOneDefaultPaymentTypeMax:()=>BAy,updateOrderIntegrationResponseOneElectronicDeviceIdMax:()=>_Ay,updateOrderIntegrationResponseOneEntityIdMax:()=>SAy,updateOrderIntegrationResponseOneIdMax:()=>vAy,updateOrderIntegrationResponseOneLocaleMax:()=>EAy,updateOrderIntegrationResponseOneNameMax:()=>hAy,updateOrderIntegrationResponseOneScopesMax:()=>zAy,updateOrderIntegrationResponseOneShopDomainMax:()=>bAy,updateOrderIntegrationResponseOneStoreUrlMax:()=>fAy});var xgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),SCy=80,hCy=0,bCy=36,ggS=e.object({shop_domain:e.string().min(1).describe("Shopify shop domain, e.g. myshop.myshopify.com"),name:e.string().optional().describe("Integration name"),app_store_install:e.boolean().nullish().describe("Deprecated client hint; verified App Store launches require app_store_launch."),app_store_launch:e.object({shop:e.string().min(1),host:e.string().min(1),hmac:e.string().min(1),timestamp:e.string().min(1)}).nullish().describe("Original signed Shopify App Store launch parameters."),pending_install_token:e.string().min(1).max(SCy).nullish().describe("Opaque continuation token returned after Shopify OAuth. Used to bind an authenticated App Store install to an Apollo entity."),auto_process:e.boolean().optional().describe("Auto-create invoices on order receipt"),auto_process_on:e.union([e.literal("created"),e.literal("paid"),e.literal("fulfilled"),e.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing"),send_invoice_email:e.boolean().optional().describe("Auto-send invoice email"),issue_invoice_for_bank:e.boolean().optional().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e.boolean().optional().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e.number().min(hCy).optional().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e.string().max(bCy).nullish().describe("Business unit to use for auto-created documents.")}),ygS=e.object({redirect_url:e.url()}),OgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zCy=0,fCy=36,BCy=2048,TCy=36,vgS=e.object({name:e.string().nullish().describe("Integration name"),auto_process:e.boolean().nullish().describe("Auto-create invoices on order receipt"),auto_process_on:e.union([e.literal("created"),e.literal("paid"),e.literal("fulfilled"),e.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing"),send_invoice_email:e.boolean().nullish().describe("Auto-send invoice email"),issue_invoice_for_bank:e.boolean().nullish().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e.boolean().nullish().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e.number().min(zCy).nullish().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e.string().max(fCy).nullish().describe("Business unit to use for auto-created documents."),store_url:e.url().max(BCy).describe("WooCommerce store URL, including a WordPress subdirectory when applicable."),reconnect_integration_id:e.string().max(TCy).nullish().describe("Migrated WooCommerce integration to reconnect in place. Omit when connecting a new store.")}),SgS=e.object({redirect_url:e.url()}),hgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ICy=0,ECy=36,DCy=2048,RCy=36,bgS=e.object({name:e.string().nullish().describe("Integration name"),auto_process:e.boolean().nullish().describe("Auto-create invoices on order receipt"),auto_process_on:e.union([e.literal("created"),e.literal("paid"),e.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing. The fulfilled trigger isn't available for Magento stores."),send_invoice_email:e.boolean().nullish().describe("Auto-send invoice email"),issue_invoice_for_bank:e.boolean().nullish().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e.boolean().nullish().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e.number().min(ICy).nullish().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e.string().max(ECy).nullish().describe("Business unit to use for auto-created documents."),store_url:e.url().max(DCy).describe("Magento store base URL, including a path prefix when the store is served from a subdirectory."),reconnect_integration_id:e.string().max(RCy).nullish().describe("Existing Magento integration to reconnect in place with fresh credentials. Omit when connecting a new store.")}),zgS=e.object({authorization_id:e.string().describe("Authorization identifier; poll GET /order-integrations/magento/authorizations/{id}"),endpoint_url:e.url().describe("Endpoint URL to paste into the Magento integration form. Treat it as a secret."),identity_link_url:e.url().describe("Identity link URL to paste into the Magento integration form. Treat it as a secret."),expires_at:e.iso.datetime({}).describe("When this authorization stops working")}),_Cy=/^oipa_[0-9a-f]{24}$/,fgS=e.object({id:e.stringFormat("resource-id",_Cy).describe("Magento authorization identifier returned by the authorize endpoint")}),BgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TgS=e.object({id:e.string(),status:e.enum(["awaiting_credentials","awaiting_activation","connected","failed","expired"]).describe("awaiting_credentials: Magento has not posted its credentials yet. awaiting_activation: credentials received, waiting for the activation popup. connected: done. failed: see failure_reason. expired: start a new connection."),integration_id:e.string().nullable().describe("Set once the status is connected"),failure_reason:e.union([e.literal("missing_permissions"),e.literal("unauthorized"),e.literal("unreachable"),e.literal("token_exchange_failed"),e.literal(null)]).nullable().describe("Why the last activation attempt failed, when known"),expires_at:e.iso.datetime({})}),IgS=e.object({shop:e.string().min(1)}),EgS=e.object({redirect_url:e.url(),entity_id:e.string(),frontend_origin:e.url().nullish()}),NCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,DgS=e.object({id:e.stringFormat("resource-id",NCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),RgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_gS=e.object({redirect_url:e.url()}),MCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,NgS=e.object({id:e.stringFormat("resource-id",MCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),MgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),UCy=2048,PCy=250,UgS=e.object({updated_since:e.iso.datetime({}).optional().describe("Inclusive Shopify update window start."),updated_until:e.iso.datetime({}).optional().describe("Inclusive Shopify update window end."),cursor:e.string().min(1).max(UCy).optional().describe("Opaque cursor returned by an incomplete prior sync to resume its exact window."),resumable:e.boolean().optional().describe("Opt into bounded, resumable processing. Omit for legacy one-request completion; cursor requests are always bounded."),limit:e.number().min(1).max(PCy).optional().describe("Shopify page size. The server also enforces total-order and page-count caps.")}),PgS=e.object({imported:e.number(),updated:e.number(),queued_for_processing:e.number(),total_seen:e.number(),window_start:e.iso.datetime({}),window_end:e.iso.datetime({}).optional(),complete:e.boolean().optional(),truncated:e.boolean().optional(),pages_fetched:e.number().optional(),completion_state:e.enum(["complete","resumable"]).optional(),next_cursor:e.string().optional()}),CCy=/^oint_[0-9a-f]{24}$/,CgS=e.object({id:e.stringFormat("resource-id",CCy).describe("Unique order integration identifier")}),wgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wCy={},ACy=2048,FCy=100,AgS=e.object({updated_since:e.iso.datetime({}).nullish(),updated_until:e.iso.datetime({}).nullish(),cursor:e.string().min(1).max(ACy).nullish(),limit:e.number().min(1).max(FCy).nullish()}).default(wCy),FgS=e.object({imported:e.number(),updated:e.number(),queued_for_processing:e.number(),total_seen:e.number(),window_start:e.iso.datetime({}),window_end:e.iso.datetime({}).optional(),complete:e.boolean(),truncated:e.boolean(),pages_fetched:e.number(),completion_state:e.enum(["complete","resumable"]),next_cursor:e.string().optional()}),kgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),kCy=255,jCy=0,HCy=36,LCy=2048,jgS=e.object({name:e.string().min(1).max(kCy).describe("Integration name"),auto_process:e.boolean().nullish().describe("Auto-create invoices on order receipt"),auto_process_on:e.union([e.literal("created"),e.literal("paid"),e.literal("fulfilled"),e.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing"),send_invoice_email:e.boolean().nullish().describe("Auto-send invoice email"),issue_invoice_for_bank:e.boolean().nullish().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e.boolean().nullish().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e.number().min(jCy).nullish().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e.string().max(HCy).nullish().describe("Business unit to use for auto-created documents."),store_url:e.url().max(LCy).nullish().describe("Public URL of the store, shown for reference. One active connection per URL.")}),GCy=/^oint_[0-9a-f]{24}$/,HgS=e.object({id:e.stringFormat("resource-id",GCy).describe("Unique order integration identifier")}),LgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),GgS=e.object({webhook_url:e.url().describe("Endpoint your store posts signed order webhooks to"),signing_secret:e.string().describe("HMAC-SHA256 signing secret. Shown only in this response; store it securely.")}),VCy=/^oint_[0-9a-f]{24}$/,VgS=e.object({id:e.stringFormat("resource-id",VCy).describe("Unique order integration identifier")}),KgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KCy=255,ZCy=100,qCy=255,WCy=/^[A-Z]{3}$/,YCy=0,$Cy=20,QCy=255,JCy=255,XCy=50,ewy=255,twy=50,nwy=50,swy=2e3,owy=500,iwy=500,awy=255,rwy=255,lwy=50,dwy=255,uwy=2,cwy=2,pwy=500,mwy=500,xwy=255,gwy=255,ywy=50,Owy=255,vwy=2,Swy=2,hwy=255,bwy=500,zwy=255,fwy=0,Bwy=0,Twy=0,Iwy=0,Ewy=100,Dwy=50,Rwy=500,_wy=100,Nwy=255,ZgS=e.object({id:e.string().min(1).max(KCy).describe("Your store's unique order ID. Repeated pushes update the same order."),order_number:e.string().max(ZCy).nullish().describe("Order number shown to buyers"),event_id:e.string().max(qCy).nullish().describe("Stable ID of this logical event (e.g. `1042:paid`), kept the same across retries. Every applied event ID is remembered per order, so any repeated ID is acknowledged without effects. Takes precedence over the X-SI-Event-Id header."),currency_code:e.string().regex(WCy),prices_include_tax:e.boolean().nullish().describe("Whether `unit_price` and `discount` include tax. Defaults to false."),total_with_tax:e.number().min(YCy).describe("Order total the buyer pays. Lines must reconcile to it within rounding: 0.02, or half a cent per line for larger orders."),ordered_at:e.iso.datetime({}).nullish(),locale:e.string().max($Cy).nullish().describe("Buyer or checkout language, used for the document language"),customer:e.object({name:e.string().max(QCy).nullish(),email:e.email().max(JCy).nullish(),phone:e.string().max(XCy).nullish(),company_name:e.string().max(ewy).nullish(),tax_number:e.string().max(twy).nullish().describe("Buyer VAT or tax number, kept as text"),company_number:e.string().max(nwy).nullish(),is_business:e.boolean().nullish(),notes:e.string().max(swy).nullish()}).nullish(),billing_address:e.object({address:e.string().max(owy).nullish(),address_2:e.string().max(iwy).nullish(),city:e.string().max(awy).nullish(),state:e.string().max(rwy).nullish(),post_code:e.string().max(lwy).nullish(),country:e.string().max(dwy).nullish(),country_code:e.string().min(uwy).max(cwy).nullish().describe("ISO 3166-1 alpha-2 country code")}).nullish(),shipping_address:e.object({address:e.string().max(pwy).nullish(),address_2:e.string().max(mwy).nullish(),city:e.string().max(xwy).nullish(),state:e.string().max(gwy).nullish(),post_code:e.string().max(ywy).nullish(),country:e.string().max(Owy).nullish(),country_code:e.string().min(vwy).max(Swy).nullish().describe("ISO 3166-1 alpha-2 country code")}).nullish(),items:e.array(e.object({id:e.string().max(hwy).nullish().describe("Your line identifier"),kind:e.union([e.literal("line_item"),e.literal("shipping"),e.literal("fee"),e.literal(null)]).nullish().describe("Line type. Defaults to `line_item`."),name:e.string().min(1).max(bwy),sku:e.string().max(zwy).nullish().describe("Links product lines to the catalog item with this SKU"),quantity:e.number().gt(fwy),unit_price:e.number().min(Bwy).describe("Price per unit. Gross when `prices_include_tax` is true, net otherwise."),discount:e.number().min(Twy).nullish().describe("Discount amount for the whole line, on the same tax basis as `unit_price`."),tax_rate:e.number().min(Iwy).max(Ewy).nullish().describe("Tax percentage. Send 0 for an explicit zero rate; omit when the line has no tax."),unit:e.string().max(Dwy).nullish()})).min(1).max(Rwy),payment_method:e.string().max(_wy).nullish().describe("How the buyer pays: `card`, `paypal`, `bank_transfer`, `cash` (cash on delivery) or `coupon`. Common spellings such as `Bank transfer`, `cod` or `cash_on_delivery` are recognized; other values count as online payments."),payment_reference:e.string().max(Nwy).nullish().describe("Payment provider transaction reference"),paid:e.boolean().nullish().describe("Whether the order is fully paid. Defaults to false."),paid_at:e.iso.datetime({}).nullish(),fulfilled:e.boolean().nullish().describe("Whether the order is shipped/completed."),fulfilled_at:e.iso.datetime({}).nullish(),cancelled:e.boolean().nullish().describe("Cancelled orders never create new documents."),cancelled_at:e.iso.datetime({}).nullish(),refunded:e.boolean().nullish().describe("Fully refunded. An issued invoice is voided with a credit note."),refunded_at:e.iso.datetime({}).nullish()}).describe("Full current snapshot of a custom store order. Send the complete order on every push; omitted lifecycle flags mean false."),qgS=e.object({order_id:e.string().nullable().describe("Order ID, or null when the push was ignored for an unknown order"),action:e.enum(["created","updated","ignored"]).describe("`ignored` means the push changed nothing, e.g. a repeated event_id"),processing_queued:e.boolean().describe("Whether document processing was started")}),WgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Mwy="manual",Uwy=10,Pwy=36,Cwy=36,wwy=36,YgS=e.object({name:e.string().min(1),source:e.enum(["shopify","woocommerce","magento","custom","manual"]).default(Mwy),auto_process:e.boolean().optional(),auto_reissue_on_update:e.boolean().optional(),classify_imported_items_as_products:e.boolean().nullish().describe("Treat otherwise-unclassified regular imported order lines as products. Null is equivalent to false."),locale:e.string().max(Uwy).nullish(),business_unit_id:e.string().max(Pwy).nullish(),business_premise_id:e.string().max(Cwy).nullish(),electronic_device_id:e.string().max(wwy).nullish(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Awy=10,Fwy=100,$gS=e.object({limit:e.number().min(1).max(Fwy).default(Awy).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e.union([e.enum(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]),e.array(e.enum(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, source, is_active, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e.string().optional().describe(`Full-text search query to filter results across multiple fields.
|
|
196
|
+
Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items."),categories:e.string().optional().describe("Comma-separated categories. Returns items in *any* of them, which is what a point-of-sale category chip filters by. Shorthand for the equivalent `query` operator form, kept because a filter row should not have to build JSON."),usage:e.enum(["sale","purchase"]).optional().describe("Items for this side: items with this usage, items without a usage, and inventory-tracked items. Use `sale` for pickers on sales documents and `purchase` for pickers on expenses and purchase orders. Omit to list every item.")}),SxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),iMy=36,aMy=500,rMy=2e3,lMy=8,dMy=/^VATEX-[A-Z0-9-]{2,24}$/,uMy=500,cMy=100,pMy=200,mMy=200,xMy=36,gMy=100,yMy=-140737488355328,OMy=0x7fffffffffff,vMy=36,SMy=500,hMy=500,bMy=500,zMy=500,fMy=500,BMy=500,TMy=500,IMy=500,EMy=500,DMy=500,RMy=500,_My=500,NMy=500,MMy=500,UMy=500,PMy=500,CMy=500,wMy=500,AMy=500,FMy=2e3,kMy=2e3,jMy=2e3,HMy=2e3,LMy=2e3,GMy=2e3,VMy=2e3,KMy=2e3,ZMy=2e3,qMy=2e3,WMy=2e3,YMy=2e3,$My=2e3,QMy=2e3,JMy=2e3,XMy=2e3,eUy=2e3,tUy=2e3,nUy=2e3,hxS=e.object({data:e.array(e.object({id:e.string().max(iMy),name:e.string().max(aMy),description:e.string().max(rMy).nullish(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T product typing."),price:e.number().describe("Per-unit net price (before tax). Always stores net price."),gross_price:e.number().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),price_with_tax:e.number().describe("Per-unit price including tax. Stored for fast B2C/POS display regardless of input mode."),unit:e.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(lMy).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(dMy).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(uMy).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(cMy).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(pMy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(mMy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e.array(e.string().max(xMy)),categories:e.array(e.string().max(gMy)).optional().describe("Free-form groupings used to filter the catalog, typically shown as chips at a point of sale. An item can belong to several. Distinct from `financial_category_id` (accounting) and `classification` (e-invoicing). Empty when the item is in none."),track_inventory:e.boolean().optional().describe("Whether stock tracking is enabled for this item. When true, inventory movements can be recorded and invoicing this item records automatic `sale` movements."),sku:e.string().nullish().describe("Stock-keeping unit, free-form and merchant-defined."),usage:e.union([e.literal("sale"),e.literal("purchase"),e.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders), or null for both."),barcode:e.string().nullish().describe("GTIN/EAN/UPC barcode"),purchase_price:e.number().nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given."),total_tax:e.number().min(yMy).max(OMy),entity_id:e.string().max(vMy),financial_category_id:e.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),translations:e.object({name:e.object({"en-US":e.string().max(SMy).optional(),"de-DE":e.string().max(hMy).optional(),"it-IT":e.string().max(bMy).optional(),"fr-FR":e.string().max(zMy).optional(),"es-ES":e.string().max(fMy).optional(),"sl-SI":e.string().max(BMy).optional(),"pt-PT":e.string().max(TMy).optional(),"nl-NL":e.string().max(IMy).optional(),"pl-PL":e.string().max(EMy).optional(),"hr-HR":e.string().max(DMy).optional(),"sv-SE":e.string().max(RMy).optional(),"fi-FI":e.string().max(_My).optional(),"et-EE":e.string().max(NMy).optional(),"bg-BG":e.string().max(MMy).optional(),"cs-CZ":e.string().max(UMy).optional(),"sk-SK":e.string().max(PMy).optional(),"nb-NO":e.string().max(CMy).optional(),"is-IS":e.string().max(wMy).optional(),"hu-HU":e.string().max(AMy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(FMy).optional(),"de-DE":e.string().max(kMy).optional(),"it-IT":e.string().max(jMy).optional(),"fr-FR":e.string().max(HMy).optional(),"es-ES":e.string().max(LMy).optional(),"sl-SI":e.string().max(GMy).optional(),"pt-PT":e.string().max(VMy).optional(),"nl-NL":e.string().max(KMy).optional(),"pl-PL":e.string().max(ZMy).optional(),"hr-HR":e.string().max(qMy).optional(),"sv-SE":e.string().max(WMy).optional(),"fi-FI":e.string().max(YMy).optional(),"et-EE":e.string().max($My).optional(),"bg-BG":e.string().max(QMy).optional(),"cs-CZ":e.string().max(JMy).optional(),"sk-SK":e.string().max(XMy).optional(),"nb-NO":e.string().max(eUy).optional(),"is-IS":e.string().max(tUy).optional(),"hu-HU":e.string().max(nUy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Product or service item").and(e.looseObject({})).describe("Item or Service provided to customers by the Entity")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),bxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zxS=e.object({data:e.array(e.string())}),fxS=e.object({format:e.enum(["csv","xlsx"]).describe("Template file format."),language:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Language for the example row's free-text values (name, description, unit, category). Defaults to the entity locale when omitted. Column headers are always the English identifiers documented below.")}),BxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),IxS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("CSV or XLSX file to import")}),ExS=e.object({total_rows:e.number(),created:e.number(),updated:e.number(),skipped:e.number(),errors:e.number(),stock_movements:e.number().describe("Number of rows with starting stock to record as `adjustment_in` movements (0 when nothing to commit). For a preview, these are planned movements that would be created on commit; the movements themselves are only written once `committed` is true."),committed:e.boolean().describe("false for a preview; true once the commit endpoint has written the changes."),rows:e.array(e.object({row:e.number().describe("1-based data row number (header row is not counted)."),sku:e.string().nullable(),name:e.string().nullable(),action:e.enum(["create","update","skip","error"]).describe("What this row did (or would do) to the item catalog."),stock:e.enum(["create","skip","none"]).describe("What this row did (or would do) to starting stock."),messages:e.array(e.string()).describe("Human-readable notes and errors for this row.")}))}),DxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),RxS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("CSV or XLSX file to import")}),_xS=e.object({total_rows:e.number(),created:e.number(),updated:e.number(),skipped:e.number(),errors:e.number(),stock_movements:e.number().describe("Number of rows with starting stock to record as `adjustment_in` movements (0 when nothing to commit). For a preview, these are planned movements that would be created on commit; the movements themselves are only written once `committed` is true."),committed:e.boolean().describe("false for a preview; true once the commit endpoint has written the changes."),rows:e.array(e.object({row:e.number().describe("1-based data row number (header row is not counted)."),sku:e.string().nullable(),name:e.string().nullable(),action:e.enum(["create","update","skip","error"]).describe("What this row did (or would do) to the item catalog."),stock:e.enum(["create","skip","none"]).describe("What this row did (or would do) to starting stock."),messages:e.array(e.string()).describe("Human-readable notes and errors for this row.")}))}),sUy=/^[a-z]{3,4}_[0-9a-f]{24}$/,NxS=e.object({id:e.stringFormat("resource-id",sUy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),MxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),oUy=2e3,iUy=8,aUy=/^VATEX-[A-Z0-9-]{2,24}$/,rUy=500,lUy=100,dUy=200,uUy=200,cUy=36,pUy=100,mUy=100,xUy=50,gUy=0,yUy=500,OUy=500,vUy=500,SUy=500,hUy=500,bUy=500,zUy=500,fUy=500,BUy=500,TUy=500,IUy=500,EUy=500,DUy=500,RUy=500,_Uy=500,NUy=500,MUy=500,UUy=500,PUy=500,CUy=2e3,wUy=2e3,AUy=2e3,FUy=2e3,kUy=2e3,jUy=2e3,HUy=2e3,LUy=2e3,GUy=2e3,VUy=2e3,KUy=2e3,ZUy=2e3,qUy=2e3,WUy=2e3,YUy=2e3,$Uy=2e3,QUy=2e3,JUy=2e3,XUy=2e3,ePy=200,tPy=0,nPy=100,sPy=50,oPy=2,UxS=e.object({name:e.string().min(1).optional(),description:e.string().max(oUy).nullish().describe("Free-form description of the item. Omit to keep the current value; send null to clear it."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T item/service typing."),price:e.number().optional().describe("Net price per unit before tax in the item's currency major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. Provide either price OR gross_price, not both."),gross_price:e.number().optional().describe("Gross price per unit including tax in the item's currency major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. If provided, net price is calculated. Provide either price OR gross_price, not both."),unit:e.string().nullish().describe("Default display unit for document lines created from this saved item. Omit to keep the current value; send null to clear it."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(iUy).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(aUy).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(rUy).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(lUy).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(dUy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(uUy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e.array(e.string().max(cUy)).optional(),categories:e.array(e.string().max(pUy)).nullish().describe("Free-form groupings used to filter the catalog. Values are trimmed, lower-cased and de-duplicated on write. Omit or send null for none; on update, null clears the list."),track_inventory:e.boolean().nullish().describe("Opt in to stock tracking for this item. When enabled, inventory movements can be recorded and finalizing an invoice with this item automatically records a `sale` movement. Omit or send null for false."),sku:e.string().max(mUy).nullish().describe("Stock-keeping unit, free-form and merchant-defined. Omit to keep the current value; send null to clear it."),usage:e.union([e.literal("sale"),e.literal("purchase"),e.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders). Omit to keep the current value; send null to clear it so the item is used for both."),barcode:e.string().max(xUy).nullish().describe("GTIN/EAN/UPC barcode. Omit to keep the current value; send null to clear it."),purchase_price:e.number().min(gUy).nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given. Omit to keep the current value; send null to clear it."),financial_category_id:e.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned. Omit to keep the current value; send null to clear it."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),translations:e.union([e.object({name:e.object({"en-US":e.string().max(yUy).nullish(),"de-DE":e.string().max(OUy).nullish(),"it-IT":e.string().max(vUy).nullish(),"fr-FR":e.string().max(SUy).nullish(),"es-ES":e.string().max(hUy).nullish(),"sl-SI":e.string().max(bUy).nullish(),"pt-PT":e.string().max(zUy).nullish(),"nl-NL":e.string().max(fUy).nullish(),"pl-PL":e.string().max(BUy).nullish(),"hr-HR":e.string().max(TUy).nullish(),"sv-SE":e.string().max(IUy).nullish(),"fi-FI":e.string().max(EUy).nullish(),"et-EE":e.string().max(DUy).nullish(),"bg-BG":e.string().max(RUy).nullish(),"cs-CZ":e.string().max(_Uy).nullish(),"sk-SK":e.string().max(NUy).nullish(),"nb-NO":e.string().max(MUy).nullish(),"is-IS":e.string().max(UUy).nullish(),"hu-HU":e.string().max(PUy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(CUy).nullish(),"de-DE":e.string().max(wUy).nullish(),"it-IT":e.string().max(AUy).nullish(),"fr-FR":e.string().max(FUy).nullish(),"es-ES":e.string().max(kUy).nullish(),"sl-SI":e.string().max(jUy).nullish(),"pt-PT":e.string().max(HUy).nullish(),"nl-NL":e.string().max(LUy).nullish(),"pl-PL":e.string().max(GUy).nullish(),"hr-HR":e.string().max(VUy).nullish(),"sv-SE":e.string().max(KUy).nullish(),"fi-FI":e.string().max(ZUy).nullish(),"et-EE":e.string().max(qUy).nullish(),"bg-BG":e.string().max(WUy).nullish(),"cs-CZ":e.string().max(YUy).nullish(),"sk-SK":e.string().max($Uy).nullish(),"nb-NO":e.string().max(QUy).nullish(),"is-IS":e.string().max(JUy).nullish(),"hu-HU":e.string().max(XUy).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content accepted on create and update. Same shape as `DocumentItemTranslations`; an explicit `null` for a field or a locale is treated as omitted."),e.null()]).optional().describe("Translated catalog-item content. Set to null to clear all translations."),financial_category_key:e.string().max(ePy).nullish().describe("Key of the default financial category (for example `office-supplies`), as an alternative to `financial_category_id`. Provide either, not both. On create a null value counts as not provided; on update null clears the default, and sending both fields is rejected."),taxes:e.array(e.object({rate:e.number().min(tPy).max(nPy).optional().describe("Tax rate percentage. Either rate or classification must be provided."),classification:e.string().max(sPy).optional().describe("Tax classification to lookup existing tax. Either rate or classification must be provided.")})).max(oPy).nullish().describe("Taxes for the item. Provide rate to auto-create, or classification to lookup existing tax.")}),iPy=36,aPy=500,rPy=2e3,lPy=8,dPy=/^VATEX-[A-Z0-9-]{2,24}$/,uPy=500,cPy=100,pPy=200,mPy=200,xPy=36,gPy=100,yPy=-140737488355328,OPy=0x7fffffffffff,vPy=36,SPy=500,hPy=500,bPy=500,zPy=500,fPy=500,BPy=500,TPy=500,IPy=500,EPy=500,DPy=500,RPy=500,_Py=500,NPy=500,MPy=500,UPy=500,PPy=500,CPy=500,wPy=500,APy=500,FPy=2e3,kPy=2e3,jPy=2e3,HPy=2e3,LPy=2e3,GPy=2e3,VPy=2e3,KPy=2e3,ZPy=2e3,qPy=2e3,WPy=2e3,YPy=2e3,$Py=2e3,QPy=2e3,JPy=2e3,XPy=2e3,e2y=2e3,t2y=2e3,n2y=2e3,PxS=e.object({id:e.string().max(iPy),name:e.string().max(aPy),description:e.string().max(rPy).nullish(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T product typing."),price:e.number().describe("Per-unit net price (before tax). Always stores net price."),gross_price:e.number().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),price_with_tax:e.number().describe("Per-unit price including tax. Stored for fast B2C/POS display regardless of input mode."),unit:e.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(lPy).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(dPy).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(uPy).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(cPy).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(pPy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(mPy).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e.array(e.string().max(xPy)),categories:e.array(e.string().max(gPy)).optional().describe("Free-form groupings used to filter the catalog, typically shown as chips at a point of sale. An item can belong to several. Distinct from `financial_category_id` (accounting) and `classification` (e-invoicing). Empty when the item is in none."),track_inventory:e.boolean().optional().describe("Whether stock tracking is enabled for this item. When true, inventory movements can be recorded and invoicing this item records automatic `sale` movements."),sku:e.string().nullish().describe("Stock-keeping unit, free-form and merchant-defined."),usage:e.union([e.literal("sale"),e.literal("purchase"),e.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders), or null for both."),barcode:e.string().nullish().describe("GTIN/EAN/UPC barcode"),purchase_price:e.number().nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given."),total_tax:e.number().min(yPy).max(OPy),entity_id:e.string().max(vPy),financial_category_id:e.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),translations:e.object({name:e.object({"en-US":e.string().max(SPy).optional(),"de-DE":e.string().max(hPy).optional(),"it-IT":e.string().max(bPy).optional(),"fr-FR":e.string().max(zPy).optional(),"es-ES":e.string().max(fPy).optional(),"sl-SI":e.string().max(BPy).optional(),"pt-PT":e.string().max(TPy).optional(),"nl-NL":e.string().max(IPy).optional(),"pl-PL":e.string().max(EPy).optional(),"hr-HR":e.string().max(DPy).optional(),"sv-SE":e.string().max(RPy).optional(),"fi-FI":e.string().max(_Py).optional(),"et-EE":e.string().max(NPy).optional(),"bg-BG":e.string().max(MPy).optional(),"cs-CZ":e.string().max(UPy).optional(),"sk-SK":e.string().max(PPy).optional(),"nb-NO":e.string().max(CPy).optional(),"is-IS":e.string().max(wPy).optional(),"hu-HU":e.string().max(APy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(FPy).optional(),"de-DE":e.string().max(kPy).optional(),"it-IT":e.string().max(jPy).optional(),"fr-FR":e.string().max(HPy).optional(),"es-ES":e.string().max(LPy).optional(),"sl-SI":e.string().max(GPy).optional(),"pt-PT":e.string().max(VPy).optional(),"nl-NL":e.string().max(KPy).optional(),"pl-PL":e.string().max(ZPy).optional(),"hr-HR":e.string().max(qPy).optional(),"sv-SE":e.string().max(WPy).optional(),"fi-FI":e.string().max(YPy).optional(),"et-EE":e.string().max($Py).optional(),"bg-BG":e.string().max(QPy).optional(),"cs-CZ":e.string().max(JPy).optional(),"sk-SK":e.string().max(XPy).optional(),"nb-NO":e.string().max(e2y).optional(),"is-IS":e.string().max(t2y).optional(),"hu-HU":e.string().max(n2y).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Product or service item").and(e.looseObject({})).describe("Item or Service provided to customers by the Entity"),s2y=/^[a-z]{3,4}_[0-9a-f]{24}$/,CxS=e.object({id:e.stringFormat("resource-id",s2y).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),wxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),o2y=/^[a-z]{3,4}_[0-9a-f]{24}$/,AxS=e.object({id:e.stringFormat("resource-id",o2y).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),FxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),i2y=36,a2y=500,r2y=2e3,l2y=8,d2y=/^VATEX-[A-Z0-9-]{2,24}$/,u2y=500,c2y=100,p2y=200,m2y=200,x2y=36,g2y=100,y2y=-140737488355328,O2y=0x7fffffffffff,v2y=36,S2y=500,h2y=500,b2y=500,z2y=500,f2y=500,B2y=500,T2y=500,I2y=500,E2y=500,D2y=500,R2y=500,_2y=500,N2y=500,M2y=500,U2y=500,P2y=500,C2y=500,w2y=500,A2y=500,F2y=2e3,k2y=2e3,j2y=2e3,H2y=2e3,L2y=2e3,G2y=2e3,V2y=2e3,K2y=2e3,Z2y=2e3,q2y=2e3,W2y=2e3,Y2y=2e3,$2y=2e3,Q2y=2e3,J2y=2e3,X2y=2e3,eCy=2e3,tCy=2e3,nCy=2e3,kxS=e.object({id:e.string().max(i2y),name:e.string().max(a2y),description:e.string().max(r2y).nullish(),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T product typing."),price:e.number().describe("Per-unit net price (before tax). Always stores net price."),gross_price:e.number().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),price_with_tax:e.number().describe("Per-unit price including tax. Stored for fast B2C/POS display regardless of input mode."),unit:e.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e.union([e.object({unit_code:e.string().min(1).max(l2y).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e.union([e.object({code:e.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e.string().regex(d2y).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e.string().min(1).max(u2y).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e.null()]).optional(),italy:e.union([e.object({nature:e.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e.string().min(1).max(c2y).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e.null()]).optional(),hungary:e.object({vat_treatment:e.union([e.object({type:e.enum(["exemption"]),case:e.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e.string().min(1).max(p2y).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["out_of_scope"]),case:e.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e.string().min(1).max(m2y).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e.object({type:e.enum(["domestic_reverse_charge"])}),e.object({type:e.enum(["no_vat_charge"])}),e.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input."),e.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e.array(e.string().max(x2y)),categories:e.array(e.string().max(g2y)).optional().describe("Free-form groupings used to filter the catalog, typically shown as chips at a point of sale. An item can belong to several. Distinct from `financial_category_id` (accounting) and `classification` (e-invoicing). Empty when the item is in none."),track_inventory:e.boolean().optional().describe("Whether stock tracking is enabled for this item. When true, inventory movements can be recorded and invoicing this item records automatic `sale` movements."),sku:e.string().nullish().describe("Stock-keeping unit, free-form and merchant-defined."),usage:e.union([e.literal("sale"),e.literal("purchase"),e.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders), or null for both."),barcode:e.string().nullish().describe("GTIN/EAN/UPC barcode"),purchase_price:e.number().nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given."),total_tax:e.number().min(y2y).max(O2y),entity_id:e.string().max(v2y),financial_category_id:e.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),translations:e.object({name:e.object({"en-US":e.string().max(S2y).optional(),"de-DE":e.string().max(h2y).optional(),"it-IT":e.string().max(b2y).optional(),"fr-FR":e.string().max(z2y).optional(),"es-ES":e.string().max(f2y).optional(),"sl-SI":e.string().max(B2y).optional(),"pt-PT":e.string().max(T2y).optional(),"nl-NL":e.string().max(I2y).optional(),"pl-PL":e.string().max(E2y).optional(),"hr-HR":e.string().max(D2y).optional(),"sv-SE":e.string().max(R2y).optional(),"fi-FI":e.string().max(_2y).optional(),"et-EE":e.string().max(N2y).optional(),"bg-BG":e.string().max(M2y).optional(),"cs-CZ":e.string().max(U2y).optional(),"sk-SK":e.string().max(P2y).optional(),"nb-NO":e.string().max(C2y).optional(),"is-IS":e.string().max(w2y).optional(),"hu-HU":e.string().max(A2y).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e.object({"en-US":e.string().max(F2y).optional(),"de-DE":e.string().max(k2y).optional(),"it-IT":e.string().max(j2y).optional(),"fr-FR":e.string().max(H2y).optional(),"es-ES":e.string().max(L2y).optional(),"sl-SI":e.string().max(G2y).optional(),"pt-PT":e.string().max(V2y).optional(),"nl-NL":e.string().max(K2y).optional(),"pl-PL":e.string().max(Z2y).optional(),"hr-HR":e.string().max(q2y).optional(),"sv-SE":e.string().max(W2y).optional(),"fi-FI":e.string().max(Y2y).optional(),"et-EE":e.string().max($2y).optional(),"bg-BG":e.string().max(Q2y).optional(),"cs-CZ":e.string().max(J2y).optional(),"sk-SK":e.string().max(X2y).optional(),"nb-NO":e.string().max(eCy).optional(),"is-IS":e.string().max(tCy).optional(),"hu-HU":e.string().max(nCy).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Product or service item").and(e.looseObject({})).describe("Item or Service provided to customers by the Entity"),sCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,jxS=e.object({id:e.stringFormat("resource-id",sCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),HxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),oCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,LxS=e.object({id:e.stringFormat("resource-id",oCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),GxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),VxS=e.object({item_id:e.string(),track_inventory:e.boolean(),quantity_on_hand:e.number().describe("Current stock on hand. May be negative if outbound movements outpaced recorded inbound stock."),total_value:e.number().describe("Remaining value of stock on hand, from FIFO cost layers."),average_unit_cost:e.number().nullable().describe("total_value / quantity_on_hand, or null when there is no stock on hand."),layers:e.array(e.object({movement_id:e.string(),occurred_at:e.iso.datetime({}),unit_cost:e.number(),quantity_remaining:e.number()})).describe("Current FIFO cost layers, oldest first."),warehouses:e.array(e.object({warehouse_id:e.string(),warehouse_name:e.string(),quantity_on_hand:e.number(),total_value:e.number().describe("Warehouse quantity \xD7 the entity's average cost. Cost layers are entity-level, not per-warehouse.")})).describe("Per-warehouse quantity and value. Includes every warehouse with a non-zero quantity, plus the entity's default warehouse even when empty.")}),iCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,KxS=e.object({id:e.stringFormat("resource-id",iCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),aCy=10,rCy=100,ZxS=e.object({limit:e.number().min(1).max(rCy).default(aCy).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),warehouse_id:e.string().optional().describe("Filter to movements where this warehouse is the source or destination."),document_id:e.string().nullish().describe("Filter to movements generated automatically by this document (e.g. the invoice or credit note whose finalization recorded them). Movements created manually through this endpoint have no document and never match.")}),qxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WxS=e.object({data:e.array(e.object({id:e.string(),item_id:e.string(),type:e.enum(["purchase","sale","adjustment_in","adjustment_out","sale_return","write_off","transfer"]).describe("Movement type. Inbound: `purchase`, `sale_return`, `adjustment_in`. Outbound: `sale`, `adjustment_out`, `write_off`. `transfer` relocates quantity between warehouses and never touches cost layers. `purchase`, `sale` and `sale_return` are recorded automatically by finalizing an expense, invoice, or credit note, respectively, for a tracked item \u2014 they cannot be created manually."),quantity:e.number(),unit_cost:e.number().nullable(),cost_total:e.number().describe("Total cost for this movement. For inbound movements this is quantity \xD7 unit_cost; for outbound movements it is derived from the FIFO layers consumed."),occurred_at:e.iso.datetime({}),warehouse_id:e.string().describe("Warehouse this movement affects (source warehouse for `transfer`)."),destination_warehouse_id:e.string().nullable().describe("Destination warehouse for `transfer` movements; null otherwise."),source_movement_id:e.string().nullable().describe("For `sale_return`: the `sale` movement being reversed, when known."),source_document_id:e.string().nullable().describe("For `sale_return`: the invoice being reversed, used to derive cost when `source_movement_id` is unavailable."),document_id:e.string().nullable().describe("The document that generated this movement, when it was created automatically (e.g. an invoice)."),document_type:e.string().nullable().describe("The kind of document that generated this movement automatically, e.g. `invoice` (sale), `credit_note` (sale_return), or `expense` (purchase). Null for manually-recorded movements."),note:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})})),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),lCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,YxS=e.object({id:e.stringFormat("resource-id",lCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),$xS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dCy=0,uCy=0,cCy=500,QxS=e.object({type:e.enum(["adjustment_in","adjustment_out","write_off","transfer"]).describe("Movement type for manually-recorded movements. `purchase`, `sale` and `sale_return` are recorded automatically by finalizing an expense, invoice, or credit note, respectively, and cannot be created through this endpoint. Use `adjustment_in` (with `unit_cost`) for opening stock, stock counts, or returns received without a credit note."),quantity:e.number().gt(dCy).describe("Movement quantity. Always positive; direction is determined by `type`."),unit_cost:e.number().min(uCy).nullish().describe("Per-unit cost in the entity's currency major unit. Required for `adjustment_in` unless the item has a `purchase_price`; ignored (forced to null) for outbound movements and `transfer`, whose cost is derived from FIFO layers."),occurred_at:e.iso.datetime({}).nullish().describe("When the movement occurred (ISO 8601 datetime with offset). Defaults to now."),warehouse_id:e.string().nullish().describe("Warehouse this movement affects (source warehouse for `transfer`). Omitted resolves to the business unit's default warehouse (if configured) or the entity's default warehouse, created on demand."),destination_warehouse_id:e.string().nullish().describe("Required for `transfer`: the warehouse quantity moves into. Must differ from `warehouse_id`."),note:e.string().max(cCy).nullish().describe("Optional free-text note about this movement.")}),pCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,mCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,JxS=e.object({id:e.stringFormat("resource-id",pCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_."),movementId:e.stringFormat("resource-id",mCy).describe("Inventory movement identifier.")}),XxS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var pt={};W(pt,{CreateMigrationJobBody:()=>lgS,CreateMigrationJobHeader:()=>rgS,GetLegacyMigrationOrganizationHeader:()=>igS,GetLegacyMigrationOrganizationParams:()=>sgS,GetLegacyMigrationOrganizationQueryParams:()=>ogS,GetLegacyMigrationOrganizationResponse:()=>agS,GetMigrationJobHeader:()=>pgS,GetMigrationJobParams:()=>cgS,GetMigrationJobResponse:()=>mgS,LegacyMigrationAuthBody:()=>tgS,LegacyMigrationAuthHeader:()=>egS,LegacyMigrationAuthResponse:()=>ngS,ListMigrationJobsHeader:()=>dgS,ListMigrationJobsResponse:()=>ugS,createMigrationJobHeaderXAccountIdRegExp:()=>yCy,getLegacyMigrationOrganizationHeaderXAccountIdRegExp:()=>gCy,getMigrationJobHeaderXAccountIdRegExp:()=>vCy,legacyMigrationAuthHeaderXAccountIdRegExp:()=>xCy,listMigrationJobsHeaderXAccountIdRegExp:()=>OCy});var xCy=/^acc_[0-9a-fA-F]{24}$/,egS=e.object({"x-account-id":e.string().regex(xCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),tgS=e.object({email:e.email().describe("Email for legacy Space Invoices account"),password:e.string().min(1).describe("Password for legacy Space Invoices account")}),ngS=e.object({organizations:e.array(e.object({id:e.string().describe("Legacy organization ID"),name:e.string().describe("Organization name"),country:e.string().nullable().describe("Country"),tax_number:e.string().nullable().describe("Tax number"),created_at:e.string().describe("Creation date"),already_migrated:e.boolean().describe("Whether this org has already been migrated"),migrated_environment:e.string().nullable().describe("Environment it was migrated to")})),legacy_session_id:e.string().describe("Temporary server-side legacy session identifier used for async file migration")}),sgS=e.object({legacyOrgId:e.string().describe("Legacy organization ID")}),ogS=e.object({legacy_session_id:e.string().min(1).describe("Temporary legacy session ID created after legacy authentication")}),gCy=/^acc_[0-9a-fA-F]{24}$/,igS=e.object({"x-account-id":e.string().regex(gCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),agS=e.object({id:e.string().describe("Legacy organization ID"),name:e.string().describe("Organization name"),country:e.string().nullable().describe("Country"),tax_number:e.string().nullable().describe("Tax number"),created_at:e.string().describe("Creation date"),already_migrated:e.boolean().describe("Whether this org has already been migrated"),migrated_environment:e.string().nullable().describe("Environment it was migrated to"),unsupported:e.array(e.object({code:e.enum(["fiscalization_series","accounting_categories","inventory_and_pricing","sales_integrations","webhooks"]).describe("Unsupported migration warning code"),label:e.string().describe("User-facing label for the unsupported data group"),description:e.string().describe("Explanation of what must be set up manually"),count:e.number().describe("Records still requiring manual follow-up after migration"),collections:e.array(e.string()).describe("Legacy collections covered by the warning group"),coverage:e.object({migratable_count:e.number().describe("Records that can be migrated automatically"),total_count:e.number().describe("Total relevant legacy records detected")}).optional().describe("Optional automatic migration coverage details for partially supported groups")})).describe("Unsupported legacy data groups that require confirmation before migration"),requires_confirmation:e.boolean().describe("Whether the user must confirm migration despite unsupported legacy data"),subscription_review:e.object({legacy_subscription:e.object({gateway:e.enum(["braintree","bank","paypal","unknown"]),tier:e.number(),plan_name:e.string(),duration_months:e.number(),additions:e.array(e.string()),active_until:e.string().nullable(),price_cents:e.number().nullable()}).nullable(),recommended_plan:e.object({slug:e.string(),name:e.string(),billing_interval:e.enum(["monthly","yearly"]),price_cents:e.number(),base_price_cents:e.number(),extra_store_count:e.number(),extra_store_price_cents:e.number(),reasons:e.array(e.string())}).nullable(),trial_offer:e.object({eligible:e.boolean(),trial_days:e.number()}),price_difference_cents:e.number().nullable(),renewal_payment_provider:e.union([e.literal("braintree"),e.literal("bank"),e.literal("paypal"),e.literal("unknown"),e.literal(null)]).nullable(),requires_payment_method_update:e.boolean(),usage_signals:e.object({member_count:e.number(),recurring_count:e.number(),sales_integrations_count:e.number(),billable_store_count:e.number(),business_units_count:e.number(),financial_categories_count:e.number(),has_furs:e.boolean()})}).nullable().describe("Legacy subscription snapshot and recommended Apollo white-label plan for this organization")}),yCy=/^acc_[0-9a-fA-F]{24}$/,rgS=e.object({"x-account-id":e.string().regex(yCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),lgS=e.object({legacy_org_id:e.string().min(1).describe("Legacy organization ID to migrate"),legacy_session_id:e.string().min(1).describe("Temporary legacy session ID created after legacy authentication"),environment:e.enum(["live","sandbox"]).describe("Target environment"),confirm_unsupported_data:e.boolean().optional().describe("Explicit user confirmation that unsupported legacy data will need manual setup")}),OCy=/^acc_[0-9a-fA-F]{24}$/,dgS=e.object({"x-account-id":e.string().regex(OCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),ugS=e.object({data:e.array(e.object({id:e.string().describe("Job ID"),legacy_org_id:e.string().describe("Legacy organization ID"),environment:e.string().describe("Target environment"),entity_id:e.string().nullable().describe("Created entity ID (on completion)"),status:e.enum(["pending","processing","completed","failed"]).describe("Migration job status"),step:e.string().nullable().describe("Current step label"),step_number:e.number().describe("Current step number"),total_steps:e.number().describe("Total number of steps"),progress_detail:e.string().nullable().describe("Progress detail"),error:e.string().nullable().describe("User-friendly error message"),created_at:e.string().describe("Job creation date"),started_at:e.string().nullable().describe("Job start date"),completed_at:e.string().nullable().describe("Job completion date")}))}),cgS=e.object({id:e.string().describe("Migration job ID")}),vCy=/^acc_[0-9a-fA-F]{24}$/,pgS=e.object({"x-account-id":e.string().regex(vCy).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),mgS=e.object({id:e.string().describe("Job ID"),legacy_org_id:e.string().describe("Legacy organization ID"),environment:e.string().describe("Target environment"),entity_id:e.string().nullable().describe("Created entity ID (on completion)"),status:e.enum(["pending","processing","completed","failed"]).describe("Migration job status"),step:e.string().nullable().describe("Current step label"),step_number:e.number().describe("Current step number"),total_steps:e.number().describe("Total number of steps"),progress_detail:e.string().nullable().describe("Progress detail"),error:e.string().nullable().describe("User-friendly error message"),created_at:e.string().describe("Job creation date"),started_at:e.string().nullable().describe("Job start date"),completed_at:e.string().nullable().describe("Job completion date")});var mt={};W(mt,{AuthorizeMagentoBody:()=>bgS,AuthorizeMagentoHeader:()=>hgS,AuthorizeMagentoResponse:()=>zgS,AuthorizeShopifyBody:()=>ggS,AuthorizeShopifyHeader:()=>xgS,AuthorizeShopifyResponse:()=>ygS,AuthorizeWooCommerceBody:()=>vgS,AuthorizeWooCommerceHeader:()=>OgS,AuthorizeWooCommerceResponse:()=>SgS,ConnectCustomStoreBody:()=>jgS,ConnectCustomStoreHeader:()=>kgS,CreateOrderIntegrationBody:()=>YgS,CreateOrderIntegrationHeader:()=>WgS,DeleteOrderIntegrationHeader:()=>r0S,DeleteOrderIntegrationParams:()=>a0S,GetMagentoAuthorizationHeader:()=>BgS,GetMagentoAuthorizationParams:()=>fgS,GetMagentoAuthorizationResponse:()=>TgS,GetOrderIntegrationByIdHeader:()=>e0S,GetOrderIntegrationByIdParams:()=>XgS,GetOrderIntegrationByIdResponse:()=>t0S,GetOrderIntegrationsHeader:()=>QgS,GetOrderIntegrationsQueryParams:()=>$gS,GetOrderIntegrationsResponse:()=>JgS,PromoteShopifyBillingHeader:()=>RgS,PromoteShopifyBillingParams:()=>DgS,PromoteShopifyBillingResponse:()=>_gS,PushCustomStoreOrderBody:()=>ZgS,PushCustomStoreOrderHeader:()=>KgS,PushCustomStoreOrderParams:()=>VgS,PushCustomStoreOrderResponse:()=>qgS,ResumeShopifyInstallBody:()=>IgS,ResumeShopifyInstallResponse:()=>EgS,RotateCustomStoreSecretHeader:()=>LgS,RotateCustomStoreSecretParams:()=>HgS,RotateCustomStoreSecretResponse:()=>GgS,SyncOrderIntegrationBody:()=>AgS,SyncOrderIntegrationHeader:()=>wgS,SyncOrderIntegrationParams:()=>CgS,SyncOrderIntegrationResponse:()=>FgS,SyncShopifyOrdersBody:()=>UgS,SyncShopifyOrdersHeader:()=>MgS,SyncShopifyOrdersParams:()=>NgS,SyncShopifyOrdersResponse:()=>PgS,UpdateOrderIntegrationBody:()=>o0S,UpdateOrderIntegrationHeader:()=>s0S,UpdateOrderIntegrationParams:()=>n0S,UpdateOrderIntegrationResponse:()=>i0S,authorizeMagentoBodyAutoProcessDelaySecondsMin:()=>ICy,authorizeMagentoBodyBusinessUnitIdMax:()=>ECy,authorizeMagentoBodyReconnectIntegrationIdMax:()=>RCy,authorizeMagentoBodyStoreUrlMax:()=>DCy,authorizeShopifyBodyAutoProcessDelaySecondsMin:()=>hCy,authorizeShopifyBodyBusinessUnitIdMax:()=>bCy,authorizeShopifyBodyPendingInstallTokenMax:()=>SCy,authorizeWooCommerceBodyAutoProcessDelaySecondsMin:()=>zCy,authorizeWooCommerceBodyBusinessUnitIdMax:()=>fCy,authorizeWooCommerceBodyReconnectIntegrationIdMax:()=>TCy,authorizeWooCommerceBodyStoreUrlMax:()=>BCy,connectCustomStoreBodyAutoProcessDelaySecondsMin:()=>jCy,connectCustomStoreBodyBusinessUnitIdMax:()=>HCy,connectCustomStoreBodyNameMax:()=>kCy,connectCustomStoreBodyStoreUrlMax:()=>LCy,createOrderIntegrationBodyBusinessPremiseIdMax:()=>Cwy,createOrderIntegrationBodyBusinessUnitIdMax:()=>Pwy,createOrderIntegrationBodyElectronicDeviceIdMax:()=>wwy,createOrderIntegrationBodyLocaleMax:()=>Uwy,createOrderIntegrationBodySourceDefault:()=>Mwy,deleteOrderIntegrationPathIdRegExp:()=>NAy,getMagentoAuthorizationPathIdRegExp:()=>_Cy,getOrderIntegrationByIdPathIdRegExp:()=>Jwy,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMax:()=>rAy,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMin:()=>aAy,getOrderIntegrationByIdResponseOneBusinessPremiseIdMax:()=>uAy,getOrderIntegrationByIdResponseOneBusinessUnitIdMax:()=>dAy,getOrderIntegrationByIdResponseOneDefaultPaymentTypeMax:()=>iAy,getOrderIntegrationByIdResponseOneElectronicDeviceIdMax:()=>cAy,getOrderIntegrationByIdResponseOneEntityIdMax:()=>eAy,getOrderIntegrationByIdResponseOneIdMax:()=>Xwy,getOrderIntegrationByIdResponseOneLocaleMax:()=>lAy,getOrderIntegrationByIdResponseOneNameMax:()=>tAy,getOrderIntegrationByIdResponseOneScopesMax:()=>sAy,getOrderIntegrationByIdResponseOneShopDomainMax:()=>nAy,getOrderIntegrationByIdResponseOneStoreUrlMax:()=>oAy,getOrderIntegrationsQueryLimitDefault:()=>Awy,getOrderIntegrationsQueryLimitMax:()=>Fwy,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMax:()=>qwy,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMin:()=>Zwy,getOrderIntegrationsResponseDataItemOneBusinessPremiseIdMax:()=>$wy,getOrderIntegrationsResponseDataItemOneBusinessUnitIdMax:()=>Ywy,getOrderIntegrationsResponseDataItemOneDefaultPaymentTypeMax:()=>Kwy,getOrderIntegrationsResponseDataItemOneElectronicDeviceIdMax:()=>Qwy,getOrderIntegrationsResponseDataItemOneEntityIdMax:()=>jwy,getOrderIntegrationsResponseDataItemOneIdMax:()=>kwy,getOrderIntegrationsResponseDataItemOneLocaleMax:()=>Wwy,getOrderIntegrationsResponseDataItemOneNameMax:()=>Hwy,getOrderIntegrationsResponseDataItemOneScopesMax:()=>Gwy,getOrderIntegrationsResponseDataItemOneShopDomainMax:()=>Lwy,getOrderIntegrationsResponseDataItemOneStoreUrlMax:()=>Vwy,promoteShopifyBillingPathIdRegExp:()=>NCy,pushCustomStoreOrderBodyBillingAddressAddress2Max:()=>iwy,pushCustomStoreOrderBodyBillingAddressAddressMax:()=>owy,pushCustomStoreOrderBodyBillingAddressCityMax:()=>awy,pushCustomStoreOrderBodyBillingAddressCountryCodeMax:()=>cwy,pushCustomStoreOrderBodyBillingAddressCountryCodeMin:()=>uwy,pushCustomStoreOrderBodyBillingAddressCountryMax:()=>dwy,pushCustomStoreOrderBodyBillingAddressPostCodeMax:()=>lwy,pushCustomStoreOrderBodyBillingAddressStateMax:()=>rwy,pushCustomStoreOrderBodyCurrencyCodeRegExp:()=>WCy,pushCustomStoreOrderBodyCustomerCompanyNameMax:()=>ewy,pushCustomStoreOrderBodyCustomerCompanyNumberMax:()=>nwy,pushCustomStoreOrderBodyCustomerEmailMax:()=>JCy,pushCustomStoreOrderBodyCustomerNameMax:()=>QCy,pushCustomStoreOrderBodyCustomerNotesMax:()=>swy,pushCustomStoreOrderBodyCustomerPhoneMax:()=>XCy,pushCustomStoreOrderBodyCustomerTaxNumberMax:()=>twy,pushCustomStoreOrderBodyEventIdMax:()=>qCy,pushCustomStoreOrderBodyIdMax:()=>KCy,pushCustomStoreOrderBodyItemsItemDiscountMin:()=>Twy,pushCustomStoreOrderBodyItemsItemIdMax:()=>hwy,pushCustomStoreOrderBodyItemsItemNameMax:()=>bwy,pushCustomStoreOrderBodyItemsItemQuantityExclusiveMin:()=>fwy,pushCustomStoreOrderBodyItemsItemSkuMax:()=>zwy,pushCustomStoreOrderBodyItemsItemTaxRateMax:()=>Ewy,pushCustomStoreOrderBodyItemsItemTaxRateMin:()=>Iwy,pushCustomStoreOrderBodyItemsItemUnitMax:()=>Dwy,pushCustomStoreOrderBodyItemsItemUnitPriceMin:()=>Bwy,pushCustomStoreOrderBodyItemsMax:()=>Rwy,pushCustomStoreOrderBodyLocaleMax:()=>$Cy,pushCustomStoreOrderBodyOrderNumberMax:()=>ZCy,pushCustomStoreOrderBodyPaymentMethodMax:()=>_wy,pushCustomStoreOrderBodyPaymentReferenceMax:()=>Nwy,pushCustomStoreOrderBodyShippingAddressAddress2Max:()=>mwy,pushCustomStoreOrderBodyShippingAddressAddressMax:()=>pwy,pushCustomStoreOrderBodyShippingAddressCityMax:()=>xwy,pushCustomStoreOrderBodyShippingAddressCountryCodeMax:()=>Swy,pushCustomStoreOrderBodyShippingAddressCountryCodeMin:()=>vwy,pushCustomStoreOrderBodyShippingAddressCountryMax:()=>Owy,pushCustomStoreOrderBodyShippingAddressPostCodeMax:()=>ywy,pushCustomStoreOrderBodyShippingAddressStateMax:()=>gwy,pushCustomStoreOrderBodyTotalWithTaxMin:()=>YCy,pushCustomStoreOrderPathIdRegExp:()=>VCy,rotateCustomStoreSecretPathIdRegExp:()=>GCy,syncOrderIntegrationBodyCursorMax:()=>ACy,syncOrderIntegrationBodyDefault:()=>wCy,syncOrderIntegrationBodyLimitMax:()=>FCy,syncOrderIntegrationPathIdRegExp:()=>CCy,syncShopifyOrdersBodyCursorMax:()=>UCy,syncShopifyOrdersBodyLimitMax:()=>PCy,syncShopifyOrdersPathIdRegExp:()=>MCy,updateOrderIntegrationBodyAutoProcessDelaySecondsMin:()=>OAy,updateOrderIntegrationBodyBusinessPremiseIdMax:()=>gAy,updateOrderIntegrationBodyBusinessUnitIdMax:()=>xAy,updateOrderIntegrationBodyElectronicDeviceIdMax:()=>yAy,updateOrderIntegrationBodyLocaleMax:()=>mAy,updateOrderIntegrationPathIdRegExp:()=>pAy,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMax:()=>IAy,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMin:()=>TAy,updateOrderIntegrationResponseOneBusinessPremiseIdMax:()=>RAy,updateOrderIntegrationResponseOneBusinessUnitIdMax:()=>DAy,updateOrderIntegrationResponseOneDefaultPaymentTypeMax:()=>BAy,updateOrderIntegrationResponseOneElectronicDeviceIdMax:()=>_Ay,updateOrderIntegrationResponseOneEntityIdMax:()=>SAy,updateOrderIntegrationResponseOneIdMax:()=>vAy,updateOrderIntegrationResponseOneLocaleMax:()=>EAy,updateOrderIntegrationResponseOneNameMax:()=>hAy,updateOrderIntegrationResponseOneScopesMax:()=>zAy,updateOrderIntegrationResponseOneShopDomainMax:()=>bAy,updateOrderIntegrationResponseOneStoreUrlMax:()=>fAy});var xgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),SCy=80,hCy=0,bCy=36,ggS=e.object({shop_domain:e.string().min(1).describe("Shopify shop domain, e.g. myshop.myshopify.com"),name:e.string().optional().describe("Integration name"),app_store_install:e.boolean().nullish().describe("Deprecated client hint; verified App Store launches require app_store_launch."),app_store_launch:e.object({shop:e.string().min(1),host:e.string().min(1),hmac:e.string().min(1),timestamp:e.string().min(1)}).nullish().describe("Original signed Shopify App Store launch parameters."),pending_install_token:e.string().min(1).max(SCy).nullish().describe("Opaque continuation token returned after Shopify OAuth. Used to bind an authenticated App Store install to an Apollo entity."),auto_process:e.boolean().optional().describe("Auto-create invoices on order receipt"),auto_process_on:e.union([e.literal("created"),e.literal("paid"),e.literal("fulfilled"),e.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing"),send_invoice_email:e.boolean().optional().describe("Auto-send invoice email"),issue_invoice_for_bank:e.boolean().optional().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e.boolean().optional().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e.number().min(hCy).optional().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e.string().max(bCy).nullish().describe("Business unit to use for auto-created documents.")}),ygS=e.object({redirect_url:e.url()}),OgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zCy=0,fCy=36,BCy=2048,TCy=36,vgS=e.object({name:e.string().nullish().describe("Integration name"),auto_process:e.boolean().nullish().describe("Auto-create invoices on order receipt"),auto_process_on:e.union([e.literal("created"),e.literal("paid"),e.literal("fulfilled"),e.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing"),send_invoice_email:e.boolean().nullish().describe("Auto-send invoice email"),issue_invoice_for_bank:e.boolean().nullish().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e.boolean().nullish().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e.number().min(zCy).nullish().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e.string().max(fCy).nullish().describe("Business unit to use for auto-created documents."),store_url:e.url().max(BCy).describe("WooCommerce store URL, including a WordPress subdirectory when applicable."),reconnect_integration_id:e.string().max(TCy).nullish().describe("Migrated WooCommerce integration to reconnect in place. Omit when connecting a new store.")}),SgS=e.object({redirect_url:e.url()}),hgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ICy=0,ECy=36,DCy=2048,RCy=36,bgS=e.object({name:e.string().nullish().describe("Integration name"),auto_process:e.boolean().nullish().describe("Auto-create invoices on order receipt"),auto_process_on:e.union([e.literal("created"),e.literal("paid"),e.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing. The fulfilled trigger isn't available for Magento stores."),send_invoice_email:e.boolean().nullish().describe("Auto-send invoice email"),issue_invoice_for_bank:e.boolean().nullish().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e.boolean().nullish().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e.number().min(ICy).nullish().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e.string().max(ECy).nullish().describe("Business unit to use for auto-created documents."),store_url:e.url().max(DCy).describe("Magento store base URL, including a path prefix when the store is served from a subdirectory."),reconnect_integration_id:e.string().max(RCy).nullish().describe("Existing Magento integration to reconnect in place with fresh credentials. Omit when connecting a new store.")}),zgS=e.object({authorization_id:e.string().describe("Authorization identifier; poll GET /order-integrations/magento/authorizations/{id}"),endpoint_url:e.url().describe("Endpoint URL to paste into the Magento integration form. Treat it as a secret."),identity_link_url:e.url().describe("Identity link URL to paste into the Magento integration form. Treat it as a secret."),expires_at:e.iso.datetime({}).describe("When this authorization stops working")}),_Cy=/^oipa_[0-9a-f]{24}$/,fgS=e.object({id:e.stringFormat("resource-id",_Cy).describe("Magento authorization identifier returned by the authorize endpoint")}),BgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TgS=e.object({id:e.string(),status:e.enum(["awaiting_credentials","awaiting_activation","connected","failed","expired"]).describe("awaiting_credentials: Magento has not posted its credentials yet. awaiting_activation: credentials received, waiting for the activation popup. connected: done. failed: see failure_reason. expired: start a new connection."),integration_id:e.string().nullable().describe("Set once the status is connected"),failure_reason:e.union([e.literal("missing_permissions"),e.literal("unauthorized"),e.literal("unreachable"),e.literal("token_exchange_failed"),e.literal(null)]).nullable().describe("Why the last activation attempt failed, when known"),expires_at:e.iso.datetime({})}),IgS=e.object({shop:e.string().min(1)}),EgS=e.object({redirect_url:e.url(),entity_id:e.string(),frontend_origin:e.url().nullish()}),NCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,DgS=e.object({id:e.stringFormat("resource-id",NCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),RgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_gS=e.object({redirect_url:e.url()}),MCy=/^[a-z]{3,4}_[0-9a-f]{24}$/,NgS=e.object({id:e.stringFormat("resource-id",MCy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),MgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),UCy=2048,PCy=250,UgS=e.object({updated_since:e.iso.datetime({}).optional().describe("Inclusive Shopify update window start."),updated_until:e.iso.datetime({}).optional().describe("Inclusive Shopify update window end."),cursor:e.string().min(1).max(UCy).optional().describe("Opaque cursor returned by an incomplete prior sync to resume its exact window."),resumable:e.boolean().optional().describe("Opt into bounded, resumable processing. Omit for legacy one-request completion; cursor requests are always bounded."),limit:e.number().min(1).max(PCy).optional().describe("Shopify page size. The server also enforces total-order and page-count caps.")}),PgS=e.object({imported:e.number(),updated:e.number(),queued_for_processing:e.number(),total_seen:e.number(),window_start:e.iso.datetime({}),window_end:e.iso.datetime({}).optional(),complete:e.boolean().optional(),truncated:e.boolean().optional(),pages_fetched:e.number().optional(),completion_state:e.enum(["complete","resumable"]).optional(),next_cursor:e.string().optional()}),CCy=/^oint_[0-9a-f]{24}$/,CgS=e.object({id:e.stringFormat("resource-id",CCy).describe("Unique order integration identifier")}),wgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wCy={},ACy=2048,FCy=100,AgS=e.object({updated_since:e.iso.datetime({}).nullish(),updated_until:e.iso.datetime({}).nullish(),cursor:e.string().min(1).max(ACy).nullish(),limit:e.number().min(1).max(FCy).nullish()}).default(wCy),FgS=e.object({imported:e.number(),updated:e.number(),queued_for_processing:e.number(),total_seen:e.number(),window_start:e.iso.datetime({}),window_end:e.iso.datetime({}).optional(),complete:e.boolean(),truncated:e.boolean(),pages_fetched:e.number(),completion_state:e.enum(["complete","resumable"]),next_cursor:e.string().optional()}),kgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),kCy=255,jCy=0,HCy=36,LCy=2048,jgS=e.object({name:e.string().min(1).max(kCy).describe("Integration name"),auto_process:e.boolean().nullish().describe("Auto-create invoices on order receipt"),auto_process_on:e.union([e.literal("created"),e.literal("paid"),e.literal("fulfilled"),e.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing"),send_invoice_email:e.boolean().nullish().describe("Auto-send invoice email"),issue_invoice_for_bank:e.boolean().nullish().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e.boolean().nullish().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e.number().min(jCy).nullish().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e.string().max(HCy).nullish().describe("Business unit to use for auto-created documents."),store_url:e.url().max(LCy).nullish().describe("Public URL of the store, shown for reference. One active connection per URL.")}),GCy=/^oint_[0-9a-f]{24}$/,HgS=e.object({id:e.stringFormat("resource-id",GCy).describe("Unique order integration identifier")}),LgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),GgS=e.object({webhook_url:e.url().describe("Endpoint your store posts signed order webhooks to"),signing_secret:e.string().describe("HMAC-SHA256 signing secret. Shown only in this response; store it securely.")}),VCy=/^oint_[0-9a-f]{24}$/,VgS=e.object({id:e.stringFormat("resource-id",VCy).describe("Unique order integration identifier")}),KgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KCy=255,ZCy=100,qCy=255,WCy=/^[A-Z]{3}$/,YCy=0,$Cy=20,QCy=255,JCy=255,XCy=50,ewy=255,twy=50,nwy=50,swy=2e3,owy=500,iwy=500,awy=255,rwy=255,lwy=50,dwy=255,uwy=2,cwy=2,pwy=500,mwy=500,xwy=255,gwy=255,ywy=50,Owy=255,vwy=2,Swy=2,hwy=255,bwy=500,zwy=255,fwy=0,Bwy=0,Twy=0,Iwy=0,Ewy=100,Dwy=50,Rwy=500,_wy=100,Nwy=255,ZgS=e.object({id:e.string().min(1).max(KCy).describe("Your store's unique order ID. Repeated pushes update the same order."),order_number:e.string().max(ZCy).nullish().describe("Order number shown to buyers"),event_id:e.string().max(qCy).nullish().describe("Stable ID of this logical event (e.g. `1042:paid`), kept the same across retries. Every applied event ID is remembered per order, so any repeated ID is acknowledged without effects. Takes precedence over the X-SI-Event-Id header."),currency_code:e.string().regex(WCy),prices_include_tax:e.boolean().nullish().describe("Whether `unit_price` and `discount` include tax. Defaults to false."),total_with_tax:e.number().min(YCy).describe("Order total the buyer pays. Lines must reconcile to it within rounding: 0.02, or half a cent per line for larger orders."),ordered_at:e.iso.datetime({}).nullish(),locale:e.string().max($Cy).nullish().describe("Buyer or checkout language, used for the document language"),customer:e.object({name:e.string().max(QCy).nullish(),email:e.email().max(JCy).nullish(),phone:e.string().max(XCy).nullish(),company_name:e.string().max(ewy).nullish(),tax_number:e.string().max(twy).nullish().describe("Buyer VAT or tax number, kept as text"),company_number:e.string().max(nwy).nullish(),is_business:e.boolean().nullish(),notes:e.string().max(swy).nullish()}).nullish(),billing_address:e.object({address:e.string().max(owy).nullish(),address_2:e.string().max(iwy).nullish(),city:e.string().max(awy).nullish(),state:e.string().max(rwy).nullish(),post_code:e.string().max(lwy).nullish(),country:e.string().max(dwy).nullish(),country_code:e.string().min(uwy).max(cwy).nullish().describe("ISO 3166-1 alpha-2 country code")}).nullish(),shipping_address:e.object({address:e.string().max(pwy).nullish(),address_2:e.string().max(mwy).nullish(),city:e.string().max(xwy).nullish(),state:e.string().max(gwy).nullish(),post_code:e.string().max(ywy).nullish(),country:e.string().max(Owy).nullish(),country_code:e.string().min(vwy).max(Swy).nullish().describe("ISO 3166-1 alpha-2 country code")}).nullish(),items:e.array(e.object({id:e.string().max(hwy).nullish().describe("Your line identifier"),kind:e.union([e.literal("line_item"),e.literal("shipping"),e.literal("fee"),e.literal(null)]).nullish().describe("Line type. Defaults to `line_item`."),name:e.string().min(1).max(bwy),sku:e.string().max(zwy).nullish().describe("Links product lines to the catalog item with this SKU"),quantity:e.number().gt(fwy),unit_price:e.number().min(Bwy).describe("Price per unit. Gross when `prices_include_tax` is true, net otherwise."),discount:e.number().min(Twy).nullish().describe("Discount amount for the whole line, on the same tax basis as `unit_price`."),tax_rate:e.number().min(Iwy).max(Ewy).nullish().describe("Tax percentage. Send 0 for an explicit zero rate; omit when the line has no tax."),unit:e.string().max(Dwy).nullish()})).min(1).max(Rwy),payment_method:e.string().max(_wy).nullish().describe("How the buyer pays: `card`, `paypal`, `bank_transfer`, `cash` (cash on delivery) or `coupon`. Common spellings such as `Bank transfer`, `cod` or `cash_on_delivery` are recognized; other values count as online payments."),payment_reference:e.string().max(Nwy).nullish().describe("Payment provider transaction reference"),paid:e.boolean().nullish().describe("Whether the order is fully paid. Defaults to false."),paid_at:e.iso.datetime({}).nullish(),fulfilled:e.boolean().nullish().describe("Whether the order is shipped/completed."),fulfilled_at:e.iso.datetime({}).nullish(),cancelled:e.boolean().nullish().describe("Cancelled orders never create new documents."),cancelled_at:e.iso.datetime({}).nullish(),refunded:e.boolean().nullish().describe("Fully refunded. An issued invoice is voided with a credit note."),refunded_at:e.iso.datetime({}).nullish()}).describe("Full current snapshot of a custom store order. Send the complete order on every push; omitted lifecycle flags mean false."),qgS=e.object({order_id:e.string().nullable().describe("Order ID, or null when the push was ignored for an unknown order"),action:e.enum(["created","updated","ignored"]).describe("`ignored` means the push changed nothing, e.g. a repeated event_id"),processing_queued:e.boolean().describe("Whether document processing was started")}),WgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Mwy="manual",Uwy=10,Pwy=36,Cwy=36,wwy=36,YgS=e.object({name:e.string().min(1),source:e.enum(["shopify","woocommerce","magento","custom","manual"]).default(Mwy),auto_process:e.boolean().optional(),auto_reissue_on_update:e.boolean().optional(),classify_imported_items_as_products:e.boolean().nullish().describe("Treat otherwise-unclassified regular imported order lines as products. Null is equivalent to false."),locale:e.string().max(Uwy).nullish(),business_unit_id:e.string().max(Pwy).nullish(),business_premise_id:e.string().max(Cwy).nullish(),electronic_device_id:e.string().max(wwy).nullish(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Awy=10,Fwy=100,$gS=e.object({limit:e.number().min(1).max(Fwy).default(Awy).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e.union([e.enum(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]),e.array(e.enum(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, source, is_active, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e.string().optional().describe(`Full-text search query to filter results across multiple fields.
|
|
197
197
|
Searches are case-insensitive and match partial strings.
|
|
198
198
|
Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),QgS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),kwy=36,jwy=36,Hwy=255,Lwy=255,Gwy=1e3,Vwy=2048,Kwy=20,Zwy=-2147483648,qwy=2147483647,Wwy=10,Ywy=36,$wy=36,Qwy=36,JgS=e.object({data:e.array(e.object({id:e.string().max(kwy),entity_id:e.string().max(jwy),name:e.string().max(Hwy),source:e.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Integration source platform"),is_active:e.boolean(),shop_domain:e.string().max(Lwy).nullish(),scopes:e.string().max(Gwy).nullish(),store_url:e.string().max(Vwy).nullish(),auto_process:e.boolean(),auto_process_on:e.enum(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e.string().max(Kwy).nullish(),send_invoice_email:e.boolean(),send_estimate_email:e.boolean(),attach_pdf_to_email:e.boolean(),issue_invoice_for_bank:e.boolean(),issue_invoice_on_complete:e.boolean(),auto_process_delay_seconds:e.number().min(Zwy).max(qwy),auto_reissue_on_update:e.boolean(),classify_imported_items_as_products:e.boolean().optional().describe("Treat otherwise-unclassified regular imported order lines as products. Shipping and fee lines are never affected."),locale:e.string().max(Wwy).nullish(),business_unit_id:e.string().max(Ywy).nullish(),business_premise_id:e.string().max($wy).nullish(),electronic_device_id:e.string().max(Qwy).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Order integration connection information").and(e.looseObject({})).describe("Order Integration")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Jwy=/^[a-z]{3,4}_[0-9a-f]{24}$/,XgS=e.object({id:e.stringFormat("resource-id",Jwy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),e0S=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Xwy=36,eAy=36,tAy=255,nAy=255,sAy=1e3,oAy=2048,iAy=20,aAy=-2147483648,rAy=2147483647,lAy=10,dAy=36,uAy=36,cAy=36,t0S=e.object({id:e.string().max(Xwy),entity_id:e.string().max(eAy),name:e.string().max(tAy),source:e.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Integration source platform"),is_active:e.boolean(),shop_domain:e.string().max(nAy).nullish(),scopes:e.string().max(sAy).nullish(),store_url:e.string().max(oAy).nullish(),auto_process:e.boolean(),auto_process_on:e.enum(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e.string().max(iAy).nullish(),send_invoice_email:e.boolean(),send_estimate_email:e.boolean(),attach_pdf_to_email:e.boolean(),issue_invoice_for_bank:e.boolean(),issue_invoice_on_complete:e.boolean(),auto_process_delay_seconds:e.number().min(aAy).max(rAy),auto_reissue_on_update:e.boolean(),classify_imported_items_as_products:e.boolean().optional().describe("Treat otherwise-unclassified regular imported order lines as products. Shipping and fee lines are never affected."),locale:e.string().max(lAy).nullish(),business_unit_id:e.string().max(dAy).nullish(),business_premise_id:e.string().max(uAy).nullish(),electronic_device_id:e.string().max(cAy).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Order integration connection information").and(e.looseObject({})).describe("Order Integration"),pAy=/^[a-z]{3,4}_[0-9a-f]{24}$/,n0S=e.object({id:e.stringFormat("resource-id",pAy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),s0S=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mAy=10,xAy=36,gAy=36,yAy=36,OAy=0,o0S=e.object({name:e.string().min(1).optional(),auto_process:e.boolean().optional(),auto_reissue_on_update:e.boolean().optional(),classify_imported_items_as_products:e.boolean().nullish().describe("Treat otherwise-unclassified regular imported order lines as products. Set null or false to disable."),locale:e.string().max(mAy).nullish(),business_unit_id:e.string().max(xAy).nullish(),business_premise_id:e.string().max(gAy).nullish(),electronic_device_id:e.string().max(yAy).nullish(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),is_active:e.boolean().optional(),auto_process_on:e.enum(["created","paid","fulfilled"]).optional().describe("Order lifecycle event that triggers automatic processing. `fulfilled` is only supported for custom store integrations; Magento integrations reject it with 400."),default_payment_type:e.string().optional(),send_invoice_email:e.boolean().optional(),send_estimate_email:e.boolean().optional(),attach_pdf_to_email:e.boolean().optional(),issue_invoice_for_bank:e.boolean().optional(),issue_invoice_on_complete:e.boolean().optional(),auto_process_delay_seconds:e.number().min(OAy).optional()}),vAy=36,SAy=36,hAy=255,bAy=255,zAy=1e3,fAy=2048,BAy=20,TAy=-2147483648,IAy=2147483647,EAy=10,DAy=36,RAy=36,_Ay=36,i0S=e.object({id:e.string().max(vAy),entity_id:e.string().max(SAy),name:e.string().max(hAy),source:e.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Integration source platform"),is_active:e.boolean(),shop_domain:e.string().max(bAy).nullish(),scopes:e.string().max(zAy).nullish(),store_url:e.string().max(fAy).nullish(),auto_process:e.boolean(),auto_process_on:e.enum(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e.string().max(BAy).nullish(),send_invoice_email:e.boolean(),send_estimate_email:e.boolean(),attach_pdf_to_email:e.boolean(),issue_invoice_for_bank:e.boolean(),issue_invoice_on_complete:e.boolean(),auto_process_delay_seconds:e.number().min(TAy).max(IAy),auto_reissue_on_update:e.boolean(),classify_imported_items_as_products:e.boolean().optional().describe("Treat otherwise-unclassified regular imported order lines as products. Shipping and fee lines are never affected."),locale:e.string().max(EAy).nullish(),business_unit_id:e.string().max(DAy).nullish(),business_premise_id:e.string().max(RAy).nullish(),electronic_device_id:e.string().max(_Ay).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Order integration connection information").and(e.looseObject({})).describe("Order Integration"),NAy=/^[a-z]{3,4}_[0-9a-f]{24}$/,a0S=e.object({id:e.stringFormat("resource-id",NAy).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),r0S=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var xt={};W(xt,{CancelOrderHeader:()=>I0S,CancelOrderParams:()=>T0S,CancelOrderResponse:()=>E0S,CreateOrderBody:()=>d0S,CreateOrderHeader:()=>l0S,DeleteOrderHeader:()=>b0S,DeleteOrderParams:()=>h0S,GetOrderByIdHeader:()=>x0S,GetOrderByIdParams:()=>m0S,GetOrderByIdResponse:()=>g0S,GetOrdersHeader:()=>c0S,GetOrdersQueryParams:()=>u0S,GetOrdersResponse:()=>p0S,ProcessOrderHeader:()=>f0S,ProcessOrderParams:()=>z0S,ProcessOrderResponse:()=>B0S,ReissueOrderHeader:()=>R0S,ReissueOrderParams:()=>D0S,ReissueOrderResponse:()=>_0S,UpdateOrderBody:()=>v0S,UpdateOrderHeader:()=>O0S,UpdateOrderParams:()=>y0S,UpdateOrderResponse:()=>S0S,cancelOrderPathIdRegExp:()=>oky,cancelOrderResponseOneCurrencyCodeMax:()=>xky,cancelOrderResponseOneCustomerEmailMax:()=>pky,cancelOrderResponseOneCustomerIdMax:()=>mky,cancelOrderResponseOneCustomerNameMax:()=>cky,cancelOrderResponseOneDocumentLocaleMax:()=>uky,cancelOrderResponseOneEntityIdMax:()=>aky,cancelOrderResponseOneErrorMax:()=>Dky,cancelOrderResponseOneEstimateIdMax:()=>Iky,cancelOrderResponseOneIdMax:()=>iky,cancelOrderResponseOneInvoiceIdMax:()=>Tky,cancelOrderResponseOneOrderIntegrationIdMax:()=>rky,cancelOrderResponseOnePaymentGatewayMax:()=>Bky,cancelOrderResponseOnePaymentMethodMax:()=>fky,cancelOrderResponseOneSourceEventIdMax:()=>Eky,cancelOrderResponseOneSourceIdMax:()=>lky,cancelOrderResponseOneSourceOrderNumberMax:()=>dky,cancelOrderResponseOneTotalDiscountMax:()=>hky,cancelOrderResponseOneTotalDiscountMin:()=>Sky,cancelOrderResponseOneTotalMax:()=>yky,cancelOrderResponseOneTotalMin:()=>gky,cancelOrderResponseOneTotalShippingMax:()=>zky,cancelOrderResponseOneTotalShippingMin:()=>bky,cancelOrderResponseOneTotalWithTaxMax:()=>vky,cancelOrderResponseOneTotalWithTaxMin:()=>Oky,createOrderBodyCurrencyCodeMax:()=>FAy,createOrderBodyCustomerEmailMax:()=>AAy,createOrderBodyCustomerNameMax:()=>wAy,createOrderBodyDocumentLocaleMax:()=>CAy,createOrderBodyOrderIntegrationIdMax:()=>MAy,createOrderBodyPaymentGatewayMax:()=>WAy,createOrderBodyPaymentMethodMax:()=>qAy,createOrderBodySourceIdMax:()=>UAy,createOrderBodySourceOrderNumberMax:()=>PAy,createOrderBodyTotalDiscountMax:()=>VAy,createOrderBodyTotalDiscountMin:()=>GAy,createOrderBodyTotalMax:()=>jAy,createOrderBodyTotalMin:()=>kAy,createOrderBodyTotalShippingMax:()=>ZAy,createOrderBodyTotalShippingMin:()=>KAy,createOrderBodyTotalWithTaxMax:()=>LAy,createOrderBodyTotalWithTaxMin:()=>HAy,deleteOrderPathIdRegExp:()=>M5y,getOrderByIdPathIdRegExp:()=>bFy,getOrderByIdResponseOneCurrencyCodeMax:()=>NFy,getOrderByIdResponseOneCustomerEmailMax:()=>RFy,getOrderByIdResponseOneCustomerIdMax:()=>_Fy,getOrderByIdResponseOneCustomerNameMax:()=>DFy,getOrderByIdResponseOneDocumentLocaleMax:()=>EFy,getOrderByIdResponseOneEntityIdMax:()=>fFy,getOrderByIdResponseOneErrorMax:()=>KFy,getOrderByIdResponseOneEstimateIdMax:()=>GFy,getOrderByIdResponseOneIdMax:()=>zFy,getOrderByIdResponseOneInvoiceIdMax:()=>LFy,getOrderByIdResponseOneOrderIntegrationIdMax:()=>BFy,getOrderByIdResponseOnePaymentGatewayMax:()=>HFy,getOrderByIdResponseOnePaymentMethodMax:()=>jFy,getOrderByIdResponseOneSourceEventIdMax:()=>VFy,getOrderByIdResponseOneSourceIdMax:()=>TFy,getOrderByIdResponseOneSourceOrderNumberMax:()=>IFy,getOrderByIdResponseOneTotalDiscountMax:()=>AFy,getOrderByIdResponseOneTotalDiscountMin:()=>wFy,getOrderByIdResponseOneTotalMax:()=>UFy,getOrderByIdResponseOneTotalMin:()=>MFy,getOrderByIdResponseOneTotalShippingMax:()=>kFy,getOrderByIdResponseOneTotalShippingMin:()=>FFy,getOrderByIdResponseOneTotalWithTaxMax:()=>CFy,getOrderByIdResponseOneTotalWithTaxMin:()=>PFy,getOrdersQueryLimitDefault:()=>YAy,getOrdersQueryLimitMax:()=>$Ay,getOrdersResponseDataItemOneCurrencyCodeMax:()=>aFy,getOrdersResponseDataItemOneCustomerEmailMax:()=>oFy,getOrdersResponseDataItemOneCustomerIdMax:()=>iFy,getOrdersResponseDataItemOneCustomerNameMax:()=>sFy,getOrdersResponseDataItemOneDocumentLocaleMax:()=>nFy,getOrdersResponseDataItemOneEntityIdMax:()=>JAy,getOrdersResponseDataItemOneErrorMax:()=>hFy,getOrdersResponseDataItemOneEstimateIdMax:()=>vFy,getOrdersResponseDataItemOneIdMax:()=>QAy,getOrdersResponseDataItemOneInvoiceIdMax:()=>OFy,getOrdersResponseDataItemOneOrderIntegrationIdMax:()=>XAy,getOrdersResponseDataItemOnePaymentGatewayMax:()=>yFy,getOrdersResponseDataItemOnePaymentMethodMax:()=>gFy,getOrdersResponseDataItemOneSourceEventIdMax:()=>SFy,getOrdersResponseDataItemOneSourceIdMax:()=>eFy,getOrdersResponseDataItemOneSourceOrderNumberMax:()=>tFy,getOrdersResponseDataItemOneTotalDiscountMax:()=>pFy,getOrdersResponseDataItemOneTotalDiscountMin:()=>cFy,getOrdersResponseDataItemOneTotalMax:()=>lFy,getOrdersResponseDataItemOneTotalMin:()=>rFy,getOrdersResponseDataItemOneTotalShippingMax:()=>xFy,getOrdersResponseDataItemOneTotalShippingMin:()=>mFy,getOrdersResponseDataItemOneTotalWithTaxMax:()=>uFy,getOrdersResponseDataItemOneTotalWithTaxMin:()=>dFy,processOrderPathIdRegExp:()=>U5y,processOrderResponseOneCurrencyCodeMax:()=>G5y,processOrderResponseOneCustomerEmailMax:()=>H5y,processOrderResponseOneCustomerIdMax:()=>L5y,processOrderResponseOneCustomerNameMax:()=>j5y,processOrderResponseOneDocumentLocaleMax:()=>k5y,processOrderResponseOneEntityIdMax:()=>C5y,processOrderResponseOneErrorMax:()=>sky,processOrderResponseOneEstimateIdMax:()=>tky,processOrderResponseOneIdMax:()=>P5y,processOrderResponseOneInvoiceIdMax:()=>eky,processOrderResponseOneOrderIntegrationIdMax:()=>w5y,processOrderResponseOnePaymentGatewayMax:()=>X5y,processOrderResponseOnePaymentMethodMax:()=>J5y,processOrderResponseOneSourceEventIdMax:()=>nky,processOrderResponseOneSourceIdMax:()=>A5y,processOrderResponseOneSourceOrderNumberMax:()=>F5y,processOrderResponseOneTotalDiscountMax:()=>Y5y,processOrderResponseOneTotalDiscountMin:()=>W5y,processOrderResponseOneTotalMax:()=>K5y,processOrderResponseOneTotalMin:()=>V5y,processOrderResponseOneTotalShippingMax:()=>Q5y,processOrderResponseOneTotalShippingMin:()=>$5y,processOrderResponseOneTotalWithTaxMax:()=>q5y,processOrderResponseOneTotalWithTaxMin:()=>Z5y,reissueOrderPathIdRegExp:()=>Rky,reissueOrderResponseOneCurrencyCodeMax:()=>kky,reissueOrderResponseOneCustomerEmailMax:()=>Aky,reissueOrderResponseOneCustomerIdMax:()=>Fky,reissueOrderResponseOneCustomerNameMax:()=>wky,reissueOrderResponseOneDocumentLocaleMax:()=>Cky,reissueOrderResponseOneEntityIdMax:()=>Nky,reissueOrderResponseOneErrorMax:()=>Xky,reissueOrderResponseOneEstimateIdMax:()=>Qky,reissueOrderResponseOneIdMax:()=>_ky,reissueOrderResponseOneInvoiceIdMax:()=>$ky,reissueOrderResponseOneOrderIntegrationIdMax:()=>Mky,reissueOrderResponseOnePaymentGatewayMax:()=>Yky,reissueOrderResponseOnePaymentMethodMax:()=>Wky,reissueOrderResponseOneSourceEventIdMax:()=>Jky,reissueOrderResponseOneSourceIdMax:()=>Uky,reissueOrderResponseOneSourceOrderNumberMax:()=>Pky,reissueOrderResponseOneTotalDiscountMax:()=>Kky,reissueOrderResponseOneTotalDiscountMin:()=>Vky,reissueOrderResponseOneTotalMax:()=>Hky,reissueOrderResponseOneTotalMin:()=>jky,reissueOrderResponseOneTotalShippingMax:()=>qky,reissueOrderResponseOneTotalShippingMin:()=>Zky,reissueOrderResponseOneTotalWithTaxMax:()=>Gky,reissueOrderResponseOneTotalWithTaxMin:()=>Lky,updateOrderBodyCurrencyCodeMax:()=>QFy,updateOrderBodyCustomerEmailMax:()=>$Fy,updateOrderBodyCustomerNameMax:()=>YFy,updateOrderBodyDocumentLocaleMax:()=>WFy,updateOrderBodyPaymentGatewayMax:()=>r5y,updateOrderBodyPaymentMethodMax:()=>a5y,updateOrderBodySourceOrderNumberMax:()=>qFy,updateOrderBodyTotalDiscountMax:()=>s5y,updateOrderBodyTotalDiscountMin:()=>n5y,updateOrderBodyTotalMax:()=>XFy,updateOrderBodyTotalMin:()=>JFy,updateOrderBodyTotalShippingMax:()=>i5y,updateOrderBodyTotalShippingMin:()=>o5y,updateOrderBodyTotalWithTaxMax:()=>t5y,updateOrderBodyTotalWithTaxMin:()=>e5y,updateOrderPathIdRegExp:()=>ZFy,updateOrderResponseOneCurrencyCodeMax:()=>O5y,updateOrderResponseOneCustomerEmailMax:()=>g5y,updateOrderResponseOneCustomerIdMax:()=>y5y,updateOrderResponseOneCustomerNameMax:()=>x5y,updateOrderResponseOneDocumentLocaleMax:()=>m5y,updateOrderResponseOneEntityIdMax:()=>d5y,updateOrderResponseOneErrorMax:()=>N5y,updateOrderResponseOneEstimateIdMax:()=>R5y,updateOrderResponseOneIdMax:()=>l5y,updateOrderResponseOneInvoiceIdMax:()=>D5y,updateOrderResponseOneOrderIntegrationIdMax:()=>u5y,updateOrderResponseOnePaymentGatewayMax:()=>E5y,updateOrderResponseOnePaymentMethodMax:()=>I5y,updateOrderResponseOneSourceEventIdMax:()=>_5y,updateOrderResponseOneSourceIdMax:()=>c5y,updateOrderResponseOneSourceOrderNumberMax:()=>p5y,updateOrderResponseOneTotalDiscountMax:()=>f5y,updateOrderResponseOneTotalDiscountMin:()=>z5y,updateOrderResponseOneTotalMax:()=>S5y,updateOrderResponseOneTotalMin:()=>v5y,updateOrderResponseOneTotalShippingMax:()=>T5y,updateOrderResponseOneTotalShippingMin:()=>B5y,updateOrderResponseOneTotalWithTaxMax:()=>b5y,updateOrderResponseOneTotalWithTaxMin:()=>h5y});var l0S=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),MAy=36,UAy=255,PAy=100,CAy=20,wAy=255,AAy=255,FAy=3,kAy=-140737488355328,jAy=0x7fffffffffff,HAy=-140737488355328,LAy=0x7fffffffffff,GAy=-140737488355328,VAy=0x7fffffffffff,KAy=-140737488355328,ZAy=0x7fffffffffff,qAy=50,WAy=100,d0S=e.object({order_integration_id:e.string().max(MAy),source:e.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Order source platform"),source_id:e.string().max(UAy),source_order_number:e.string().max(PAy).nullish(),document_locale:e.string().max(CAy).nullish(),customer_name:e.string().max(wAy).nullish(),customer_email:e.string().max(AAy).nullish(),customer:e.union([e.object({phone:e.string().optional(),company_name:e.string().optional(),tax_number:e.string().optional(),company_number:e.string().optional(),is_business:e.boolean().optional(),notes:e.string().optional()}),e.null()]).optional(),billing_address:e.union([e.object({address:e.string().optional(),address_2:e.string().optional(),city:e.string().optional(),state:e.string().optional(),post_code:e.string().optional(),country:e.string().optional(),country_code:e.string().optional()}),e.null()]).optional(),shipping_address:e.union([e.object({address:e.string().optional(),address_2:e.string().optional(),city:e.string().optional(),state:e.string().optional(),post_code:e.string().optional(),country:e.string().optional(),country_code:e.string().optional()}),e.null()]).optional(),currency_code:e.string().max(FAy),total:e.number().min(kAy).max(jAy),total_with_tax:e.number().min(HAy).max(LAy),total_discount:e.number().min(GAy).max(VAy).optional(),total_shipping:e.number().min(KAy).max(ZAy).optional(),items:e.array(e.object({name:e.string(),quantity:e.number(),price:e.number(),gross_price:e.number().optional(),total:e.number(),total_with_tax:e.number(),tax_rate:e.number().optional(),taxes:e.array(e.object({rate:e.number()})).optional(),sku:e.string().optional(),source_id:e.string().optional(),discount:e.number().optional(),unit:e.string().optional(),kind:e.enum(["line_item","shipping","fee"]).optional()})).min(1),payment_status:e.enum(["unpaid","paid","partially_paid","refunded"]).optional().describe("Order payment status"),payment_method:e.string().max(qAy).nullish(),payment_gateway:e.string().max(WAy).nullish(),ordered_at:e.iso.datetime({}).nullish(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),YAy=10,$Ay=100,u0S=e.object({limit:e.number().min(1).max($Ay).default(YAy).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e.union([e.enum(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]),e.array(e.enum(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, status, source, source_id, customer_name, customer_email, payment_status, order_integration_id, ordered_at, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e.string().optional().describe(`Full-text search query to filter results across multiple fields.
|
|
199
199
|
Searches are case-insensitive and match partial strings.
|
|
@@ -229,7 +229,7 @@ Defaults to true (best-effort). When omitted, behaves like true but won't fail t
|
|
|
229
229
|
Searches are case-insensitive and match partial strings.
|
|
230
230
|
Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),KvS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),s2v=36,o2v=36,i2v=36,a2v=255,r2v=-2147483648,l2v=2147483647,d2v=-2147483648,u2v=2147483647,c2v=-2147483648,p2v=2147483647,m2v=-2147483648,x2v=2147483647,g2v=10,y2v=10,O2v=10,v2v=10,S2v=255,h2v=-2147483648,b2v=2147483647,z2v=-2147483648,f2v=2147483647,B2v=36,T2v=1e3,ZvS=e.object({data:e.array(e.object({id:e.string().max(s2v),entity_id:e.string().max(o2v),document_id:e.string().max(i2v),name:e.string().max(a2v),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(r2v).max(l2v),day_of_week:e.number().min(d2v).max(u2v).nullish(),day_of_month:e.number().min(c2v).max(p2v).nullish(),month_of_year:e.number().min(m2v).max(x2v).nullish(),start_date:e.string().max(g2v),end_date:e.string().max(y2v).nullish(),next_run_date:e.string().max(O2v).nullish(),last_run_date:e.string().max(v2v).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(S2v).nullish(),payment_terms_days:e.number().min(h2v).max(b2v).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(z2v).max(f2v),last_generated_invoice_id:e.string().max(B2v).nullish(),last_error:e.string().max(T2v).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),I2v=/^[a-z]{3,4}_[0-9a-f]{24}$/,qvS=e.object({id:e.stringFormat("resource-id",I2v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),WvS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),E2v=36,D2v=36,R2v=36,_2v=255,N2v=-2147483648,M2v=2147483647,U2v=-2147483648,P2v=2147483647,C2v=-2147483648,w2v=2147483647,A2v=-2147483648,F2v=2147483647,k2v=10,j2v=10,H2v=10,L2v=10,G2v=255,V2v=-2147483648,K2v=2147483647,Z2v=-2147483648,q2v=2147483647,W2v=36,Y2v=1e3,YvS=e.object({id:e.string().max(E2v),entity_id:e.string().max(D2v),document_id:e.string().max(R2v),name:e.string().max(_2v),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(N2v).max(M2v),day_of_week:e.number().min(U2v).max(P2v).nullish(),day_of_month:e.number().min(C2v).max(w2v).nullish(),month_of_year:e.number().min(A2v).max(F2v).nullish(),start_date:e.string().max(k2v),end_date:e.string().max(j2v).nullish(),next_run_date:e.string().max(H2v).nullish(),last_run_date:e.string().max(L2v).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(G2v).nullish(),payment_terms_days:e.number().min(V2v).max(K2v).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(Z2v).max(q2v),last_generated_invoice_id:e.string().max(W2v).nullish(),last_error:e.string().max(Y2v).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),$2v=/^[a-z]{3,4}_[0-9a-f]{24}$/,$vS=e.object({id:e.stringFormat("resource-id",$2v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),QvS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Q2v=255,J2v=-2147483648,X2v=2147483647,eCv=-2147483648,tCv=2147483647,nCv=-2147483648,sCv=2147483647,oCv=-2147483648,iCv=2147483647,aCv=/^\d{4}-\d{2}-\d{2}$/,rCv=/^\d{4}-\d{2}-\d{2}$/,lCv=255,dCv=-2147483648,uCv=2147483647,JvS=e.object({name:e.string().max(Q2v).optional(),frequency:e.enum(["daily","weekly","monthly","yearly"]).optional(),interval:e.number().min(J2v).max(X2v).optional(),day_of_week:e.number().min(eCv).max(tCv).nullish(),day_of_month:e.number().min(nCv).max(sCv).nullish(),month_of_year:e.number().min(oCv).max(iCv).nullish(),start_date:e.string().regex(aCv).optional(),end_date:e.string().regex(rCv).nullish(),auto_send:e.boolean().optional(),create_as_draft:e.boolean().optional(),send_to:e.string().max(lCv).nullish(),payment_terms_days:e.number().min(dCv).max(uCv).nullish(),notify_owner:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),cCv=36,pCv=36,mCv=36,xCv=255,gCv=-2147483648,yCv=2147483647,OCv=-2147483648,vCv=2147483647,SCv=-2147483648,hCv=2147483647,bCv=-2147483648,zCv=2147483647,fCv=10,BCv=10,TCv=10,ICv=10,ECv=255,DCv=-2147483648,RCv=2147483647,_Cv=-2147483648,NCv=2147483647,MCv=36,UCv=1e3,XvS=e.object({id:e.string().max(cCv),entity_id:e.string().max(pCv),document_id:e.string().max(mCv),name:e.string().max(xCv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(gCv).max(yCv),day_of_week:e.number().min(OCv).max(vCv).nullish(),day_of_month:e.number().min(SCv).max(hCv).nullish(),month_of_year:e.number().min(bCv).max(zCv).nullish(),start_date:e.string().max(fCv),end_date:e.string().max(BCv).nullish(),next_run_date:e.string().max(TCv).nullish(),last_run_date:e.string().max(ICv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(ECv).nullish(),payment_terms_days:e.number().min(DCv).max(RCv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(_Cv).max(NCv),last_generated_invoice_id:e.string().max(MCv).nullish(),last_error:e.string().max(UCv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),PCv=/^[a-z]{3,4}_[0-9a-f]{24}$/,eSS=e.object({id:e.stringFormat("resource-id",PCv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),tSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),CCv=/^[a-z]{3,4}_[0-9a-f]{24}$/,nSS=e.object({id:e.stringFormat("resource-id",CCv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),sSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wCv=36,ACv=36,FCv=36,kCv=255,jCv=-2147483648,HCv=2147483647,LCv=-2147483648,GCv=2147483647,VCv=-2147483648,KCv=2147483647,ZCv=-2147483648,qCv=2147483647,WCv=10,YCv=10,$Cv=10,QCv=10,JCv=255,XCv=-2147483648,ewv=2147483647,twv=-2147483648,nwv=2147483647,swv=36,owv=1e3,oSS=e.object({id:e.string().max(wCv),entity_id:e.string().max(ACv),document_id:e.string().max(FCv),name:e.string().max(kCv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(jCv).max(HCv),day_of_week:e.number().min(LCv).max(GCv).nullish(),day_of_month:e.number().min(VCv).max(KCv).nullish(),month_of_year:e.number().min(ZCv).max(qCv).nullish(),start_date:e.string().max(WCv),end_date:e.string().max(YCv).nullish(),next_run_date:e.string().max($Cv).nullish(),last_run_date:e.string().max(QCv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(JCv).nullish(),payment_terms_days:e.number().min(XCv).max(ewv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(twv).max(nwv),last_generated_invoice_id:e.string().max(swv).nullish(),last_error:e.string().max(owv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),iwv=/^[a-z]{3,4}_[0-9a-f]{24}$/,iSS=e.object({id:e.stringFormat("resource-id",iwv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),aSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),awv=/^[a-z]{3,4}_[0-9a-f]{24}$/,rSS=e.object({id:e.stringFormat("resource-id",awv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),lSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),rwv=36,lwv=36,dwv=36,uwv=255,cwv=-2147483648,pwv=2147483647,mwv=-2147483648,xwv=2147483647,gwv=-2147483648,ywv=2147483647,Owv=-2147483648,vwv=2147483647,Swv=10,hwv=10,bwv=10,zwv=10,fwv=255,Bwv=-2147483648,Twv=2147483647,Iwv=-2147483648,Ewv=2147483647,Dwv=36,Rwv=1e3,dSS=e.object({id:e.string().max(rwv),entity_id:e.string().max(lwv),document_id:e.string().max(dwv),name:e.string().max(uwv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(cwv).max(pwv),day_of_week:e.number().min(mwv).max(xwv).nullish(),day_of_month:e.number().min(gwv).max(ywv).nullish(),month_of_year:e.number().min(Owv).max(vwv).nullish(),start_date:e.string().max(Swv),end_date:e.string().max(hwv).nullish(),next_run_date:e.string().max(bwv).nullish(),last_run_date:e.string().max(zwv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(fwv).nullish(),payment_terms_days:e.number().min(Bwv).max(Twv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(Iwv).max(Ewv),last_generated_invoice_id:e.string().max(Dwv).nullish(),last_error:e.string().max(Rwv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),_wv=/^[a-z]{3,4}_[0-9a-f]{24}$/,uSS=e.object({id:e.stringFormat("resource-id",_wv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),cSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Nwv=36,Mwv=36,Uwv=36,Pwv=255,Cwv=-2147483648,wwv=2147483647,Awv=-2147483648,Fwv=2147483647,kwv=-2147483648,jwv=2147483647,Hwv=-2147483648,Lwv=2147483647,Gwv=10,Vwv=10,Kwv=10,Zwv=10,qwv=255,Wwv=-2147483648,Ywv=2147483647,$wv=-2147483648,Qwv=2147483647,Jwv=36,Xwv=1e3,pSS=e.object({id:e.string().max(Nwv),entity_id:e.string().max(Mwv),document_id:e.string().max(Uwv),name:e.string().max(Pwv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(Cwv).max(wwv),day_of_week:e.number().min(Awv).max(Fwv).nullish(),day_of_month:e.number().min(kwv).max(jwv).nullish(),month_of_year:e.number().min(Hwv).max(Lwv).nullish(),start_date:e.string().max(Gwv),end_date:e.string().max(Vwv).nullish(),next_run_date:e.string().max(Kwv).nullish(),last_run_date:e.string().max(Zwv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(qwv).nullish(),payment_terms_days:e.number().min(Wwv).max(Ywv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min($wv).max(Qwv),last_generated_invoice_id:e.string().max(Jwv).nullish(),last_error:e.string().max(Xwv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),eAv=/^[a-z]{3,4}_[0-9a-f]{24}$/,mSS=e.object({id:e.stringFormat("resource-id",eAv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),tAv=100,xSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist."),"X-Request-Id":e.string().max(tAv).optional().describe("Stable identifier for retrying the same intentional recurring-invoice trigger without creating another invoice. A concurrent retry while the first trigger is still processing returns `409 conflict`. See the [idempotency guide](https://docs.spaceinvoices.com/guides/idempotency/).")}),nAv=36,sAv=36,oAv=36,iAv=255,aAv=-2147483648,rAv=2147483647,lAv=-2147483648,dAv=2147483647,uAv=-2147483648,cAv=2147483647,pAv=-2147483648,mAv=2147483647,xAv=10,gAv=10,yAv=10,OAv=10,vAv=255,SAv=-2147483648,hAv=2147483647,bAv=-2147483648,zAv=2147483647,fAv=36,BAv=1e3,gSS=e.object({id:e.string().max(nAv),entity_id:e.string().max(sAv),document_id:e.string().max(oAv),name:e.string().max(iAv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(aAv).max(rAv),day_of_week:e.number().min(lAv).max(dAv).nullish(),day_of_month:e.number().min(uAv).max(cAv).nullish(),month_of_year:e.number().min(pAv).max(mAv).nullish(),start_date:e.string().max(xAv),end_date:e.string().max(gAv).nullish(),next_run_date:e.string().max(yAv).nullish(),last_run_date:e.string().max(OAv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(vAv).nullish(),payment_terms_days:e.number().min(SAv).max(hAv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(bAv).max(zAv),last_generated_invoice_id:e.string().max(fAv).nullish(),last_error:e.string().max(BAv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule");var zt={};W(zt,{BackfillRevenueRecognitionBody:()=>zSS,BackfillRevenueRecognitionHeader:()=>bSS,BackfillRevenueRecognitionResponse:()=>fSS,GetRevenueRecognitionDetailsHeader:()=>DSS,GetRevenueRecognitionDetailsQueryParams:()=>ESS,GetRevenueRecognitionDetailsResponse:()=>RSS,GetRevenueRecognitionDocumentScheduleHeader:()=>PSS,GetRevenueRecognitionDocumentScheduleParams:()=>USS,GetRevenueRecognitionDocumentScheduleResponse:()=>CSS,GetRevenueRecognitionReportHeader:()=>TSS,GetRevenueRecognitionReportQueryParams:()=>BSS,GetRevenueRecognitionReportResponse:()=>ISS,GetRevenueRecognitionSettingsHeader:()=>ySS,GetRevenueRecognitionSettingsResponse:()=>OSS,ListRevenueRecognitionLinesHeader:()=>NSS,ListRevenueRecognitionLinesQueryParams:()=>_SS,ListRevenueRecognitionLinesResponse:()=>MSS,UpdateRevenueRecognitionSettingsBody:()=>SSS,UpdateRevenueRecognitionSettingsHeader:()=>vSS,UpdateRevenueRecognitionSettingsResponse:()=>hSS,backfillRevenueRecognitionBodyDryRunDefault:()=>DAv,getRevenueRecognitionDetailsQueryBasisDefault:()=>NAv,getRevenueRecognitionDetailsQueryFinancialCategoryKeyMax:()=>UAv,getRevenueRecognitionDetailsQueryGroupByDefault:()=>MAv,getRevenueRecognitionDocumentSchedulePathIdRegExp:()=>FAv,getRevenueRecognitionReportQueryBasisDefault:()=>RAv,getRevenueRecognitionReportQueryGroupByDefault:()=>_Av,getRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>TAv,listRevenueRecognitionLinesQueryBasisDefault:()=>PAv,listRevenueRecognitionLinesQueryFinancialCategoryKeyMax:()=>wAv,listRevenueRecognitionLinesQueryGroupByDefault:()=>CAv,listRevenueRecognitionLinesQueryLimitMax:()=>AAv,updateRevenueRecognitionSettingsBodyDefaultMethodDefault:()=>IAv,updateRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>EAv});var ySS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TAv="off",OSS=e.object({default_method:e.enum(["off","service_period_daily"]).default(TAv).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),vSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),IAv="off",SSS=e.object({default_method:e.union([e.literal("off"),e.literal("service_period_daily"),e.literal(null)]).nullish().default(IAv).describe("Entity default for generated revenue recognition entries. Send null to clear back to the default off behavior.")}),EAv="off",hSS=e.object({default_method:e.enum(["off","service_period_daily"]).default(EAv).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),bSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),DAv=false,zSS=e.object({date_from:e.string().nullish().describe("Optional document issue date lower bound in YYYY-MM-DD format."),date_to:e.string().nullish().describe("Optional document issue date upper bound in YYYY-MM-DD format."),dry_run:e.boolean().default(DAv).describe("When true, counts eligible documents without writing entries.")}),fSS=e.object({processed_documents:e.number(),generated_entries:e.number(),dry_run:e.boolean()}),RAv="recognized",_Av="financial_category",BSS=e.object({date_from:e.string().describe("Report start date in YYYY-MM-DD format."),date_to:e.string().describe("Report end date in YYYY-MM-DD format."),basis:e.enum(["recognized","deferred"]).default(RAv).describe("recognized returns revenue recognized inside each period. deferred returns the remaining future recognition balance at the end of each period."),group_by:e.enum(["financial_category"]).default(_Av).describe("Report grouping dimension.")}),TSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ISS=e.object({basis:e.enum(["recognized","deferred"]),group_by:e.enum(["financial_category"]),calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]).describe("How report values were calculated. recognition_entries uses generated service-period schedules; document_date_fallback uses finalized document-item totals by issue date while automation is off; mixed combines document-date fallback with explicit line-level recognition entries."),periods:e.array(e.object({period:e.string(),date_from:e.string(),date_to:e.string()})),series:e.array(e.object({key:e.string(),financial_category_id:e.string().nullable(),name:e.string(),color:e.string().nullable(),values:e.array(e.number()),total:e.number()})),totals:e.array(e.number()),total:e.number(),currency_code:e.string(),date_from:e.string(),date_to:e.string()}),NAv="recognized",MAv="financial_category",UAv=200,ESS=e.object({date_from:e.string().describe("Report start date in YYYY-MM-DD format."),date_to:e.string().describe("Report end date in YYYY-MM-DD format."),basis:e.enum(["recognized","deferred"]).default(NAv).describe("recognized returns the entries recognized inside the date range. deferred returns the entries still to be recognized after date_to from documents dated on or before date_to, so the total equals the deferred balance at date_to."),group_by:e.enum(["financial_category"]).default(MAv).describe("Report grouping dimension."),financial_category_id:e.string().nullish().describe("Optional category ID. Use null/omit for all categories."),financial_category_key:e.string().max(UAv).nullish().describe("Optional category key (for example `office-supplies`), as an alternative to financial_category_id. Cannot be combined with financial_category_id. An unknown key selects nothing, like an unknown ID. Use null/omit for all categories.")}),DSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),RSS=e.object({calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]),data:e.array(e.object({id:e.string(),document_id:e.string(),document_type:e.string(),document_number:e.string(),document_date:e.string(),document_item_id:e.string(),document_item_name:e.string().nullish().describe("Name of the document line the entry was generated from."),customer_id:e.string().nullable(),customer_name:e.string().nullable(),financial_category_id:e.string().nullable(),financial_category_name:e.string(),currency_code:e.string(),source_amount:e.number(),recognized_amount:e.number(),period_start:e.string(),period_end:e.string(),service_period_start:e.string(),service_period_end:e.string(),method:e.string()})),total:e.number(),currency_code:e.string()}),PAv="recognized",CAv="financial_category",wAv=200,AAv=100,_SS=e.object({date_from:e.string().describe("Report start date in YYYY-MM-DD format."),date_to:e.string().describe("Report end date in YYYY-MM-DD format."),basis:e.enum(["recognized","deferred"]).default(PAv).describe("recognized returns the entries recognized inside the date range. deferred returns the entries still to be recognized after date_to from documents dated on or before date_to, so the total equals the deferred balance at date_to."),group_by:e.enum(["financial_category"]).default(CAv).describe("Report grouping dimension."),financial_category_id:e.string().nullish().describe("Optional category ID. Use null/omit for all categories."),financial_category_key:e.string().max(wAv).nullish().describe("Optional category key (for example `office-supplies`), as an alternative to financial_category_id. Cannot be combined with financial_category_id. An unknown key selects nothing, like an unknown ID. Use null/omit for all categories."),uncategorized:e.boolean().nullish().describe("When true, only lines without a financial category. Cannot be combined with financial_category_id or financial_category_key."),limit:e.number().min(1).max(AAv).nullish().describe("Number of lines per page (1-100). Defaults to 20; null or omitted uses the default."),next_cursor:e.string().nullish().describe("Opaque cursor from pagination.next_cursor of the previous response. Null or omitted starts at the first page."),prev_cursor:e.string().nullish().describe("Opaque cursor from pagination.prev_cursor of the previous response. Null or omitted starts at the first page.")}),NSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),MSS=e.object({calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]),data:e.array(e.object({document_item_id:e.string(),document_item_name:e.string().nullable(),document_id:e.string(),document_type:e.string(),document_number:e.string(),document_date:e.string(),customer_id:e.string().nullable(),customer_name:e.string().nullable(),financial_category_id:e.string().nullable(),financial_category_name:e.string(),currency_code:e.string(),source_amount:e.number().describe("Net amount of the whole document line."),amount:e.number().describe("Sum of the line's entries in the selection: recognized inside the range, or still deferred after date_to."),entry_count:e.number(),first_period_start:e.string(),last_period_start:e.string(),service_period_start:e.string(),service_period_end:e.string()})),total:e.number().describe("Sum of amount across every line in the selection, not only this page."),currency_code:e.string(),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),FAv=/^[a-z]{3,4}_[0-9a-f]{24}$/,USS=e.object({id:e.stringFormat("resource-id",FAv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),PSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),CSS=e.object({calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]),data:e.array(e.object({id:e.string(),document_id:e.string(),document_type:e.string(),document_number:e.string(),document_date:e.string(),document_item_id:e.string(),document_item_name:e.string().nullish().describe("Name of the document line the entry was generated from."),customer_id:e.string().nullable(),customer_name:e.string().nullable(),financial_category_id:e.string().nullable(),financial_category_name:e.string(),currency_code:e.string(),source_amount:e.number(),recognized_amount:e.number(),period_start:e.string(),period_end:e.string(),service_period_start:e.string(),service_period_end:e.string(),method:e.string()})),total:e.number(),currency_code:e.string()}).and(e.object({document_id:e.string()}));var ft={};W(ft,{StripeAppConnectBody:()=>FSS,StripeAppEntityDisconnectResponse:()=>jSS,StripeAppEntityGetConnectionResponse:()=>kSS,StripeAppEntityGetSettingsResponse:()=>HSS,StripeAppEntityUpdateSettingsBody:()=>LSS,StripeAppEntityUpdateSettingsResponse:()=>GSS,StripeAppMarketplaceAuthorizeBody:()=>wSS,StripeAppMarketplaceAuthorizeResponse:()=>ASS,stripeAppEntityUpdateSettingsBodyDefaultNoteMax:()=>kAv,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMax:()=>HAv,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMin:()=>jAv});var wSS=e.object({entity_id:e.string().min(1).describe("Entity ID to connect to the Stripe account")}),ASS=e.object({redirect_url:e.url().describe("URL to redirect the user to for authentication")}),FSS=e.object({state:e.string().min(1).describe("State token from the authorize step"),entity_id:e.string().min(1).describe("Entity ID to connect to the Stripe account"),force:e.boolean().nullish().describe("If true, disconnects any existing connection for this Stripe account before connecting. Null is treated as false.")}),kSS=e.object({id:e.string().describe("Connection ID"),stripe_account_id:e.string().describe("Connected Stripe account ID"),entity_id:e.string().describe("Connected Space Invoices entity ID"),entity_name:e.string().optional().describe("Connected Space Invoices entity name"),entity_environment:e.enum(["live","sandbox"]).optional().describe("Connected Space Invoices entity environment"),entity_is_tax_subject:e.boolean().optional().describe("Whether the connected entity is configured to charge tax"),white_label_id:e.string().describe("White-label context for this connection"),auto_invoice_config:e.object({enabled:e.boolean(),events:e.array(e.string()),default_note:e.string().optional()}).describe("Auto-invoice configuration"),created_at:e.iso.datetime({}).describe("When the connection was created")}),jSS=e.object({message:e.string()}),HSS=e.object({auto_invoice_enabled:e.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e.array(e.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),kAv=500,jAv=0,HAv=100,LSS=e.object({auto_invoice_enabled:e.boolean().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:e.array(e.enum(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e.string().max(kAv).nullish().describe("Default note to include on auto-created invoices. Set to null to clear the note."),default_tax_rate:e.number().min(jAv).max(HAv).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),GSS=e.object({auto_invoice_enabled:e.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e.array(e.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")});var Bt={};W(Bt,{CheckEntityLimitResponse:()=>qSS,GetCurrentSubscriptionResponse:()=>VSS,UpdateSpendingLimitBody:()=>KSS,UpdateSpendingLimitResponse:()=>ZSS,getCurrentSubscriptionResponseUsageEInvoicingSendCountDefault:()=>LAv,updateSpendingLimitBodySpendingLimitCentsMin:()=>GAv});var LAv=0,VSS=e.object({subscription:e.object({id:e.string(),account_id:e.string(),tier:e.enum(["free","metered"]),spending_limit_cents:e.number().nullable(),is_internal:e.boolean(),created_at:e.string(),updated_at:e.string()}),usage:e.object({documents_count:e.number(),e_invoicing_send_count:e.number().default(LAv),entities_active:e.number(),period_start:e.string(),period_end:e.string()}),limits:e.object({entities:e.number().nullable().describe("Max entities for free tier (null for metered)"),documents_per_month:e.number().nullable().describe("Max docs per month for free tier (null for metered)")}),is_over_limit:e.boolean()}).describe("Current subscription and usage for Space Invoices account"),GAv=0,KSS=e.object({spending_limit_cents:e.number().min(GAv).nullable()}).describe("Request to update spending limit for metered tier"),ZSS=e.object({spending_limit_cents:e.number().nullable()}).describe("Updated spending limit"),qSS=e.object({can_create:e.boolean(),current_count:e.number(),limit:e.number().nullable()});var Tt={};W(Tt,{ListUsTaxRateEstimatesHeader:()=>YSS,ListUsTaxRateEstimatesQueryParams:()=>WSS,ListUsTaxRateEstimatesResponse:()=>$SS,listUsTaxRateEstimatesQueryStateMax:()=>ZAv,listUsTaxRateEstimatesQueryStateMin:()=>KAv,listUsTaxRateEstimatesQueryZipCodeRegExp:()=>VAv,listUsTaxRateEstimatesResponseDataItemCityRateMax:()=>iFv,listUsTaxRateEstimatesResponseDataItemCityRateMin:()=>oFv,listUsTaxRateEstimatesResponseDataItemCountryCodeMax:()=>WAv,listUsTaxRateEstimatesResponseDataItemCountyRateMax:()=>sFv,listUsTaxRateEstimatesResponseDataItemCountyRateMin:()=>nFv,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMax:()=>XAv,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMin:()=>JAv,listUsTaxRateEstimatesResponseDataItemIdMax:()=>qAv,listUsTaxRateEstimatesResponseDataItemRiskLevelMax:()=>dFv,listUsTaxRateEstimatesResponseDataItemRiskLevelMin:()=>lFv,listUsTaxRateEstimatesResponseDataItemSourceMax:()=>uFv,listUsTaxRateEstimatesResponseDataItemSourceMonthMax:()=>cFv,listUsTaxRateEstimatesResponseDataItemSpecialRateMax:()=>rFv,listUsTaxRateEstimatesResponseDataItemSpecialRateMin:()=>aFv,listUsTaxRateEstimatesResponseDataItemStateMax:()=>YAv,listUsTaxRateEstimatesResponseDataItemStateRateMax:()=>tFv,listUsTaxRateEstimatesResponseDataItemStateRateMin:()=>eFv,listUsTaxRateEstimatesResponseDataItemTaxRegionNameMax:()=>QAv,listUsTaxRateEstimatesResponseDataItemZipCodeMax:()=>$Av});var VAv=/^\d{5}$/,KAv=2,ZAv=2,WSS=e.object({zip_code:e.string().regex(VAv).describe("US ZIP code to look up."),state:e.string().min(KAv).max(ZAv).optional().describe("Optional two-letter US state filter.")}),YSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qAv=36,WAv=2,YAv=2,$Av=10,QAv=255,JAv=-140737488355328,XAv=0x7fffffffffff,eFv=-140737488355328,tFv=0x7fffffffffff,nFv=-140737488355328,sFv=0x7fffffffffff,oFv=-140737488355328,iFv=0x7fffffffffff,aFv=-140737488355328,rFv=0x7fffffffffff,lFv=-2147483648,dFv=2147483647,uFv=50,cFv=7,$SS=e.object({data:e.array(e.object({id:e.string().max(qAv),country_code:e.string().max(WAv),state:e.string().max(YAv),zip_code:e.string().max($Av),tax_region_name:e.string().max(QAv),estimated_combined_rate:e.number().min(JAv).max(XAv),state_rate:e.number().min(eFv).max(tFv),county_rate:e.number().min(nFv).max(sFv),city_rate:e.number().min(oFv).max(iFv),special_rate:e.number().min(aFv).max(rFv),risk_level:e.number().min(lFv).max(dFv),source:e.string().max(uFv),source_month:e.string().max(cFv),imported_at:e.iso.datetime({})}).describe("Imported ZIP-level tax-rate estimate. This is informational and must be verified before use."))});var It={};W(It,{ApproveVatReturnHeader:()=>RbS,ApproveVatReturnParams:()=>DbS,ApproveVatReturnResponse:()=>_bS,ArchiveEmployeeHeader:()=>uhS,ArchiveEmployeeParams:()=>dhS,CompleteFilingBody:()=>ZbS,CompleteFilingHeader:()=>KbS,CompleteFilingParams:()=>VbS,CompleteFilingResponse:()=>qbS,CreateTaxPaymentBody:()=>FhS,CreateTaxPaymentHeader:()=>AhS,DeleteTaxPaymentHeader:()=>VhS,DeleteTaxPaymentParams:()=>GhS,DismissFilingBody:()=>XbS,DismissFilingHeader:()=>JbS,DismissFilingParams:()=>QbS,DismissFilingResponse:()=>ezS,DraftVatReturnBody:()=>vbS,DraftVatReturnHeader:()=>ObS,ExportQuickbooksCsvHeader:()=>mbS,ExportQuickbooksCsvQueryParams:()=>pbS,ExportSloveniaMinimaxXmlBody:()=>dbS,ExportSloveniaMinimaxXmlHeader:()=>lbS,ExportSloveniaVascoXmlBody:()=>cbS,ExportSloveniaVascoXmlHeader:()=>ubS,ExportSloveniaVodXmlBody:()=>rbS,ExportSloveniaVodXmlHeader:()=>abS,ExportSloveniaYearlyNormiraniReportBody:()=>ibS,ExportSloveniaYearlyNormiraniReportHeader:()=>obS,ExportVatReturnHeader:()=>jbS,ExportVatReturnParams:()=>FbS,ExportVatReturnQueryParams:()=>kbS,GenerateKirExportHeader:()=>YhS,GenerateKirExportQueryParams:()=>WhS,GetEmployeeAttendanceHeader:()=>mhS,GetEmployeeAttendanceParams:()=>chS,GetEmployeeAttendanceQueryParams:()=>phS,GetEmployeeAttendanceResponse:()=>xhS,GetEmployeeHeader:()=>shS,GetEmployeeParams:()=>nhS,GetEmployeeResponse:()=>ohS,GetEuOssReportHeader:()=>ZhS,GetEuOssReportQueryParams:()=>KhS,GetEuOssReportResponse:()=>qhS,GetPayrollParameterHistoryHeader:()=>BhS,GetPayrollParameterHistoryQueryParams:()=>fhS,GetPayrollParameterHistoryResponse:()=>ThS,GetSloveniaTaxProfileHeader:()=>$hS,GetSloveniaTaxProfileResponse:()=>QhS,GetTaxLiabilityReportHeader:()=>MhS,GetTaxLiabilityReportQueryParams:()=>NhS,GetTaxLiabilityReportResponse:()=>UhS,GetTaxPaymentsHeader:()=>ChS,GetTaxPaymentsQueryParams:()=>PhS,GetTaxPaymentsResponse:()=>whS,GetVatReturnHeader:()=>fbS,GetVatReturnParams:()=>zbS,GetVatReturnResponse:()=>BbS,ListAccountFilingsCalendarHeader:()=>nzS,ListAccountFilingsCalendarQueryParams:()=>tzS,ListAccountFilingsCalendarResponse:()=>szS,ListEmployeesHeader:()=>JSS,ListEmployeesQueryParams:()=>QSS,ListEmployeesResponse:()=>XSS,ListFilingsHeader:()=>LbS,ListFilingsQueryParams:()=>HbS,ListFilingsResponse:()=>GbS,ListVatReturnsHeader:()=>hbS,ListVatReturnsQueryParams:()=>SbS,ListVatReturnsResponse:()=>bbS,ModifyEmployeeBody:()=>rhS,ModifyEmployeeHeader:()=>ahS,ModifyEmployeeParams:()=>ihS,ModifyEmployeeResponse:()=>lhS,PreviewVatReturnHeader:()=>gbS,PreviewVatReturnQueryParams:()=>xbS,PreviewVatReturnResponse:()=>ybS,RecomputeVatReturnHeader:()=>IbS,RecomputeVatReturnParams:()=>TbS,RecomputeVatReturnResponse:()=>EbS,RegisterEmployeeBody:()=>thS,RegisterEmployeeHeader:()=>ehS,ReopenFilingHeader:()=>YbS,ReopenFilingParams:()=>WbS,ReopenFilingResponse:()=>$bS,ReopenVatReturnHeader:()=>wbS,ReopenVatReturnParams:()=>CbS,ReopenVatReturnResponse:()=>AbS,ReplaceEmployeeAttendanceBody:()=>vhS,ReplaceEmployeeAttendanceHeader:()=>OhS,ReplaceEmployeeAttendanceParams:()=>ghS,ReplaceEmployeeAttendanceQueryParams:()=>yhS,ReplaceEmployeeAttendanceResponse:()=>ShS,ResolvePayrollParametersHeader:()=>bhS,ResolvePayrollParametersQueryParams:()=>hhS,ResolvePayrollParametersResponse:()=>zhS,ReviewSloveniaYearlyNormiraniReportBody:()=>nbS,ReviewSloveniaYearlyNormiraniReportHeader:()=>tbS,ReviewSloveniaYearlyNormiraniReportResponse:()=>sbS,SetPayrollParameterOverrideBody:()=>RhS,SetPayrollParameterOverrideHeader:()=>DhS,SetPayrollParameterOverrideParams:()=>IhS,SetPayrollParameterOverrideQueryParams:()=>EhS,SetPayrollParameterOverrideResponse:()=>_hS,SubmitVatReturnBody:()=>UbS,SubmitVatReturnHeader:()=>MbS,SubmitVatReturnParams:()=>NbS,SubmitVatReturnResponse:()=>PbS,UpdateSloveniaTaxProfileBody:()=>XhS,UpdateSloveniaTaxProfileHeader:()=>JhS,UpdateSloveniaTaxProfileResponse:()=>ebS,UpdateTaxPaymentBody:()=>HhS,UpdateTaxPaymentHeader:()=>jhS,UpdateTaxPaymentParams:()=>khS,UpdateTaxPaymentResponse:()=>LhS,approveVatReturnPathIdRegExp:()=>Y1v,archiveEmployeePathIdRegExp:()=>kkv,completeFilingBodyNoteMax:()=>s4v,completeFilingPathIdRegExp:()=>n4v,createTaxPaymentBodyAmountExclusiveMin:()=>Cjv,createTaxPaymentBodyCurrencyCodeMax:()=>Ajv,createTaxPaymentBodyCurrencyCodeMin:()=>wjv,createTaxPaymentBodyNoteMax:()=>kjv,createTaxPaymentBodyReferenceMax:()=>Fjv,deleteTaxPaymentPathIdRegExp:()=>Vjv,dismissFilingBodyReasonMax:()=>a4v,dismissFilingPathIdRegExp:()=>i4v,draftVatReturnBodyMonthMax:()=>G1v,draftVatReturnBodyQuarterMax:()=>V1v,draftVatReturnBodyYearMax:()=>L1v,draftVatReturnBodyYearMin:()=>H1v,exportSloveniaYearlyNormiraniReportBodyManualValuesForeignTaxCreditAmountMin:()=>P1v,exportSloveniaYearlyNormiraniReportBodyManualValuesPriorAdvanceIncomeTaxAmountMin:()=>C1v,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentDecreaseMin:()=>w1v,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentIncreaseMin:()=>A1v,exportSloveniaYearlyNormiraniReportBodyManualValuesWithholdingTaxAmountMin:()=>U1v,exportSloveniaYearlyNormiraniReportBodyYearMax:()=>M1v,exportSloveniaYearlyNormiraniReportBodyYearMin:()=>N1v,exportVatReturnPathIdRegExp:()=>X1v,generateKirExportQueryMonthRegExp:()=>oHv,generateKirExportQueryQuarterRegExp:()=>iHv,generateKirExportQueryYearRegExp:()=>sHv,getEmployeeAttendancePathIdRegExp:()=>jkv,getEmployeeAttendanceQueryMonthMax:()=>Gkv,getEmployeeAttendanceQueryYearMax:()=>Lkv,getEmployeeAttendanceQueryYearMin:()=>Hkv,getEmployeePathIdRegExp:()=>u5v,getEmployeeResponseAddressMax:()=>S5v,getEmployeeResponseCityMax:()=>b5v,getEmployeeResponseCommuteAmountMonthlyMax:()=>k5v,getEmployeeResponseCommuteAmountMonthlyMin:()=>F5v,getEmployeeResponseCommuteKmOneWayMax:()=>A5v,getEmployeeResponseCommuteKmOneWayMin:()=>w5v,getEmployeeResponseCommuteModeMax:()=>C5v,getEmployeeResponseCountryCodeMax:()=>z5v,getEmployeeResponseEmailMax:()=>y5v,getEmployeeResponseEmploymentEndRegExp:()=>T5v,getEmployeeResponseEmploymentStartRegExp:()=>B5v,getEmployeeResponseEmploymentTypeMax:()=>I5v,getEmployeeResponseEntityIdMax:()=>p5v,getEmployeeResponseFirstNameMax:()=>x5v,getEmployeeResponseGeneralAllowanceModeMax:()=>H5v,getEmployeeResponseGrossSalaryMonthlyMax:()=>_5v,getEmployeeResponseGrossSalaryMonthlyMin:()=>R5v,getEmployeeResponseIbanMax:()=>f5v,getEmployeeResponseIdMax:()=>c5v,getEmployeeResponseLastNameMax:()=>g5v,getEmployeeResponseMealAllowancePerDayMax:()=>P5v,getEmployeeResponseMealAllowancePerDayMin:()=>U5v,getEmployeeResponsePersonalIdMax:()=>v5v,getEmployeeResponsePostCodeMax:()=>h5v,getEmployeeResponseSeniorityBonusPercentMax:()=>M5v,getEmployeeResponseSeniorityBonusPercentMin:()=>N5v,getEmployeeResponseStatusMax:()=>m5v,getEmployeeResponseTaxNumberMax:()=>O5v,getEmployeeResponseTaxResidencyMax:()=>j5v,getEmployeeResponseWeeklyHoursMax:()=>D5v,getEmployeeResponseWeeklyHoursMin:()=>E5v,getEuOssReportQueryYearMax:()=>Zjv,getEuOssReportQueryYearMin:()=>Kjv,getEuOssReportResponseIssuerCountryCodeMax:()=>Wjv,getEuOssReportResponseIssuerCountryCodeMin:()=>qjv,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMax:()=>eHv,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMin:()=>Xjv,getEuOssReportResponsePeriodsItemCountriesItemCreditNoteCountMin:()=>nHv,getEuOssReportResponsePeriodsItemCountriesItemInvoiceCountMin:()=>tHv,getEuOssReportResponsePeriodsItemCreditNoteCountMin:()=>Jjv,getEuOssReportResponsePeriodsItemInvoiceCountMin:()=>Qjv,getEuOssReportResponseReportingCurrencyCodeMax:()=>$jv,getEuOssReportResponseReportingCurrencyCodeMin:()=>Yjv,getPayrollParameterHistoryQueryCountryCodeDefault:()=>ijv,getPayrollParameterHistoryQueryCountryCodeMax:()=>rjv,getPayrollParameterHistoryQueryCountryCodeMin:()=>ajv,getPayrollParameterHistoryResponseDataItemCountryCodeMax:()=>djv,getPayrollParameterHistoryResponseDataItemEffectiveFromRegExp:()=>xjv,getPayrollParameterHistoryResponseDataItemEffectiveToRegExp:()=>gjv,getPayrollParameterHistoryResponseDataItemEntityIdMax:()=>yjv,getPayrollParameterHistoryResponseDataItemIdMax:()=>ljv,getPayrollParameterHistoryResponseDataItemKeyMax:()=>ujv,getPayrollParameterHistoryResponseDataItemUnitMax:()=>mjv,getPayrollParameterHistoryResponseDataItemValueNumericMax:()=>pjv,getPayrollParameterHistoryResponseDataItemValueNumericMin:()=>cjv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>pHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>cHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>uHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>DHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>_Hv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>RHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>MHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>UHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>NHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>PHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>CHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>wHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>yHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>vHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>OHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>dHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>SHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>bHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>hHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>fHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>BHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>zHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>THv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>IHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>EHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>mHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>gHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>xHv,getSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>aHv,getSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>lHv,getSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>rHv,getVatReturnPathIdRegExp:()=>q1v,listAccountFilingsCalendarHeaderXAccountIdRegExp:()=>u4v,listAccountFilingsCalendarQueryEnvironmentDefault:()=>d4v,listAccountFilingsCalendarQueryFromRegExp:()=>r4v,listAccountFilingsCalendarQueryToRegExp:()=>l4v,listEmployeesQueryLimitDefault:()=>pFv,listEmployeesQueryLimitMax:()=>mFv,listEmployeesResponseDataItemAddressMax:()=>zFv,listEmployeesResponseDataItemCityMax:()=>BFv,listEmployeesResponseDataItemCommuteAmountMonthlyMax:()=>LFv,listEmployeesResponseDataItemCommuteAmountMonthlyMin:()=>HFv,listEmployeesResponseDataItemCommuteKmOneWayMax:()=>jFv,listEmployeesResponseDataItemCommuteKmOneWayMin:()=>kFv,listEmployeesResponseDataItemCommuteModeMax:()=>FFv,listEmployeesResponseDataItemCountryCodeMax:()=>TFv,listEmployeesResponseDataItemEmailMax:()=>SFv,listEmployeesResponseDataItemEmploymentEndRegExp:()=>DFv,listEmployeesResponseDataItemEmploymentStartRegExp:()=>EFv,listEmployeesResponseDataItemEmploymentTypeMax:()=>RFv,listEmployeesResponseDataItemEntityIdMax:()=>gFv,listEmployeesResponseDataItemFirstNameMax:()=>OFv,listEmployeesResponseDataItemGeneralAllowanceModeMax:()=>VFv,listEmployeesResponseDataItemGrossSalaryMonthlyMax:()=>UFv,listEmployeesResponseDataItemGrossSalaryMonthlyMin:()=>MFv,listEmployeesResponseDataItemIbanMax:()=>IFv,listEmployeesResponseDataItemIdMax:()=>xFv,listEmployeesResponseDataItemLastNameMax:()=>vFv,listEmployeesResponseDataItemMealAllowancePerDayMax:()=>AFv,listEmployeesResponseDataItemMealAllowancePerDayMin:()=>wFv,listEmployeesResponseDataItemPersonalIdMax:()=>bFv,listEmployeesResponseDataItemPostCodeMax:()=>fFv,listEmployeesResponseDataItemSeniorityBonusPercentMax:()=>CFv,listEmployeesResponseDataItemSeniorityBonusPercentMin:()=>PFv,listEmployeesResponseDataItemStatusMax:()=>yFv,listEmployeesResponseDataItemTaxNumberMax:()=>hFv,listEmployeesResponseDataItemTaxResidencyMax:()=>GFv,listEmployeesResponseDataItemWeeklyHoursMax:()=>NFv,listEmployeesResponseDataItemWeeklyHoursMin:()=>_Fv,listFilingsQueryFromRegExp:()=>e4v,listFilingsQueryToRegExp:()=>t4v,listVatReturnsQueryLimitDefault:()=>K1v,listVatReturnsQueryLimitMax:()=>Z1v,modifyEmployeeBodyAddressMax:()=>Z5v,modifyEmployeeBodyCityMax:()=>W5v,modifyEmployeeBodyCommuteAmountMonthlyMin:()=>rkv,modifyEmployeeBodyCommuteKmOneWayMin:()=>akv,modifyEmployeeBodyCountryCodeMax:()=>$5v,modifyEmployeeBodyCountryCodeMin:()=>Y5v,modifyEmployeeBodyEmailMax:()=>K5v,modifyEmployeeBodyEmploymentEndRegExp:()=>X5v,modifyEmployeeBodyEmploymentStartRegExp:()=>J5v,modifyEmployeeBodyFirstNameMax:()=>G5v,modifyEmployeeBodyGrossSalaryMonthlyMin:()=>nkv,modifyEmployeeBodyIbanMax:()=>Q5v,modifyEmployeeBodyLastNameMax:()=>V5v,modifyEmployeeBodyMealAllowancePerDayMin:()=>ikv,modifyEmployeeBodyPostCodeMax:()=>q5v,modifyEmployeeBodySeniorityBonusPercentMax:()=>okv,modifyEmployeeBodySeniorityBonusPercentMin:()=>skv,modifyEmployeeBodyWeeklyHoursExclusiveMin:()=>ekv,modifyEmployeeBodyWeeklyHoursMax:()=>tkv,modifyEmployeePathIdRegExp:()=>L5v,modifyEmployeeResponseAddressMax:()=>ykv,modifyEmployeeResponseCityMax:()=>vkv,modifyEmployeeResponseCommuteAmountMonthlyMax:()=>wkv,modifyEmployeeResponseCommuteAmountMonthlyMin:()=>Ckv,modifyEmployeeResponseCommuteKmOneWayMax:()=>Pkv,modifyEmployeeResponseCommuteKmOneWayMin:()=>Ukv,modifyEmployeeResponseCommuteModeMax:()=>Mkv,modifyEmployeeResponseCountryCodeMax:()=>Skv,modifyEmployeeResponseEmailMax:()=>mkv,modifyEmployeeResponseEmploymentEndRegExp:()=>zkv,modifyEmployeeResponseEmploymentStartRegExp:()=>bkv,modifyEmployeeResponseEmploymentTypeMax:()=>fkv,modifyEmployeeResponseEntityIdMax:()=>dkv,modifyEmployeeResponseFirstNameMax:()=>ckv,modifyEmployeeResponseGeneralAllowanceModeMax:()=>Fkv,modifyEmployeeResponseGrossSalaryMonthlyMax:()=>Ekv,modifyEmployeeResponseGrossSalaryMonthlyMin:()=>Ikv,modifyEmployeeResponseIbanMax:()=>hkv,modifyEmployeeResponseIdMax:()=>lkv,modifyEmployeeResponseLastNameMax:()=>pkv,modifyEmployeeResponseMealAllowancePerDayMax:()=>Nkv,modifyEmployeeResponseMealAllowancePerDayMin:()=>_kv,modifyEmployeeResponsePersonalIdMax:()=>gkv,modifyEmployeeResponsePostCodeMax:()=>Okv,modifyEmployeeResponseSeniorityBonusPercentMax:()=>Rkv,modifyEmployeeResponseSeniorityBonusPercentMin:()=>Dkv,modifyEmployeeResponseStatusMax:()=>ukv,modifyEmployeeResponseTaxNumberMax:()=>xkv,modifyEmployeeResponseTaxResidencyMax:()=>Akv,modifyEmployeeResponseWeeklyHoursMax:()=>Tkv,modifyEmployeeResponseWeeklyHoursMin:()=>Bkv,previewVatReturnQueryMonthRegExp:()=>k1v,previewVatReturnQueryQuarterRegExp:()=>j1v,previewVatReturnQueryYearRegExp:()=>F1v,recomputeVatReturnPathIdRegExp:()=>W1v,registerEmployeeBodyAddressMax:()=>WFv,registerEmployeeBodyCityMax:()=>$Fv,registerEmployeeBodyCommuteAmountMonthlyMin:()=>d5v,registerEmployeeBodyCommuteKmOneWayMin:()=>l5v,registerEmployeeBodyCountryCodeMax:()=>JFv,registerEmployeeBodyCountryCodeMin:()=>QFv,registerEmployeeBodyEmailMax:()=>qFv,registerEmployeeBodyEmploymentEndRegExp:()=>t5v,registerEmployeeBodyEmploymentStartRegExp:()=>e5v,registerEmployeeBodyFirstNameMax:()=>KFv,registerEmployeeBodyGrossSalaryMonthlyMin:()=>o5v,registerEmployeeBodyIbanMax:()=>XFv,registerEmployeeBodyLastNameMax:()=>ZFv,registerEmployeeBodyMealAllowancePerDayMin:()=>r5v,registerEmployeeBodyPostCodeMax:()=>YFv,registerEmployeeBodySeniorityBonusPercentMax:()=>a5v,registerEmployeeBodySeniorityBonusPercentMin:()=>i5v,registerEmployeeBodyWeeklyHoursExclusiveMin:()=>n5v,registerEmployeeBodyWeeklyHoursMax:()=>s5v,reopenFilingPathIdRegExp:()=>o4v,reopenVatReturnPathIdRegExp:()=>J1v,replaceEmployeeAttendanceBodyDaysItemDateRegExp:()=>Wkv,replaceEmployeeAttendanceBodyDaysItemHoursMax:()=>$kv,replaceEmployeeAttendanceBodyDaysItemHoursMin:()=>Ykv,replaceEmployeeAttendanceBodyDaysItemNoteMax:()=>Qkv,replaceEmployeeAttendancePathIdRegExp:()=>Vkv,replaceEmployeeAttendanceQueryMonthMax:()=>qkv,replaceEmployeeAttendanceQueryYearMax:()=>Zkv,replaceEmployeeAttendanceQueryYearMin:()=>Kkv,resolvePayrollParametersQueryAsOfRegExp:()=>tjv,resolvePayrollParametersQueryCountryCodeDefault:()=>Jkv,resolvePayrollParametersQueryCountryCodeMax:()=>ejv,resolvePayrollParametersQueryCountryCodeMin:()=>Xkv,resolvePayrollParametersResponseAsOfRegExp:()=>njv,resolvePayrollParametersResponseParametersEffectiveFromRegExp:()=>sjv,resolvePayrollParametersResponseParametersEffectiveToRegExp:()=>ojv,reviewSloveniaYearlyNormiraniReportBodyYearMax:()=>ZLv,reviewSloveniaYearlyNormiraniReportBodyYearMin:()=>KLv,reviewSloveniaYearlyNormiraniReportResponseManualValuesForeignTaxCreditAmountMin:()=>E1v,reviewSloveniaYearlyNormiraniReportResponseManualValuesPriorAdvanceIncomeTaxAmountMin:()=>D1v,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentDecreaseMin:()=>R1v,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentIncreaseMin:()=>_1v,reviewSloveniaYearlyNormiraniReportResponseManualValuesWithholdingTaxAmountMin:()=>I1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>t1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>e1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePayablesMax:()=>XLv,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>O1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>S1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>v1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>b1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>z1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>h1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>f1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>B1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>T1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>i1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>r1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>a1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneReceivablesMax:()=>JLv,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>l1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>u1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>d1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>p1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>m1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>c1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>x1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>g1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>y1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat22Max:()=>n1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat5Max:()=>o1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat95Max:()=>s1v,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingActivityCodesItemRegExp:()=>YLv,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultForeignTaxCreditAmountMin:()=>QLv,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultWithholdingTaxAmountMin:()=>$Lv,reviewSloveniaYearlyNormiraniReportResponseYearMax:()=>WLv,reviewSloveniaYearlyNormiraniReportResponseYearMin:()=>qLv,setPayrollParameterOverrideBodyEffectiveFromRegExp:()=>bjv,setPayrollParameterOverrideBodyEffectiveToRegExp:()=>zjv,setPayrollParameterOverrideBodyNoteMax:()=>Tjv,setPayrollParameterOverrideBodySourceTitleMax:()=>Bjv,setPayrollParameterOverrideBodySourceUrlMax:()=>fjv,setPayrollParameterOverrideBodyUnitMax:()=>hjv,setPayrollParameterOverrideQueryCountryCodeDefault:()=>Ojv,setPayrollParameterOverrideQueryCountryCodeMax:()=>Sjv,setPayrollParameterOverrideQueryCountryCodeMin:()=>vjv,setPayrollParameterOverrideResponseCountryCodeMax:()=>Ejv,setPayrollParameterOverrideResponseEffectiveFromRegExp:()=>Mjv,setPayrollParameterOverrideResponseEffectiveToRegExp:()=>Ujv,setPayrollParameterOverrideResponseEntityIdMax:()=>Pjv,setPayrollParameterOverrideResponseIdMax:()=>Ijv,setPayrollParameterOverrideResponseKeyMax:()=>Djv,setPayrollParameterOverrideResponseUnitMax:()=>Njv,setPayrollParameterOverrideResponseValueNumericMax:()=>_jv,setPayrollParameterOverrideResponseValueNumericMin:()=>Rjv,submitVatReturnBodyNotesMax:()=>Q1v,submitVatReturnPathIdRegExp:()=>$1v,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesPaidMax:()=>GHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesReceivedMax:()=>LHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPayablesMax:()=>HHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense22Max:()=>iLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense5Max:()=>rLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense95Max:()=>aLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuGoodsMax:()=>dLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuServicesMax:()=>uLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseExemptMax:()=>lLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseReverseChargeMax:()=>cLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryGoodsMax:()=>pLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryServicesMax:()=>mLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable22Max:()=>qHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable5Max:()=>YHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable95Max:()=>WHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsReceivablesMax:()=>jHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue22Max:()=>$Hv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue5Max:()=>JHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue95Max:()=>QHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuGoodsMax:()=>eLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuServicesMax:()=>tLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueExemptMax:()=>XHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueReverseChargeMax:()=>nLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryGoodsMax:()=>sLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryServicesMax:()=>oLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat22Max:()=>VHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat5Max:()=>ZHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat95Max:()=>KHv,updateSloveniaTaxProfileBodyYearlyReportingActivityCodesItemRegExp:()=>AHv,updateSloveniaTaxProfileBodyYearlyReportingDefaultForeignTaxCreditAmountMin:()=>kHv,updateSloveniaTaxProfileBodyYearlyReportingDefaultWithholdingTaxAmountMin:()=>FHv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>hLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>SLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>vLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>wLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>FLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>ALv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>jLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>HLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>kLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>LLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>GLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>VLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>BLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>ILv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>TLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>OLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>ELv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>RLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>DLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>NLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>MLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>_Lv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>ULv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>PLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>CLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>bLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>fLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>zLv,updateSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>xLv,updateSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>yLv,updateSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>gLv,updateTaxPaymentBodyAmountExclusiveMin:()=>Hjv,updateTaxPaymentBodyNoteMax:()=>Gjv,updateTaxPaymentBodyReferenceMax:()=>Ljv,updateTaxPaymentPathIdRegExp:()=>jjv});var pFv=10,mFv=100,QSS=e.object({limit:e.number().min(1).max(mFv).default(pFv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e.union([e.literal("active"),e.literal("inactive"),e.literal(null)]).nullish().describe("Filter by employee status. Omit to return both active and inactive employees.")}),JSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),xFv=36,gFv=36,yFv=20,OFv=255,vFv=255,SFv=255,hFv=20,bFv=20,zFv=500,fFv=20,BFv=100,TFv=2,IFv=50,EFv=/^\d{4}-\d{2}-\d{2}$/,DFv=/^\d{4}-\d{2}-\d{2}$/,RFv=20,_Fv=-140737488355328,NFv=0x7fffffffffff,MFv=-140737488355328,UFv=0x7fffffffffff,PFv=-140737488355328,CFv=0x7fffffffffff,wFv=-140737488355328,AFv=0x7fffffffffff,FFv=20,kFv=-140737488355328,jFv=0x7fffffffffff,HFv=-140737488355328,LFv=0x7fffffffffff,GFv=20,VFv=20,XSS=e.object({data:e.array(e.object({id:e.string().max(xFv),entity_id:e.string().max(gFv),status:e.string().max(yFv),first_name:e.string().max(OFv),last_name:e.string().max(vFv),email:e.string().max(SFv).nullish(),tax_number:e.string().max(hFv),personal_id:e.string().max(bFv).nullish(),address:e.string().max(zFv).nullish(),post_code:e.string().max(fFv).nullish(),city:e.string().max(BFv).nullish(),country_code:e.string().max(TFv).nullish(),iban:e.string().max(IFv).nullish(),employment_start:e.string().regex(EFv),employment_end:e.string().regex(DFv).nullish(),employment_type:e.string().max(RFv),weekly_hours:e.number().min(_Fv).max(NFv),gross_salary_monthly:e.number().min(MFv).max(UFv),seniority_bonus_percent:e.number().min(PFv).max(CFv),meal_allowance_per_day:e.number().min(wFv).max(AFv).nullish(),commute_mode:e.string().max(FFv),commute_km_one_way:e.number().min(kFv).max(jFv).nullish(),commute_amount_monthly:e.number().min(HFv).max(LFv).nullish(),works_remotely:e.boolean(),tax_residency:e.string().max(GFv),general_allowance_mode:e.string().max(VFv),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Employee record used as the basis for payroll and attendance.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ehS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KFv=255,ZFv=255,qFv=255,WFv=500,YFv=20,$Fv=100,QFv=2,JFv=2,XFv=50,e5v=/^\d{4}-\d{2}-\d{2}$/,t5v=/^\d{4}-\d{2}-\d{2}$/,n5v=0,s5v=168,o5v=0,i5v=0,a5v=100,r5v=0,l5v=0,d5v=0,thS=e.object({status:e.union([e.literal("active"),e.literal("inactive"),e.literal(null)]).nullish(),first_name:e.string().min(1).max(KFv),last_name:e.string().min(1).max(ZFv),email:e.string().max(qFv).nullish(),tax_number:e.string().describe("Slovenian tax number (davcna stevilka), 8 digits. An optional SI prefix is stripped."),personal_id:e.string().nullish().describe("Slovenian unique master citizen number (EMSO), 13 digits. Validated on length/digits only."),address:e.string().max(WFv).nullish(),post_code:e.string().max(YFv).nullish(),city:e.string().max($Fv).nullish(),country_code:e.string().min(QFv).max(JFv).nullish(),iban:e.string().max(XFv).nullish(),employment_start:e.string().regex(e5v),employment_end:e.string().regex(t5v).nullish(),employment_type:e.union([e.literal("full_time"),e.literal("part_time"),e.literal(null)]).nullish(),weekly_hours:e.number().gt(n5v).max(s5v).nullish(),gross_salary_monthly:e.number().min(o5v),seniority_bonus_percent:e.number().min(i5v).max(a5v).nullish(),meal_allowance_per_day:e.number().min(r5v).nullish(),commute_mode:e.union([e.literal("none"),e.literal("per_km"),e.literal("public_transport"),e.literal(null)]).nullish(),commute_km_one_way:e.number().min(l5v).nullish(),commute_amount_monthly:e.number().min(d5v).nullish(),works_remotely:e.boolean().nullish(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullish(),general_allowance_mode:e.union([e.literal("standard"),e.literal("none"),e.literal(null)]).nullish(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),u5v=/^[a-z]{3,4}_[0-9a-f]{24}$/,nhS=e.object({id:e.stringFormat("resource-id",u5v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),shS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),c5v=36,p5v=36,m5v=20,x5v=255,g5v=255,y5v=255,O5v=20,v5v=20,S5v=500,h5v=20,b5v=100,z5v=2,f5v=50,B5v=/^\d{4}-\d{2}-\d{2}$/,T5v=/^\d{4}-\d{2}-\d{2}$/,I5v=20,E5v=-140737488355328,D5v=0x7fffffffffff,R5v=-140737488355328,_5v=0x7fffffffffff,N5v=-140737488355328,M5v=0x7fffffffffff,U5v=-140737488355328,P5v=0x7fffffffffff,C5v=20,w5v=-140737488355328,A5v=0x7fffffffffff,F5v=-140737488355328,k5v=0x7fffffffffff,j5v=20,H5v=20,ohS=e.object({id:e.string().max(c5v),entity_id:e.string().max(p5v),status:e.string().max(m5v),first_name:e.string().max(x5v),last_name:e.string().max(g5v),email:e.string().max(y5v).nullish(),tax_number:e.string().max(O5v),personal_id:e.string().max(v5v).nullish(),address:e.string().max(S5v).nullish(),post_code:e.string().max(h5v).nullish(),city:e.string().max(b5v).nullish(),country_code:e.string().max(z5v).nullish(),iban:e.string().max(f5v).nullish(),employment_start:e.string().regex(B5v),employment_end:e.string().regex(T5v).nullish(),employment_type:e.string().max(I5v),weekly_hours:e.number().min(E5v).max(D5v),gross_salary_monthly:e.number().min(R5v).max(_5v),seniority_bonus_percent:e.number().min(N5v).max(M5v),meal_allowance_per_day:e.number().min(U5v).max(P5v).nullish(),commute_mode:e.string().max(C5v),commute_km_one_way:e.number().min(w5v).max(A5v).nullish(),commute_amount_monthly:e.number().min(F5v).max(k5v).nullish(),works_remotely:e.boolean(),tax_residency:e.string().max(j5v),general_allowance_mode:e.string().max(H5v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Employee record used as the basis for payroll and attendance."),L5v=/^[a-z]{3,4}_[0-9a-f]{24}$/,ihS=e.object({id:e.stringFormat("resource-id",L5v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ahS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),G5v=255,V5v=255,K5v=255,Z5v=500,q5v=20,W5v=100,Y5v=2,$5v=2,Q5v=50,J5v=/^\d{4}-\d{2}-\d{2}$/,X5v=/^\d{4}-\d{2}-\d{2}$/,ekv=0,tkv=168,nkv=0,skv=0,okv=100,ikv=0,akv=0,rkv=0,rhS=e.object({status:e.union([e.literal("active"),e.literal("inactive"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),first_name:e.string().min(1).max(G5v).nullish().describe("Required attribute; omit or send null to leave it unchanged."),last_name:e.string().min(1).max(V5v).nullish().describe("Required attribute; omit or send null to leave it unchanged."),email:e.string().max(K5v).nullish(),tax_number:e.string().nullish().describe("Required attribute; omit or send null to leave it unchanged."),personal_id:e.string().nullish().describe("Slovenian unique master citizen number (EMSO), 13 digits. Validated on length/digits only."),address:e.string().max(Z5v).nullish(),post_code:e.string().max(q5v).nullish(),city:e.string().max(W5v).nullish(),country_code:e.string().min(Y5v).max($5v).nullish(),iban:e.string().max(Q5v).nullish(),employment_start:e.string().regex(J5v).nullish().describe("Required attribute; omit or send null to leave it unchanged."),employment_end:e.string().regex(X5v).nullish(),employment_type:e.union([e.literal("full_time"),e.literal("part_time"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),weekly_hours:e.number().gt(ekv).max(tkv).nullish().describe("Required attribute; omit or send null to leave it unchanged."),gross_salary_monthly:e.number().min(nkv).nullish().describe("Required attribute; omit or send null to leave it unchanged."),seniority_bonus_percent:e.number().min(skv).max(okv).nullish().describe("Required attribute; omit or send null to leave it unchanged."),meal_allowance_per_day:e.number().min(ikv).nullish(),commute_mode:e.union([e.literal("none"),e.literal("per_km"),e.literal("public_transport"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),commute_km_one_way:e.number().min(akv).nullish(),commute_amount_monthly:e.number().min(rkv).nullish(),works_remotely:e.boolean().nullish().describe("Required attribute; omit or send null to leave it unchanged."),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),general_allowance_mode:e.union([e.literal("standard"),e.literal("none"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),lkv=36,dkv=36,ukv=20,ckv=255,pkv=255,mkv=255,xkv=20,gkv=20,ykv=500,Okv=20,vkv=100,Skv=2,hkv=50,bkv=/^\d{4}-\d{2}-\d{2}$/,zkv=/^\d{4}-\d{2}-\d{2}$/,fkv=20,Bkv=-140737488355328,Tkv=0x7fffffffffff,Ikv=-140737488355328,Ekv=0x7fffffffffff,Dkv=-140737488355328,Rkv=0x7fffffffffff,_kv=-140737488355328,Nkv=0x7fffffffffff,Mkv=20,Ukv=-140737488355328,Pkv=0x7fffffffffff,Ckv=-140737488355328,wkv=0x7fffffffffff,Akv=20,Fkv=20,lhS=e.object({id:e.string().max(lkv),entity_id:e.string().max(dkv),status:e.string().max(ukv),first_name:e.string().max(ckv),last_name:e.string().max(pkv),email:e.string().max(mkv).nullish(),tax_number:e.string().max(xkv),personal_id:e.string().max(gkv).nullish(),address:e.string().max(ykv).nullish(),post_code:e.string().max(Okv).nullish(),city:e.string().max(vkv).nullish(),country_code:e.string().max(Skv).nullish(),iban:e.string().max(hkv).nullish(),employment_start:e.string().regex(bkv),employment_end:e.string().regex(zkv).nullish(),employment_type:e.string().max(fkv),weekly_hours:e.number().min(Bkv).max(Tkv),gross_salary_monthly:e.number().min(Ikv).max(Ekv),seniority_bonus_percent:e.number().min(Dkv).max(Rkv),meal_allowance_per_day:e.number().min(_kv).max(Nkv).nullish(),commute_mode:e.string().max(Mkv),commute_km_one_way:e.number().min(Ukv).max(Pkv).nullish(),commute_amount_monthly:e.number().min(Ckv).max(wkv).nullish(),works_remotely:e.boolean(),tax_residency:e.string().max(Akv),general_allowance_mode:e.string().max(Fkv),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Employee record used as the basis for payroll and attendance."),kkv=/^[a-z]{3,4}_[0-9a-f]{24}$/,dhS=e.object({id:e.stringFormat("resource-id",kkv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),uhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),jkv=/^[a-z]{3,4}_[0-9a-f]{24}$/,chS=e.object({id:e.stringFormat("resource-id",jkv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Hkv=2e3,Lkv=2030,Gkv=12,phS=e.object({year:e.number().min(Hkv).max(Lkv),month:e.number().min(1).max(Gkv)}),mhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),xhS=e.object({employee_id:e.string(),year:e.number(),month:e.number(),days:e.array(e.object({date:e.string(),kind:e.enum(["worked","sick","vacation","public_holiday","paid_leave","unpaid","other","weekend"]),hours:e.number(),sick_reason:e.union([e.literal("illness"),e.literal("injury_outside_work"),e.literal("occupational"),e.literal("care"),e.literal("isolation"),e.literal("donation"),e.literal("other"),e.literal(null)]).nullable(),note:e.string().nullable(),stored:e.boolean().describe("Whether this day has a persisted attendance_days row.")})),summary:e.object({working_days:e.number().describe("Working days in the month per the SI calendar."),worked:e.number(),sick:e.number(),vacation:e.number(),public_holiday:e.number(),paid_leave:e.number(),unpaid:e.number(),other:e.number(),weekend:e.number()})}),Vkv=/^[a-z]{3,4}_[0-9a-f]{24}$/,ghS=e.object({id:e.stringFormat("resource-id",Vkv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Kkv=2e3,Zkv=2030,qkv=12,yhS=e.object({year:e.number().min(Kkv).max(Zkv),month:e.number().min(1).max(qkv)}),OhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wkv=/^\d{4}-\d{2}-\d{2}$/,Ykv=0,$kv=24,Qkv=1e3,vhS=e.object({days:e.array(e.object({date:e.string().regex(Wkv),kind:e.enum(["worked","sick","vacation","public_holiday","paid_leave","unpaid","other"]),hours:e.number().min(Ykv).max($kv).nullish(),sick_reason:e.union([e.literal("illness"),e.literal("injury_outside_work"),e.literal("occupational"),e.literal("care"),e.literal("isolation"),e.literal("donation"),e.literal("other"),e.literal(null)]).nullish(),note:e.string().max(Qkv).nullish()}))}),ShS=e.object({employee_id:e.string(),year:e.number(),month:e.number(),days:e.array(e.object({date:e.string(),kind:e.enum(["worked","sick","vacation","public_holiday","paid_leave","unpaid","other","weekend"]),hours:e.number(),sick_reason:e.union([e.literal("illness"),e.literal("injury_outside_work"),e.literal("occupational"),e.literal("care"),e.literal("isolation"),e.literal("donation"),e.literal("other"),e.literal(null)]).nullable(),note:e.string().nullable(),stored:e.boolean().describe("Whether this day has a persisted attendance_days row.")})),summary:e.object({working_days:e.number().describe("Working days in the month per the SI calendar."),worked:e.number(),sick:e.number(),vacation:e.number(),public_holiday:e.number(),paid_leave:e.number(),unpaid:e.number(),other:e.number(),weekend:e.number()})}),Jkv="SI",Xkv=2,ejv=2,tjv=/^\d{4}-\d{2}-\d{2}$/,hhS=e.object({country_code:e.string().min(Xkv).max(ejv).default(Jkv),as_of:e.string().regex(tjv).optional().describe("Resolve parameters effective on this date. Defaults to today.")}),bhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),njv=/^\d{4}-\d{2}-\d{2}$/,sjv=/^\d{4}-\d{2}-\d{2}$/,ojv=/^\d{4}-\d{2}-\d{2}$/,zhS=e.object({country_code:e.string(),as_of:e.string().regex(njv),parameters:e.record(e.string(),e.object({value:e.union([e.number(),e.record(e.string(),e.unknown()),e.null()]).describe("value_numeric when set, otherwise value_json."),unit:e.string().nullable(),effective_from:e.string().regex(sjv),effective_to:e.string().regex(ojv).nullable(),verified:e.boolean(),source_url:e.string().nullable(),source_title:e.string().nullable(),is_override:e.boolean().describe("True when this value came from an entity override.")}))}),ijv="SI",ajv=2,rjv=2,fhS=e.object({country_code:e.string().min(ajv).max(rjv).default(ijv),key:e.string().min(1)}),BhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ljv=36,djv=2,ujv=200,cjv=-140737488355328,pjv=0x7fffffffffff,mjv=50,xjv=/^\d{4}-\d{2}-\d{2}$/,gjv=/^\d{4}-\d{2}-\d{2}$/,yjv=36,ThS=e.object({data:e.array(e.object({id:e.string().max(ljv),country_code:e.string().max(djv),key:e.string().max(ujv),value_numeric:e.number().min(cjv).max(pjv).nullish(),value_json:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),unit:e.string().max(mjv).nullish(),effective_from:e.string().regex(xjv),effective_to:e.string().regex(gjv).nullish(),source_url:e.string().nullish(),source_title:e.string().nullish(),verified:e.boolean(),note:e.string().nullish(),entity_id:e.string().max(yjv).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A single effective-dated payroll parameter row (statutory or entity-override)."))}),IhS=e.object({key:e.string().min(1).describe("Dotted payroll parameter key.")}),Ojv="SI",vjv=2,Sjv=2,EhS=e.object({country_code:e.string().min(vjv).max(Sjv).default(Ojv)}),DhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),hjv=50,bjv=/^\d{4}-\d{2}-\d{2}$/,zjv=/^\d{4}-\d{2}-\d{2}$/,fjv=1e3,Bjv=500,Tjv=2e3,RhS=e.object({value:e.number().nullish(),value_json:e.record(e.string(),e.unknown()).nullish(),unit:e.string().max(hjv).nullish(),effective_from:e.string().regex(bjv),effective_to:e.string().regex(zjv).nullish(),source_url:e.string().max(fjv).nullish(),source_title:e.string().max(Bjv).nullish(),note:e.string().max(Tjv).nullish()}),Ijv=36,Ejv=2,Djv=200,Rjv=-140737488355328,_jv=0x7fffffffffff,Njv=50,Mjv=/^\d{4}-\d{2}-\d{2}$/,Ujv=/^\d{4}-\d{2}-\d{2}$/,Pjv=36,_hS=e.object({id:e.string().max(Ijv),country_code:e.string().max(Ejv),key:e.string().max(Djv),value_numeric:e.number().min(Rjv).max(_jv).nullish(),value_json:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),unit:e.string().max(Njv).nullish(),effective_from:e.string().regex(Mjv),effective_to:e.string().regex(Ujv).nullish(),source_url:e.string().nullish(),source_title:e.string().nullish(),verified:e.boolean(),note:e.string().nullish(),entity_id:e.string().max(Pjv).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A single effective-dated payroll parameter row (statutory or entity-override)."),NhS=e.object({date_from:e.iso.date().describe("Report period start date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Report period end date in YYYY-MM-DD format.")}),MhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),UhS=e.object({date_from:e.string(),date_to:e.string(),currency_code:e.string(),totals:e.object({output_tax:e.number(),output_tax_adjustments:e.number(),input_tax:e.number(),input_tax_adjustments:e.number(),reverse_charge_tax:e.number(),non_deductible_input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number()}),by_rate:e.array(e.object({rate:e.number().nullable(),output_tax:e.number(),output_tax_adjustments:e.number(),input_tax:e.number(),input_tax_adjustments:e.number(),reverse_charge_tax:e.number(),non_deductible_input_tax:e.number(),net_tax_due:e.number()})),payments:e.array(e.object({id:e.string(),entity_id:e.string(),date_from:e.string(),date_to:e.string(),amount:e.number(),currency_code:e.string(),payment_date:e.string(),type:e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e.string().nullable(),note:e.string().nullable(),liability_snapshot:e.union([e.object({date_from:e.string(),date_to:e.string(),output_tax:e.number(),input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number(),currency_code:e.string()}),e.null()]),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})})),remaining:e.number(),warnings:e.array(e.object({code:e.string(),message:e.string(),document_id:e.string().nullable(),document_type:e.string().nullable()}))}),PhS=e.object({date_from:e.iso.date().describe("Report period start date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Report period end date in YYYY-MM-DD format.")}),ChS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),whS=e.object({data:e.array(e.object({id:e.string(),entity_id:e.string(),date_from:e.string(),date_to:e.string(),amount:e.number(),currency_code:e.string(),payment_date:e.string(),type:e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e.string().nullable(),note:e.string().nullable(),liability_snapshot:e.union([e.object({date_from:e.string(),date_to:e.string(),output_tax:e.number(),input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number(),currency_code:e.string()}),e.null()]),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}))}),AhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Cjv=0,wjv=3,Ajv=3,Fjv=100,kjv=500,FhS=e.object({date_from:e.iso.date().describe("Tax period start date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Tax period end date in YYYY-MM-DD format."),amount:e.number().gt(Cjv).describe("Amount paid to the tax authority."),currency_code:e.string().min(wjv).max(Ajv).nullish().describe("Payment currency. Defaults to and must match the entity currency."),payment_date:e.iso.date().nullish().describe("Payment date in YYYY-MM-DD format. Defaults to today."),type:e.union([e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),e.null()]).optional().describe("How the tax authority payment was made. Defaults to bank_transfer when omitted or null."),reference:e.string().max(Fjv).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max(kjv).nullish().describe("Internal note for this tax payment."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),jjv=/^txpay_[0-9a-f]{24}$/,khS=e.object({id:e.string().regex(jjv).describe("Tax payment identifier")}),jhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hjv=0,Ljv=100,Gjv=500,HhS=e.object({amount:e.number().gt(Hjv).optional().describe("Amount paid to the tax authority."),payment_date:e.iso.date().optional().describe("Replacement payment date in YYYY-MM-DD format. Omit to leave it unchanged."),type:e.enum(["bank_transfer","card","cash","check","other"]).optional().describe("Replacement payment type. Omit to leave it unchanged; null is not accepted."),reference:e.string().max(Ljv).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max(Gjv).nullish().describe("Internal note for this tax payment."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),LhS=e.object({id:e.string(),entity_id:e.string(),date_from:e.string(),date_to:e.string(),amount:e.number(),currency_code:e.string(),payment_date:e.string(),type:e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e.string().nullable(),note:e.string().nullable(),liability_snapshot:e.union([e.object({date_from:e.string(),date_to:e.string(),output_tax:e.number(),input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number(),currency_code:e.string()}),e.null()]),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),Vjv=/^txpay_[0-9a-f]{24}$/,GhS=e.object({id:e.string().regex(Vjv).describe("Tax payment identifier")}),VhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Kjv=2021,Zjv=2100,KhS=e.object({year:e.number().min(Kjv).max(Zjv).optional().describe("Calendar year to review together with its preceding year.")}),ZhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qjv=2,Wjv=2,Yjv=3,$jv=3,Qjv=0,Jjv=0,Xjv=2,eHv=2,tHv=0,nHv=0,qhS=e.object({entity_id:e.string(),eligible:e.boolean(),eligibility_reason:e.enum(["eligible","issuer_not_in_eu","issuer_country_not_supported","entity_not_tax_subject"]),issuer_country_code:e.string().min(qjv).max(Wjv).nullable(),reporting_currency_code:e.string().min(Yjv).max($jv).nullable(),selected_year:e.number(),auto_apply_destination_vat:e.boolean(),threshold:e.object({amount:e.literal(1e4),currency_code:e.enum(["EUR"]),comparison_available:e.boolean(),status:e.enum(["below_threshold","exceeds_threshold","comparison_unavailable"]),selected_year_net_sales:e.number(),preceding_year_net_sales:e.number()}).describe("Comparison with the EU-wide EUR 10,000 threshold. Status is unavailable when the entity reporting currency is not EUR."),periods:e.array(e.object({year:e.number(),invoice_count:e.number().min(Qjv),credit_note_count:e.number().min(Jjv),net_sales:e.number(),vat_collected:e.number(),gross_sales:e.number(),countries:e.array(e.object({country_code:e.string().min(Xjv).max(eHv),country_name:e.string(),invoice_count:e.number().min(tHv),credit_note_count:e.number().min(nHv),net_sales:e.number(),vat_collected:e.number(),gross_sales:e.number(),standard_vat_rate:e.number().nullable(),reduced_vat_rates:e.array(e.number())}).describe("Operational intra-EU B2C sales totals for one destination country."))}).describe("EU OSS tracking totals for one calendar year.")),guidance_url:e.url(),vat_rates_verified_through:e.iso.date(),notices:e.array(e.enum(["scope_requires_review","vat_rates_reference_only","vat_rates_last_verified","stored_conversion_data_only"]))}).describe("Operational EU OSS tracker for finalized intra-EU B2C invoices and credit notes. It is not a legal filing determination."),sHv=/^\d{4}$/,oHv=/^(1[0-2]|[1-9])$/,iHv=/^[1-4]$/,WhS=e.object({year:e.string().regex(sHv).describe("Year for the combined KIR/KPR export (e.g., 2025)"),month:e.string().regex(oHv).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e.string().regex(iHv).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),YhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$hS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aHv=/^\d{2}\.\d{3}$/,rHv=0,lHv=0,dHv=8,uHv=8,cHv=8,pHv=8,mHv=8,xHv=8,gHv=8,yHv=8,OHv=8,vHv=8,SHv=8,hHv=8,bHv=8,zHv=8,fHv=8,BHv=8,THv=8,IHv=8,EHv=8,DHv=8,RHv=8,_Hv=8,NHv=8,MHv=8,UHv=8,PHv=8,CHv=8,wHv=8,QhS=e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().optional(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(aHv).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e.number().min(rHv).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(lHv).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e.object({receivables:e.string().max(dHv).nullish(),payables:e.string().max(uHv).nullish(),advances_received:e.string().max(cHv).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(pHv).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(mHv).nullish(),sales_vat_95:e.string().max(xHv).nullish(),sales_vat_5:e.string().max(gHv).nullish(),purchase_vat_recoverable_22:e.string().max(yHv).nullish(),purchase_vat_recoverable_95:e.string().max(OHv).nullish(),purchase_vat_recoverable_5:e.string().max(vHv).nullish(),sales_revenue_22:e.string().max(SHv).nullish(),sales_revenue_95:e.string().max(hHv).nullish(),sales_revenue_5:e.string().max(bHv).nullish(),sales_revenue_exempt:e.string().max(zHv).nullish(),sales_revenue_eu_goods:e.string().max(fHv).nullish(),sales_revenue_eu_services:e.string().max(BHv).nullish(),sales_revenue_reverse_charge:e.string().max(THv).nullish(),sales_revenue_third_country_goods:e.string().max(IHv).nullish(),sales_revenue_third_country_services:e.string().max(EHv).nullish(),purchase_expense_22:e.string().max(DHv).nullish(),purchase_expense_95:e.string().max(RHv).nullish(),purchase_expense_5:e.string().max(_Hv).nullish(),purchase_expense_exempt:e.string().max(NHv).nullish(),purchase_expense_eu_goods:e.string().max(MHv).nullish(),purchase_expense_eu_services:e.string().max(UHv).nullish(),purchase_expense_reverse_charge:e.string().max(PHv).nullish(),purchase_expense_third_country_goods:e.string().max(CHv).nullish(),purchase_expense_third_country_services:e.string().max(wHv).nullish()}).and(e.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e.enum(["stored","registry","unknown"]),inferred_business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e.object({yearly_normirani:e.boolean(),vod_xml:e.boolean(),vasco_xml:e.boolean(),minimax_xml:e.boolean()}),unsupported_reason:e.string().nullable()}),JhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),AHv=/^\d{2}\.\d{3}$/,FHv=0,kHv=0,jHv=8,HHv=8,LHv=8,GHv=8,VHv=8,KHv=8,ZHv=8,qHv=8,WHv=8,YHv=8,$Hv=8,QHv=8,JHv=8,XHv=8,eLv=8,tLv=8,nLv=8,sLv=8,oLv=8,iLv=8,aLv=8,rLv=8,lLv=8,dLv=8,uLv=8,cLv=8,pLv=8,mLv=8,XhS=e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullish().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullish().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullish().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().nullish(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullish().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(AHv).describe("Slovenian SKD activity code used for yearly reporting.")).nullish(),registration_number:e.string().nullish(),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullish().describe("Accounting or records mode used for the yearly filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullish().describe("Insurance basis used to determine the applicable normirani rules."),default_withholding_tax_amount:e.number().min(FHv).nullish().describe("Monetary amount in EUR."),default_foreign_tax_credit_amount:e.number().min(kHv).nullish().describe("Monetary amount in EUR.")}).nullish(),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullish().describe("Stored preferred export format for Slovenian accounting handoff."),konto_mappings:e.object({receivables:e.string().max(jHv).nullish(),payables:e.string().max(HHv).nullish(),advances_received:e.string().max(LHv).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(GHv).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(VHv).nullish(),sales_vat_95:e.string().max(KHv).nullish(),sales_vat_5:e.string().max(ZHv).nullish(),purchase_vat_recoverable_22:e.string().max(qHv).nullish(),purchase_vat_recoverable_95:e.string().max(WHv).nullish(),purchase_vat_recoverable_5:e.string().max(YHv).nullish(),sales_revenue_22:e.string().max($Hv).nullish(),sales_revenue_95:e.string().max(QHv).nullish(),sales_revenue_5:e.string().max(JHv).nullish(),sales_revenue_exempt:e.string().max(XHv).nullish(),sales_revenue_eu_goods:e.string().max(eLv).nullish(),sales_revenue_eu_services:e.string().max(tLv).nullish(),sales_revenue_reverse_charge:e.string().max(nLv).nullish(),sales_revenue_third_country_goods:e.string().max(sLv).nullish(),sales_revenue_third_country_services:e.string().max(oLv).nullish(),purchase_expense_22:e.string().max(iLv).nullish(),purchase_expense_95:e.string().max(aLv).nullish(),purchase_expense_5:e.string().max(rLv).nullish(),purchase_expense_exempt:e.string().max(lLv).nullish(),purchase_expense_eu_goods:e.string().max(dLv).nullish(),purchase_expense_eu_services:e.string().max(uLv).nullish(),purchase_expense_reverse_charge:e.string().max(cLv).nullish(),purchase_expense_third_country_goods:e.string().max(pLv).nullish(),purchase_expense_third_country_services:e.string().max(mLv).nullish()}).nullish()}).nullish()}),xLv=/^\d{2}\.\d{3}$/,gLv=0,yLv=0,OLv=8,vLv=8,SLv=8,hLv=8,bLv=8,zLv=8,fLv=8,BLv=8,TLv=8,ILv=8,ELv=8,DLv=8,RLv=8,_Lv=8,NLv=8,MLv=8,ULv=8,PLv=8,CLv=8,wLv=8,ALv=8,FLv=8,kLv=8,jLv=8,HLv=8,LLv=8,GLv=8,VLv=8,ebS=e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().optional(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(xLv).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e.number().min(gLv).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(yLv).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e.object({receivables:e.string().max(OLv).nullish(),payables:e.string().max(vLv).nullish(),advances_received:e.string().max(SLv).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(hLv).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(bLv).nullish(),sales_vat_95:e.string().max(zLv).nullish(),sales_vat_5:e.string().max(fLv).nullish(),purchase_vat_recoverable_22:e.string().max(BLv).nullish(),purchase_vat_recoverable_95:e.string().max(TLv).nullish(),purchase_vat_recoverable_5:e.string().max(ILv).nullish(),sales_revenue_22:e.string().max(ELv).nullish(),sales_revenue_95:e.string().max(DLv).nullish(),sales_revenue_5:e.string().max(RLv).nullish(),sales_revenue_exempt:e.string().max(_Lv).nullish(),sales_revenue_eu_goods:e.string().max(NLv).nullish(),sales_revenue_eu_services:e.string().max(MLv).nullish(),sales_revenue_reverse_charge:e.string().max(ULv).nullish(),sales_revenue_third_country_goods:e.string().max(PLv).nullish(),sales_revenue_third_country_services:e.string().max(CLv).nullish(),purchase_expense_22:e.string().max(wLv).nullish(),purchase_expense_95:e.string().max(ALv).nullish(),purchase_expense_5:e.string().max(FLv).nullish(),purchase_expense_exempt:e.string().max(kLv).nullish(),purchase_expense_eu_goods:e.string().max(jLv).nullish(),purchase_expense_eu_services:e.string().max(HLv).nullish(),purchase_expense_reverse_charge:e.string().max(LLv).nullish(),purchase_expense_third_country_goods:e.string().max(GLv).nullish(),purchase_expense_third_country_services:e.string().max(VLv).nullish()}).and(e.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e.enum(["stored","registry","unknown"]),inferred_business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e.object({yearly_normirani:e.boolean(),vod_xml:e.boolean(),vasco_xml:e.boolean(),minimax_xml:e.boolean()}),unsupported_reason:e.string().nullable()}),tbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KLv=2025,ZLv=2100,nbS=e.object({year:e.number().min(KLv).max(ZLv).describe("Tax year for the yearly Slovenia eDavki filing.")}),qLv=2025,WLv=2100,YLv=/^\d{2}\.\d{3}$/,$Lv=0,QLv=0,JLv=8,XLv=8,e1v=8,t1v=8,n1v=8,s1v=8,o1v=8,i1v=8,a1v=8,r1v=8,l1v=8,d1v=8,u1v=8,c1v=8,p1v=8,m1v=8,x1v=8,g1v=8,y1v=8,O1v=8,v1v=8,S1v=8,h1v=8,b1v=8,z1v=8,f1v=8,B1v=8,T1v=8,I1v=0,E1v=0,D1v=0,R1v=0,_1v=0,sbS=e.object({entity_id:e.string(),year:e.number().min(qLv).max(WLv).describe("Tax year for the yearly Slovenia eDavki filing."),filing_kind:e.enum(["regular_annual"]),profile:e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().optional(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(YLv).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e.number().min($Lv).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(QLv).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e.object({receivables:e.string().max(JLv).nullish(),payables:e.string().max(XLv).nullish(),advances_received:e.string().max(e1v).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(t1v).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(n1v).nullish(),sales_vat_95:e.string().max(s1v).nullish(),sales_vat_5:e.string().max(o1v).nullish(),purchase_vat_recoverable_22:e.string().max(i1v).nullish(),purchase_vat_recoverable_95:e.string().max(a1v).nullish(),purchase_vat_recoverable_5:e.string().max(r1v).nullish(),sales_revenue_22:e.string().max(l1v).nullish(),sales_revenue_95:e.string().max(d1v).nullish(),sales_revenue_5:e.string().max(u1v).nullish(),sales_revenue_exempt:e.string().max(c1v).nullish(),sales_revenue_eu_goods:e.string().max(p1v).nullish(),sales_revenue_eu_services:e.string().max(m1v).nullish(),sales_revenue_reverse_charge:e.string().max(x1v).nullish(),sales_revenue_third_country_goods:e.string().max(g1v).nullish(),sales_revenue_third_country_services:e.string().max(y1v).nullish(),purchase_expense_22:e.string().max(O1v).nullish(),purchase_expense_95:e.string().max(v1v).nullish(),purchase_expense_5:e.string().max(S1v).nullish(),purchase_expense_exempt:e.string().max(h1v).nullish(),purchase_expense_eu_goods:e.string().max(b1v).nullish(),purchase_expense_eu_services:e.string().max(z1v).nullish(),purchase_expense_reverse_charge:e.string().max(f1v).nullish(),purchase_expense_third_country_goods:e.string().max(B1v).nullish(),purchase_expense_third_country_services:e.string().max(T1v).nullish()}).and(e.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e.enum(["stored","registry","unknown"]),inferred_business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e.object({yearly_normirani:e.boolean(),vod_xml:e.boolean(),vasco_xml:e.boolean(),minimax_xml:e.boolean()}),unsupported_reason:e.string().nullable()}),auto_values:e.object({total_invoice_revenue:e.number(),total_credit_note_reduction:e.number(),computed_revenue:e.number(),adjusted_revenue:e.number(),normative_expense_rate:e.number(),normative_expenses:e.number(),tax_base:e.number(),income_tax_rate:e.number(),income_tax_amount:e.number(),advance_tax_amount:e.number(),monthly_installment_amount:e.number(),quarterly_installment_amount:e.number()}),manual_values:e.object({withholding_tax_amount:e.number().min(I1v).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(E1v).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(D1v).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(R1v).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(_1v).describe("Monetary amount in EUR.")}),derived_flags:e.object({has_foreign_customers:e.boolean(),has_foreign_tax_numbers:e.boolean(),has_non_eur_documents:e.boolean()}),warnings:e.array(e.object({code:e.string(),message:e.string(),severity:e.enum(["info","warning"])})),issue_details:e.array(e.object({code:e.string(),title:e.string(),summary:e.string(),explanation:e.string(),action:e.string().nullable(),severity:e.enum(["info","warning"]),official_sources:e.array(e.object({label:e.string(),url:e.url(),issuer:e.enum(["FURS","PISRS"])})),affected_documents:e.array(e.object({id:e.string(),type:e.enum(["invoice","credit_note"]),number:e.string(),date:e.string(),customer_name:e.string().nullable(),customer_country_code:e.string().nullable(),customer_tax_number:e.string().nullable(),currency_code:e.string(),total:e.number(),total_converted:e.number().nullable(),reason:e.string(),document_path:e.string()}))})),rule_summary:e.object({normative_expense_rule:e.string(),income_tax_rule:e.string(),advance_rule:e.string()})}),obS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),N1v=2025,M1v=2100,U1v=0,P1v=0,C1v=0,w1v=0,A1v=0,ibS=e.object({year:e.number().min(N1v).max(M1v).describe("Tax year for the yearly Slovenia eDavki filing."),manual_values:e.object({withholding_tax_amount:e.number().min(U1v).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(P1v).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(C1v).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(w1v).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(A1v).describe("Monetary amount in EUR.")})}),abS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),rbS=e.object({date_from:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),lbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dbS=e.object({date_from:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),ubS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),cbS=e.object({date_from:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),pbS=e.object({date_from:e.iso.date().describe("Inclusive lower bound of the issued or supplier document date, in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive upper bound of the issued or supplier document date, in YYYY-MM-DD format. The range cannot exceed one year.")}),mbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),F1v=/^\d{4}$/,k1v=/^(1[0-2]|[1-9])$/,j1v=/^[1-4]$/,xbS=e.object({year:e.string().regex(F1v).describe("Year for the VAT return period (e.g. 2026)."),month:e.string().regex(k1v).optional().describe("Month (1-12) for a monthly period. Cannot be used with quarter."),quarter:e.string().regex(j1v).optional().describe("Quarter (1-4) for a quarterly period. Cannot be used with month.")}),gbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ybS=e.object({period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),deadline:e.object({due_date:e.string().describe("DDV-O submission deadline (YYYY-MM-DD)."),kir_kpr_prefill_cutoff:e.string().describe("Date by which KIR/KPR must be submitted for FURS to compose a pre-filled DDV-O (documented-but-unverified 3-working-day rule).")}),rpo_required:e.boolean().optional().describe("True when the monthly period owes the recapitulative statement (RP-O), so the DDV-O deadline is the 20th of the next month. The deadline and cut-off use the same answer."),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string())}),ObS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),H1v=2e3,L1v=2100,G1v=12,V1v=4,vbS=e.object({year:e.number().min(H1v).max(L1v).describe("Year for the VAT return period."),month:e.number().min(1).max(G1v).nullish().describe("Month (1-12) for a monthly period. Cannot be used with quarter. Explicit null is treated as omitted."),quarter:e.number().min(1).max(V1v).nullish().describe("Quarter (1-4) for a quarterly period. Cannot be used with month. Explicit null is treated as omitted.")}),K1v=10,Z1v=100,SbS=e.object({limit:e.number().min(1).max(Z1v).default(K1v).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),hbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),bbS=e.object({data:e.array(e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})})),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),q1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,zbS=e.object({id:e.stringFormat("resource-id",q1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),fbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),BbS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),W1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,TbS=e.object({id:e.stringFormat("resource-id",W1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),IbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),EbS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),Y1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,DbS=e.object({id:e.stringFormat("resource-id",Y1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),RbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_bS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),$1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,NbS=e.object({id:e.stringFormat("resource-id",$1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),MbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Q1v=2e3,UbS=e.object({submitted_at:e.iso.datetime({}).nullish().describe("When the return was submitted to eDavki. Defaults to now when omitted. Must not be in the future (5 minutes of clock skew are tolerated) and must not be before the approval time; otherwise the request is rejected with 422."),notes:e.string().max(Q1v).nullish().describe("Free-text notes recorded alongside the submission.")}),PbS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),J1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,CbS=e.object({id:e.stringFormat("resource-id",J1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),wbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),AbS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),X1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,FbS=e.object({id:e.stringFormat("resource-id",X1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),kbS=e.object({format:e.enum(["ddv_o_xml"]).describe("Export format for a VAT return filing.")}),jbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),e4v=/^\d{4}-\d{2}-\d{2}$/,t4v=/^\d{4}-\d{2}-\d{2}$/,HbS=e.object({from:e.string().regex(e4v).describe("Range start (inclusive), YYYY-MM-DD."),to:e.string().regex(t4v).describe("Range end (inclusive), YYYY-MM-DD."),status:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status).").and(e.unknown().describe("Filter by computed state.")).optional().describe("Filter by computed state.")}),LbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),GbS=e.object({data:e.array(e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})})),summary:e.object({overdue:e.number(),due_this_week:e.number(),upcoming:e.number()})}),n4v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,VbS=e.object({id:e.stringFormat("resource-id",n4v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),KbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),s4v=2e3,ZbS=e.object({note:e.string().max(s4v).nullish().describe("Optional note recorded alongside completion.")}),qbS=e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),o4v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,WbS=e.object({id:e.stringFormat("resource-id",o4v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),YbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$bS=e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),i4v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,QbS=e.object({id:e.stringFormat("resource-id",i4v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),JbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),a4v=2e3,XbS=e.object({reason:e.string().max(a4v).nullish().describe("Optional reason this obligation does not apply.")}),ezS=e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),r4v=/^\d{4}-\d{2}-\d{2}$/,l4v=/^\d{4}-\d{2}-\d{2}$/,d4v="live",tzS=e.object({from:e.string().regex(r4v).describe("Range start (inclusive), YYYY-MM-DD."),to:e.string().regex(l4v).describe("Range end (inclusive), YYYY-MM-DD."),entity_id:e.string().optional().describe("Filter to a single entity id."),environment:e.union([e.literal("live"),e.literal("sandbox"),e.literal(null)]).nullish().default(d4v).describe('Environment to scope entities to. Defaults to "live".')}),u4v=/^acc_[0-9a-fA-F]{24}$/,nzS=e.object({"x-account-id":e.string().regex(u4v).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),szS=e.object({data:e.array(e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).and(e.object({entity_name:e.string()})))});var Et={};W(Et,{CreateTaxBody:()=>izS,CreateTaxHeader:()=>ozS,DeleteTaxHeader:()=>vzS,DeleteTaxParams:()=>OzS,GetTaxesHeader:()=>rzS,GetTaxesQueryParams:()=>azS,GetTaxesResponse:()=>lzS,PermanentDeleteTaxHeader:()=>fzS,PermanentDeleteTaxParams:()=>zzS,ReplaceTaxBody:()=>gzS,ReplaceTaxHeader:()=>xzS,ReplaceTaxParams:()=>mzS,ReplaceTaxResponse:()=>yzS,RestoreTaxHeader:()=>hzS,RestoreTaxParams:()=>SzS,RestoreTaxResponse:()=>bzS,UpdateTaxBody:()=>czS,UpdateTaxHeader:()=>uzS,UpdateTaxParams:()=>dzS,UpdateTaxResponse:()=>pzS,createTaxBodyDestinationVatCountryCodeMax:()=>g4v,createTaxBodyDestinationVatCountryCodeMin:()=>x4v,createTaxBodyNameMax:()=>c4v,createTaxBodyPtExemptionReasonMax:()=>y4v,createTaxBodyTaxRatesItemRateMax:()=>m4v,createTaxBodyTaxRatesItemRateMin:()=>p4v,deleteTaxPathIdRegExp:()=>$4v,getTaxesQueryLimitDefault:()=>O4v,getTaxesQueryLimitMax:()=>v4v,getTaxesResponseDataItemOneDestinationVatCountryCodeMax:()=>B4v,getTaxesResponseDataItemOneDestinationVatCountryCodeMin:()=>f4v,getTaxesResponseDataItemOneEntityIdMax:()=>T4v,getTaxesResponseDataItemOneIdMax:()=>S4v,getTaxesResponseDataItemOneNameMax:()=>h4v,getTaxesResponseDataItemOneTaxRatesItemRateMax:()=>z4v,getTaxesResponseDataItemOneTaxRatesItemRateMin:()=>b4v,permanentDeleteTaxPathIdRegExp:()=>iGv,replaceTaxBodyDestinationVatCountryCodeMax:()=>H4v,replaceTaxBodyDestinationVatCountryCodeMin:()=>j4v,replaceTaxBodyNameMax:()=>A4v,replaceTaxBodyPtExemptionReasonMax:()=>L4v,replaceTaxBodyTaxRatesItemRateMax:()=>k4v,replaceTaxBodyTaxRatesItemRateMin:()=>F4v,replaceTaxPathIdRegExp:()=>w4v,replaceTaxResponseOneDestinationVatCountryCodeMax:()=>W4v,replaceTaxResponseOneDestinationVatCountryCodeMin:()=>q4v,replaceTaxResponseOneEntityIdMax:()=>Y4v,replaceTaxResponseOneIdMax:()=>G4v,replaceTaxResponseOneNameMax:()=>V4v,replaceTaxResponseOneTaxRatesItemRateMax:()=>Z4v,replaceTaxResponseOneTaxRatesItemRateMin:()=>K4v,restoreTaxPathIdRegExp:()=>Q4v,restoreTaxResponseOneDestinationVatCountryCodeMax:()=>sGv,restoreTaxResponseOneDestinationVatCountryCodeMin:()=>nGv,restoreTaxResponseOneEntityIdMax:()=>oGv,restoreTaxResponseOneIdMax:()=>J4v,restoreTaxResponseOneNameMax:()=>X4v,restoreTaxResponseOneTaxRatesItemRateMax:()=>tGv,restoreTaxResponseOneTaxRatesItemRateMin:()=>eGv,updateTaxBodyTaxRatesItemRateMax:()=>D4v,updateTaxBodyTaxRatesItemRateMin:()=>E4v,updateTaxPathIdRegExp:()=>I4v,updateTaxResponseOneDestinationVatCountryCodeMax:()=>P4v,updateTaxResponseOneDestinationVatCountryCodeMin:()=>U4v,updateTaxResponseOneEntityIdMax:()=>C4v,updateTaxResponseOneIdMax:()=>R4v,updateTaxResponseOneNameMax:()=>_4v,updateTaxResponseOneTaxRatesItemRateMax:()=>M4v,updateTaxResponseOneTaxRatesItemRateMin:()=>N4v});var ozS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),c4v=100,p4v=0,m4v=100,x4v=2,g4v=2,y4v=60,izS=e.object({name:e.string().max(c4v).optional(),tax_rates:e.array(e.object({rate:e.number().min(p4v).max(m4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(x4v).max(g4v).nullish().describe("Optional EU destination country for an OSS-specific saved tax. The issuer must support EU OSS and the destination must differ from the issuer country. Set to null or omit for a local/unclassified tax."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(y4v).nullish().describe("Optional Portugal legal wording override, at most 60 characters. Omit for the standard wording of pt_exemption_code. M19 has no default: a specific legal reason must be supplied on this tax or its document line before issuance. Supplied wording is preserved."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),O4v=10,v4v=100,azS=e.object({limit:e.number().min(1).max(v4v).default(O4v).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e.union([e.enum(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]),e.array(e.enum(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, is_default, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e.string().optional().describe(`Full-text search query to filter results across multiple fields.
|
|
231
231
|
Searches are case-insensitive and match partial strings.
|
|
232
|
-
Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),rzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),S4v=36,h4v=100,b4v=0,z4v=100,f4v=2,B4v=2,T4v=36,lzS=e.object({data:e.array(e.object({id:e.string().max(S4v),name:e.string().max(h4v),tax_rates:e.array(e.object({rate:e.number().min(b4v).max(z4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(f4v).max(B4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(T4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),I4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,dzS=e.object({id:e.stringFormat("resource-id",I4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),uzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),E4v=0,D4v=100,czS=e.object({tax_rates:e.array(e.object({rate:e.number().min(E4v).max(D4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),R4v=36,_4v=100,N4v=0,M4v=100,U4v=2,P4v=2,C4v=36,pzS=e.object({id:e.string().max(R4v),name:e.string().max(_4v),tax_rates:e.array(e.object({rate:e.number().min(N4v).max(M4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(U4v).max(P4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(C4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),w4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,mzS=e.object({id:e.stringFormat("resource-id",w4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),A4v=100,F4v=0,k4v=100,j4v=2,H4v=2,L4v=60,gzS=e.object({name:e.string().max(A4v).optional(),tax_rates:e.array(e.object({rate:e.number().min(F4v).max(k4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(j4v).max(H4v).nullish().describe("Optional EU destination country for an OSS-specific saved tax. The issuer must support EU OSS and the destination must differ from the issuer country. Set to null or omit for a local/unclassified tax."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(L4v).nullish().describe("Optional Portugal legal wording override, at most 60 characters. Omit for the standard wording of pt_exemption_code. M19 has no default: a specific legal reason must be supplied on this tax or its document line before issuance. Supplied wording is preserved."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),G4v=36,V4v=100,K4v=0,Z4v=100,q4v=2,W4v=2,Y4v=36,yzS=e.object({id:e.string().max(G4v),name:e.string().max(V4v),tax_rates:e.array(e.object({rate:e.number().min(K4v).max(Z4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(q4v).max(W4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(Y4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),$4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,OzS=e.object({id:e.stringFormat("resource-id",$4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),vzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Q4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,SzS=e.object({id:e.stringFormat("resource-id",Q4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J4v=36,X4v=100,eGv=0,tGv=100,nGv=2,sGv=2,oGv=36,bzS=e.object({id:e.string().max(J4v),name:e.string().max(X4v),tax_rates:e.array(e.object({rate:e.number().min(eGv).max(tGv),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(nGv).max(sGv).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(oGv),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),iGv=/^[a-z]{3,4}_[0-9a-f]{24}$/,zzS=e.object({id:e.stringFormat("resource-id",iGv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),fzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Dt={};W(Dt,{DownloadTicketBaiRecordXmlHeader:()=>wzS,DownloadTicketBaiRecordXmlParams:()=>CzS,GetTicketBaiRecordHeader:()=>UzS,GetTicketBaiRecordParams:()=>MzS,GetTicketBaiRecordResponse:()=>PzS,GetTicketBaiSettingsHeader:()=>BzS,GetTicketBaiSettingsResponse:()=>TzS,ReconcileTicketBaiRecordHeader:()=>HzS,ReconcileTicketBaiRecordParams:()=>jzS,ReconcileTicketBaiRecordResponse:()=>LzS,RetryTicketBaiRecordHeader:()=>FzS,RetryTicketBaiRecordParams:()=>AzS,RetryTicketBaiRecordResponse:()=>kzS,UpdateTicketBaiSettingsBody:()=>EzS,UpdateTicketBaiSettingsHeader:()=>IzS,UpdateTicketBaiSettingsResponse:()=>DzS,UploadTicketBaiCertificateBody:()=>_zS,UploadTicketBaiCertificateHeader:()=>RzS,UploadTicketBaiCertificateResponse:()=>NzS,downloadTicketBaiRecordXmlPathIdMax:()=>yGv,getTicketBaiRecordPathIdMax:()=>gGv,getTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>aGv,getTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>rGv,getTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>lGv,reconcileTicketBaiRecordPathIdMax:()=>vGv,retryTicketBaiRecordPathIdMax:()=>OGv,updateTicketBaiSettingsBodyLroeIndividualOneGivenNameMax:()=>dGv,updateTicketBaiSettingsBodyLroeIndividualOneSurname1Max:()=>uGv,updateTicketBaiSettingsBodyLroeIndividualOneSurname2Max:()=>cGv,updateTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>pGv,updateTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>mGv,updateTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>xGv});var BzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aGv=120,rGv=120,lGv=120,TzS=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(aGv),surname1:e.string().min(1).max(rGv),surname2:e.string().min(1).max(lGv)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),IzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dGv=120,uGv=120,cGv=120,EzS=e.object({enabled:e.boolean().nullish(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullish(),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullish().describe("Bizkaia taxpayer ledger model: 140 for individuals, 240 for companies. Explicit null clears an unused model."),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(dGv),surname1:e.string().min(1).max(uGv),surname2:e.string().min(1).max(cGv)}),e.null()]).optional().describe("Explicit given name and surnames for Bizkaia model 140. Never derived by splitting the entity name. Null clears this setting."),authorization_confirmed:e.boolean().nullish().describe("Confirm that the taxpayer has authorized use of this certificate for signing and submission, including any required representative or device registration.")}),pGv=120,mGv=120,xGv=120,DzS=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(pGv),surname1:e.string().min(1).max(mGv),surname2:e.string().min(1).max(xGv)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),RzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_zS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File"),passphrase:e.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),NzS=e.object({certificate_expiry:e.string()}),gGv=36,MzS=e.object({id:e.string().min(1).max(gGv)}),UzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),PzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),yGv=36,CzS=e.object({id:e.string().min(1).max(yGv)}),wzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),OGv=36,AzS=e.object({id:e.string().min(1).max(OGv)}),FzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),kzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),vGv=36,jzS=e.object({id:e.string().min(1).max(vGv)}),HzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),LzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")});var Rt={};W(Rt,{CheckTransactionTypeBody:()=>VzS,CheckTransactionTypeHeader:()=>GzS,CheckTransactionTypeResponse:()=>KzS,checkTransactionTypeBodyCustomerCountryCodeMax:()=>fGv,checkTransactionTypeBodyCustomerCountryCodeMin:()=>zGv,checkTransactionTypeBodyIssuerCountryCodeMax:()=>hGv,checkTransactionTypeBodyIssuerCountryCodeMin:()=>SGv,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>bGv,checkTransactionTypeResponseCustomerCountryCodeMax:()=>EGv,checkTransactionTypeResponseCustomerCountryCodeMin:()=>IGv,checkTransactionTypeResponseIssuerCountryCodeMax:()=>TGv,checkTransactionTypeResponseIssuerCountryCodeMin:()=>BGv,checkTransactionTypeResponseVatIdCountryCodeMax:()=>RGv,checkTransactionTypeResponseVatIdCountryCodeMin:()=>DGv});var GzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Optional entity whose tax rules apply to the check: when its tax_rules.eu.vies_validate_vat (or tax_rules.uk.validate_vat_number for a UK entity) is false, no VIES request or UK VAT number check is made. No default entity is selected when omitted.")}),SGv=2,hGv=2,bGv=true,zGv=2,fGv=2,VzS=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(SGv).max(hGv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(bGv).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(zGv).max(fGv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),BGv=2,TGv=2,IGv=2,EGv=2,DGv=2,RGv=2,KzS=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(BGv).max(TGv).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(IGv).max(EGv).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(DGv).max(RGv).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code. Informational: it never changes transaction_type, which follows the address."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var _t={};W(_t,{ApproveTravelOrderHeader:()=>yfS,ApproveTravelOrderParams:()=>gfS,ApproveTravelOrderResponse:()=>OfS,CalculateTravelOrderRouteDistanceBody:()=>ofS,CalculateTravelOrderRouteDistanceHeader:()=>sfS,CalculateTravelOrderRouteDistanceResponse:()=>ifS,CancelTravelOrderHeader:()=>IfS,CancelTravelOrderParams:()=>TfS,CancelTravelOrderResponse:()=>EfS,CreateTravelOrderBody:()=>$zS,CreateTravelOrderHeader:()=>YzS,DeleteTravelOrderHeader:()=>xfS,DeleteTravelOrderParams:()=>mfS,GetTravelOrderByIdHeader:()=>rfS,GetTravelOrderByIdParams:()=>afS,GetTravelOrderByIdResponse:()=>lfS,GetTravelOrdersHeader:()=>qzS,GetTravelOrdersQueryParams:()=>ZzS,GetTravelOrdersResponse:()=>WzS,PreviewTravelOrderBody:()=>JzS,PreviewTravelOrderHeader:()=>QzS,PreviewTravelOrderResponse:()=>XzS,RenderTravelOrderHtmlHeader:()=>UfS,RenderTravelOrderHtmlParams:()=>NfS,RenderTravelOrderHtmlQueryParams:()=>MfS,RenderTravelOrderPdfHeader:()=>_fS,RenderTravelOrderPdfParams:()=>DfS,RenderTravelOrderPdfQueryParams:()=>RfS,RenderTravelOrderPreviewBody:()=>nfS,RenderTravelOrderPreviewHeader:()=>tfS,RenderTravelOrderPreviewQueryParams:()=>efS,ReopenTravelOrderBody:()=>ffS,ReopenTravelOrderHeader:()=>zfS,ReopenTravelOrderParams:()=>bfS,ReopenTravelOrderResponse:()=>BfS,SettleTravelOrderHeader:()=>SfS,SettleTravelOrderParams:()=>vfS,SettleTravelOrderResponse:()=>hfS,UpdateTravelOrderBody:()=>cfS,UpdateTravelOrderHeader:()=>ufS,UpdateTravelOrderParams:()=>dfS,UpdateTravelOrderResponse:()=>pfS,approveTravelOrderPathIdRegExp:()=>CVv,approveTravelOrderResponseCostsItemAmountExclusiveMin:()=>AVv,approveTravelOrderResponseCostsItemAmountMax:()=>FVv,approveTravelOrderResponseCostsItemDateRegExp:()=>kVv,approveTravelOrderResponseCostsItemDescriptionMax:()=>wVv,calculateTravelOrderRouteDistanceBodyFromMax:()=>X3v,calculateTravelOrderRouteDistanceBodyFromMin:()=>J3v,calculateTravelOrderRouteDistanceBodyToMax:()=>tVv,calculateTravelOrderRouteDistanceBodyToMin:()=>eVv,cancelTravelOrderPathIdRegExp:()=>JVv,cancelTravelOrderResponseCostsItemAmountExclusiveMin:()=>eKv,cancelTravelOrderResponseCostsItemAmountMax:()=>tKv,cancelTravelOrderResponseCostsItemDateRegExp:()=>nKv,cancelTravelOrderResponseCostsItemDescriptionMax:()=>XVv,createTravelOrderBodyAdvanceAmountMax:()=>QGv,createTravelOrderBodyAdvanceAmountMin:()=>$Gv,createTravelOrderBodyBreakfastsProvidedMax:()=>qGv,createTravelOrderBodyBreakfastsProvidedMin:()=>ZGv,createTravelOrderBodyCostsItemAmountExclusiveMin:()=>XGv,createTravelOrderBodyCostsItemAmountMax:()=>e3v,createTravelOrderBodyCostsItemDateRegExp:()=>t3v,createTravelOrderBodyCostsItemDescriptionMax:()=>JGv,createTravelOrderBodyCostsMax:()=>n3v,createTravelOrderBodyDateRegExp:()=>FGv,createTravelOrderBodyDestinationCountryCodeRegExp:()=>LGv,createTravelOrderBodyDestinationMax:()=>HGv,createTravelOrderBodyDistanceKmMax:()=>KGv,createTravelOrderBodyDistanceKmMin:()=>VGv,createTravelOrderBodyForeignDailyRateExclusiveMin:()=>WGv,createTravelOrderBodyForeignDailyRateMax:()=>YGv,createTravelOrderBodyNoteMax:()=>s3v,createTravelOrderBodyOriginMax:()=>jGv,createTravelOrderBodyPurposeMax:()=>kGv,createTravelOrderBodyTravelerNameMax:()=>wGv,createTravelOrderBodyTravelerPositionMax:()=>AGv,createTravelOrderBodyVehicleRegistrationMax:()=>GGv,deleteTravelOrderPathIdRegExp:()=>PVv,getTravelOrderByIdPathIdRegExp:()=>nVv,getTravelOrderByIdResponseCostsItemAmountExclusiveMin:()=>oVv,getTravelOrderByIdResponseCostsItemAmountMax:()=>iVv,getTravelOrderByIdResponseCostsItemDateRegExp:()=>aVv,getTravelOrderByIdResponseCostsItemDescriptionMax:()=>sVv,getTravelOrdersQueryLimitDefault:()=>_Gv,getTravelOrdersQueryLimitMax:()=>NGv,getTravelOrdersResponseDataItemCostsItemAmountExclusiveMin:()=>UGv,getTravelOrdersResponseDataItemCostsItemAmountMax:()=>PGv,getTravelOrdersResponseDataItemCostsItemDateRegExp:()=>CGv,getTravelOrdersResponseDataItemCostsItemDescriptionMax:()=>MGv,previewTravelOrderBodyAdvanceAmountMax:()=>S3v,previewTravelOrderBodyAdvanceAmountMin:()=>v3v,previewTravelOrderBodyBreakfastsProvidedMax:()=>g3v,previewTravelOrderBodyBreakfastsProvidedMin:()=>x3v,previewTravelOrderBodyCostsItemAmountExclusiveMin:()=>b3v,previewTravelOrderBodyCostsItemAmountMax:()=>z3v,previewTravelOrderBodyCostsItemDateRegExp:()=>f3v,previewTravelOrderBodyCostsItemDescriptionMax:()=>h3v,previewTravelOrderBodyCostsMax:()=>B3v,previewTravelOrderBodyDateRegExp:()=>a3v,previewTravelOrderBodyDestinationCountryCodeRegExp:()=>u3v,previewTravelOrderBodyDestinationMax:()=>d3v,previewTravelOrderBodyDistanceKmMax:()=>m3v,previewTravelOrderBodyDistanceKmMin:()=>p3v,previewTravelOrderBodyForeignDailyRateExclusiveMin:()=>y3v,previewTravelOrderBodyForeignDailyRateMax:()=>O3v,previewTravelOrderBodyNoteMax:()=>T3v,previewTravelOrderBodyOriginMax:()=>l3v,previewTravelOrderBodyPurposeMax:()=>r3v,previewTravelOrderBodyTravelerNameMax:()=>o3v,previewTravelOrderBodyTravelerPositionMax:()=>i3v,previewTravelOrderBodyVehicleRegistrationMax:()=>c3v,renderTravelOrderHtmlPathIdRegExp:()=>lKv,renderTravelOrderHtmlQueryLanguageMax:()=>pKv,renderTravelOrderHtmlQueryLanguageMin:()=>cKv,renderTravelOrderHtmlQueryLocaleMax:()=>uKv,renderTravelOrderHtmlQueryLocaleMin:()=>dKv,renderTravelOrderPdfPathIdRegExp:()=>sKv,renderTravelOrderPdfQueryLanguageMax:()=>rKv,renderTravelOrderPdfQueryLanguageMin:()=>aKv,renderTravelOrderPdfQueryLocaleMax:()=>iKv,renderTravelOrderPdfQueryLocaleMin:()=>oKv,renderTravelOrderPreviewBodyAdvanceAmountMax:()=>K3v,renderTravelOrderPreviewBodyAdvanceAmountMin:()=>V3v,renderTravelOrderPreviewBodyBreakfastsProvidedMax:()=>H3v,renderTravelOrderPreviewBodyBreakfastsProvidedMin:()=>j3v,renderTravelOrderPreviewBodyCostsItemAmountExclusiveMin:()=>q3v,renderTravelOrderPreviewBodyCostsItemAmountMax:()=>W3v,renderTravelOrderPreviewBodyCostsItemDateRegExp:()=>Y3v,renderTravelOrderPreviewBodyCostsItemDescriptionMax:()=>Z3v,renderTravelOrderPreviewBodyCostsMax:()=>$3v,renderTravelOrderPreviewBodyDateRegExp:()=>M3v,renderTravelOrderPreviewBodyDestinationCountryCodeRegExp:()=>w3v,renderTravelOrderPreviewBodyDestinationMax:()=>C3v,renderTravelOrderPreviewBodyDistanceKmMax:()=>k3v,renderTravelOrderPreviewBodyDistanceKmMin:()=>F3v,renderTravelOrderPreviewBodyForeignDailyRateExclusiveMin:()=>L3v,renderTravelOrderPreviewBodyForeignDailyRateMax:()=>G3v,renderTravelOrderPreviewBodyNoteMax:()=>Q3v,renderTravelOrderPreviewBodyOriginMax:()=>P3v,renderTravelOrderPreviewBodyPurposeMax:()=>U3v,renderTravelOrderPreviewBodyTravelerNameMax:()=>_3v,renderTravelOrderPreviewBodyTravelerPositionMax:()=>N3v,renderTravelOrderPreviewBodyVehicleRegistrationMax:()=>A3v,renderTravelOrderPreviewQueryLanguageMax:()=>R3v,renderTravelOrderPreviewQueryLanguageMin:()=>D3v,renderTravelOrderPreviewQueryLocaleMax:()=>E3v,renderTravelOrderPreviewQueryLocaleMin:()=>I3v,reopenTravelOrderBodyReasonMax:()=>qVv,reopenTravelOrderBodyReasonMin:()=>ZVv,reopenTravelOrderPathIdRegExp:()=>KVv,reopenTravelOrderResponseCostsItemAmountExclusiveMin:()=>YVv,reopenTravelOrderResponseCostsItemAmountMax:()=>$Vv,reopenTravelOrderResponseCostsItemDateRegExp:()=>QVv,reopenTravelOrderResponseCostsItemDescriptionMax:()=>WVv,settleTravelOrderPathIdRegExp:()=>jVv,settleTravelOrderResponseCostsItemAmountExclusiveMin:()=>LVv,settleTravelOrderResponseCostsItemAmountMax:()=>GVv,settleTravelOrderResponseCostsItemDateRegExp:()=>VVv,settleTravelOrderResponseCostsItemDescriptionMax:()=>HVv,updateTravelOrderBodyAdvanceAmountMax:()=>fVv,updateTravelOrderBodyAdvanceAmountMin:()=>zVv,updateTravelOrderBodyBreakfastsProvidedMax:()=>SVv,updateTravelOrderBodyBreakfastsProvidedMin:()=>vVv,updateTravelOrderBodyCostsItemAmountExclusiveMin:()=>TVv,updateTravelOrderBodyCostsItemAmountMax:()=>IVv,updateTravelOrderBodyCostsItemDateRegExp:()=>EVv,updateTravelOrderBodyCostsItemDescriptionMax:()=>BVv,updateTravelOrderBodyCostsMax:()=>DVv,updateTravelOrderBodyDateRegExp:()=>uVv,updateTravelOrderBodyDestinationCountryCodeRegExp:()=>xVv,updateTravelOrderBodyDestinationMax:()=>mVv,updateTravelOrderBodyDistanceKmMax:()=>OVv,updateTravelOrderBodyDistanceKmMin:()=>yVv,updateTravelOrderBodyForeignDailyRateExclusiveMin:()=>hVv,updateTravelOrderBodyForeignDailyRateMax:()=>bVv,updateTravelOrderBodyNoteMax:()=>RVv,updateTravelOrderBodyOriginMax:()=>pVv,updateTravelOrderBodyPurposeMax:()=>cVv,updateTravelOrderBodyTravelerNameMax:()=>lVv,updateTravelOrderBodyTravelerPositionMax:()=>dVv,updateTravelOrderBodyVehicleRegistrationMax:()=>gVv,updateTravelOrderPathIdRegExp:()=>rVv,updateTravelOrderResponseCostsItemAmountExclusiveMin:()=>NVv,updateTravelOrderResponseCostsItemAmountMax:()=>MVv,updateTravelOrderResponseCostsItemDateRegExp:()=>UVv,updateTravelOrderResponseCostsItemDescriptionMax:()=>_Vv});var _Gv=10,NGv=100,ZzS=e.object({limit:e.number().min(1).max(NGv).default(_Gv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen.").and(e.unknown().describe("Filter by lifecycle status.")).optional().describe("Filter by lifecycle status."),search:e.string().optional().describe(`Full-text search query to filter results.
|
|
232
|
+
Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),rzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),S4v=36,h4v=100,b4v=0,z4v=100,f4v=2,B4v=2,T4v=36,lzS=e.object({data:e.array(e.object({id:e.string().max(S4v),name:e.string().max(h4v),tax_rates:e.array(e.object({rate:e.number().min(b4v).max(z4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(f4v).max(B4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(T4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),I4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,dzS=e.object({id:e.stringFormat("resource-id",I4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),uzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),E4v=0,D4v=100,czS=e.object({tax_rates:e.array(e.object({rate:e.number().min(E4v).max(D4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),R4v=36,_4v=100,N4v=0,M4v=100,U4v=2,P4v=2,C4v=36,pzS=e.object({id:e.string().max(R4v),name:e.string().max(_4v),tax_rates:e.array(e.object({rate:e.number().min(N4v).max(M4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(U4v).max(P4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(C4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),w4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,mzS=e.object({id:e.stringFormat("resource-id",w4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),A4v=100,F4v=0,k4v=100,j4v=2,H4v=2,L4v=60,gzS=e.object({name:e.string().max(A4v).optional(),tax_rates:e.array(e.object({rate:e.number().min(F4v).max(k4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(j4v).max(H4v).nullish().describe("Optional EU destination country for an OSS-specific saved tax. The issuer must support EU OSS and the destination must differ from the issuer country. Set to null or omit for a local/unclassified tax."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(L4v).nullish().describe("Optional Portugal legal wording override, at most 60 characters. Omit for the standard wording of pt_exemption_code. M19 has no default: a specific legal reason must be supplied on this tax or its document line before issuance. Supplied wording is preserved."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),G4v=36,V4v=100,K4v=0,Z4v=100,q4v=2,W4v=2,Y4v=36,yzS=e.object({id:e.string().max(G4v),name:e.string().max(V4v),tax_rates:e.array(e.object({rate:e.number().min(K4v).max(Z4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(q4v).max(W4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(Y4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),$4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,OzS=e.object({id:e.stringFormat("resource-id",$4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),vzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Q4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,SzS=e.object({id:e.stringFormat("resource-id",Q4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J4v=36,X4v=100,eGv=0,tGv=100,nGv=2,sGv=2,oGv=36,bzS=e.object({id:e.string().max(J4v),name:e.string().max(X4v),tax_rates:e.array(e.object({rate:e.number().min(eGv).max(tGv),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(nGv).max(sGv).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(oGv),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),iGv=/^[a-z]{3,4}_[0-9a-f]{24}$/,zzS=e.object({id:e.stringFormat("resource-id",iGv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),fzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Dt={};W(Dt,{DownloadTicketBaiRecordXmlHeader:()=>wzS,DownloadTicketBaiRecordXmlParams:()=>CzS,GetTicketBaiRecordHeader:()=>UzS,GetTicketBaiRecordParams:()=>MzS,GetTicketBaiRecordResponse:()=>PzS,GetTicketBaiSettingsHeader:()=>BzS,GetTicketBaiSettingsResponse:()=>TzS,ReconcileTicketBaiRecordHeader:()=>HzS,ReconcileTicketBaiRecordParams:()=>jzS,ReconcileTicketBaiRecordResponse:()=>LzS,RetryTicketBaiRecordHeader:()=>FzS,RetryTicketBaiRecordParams:()=>AzS,RetryTicketBaiRecordResponse:()=>kzS,UpdateTicketBaiSettingsBody:()=>EzS,UpdateTicketBaiSettingsHeader:()=>IzS,UpdateTicketBaiSettingsResponse:()=>DzS,UploadTicketBaiCertificateBody:()=>_zS,UploadTicketBaiCertificateHeader:()=>RzS,UploadTicketBaiCertificateResponse:()=>NzS,downloadTicketBaiRecordXmlPathIdMax:()=>yGv,getTicketBaiRecordPathIdMax:()=>gGv,getTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>aGv,getTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>rGv,getTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>lGv,reconcileTicketBaiRecordPathIdMax:()=>vGv,retryTicketBaiRecordPathIdMax:()=>OGv,updateTicketBaiSettingsBodyLroeIndividualOneGivenNameMax:()=>dGv,updateTicketBaiSettingsBodyLroeIndividualOneSurname1Max:()=>uGv,updateTicketBaiSettingsBodyLroeIndividualOneSurname2Max:()=>cGv,updateTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>pGv,updateTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>mGv,updateTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>xGv});var BzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aGv=120,rGv=120,lGv=120,TzS=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(aGv),surname1:e.string().min(1).max(rGv),surname2:e.string().min(1).max(lGv)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),IzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dGv=120,uGv=120,cGv=120,EzS=e.object({enabled:e.boolean().nullish(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullish(),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullish().describe("Bizkaia taxpayer ledger model: 140 for individuals, 240 for companies. Explicit null clears an unused model."),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(dGv),surname1:e.string().min(1).max(uGv),surname2:e.string().min(1).max(cGv)}),e.null()]).optional().describe("Explicit given name and surnames for Bizkaia model 140. Never derived by splitting the entity name. Null clears this setting."),authorization_confirmed:e.boolean().nullish().describe("Confirm that the taxpayer has authorized use of this certificate for signing and submission, including any required representative or device registration.")}),pGv=120,mGv=120,xGv=120,DzS=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(pGv),surname1:e.string().min(1).max(mGv),surname2:e.string().min(1).max(xGv)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),RzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_zS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File"),passphrase:e.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),NzS=e.object({certificate_expiry:e.string()}),gGv=36,MzS=e.object({id:e.string().min(1).max(gGv)}),UzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),PzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),yGv=36,CzS=e.object({id:e.string().min(1).max(yGv)}),wzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),OGv=36,AzS=e.object({id:e.string().min(1).max(OGv)}),FzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),kzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),vGv=36,jzS=e.object({id:e.string().min(1).max(vGv)}),HzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),LzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")});var Rt={};W(Rt,{CheckTransactionTypeBody:()=>VzS,CheckTransactionTypeHeader:()=>GzS,CheckTransactionTypeResponse:()=>KzS,checkTransactionTypeBodyCustomerCountryCodeMax:()=>fGv,checkTransactionTypeBodyCustomerCountryCodeMin:()=>zGv,checkTransactionTypeBodyIssuerCountryCodeMax:()=>hGv,checkTransactionTypeBodyIssuerCountryCodeMin:()=>SGv,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>bGv,checkTransactionTypeResponseCustomerCountryCodeMax:()=>EGv,checkTransactionTypeResponseCustomerCountryCodeMin:()=>IGv,checkTransactionTypeResponseIssuerCountryCodeMax:()=>TGv,checkTransactionTypeResponseIssuerCountryCodeMin:()=>BGv,checkTransactionTypeResponseVatIdCountryCodeMax:()=>RGv,checkTransactionTypeResponseVatIdCountryCodeMin:()=>DGv});var GzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Optional entity whose tax rules apply to the check: when its tax_rules.eu.vies_validate_vat (or tax_rules.uk.validate_vat_number for a UK entity) is false, no VIES request or UK VAT number check is made. No default entity is selected when omitted.")}),SGv=2,hGv=2,bGv=true,zGv=2,fGv=2,VzS=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(SGv).max(hGv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(bGv).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(zGv).max(fGv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),BGv=2,TGv=2,IGv=2,EGv=2,DGv=2,RGv=2,KzS=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(BGv).max(TGv).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(IGv).max(EGv).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(DGv).max(RGv).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code and the issuer is in the EU. transaction_type is determined for this country instead of customer_country_code. Not returned when VIES rejects the VAT number: the address then decides."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var _t={};W(_t,{ApproveTravelOrderHeader:()=>yfS,ApproveTravelOrderParams:()=>gfS,ApproveTravelOrderResponse:()=>OfS,CalculateTravelOrderRouteDistanceBody:()=>ofS,CalculateTravelOrderRouteDistanceHeader:()=>sfS,CalculateTravelOrderRouteDistanceResponse:()=>ifS,CancelTravelOrderHeader:()=>IfS,CancelTravelOrderParams:()=>TfS,CancelTravelOrderResponse:()=>EfS,CreateTravelOrderBody:()=>$zS,CreateTravelOrderHeader:()=>YzS,DeleteTravelOrderHeader:()=>xfS,DeleteTravelOrderParams:()=>mfS,GetTravelOrderByIdHeader:()=>rfS,GetTravelOrderByIdParams:()=>afS,GetTravelOrderByIdResponse:()=>lfS,GetTravelOrdersHeader:()=>qzS,GetTravelOrdersQueryParams:()=>ZzS,GetTravelOrdersResponse:()=>WzS,PreviewTravelOrderBody:()=>JzS,PreviewTravelOrderHeader:()=>QzS,PreviewTravelOrderResponse:()=>XzS,RenderTravelOrderHtmlHeader:()=>UfS,RenderTravelOrderHtmlParams:()=>NfS,RenderTravelOrderHtmlQueryParams:()=>MfS,RenderTravelOrderPdfHeader:()=>_fS,RenderTravelOrderPdfParams:()=>DfS,RenderTravelOrderPdfQueryParams:()=>RfS,RenderTravelOrderPreviewBody:()=>nfS,RenderTravelOrderPreviewHeader:()=>tfS,RenderTravelOrderPreviewQueryParams:()=>efS,ReopenTravelOrderBody:()=>ffS,ReopenTravelOrderHeader:()=>zfS,ReopenTravelOrderParams:()=>bfS,ReopenTravelOrderResponse:()=>BfS,SettleTravelOrderHeader:()=>SfS,SettleTravelOrderParams:()=>vfS,SettleTravelOrderResponse:()=>hfS,UpdateTravelOrderBody:()=>cfS,UpdateTravelOrderHeader:()=>ufS,UpdateTravelOrderParams:()=>dfS,UpdateTravelOrderResponse:()=>pfS,approveTravelOrderPathIdRegExp:()=>CVv,approveTravelOrderResponseCostsItemAmountExclusiveMin:()=>AVv,approveTravelOrderResponseCostsItemAmountMax:()=>FVv,approveTravelOrderResponseCostsItemDateRegExp:()=>kVv,approveTravelOrderResponseCostsItemDescriptionMax:()=>wVv,calculateTravelOrderRouteDistanceBodyFromMax:()=>X3v,calculateTravelOrderRouteDistanceBodyFromMin:()=>J3v,calculateTravelOrderRouteDistanceBodyToMax:()=>tVv,calculateTravelOrderRouteDistanceBodyToMin:()=>eVv,cancelTravelOrderPathIdRegExp:()=>JVv,cancelTravelOrderResponseCostsItemAmountExclusiveMin:()=>eKv,cancelTravelOrderResponseCostsItemAmountMax:()=>tKv,cancelTravelOrderResponseCostsItemDateRegExp:()=>nKv,cancelTravelOrderResponseCostsItemDescriptionMax:()=>XVv,createTravelOrderBodyAdvanceAmountMax:()=>QGv,createTravelOrderBodyAdvanceAmountMin:()=>$Gv,createTravelOrderBodyBreakfastsProvidedMax:()=>qGv,createTravelOrderBodyBreakfastsProvidedMin:()=>ZGv,createTravelOrderBodyCostsItemAmountExclusiveMin:()=>XGv,createTravelOrderBodyCostsItemAmountMax:()=>e3v,createTravelOrderBodyCostsItemDateRegExp:()=>t3v,createTravelOrderBodyCostsItemDescriptionMax:()=>JGv,createTravelOrderBodyCostsMax:()=>n3v,createTravelOrderBodyDateRegExp:()=>FGv,createTravelOrderBodyDestinationCountryCodeRegExp:()=>LGv,createTravelOrderBodyDestinationMax:()=>HGv,createTravelOrderBodyDistanceKmMax:()=>KGv,createTravelOrderBodyDistanceKmMin:()=>VGv,createTravelOrderBodyForeignDailyRateExclusiveMin:()=>WGv,createTravelOrderBodyForeignDailyRateMax:()=>YGv,createTravelOrderBodyNoteMax:()=>s3v,createTravelOrderBodyOriginMax:()=>jGv,createTravelOrderBodyPurposeMax:()=>kGv,createTravelOrderBodyTravelerNameMax:()=>wGv,createTravelOrderBodyTravelerPositionMax:()=>AGv,createTravelOrderBodyVehicleRegistrationMax:()=>GGv,deleteTravelOrderPathIdRegExp:()=>PVv,getTravelOrderByIdPathIdRegExp:()=>nVv,getTravelOrderByIdResponseCostsItemAmountExclusiveMin:()=>oVv,getTravelOrderByIdResponseCostsItemAmountMax:()=>iVv,getTravelOrderByIdResponseCostsItemDateRegExp:()=>aVv,getTravelOrderByIdResponseCostsItemDescriptionMax:()=>sVv,getTravelOrdersQueryLimitDefault:()=>_Gv,getTravelOrdersQueryLimitMax:()=>NGv,getTravelOrdersResponseDataItemCostsItemAmountExclusiveMin:()=>UGv,getTravelOrdersResponseDataItemCostsItemAmountMax:()=>PGv,getTravelOrdersResponseDataItemCostsItemDateRegExp:()=>CGv,getTravelOrdersResponseDataItemCostsItemDescriptionMax:()=>MGv,previewTravelOrderBodyAdvanceAmountMax:()=>S3v,previewTravelOrderBodyAdvanceAmountMin:()=>v3v,previewTravelOrderBodyBreakfastsProvidedMax:()=>g3v,previewTravelOrderBodyBreakfastsProvidedMin:()=>x3v,previewTravelOrderBodyCostsItemAmountExclusiveMin:()=>b3v,previewTravelOrderBodyCostsItemAmountMax:()=>z3v,previewTravelOrderBodyCostsItemDateRegExp:()=>f3v,previewTravelOrderBodyCostsItemDescriptionMax:()=>h3v,previewTravelOrderBodyCostsMax:()=>B3v,previewTravelOrderBodyDateRegExp:()=>a3v,previewTravelOrderBodyDestinationCountryCodeRegExp:()=>u3v,previewTravelOrderBodyDestinationMax:()=>d3v,previewTravelOrderBodyDistanceKmMax:()=>m3v,previewTravelOrderBodyDistanceKmMin:()=>p3v,previewTravelOrderBodyForeignDailyRateExclusiveMin:()=>y3v,previewTravelOrderBodyForeignDailyRateMax:()=>O3v,previewTravelOrderBodyNoteMax:()=>T3v,previewTravelOrderBodyOriginMax:()=>l3v,previewTravelOrderBodyPurposeMax:()=>r3v,previewTravelOrderBodyTravelerNameMax:()=>o3v,previewTravelOrderBodyTravelerPositionMax:()=>i3v,previewTravelOrderBodyVehicleRegistrationMax:()=>c3v,renderTravelOrderHtmlPathIdRegExp:()=>lKv,renderTravelOrderHtmlQueryLanguageMax:()=>pKv,renderTravelOrderHtmlQueryLanguageMin:()=>cKv,renderTravelOrderHtmlQueryLocaleMax:()=>uKv,renderTravelOrderHtmlQueryLocaleMin:()=>dKv,renderTravelOrderPdfPathIdRegExp:()=>sKv,renderTravelOrderPdfQueryLanguageMax:()=>rKv,renderTravelOrderPdfQueryLanguageMin:()=>aKv,renderTravelOrderPdfQueryLocaleMax:()=>iKv,renderTravelOrderPdfQueryLocaleMin:()=>oKv,renderTravelOrderPreviewBodyAdvanceAmountMax:()=>K3v,renderTravelOrderPreviewBodyAdvanceAmountMin:()=>V3v,renderTravelOrderPreviewBodyBreakfastsProvidedMax:()=>H3v,renderTravelOrderPreviewBodyBreakfastsProvidedMin:()=>j3v,renderTravelOrderPreviewBodyCostsItemAmountExclusiveMin:()=>q3v,renderTravelOrderPreviewBodyCostsItemAmountMax:()=>W3v,renderTravelOrderPreviewBodyCostsItemDateRegExp:()=>Y3v,renderTravelOrderPreviewBodyCostsItemDescriptionMax:()=>Z3v,renderTravelOrderPreviewBodyCostsMax:()=>$3v,renderTravelOrderPreviewBodyDateRegExp:()=>M3v,renderTravelOrderPreviewBodyDestinationCountryCodeRegExp:()=>w3v,renderTravelOrderPreviewBodyDestinationMax:()=>C3v,renderTravelOrderPreviewBodyDistanceKmMax:()=>k3v,renderTravelOrderPreviewBodyDistanceKmMin:()=>F3v,renderTravelOrderPreviewBodyForeignDailyRateExclusiveMin:()=>L3v,renderTravelOrderPreviewBodyForeignDailyRateMax:()=>G3v,renderTravelOrderPreviewBodyNoteMax:()=>Q3v,renderTravelOrderPreviewBodyOriginMax:()=>P3v,renderTravelOrderPreviewBodyPurposeMax:()=>U3v,renderTravelOrderPreviewBodyTravelerNameMax:()=>_3v,renderTravelOrderPreviewBodyTravelerPositionMax:()=>N3v,renderTravelOrderPreviewBodyVehicleRegistrationMax:()=>A3v,renderTravelOrderPreviewQueryLanguageMax:()=>R3v,renderTravelOrderPreviewQueryLanguageMin:()=>D3v,renderTravelOrderPreviewQueryLocaleMax:()=>E3v,renderTravelOrderPreviewQueryLocaleMin:()=>I3v,reopenTravelOrderBodyReasonMax:()=>qVv,reopenTravelOrderBodyReasonMin:()=>ZVv,reopenTravelOrderPathIdRegExp:()=>KVv,reopenTravelOrderResponseCostsItemAmountExclusiveMin:()=>YVv,reopenTravelOrderResponseCostsItemAmountMax:()=>$Vv,reopenTravelOrderResponseCostsItemDateRegExp:()=>QVv,reopenTravelOrderResponseCostsItemDescriptionMax:()=>WVv,settleTravelOrderPathIdRegExp:()=>jVv,settleTravelOrderResponseCostsItemAmountExclusiveMin:()=>LVv,settleTravelOrderResponseCostsItemAmountMax:()=>GVv,settleTravelOrderResponseCostsItemDateRegExp:()=>VVv,settleTravelOrderResponseCostsItemDescriptionMax:()=>HVv,updateTravelOrderBodyAdvanceAmountMax:()=>fVv,updateTravelOrderBodyAdvanceAmountMin:()=>zVv,updateTravelOrderBodyBreakfastsProvidedMax:()=>SVv,updateTravelOrderBodyBreakfastsProvidedMin:()=>vVv,updateTravelOrderBodyCostsItemAmountExclusiveMin:()=>TVv,updateTravelOrderBodyCostsItemAmountMax:()=>IVv,updateTravelOrderBodyCostsItemDateRegExp:()=>EVv,updateTravelOrderBodyCostsItemDescriptionMax:()=>BVv,updateTravelOrderBodyCostsMax:()=>DVv,updateTravelOrderBodyDateRegExp:()=>uVv,updateTravelOrderBodyDestinationCountryCodeRegExp:()=>xVv,updateTravelOrderBodyDestinationMax:()=>mVv,updateTravelOrderBodyDistanceKmMax:()=>OVv,updateTravelOrderBodyDistanceKmMin:()=>yVv,updateTravelOrderBodyForeignDailyRateExclusiveMin:()=>hVv,updateTravelOrderBodyForeignDailyRateMax:()=>bVv,updateTravelOrderBodyNoteMax:()=>RVv,updateTravelOrderBodyOriginMax:()=>pVv,updateTravelOrderBodyPurposeMax:()=>cVv,updateTravelOrderBodyTravelerNameMax:()=>lVv,updateTravelOrderBodyTravelerPositionMax:()=>dVv,updateTravelOrderBodyVehicleRegistrationMax:()=>gVv,updateTravelOrderPathIdRegExp:()=>rVv,updateTravelOrderResponseCostsItemAmountExclusiveMin:()=>NVv,updateTravelOrderResponseCostsItemAmountMax:()=>MVv,updateTravelOrderResponseCostsItemDateRegExp:()=>UVv,updateTravelOrderResponseCostsItemDescriptionMax:()=>_Vv});var _Gv=10,NGv=100,ZzS=e.object({limit:e.number().min(1).max(NGv).default(_Gv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen.").and(e.unknown().describe("Filter by lifecycle status.")).optional().describe("Filter by lifecycle status."),search:e.string().optional().describe(`Full-text search query to filter results.
|
|
233
233
|
Searches are case-insensitive and match partial strings.
|
|
234
|
-
Searches across number, traveler name, purpose, origin, and destination.`)}),qzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),MGv=200,UGv=0,PGv=1e6,CGv=/^\d{4}-\d{2}-\d{2}$/,WzS=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(MGv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(UGv).max(PGv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(CGv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),YzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wGv=200,AGv=200,FGv=/^\d{4}-\d{2}-\d{2}$/,kGv=500,jGv=500,HGv=500,LGv=/^[A-Za-z]{2}$/,GGv=20,VGv=0,KGv=1e5,ZGv=0,qGv=60,WGv=0,YGv=1e4,$Gv=0,QGv=1e6,JGv=200,XGv=0,e3v=1e6,t3v=/^\d{4}-\d{2}-\d{2}$/,n3v=100,s3v=2e3,$zS=e.object({traveler_name:e.string().min(1).max(wGv).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(AGv).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(FGv).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(kGv).describe("Business purpose of the trip."),origin:e.string().max(jGv).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(HGv).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(LGv).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(GGv).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(VGv).max(KGv).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(ZGv).max(qGv).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(WGv).max(YGv).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min($Gv).max(QGv).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(JGv).describe("Description of the cost line."),amount:e.number().gt(XGv).max(e3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(t3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(n3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(s3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),QzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),o3v=200,i3v=200,a3v=/^\d{4}-\d{2}-\d{2}$/,r3v=500,l3v=500,d3v=500,u3v=/^[A-Za-z]{2}$/,c3v=20,p3v=0,m3v=1e5,x3v=0,g3v=60,y3v=0,O3v=1e4,v3v=0,S3v=1e6,h3v=200,b3v=0,z3v=1e6,f3v=/^\d{4}-\d{2}-\d{2}$/,B3v=100,T3v=2e3,JzS=e.object({traveler_name:e.string().min(1).max(o3v).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(i3v).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(a3v).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(r3v).describe("Business purpose of the trip."),origin:e.string().max(l3v).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(d3v).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(u3v).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(c3v).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(p3v).max(m3v).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(x3v).max(g3v).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(y3v).max(O3v).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(v3v).max(S3v).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(h3v).describe("Description of the cost line."),amount:e.number().gt(b3v).max(z3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(f3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(B3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(T3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),XzS=e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),I3v=2,E3v=5,D3v=2,R3v=5,efS=e.object({locale:e.string().min(I3v).max(E3v).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(D3v).max(R3v).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),tfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_3v=200,N3v=200,M3v=/^\d{4}-\d{2}-\d{2}$/,U3v=500,P3v=500,C3v=500,w3v=/^[A-Za-z]{2}$/,A3v=20,F3v=0,k3v=1e5,j3v=0,H3v=60,L3v=0,G3v=1e4,V3v=0,K3v=1e6,Z3v=200,q3v=0,W3v=1e6,Y3v=/^\d{4}-\d{2}-\d{2}$/,$3v=100,Q3v=2e3,nfS=e.object({traveler_name:e.string().min(1).max(_3v).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(N3v).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(M3v).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(U3v).describe("Business purpose of the trip."),origin:e.string().max(P3v).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(C3v).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(w3v).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(A3v).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(F3v).max(k3v).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(j3v).max(H3v).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(L3v).max(G3v).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(V3v).max(K3v).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Z3v).describe("Description of the cost line."),amount:e.number().gt(q3v).max(W3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(Y3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max($3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Q3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),sfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J3v=3,X3v=300,eVv=3,tVv=300,ofS=e.object({from:e.string().min(J3v).max(X3v).describe("Starting address to geocode."),to:e.string().min(eVv).max(tVv).describe("Destination address to geocode."),round_trip:e.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),ifS=e.object({distance_km:e.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),nVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,afS=e.object({id:e.stringFormat("resource-id",nVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),rfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sVv=200,oVv=0,iVv=1e6,aVv=/^\d{4}-\d{2}-\d{2}$/,lfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(sVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(oVv).max(iVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(aVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),rVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,dfS=e.object({id:e.stringFormat("resource-id",rVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ufS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lVv=200,dVv=200,uVv=/^\d{4}-\d{2}-\d{2}$/,cVv=500,pVv=500,mVv=500,xVv=/^[A-Za-z]{2}$/,gVv=20,yVv=0,OVv=1e5,vVv=0,SVv=60,hVv=0,bVv=1e4,zVv=0,fVv=1e6,BVv=200,TVv=0,IVv=1e6,EVv=/^\d{4}-\d{2}-\d{2}$/,DVv=100,RVv=2e3,cfS=e.object({traveler_name:e.string().min(1).max(lVv).nullish().describe("Full name of the traveling employee or contractor. Omit or send null to leave unchanged; cannot be cleared."),traveler_position:e.string().max(dVv).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(uVv).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e.string().min(1).max(cVv).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(pVv).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(mVv).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e.string().regex(xVv).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.iso.datetime({}).nullish().describe("Departure date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),return_at:e.iso.datetime({}).nullish().describe("Return date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),transport:e.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(gVv).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(yVv).max(OVv).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.number().min(vVv).max(SVv).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0."),foreign_daily_rate:e.number().gt(hVv).max(bVv).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),advance_amount:e.number().min(zVv).max(fVv).nullish().describe("Advance payment already given to the traveler. Omit to leave unchanged, send null to reset to 0."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(BVv).describe("Description of the cost line."),amount:e.number().gt(TVv).max(IVv).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(EVv).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(DVv).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(RVv).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),_Vv=200,NVv=0,MVv=1e6,UVv=/^\d{4}-\d{2}-\d{2}$/,pfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(_Vv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(NVv).max(MVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(UVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),PVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,mfS=e.object({id:e.stringFormat("resource-id",PVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),CVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,gfS=e.object({id:e.stringFormat("resource-id",CVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),yfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wVv=200,AVv=0,FVv=1e6,kVv=/^\d{4}-\d{2}-\d{2}$/,OfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(wVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(AVv).max(FVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(kVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),jVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,vfS=e.object({id:e.stringFormat("resource-id",jVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),SfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),HVv=200,LVv=0,GVv=1e6,VVv=/^\d{4}-\d{2}-\d{2}$/,hfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(HVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(LVv).max(GVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(VVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),KVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,bfS=e.object({id:e.stringFormat("resource-id",KVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),zfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ZVv=3,qVv=500,ffS=e.object({reason:e.string().min(ZVv).max(qVv).describe("Why this settled travel order is being reopened for correction. Required.")}),WVv=200,YVv=0,$Vv=1e6,QVv=/^\d{4}-\d{2}-\d{2}$/,BfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(WVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(YVv).max($Vv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(QVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),JVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,TfS=e.object({id:e.stringFormat("resource-id",JVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),IfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),XVv=200,eKv=0,tKv=1e6,nKv=/^\d{4}-\d{2}-\d{2}$/,EfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(XVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(eKv).max(tKv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(nKv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),sKv=/^[a-z]{3,4}_[0-9a-f]{24}$/,DfS=e.object({id:e.stringFormat("resource-id",sKv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),oKv=2,iKv=5,aKv=2,rKv=5,RfS=e.object({locale:e.string().min(oKv).max(iKv).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(aKv).max(rKv).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),_fS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lKv=/^[a-z]{3,4}_[0-9a-f]{24}$/,NfS=e.object({id:e.stringFormat("resource-id",lKv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),dKv=2,uKv=5,cKv=2,pKv=5,MfS=e.object({locale:e.string().min(dKv).max(uKv).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(cKv).max(pKv).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),UfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Nt={};W(Nt,{DownloadUjpPackageHeader:()=>CfS,DownloadUjpPackageParams:()=>PfS});var PfS=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),CfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Mt={};W(Mt,{UploadImageBody:()=>AfS,UploadImageHeader:()=>wfS,UploadImageResponse:()=>FfS});var wfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),AfS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),FfS=e.object({url:e.url().describe("Public URL of the uploaded image"),secure_url:e.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e.string().describe("Image format (jpg, png, webp, etc.)"),width:e.number().describe("Image width in pixels"),height:e.number().describe("Image height in pixels"),bytes:e.number().describe("File size in bytes"),entity_id:e.string().describe("Entity ID that the image belongs to")});var Ut={};W(Ut,{ConfirmPasswordResetBody:()=>gBS,ConfirmPasswordResetResponse:()=>yBS,DisableTwoFactorBody:()=>aBS,DisableTwoFactorResponse:()=>rBS,EnableRequiredTwoFactorBody:()=>XfS,EnableRequiredTwoFactorResponse:()=>eBS,EnableTwoFactorBody:()=>oBS,EnableTwoFactorResponse:()=>iBS,GetAccountTwoFactorPolicyHeader:()=>kfS,GetAccountTwoFactorPolicyResponse:()=>jfS,GetEntityTwoFactorPolicyHeader:()=>KfS,GetEntityTwoFactorPolicyParams:()=>VfS,GetEntityTwoFactorPolicyResponse:()=>ZfS,GetMeResponse:()=>vBS,GetTwoFactorConfigurationResponse:()=>tBS,ListMyAccountsResponse:()=>OBS,LoginBody:()=>uBS,LoginResponse:()=>cBS,PatchMeBody:()=>SBS,PatchMeResponse:()=>hBS,RequestPasswordResetBody:()=>mBS,RequestPasswordResetResponse:()=>xBS,SetupRequiredTwoFactorBody:()=>QfS,SetupRequiredTwoFactorResponse:()=>JfS,SetupTwoFactorBody:()=>nBS,SetupTwoFactorResponse:()=>sBS,SignupBody:()=>pBS,UpdateAccountTwoFactorPolicyBody:()=>LfS,UpdateAccountTwoFactorPolicyHeader:()=>HfS,UpdateAccountTwoFactorPolicyResponse:()=>GfS,UpdateEntityTwoFactorPolicyBody:()=>YfS,UpdateEntityTwoFactorPolicyHeader:()=>WfS,UpdateEntityTwoFactorPolicyParams:()=>qfS,UpdateEntityTwoFactorPolicyResponse:()=>$fS,UpdateUserFinaSettingsBody:()=>TBS,UpdateUserFinaSettingsHeader:()=>BBS,UpdateUserFinaSettingsResponse:()=>IBS,UpdateUserFursSettingsBody:()=>zBS,UpdateUserFursSettingsHeader:()=>bBS,UpdateUserFursSettingsResponse:()=>fBS,VerifyTwoFactorBody:()=>lBS,VerifyTwoFactorResponse:()=>dBS,confirmPasswordResetBodyPasswordMin:()=>fZv,confirmPasswordResetBodyPasswordRegExp:()=>BZv,disableTwoFactorBodyCodeMax:()=>wKv,disableTwoFactorBodyCodeMin:()=>CKv,disableTwoFactorBodyPasswordMax:()=>PKv,enableRequiredTwoFactorBodyCodeRegExp:()=>bKv,enableRequiredTwoFactorBodyTokenRegExp:()=>hKv,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>IKv,enableRequiredTwoFactorResponseSessionOneIdMax:()=>zKv,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>EKv,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>TKv,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>BKv,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>fKv,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>NKv,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>RKv,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>DKv,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>_Kv,enableTwoFactorBodyCodeRegExp:()=>UKv,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>mKv,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>yKv,getEntityTwoFactorPolicyPathIdRegExp:()=>gKv,getMeResponseAccountIdMax:()=>DZv,getMeResponseEmailMax:()=>IZv,getMeResponseIdMax:()=>TZv,getMeResponseNameMax:()=>EZv,loginBodyShopifyReturnUrlMax:()=>JKv,loginBodyShopifyReturnUrlMin:()=>QKv,loginBodyShopifyReturnUrlRegExp:()=>XKv,loginResponseOneEntityIdMax:()=>oZv,loginResponseOneIdMax:()=>eZv,loginResponseOneImpersonatorUserIdMax:()=>iZv,loginResponseOneScopeMax:()=>sZv,loginResponseOneTtlDefault:()=>nZv,loginResponseOneUserIdMax:()=>tZv,loginResponseTwoUserAccountIdMax:()=>dZv,loginResponseTwoUserEmailMax:()=>rZv,loginResponseTwoUserIdMax:()=>aZv,loginResponseTwoUserNameMax:()=>lZv,patchMeBodyNameMin:()=>RZv,patchMeResponseAccountIdMax:()=>UZv,patchMeResponseEmailMax:()=>NZv,patchMeResponseIdMax:()=>_Zv,patchMeResponseNameMax:()=>MZv,requestPasswordResetBodyShopifyReturnUrlMax:()=>bZv,requestPasswordResetBodyShopifyReturnUrlMin:()=>hZv,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>zZv,setupRequiredTwoFactorBodyTokenRegExp:()=>SKv,setupTwoFactorBodyPasswordMax:()=>MKv,signupBodyNameMin:()=>uZv,signupBodyPasswordMin:()=>cZv,signupBodyPasswordRegExp:()=>pZv,signupBodySignupAttributionFbclidMax:()=>SZv,signupBodySignupAttributionGbraidMax:()=>OZv,signupBodySignupAttributionGclidMax:()=>yZv,signupBodySignupAttributionUtmCampaignMax:()=>gZv,signupBodySignupAttributionUtmMediumMax:()=>xZv,signupBodySignupAttributionUtmSourceMax:()=>mZv,signupBodySignupAttributionWbraidMax:()=>vZv,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>xKv,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>vKv,updateEntityTwoFactorPolicyPathIdRegExp:()=>OKv,updateUserFinaSettingsResponseAccountIdMax:()=>HZv,updateUserFinaSettingsResponseEmailMax:()=>kZv,updateUserFinaSettingsResponseIdMax:()=>FZv,updateUserFinaSettingsResponseNameMax:()=>jZv,updateUserFursSettingsResponseAccountIdMax:()=>AZv,updateUserFursSettingsResponseEmailMax:()=>CZv,updateUserFursSettingsResponseIdMax:()=>PZv,updateUserFursSettingsResponseNameMax:()=>wZv,verifyTwoFactorBodyCodeMax:()=>jKv,verifyTwoFactorBodyCodeMin:()=>kKv,verifyTwoFactorBodyTokenMax:()=>AKv,verifyTwoFactorBodyTokenRegExp:()=>FKv,verifyTwoFactorResponseOneEntityIdMax:()=>KKv,verifyTwoFactorResponseOneIdMax:()=>HKv,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>ZKv,verifyTwoFactorResponseOneScopeMax:()=>VKv,verifyTwoFactorResponseOneTtlDefault:()=>GKv,verifyTwoFactorResponseOneUserIdMax:()=>LKv,verifyTwoFactorResponseTwoUserAccountIdMax:()=>$Kv,verifyTwoFactorResponseTwoUserEmailMax:()=>WKv,verifyTwoFactorResponseTwoUserIdMax:()=>qKv,verifyTwoFactorResponseTwoUserNameMax:()=>YKv});var mKv=/^acc_[0-9a-fA-F]{24}$/,kfS=e.object({"x-account-id":e.string().regex(mKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),jfS=e.object({required:e.boolean()}),xKv=/^acc_[0-9a-fA-F]{24}$/,HfS=e.object({"x-account-id":e.string().regex(xKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),LfS=e.object({required:e.boolean()}),GfS=e.object({required:e.boolean()}),gKv=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,VfS=e.object({id:e.stringFormat("resource-id",gKv).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),yKv=/^acc_[0-9a-fA-F]{24}$/,KfS=e.object({"x-account-id":e.string().regex(yKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),ZfS=e.object({required:e.boolean()}),OKv=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,qfS=e.object({id:e.stringFormat("resource-id",OKv).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),vKv=/^acc_[0-9a-fA-F]{24}$/,WfS=e.object({"x-account-id":e.string().regex(vKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),YfS=e.object({required:e.boolean()}),$fS=e.object({required:e.boolean()}),SKv=/^session_2fa_setup_[a-f0-9]{64}$/,QfS=e.object({token:e.string().regex(SKv)}),JfS=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),hKv=/^session_2fa_setup_[a-f0-9]{64}$/,bKv=/^\d{6}$/,XfS=e.object({token:e.string().regex(hKv),code:e.string().regex(bKv)}),zKv=100,fKv=36,BKv=31536e3,TKv=50,IKv=36,EKv=36,DKv=36,RKv=255,_Kv=255,NKv=36,eBS=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(zKv),user_id:e.string().max(fKv),ttl:e.number().default(BKv).describe("Token time-to-live in seconds"),scope:e.string().max(TKv).nullish(),entity_id:e.string().max(IKv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(EKv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(DKv),email:e.string().max(RKv),name:e.string().max(_Kv).nullish(),email_verified:e.boolean(),account_id:e.string().max(NKv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),tBS=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),MKv=1024,nBS=e.object({password:e.string().max(MKv).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),sBS=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),UKv=/^\d{6}$/,oBS=e.object({code:e.string().regex(UKv)}),iBS=e.object({recovery_codes:e.array(e.string())}),PKv=1024,CKv=6,wKv=32,aBS=e.object({password:e.string().max(PKv).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes."),code:e.string().min(CKv).max(wKv).describe("Six-digit authenticator code or a single-use recovery code.")}),rBS=e.object({enabled:e.literal(false)}),AKv=100,FKv=/^session_2fa_[a-zA-Z0-9]+$/,kKv=6,jKv=32,lBS=e.object({token:e.string().max(AKv).regex(FKv),code:e.string().min(kKv).max(jKv).describe("Six-digit authenticator code or a single-use recovery code.")}),HKv=100,LKv=36,GKv=31536e3,VKv=50,KKv=36,ZKv=36,qKv=36,WKv=255,YKv=255,$Kv=36,dBS=e.object({id:e.string().max(HKv),user_id:e.string().max(LKv),ttl:e.number().default(GKv).describe("Token time-to-live in seconds"),scope:e.string().max(VKv).nullish(),entity_id:e.string().max(KKv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(ZKv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(qKv),email:e.string().max(WKv),name:e.string().max(YKv).nullish(),email_verified:e.boolean(),account_id:e.string().max($Kv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),QKv=86,JKv=86,XKv=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,uBS=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(QKv).max(JKv).regex(XKv).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),eZv=100,tZv=36,nZv=31536e3,sZv=50,oZv=36,iZv=36,aZv=36,rZv=255,lZv=255,dZv=36,cBS=e.object({id:e.string().max(eZv),user_id:e.string().max(tZv),ttl:e.number().default(nZv).describe("Token time-to-live in seconds"),scope:e.string().max(sZv).nullish(),entity_id:e.string().max(oZv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(iZv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(aZv),email:e.string().max(rZv),name:e.string().max(lZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(dZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),uZv=2,cZv=8,pZv=/[a-z]/,mZv=150,xZv=150,gZv=150,yZv=512,OZv=512,vZv=512,SZv=512,pBS=e.object({email:e.email(),name:e.string().min(uZv).nullish(),password:e.string().min(cZv).regex(pZv),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional(),signup_attribution:e.object({utm_source:e.string().min(1).max(mZv).nullish(),utm_medium:e.string().min(1).max(xZv).nullish(),utm_campaign:e.string().min(1).max(gZv).nullish(),gclid:e.string().min(1).max(yZv).nullish(),gbraid:e.string().min(1).max(OZv).nullish(),wbraid:e.string().min(1).max(vZv).nullish(),fbclid:e.string().min(1).max(SZv).nullish()}).nullish().describe("Optional campaign parameters (utm_source, utm_medium, utm_campaign) and ad click IDs (gclid, gbraid, wbraid, fbclid) from the link the user arrived through. Stored with the new user for first-party sign-up attribution and never returned. Each value is trimmed. A UTM value is kept only when it is 1\u2013150 letters, digits, spaces or `_ . - + ~ ( )` and does not look like an email address, URL or secret; a click ID is kept only when it is 1\u2013512 characters of `A-Z a-z 0-9 _ . -`. Invalid values and malformed objects are ignored rather than rejected.")}),hZv=86,bZv=86,zZv=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,mBS=e.object({email:e.email(),shopify_return_url:e.string().min(hZv).max(bZv).regex(zZv).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),xBS=e.object({message:e.string()}),fZv=8,BZv=/[a-z]/,gBS=e.object({token:e.string().min(1),password:e.string().min(fZv).regex(BZv)}),yBS=e.object({message:e.string()}),OBS=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"]),external_analytics:e.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),TZv=36,IZv=255,EZv=255,DZv=36,vBS=e.object({id:e.string().max(TZv),email:e.string().max(IZv),name:e.string().max(EZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(DZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),RZv=2,SBS=e.object({name:e.string().min(RZv).nullish().describe("User display name"),locale:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),_Zv=36,NZv=255,MZv=255,UZv=36,hBS=e.object({id:e.string().max(_Zv),email:e.string().max(NZv),name:e.string().max(MZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(UZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),bBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zBS=e.object({operator_tax_number:e.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),PZv=36,CZv=255,wZv=255,AZv=36,fBS=e.object({id:e.string().max(PZv),email:e.string().max(CZv),name:e.string().max(wZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(AZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),BBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TBS=e.object({operator_oib:e.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),FZv=36,kZv=255,jZv=255,HZv=36,IBS=e.object({id:e.string().max(FZv),email:e.string().max(kZv),name:e.string().max(jZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(HZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var Pt={};W(Pt,{CancelVerifactuRecordBody:()=>qBS,CancelVerifactuRecordHeader:()=>ZBS,CancelVerifactuRecordParams:()=>KBS,CancelVerifactuRecordResponse:()=>WBS,CorrectVerifactuRecordBody:()=>GBS,CorrectVerifactuRecordHeader:()=>LBS,CorrectVerifactuRecordParams:()=>HBS,CorrectVerifactuRecordResponse:()=>VBS,GetVerifactuEvidenceHeader:()=>wBS,GetVerifactuEvidenceParams:()=>CBS,GetVerifactuEvidenceResponse:()=>ABS,GetVerifactuSettingsHeader:()=>EBS,GetVerifactuSettingsResponse:()=>DBS,RetryVerifactuRecordHeader:()=>kBS,RetryVerifactuRecordParams:()=>FBS,RetryVerifactuRecordResponse:()=>jBS,UpdateVerifactuSettingsBody:()=>_BS,UpdateVerifactuSettingsHeader:()=>RBS,UpdateVerifactuSettingsResponse:()=>NBS,UploadVerifactuCertificateBody:()=>UBS,UploadVerifactuCertificateHeader:()=>MBS,UploadVerifactuCertificateResponse:()=>PBS,cancelVerifactuRecordBodyReasonMax:()=>$Zv,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>ZZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>WZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>qZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>YZv,correctVerifactuRecordBodyReasonMax:()=>KZv,getVerifactuSettingsResponsePendingRecordsMin:()=>LZv,updateVerifactuSettingsResponsePendingRecordsMin:()=>GZv,uploadVerifactuCertificateResponsePendingRecordsMin:()=>VZv});var EBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),LZv=0,DBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(LZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),RBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_BS=e.object({territory:e.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked.")}).describe("Explicit eligibility choices and activation request for the entity\u2019s VeriFactu installation."),GZv=0,NBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(GZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),MBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),UBS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),VZv=0,PBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(VZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),CBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),wBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ABS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e.object({document_id:e.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e.array(e.object({id:e.string().describe("Unique attempt identifier."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e.string().describe("Attempt start timestamp."),finished_at:e.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e.string().nullable().describe("Authority validation or sanitized local failure classification.")}))})).describe("Immutable fiscal request and the latest 100 submission and consultation attempts; all attempts remain retained."),FBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),kBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),jBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),HBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),LBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KZv=500,ZZv=500,qZv=0,WZv=/^\d{2}$/,YZv=12,GBS=e.object({reason:e.string().min(1).max(KZv).describe("Operator explanation retained with this fiscal operation."),correction:e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(ZZv).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(qZv).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex(WZv).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(YZv).nullish().describe("Explicit classifications for exceptional tax rows. Ordinary domestic positive-rate IVA defaults to 01/01/S1. Zero, exempt, reverse-charge and non-domestic rows require classification.")}).describe("Fiscal classifications supplied before issue, or as an append-only fiscal metadata correction.")}).describe("Append a correction to a confirmed fiscal record without changing invoice financial or party facts."),VBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),KBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),ZBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$Zv=500,qBS=e.object({reason:e.string().min(1).max($Zv).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),WBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.");var Ct={};W(Ct,{CheckViesBody:()=>YBS,CheckViesResponse:()=>$BS,checkViesBodyCustomerCountryCodeMax:()=>tqv,checkViesBodyCustomerCountryCodeMin:()=>eqv,checkViesBodyIssuerCountryCodeMax:()=>JZv,checkViesBodyIssuerCountryCodeMin:()=>QZv,checkViesBodyIssuerIsTaxSubjectDefault:()=>XZv,checkViesResponseCustomerCountryCodeMax:()=>iqv,checkViesResponseCustomerCountryCodeMin:()=>oqv,checkViesResponseIssuerCountryCodeMax:()=>sqv,checkViesResponseIssuerCountryCodeMin:()=>nqv,checkViesResponseVatIdCountryCodeMax:()=>rqv,checkViesResponseVatIdCountryCodeMin:()=>aqv});var QZv=2,JZv=2,XZv=true,eqv=2,tqv=2,YBS=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(QZv).max(JZv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(XZv).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(eqv).max(tqv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),nqv=2,sqv=2,oqv=2,iqv=2,aqv=2,rqv=2,$BS=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(nqv).max(sqv).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(oqv).max(iqv).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(aqv).max(rqv).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code. Informational: it never changes transaction_type, which follows the address."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var wt={};W(wt,{CreateWarehouseBody:()=>tTS,CreateWarehouseHeader:()=>eTS,DeleteWarehouseHeader:()=>uTS,DeleteWarehouseParams:()=>dTS,GetWarehouseByIdHeader:()=>sTS,GetWarehouseByIdParams:()=>nTS,GetWarehouseByIdResponse:()=>oTS,GetWarehousesHeader:()=>JBS,GetWarehousesQueryParams:()=>QBS,GetWarehousesResponse:()=>XBS,UpdateWarehouseBody:()=>rTS,UpdateWarehouseHeader:()=>aTS,UpdateWarehouseParams:()=>iTS,UpdateWarehouseResponse:()=>lTS,createWarehouseBodyNameMax:()=>mqv,deleteWarehousePathIdRegExp:()=>fqv,getWarehouseByIdPathIdRegExp:()=>xqv,getWarehouseByIdResponseEntityIdMax:()=>yqv,getWarehouseByIdResponseIdMax:()=>gqv,getWarehouseByIdResponseNameMax:()=>Oqv,getWarehousesQueryLimitDefault:()=>lqv,getWarehousesQueryLimitMax:()=>dqv,getWarehousesResponseDataItemEntityIdMax:()=>cqv,getWarehousesResponseDataItemIdMax:()=>uqv,getWarehousesResponseDataItemNameMax:()=>pqv,updateWarehouseBodyNameMax:()=>Sqv,updateWarehousePathIdRegExp:()=>vqv,updateWarehouseResponseEntityIdMax:()=>bqv,updateWarehouseResponseIdMax:()=>hqv,updateWarehouseResponseNameMax:()=>zqv});var lqv=10,dqv=100,QBS=e.object({limit:e.number().min(1).max(dqv).default(lqv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),JBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uqv=36,cqv=36,pqv=200,XBS=e.object({data:e.array(e.object({id:e.string().max(uqv),entity_id:e.string().max(cqv),name:e.string().max(pqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),eTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mqv=200,tTS=e.object({name:e.string().min(1).max(mqv).describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Whether this becomes the entity's default warehouse. The first warehouse created for an entity becomes the default automatically; later ones only when `is_default` is true.")}),xqv=/^wh_[0-9a-f]{24}$/,nTS=e.object({id:e.stringFormat("resource-id",xqv).describe("Warehouse identifier (wh_ prefix).")}),sTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),gqv=36,yqv=36,Oqv=200,oTS=e.object({id:e.string().max(gqv),entity_id:e.string().max(yqv),name:e.string().max(Oqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),vqv=/^wh_[0-9a-f]{24}$/,iTS=e.object({id:e.stringFormat("resource-id",vqv).describe("Warehouse identifier (wh_ prefix).")}),aTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Sqv=200,rTS=e.object({name:e.string().min(1).max(Sqv).nullish().describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Set true to make this the entity's default warehouse. Omit or send null to leave it unchanged.")}),hqv=36,bqv=36,zqv=200,lTS=e.object({id:e.string().max(hqv),entity_id:e.string().max(bqv),name:e.string().max(zqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),fqv=/^wh_[0-9a-f]{24}$/,dTS=e.object({id:e.stringFormat("resource-id",fqv).describe("Warehouse identifier (wh_ prefix).")}),uTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var At={};W(At,{CreateWebhookBody:()=>pTS,CreateWebhookHeader:()=>cTS,DeleteWebhookHeader:()=>BTS,DeleteWebhookParams:()=>fTS,DeleteWebhookResponse:()=>TTS,GetWebhookByIdHeader:()=>OTS,GetWebhookByIdParams:()=>yTS,GetWebhookByIdResponse:()=>vTS,GetWebhookDeliveriesHeader:()=>NTS,GetWebhookDeliveriesParams:()=>RTS,GetWebhookDeliveriesQueryParams:()=>_TS,GetWebhookDeliveriesResponse:()=>MTS,GetWebhooksHeader:()=>xTS,GetWebhooksQueryParams:()=>mTS,GetWebhooksResponse:()=>gTS,RotateWebhookSecretHeader:()=>PTS,RotateWebhookSecretParams:()=>UTS,RotateWebhookSecretResponse:()=>CTS,TestWebhookHeader:()=>ETS,TestWebhookParams:()=>ITS,TestWebhookResponse:()=>DTS,UpdateWebhookBody:()=>bTS,UpdateWebhookHeader:()=>hTS,UpdateWebhookParams:()=>STS,UpdateWebhookResponse:()=>zTS,createWebhookBodyActiveDefault:()=>Iqv,createWebhookBodyDescriptionMax:()=>Tqv,createWebhookBodyUrlMax:()=>Bqv,deleteWebhookPathIdRegExp:()=>Wqv,getWebhookByIdPathIdRegExp:()=>Pqv,getWebhookByIdResponseDescriptionMax:()=>Fqv,getWebhookByIdResponseEntityIdMax:()=>wqv,getWebhookByIdResponseIdMax:()=>Cqv,getWebhookByIdResponseMetadataDefault:()=>kqv,getWebhookByIdResponseUrlMax:()=>Aqv,getWebhookDeliveriesPathIdRegExp:()=>uWv,getWebhookDeliveriesQueryLimitDefault:()=>cWv,getWebhookDeliveriesQueryLimitMax:()=>pWv,getWebhookDeliveriesResponseDataItemAttemptMax:()=>zWv,getWebhookDeliveriesResponseDataItemAttemptMin:()=>bWv,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>IWv,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>TWv,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>gWv,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>hWv,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>yWv,getWebhookDeliveriesResponseDataItemIdMax:()=>mWv,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>BWv,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>fWv,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>SWv,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>vWv,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>OWv,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>xWv,getWebhooksQueryLimitDefault:()=>Eqv,getWebhooksQueryLimitMax:()=>Dqv,getWebhooksResponseDataItemDescriptionMax:()=>Mqv,getWebhooksResponseDataItemEntityIdMax:()=>_qv,getWebhooksResponseDataItemIdMax:()=>Rqv,getWebhooksResponseDataItemMetadataDefault:()=>Uqv,getWebhooksResponseDataItemUrlMax:()=>Nqv,rotateWebhookSecretPathIdRegExp:()=>EWv,rotateWebhookSecretResponseDescriptionMax:()=>NWv,rotateWebhookSecretResponseEntityIdMax:()=>RWv,rotateWebhookSecretResponseIdMax:()=>DWv,rotateWebhookSecretResponseMetadataDefault:()=>UWv,rotateWebhookSecretResponseSecretMax:()=>MWv,rotateWebhookSecretResponseUrlMax:()=>_Wv,testWebhookPathIdRegExp:()=>Yqv,testWebhookResponseAttemptMax:()=>iWv,testWebhookResponseAttemptMin:()=>oWv,testWebhookResponseDurationMsMax:()=>dWv,testWebhookResponseDurationMsMin:()=>lWv,testWebhookResponseEntityIdMax:()=>Jqv,testWebhookResponseErrorMessageMax:()=>sWv,testWebhookResponseEventTypeMax:()=>Xqv,testWebhookResponseIdMax:()=>$qv,testWebhookResponseMaxAttemptsMax:()=>rWv,testWebhookResponseMaxAttemptsMin:()=>aWv,testWebhookResponseResponseBodyMax:()=>nWv,testWebhookResponseResponseStatusMax:()=>tWv,testWebhookResponseResponseStatusMin:()=>eWv,testWebhookResponseWebhookIdMax:()=>Qqv,updateWebhookBodyDescriptionMax:()=>Lqv,updateWebhookBodyUrlMax:()=>Hqv,updateWebhookPathIdRegExp:()=>jqv,updateWebhookResponseDescriptionMax:()=>Zqv,updateWebhookResponseEntityIdMax:()=>Vqv,updateWebhookResponseIdMax:()=>Gqv,updateWebhookResponseMetadataDefault:()=>qqv,updateWebhookResponseUrlMax:()=>Kqv});var cTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Bqv=2048,Tqv=500,Iqv=true,pTS=e.object({url:e.url().max(Bqv).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Tqv).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).describe("Events that trigger this webhook"),active:e.boolean().default(Iqv).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Eqv=10,Dqv=100,mTS=e.object({limit:e.number().min(1).max(Dqv).default(Eqv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),xTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Rqv=36,_qv=36,Nqv=2048,Mqv=500,Uqv={},gTS=e.object({data:e.array(e.object({id:e.string().max(Rqv),entity_id:e.string().max(_qv),url:e.string().max(Nqv),description:e.string().max(Mqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Uqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Pqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,yTS=e.object({id:e.stringFormat("resource-id",Pqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),OTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Cqv=36,wqv=36,Aqv=2048,Fqv=500,kqv={},vTS=e.object({id:e.string().max(Cqv),entity_id:e.string().max(wqv),url:e.string().max(Aqv),description:e.string().max(Fqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(kqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),jqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,STS=e.object({id:e.stringFormat("resource-id",jqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hqv=2048,Lqv=500,bTS=e.object({url:e.url().max(Hqv).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Lqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).optional(),active:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Gqv=36,Vqv=36,Kqv=2048,Zqv=500,qqv={},zTS=e.object({id:e.string().max(Gqv),entity_id:e.string().max(Vqv),url:e.string().max(Kqv),description:e.string().max(Zqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(qqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Wqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,fTS=e.object({id:e.stringFormat("resource-id",Wqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),BTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TTS=e.object({success:e.boolean()}),Yqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,ITS=e.object({id:e.stringFormat("resource-id",Yqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ETS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$qv=36,Qqv=36,Jqv=36,Xqv=100,eWv=-2147483648,tWv=2147483647,nWv=1e4,sWv=2e3,oWv=-2147483648,iWv=2147483647,aWv=-2147483648,rWv=2147483647,lWv=-2147483648,dWv=2147483647,DTS=e.object({id:e.string().max($qv),webhook_id:e.string().max(Qqv),entity_id:e.string().max(Jqv),event_type:e.string().max(Xqv),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(eWv).max(tWv).nullish(),response_body:e.string().max(nWv).nullish(),error_message:e.string().max(sWv).nullish(),attempt:e.number().min(oWv).max(iWv),max_attempts:e.number().min(aWv).max(rWv),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(lWv).max(dWv).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),uWv=/^[a-z]{3,4}_[0-9a-f]{24}$/,RTS=e.object({id:e.stringFormat("resource-id",uWv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),cWv=10,pWv=100,_TS=e.object({limit:e.number().min(1).max(pWv).default(cWv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),NTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mWv=36,xWv=36,gWv=36,yWv=100,OWv=-2147483648,vWv=2147483647,SWv=1e4,hWv=2e3,bWv=-2147483648,zWv=2147483647,fWv=-2147483648,BWv=2147483647,TWv=-2147483648,IWv=2147483647,MTS=e.object({data:e.array(e.object({id:e.string().max(mWv),webhook_id:e.string().max(xWv),entity_id:e.string().max(gWv),event_type:e.string().max(yWv),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(OWv).max(vWv).nullish(),response_body:e.string().max(SWv).nullish(),error_message:e.string().max(hWv).nullish(),attempt:e.number().min(bWv).max(zWv),max_attempts:e.number().min(fWv).max(BWv),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(TWv).max(IWv).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),EWv=/^[a-z]{3,4}_[0-9a-f]{24}$/,UTS=e.object({id:e.stringFormat("resource-id",EWv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),PTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),DWv=36,RWv=36,_Wv=2048,NWv=500,MWv=64,UWv={},CTS=e.object({id:e.string().max(DWv),entity_id:e.string().max(RWv),url:e.string().max(_Wv),description:e.string().max(NWv).nullish(),secret:e.string().max(MWv),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(UWv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Webhook endpoint with full secret visible");var Ft={};W(Ft,{CheckWLFeatureParams:()=>FTS,CheckWLFeatureResponse:()=>kTS,CheckWLLimitParams:()=>jTS,CheckWLLimitResponse:()=>HTS,GetCurrentWLSubscriptionResponse:()=>wTS,GetWLSubscriptionPlansResponse:()=>ATS,UpdateWLSubscriptionBillingEmailBody:()=>LTS,UpdateWLSubscriptionBillingEmailResponse:()=>GTS,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>PWv,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>CWv});var PWv=0,CWv=null,wTS=e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e.string().describe("Subscription status"),billing_interval:e.string().nullable().describe("Current billing interval"),current_period_start:e.string().describe("Current period start date (ISO 8601)"),current_period_end:e.string().describe("Current period end date (ISO 8601)"),payment_provider:e.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e.boolean().optional().describe("Whether subscription charges and cancellation are managed by Shopify instead of Apollo's payment providers. May be omitted by API versions from before Shopify-managed billing."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e.boolean().describe("True only when this request created the trial subscription."),cancel_at:e.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e.object({last4:e.string().nullable(),brand:e.string().nullable(),has_card:e.boolean()}).nullable(),store_billing:e.union([e.object({connected_stores:e.number(),included_stores:e.number(),billable_extra_stores:e.number(),invoices_included_from_extra_stores:e.number(),extra_store_price_cents_monthly:e.number().nullable(),extra_store_price_cents_yearly:e.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e.null()]),usage:e.object({documents_count:e.number().describe("Documents created this period"),documents_limit:e.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e.number().default(PWv).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(CWv).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e.string().describe("Current period start date (ISO 8601)"),period_end:e.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),ATS=e.object({plans:e.array(e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),FTS=e.object({feature:e.string().describe("Feature slug to check")}),kTS=e.object({feature:e.string().describe("Feature being checked"),allowed:e.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),jTS=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),HTS=e.object({resource:e.string().describe("Resource being checked"),allowed:e.boolean().describe("Whether creating more of this resource is allowed"),usage:e.number().describe("Current usage count"),limit:e.number().nullable().describe("Current limit. Null means unlimited."),percentage:e.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),LTS=e.object({billing_email:e.email().nullable()}),GTS=e.object({billing_email:e.string().nullable()});var kt={};W(kt,{GetCurrentWhiteLabelResponse:()=>VTS,GetMyWhiteLabelResponse:()=>KTS});var VTS=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),KTS=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var ZTS=125e3,jt=null,_e=null,Ht=false;function AWv(d){jt=d;}function Lt(d){_e=d,d==null&&(Ht=false);}function qTS(){Ht||(Ht=true,console.warn("[space-invoices] setAccountId() fallback is deprecated for SDK instance requests. Pass accountId via the SDK constructor or per-call config instead."));}function WTS(){return _e}function YTS(){if(!jt)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return jt}function $TS(d){if(!d)return {};if(d instanceof Headers){let c={};return d.forEach((g,E)=>{c[E]=g;}),c}if(Array.isArray(d)){let c={};for(let[g,E]of d)c[g]=E;return c}return d}function QTS(d,c){if(c==null||c<=0)return {signal:d??void 0,cleanup:()=>{}};let g=new AbortController,E=()=>{g.abort(d?.reason);};if(d?.aborted)return E(),{signal:g.signal,cleanup:()=>{}};let z=setTimeout(()=>{g.abort(new Error(`SDK request timed out after ${c}ms`));},c),_=()=>{clearTimeout(z),d?.removeEventListener("abort",E);};return d?.addEventListener("abort",E,{once:true}),g.signal.addEventListener("abort",_,{once:true}),{signal:g.signal,cleanup:_}}async function h(d,c){let{timeoutMs:g,sdkConfig:E,...z}=c??{},_=E??YTS(),ge=await Promise.resolve(_.getAccessToken()),ye=`${_.baseUrl}${d}`,pe={...$TS(z.headers)};_.clientName&&Object.assign(pe,Ne(_.clientName)),ge&&(pe.Authorization=`Bearer ${ge}`);let ze=pe["x-account-id"]||pe["X-Account-Id"]||_.accountId||null;!ze&&_e&&(E&&qTS(),ze=_e),ze&&!pe["x-account-id"]&&!pe["X-Account-Id"]&&(pe["x-account-id"]=ze);let fe=QTS(z.signal,g===void 0?_.requestTimeoutMs??ZTS:g);try{let ve=await fetch(ye,{...z,headers:pe,signal:fe.signal});ve.status===401&&_.onUnauthorized&&_.onUnauthorized(ve);let Te,SeS=ve.headers.get("content-length"),Be=ve.headers.get("content-type"),heS=ve.headers.get("content-disposition");if(SeS==="0"||ve.status===204)Te=void 0;else if(Be?.includes("application/pdf")||Be?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||Be?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||Be?.includes("text/csv")||Be?.includes("application/octet-stream")||Be?.includes("application/zip")||Be?.includes("application/x-zip-compressed")||Be?.includes("image/"))Te=await ve.blob();else if(Be?.includes("application/xml")||Be?.includes("text/xml"))Te=heS?.toLowerCase().includes("attachment")?await ve.blob():await ve.text();else if(Be?.includes("text/html"))Te=await ve.text();else try{Te=await ve.json();}catch{Te=void 0;}return {data:Te,status:ve.status,headers:ve.headers}}finally{fe.cleanup();}}var JTS=1e3;function XTS(d){if(!d||typeof d!="object"||Array.isArray(d))return false;let c=d;return Array.isArray(c.data)&&!!c.pagination&&typeof c.pagination=="object"&&!Array.isArray(c.pagination)}function eIS(d){return Array.isArray(d)?"a bare array":d==null?String(d):typeof d!="object"?`a ${typeof d}`:Array.isArray(d.data)?"an object with a data array but no pagination object (e.g. { data, has_more } instead of { data, pagination: { next_cursor } })":"an object without a data array"}async function*tIS(d,c,g){let E=g?`listAll(${g})`:"listAll()",z=c?.next_cursor,_=0;for(;;){if(_>=1e3)throw new Error(`${E} exceeded the safety limit of 1000 pages without reaching the end of the result set. This is almost always a pagination bug (a cursor that never advances) rather than a genuinely huge result set. Narrow the request with additional filters (e.g. a date range or query) or paginate manually with next_cursor if you really need more than 1000 pages.`);_++;let ge=z,ye=await d({...c,next_cursor:ge});if(!XTS(ye))throw new Error(`${E} cannot paginate this method: its response is ${eIS(ye)}, not the expected { data: T[], pagination: { next_cursor } } shape. This usually means the endpoint does not support cursor-based pagination at all. Call the method directly (it already returns everything in one response) instead of iterating it with listAll().`);for(let pe of ye.data)yield pe;let he=ye.pagination.next_cursor;if(!he)return;if(he===ge)throw new Error(`${E} received the same cursor it just sent (${ge}) after ${_} page(s). The API's pagination cursor is not advancing, which means the server has a pagination bug, not that the result set ended. Stopping here without this error would silently return an incomplete list as if it were complete.`);z=he;}}var nIS=()=>"/account-webhooks",FWv=async(d,c)=>h(nIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/account-webhooks?${g}`:"/account-webhooks"},kWv=async(d,c)=>h(sIS(d),{...c,method:"GET"}),oIS=d=>`/account-webhooks/${d}`,jWv=async(d,c)=>h(oIS(d),{...c,method:"GET"}),iIS=d=>`/account-webhooks/${d}`,HWv=async(d,c,g)=>h(iIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),aIS=d=>`/account-webhooks/${d}`,LWv=async(d,c)=>h(aIS(d),{...c,method:"DELETE"}),rIS=d=>`/account-webhooks/${d}/test`,GWv=async(d,c)=>h(rIS(d),{...c,method:"POST"});var lIS=d=>`/account-webhooks/${d}/rotate-secret`,VWv=async(d,c)=>h(lIS(d),{...c,method:"POST"});async function dIS(d,c){return d(...c)}function ZWv(d){if(!d?.entity_id&&!d?.account_id&&!d?.request_id&&!d?.signal&&d?.timeoutMs===void 0&&!d?.sdkConfig)return;let c={};return (d.entity_id||d.account_id||d.request_id)&&(c.headers={...d.entity_id?{"x-entity-id":d.entity_id}:{},...d.account_id?{"x-account-id":d.account_id}:{},...d.request_id?{"X-Request-Id":d.request_id}:{}}),d.signal&&(c.signal=d.signal),d.timeoutMs!==void 0&&(c.timeoutMs=d.timeoutMs),d.sdkConfig&&(c.sdkConfig=d.sdkConfig),c}function b(d,c){let g=async(...z)=>{let _=z[z.length-1],ge=_&&typeof _=="object"&&("entity_id"in _||"account_id"in _||"request_id"in _||"signal"in _||"timeoutMs"in _||"sdkConfig"in _||Object.keys(_).length===0),ye,he;ge?(ye=z.slice(0,-1),he=ZWv(_)):ye=[...z];let pe=Math.max(0,d.length-1);for(;ye.length<pe;)ye.push(void 0);ye.push(he);let ze=await dIS(d,ye);if(ze.status>=200&&ze.status<300)return ze.data;let fe=new Error(`API error: ${ze.status}`);throw fe.status=ze.status,fe.data=ze.data,fe};return c===void 0?g:Object.assign(((...z)=>{let _=[...z];return _[c]??={},g(..._)}),{__sdkOptionsIndex:c})}function X(d){return Object.assign(async g=>{let{entity_id:E,account_id:z,request_id:_,signal:ge,timeoutMs:ye,sdkConfig:he,...pe}=g||{},ze=ZWv({entity_id:E,account_id:z,request_id:_,signal:ge,timeoutMs:ye,sdkConfig:he}),fe=await d(pe,ze);if(fe.status===200)return fe.data;let ve=new Error(`API error: ${fe.status}`);throw ve.status=fe.status,ve.data=fe.data,ve},{__sdkListMethod:true})}function KWv(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}function q(d,c){let g=Object.entries(d).map(([E,z])=>typeof z!="function"?[E,z]:[E,(..._)=>{let ge=c(),ye=_[_.length-1],he=z;if(he.__sdkListMethod){let pe=_[0];_[0]=pe&&typeof pe=="object"?{...pe,sdkConfig:ge}:{sdkConfig:ge};}else if(typeof he.__sdkOptionsIndex=="number"){let pe=_[he.__sdkOptionsIndex];_[he.__sdkOptionsIndex]=KWv(pe)?{...pe,sdkConfig:ge}:{sdkConfig:ge};}else KWv(ye)?_[_.length-1]={...ye,sdkConfig:ge}:_.push({sdkConfig:ge});return z(..._)}]);return Object.fromEntries(g)}var Gt={create:b(FWv,1),list:X(kWv),get:b(jWv,1),update:b(HWv,2),delete:b(LWv,1),testAccountWebhook:b(GWv,1),rotateAccountWebhookSecret:b(VWv,1)};var uIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/activities?${g}`:"/activities"},qWv=async(d,c)=>h(uIS(d),{...c,method:"GET"});var Vt={list:X(qWv)};var cIS=d=>`/advance-invoices/${d}/nav/retry`,WWv=async(d,c)=>h(cIS(d),{...c,method:"POST"}),pIS=d=>`/advance-invoices/${d}/nav/reconcile`,YWv=async(d,c)=>h(pIS(d),{...c,method:"POST"}),mIS=d=>`/advance-invoices/${d}/nav/annulment`,$Wv=async(d,c,g)=>h(mIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xIS=d=>`/advance-invoices/shareable/${d}`,QWv=async(d,c)=>h(xIS(d),{...c,method:"GET"}),gIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/html?${E}`:`/advance-invoices/shareable/${d}/html`},JWv=async(d,c,g)=>h(gIS(d,c),{...g,method:"GET"}),yIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/pdf?${E}`:`/advance-invoices/shareable/${d}/pdf`},XWv=async(d,c,g)=>h(yIS(d,c),{...g,method:"GET"}),OIS=d=>`/advance-invoices/shareable/${d}/eslog`,e6v=async(d,c)=>h(OIS(d),{...c,method:"GET"}),vIS=()=>"/advance-invoices",t6v=async(d,c)=>h(vIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),SIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/advance-invoices?${g}`:"/advance-invoices"},n6v=async(d,c)=>h(SIS(d),{...c,method:"GET"}),hIS=()=>"/advance-invoices/custom",s6v=async(d,c)=>h(hIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/${d}?${E}`:`/advance-invoices/${d}`},o6v=async(d,c,g)=>h(bIS(d,c),{...g,method:"GET"}),zIS=d=>`/advance-invoices/${d}`,i6v=async(d,c,g)=>h(zIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fIS=d=>`/advance-invoices/${d}/versions`,a6v=async(d,c)=>h(fIS(d),{...c,method:"GET"}),BIS=(d,c)=>`/advance-invoices/${d}/versions/${c}`,r6v=async(d,c,g)=>h(BIS(d,c),{...g,method:"GET"}),TIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/advance-invoices/render?${g}`:"/advance-invoices/render"},l6v=async(d,c,g)=>h(TIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),IIS=d=>`/advance-invoices/${d}/void`,d6v=async(d,c,g)=>h(IIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Kt={retryAdvanceInvoiceNav:b(WWv,1),reconcileAdvanceInvoiceNav:b(YWv,1),annulAdvanceInvoiceNav:b($Wv,2),getShareableAdvanceInvoice:b(QWv,1),getShareableAdvanceInvoiceHtml:b(JWv,2),getShareableAdvanceInvoicePdf:b(XWv,2),getShareableAdvanceInvoiceEslog:b(e6v,1),create:b(t6v,1),list:X(n6v),createCustom:b(s6v,1),get:b(o6v,2),update:b(i6v,2),getVersions:b(a6v,1),getVersion:b(r6v,2),renderAdvanceInvoicePreview:b(l6v,2),void:b(d6v,2)};var EIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/business-units?${g}`:"/business-units"},u6v=async(d,c)=>h(EIS(d),{...c,method:"GET"}),DIS=()=>"/business-units",c6v=async(d,c)=>h(DIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/business-units/${d}?${E}`:`/business-units/${d}`},p6v=async(d,c,g)=>h(RIS(d,c),{...g,method:"GET"}),_IS=d=>`/business-units/${d}`,m6v=async(d,c,g)=>h(_IS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),NIS=d=>`/business-units/${d}`,x6v=async(d,c)=>h(NIS(d),{...c,method:"DELETE"});var Zt={list:X(u6v),create:b(c6v,1),get:b(p6v,2),update:b(m6v,2),delete:b(x6v,1)};var MIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/company-registry/search?${g}`:"/company-registry/search"},g6v=async(d,c)=>h(MIS(d),{...c,method:"GET"}),UIS=()=>"/company-registry/countries",y6v=async d=>h(UIS(),{...d,method:"GET"});var qt={searchCompanyRegistry:b(g6v,1),list:b(y6v,0)};var PIS=d=>`/credit-notes/${d}/nav/retry`,O6v=async(d,c)=>h(PIS(d),{...c,method:"POST"}),CIS=d=>`/credit-notes/${d}/nav/reconcile`,v6v=async(d,c)=>h(CIS(d),{...c,method:"POST"}),wIS=d=>`/credit-notes/${d}/nav/annulment`,S6v=async(d,c,g)=>h(wIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),AIS=d=>`/credit-notes/shareable/${d}`,h6v=async(d,c)=>h(AIS(d),{...c,method:"GET"}),FIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/html?${E}`:`/credit-notes/shareable/${d}/html`},b6v=async(d,c,g)=>h(FIS(d,c),{...g,method:"GET"}),kIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/pdf?${E}`:`/credit-notes/shareable/${d}/pdf`},z6v=async(d,c,g)=>h(kIS(d,c),{...g,method:"GET"}),jIS=d=>`/credit-notes/shareable/${d}/eslog`,f6v=async(d,c)=>h(jIS(d),{...c,method:"GET"}),HIS=d=>`/credit-notes/${d}/ksef/recover`,B6v=async(d,c)=>h(HIS(d),{...c,method:"POST"}),LIS=d=>`/credit-notes/${d}/ksef`,T6v=async(d,c)=>h(LIS(d),{...c,method:"GET"}),GIS=d=>`/credit-notes/${d}/ksef/submit`,I6v=async(d,c)=>h(GIS(d),{...c,method:"POST"}),VIS=d=>`/credit-notes/${d}/ksef/upo`,E6v=async(d,c)=>h(VIS(d),{...c,method:"GET"}),KIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},D6v=async(d,c,g)=>h(KIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),ZIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},R6v=async(d,c)=>h(ZIS(d),{...c,method:"GET"}),qIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes/custom?${g}`:"/credit-notes/custom"},_6v=async(d,c,g)=>h(qIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),WIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/${d}?${E}`:`/credit-notes/${d}`},N6v=async(d,c,g)=>h(WIS(d,c),{...g,method:"GET"}),YIS=d=>`/credit-notes/${d}`,M6v=async(d,c,g)=>h(YIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$IS=d=>`/credit-notes/${d}/xrechnung`,U6v=async(d,c)=>h($IS(d),{...c,method:"GET"}),QIS=d=>`/credit-notes/${d}/zugferd`,P6v=async(d,c)=>h(QIS(d),{...c,method:"GET"}),JIS=d=>`/credit-notes/${d}/versions`,C6v=async(d,c)=>h(JIS(d),{...c,method:"GET"}),XIS=(d,c)=>`/credit-notes/${d}/versions/${c}`,w6v=async(d,c,g)=>h(XIS(d,c),{...g,method:"GET"}),eES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes/render?${g}`:"/credit-notes/render"},A6v=async(d,c,g)=>h(eES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),tES=d=>`/credit-notes/${d}/fiscalize`,F6v=async(d,c)=>h(tES(d),{...c,method:"POST"}),nES=d=>`/credit-notes/${d}/void`,k6v=async(d,c,g)=>h(nES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});function j6v(d){let c=b(d);function g(E,z,_){let ge=z&&typeof z=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(pe=>pe in z),ye=ge?void 0:z,he=ge?{...z,..._}:_;return c(E,ye??{},he??{})}return Object.assign(g,{__sdkOptionsIndex:2})}var Wt={retryCreditNoteNav:b(O6v,1),reconcileCreditNoteNav:b(v6v,1),annulCreditNoteNav:b(S6v,2),getShareableCreditNote:b(h6v,1),getShareableCreditNoteHtml:b(b6v,2),getShareableCreditNotePdf:b(z6v,2),getShareableCreditNoteEslog:b(f6v,1),recoverCreditNoteFromKsef:b(B6v,1),getCreditNoteKsefState:b(T6v,1),submitCreditNoteToKsef:b(I6v,1),getCreditNoteKsefUpo:b(E6v,1),create:j6v(D6v),list:X(R6v),createCustom:j6v(_6v),get:b(N6v,2),update:b(M6v,2),downloadCreditNoteXRechnung:b(U6v,1),downloadCreditNoteZugferd:b(P6v,1),getVersions:b(C6v,1),getVersion:b(w6v,2),renderCreditNotePreview:b(A6v,2),fiscalizeCreditNote:b(F6v,1),void:b(k6v,2)};var sES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/currency/exchange-rate?${g}`:"/currency/exchange-rate"},H6v=async(d,c)=>h(sES(d),{...c,method:"GET"});var Yt={getExchangeRate:b(H6v,1)};var oES=()=>"/customers",L6v=async(d,c)=>h(oES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/customers?${g}`:"/customers"},G6v=async(d,c)=>h(iES(d),{...c,method:"GET"}),aES=d=>`/customers/${d}`,V6v=async(d,c)=>h(aES(d),{...c,method:"GET"}),rES=d=>`/customers/${d}`,K6v=async(d,c,g)=>h(rES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),lES=d=>`/customers/${d}`,Z6v=async(d,c)=>h(lES(d),{...c,method:"DELETE"}),dES=d=>`/customers/${d}/restore`,q6v=async(d,c)=>h(dES(d),{...c,method:"POST"}),uES=d=>`/customers/${d}/permanent`,W6v=async(d,c)=>h(uES(d),{...c,method:"DELETE"});var $t={create:b(L6v,1),list:X(G6v),get:b(V6v,1),update:b(K6v,2),delete:b(Z6v,1),restoreCustomer:b(q6v,1),permanentDeleteCustomer:b(W6v,1)};var cES=d=>`/delivery-notes/shareable/${d}`,Y6v=async(d,c)=>h(cES(d),{...c,method:"GET"}),pES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/html?${E}`:`/delivery-notes/shareable/${d}/html`},$6v=async(d,c,g)=>h(pES(d,c),{...g,method:"GET"}),mES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/pdf?${E}`:`/delivery-notes/shareable/${d}/pdf`},Q6v=async(d,c,g)=>h(mES(d,c),{...g,method:"GET"}),xES=()=>"/delivery-notes",J6v=async(d,c)=>h(xES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/delivery-notes?${g}`:"/delivery-notes"},X6v=async(d,c)=>h(gES(d),{...c,method:"GET"}),yES=()=>"/delivery-notes/custom",e7v=async(d,c)=>h(yES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),OES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/${d}?${E}`:`/delivery-notes/${d}`},t7v=async(d,c,g)=>h(OES(d,c),{...g,method:"GET"}),vES=d=>`/delivery-notes/${d}`,n7v=async(d,c,g)=>h(vES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),SES=d=>`/delivery-notes/${d}/versions`,s7v=async(d,c)=>h(SES(d),{...c,method:"GET"}),hES=(d,c)=>`/delivery-notes/${d}/versions/${c}`,o7v=async(d,c,g)=>h(hES(d,c),{...g,method:"GET"}),bES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/delivery-notes/render?${g}`:"/delivery-notes/render"},i7v=async(d,c,g)=>h(bES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),zES=d=>`/delivery-notes/${d}/void`,a7v=async(d,c,g)=>h(zES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fES=d=>`/delivery-notes/${d}/sign`,r7v=async(d,c,g)=>h(fES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BES=d=>`/delivery-notes/${d}/quantities`,l7v=async(d,c,g)=>h(BES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Qt={getShareableDeliveryNote:b(Y6v,1),getShareableDeliveryNoteHtml:b($6v,2),getShareableDeliveryNotePdf:b(Q6v,2),create:b(J6v,1),list:X(X6v),createCustom:b(e7v,1),get:b(t7v,2),update:b(n7v,2),getVersions:b(s7v,1),getVersion:b(o7v,2),renderDeliveryNotePreview:b(i7v,2),void:b(a7v,2),signDeliveryNote:b(r7v,2),setDeliveryNoteQuantities:b(l7v,2)};var TES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/next-number?${g}`:"/documents/next-number"},d7v=async(d,c)=>h(TES(d),{...c,method:"GET"}),IES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/calculate?${g}`:"/documents/calculate"},u7v=async(d,c,g)=>h(IES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),EES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/finalize?${E}`:`/documents/${d}/finalize`},c7v=async(d,c,g,E)=>h(EES(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),DES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/fiscalize?${E}`:`/documents/${d}/fiscalize`},p7v=async(d,c,g,E)=>h(DES(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),RES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/register-output?${E}`:`/documents/${d}/register-output`},m7v=async(d,c,g)=>h(RES(d,c),{...g,method:"POST"}),_ES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}?${E}`:`/documents/${d}`},x7v=async(d,c,g)=>h(_ES(d,c),{...g,method:"DELETE"}),NES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/restore?${E}`:`/documents/${d}/restore`},g7v=async(d,c,g)=>h(NES(d,c),{...g,method:"POST"}),MES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/permanent?${E}`:`/documents/${d}/permanent`},y7v=async(d,c,g)=>h(MES(d,c),{...g,method:"DELETE"}),UES=d=>`/documents/${d}/send`,O7v=async(d,c,g)=>h(UES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PES=d=>`/documents/${d}/share`,v7v=async(d,c)=>h(PES(d),{...c,method:"POST"}),CES=d=>`/documents/${d}/share`,S7v=async(d,c)=>h(CES(d),{...c,method:"GET"}),wES=d=>`/documents/${d}/share`,h7v=async(d,c)=>h(wES(d),{...c,method:"DELETE"});var Jt=b(p7v,3);function AES(d){return !!d&&typeof d=="object"&&"type"in d}function Xt(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}var FES=async(d,c,g,E)=>{if(Xt(c))return Jt(d,void 0,void 0,c);if(AES(c))return Jt(d,void 0,c,g);let z=Xt(g)?void 0:g,_=Xt(g)?g:E;return Jt(d,c,z,_)},en={getNextNumber:b(d7v,1),calculateDocumentPreview:b(u7v,2),finalizeDocument:b(c7v,3),fiscalizeDocument:FES,registerDocumentOutput:b(m7v,2),delete:b(x7v,2),restoreDocument:b(g7v,2),permanentDeleteDocument:b(y7v,2),sendDocument:b(O7v,2),shareDocument:b(v7v,1),getShareableId:b(S7v,1),unshareDocument:b(h7v,1)};var kES=()=>"/e-invoicing/settings",b7v=async d=>h(kES(),{...d,method:"GET"}),jES=()=>"/e-invoicing/settings",z7v=async(d,c)=>h(jES(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HES=()=>"/e-invoicing/enrollment/sync",f7v=async d=>h(HES(),{...d,method:"POST"}),LES=()=>"/e-invoicing/enrollment/verification-link",B7v=async d=>h(LES(),{...d,method:"POST"}),GES=()=>"/e-invoicing/enrollment/authorize",T7v=async(d,c)=>h(GES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),VES=()=>"/e-invoicing/enrollment/disconnect",I7v=async d=>h(VES(),{...d,method:"POST"}),KES=()=>"/e-invoicing/france/directory/lookup",E7v=async(d,c)=>h(KES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ZES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/received-documents?${g}`:"/e-invoicing/received-documents"},D7v=async(d,c)=>h(ZES(d),{...c,method:"GET"}),qES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/e-invoicing/received-documents/${d}/download?${E}`:`/e-invoicing/received-documents/${d}/download`},R7v=async(d,c,g)=>h(qES(d,c),{...g,method:"GET"}),WES=d=>`/e-invoicing/received-documents/${d}/accept`,_7v=async(d,c)=>h(WES(d),{...c,method:"POST"}),YES=d=>`/e-invoicing/received-documents/${d}/lifecycle`,N7v=async(d,c,g)=>h(YES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$ES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/reporting-records?${g}`:"/e-invoicing/reporting-records"},M7v=async(d,c)=>h($ES(d),{...c,method:"GET"}),QES=d=>`/e-invoicing/reporting-records/${d}/retry`,U7v=async(d,c)=>h(QES(d),{...c,method:"POST"}),JES=()=>"/e-invoicing/supplier",P7v=async(d,c)=>h(JES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XES=()=>"/e-invoicing/supplier",C7v=async d=>h(XES(),{...d,method:"GET"});var eDS=()=>"/e-invoicing/recipients/check",w7v=async(d,c)=>h(eDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),tDS=()=>"/e-invoicing/customer-search",A7v=async(d,c)=>h(tDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),nDS=d=>`/e-invoicing/documents/${d}/send`,F7v=async(d,c,g)=>h(nDS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sDS=(d,c)=>`/e-invoicing/send/${d}/${c}`,k7v=async(d,c,g,E)=>h(sDS(d,c),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),oDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/submissions?${g}`:"/e-invoicing/submissions"},j7v=async(d,c)=>h(oDS(d),{...c,method:"GET"}),iDS=d=>`/e-invoicing/submissions/${d}`,tn=async(d,c)=>h(iDS(d),{...c,method:"GET"}),aDS=d=>`/e-invoicing/submissions/${d}/retry`,nn=async(d,c)=>h(aDS(d),{...c,method:"POST"});var sn={getEInvoicingSubmission:b(tn,1),retryEInvoicingSubmission:b(nn,1),list:b(b7v,0),update:b(z7v,1),syncEInvoicingEnrollment:b(f7v,0),create:b(B7v,0),createEInvoicingEnrollmentAuthorization:b(T7v,1),disconnectEInvoicingEnrollment:b(I7v,0),lookupFranceEInvoicingDirectory:b(E7v,1),listReceivedEInvoices:b(D7v,1),downloadReceivedEInvoice:b(R7v,2),acceptReceivedEInvoice:b(_7v,1),sendReceivedEInvoiceLifecycle:b(N7v,2),listFrenchEReportingRecords:b(M7v,1),retryFrenchEReportingRecord:b(U7v,1),registerEInvoicingSupplier:b(P7v,1),getEInvoicingSupplier:b(C7v,0),checkEInvoicingRecipient:b(w7v,1),searchEInvoicingCustomer:b(A7v,1),sendEInvoicingDocument:b(F7v,2),sendEInvoice:b(k7v,3),listEInvoicingSubmissions:b(j7v,1),get:b(tn,1),retryEInvoicingSubmissionById:b(nn,1)};var rDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/validate?${E}`:`/eslog/${d}/validate`},H7v=async(d,c,g)=>h(rDS(d,c),{...g,method:"POST"}),lDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/download?${E}`:`/eslog/${d}/download`},L7v=async(d,c,g)=>h(lDS(d,c),{...g,method:"GET"});var on={validate:b(H7v,2),download:b(L7v,2)};var dDS=()=>"/email/send",G7v=async(d,c)=>h(dDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var an={sendEmail:b(G7v,1)};var uDS=d=>`/entities/${d}/nav`,V7v=async(d,c)=>h(uDS(d),{...c,method:"GET"}),cDS=d=>`/entities/${d}/nav`,K7v=async(d,c,g)=>h(cDS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),pDS=d=>`/entities/${d}/nav/credentials`,Z7v=async(d,c,g)=>h(pDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),mDS=d=>`/entities/${d}/nav/credentials`,q7v=async(d,c)=>h(mDS(d),{...c,method:"DELETE"}),xDS=d=>`/entities/${d}/nav/credentials/verify`,W7v=async(d,c)=>h(xDS(d),{...c,method:"POST"}),gDS=d=>`/entities/${d}/ksef`,Y7v=async(d,c)=>h(gDS(d),{...c,method:"GET"}),yDS=d=>`/entities/${d}/ksef`,$7v=async(d,c,g)=>h(yDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),ODS=d=>`/entities/${d}/ksef/credentials`,Q7v=async(d,c,g)=>h(ODS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),vDS=d=>`/entities/${d}/ksef/credentials`,J7v=async(d,c)=>h(vDS(d),{...c,method:"DELETE"}),SDS=()=>"/entities",X7v=async(d,c)=>h(SDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),hDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/entities?${g}`:"/entities"},e9v=async(d,c)=>h(hDS(d),{...c,method:"GET"}),bDS=d=>`/entities/${d}`,t9v=async(d,c)=>h(bDS(d),{...c,method:"GET"}),zDS=d=>`/entities/${d}`,n9v=async(d,c,g)=>h(zDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fDS=d=>`/entities/${d}/enable`,s9v=async(d,c)=>h(fDS(d),{...c,method:"POST"}),BDS=d=>`/entities/${d}/disable`,o9v=async(d,c)=>h(BDS(d),{...c,method:"POST"}),TDS=d=>`/entities/${d}/email-sender`,i9v=async(d,c)=>h(TDS(d),{...c,method:"GET"}),IDS=d=>`/entities/${d}/email-sender`,a9v=async(d,c,g)=>h(IDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),EDS=d=>`/entities/${d}/email-sender`,r9v=async(d,c)=>h(EDS(d),{...c,method:"DELETE"}),DDS=d=>`/entities/${d}/email-sender/recheck`,l9v=async(d,c)=>h(DDS(d),{...c,method:"POST"});var rn={retrieveEntityNavSettings:b(V7v,1),modifyEntityNavSettings:b(K7v,2),storeEntityNavCredentials:b(Z7v,2),removeEntityNavCredentials:b(q7v,1),verifyEntityNavCredentials:b(W7v,1),getEntityKsefSetup:b(Y7v,1),putEntityKsefSettings:b($7v,2),putEntityKsefCredential:b(Q7v,2),removeEntityKsefCredential:b(J7v,1),create:b(X7v,1),list:X(e9v),get:b(t9v,1),update:b(n9v,2),enableEntity:b(s9v,1),disableEntity:b(o9v,1),getEntityEmailSender:b(i9v,1),putEntityEmailSender:b(a9v,2),deleteEntityEmailSender:b(r9v),recheckEntityEmailSender:b(l9v,1)};var RDS=()=>"/entities/api-keys",d9v=async d=>h(RDS(),{...d,method:"GET"}),_DS=()=>"/entities/api-keys",u9v=async(d,c)=>h(_DS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),NDS=d=>`/entities/api-keys/${d}`,c9v=async(d,c)=>h(NDS(d),{...c,method:"DELETE"}),MDS=()=>"/entities/api-keys/revoke-integration",p9v=async d=>h(MDS(),{...d,method:"POST"});var ln={listEntityApiKeys:b(d9v,0),create:b(u9v,1),delete:b(c9v,1),revokeEntityApiKeyIntegration:b(p9v,0)};var UDS=()=>"/entities/invitations",m9v=async d=>h(UDS(),{...d,method:"GET"}),PDS=d=>`/entities/invitations/${d}`,x9v=async(d,c)=>h(PDS(d),{...c,method:"GET"}),CDS=d=>`/entities/invitations/${d}`,g9v=async(d,c)=>h(CDS(d),{...c,method:"DELETE"}),wDS=d=>`/entities/invitations/${d}/resend`,y9v=async(d,c)=>h(wDS(d),{...c,method:"POST"}),ADS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invitations/preview?${g}`:"/invitations/preview"},O9v=async(d,c)=>h(ADS(d),{...c,method:"GET"}),FDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invitations/accept?${g}`:"/invitations/accept"},v9v=async(d,c,g)=>h(FDS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var dn={listEntityInvitations:b(m9v,0),getEntityInvitation:b(x9v,1),cancelEntityInvitation:b(g9v,1),resendEntityInvitation:b(y9v,1),preview:b(O9v,1),acceptEntityInvitation:b(v9v,2)};var kDS=()=>"/stats/query",S9v=async(d,c)=>h(kDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var un={queryEntityStats:b(S9v,1)};var jDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/entities/users?${g}`:"/entities/users"},h9v=async(d,c)=>h(jDS(d),{...c,method:"GET"}),HDS=()=>"/entities/users",b9v=async(d,c)=>h(HDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LDS=()=>"/entities/users/access",z9v=async d=>h(LDS(),{...d,method:"GET"}),GDS=d=>`/entities/users/${d}`,f9v=async(d,c,g)=>h(GDS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),VDS=d=>`/entities/users/${d}`,B9v=async(d,c)=>h(VDS(d),{...c,method:"DELETE"}),KDS=d=>`/entities/users/${d}/token`,T9v=async(d,c,g)=>h(KDS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var cn={list:X(h9v),addEntityUser:b(b9v,1),getAccess:b(z9v,0),update:b(f9v,2),removeEntityUser:b(B9v,1),generateEntityUserToken:b(T9v,2)};var ZDS=d=>`/estimates/shareable/${d}`,I9v=async(d,c)=>h(ZDS(d),{...c,method:"GET"}),qDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/html?${E}`:`/estimates/shareable/${d}/html`},E9v=async(d,c,g)=>h(qDS(d,c),{...g,method:"GET"}),WDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/pdf?${E}`:`/estimates/shareable/${d}/pdf`},D9v=async(d,c,g)=>h(WDS(d,c),{...g,method:"GET"}),YDS=d=>`/estimates/shareable/${d}/eslog`,R9v=async(d,c)=>h(YDS(d),{...c,method:"GET"}),$DS=()=>"/estimates",_9v=async(d,c)=>h($DS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/estimates?${g}`:"/estimates"},N9v=async(d,c)=>h(QDS(d),{...c,method:"GET"}),JDS=()=>"/estimates/custom",M9v=async(d,c)=>h(JDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/${d}?${E}`:`/estimates/${d}`},U9v=async(d,c,g)=>h(XDS(d,c),{...g,method:"GET"}),eRS=d=>`/estimates/${d}`,P9v=async(d,c,g)=>h(eRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),tRS=d=>`/estimates/${d}/versions`,C9v=async(d,c)=>h(tRS(d),{...c,method:"GET"}),nRS=(d,c)=>`/estimates/${d}/versions/${c}`,w9v=async(d,c,g)=>h(nRS(d,c),{...g,method:"GET"}),sRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/estimates/render?${g}`:"/estimates/render"},A9v=async(d,c,g)=>h(sRS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var pn={getShareableEstimate:b(I9v,1),getShareableEstimateHtml:b(E9v,2),getShareableEstimatePdf:b(D9v,2),getShareableEstimateEslog:b(R9v,1),create:b(_9v,1),list:X(N9v),createCustom:b(M9v,1),get:b(U9v,2),update:b(P9v,2),getVersions:b(C9v,1),getVersion:b(w9v,2),renderEstimatePreview:b(A9v,2)};var oRS=()=>"/expenses",F9v=async(d,c)=>h(oRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses?${g}`:"/expenses"},k9v=async(d,c)=>h(iRS(d),{...c,method:"GET"}),aRS=()=>"/expenses/custom",j9v=async(d,c)=>h(aRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),rRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/export?${g}`:"/expenses/export"},H9v=async(d,c)=>h(rRS(d),{...c,method:"GET"}),lRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/report?${g}`:"/expenses/report"},L9v=async(d,c)=>h(lRS(d),{...c,method:"GET"}),dRS=()=>"/expenses/recognition/settings",G9v=async d=>h(dRS(),{...d,method:"GET"}),uRS=()=>"/expenses/recognition/settings",V9v=async(d,c)=>h(uRS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),cRS=()=>"/expenses/recognition/backfill",K9v=async(d,c)=>h(cRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),pRS=()=>"/expenses/recognitions",Z9v=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(pRS(),{...c,method:"POST",body:g})},mRS=d=>`/expenses/recognitions/${d}`,q9v=async(d,c)=>h(mRS(d),{...c,method:"GET"}),xRS=d=>`/expenses/recognitions/${d}/retry`,W9v=async(d,c)=>h(xRS(d),{...c,method:"POST"}),gRS=()=>"/expenses/inbound-email",Y9v=async d=>h(gRS(),{...d,method:"GET"}),yRS=()=>"/expenses/inbound-email",$9v=async d=>h(yRS(),{...d,method:"POST"}),ORS=()=>"/expenses/inbound-email",Q9v=async d=>h(ORS(),{...d,method:"DELETE"}),vRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/inbound-email/messages?${g}`:"/expenses/inbound-email/messages"},J9v=async(d,c)=>h(vRS(d),{...c,method:"GET"}),SRS=()=>"/expenses/imports/shareable/preview",X9v=async(d,c)=>h(SRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),hRS=()=>"/expenses/imports/shareable",e8v=async(d,c)=>h(hRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bRS=d=>`/expenses/${d}/recognition`,t8v=async(d,c)=>h(bRS(d),{...c,method:"GET"}),zRS=d=>`/expenses/${d}`,n8v=async(d,c)=>h(zRS(d),{...c,method:"GET"}),fRS=d=>`/expenses/${d}`,s8v=async(d,c,g)=>h(fRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BRS=d=>`/expenses/${d}`,o8v=async(d,c)=>h(BRS(d),{...c,method:"DELETE"}),TRS=d=>`/expenses/${d}/void`,i8v=async(d,c)=>h(TRS(d),{...c,method:"POST"}),IRS=d=>`/expenses/${d}/restore`,a8v=async(d,c)=>h(IRS(d),{...c,method:"POST"}),ERS=d=>`/expenses/${d}/attachments`,r8v=async(d,c,g)=>{let E=new FormData;return c.file!==void 0&&E.append("file",c.file),h(ERS(d),{...g,method:"POST",body:E})},DRS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/expenses/${d}/attachments?${E}`:`/expenses/${d}/attachments`},l8v=async(d,c,g)=>h(DRS(d,c),{...g,method:"GET"}),RRS=(d,c)=>`/expenses/${d}/attachments/${c}`,d8v=async(d,c,g)=>h(RRS(d,c),{...g,method:"DELETE"}),_RS=d=>`/expenses/${d}/payments`,u8v=async(d,c)=>h(_RS(d),{...c,method:"GET"}),NRS=d=>`/expenses/${d}/payments`,c8v=async(d,c,g)=>h(NRS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var mn={create:b(F9v,1),list:X(k9v),createCustom:b(j9v,1),exportExpenses:b(H9v,1),getExpenseCategoryReport:b(L9v,1),getRecognitionSettings:b(G9v,0),updateRecognitionSettings:b(V9v,1),backfillExpenseRecognition:b(K9v,1),createRecognition:b(Z9v,1),getRecognition:b(q9v,1),retryRecognition:b(W9v,1),getExpenseInboundEmail:b(Y9v,0),rotateExpenseInboundEmail:b($9v,0),disableExpenseInboundEmail:b(Q9v,0),listExpenseInboundEmailMessages:b(J9v,1),previewImportFromShareableLink:b(X9v,1),importFromShareableLink:b(e8v,1),getLatestRecognition:b(t8v,1),get:b(n8v,1),update:b(s8v,2),delete:b(o8v,1),void:b(i8v,1),restoreExpense:b(a8v,1),uploadExpenseAttachment:b(r8v,2),getExpenseAttachments:b(l8v,2),deleteExpenseAttachment:b(d8v,2),getExpensePayments:b(u8v,1),createExpensePayment:b(c8v,2)};var MRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export?${g}`:"/documents/export"},p8v=async(d,c)=>h(MRS(d),{...c,method:"GET"}),URS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/sales-per-item?${g}`:"/documents/export/sales-per-item"},m8v=async(d,c)=>h(URS(d),{...c,method:"GET"}),PRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/inventory?${g}`:"/documents/export/inventory"},x8v=async(d,c)=>h(PRS(d),{...c,method:"GET"}),CRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/revenue-by-category?${g}`:"/documents/export/revenue-by-category"},g8v=async(d,c)=>h(CRS(d),{...c,method:"GET"}),wRS=()=>"/documents/export/pdf",y8v=async(d,c)=>h(wRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ARS=d=>`/documents/export/pdf/${d}`,O8v=async(d,c)=>h(ARS(d),{...c,method:"GET"}),FRS=d=>`/documents/export/pdf/${d}/download`,v8v=async(d,c)=>h(FRS(d),{...c,method:"GET"}),kRS=()=>"/documents/export/eslog",S8v=async(d,c)=>h(kRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),jRS=d=>`/documents/export/eslog/${d}`,h8v=async(d,c)=>h(jRS(d),{...c,method:"GET"}),HRS=d=>`/documents/export/eslog/${d}/download`,b8v=async(d,c)=>h(HRS(d),{...c,method:"GET"});var xn={exportDocuments:b(p8v,1),exportSalesPerItem:b(m8v,1),exportInventory:b(x8v,1),exportRevenueByCategory:b(g8v,1),startPdfExport:b(y8v,1),getPdfStatus:b(O8v,1),downloadPdfExport:b(v8v,1),startEslogExport:b(S8v,1),getEslogStatus:b(h8v,1),downloadEslogExport:b(b8v,1)};var LRS=()=>"/files",z8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),g.append("category",d.category),d.document_id!==void 0&&d.document_id!==null&&g.append("document_id",d.document_id),d.account_payable_id!==void 0&&g.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&g.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&g.append("expense_id",d.expense_id),h(LRS(),{...c,method:"POST",body:g})},GRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/files?${g}`:"/files"},f8v=async(d,c)=>h(GRS(d),{...c,method:"GET"}),VRS=d=>`/files/${d}`,B8v=async(d,c)=>h(VRS(d),{...c,method:"GET"}),KRS=d=>`/files/${d}`,T8v=async(d,c)=>h(KRS(d),{...c,method:"DELETE"});var gn={uploadFile:b(z8v,1),list:X(f8v),get:b(B8v,1),delete:b(T8v,1)};var ZRS=()=>"/fiscalization/fina/settings/certificate",I8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),d.passphrase!==void 0&&g.append("passphrase",d.passphrase),h(ZRS(),{...c,method:"POST",body:g})},qRS=()=>"/fiscalization/fina/settings/certificate",E8v=async d=>h(qRS(),{...d,method:"GET"}),WRS=()=>"/fiscalization/fina/settings/certificate",D8v=async d=>h(WRS(),{...d,method:"DELETE"});var yn={uploadFinaCertificate:b(I8v,1),getFinaCertificate:b(E8v,0),delete:b(D8v,0)};var YRS=d=>`/fiscalization/fina/premises/${d}/devices`,R8v=async(d,c)=>h(YRS(d),{...c,method:"GET"}),$RS=d=>`/fiscalization/fina/premises/${d}/devices`,_8v=async(d,c,g)=>h($RS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),QRS=d=>`/fiscalization/fina/devices/${d}`,N8v=async(d,c)=>h(QRS(d),{...c,method:"GET"}),JRS=d=>`/fiscalization/fina/devices/${d}`,M8v=async(d,c,g)=>h(JRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),XRS=d=>`/fiscalization/fina/devices/${d}`,U8v=async(d,c)=>h(XRS(d),{...c,method:"DELETE"});var On={listFinaDevices:b(R8v,1),registerFinaDevice:b(_8v,2),getFinaDevice:b(N8v,1),update:b(M8v,2),delete:b(U8v,1)};var e_S=()=>"/fiscalization/fina/premises",P8v=async d=>h(e_S(),{...d,method:"GET"}),t_S=()=>"/fiscalization/fina/premises",C8v=async(d,c)=>h(t_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),n_S=d=>`/fiscalization/fina/premises/${d}`,w8v=async(d,c)=>h(n_S(d),{...c,method:"GET"}),s_S=d=>`/fiscalization/fina/premises/${d}`,A8v=async(d,c,g)=>h(s_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),o_S=d=>`/fiscalization/fina/premises/${d}`,F8v=async(d,c)=>h(o_S(d),{...c,method:"DELETE"});var vn={listFinaPremises:b(P8v,0),create:b(C8v,1),getFinaPremise:b(w8v,1),update:b(A8v,2),delete:b(F8v,1)};var i_S=()=>"/fiscalization/fina/settings",k8v=async d=>h(i_S(),{...d,method:"GET"}),a_S=()=>"/fiscalization/fina/settings",j8v=async(d,c)=>h(a_S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Sn={list:b(k8v,0),update:b(j8v,1)};var r_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/financial-categories?${g}`:"/financial-categories"},H8v=async(d,c)=>h(r_S(d),{...c,method:"GET"}),l_S=()=>"/financial-categories",L8v=async(d,c)=>h(l_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),d_S=d=>`/financial-categories/${d}`,G8v=async(d,c,g)=>h(d_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),u_S=d=>`/financial-categories/${d}`,V8v=async(d,c)=>h(u_S(d),{...c,method:"DELETE"}),c_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/financial-categories/revenue-summary?${g}`:"/financial-categories/revenue-summary"},K8v=async(d,c)=>h(c_S(d),{...c,method:"GET"}),p_S=()=>"/financial-categories/document-items/batch",Z8v=async(d,c)=>h(p_S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),m_S=d=>`/financial-categories/document-items/${d}`,q8v=async(d,c,g)=>h(m_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var hn={list:X(H8v),create:b(L8v,1),update:b(G8v,2),delete:b(V8v,1),getRevenueByFinancialCategory:b(K8v,1),updateDocumentItemFinancialCategories:b(Z8v,1),updateDocumentItemFinancialCategory:b(q8v,2)};var x_S=()=>"/fiscalization/furs/settings/certificate",W8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),d.passphrase!==void 0&&g.append("passphrase",d.passphrase),h(x_S(),{...c,method:"POST",body:g})},g_S=()=>"/fiscalization/furs/settings/certificate",Y8v=async d=>h(g_S(),{...d,method:"GET"}),y_S=()=>"/fiscalization/furs/settings/certificate",$8v=async d=>h(y_S(),{...d,method:"DELETE"});var bn={uploadFursCertificate:b(W8v,1),getFursCertificate:b(Y8v,0),delete:b($8v,0)};var O_S=d=>`/fiscalization/furs/premises/${d}/devices`,Q8v=async(d,c)=>h(O_S(d),{...c,method:"GET"}),v_S=d=>`/fiscalization/furs/premises/${d}/devices`,J8v=async(d,c,g)=>h(v_S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),S_S=d=>`/fiscalization/furs/devices/${d}`,X8v=async(d,c)=>h(S_S(d),{...c,method:"GET"}),h_S=d=>`/fiscalization/furs/devices/${d}`,eYv=async(d,c,g)=>h(h_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var zn={listFursElectronicDevices:b(Q8v,1),registerFursElectronicDevice:b(J8v,2),getFursElectronicDevice:b(X8v,1),update:b(eYv,2)};var b_S=()=>"/fiscalization/furs/internal-act/report.pdf",tYv=async d=>h(b_S(),{...d,method:"GET"}),z_S=()=>"/fiscalization/furs/internal-act/report.docx",nYv=async d=>h(z_S(),{...d,method:"GET"});var fn={generateFursInternalActPdf:b(tYv,0),generateFursInternalActDocx:b(nYv,0)};var f_S=()=>"/fiscalization/furs/premises",sYv=async d=>h(f_S(),{...d,method:"GET"}),B_S=d=>`/fiscalization/furs/premises/${d}`,oYv=async(d,c)=>h(B_S(d),{...c,method:"GET"}),T_S=d=>`/fiscalization/furs/premises/${d}`,iYv=async(d,c,g)=>h(T_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),I_S=()=>"/fiscalization/furs/premises/real-estate",aYv=async(d,c)=>h(I_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),E_S=()=>"/fiscalization/furs/premises/movable",rYv=async(d,c)=>h(E_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),D_S=d=>`/fiscalization/furs/premises/${d}/close`,lYv=async(d,c)=>h(D_S(d),{...c,method:"POST"});var Bn={listFursBusinessPremises:b(sYv,0),getFursBusinessPremise:b(oYv,1),update:b(iYv,2),registerFursRealEstatePremise:b(aYv,1),registerFursMovablePremise:b(rYv,1),closeFursBusinessPremise:b(lYv,1)};var R_S=()=>"/fiscalization/furs/settings",dYv=async d=>h(R_S(),{...d,method:"GET"}),__S=()=>"/fiscalization/furs/settings",uYv=async(d,c)=>h(__S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Tn={list:b(dYv,0),update:b(uYv,1)};var N_S=()=>"/health/live",cYv=async d=>h(N_S(),{...d,method:"GET"}),M_S=()=>"/health/ready",pYv=async d=>h(M_S(),{...d,method:"GET"}),U_S=()=>"/health",mYv=async d=>h(U_S(),{...d,method:"GET"});var In={livenessCheck:b(cYv,0),readinessCheck:b(pYv,0),healthCheck:b(mYv,0)};var P_S=d=>`/invoices/${d}/nav/retry`,xYv=async(d,c)=>h(P_S(d),{...c,method:"POST"}),C_S=d=>`/invoices/${d}/nav/reconcile`,gYv=async(d,c)=>h(C_S(d),{...c,method:"POST"}),w_S=d=>`/invoices/${d}/nav/annulment`,yYv=async(d,c,g)=>h(w_S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),A_S=d=>`/invoices/shareable/${d}`,OYv=async(d,c)=>h(A_S(d),{...c,method:"GET"}),F_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/html?${E}`:`/invoices/shareable/${d}/html`},vYv=async(d,c,g)=>h(F_S(d,c),{...g,method:"GET"}),k_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/pdf?${E}`:`/invoices/shareable/${d}/pdf`},SYv=async(d,c,g)=>h(k_S(d,c),{...g,method:"GET"}),j_S=d=>`/invoices/shareable/${d}/eslog`,hYv=async(d,c)=>h(j_S(d),{...c,method:"GET"}),H_S=d=>`/invoices/${d}/ksef/recover`,bYv=async(d,c)=>h(H_S(d),{...c,method:"POST"}),L_S=d=>`/invoices/${d}/ksef`,zYv=async(d,c)=>h(L_S(d),{...c,method:"GET"}),G_S=d=>`/invoices/${d}/ksef/submit`,fYv=async(d,c)=>h(G_S(d),{...c,method:"POST"}),V_S=d=>`/invoices/${d}/ksef/upo`,BYv=async(d,c)=>h(V_S(d),{...c,method:"GET"}),K_S=()=>"/invoices",TYv=async(d,c)=>h(K_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Z_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invoices?${g}`:"/invoices"},IYv=async(d,c)=>h(Z_S(d),{...c,method:"GET"}),q_S=()=>"/invoices/custom",EYv=async(d,c)=>h(q_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),W_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/${d}?${E}`:`/invoices/${d}`},DYv=async(d,c,g)=>h(W_S(d,c),{...g,method:"GET"}),Y_S=d=>`/invoices/${d}`,RYv=async(d,c,g)=>h(Y_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$_S=d=>`/invoices/${d}/credit-options`,_Yv=async(d,c)=>h($_S(d),{...c,method:"GET"}),Q_S=d=>`/invoices/${d}/xrechnung`,NYv=async(d,c)=>h(Q_S(d),{...c,method:"GET"}),J_S=d=>`/invoices/${d}/zugferd`,MYv=async(d,c)=>h(J_S(d),{...c,method:"GET"}),X_S=d=>`/invoices/${d}/versions`,UYv=async(d,c)=>h(X_S(d),{...c,method:"GET"}),eNS=(d,c)=>`/invoices/${d}/versions/${c}`,PYv=async(d,c,g)=>h(eNS(d,c),{...g,method:"GET"}),tNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invoices/render?${g}`:"/invoices/render"},CYv=async(d,c,g)=>h(tNS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),nNS=d=>`/invoices/${d}/void`,wYv=async(d,c,g)=>h(nNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sNS=d=>`/invoices/${d}/fiscalize`,AYv=async(d,c)=>h(sNS(d),{...c,method:"POST"}),oNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/html?${E}`:`/documents/${d}/html`},FYv=async(d,c,g)=>h(oNS(d,c),{...g,method:"GET"}),iNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/pdf?${E}`:`/documents/${d}/pdf`},kYv=async(d,c,g)=>h(iNS(d,c),{...g,method:"GET"});function En(d,c){let g=URL.createObjectURL(d),E=document.createElement("a");E.href=g,E.download=c,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(g);}var jYv=b(kYv,2),aNS=Object.assign(async(d,c,g,E)=>{let z=await jYv(d,g,E);En(z,c);},{__sdkOptionsIndex:3}),Dn={retryInvoiceNav:b(xYv,1),reconcileInvoiceNav:b(gYv,1),annulInvoiceNav:b(yYv,2),getShareableInvoice:b(OYv,1),getShareableInvoiceHtml:b(vYv,2),getShareableInvoicePdf:b(SYv,2),getShareableInvoiceEslog:b(hYv,1),recoverInvoiceFromKsef:b(bYv,1),getInvoiceKsefState:b(zYv,1),submitInvoiceToKsef:b(fYv,1),getInvoiceKsefUpo:b(BYv,1),create:b(TYv,1),list:X(IYv),createCustom:b(EYv,1),get:b(DYv,2),update:b(RYv,2),getCreditOptions:b(_Yv,1),downloadInvoiceXRechnung:b(NYv,1),downloadInvoiceZugferd:b(MYv,1),getVersions:b(UYv,1),getVersion:b(PYv,2),renderInvoicePreview:b(CYv,2),void:b(wYv,2),fiscalizeInvoice:b(AYv,1),renderHtml:b(FYv,2),renderPdf:jYv,downloadPdf:aNS};var rNS=()=>"/items",HYv=async(d,c)=>h(rNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),lNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/items?${g}`:"/items"},LYv=async(d,c)=>h(lNS(d),{...c,method:"GET"}),dNS=()=>"/items/categories",GYv=async d=>h(dNS(),{...d,method:"GET"}),uNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/items/import/template?${g}`:"/items/import/template"},VYv=async(d,c)=>h(uNS(d),{...c,method:"GET"}),cNS=()=>"/items/import/preview",KYv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(cNS(),{...c,method:"POST",body:g})},pNS=()=>"/items/import",ZYv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(pNS(),{...c,method:"POST",body:g})},mNS=d=>`/items/${d}`,qYv=async(d,c,g)=>h(mNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xNS=d=>`/items/${d}`,WYv=async(d,c)=>h(xNS(d),{...c,method:"DELETE"}),gNS=d=>`/items/${d}/restore`,YYv=async(d,c)=>h(gNS(d),{...c,method:"POST"}),yNS=d=>`/items/${d}/permanent`,$Yv=async(d,c)=>h(yNS(d),{...c,method:"DELETE"}),ONS=d=>`/items/${d}/inventory`,QYv=async(d,c)=>h(ONS(d),{...c,method:"GET"}),vNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/items/${d}/inventory/movements?${E}`:`/items/${d}/inventory/movements`},JYv=async(d,c,g)=>h(vNS(d,c),{...g,method:"GET"}),SNS=d=>`/items/${d}/inventory/movements`,XYv=async(d,c,g)=>h(SNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),hNS=(d,c)=>`/items/${d}/inventory/movements/${c}`,e$v=async(d,c,g)=>h(hNS(d,c),{...g,method:"DELETE"});var Rn={create:b(HYv,1),list:X(LYv),categories:b(GYv,0),getItemsImportTemplate:b(VYv,1),preview:b(KYv,1),importItems:b(ZYv,1),update:b(qYv,2),delete:b(WYv,1),restoreItem:b(YYv,1),permanentDeleteItem:b($Yv,1),getItemInventory:b(QYv,1),getItemInventoryMovements:b(JYv,2),createItemInventoryMovement:b(XYv,2),deleteItemInventoryMovement:b(e$v,2)};var bNS=()=>"/legacy-migration/auth",t$v=async(d,c)=>h(bNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/legacy-migration/organizations/${d}?${E}`:`/legacy-migration/organizations/${d}`},n$v=async(d,c,g)=>h(zNS(d,c),{...g,method:"GET"}),fNS=()=>"/legacy-migration/jobs",s$v=async(d,c)=>h(fNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BNS=()=>"/legacy-migration/jobs",o$v=async d=>h(BNS(),{...d,method:"GET"}),TNS=d=>`/legacy-migration/jobs/${d}`,i$v=async(d,c)=>h(TNS(d),{...c,method:"GET"});var _n={legacyMigrationAuth:b(t$v,1),getLegacyMigrationOrganization:b(n$v,2),create:b(s$v,1),listMigrationJobs:b(o$v,0),getMigrationJob:b(i$v,1)};var INS=()=>"/locale/detect",a$v=async d=>h(INS(),{...d,method:"GET"});var Nn={detectLocale:b(a$v,0)};var ENS=()=>"/order-integrations/shopify/authorize",r$v=async(d,c)=>h(ENS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DNS=()=>"/order-integrations/woocommerce/authorize",l$v=async(d,c)=>h(DNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RNS=()=>"/order-integrations/magento/authorize",d$v=async(d,c)=>h(RNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),_NS=d=>`/order-integrations/magento/authorizations/${d}`,u$v=async(d,c)=>h(_NS(d),{...c,method:"GET"}),NNS=()=>"/order-integrations/shopify/resume-install",c$v=async(d,c)=>h(NNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MNS=d=>`/order-integrations/${d}/promote-shopify-billing`,p$v=async(d,c)=>h(MNS(d),{...c,method:"POST"}),UNS=d=>`/order-integrations/${d}/sync-shopify`,m$v=async(d,c,g)=>h(UNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PNS=d=>`/order-integrations/${d}/sync`,x$v=async(d,c,g)=>h(PNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),CNS=()=>"/order-integrations/custom/connect",g$v=async(d,c)=>h(CNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wNS=d=>`/order-integrations/${d}/custom/rotate-secret`,y$v=async(d,c)=>h(wNS(d),{...c,method:"POST"}),ANS=d=>`/order-integrations/${d}/orders`,O$v=async(d,c,g)=>h(ANS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),FNS=()=>"/order-integrations",v$v=async(d,c)=>h(FNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),kNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/order-integrations?${g}`:"/order-integrations"},S$v=async(d,c)=>h(kNS(d),{...c,method:"GET"}),jNS=d=>`/order-integrations/${d}`,h$v=async(d,c)=>h(jNS(d),{...c,method:"GET"}),HNS=d=>`/order-integrations/${d}`,b$v=async(d,c,g)=>h(HNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),LNS=d=>`/order-integrations/${d}`,z$v=async(d,c)=>h(LNS(d),{...c,method:"DELETE"});var Mn={authorizeShopify:b(r$v,1),authorizeWooCommerce:b(l$v,1),authorizeMagento:b(d$v,1),getMagentoAuthorization:b(u$v,1),resumeShopifyInstall:b(c$v,1),promoteShopifyBilling:b(p$v,1),syncShopifyOrders:b(m$v,2),syncOrderIntegration:b(x$v,2),connectCustomStore:b(g$v,1),rotateCustomStoreSecret:b(y$v,1),pushCustomStoreOrder:b(O$v,2),create:b(v$v,1),list:X(S$v),get:b(h$v,1),update:b(b$v,2),delete:b(z$v,1)};var GNS=()=>"/orders",f$v=async(d,c)=>h(GNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),VNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/orders?${g}`:"/orders"},B$v=async(d,c)=>h(VNS(d),{...c,method:"GET"}),KNS=d=>`/orders/${d}`,T$v=async(d,c)=>h(KNS(d),{...c,method:"GET"}),ZNS=d=>`/orders/${d}`,I$v=async(d,c,g)=>h(ZNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),qNS=d=>`/orders/${d}`,E$v=async(d,c)=>h(qNS(d),{...c,method:"DELETE"}),WNS=d=>`/orders/${d}/process`,D$v=async(d,c)=>h(WNS(d),{...c,method:"POST"}),YNS=d=>`/orders/${d}/cancel`,R$v=async(d,c)=>h(YNS(d),{...c,method:"POST"}),$NS=d=>`/orders/${d}/reissue`,_$v=async(d,c)=>h($NS(d),{...c,method:"POST"});var Un={create:b(f$v,1),list:X(B$v),get:b(T$v,1),update:b(I$v,2),delete:b(E$v,1),processOrder:b(D$v,1),cancelOrder:b(R$v,1),reissueOrder:b(_$v,1)};var QNS=()=>"/payment-reminders/send",N$v=async(d,c)=>h(QNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payment-reminders?${g}`:"/payment-reminders"},M$v=async(d,c)=>h(JNS(d),{...c,method:"GET"});var Pn={sendPaymentReminder:b(N$v,1),list:X(M$v)};var XNS=()=>"/payments",U$v=async(d,c)=>h(XNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),eMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payments?${g}`:"/payments"},P$v=async(d,c)=>h(eMS(d),{...c,method:"GET"}),tMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/payments/${d}?${E}`:`/payments/${d}`},C$v=async(d,c,g)=>h(tMS(d,c),{...g,method:"GET"}),nMS=d=>`/payments/${d}`,w$v=async(d,c,g)=>h(nMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sMS=d=>`/payments/${d}`,A$v=async(d,c)=>h(sMS(d),{...c,method:"DELETE"}),oMS=d=>`/payments/${d}/restore`,F$v=async(d,c)=>h(oMS(d),{...c,method:"POST"}),iMS=d=>`/payments/${d}/permanent`,k$v=async(d,c)=>h(iMS(d),{...c,method:"DELETE"}),aMS=()=>"/bank-imports",j$v=async(d,c)=>{let g=new FormData;return g.append("file",d.file),d.source_format!==void 0&&d.source_format!==null&&g.append("source_format",d.source_format),d.column_mapping!==void 0&&d.column_mapping!==null&&g.append("column_mapping",d.column_mapping),d.account_iban!==void 0&&d.account_iban!==null&&g.append("account_iban",d.account_iban),h(aMS(),{...c,method:"POST",body:g})},rMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/bank-imports?${g}`:"/bank-imports"},H$v=async(d,c)=>h(rMS(d),{...c,method:"GET"}),lMS=d=>`/bank-imports/${d}`,L$v=async(d,c)=>h(lMS(d),{...c,method:"GET"}),dMS=d=>`/bank-imports/${d}/summary`,G$v=async(d,c)=>h(dMS(d),{...c,method:"GET"}),uMS=d=>`/bank-imports/${d}/match`,V$v=async(d,c)=>h(uMS(d),{...c,method:"POST"}),cMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/bank-transactions?${g}`:"/bank-transactions"},K$v=async(d,c)=>h(cMS(d),{...c,method:"GET"}),pMS=d=>`/bank-transactions/${d}`,Z$v=async(d,c)=>h(pMS(d),{...c,method:"GET"}),mMS=d=>`/bank-transactions/${d}/link`,q$v=async(d,c,g)=>h(mMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xMS=d=>`/bank-transactions/${d}/confirm-fee`,W$v=async(d,c,g)=>h(xMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),gMS=d=>`/bank-transactions/${d}/ignore`,Y$v=async(d,c)=>h(gMS(d),{...c,method:"POST"}),yMS=d=>`/bank-transactions/${d}/unlink`,$$v=async(d,c)=>h(yMS(d),{...c,method:"POST"});var Cn={create:b(U$v,1),list:X(P$v),get:b(C$v,2),update:b(w$v,2),delete:b(A$v,1),restorePayment:b(F$v,1),permanentDeletePayment:b(k$v,1),importBankStatement:b(j$v,1),listBankImports:b(H$v,1),getBankImport:b(L$v,1),getBankImportSummary:b(G$v,1),rematchBankImport:b(V$v,1),listBankTransactions:b(K$v,1),getBankTransaction:b(Z$v,1),linkBankTransaction:b(q$v,2),confirmBankTransactionFee:b(W$v,2),ignoreBankTransaction:b(Y$v,1),unlinkBankTransaction:b($$v,1)};var OMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/tables?${g}`:"/pos/tables"},Q$v=async(d,c)=>h(OMS(d),{...c,method:"GET"}),vMS=()=>"/pos/tables",J$v=async(d,c)=>h(vMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),SMS=d=>`/pos/tables/${d}`,X$v=async(d,c,g)=>h(SMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),hMS=d=>`/pos/tables/${d}`,eQv=async(d,c)=>h(hMS(d),{...c,method:"DELETE"}),bMS=d=>`/pos/tabs/${d}/items`,tQv=async(d,c,g)=>h(bMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),zMS=d=>`/pos/tabs/${d}/claim`,nQv=async(d,c,g)=>h(zMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fMS=d=>`/pos/tabs/${d}/release`,sQv=async(d,c,g)=>h(fMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BMS=d=>`/pos/tabs/${d}/close`,oQv=async(d,c,g)=>h(BMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),TMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/tabs?${g}`:"/pos/tabs"},iQv=async(d,c)=>h(TMS(d),{...c,method:"GET"}),IMS=()=>"/pos/tabs",aQv=async(d,c)=>h(IMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),EMS=d=>`/pos/tabs/${d}`,rQv=async(d,c)=>h(EMS(d),{...c,method:"GET"}),DMS=d=>`/pos/tabs/${d}`,lQv=async(d,c,g)=>h(DMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),RMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/pos/tabs/${d}?${E}`:`/pos/tabs/${d}`},dQv=async(d,c,g)=>h(RMS(d,c),{...g,method:"DELETE"}),_MS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/daily/export?${g}`:"/pos/reports/daily/export"},uQv=async(d,c)=>h(_MS(d),{...c,method:"GET"}),NMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/monthly/export?${g}`:"/pos/reports/monthly/export"},cQv=async(d,c)=>h(NMS(d),{...c,method:"GET"}),MMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/daily?${g}`:"/pos/reports/daily"},pQv=async(d,c)=>h(MMS(d),{...c,method:"GET"}),UMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/monthly?${g}`:"/pos/reports/monthly"},mQv=async(d,c)=>h(UMS(d),{...c,method:"GET"}),PMS=()=>"/pos/operators",xQv=async d=>h(PMS(),{...d,method:"GET"}),CMS=()=>"/pos/operators/enrol",gQv=async(d,c)=>h(CMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wMS=()=>"/pos/operators/switch",yQv=async(d,c)=>h(wMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),AMS=d=>`/pos/operators/${d}/pin`,OQv=async(d,c,g)=>h(AMS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),FMS=d=>`/pos/operators/${d}/pin`,vQv=async(d,c)=>h(FMS(d),{...c,method:"DELETE"});var kMS=b(dQv,2),wn={listTables:X(Q$v),createTable:b(J$v,1),updateTable:b(X$v,2),deleteTable:b(eQv,1),appendTabItems:b(tQv,2),claimTab:b(nQv,2),releaseTab:b(sQv,2),closeTab:b(oQv,2),listTabs:X(iQv),createTab:b(aQv,1),getTab:b(rQv,1),updateTab:b(lQv,2),cancelTab:Object.assign((...d)=>kMS(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:b(uQv,1),exportPosMonthlyReport:b(cQv,1),dailyReport:b(pQv,1),getPosMonthlyReport:b(mQv,1),listOperators:b(xQv,0),enrolPosOperator:b(gQv,1),switchOperator:b(yQv,1),setOperatorPin:b(OQv,2),clearOperatorPin:b(vQv,1)};var jMS=()=>"/fiscalization/pt/atcud-series",SQv=async(d,c)=>h(jMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/atcud-series?${g}`:"/fiscalization/pt/atcud-series"},hQv=async(d,c)=>h(HMS(d),{...c,method:"GET"}),LMS=d=>`/fiscalization/pt/atcud-series/${d}`,bQv=async(d,c)=>h(LMS(d),{...c,method:"GET"}),GMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/atcud-series/active?${g}`:"/fiscalization/pt/atcud-series/active"},zQv=async(d,c)=>h(GMS(d),{...c,method:"POST"}),VMS=d=>`/fiscalization/pt/atcud-series/${d}/retire`,fQv=async(d,c)=>h(VMS(d),{...c,method:"POST"});var An={create:b(SQv,1),list:X(hQv),get:b(bQv,1),getActive:b(zQv,1),retirePtAtcudSeries:b(fQv,1)};var KMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/saft/report?${g}`:"/fiscalization/pt/saft/report"},BQv=async(d,c)=>h(KMS(d),{...c,method:"GET"});var Fn={generateReport:b(BQv,1)};var ZMS=d=>`/purchase-orders/shareable/${d}`,TQv=async(d,c)=>h(ZMS(d),{...c,method:"GET"}),qMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/html?${E}`:`/purchase-orders/shareable/${d}/html`},IQv=async(d,c,g)=>h(qMS(d,c),{...g,method:"GET"}),WMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/pdf?${E}`:`/purchase-orders/shareable/${d}/pdf`},EQv=async(d,c,g)=>h(WMS(d,c),{...g,method:"GET"}),YMS=()=>"/purchase-orders",DQv=async(d,c)=>h(YMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$MS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/purchase-orders?${g}`:"/purchase-orders"},RQv=async(d,c)=>h($MS(d),{...c,method:"GET"}),QMS=d=>`/purchase-orders/${d}`,_Qv=async(d,c)=>h(QMS(d),{...c,method:"GET"}),JMS=d=>`/purchase-orders/${d}`,NQv=async(d,c,g)=>h(JMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),XMS=d=>`/purchase-orders/${d}/versions`,MQv=async(d,c)=>h(XMS(d),{...c,method:"GET"}),eUS=(d,c)=>`/purchase-orders/${d}/versions/${c}`,UQv=async(d,c,g)=>h(eUS(d,c),{...g,method:"GET"}),tUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/purchase-orders/render?${g}`:"/purchase-orders/render"},PQv=async(d,c,g)=>h(tUS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),nUS=d=>`/purchase-orders/${d}/void`,CQv=async(d,c,g)=>h(nUS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var kn={getShareablePurchaseOrder:b(TQv,1),getShareablePurchaseOrderHtml:b(IQv,2),getShareablePurchaseOrderPdf:b(EQv,2),create:b(DQv,1),list:X(RQv),get:b(_Qv,1),update:b(NQv,2),getVersions:b(MQv,1),getVersion:b(UQv,2),renderPurchaseOrderPreview:b(PQv,2),void:b(CQv,2)};var sUS=()=>"/recurring-invoices",wQv=async(d,c)=>h(sUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),oUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/recurring-invoices?${g}`:"/recurring-invoices"},AQv=async(d,c)=>h(oUS(d),{...c,method:"GET"}),iUS=d=>`/recurring-invoices/${d}`,FQv=async(d,c)=>h(iUS(d),{...c,method:"GET"}),aUS=d=>`/recurring-invoices/${d}`,kQv=async(d,c,g)=>h(aUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),rUS=d=>`/recurring-invoices/${d}`,jQv=async(d,c)=>h(rUS(d),{...c,method:"DELETE"}),lUS=d=>`/recurring-invoices/${d}/restore`,HQv=async(d,c)=>h(lUS(d),{...c,method:"POST"}),dUS=d=>`/recurring-invoices/${d}/permanent`,LQv=async(d,c)=>h(dUS(d),{...c,method:"DELETE"}),uUS=d=>`/recurring-invoices/${d}/pause`,GQv=async(d,c)=>h(uUS(d),{...c,method:"POST"}),cUS=d=>`/recurring-invoices/${d}/resume`,VQv=async(d,c)=>h(cUS(d),{...c,method:"POST"}),pUS=d=>`/recurring-invoices/${d}/trigger`,KQv=async(d,c)=>h(pUS(d),{...c,method:"POST"});var jn={create:b(wQv,1),list:X(AQv),get:b(FQv,1),update:b(kQv,2),delete:b(jQv,1),restoreRecurringInvoice:b(HQv,1),permanentDeleteRecurringInvoice:b(LQv,1),pauseRecurringInvoice:b(GQv,1),resumeRecurringInvoice:b(VQv,1),triggerRecurringInvoice:b(KQv,1)};var mUS=()=>"/revenue-recognition/settings",ZQv=async d=>h(mUS(),{...d,method:"GET"}),xUS=()=>"/revenue-recognition/settings",qQv=async(d,c)=>h(xUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gUS=()=>"/revenue-recognition/backfill",WQv=async(d,c)=>h(gUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/report?${g}`:"/revenue-recognition/report"},YQv=async(d,c)=>h(yUS(d),{...c,method:"GET"}),OUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/details?${g}`:"/revenue-recognition/details"},$Qv=async(d,c)=>h(OUS(d),{...c,method:"GET"}),vUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/lines?${g}`:"/revenue-recognition/lines"},QQv=async(d,c)=>h(vUS(d),{...c,method:"GET"}),SUS=d=>`/revenue-recognition/documents/${d}`,JQv=async(d,c)=>h(SUS(d),{...c,method:"GET"});var Hn={getSettings:b(ZQv,0),updateSettings:b(qQv,1),backfill:b(WQv,1),getReport:b(YQv,1),getDetails:b($Qv,1),listLines:b(QQv,1),getDocumentSchedule:b(JQv,1)};var hUS=()=>"/stripe-app/marketplace-authorize",XQv=async(d,c)=>h(hUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bUS=()=>"/stripe-app/connect",eJv=async(d,c)=>h(bUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zUS=()=>"/stripe-app/entity-connection",tJv=async d=>h(zUS(),{...d,method:"GET"}),fUS=()=>"/stripe-app/entity-connection",nJv=async d=>h(fUS(),{...d,method:"DELETE"}),BUS=()=>"/stripe-app/entity-settings",sJv=async d=>h(BUS(),{...d,method:"GET"}),TUS=()=>"/stripe-app/entity-settings",oJv=async(d,c)=>h(TUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Ln={stripeAppMarketplaceAuthorize:b(XQv,1),stripeAppConnect:b(eJv,1),stripeAppEntityGetConnection:b(tJv,0),stripeAppEntityDisconnect:b(nJv,0),stripeAppEntityGetSettings:b(sJv,0),stripeAppEntityUpdateSettings:b(oJv,1)};var IUS=()=>"/subscriptions",iJv=async d=>h(IUS(),{...d,method:"GET"}),EUS=()=>"/subscriptions/spending-limit",aJv=async(d,c)=>h(EUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DUS=()=>"/subscriptions/check-entity-limit",rJv=async d=>h(DUS(),{...d,method:"GET"});var Gn={getCurrent:b(iJv,0),update:b(aJv,1),checkEntityLimit:b(rJv,0)};var RUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-rate-estimates/us?${g}`:"/tax-rate-estimates/us"},lJv=async(d,c)=>h(RUS(d),{...c,method:"GET"});var Vn={listUsTaxRateEstimates:b(lJv,1)};var _US=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/employees?${g}`:"/employees"},dJv=async(d,c)=>h(_US(d),{...c,method:"GET"}),NUS=()=>"/employees",uJv=async(d,c)=>h(NUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MUS=d=>`/employees/${d}`,cJv=async(d,c)=>h(MUS(d),{...c,method:"GET"}),UUS=d=>`/employees/${d}`,pJv=async(d,c,g)=>h(UUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PUS=d=>`/employees/${d}`,mJv=async(d,c)=>h(PUS(d),{...c,method:"DELETE"}),CUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},xJv=async(d,c,g)=>h(CUS(d,c),{...g,method:"GET"}),wUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},gJv=async(d,c,g,E)=>h(wUS(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),AUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payroll/parameters?${g}`:"/payroll/parameters"},yJv=async(d,c)=>h(AUS(d),{...c,method:"GET"}),FUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payroll/parameters/history?${g}`:"/payroll/parameters/history"},OJv=async(d,c)=>h(FUS(d),{...c,method:"GET"}),kUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/payroll/parameters/${d}?${E}`:`/payroll/parameters/${d}`},vJv=async(d,c,g,E)=>h(kUS(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),jUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/liability?${g}`:"/tax-reports/liability"},SJv=async(d,c)=>h(jUS(d),{...c,method:"GET"}),HUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/payments?${g}`:"/tax-reports/payments"},hJv=async(d,c)=>h(HUS(d),{...c,method:"GET"}),LUS=()=>"/tax-reports/payments",bJv=async(d,c)=>h(LUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),GUS=d=>`/tax-reports/payments/${d}`,zJv=async(d,c,g)=>h(GUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),VUS=d=>`/tax-reports/payments/${d}`,fJv=async(d,c)=>h(VUS(d),{...c,method:"DELETE"}),KUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/eu/oss?${g}`:"/tax-reports/eu/oss"},BJv=async(d,c)=>h(KUS(d),{...c,method:"GET"}),ZUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/kir?${g}`:"/tax-reports/kir"},TJv=async(d,c)=>h(ZUS(d),{...c,method:"POST"}),qUS=()=>"/tax-reports/si/profile",IJv=async d=>h(qUS(),{...d,method:"GET"}),WUS=()=>"/tax-reports/si/profile",EJv=async(d,c)=>h(WUS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),YUS=()=>"/tax-reports/si/yearly/normirani/review",DJv=async(d,c)=>h(YUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$US=()=>"/tax-reports/si/yearly/normirani/export",RJv=async(d,c)=>h($US(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QUS=()=>"/tax-reports/si/accounting/vod/export",_Jv=async(d,c)=>h(QUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JUS=()=>"/tax-reports/si/accounting/minimax/export",NJv=async(d,c)=>h(JUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XUS=()=>"/tax-reports/si/accounting/vasco/export",MJv=async(d,c)=>h(XUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ePS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/accounting/quickbooks/export?${g}`:"/tax-reports/accounting/quickbooks/export"},UJv=async(d,c)=>h(ePS(d),{...c,method:"GET"}),tPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/vat-returns/preview?${g}`:"/vat-returns/preview"},PJv=async(d,c)=>h(tPS(d),{...c,method:"GET"}),nPS=()=>"/vat-returns",CJv=async(d,c)=>h(nPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/vat-returns?${g}`:"/vat-returns"},wJv=async(d,c)=>h(sPS(d),{...c,method:"GET"}),oPS=d=>`/vat-returns/${d}`,AJv=async(d,c)=>h(oPS(d),{...c,method:"GET"}),iPS=d=>`/vat-returns/${d}/recompute`,FJv=async(d,c)=>h(iPS(d),{...c,method:"POST"}),aPS=d=>`/vat-returns/${d}/approve`,kJv=async(d,c)=>h(aPS(d),{...c,method:"POST"}),rPS=d=>`/vat-returns/${d}/submit`,jJv=async(d,c,g)=>h(rPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),lPS=d=>`/vat-returns/${d}/reopen`,HJv=async(d,c)=>h(lPS(d),{...c,method:"POST"}),dPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/vat-returns/${d}/export?${E}`:`/vat-returns/${d}/export`},LJv=async(d,c,g)=>h(dPS(d,c),{...g,method:"GET"}),uPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/filings?${g}`:"/filings"},GJv=async(d,c)=>h(uPS(d),{...c,method:"GET"}),cPS=d=>`/filings/${d}/complete`,VJv=async(d,c,g)=>h(cPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),pPS=d=>`/filings/${d}/reopen`,KJv=async(d,c)=>h(pPS(d),{...c,method:"POST"}),mPS=d=>`/filings/${d}/dismiss`,ZJv=async(d,c,g)=>h(mPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/accounting/filings-calendar?${g}`:"/accounting/filings-calendar"},qJv=async(d,c)=>h(xPS(d),{...c,method:"GET"});var Kn={listEmployees:b(dJv,1),registerEmployee:b(uJv,1),getEmployee:b(cJv,1),modifyEmployee:b(pJv,2),archiveEmployee:b(mJv,1),getEmployeeAttendance:b(xJv,2),replaceEmployeeAttendance:b(gJv,3),resolvePayrollParameters:b(yJv,1),getPayrollParameterHistory:b(OJv,1),setPayrollParameterOverride:b(vJv,3),getTaxLiabilityReport:b(SJv,1),list:X(hJv),create:b(bJv,1),update:b(zJv,2),delete:b(fJv,1),getEuOssReport:b(BJv,1),generateKirExport:b(TJv,1),getSloveniaTaxProfile:b(IJv,0),updateSloveniaTaxProfile:b(EJv,1),reviewSloveniaYearlyNormiraniReport:b(DJv,1),exportSloveniaYearlyNormiraniReport:b(RJv,1),exportSloveniaVodXml:b(_Jv,1),exportSloveniaMinimaxXml:b(NJv,1),exportSloveniaVascoXml:b(MJv,1),exportQuickbooksCsv:b(UJv,1),preview:b(PJv,1),draftVatReturn:b(CJv,1),listVatReturns:b(wJv,1),getVatReturn:b(AJv,1),recomputeVatReturn:b(FJv,1),approveVatReturn:b(kJv,1),submitVatReturn:b(jJv,2),reopenVatReturn:b(HJv,1),exportVatReturn:b(LJv,2),listFilings:b(GJv,1),completeFiling:b(VJv,2),reopenFiling:b(KJv,1),dismissFiling:b(ZJv,2),listAccountFilingsCalendar:b(qJv,1)};var gPS=()=>"/taxes",WJv=async(d,c)=>h(gPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/taxes?${g}`:"/taxes"},YJv=async(d,c)=>h(yPS(d),{...c,method:"GET"}),OPS=d=>`/taxes/${d}`,$Jv=async(d,c,g)=>h(OPS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),vPS=d=>`/taxes/${d}`,QJv=async(d,c,g)=>h(vPS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),SPS=d=>`/taxes/${d}`,JJv=async(d,c)=>h(SPS(d),{...c,method:"DELETE"}),hPS=d=>`/taxes/${d}/restore`,XJv=async(d,c)=>h(hPS(d),{...c,method:"POST"}),bPS=d=>`/taxes/${d}/permanent`,eXv=async(d,c)=>h(bPS(d),{...c,method:"DELETE"});var Zn={create:b(WJv,1),list:X(YJv),update:b($Jv,2),replaceTax:b(QJv,2),delete:b(JJv,1),restoreTax:b(XJv,1),permanentDeleteTax:b(eXv,1)};var zPS=()=>"/fiscalization/ticketbai/settings",tXv=async d=>h(zPS(),{...d,method:"GET"}),fPS=()=>"/fiscalization/ticketbai/settings",nXv=async(d,c)=>h(fPS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BPS=()=>"/fiscalization/ticketbai/settings/certificate",sXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(BPS(),{...c,method:"POST",body:g})},TPS=d=>`/fiscalization/ticketbai/records/${d}`,oXv=async(d,c)=>h(TPS(d),{...c,method:"GET"}),IPS=d=>`/fiscalization/ticketbai/records/${d}/xml`,iXv=async(d,c)=>h(IPS(d),{...c,method:"GET"}),EPS=d=>`/fiscalization/ticketbai/records/${d}/retry`,aXv=async(d,c)=>h(EPS(d),{...c,method:"POST"}),DPS=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,rXv=async(d,c)=>h(DPS(d),{...c,method:"POST"});var qn={getSettings:b(tXv,0),updateSettings:b(nXv,1),uploadCertificate:b(sXv,1),getRecord:b(oXv,1),downloadRecordXml:b(iXv,1),retryRecord:b(aXv,1),reconcileRecord:b(rXv,1)};var RPS=()=>"/transaction-type/check",lXv=async(d,c)=>h(RPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Wn={checkTransactionType:b(lXv,1)};var _PS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/travel-orders?${g}`:"/travel-orders"},dXv=async(d,c)=>h(_PS(d),{...c,method:"GET"}),NPS=()=>"/travel-orders",uXv=async(d,c)=>h(NPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MPS=()=>"/travel-orders/preview",cXv=async(d,c)=>h(MPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),UPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/travel-orders/render?${g}`:"/travel-orders/render"},pXv=async(d,c,g)=>h(UPS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),PPS=()=>"/travel-orders/route-distance",mXv=async(d,c)=>h(PPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),CPS=d=>`/travel-orders/${d}`,xXv=async(d,c)=>h(CPS(d),{...c,method:"GET"}),wPS=d=>`/travel-orders/${d}`,gXv=async(d,c,g)=>h(wPS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),APS=d=>`/travel-orders/${d}`,yXv=async(d,c)=>h(APS(d),{...c,method:"DELETE"}),FPS=d=>`/travel-orders/${d}/approve`,OXv=async(d,c)=>h(FPS(d),{...c,method:"POST"}),kPS=d=>`/travel-orders/${d}/settle`,vXv=async(d,c)=>h(kPS(d),{...c,method:"POST"}),jPS=d=>`/travel-orders/${d}/reopen`,SXv=async(d,c,g)=>h(jPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),HPS=d=>`/travel-orders/${d}/cancel`,hXv=async(d,c)=>h(HPS(d),{...c,method:"POST"}),LPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/pdf?${E}`:`/travel-orders/${d}/pdf`},bXv=async(d,c,g)=>h(LPS(d,c),{...g,method:"GET"}),GPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/html?${E}`:`/travel-orders/${d}/html`},zXv=async(d,c,g)=>h(GPS(d,c),{...g,method:"GET"});var Yn={list:X(dXv),create:b(uXv,1),preview:b(cXv,1),renderTravelOrderPreview:b(pXv,2),calculateTravelOrderRouteDistance:b(mXv,1),get:b(xXv,1),update:b(gXv,2),delete:b(yXv,1),approveTravelOrder:b(OXv,1),settleTravelOrder:b(vXv,1),reopenTravelOrder:b(SXv,2),cancelTravelOrder:b(hXv,1),renderPdf:b(bXv,2),renderHtml:b(zXv,2)};var Re="https://eu.spaceinvoices.com";var VPS=d=>`/documents/${d}/ujp`,fXv=async(d,c)=>h(VPS(d),{...c,method:"GET"});var $n={download:b(fXv,1)};var KPS=()=>"/upload/image",BXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(KPS(),{...c,method:"POST",body:g})};var Qn={uploadImage:b(BXv,1)};var ZPS=()=>"/accounts/two-factor-policy",TXv=async d=>h(ZPS(),{...d,method:"GET"}),qPS=()=>"/accounts/two-factor-policy",IXv=async(d,c)=>h(qPS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),WPS=d=>`/entities/${d}/two-factor-policy`,EXv=async(d,c)=>h(WPS(d),{...c,method:"GET"}),YPS=d=>`/entities/${d}/two-factor-policy`,DXv=async(d,c,g)=>h(YPS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$PS=()=>"/users/two-factor/setup",RXv=async(d,c)=>h($PS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QPS=()=>"/users/two-factor/enable",_Xv=async(d,c)=>h(QPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JPS=()=>"/users/me/two-factor",NXv=async d=>h(JPS(),{...d,method:"GET"}),XPS=()=>"/users/me/two-factor/setup",MXv=async(d,c)=>h(XPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),e2S=()=>"/users/me/two-factor/enable",UXv=async(d,c)=>h(e2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),t2S=()=>"/users/me/two-factor/disable",PXv=async(d,c)=>h(t2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),n2S=()=>"/users/two-factor/verify",CXv=async(d,c)=>h(n2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),s2S=()=>"/users/login",wXv=async(d,c)=>h(s2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),o2S=()=>"/users/signup",AXv=async(d,c)=>h(o2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),i2S=()=>"/users/password-reset",FXv=async(d,c)=>h(i2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),a2S=()=>"/users/password-reset/confirm",kXv=async(d,c)=>h(a2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),r2S=()=>"/users/me/accounts",jXv=async d=>h(r2S(),{...d,method:"GET"}),l2S=()=>"/users/me",HXv=async d=>h(l2S(),{...d,method:"GET"}),d2S=()=>"/users/me",LXv=async(d,c)=>h(d2S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),u2S=()=>"/users/me/account-deletion",GXv=async d=>h(u2S(),{...d,method:"POST"}),c2S=()=>"/users/me/settings/furs",VXv=async(d,c)=>h(c2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),p2S=()=>"/users/me/settings/fina",KXv=async(d,c)=>h(p2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Jn={getAccountTwoFactorPolicy:b(TXv,0),updateAccountTwoFactorPolicy:b(IXv,1),getEntityTwoFactorPolicy:b(EXv,1),updateEntityTwoFactorPolicy:b(DXv,2),setupRequiredTwoFactor:b(RXv,1),enableRequiredTwoFactor:b(_Xv,1),getTwoFactorConfiguration:b(NXv,0),setupTwoFactor:b(MXv,1),enableTwoFactor:b(UXv,1),disableTwoFactor:b(PXv,1),verifyTwoFactor:b(CXv,1),login:b(wXv,1),signup:b(AXv,1),requestPasswordReset:b(FXv,1),confirmPasswordReset:b(kXv,1),listMyAccounts:b(jXv,0),getMe:b(HXv,0),update:b(LXv,1),requestAccountDeletion:b(GXv,0),updateFursSettings:b(VXv,1),updateFinaSettings:b(KXv,1)};var m2S=()=>"/fiscalization/verifactu/settings",ZXv=async d=>h(m2S(),{...d,method:"GET"}),x2S=()=>"/fiscalization/verifactu/settings",qXv=async(d,c)=>h(x2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),g2S=()=>"/fiscalization/verifactu/certificate",WXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(g2S(),{...c,method:"POST",body:g})},y2S=d=>`/fiscalization/verifactu/records/${d}`,YXv=async(d,c)=>h(y2S(d),{...c,method:"GET"}),O2S=d=>`/fiscalization/verifactu/records/${d}/retry`,$Xv=async(d,c)=>h(O2S(d),{...c,method:"POST"}),v2S=d=>`/fiscalization/verifactu/records/${d}/correct`,QXv=async(d,c,g)=>h(v2S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),S2S=d=>`/fiscalization/verifactu/records/${d}/cancel`,JXv=async(d,c,g)=>h(S2S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Xn={getSettings:b(ZXv,0),updateSettings:b(qXv,1),uploadCertificate:b(WXv,1),getEvidence:b(YXv,1),retryRecord:b($Xv,1),correctRecord:b(QXv,2),cancelRecord:b(JXv,2)};var h2S=()=>"/vies/check",XXv=async(d,c)=>h(h2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var es={checkVies:b(XXv,1)};var b2S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/warehouses?${g}`:"/warehouses"},eeS=async(d,c)=>h(b2S(d),{...c,method:"GET"}),z2S=()=>"/warehouses",teS=async(d,c)=>h(z2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),f2S=d=>`/warehouses/${d}`,neS=async(d,c)=>h(f2S(d),{...c,method:"GET"}),B2S=d=>`/warehouses/${d}`,seS=async(d,c,g)=>h(B2S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),T2S=d=>`/warehouses/${d}`,oeS=async(d,c)=>h(T2S(d),{...c,method:"DELETE"});var ts={list:X(eeS),create:b(teS,1),get:b(neS,1),update:b(seS,2),delete:b(oeS,1)};var I2S=()=>"/webhooks",ieS=async(d,c)=>h(I2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),E2S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/webhooks?${g}`:"/webhooks"},aeS=async(d,c)=>h(E2S(d),{...c,method:"GET"}),D2S=d=>`/webhooks/${d}`,reS=async(d,c)=>h(D2S(d),{...c,method:"GET"}),R2S=d=>`/webhooks/${d}`,leS=async(d,c,g)=>h(R2S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),_2S=d=>`/webhooks/${d}`,deS=async(d,c)=>h(_2S(d),{...c,method:"DELETE"}),N2S=d=>`/webhooks/${d}/test`,ueS=async(d,c)=>h(N2S(d),{...c,method:"POST"});var M2S=d=>`/webhooks/${d}/rotate-secret`,ceS=async(d,c)=>h(M2S(d),{...c,method:"POST"});var ns={create:b(ieS,1),list:X(aeS),get:b(reS,1),update:b(leS,2),delete:b(deS,1),testWebhook:b(ueS,1),rotateWebhookSecret:b(ceS,1)};var U2S=()=>"/white-label-subscriptions",peS=async d=>h(U2S(),{...d,method:"GET"}),P2S=()=>"/white-label-subscriptions/plans",meS=async d=>h(P2S(),{...d,method:"GET"}),C2S=d=>`/white-label-subscriptions/check-feature/${d}`,xeS=async(d,c)=>h(C2S(d),{...c,method:"GET"}),w2S=d=>`/white-label-subscriptions/check-limit/${d}`,geS=async(d,c)=>h(w2S(d),{...c,method:"GET"}),A2S=()=>"/white-label-subscriptions/billing-email",yeS=async(d,c)=>h(A2S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var ss={getCurrentWLSubscription:b(peS,0),list:b(meS,0),checkWLFeature:b(xeS,1),checkWLLimit:b(geS,1),update:b(yeS,1)};var F2S=()=>"/white-labels/current",OeS=async d=>h(F2S(),{...d,method:"GET"}),k2S=()=>"/white-labels/me",veS=async d=>h(k2S(),{...d,method:"GET"});var os={getCurrentWhiteLabel:b(OeS,0),getMyWhiteLabel:b(veS,0)};var De=class{sdkConfig;accountWebhooks=q(Gt,()=>this.sdkConfig);activities=q(Vt,()=>this.sdkConfig);advanceInvoices=q(Kt,()=>this.sdkConfig);businessUnits=q(Zt,()=>this.sdkConfig);companyRegistry=q(qt,()=>this.sdkConfig);creditNotes=q(Wt,()=>this.sdkConfig);currency=q(Yt,()=>this.sdkConfig);customers=q($t,()=>this.sdkConfig);deliveryNotes=q(Qt,()=>this.sdkConfig);documents=q(en,()=>this.sdkConfig);eInvoicing=q(sn,()=>this.sdkConfig);eSlog=q(on,()=>this.sdkConfig);email=q(an,()=>this.sdkConfig);entities=q(rn,()=>this.sdkConfig);entityApiKeys=q(ln,()=>this.sdkConfig);entityInvitations=q(dn,()=>this.sdkConfig);entityStats=q(un,()=>this.sdkConfig);entityUsers=q(cn,()=>this.sdkConfig);estimates=q(pn,()=>this.sdkConfig);expenses=q(mn,()=>this.sdkConfig);exports=q(xn,()=>this.sdkConfig);files=q(gn,()=>this.sdkConfig);finaCertificate=q(yn,()=>this.sdkConfig);finaDevices=q(On,()=>this.sdkConfig);finaPremises=q(vn,()=>this.sdkConfig);finaSettings=q(Sn,()=>this.sdkConfig);financialCategories=q(hn,()=>this.sdkConfig);fursCertificate=q(bn,()=>this.sdkConfig);fursDevices=q(zn,()=>this.sdkConfig);fursInternalAct=q(fn,()=>this.sdkConfig);fursPremises=q(Bn,()=>this.sdkConfig);fursSettings=q(Tn,()=>this.sdkConfig);health=q(In,()=>this.sdkConfig);invoices=q(Dn,()=>this.sdkConfig);items=q(Rn,()=>this.sdkConfig);legacyMigration=q(_n,()=>this.sdkConfig);locale=q(Nn,()=>this.sdkConfig);orderIntegrations=q(Mn,()=>this.sdkConfig);orders=q(Un,()=>this.sdkConfig);paymentReminders=q(Pn,()=>this.sdkConfig);payments=q(Cn,()=>this.sdkConfig);pointOfSale=q(wn,()=>this.sdkConfig);ptAtcudSeries=q(An,()=>this.sdkConfig);ptSafT=q(Fn,()=>this.sdkConfig);purchaseOrders=q(kn,()=>this.sdkConfig);recurringInvoices=q(jn,()=>this.sdkConfig);revenueRecognition=q(Hn,()=>this.sdkConfig);stripeApp=q(Ln,()=>this.sdkConfig);subscriptions=q(Gn,()=>this.sdkConfig);taxRateEstimates=q(Vn,()=>this.sdkConfig);taxReports=q(Kn,()=>this.sdkConfig);taxes=q(Zn,()=>this.sdkConfig);ticketBai=q(qn,()=>this.sdkConfig);transactionType=q(Wn,()=>this.sdkConfig);travelOrders=q(Yn,()=>this.sdkConfig);ujp=q($n,()=>this.sdkConfig);upload=q(Qn,()=>this.sdkConfig);users=q(Jn,()=>this.sdkConfig);veriFactu=q(Xn,()=>this.sdkConfig);vies=q(es,()=>this.sdkConfig);warehouses=q(ts,()=>this.sdkConfig);webhooks=q(ns,()=>this.sdkConfig);whiteLabelSubscriptions=q(ss,()=>this.sdkConfig);whiteLabels=q(os,()=>this.sdkConfig);constructor(c){let g=typeof c=="string"?{accessToken:c}:c,E=typeof g.accessToken=="function"?g.accessToken:()=>g.accessToken;this.sdkConfig={baseUrl:g.basePath??Re,getAccessToken:E,clientName:g.clientName??"js-sdk",onUnauthorized:g.onUnauthorized,requestTimeoutMs:g.requestTimeoutMs,accountId:g.accountId??null};}};function j2S(d){let c=typeof d=="string"?{accessToken:d}:d,g=typeof c.accessToken=="function"?c.accessToken:()=>c.accessToken;AWv({baseUrl:c.basePath??Re,getAccessToken:g,clientName:c.clientName??"js-sdk",onUnauthorized:c.onUnauthorized,requestTimeoutMs:c.requestTimeoutMs}),Lt(c.accountId??null);}
|
|
234
|
+
Searches across number, traveler name, purpose, origin, and destination.`)}),qzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),MGv=200,UGv=0,PGv=1e6,CGv=/^\d{4}-\d{2}-\d{2}$/,WzS=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(MGv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(UGv).max(PGv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(CGv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),YzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wGv=200,AGv=200,FGv=/^\d{4}-\d{2}-\d{2}$/,kGv=500,jGv=500,HGv=500,LGv=/^[A-Za-z]{2}$/,GGv=20,VGv=0,KGv=1e5,ZGv=0,qGv=60,WGv=0,YGv=1e4,$Gv=0,QGv=1e6,JGv=200,XGv=0,e3v=1e6,t3v=/^\d{4}-\d{2}-\d{2}$/,n3v=100,s3v=2e3,$zS=e.object({traveler_name:e.string().min(1).max(wGv).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(AGv).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(FGv).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(kGv).describe("Business purpose of the trip."),origin:e.string().max(jGv).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(HGv).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(LGv).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(GGv).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(VGv).max(KGv).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(ZGv).max(qGv).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(WGv).max(YGv).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min($Gv).max(QGv).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(JGv).describe("Description of the cost line."),amount:e.number().gt(XGv).max(e3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(t3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(n3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(s3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),QzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),o3v=200,i3v=200,a3v=/^\d{4}-\d{2}-\d{2}$/,r3v=500,l3v=500,d3v=500,u3v=/^[A-Za-z]{2}$/,c3v=20,p3v=0,m3v=1e5,x3v=0,g3v=60,y3v=0,O3v=1e4,v3v=0,S3v=1e6,h3v=200,b3v=0,z3v=1e6,f3v=/^\d{4}-\d{2}-\d{2}$/,B3v=100,T3v=2e3,JzS=e.object({traveler_name:e.string().min(1).max(o3v).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(i3v).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(a3v).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(r3v).describe("Business purpose of the trip."),origin:e.string().max(l3v).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(d3v).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(u3v).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(c3v).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(p3v).max(m3v).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(x3v).max(g3v).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(y3v).max(O3v).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(v3v).max(S3v).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(h3v).describe("Description of the cost line."),amount:e.number().gt(b3v).max(z3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(f3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(B3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(T3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),XzS=e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),I3v=2,E3v=5,D3v=2,R3v=5,efS=e.object({locale:e.string().min(I3v).max(E3v).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(D3v).max(R3v).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),tfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_3v=200,N3v=200,M3v=/^\d{4}-\d{2}-\d{2}$/,U3v=500,P3v=500,C3v=500,w3v=/^[A-Za-z]{2}$/,A3v=20,F3v=0,k3v=1e5,j3v=0,H3v=60,L3v=0,G3v=1e4,V3v=0,K3v=1e6,Z3v=200,q3v=0,W3v=1e6,Y3v=/^\d{4}-\d{2}-\d{2}$/,$3v=100,Q3v=2e3,nfS=e.object({traveler_name:e.string().min(1).max(_3v).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(N3v).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(M3v).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(U3v).describe("Business purpose of the trip."),origin:e.string().max(P3v).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(C3v).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(w3v).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(A3v).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(F3v).max(k3v).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(j3v).max(H3v).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(L3v).max(G3v).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(V3v).max(K3v).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Z3v).describe("Description of the cost line."),amount:e.number().gt(q3v).max(W3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(Y3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max($3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Q3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),sfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J3v=3,X3v=300,eVv=3,tVv=300,ofS=e.object({from:e.string().min(J3v).max(X3v).describe("Starting address to geocode."),to:e.string().min(eVv).max(tVv).describe("Destination address to geocode."),round_trip:e.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),ifS=e.object({distance_km:e.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),nVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,afS=e.object({id:e.stringFormat("resource-id",nVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),rfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sVv=200,oVv=0,iVv=1e6,aVv=/^\d{4}-\d{2}-\d{2}$/,lfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(sVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(oVv).max(iVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(aVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),rVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,dfS=e.object({id:e.stringFormat("resource-id",rVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ufS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lVv=200,dVv=200,uVv=/^\d{4}-\d{2}-\d{2}$/,cVv=500,pVv=500,mVv=500,xVv=/^[A-Za-z]{2}$/,gVv=20,yVv=0,OVv=1e5,vVv=0,SVv=60,hVv=0,bVv=1e4,zVv=0,fVv=1e6,BVv=200,TVv=0,IVv=1e6,EVv=/^\d{4}-\d{2}-\d{2}$/,DVv=100,RVv=2e3,cfS=e.object({traveler_name:e.string().min(1).max(lVv).nullish().describe("Full name of the traveling employee or contractor. Omit or send null to leave unchanged; cannot be cleared."),traveler_position:e.string().max(dVv).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(uVv).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e.string().min(1).max(cVv).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(pVv).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(mVv).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e.string().regex(xVv).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.iso.datetime({}).nullish().describe("Departure date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),return_at:e.iso.datetime({}).nullish().describe("Return date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),transport:e.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(gVv).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(yVv).max(OVv).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.number().min(vVv).max(SVv).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0."),foreign_daily_rate:e.number().gt(hVv).max(bVv).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),advance_amount:e.number().min(zVv).max(fVv).nullish().describe("Advance payment already given to the traveler. Omit to leave unchanged, send null to reset to 0."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(BVv).describe("Description of the cost line."),amount:e.number().gt(TVv).max(IVv).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(EVv).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(DVv).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(RVv).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),_Vv=200,NVv=0,MVv=1e6,UVv=/^\d{4}-\d{2}-\d{2}$/,pfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(_Vv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(NVv).max(MVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(UVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),PVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,mfS=e.object({id:e.stringFormat("resource-id",PVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),CVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,gfS=e.object({id:e.stringFormat("resource-id",CVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),yfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wVv=200,AVv=0,FVv=1e6,kVv=/^\d{4}-\d{2}-\d{2}$/,OfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(wVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(AVv).max(FVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(kVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),jVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,vfS=e.object({id:e.stringFormat("resource-id",jVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),SfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),HVv=200,LVv=0,GVv=1e6,VVv=/^\d{4}-\d{2}-\d{2}$/,hfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(HVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(LVv).max(GVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(VVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),KVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,bfS=e.object({id:e.stringFormat("resource-id",KVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),zfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ZVv=3,qVv=500,ffS=e.object({reason:e.string().min(ZVv).max(qVv).describe("Why this settled travel order is being reopened for correction. Required.")}),WVv=200,YVv=0,$Vv=1e6,QVv=/^\d{4}-\d{2}-\d{2}$/,BfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(WVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(YVv).max($Vv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(QVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),JVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,TfS=e.object({id:e.stringFormat("resource-id",JVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),IfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),XVv=200,eKv=0,tKv=1e6,nKv=/^\d{4}-\d{2}-\d{2}$/,EfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(XVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(eKv).max(tKv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(nKv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),sKv=/^[a-z]{3,4}_[0-9a-f]{24}$/,DfS=e.object({id:e.stringFormat("resource-id",sKv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),oKv=2,iKv=5,aKv=2,rKv=5,RfS=e.object({locale:e.string().min(oKv).max(iKv).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(aKv).max(rKv).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),_fS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lKv=/^[a-z]{3,4}_[0-9a-f]{24}$/,NfS=e.object({id:e.stringFormat("resource-id",lKv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),dKv=2,uKv=5,cKv=2,pKv=5,MfS=e.object({locale:e.string().min(dKv).max(uKv).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(cKv).max(pKv).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),UfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Nt={};W(Nt,{DownloadUjpPackageHeader:()=>CfS,DownloadUjpPackageParams:()=>PfS});var PfS=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),CfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Mt={};W(Mt,{UploadImageBody:()=>AfS,UploadImageHeader:()=>wfS,UploadImageResponse:()=>FfS});var wfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),AfS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),FfS=e.object({url:e.url().describe("Public URL of the uploaded image"),secure_url:e.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e.string().describe("Image format (jpg, png, webp, etc.)"),width:e.number().describe("Image width in pixels"),height:e.number().describe("Image height in pixels"),bytes:e.number().describe("File size in bytes"),entity_id:e.string().describe("Entity ID that the image belongs to")});var Ut={};W(Ut,{ConfirmPasswordResetBody:()=>gBS,ConfirmPasswordResetResponse:()=>yBS,DisableTwoFactorBody:()=>aBS,DisableTwoFactorResponse:()=>rBS,EnableRequiredTwoFactorBody:()=>XfS,EnableRequiredTwoFactorResponse:()=>eBS,EnableTwoFactorBody:()=>oBS,EnableTwoFactorResponse:()=>iBS,GetAccountTwoFactorPolicyHeader:()=>kfS,GetAccountTwoFactorPolicyResponse:()=>jfS,GetEntityTwoFactorPolicyHeader:()=>KfS,GetEntityTwoFactorPolicyParams:()=>VfS,GetEntityTwoFactorPolicyResponse:()=>ZfS,GetMeResponse:()=>vBS,GetTwoFactorConfigurationResponse:()=>tBS,ListMyAccountsResponse:()=>OBS,LoginBody:()=>uBS,LoginResponse:()=>cBS,PatchMeBody:()=>SBS,PatchMeResponse:()=>hBS,RequestPasswordResetBody:()=>mBS,RequestPasswordResetResponse:()=>xBS,SetupRequiredTwoFactorBody:()=>QfS,SetupRequiredTwoFactorResponse:()=>JfS,SetupTwoFactorBody:()=>nBS,SetupTwoFactorResponse:()=>sBS,SignupBody:()=>pBS,UpdateAccountTwoFactorPolicyBody:()=>LfS,UpdateAccountTwoFactorPolicyHeader:()=>HfS,UpdateAccountTwoFactorPolicyResponse:()=>GfS,UpdateEntityTwoFactorPolicyBody:()=>YfS,UpdateEntityTwoFactorPolicyHeader:()=>WfS,UpdateEntityTwoFactorPolicyParams:()=>qfS,UpdateEntityTwoFactorPolicyResponse:()=>$fS,UpdateUserFinaSettingsBody:()=>TBS,UpdateUserFinaSettingsHeader:()=>BBS,UpdateUserFinaSettingsResponse:()=>IBS,UpdateUserFursSettingsBody:()=>zBS,UpdateUserFursSettingsHeader:()=>bBS,UpdateUserFursSettingsResponse:()=>fBS,VerifyTwoFactorBody:()=>lBS,VerifyTwoFactorResponse:()=>dBS,confirmPasswordResetBodyPasswordMin:()=>fZv,confirmPasswordResetBodyPasswordRegExp:()=>BZv,disableTwoFactorBodyCodeMax:()=>wKv,disableTwoFactorBodyCodeMin:()=>CKv,disableTwoFactorBodyPasswordMax:()=>PKv,enableRequiredTwoFactorBodyCodeRegExp:()=>bKv,enableRequiredTwoFactorBodyTokenRegExp:()=>hKv,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>IKv,enableRequiredTwoFactorResponseSessionOneIdMax:()=>zKv,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>EKv,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>TKv,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>BKv,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>fKv,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>NKv,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>RKv,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>DKv,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>_Kv,enableTwoFactorBodyCodeRegExp:()=>UKv,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>mKv,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>yKv,getEntityTwoFactorPolicyPathIdRegExp:()=>gKv,getMeResponseAccountIdMax:()=>DZv,getMeResponseEmailMax:()=>IZv,getMeResponseIdMax:()=>TZv,getMeResponseNameMax:()=>EZv,loginBodyShopifyReturnUrlMax:()=>JKv,loginBodyShopifyReturnUrlMin:()=>QKv,loginBodyShopifyReturnUrlRegExp:()=>XKv,loginResponseOneEntityIdMax:()=>oZv,loginResponseOneIdMax:()=>eZv,loginResponseOneImpersonatorUserIdMax:()=>iZv,loginResponseOneScopeMax:()=>sZv,loginResponseOneTtlDefault:()=>nZv,loginResponseOneUserIdMax:()=>tZv,loginResponseTwoUserAccountIdMax:()=>dZv,loginResponseTwoUserEmailMax:()=>rZv,loginResponseTwoUserIdMax:()=>aZv,loginResponseTwoUserNameMax:()=>lZv,patchMeBodyNameMin:()=>RZv,patchMeResponseAccountIdMax:()=>UZv,patchMeResponseEmailMax:()=>NZv,patchMeResponseIdMax:()=>_Zv,patchMeResponseNameMax:()=>MZv,requestPasswordResetBodyShopifyReturnUrlMax:()=>bZv,requestPasswordResetBodyShopifyReturnUrlMin:()=>hZv,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>zZv,setupRequiredTwoFactorBodyTokenRegExp:()=>SKv,setupTwoFactorBodyPasswordMax:()=>MKv,signupBodyNameMin:()=>uZv,signupBodyPasswordMin:()=>cZv,signupBodyPasswordRegExp:()=>pZv,signupBodySignupAttributionFbclidMax:()=>SZv,signupBodySignupAttributionGbraidMax:()=>OZv,signupBodySignupAttributionGclidMax:()=>yZv,signupBodySignupAttributionUtmCampaignMax:()=>gZv,signupBodySignupAttributionUtmMediumMax:()=>xZv,signupBodySignupAttributionUtmSourceMax:()=>mZv,signupBodySignupAttributionWbraidMax:()=>vZv,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>xKv,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>vKv,updateEntityTwoFactorPolicyPathIdRegExp:()=>OKv,updateUserFinaSettingsResponseAccountIdMax:()=>HZv,updateUserFinaSettingsResponseEmailMax:()=>kZv,updateUserFinaSettingsResponseIdMax:()=>FZv,updateUserFinaSettingsResponseNameMax:()=>jZv,updateUserFursSettingsResponseAccountIdMax:()=>AZv,updateUserFursSettingsResponseEmailMax:()=>CZv,updateUserFursSettingsResponseIdMax:()=>PZv,updateUserFursSettingsResponseNameMax:()=>wZv,verifyTwoFactorBodyCodeMax:()=>jKv,verifyTwoFactorBodyCodeMin:()=>kKv,verifyTwoFactorBodyTokenMax:()=>AKv,verifyTwoFactorBodyTokenRegExp:()=>FKv,verifyTwoFactorResponseOneEntityIdMax:()=>KKv,verifyTwoFactorResponseOneIdMax:()=>HKv,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>ZKv,verifyTwoFactorResponseOneScopeMax:()=>VKv,verifyTwoFactorResponseOneTtlDefault:()=>GKv,verifyTwoFactorResponseOneUserIdMax:()=>LKv,verifyTwoFactorResponseTwoUserAccountIdMax:()=>$Kv,verifyTwoFactorResponseTwoUserEmailMax:()=>WKv,verifyTwoFactorResponseTwoUserIdMax:()=>qKv,verifyTwoFactorResponseTwoUserNameMax:()=>YKv});var mKv=/^acc_[0-9a-fA-F]{24}$/,kfS=e.object({"x-account-id":e.string().regex(mKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),jfS=e.object({required:e.boolean()}),xKv=/^acc_[0-9a-fA-F]{24}$/,HfS=e.object({"x-account-id":e.string().regex(xKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),LfS=e.object({required:e.boolean()}),GfS=e.object({required:e.boolean()}),gKv=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,VfS=e.object({id:e.stringFormat("resource-id",gKv).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),yKv=/^acc_[0-9a-fA-F]{24}$/,KfS=e.object({"x-account-id":e.string().regex(yKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),ZfS=e.object({required:e.boolean()}),OKv=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,qfS=e.object({id:e.stringFormat("resource-id",OKv).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),vKv=/^acc_[0-9a-fA-F]{24}$/,WfS=e.object({"x-account-id":e.string().regex(vKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),YfS=e.object({required:e.boolean()}),$fS=e.object({required:e.boolean()}),SKv=/^session_2fa_setup_[a-f0-9]{64}$/,QfS=e.object({token:e.string().regex(SKv)}),JfS=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),hKv=/^session_2fa_setup_[a-f0-9]{64}$/,bKv=/^\d{6}$/,XfS=e.object({token:e.string().regex(hKv),code:e.string().regex(bKv)}),zKv=100,fKv=36,BKv=31536e3,TKv=50,IKv=36,EKv=36,DKv=36,RKv=255,_Kv=255,NKv=36,eBS=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(zKv),user_id:e.string().max(fKv),ttl:e.number().default(BKv).describe("Token time-to-live in seconds"),scope:e.string().max(TKv).nullish(),entity_id:e.string().max(IKv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(EKv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(DKv),email:e.string().max(RKv),name:e.string().max(_Kv).nullish(),email_verified:e.boolean(),account_id:e.string().max(NKv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),tBS=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),MKv=1024,nBS=e.object({password:e.string().max(MKv).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),sBS=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),UKv=/^\d{6}$/,oBS=e.object({code:e.string().regex(UKv)}),iBS=e.object({recovery_codes:e.array(e.string())}),PKv=1024,CKv=6,wKv=32,aBS=e.object({password:e.string().max(PKv).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes."),code:e.string().min(CKv).max(wKv).describe("Six-digit authenticator code or a single-use recovery code.")}),rBS=e.object({enabled:e.literal(false)}),AKv=100,FKv=/^session_2fa_[a-zA-Z0-9]+$/,kKv=6,jKv=32,lBS=e.object({token:e.string().max(AKv).regex(FKv),code:e.string().min(kKv).max(jKv).describe("Six-digit authenticator code or a single-use recovery code.")}),HKv=100,LKv=36,GKv=31536e3,VKv=50,KKv=36,ZKv=36,qKv=36,WKv=255,YKv=255,$Kv=36,dBS=e.object({id:e.string().max(HKv),user_id:e.string().max(LKv),ttl:e.number().default(GKv).describe("Token time-to-live in seconds"),scope:e.string().max(VKv).nullish(),entity_id:e.string().max(KKv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(ZKv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(qKv),email:e.string().max(WKv),name:e.string().max(YKv).nullish(),email_verified:e.boolean(),account_id:e.string().max($Kv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),QKv=86,JKv=86,XKv=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,uBS=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(QKv).max(JKv).regex(XKv).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),eZv=100,tZv=36,nZv=31536e3,sZv=50,oZv=36,iZv=36,aZv=36,rZv=255,lZv=255,dZv=36,cBS=e.object({id:e.string().max(eZv),user_id:e.string().max(tZv),ttl:e.number().default(nZv).describe("Token time-to-live in seconds"),scope:e.string().max(sZv).nullish(),entity_id:e.string().max(oZv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(iZv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(aZv),email:e.string().max(rZv),name:e.string().max(lZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(dZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),uZv=2,cZv=8,pZv=/[a-z]/,mZv=150,xZv=150,gZv=150,yZv=512,OZv=512,vZv=512,SZv=512,pBS=e.object({email:e.email(),name:e.string().min(uZv).nullish(),password:e.string().min(cZv).regex(pZv),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional(),signup_attribution:e.object({utm_source:e.string().min(1).max(mZv).nullish(),utm_medium:e.string().min(1).max(xZv).nullish(),utm_campaign:e.string().min(1).max(gZv).nullish(),gclid:e.string().min(1).max(yZv).nullish(),gbraid:e.string().min(1).max(OZv).nullish(),wbraid:e.string().min(1).max(vZv).nullish(),fbclid:e.string().min(1).max(SZv).nullish()}).nullish().describe("Optional campaign parameters (utm_source, utm_medium, utm_campaign) and ad click IDs (gclid, gbraid, wbraid, fbclid) from the link the user arrived through. Stored with the new user for first-party sign-up attribution and never returned. Each value is trimmed. A UTM value is kept only when it is 1\u2013150 letters, digits, spaces or `_ . - + ~ ( )` and does not look like an email address, URL or secret; a click ID is kept only when it is 1\u2013512 characters of `A-Z a-z 0-9 _ . -`. Invalid values and malformed objects are ignored rather than rejected.")}),hZv=86,bZv=86,zZv=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,mBS=e.object({email:e.email(),shopify_return_url:e.string().min(hZv).max(bZv).regex(zZv).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),xBS=e.object({message:e.string()}),fZv=8,BZv=/[a-z]/,gBS=e.object({token:e.string().min(1),password:e.string().min(fZv).regex(BZv)}),yBS=e.object({message:e.string()}),OBS=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"]),external_analytics:e.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),TZv=36,IZv=255,EZv=255,DZv=36,vBS=e.object({id:e.string().max(TZv),email:e.string().max(IZv),name:e.string().max(EZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(DZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),RZv=2,SBS=e.object({name:e.string().min(RZv).nullish().describe("User display name"),locale:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),_Zv=36,NZv=255,MZv=255,UZv=36,hBS=e.object({id:e.string().max(_Zv),email:e.string().max(NZv),name:e.string().max(MZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(UZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),bBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zBS=e.object({operator_tax_number:e.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),PZv=36,CZv=255,wZv=255,AZv=36,fBS=e.object({id:e.string().max(PZv),email:e.string().max(CZv),name:e.string().max(wZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(AZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),BBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TBS=e.object({operator_oib:e.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),FZv=36,kZv=255,jZv=255,HZv=36,IBS=e.object({id:e.string().max(FZv),email:e.string().max(kZv),name:e.string().max(jZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(HZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var Pt={};W(Pt,{CancelVerifactuRecordBody:()=>qBS,CancelVerifactuRecordHeader:()=>ZBS,CancelVerifactuRecordParams:()=>KBS,CancelVerifactuRecordResponse:()=>WBS,CorrectVerifactuRecordBody:()=>GBS,CorrectVerifactuRecordHeader:()=>LBS,CorrectVerifactuRecordParams:()=>HBS,CorrectVerifactuRecordResponse:()=>VBS,GetVerifactuEvidenceHeader:()=>wBS,GetVerifactuEvidenceParams:()=>CBS,GetVerifactuEvidenceResponse:()=>ABS,GetVerifactuSettingsHeader:()=>EBS,GetVerifactuSettingsResponse:()=>DBS,RetryVerifactuRecordHeader:()=>kBS,RetryVerifactuRecordParams:()=>FBS,RetryVerifactuRecordResponse:()=>jBS,UpdateVerifactuSettingsBody:()=>_BS,UpdateVerifactuSettingsHeader:()=>RBS,UpdateVerifactuSettingsResponse:()=>NBS,UploadVerifactuCertificateBody:()=>UBS,UploadVerifactuCertificateHeader:()=>MBS,UploadVerifactuCertificateResponse:()=>PBS,cancelVerifactuRecordBodyReasonMax:()=>$Zv,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>ZZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>WZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>qZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>YZv,correctVerifactuRecordBodyReasonMax:()=>KZv,getVerifactuSettingsResponsePendingRecordsMin:()=>LZv,updateVerifactuSettingsResponsePendingRecordsMin:()=>GZv,uploadVerifactuCertificateResponsePendingRecordsMin:()=>VZv});var EBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),LZv=0,DBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(LZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),RBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_BS=e.object({territory:e.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked.")}).describe("Explicit eligibility choices and activation request for the entity\u2019s VeriFactu installation."),GZv=0,NBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(GZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),MBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),UBS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),VZv=0,PBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(VZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),CBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),wBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ABS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e.object({document_id:e.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e.array(e.object({id:e.string().describe("Unique attempt identifier."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e.string().describe("Attempt start timestamp."),finished_at:e.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e.string().nullable().describe("Authority validation or sanitized local failure classification.")}))})).describe("Immutable fiscal request and the latest 100 submission and consultation attempts; all attempts remain retained."),FBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),kBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),jBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),HBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),LBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KZv=500,ZZv=500,qZv=0,WZv=/^\d{2}$/,YZv=12,GBS=e.object({reason:e.string().min(1).max(KZv).describe("Operator explanation retained with this fiscal operation."),correction:e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(ZZv).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(qZv).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex(WZv).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(YZv).nullish().describe("Explicit classifications for exceptional tax rows. Ordinary domestic positive-rate IVA defaults to 01/01/S1. Zero, exempt, reverse-charge and non-domestic rows require classification.")}).describe("Fiscal classifications supplied before issue, or as an append-only fiscal metadata correction.")}).describe("Append a correction to a confirmed fiscal record without changing invoice financial or party facts."),VBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),KBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),ZBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$Zv=500,qBS=e.object({reason:e.string().min(1).max($Zv).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),WBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.");var Ct={};W(Ct,{CheckViesBody:()=>YBS,CheckViesResponse:()=>$BS,checkViesBodyCustomerCountryCodeMax:()=>tqv,checkViesBodyCustomerCountryCodeMin:()=>eqv,checkViesBodyIssuerCountryCodeMax:()=>JZv,checkViesBodyIssuerCountryCodeMin:()=>QZv,checkViesBodyIssuerIsTaxSubjectDefault:()=>XZv,checkViesResponseCustomerCountryCodeMax:()=>iqv,checkViesResponseCustomerCountryCodeMin:()=>oqv,checkViesResponseIssuerCountryCodeMax:()=>sqv,checkViesResponseIssuerCountryCodeMin:()=>nqv,checkViesResponseVatIdCountryCodeMax:()=>rqv,checkViesResponseVatIdCountryCodeMin:()=>aqv});var QZv=2,JZv=2,XZv=true,eqv=2,tqv=2,YBS=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(QZv).max(JZv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(XZv).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(eqv).max(tqv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),nqv=2,sqv=2,oqv=2,iqv=2,aqv=2,rqv=2,$BS=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(nqv).max(sqv).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(oqv).max(iqv).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(aqv).max(rqv).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code and the issuer is in the EU. transaction_type is determined for this country instead of customer_country_code. Not returned when VIES rejects the VAT number: the address then decides."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var wt={};W(wt,{CreateWarehouseBody:()=>tTS,CreateWarehouseHeader:()=>eTS,DeleteWarehouseHeader:()=>uTS,DeleteWarehouseParams:()=>dTS,GetWarehouseByIdHeader:()=>sTS,GetWarehouseByIdParams:()=>nTS,GetWarehouseByIdResponse:()=>oTS,GetWarehousesHeader:()=>JBS,GetWarehousesQueryParams:()=>QBS,GetWarehousesResponse:()=>XBS,UpdateWarehouseBody:()=>rTS,UpdateWarehouseHeader:()=>aTS,UpdateWarehouseParams:()=>iTS,UpdateWarehouseResponse:()=>lTS,createWarehouseBodyNameMax:()=>mqv,deleteWarehousePathIdRegExp:()=>fqv,getWarehouseByIdPathIdRegExp:()=>xqv,getWarehouseByIdResponseEntityIdMax:()=>yqv,getWarehouseByIdResponseIdMax:()=>gqv,getWarehouseByIdResponseNameMax:()=>Oqv,getWarehousesQueryLimitDefault:()=>lqv,getWarehousesQueryLimitMax:()=>dqv,getWarehousesResponseDataItemEntityIdMax:()=>cqv,getWarehousesResponseDataItemIdMax:()=>uqv,getWarehousesResponseDataItemNameMax:()=>pqv,updateWarehouseBodyNameMax:()=>Sqv,updateWarehousePathIdRegExp:()=>vqv,updateWarehouseResponseEntityIdMax:()=>bqv,updateWarehouseResponseIdMax:()=>hqv,updateWarehouseResponseNameMax:()=>zqv});var lqv=10,dqv=100,QBS=e.object({limit:e.number().min(1).max(dqv).default(lqv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),JBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uqv=36,cqv=36,pqv=200,XBS=e.object({data:e.array(e.object({id:e.string().max(uqv),entity_id:e.string().max(cqv),name:e.string().max(pqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),eTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mqv=200,tTS=e.object({name:e.string().min(1).max(mqv).describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Whether this becomes the entity's default warehouse. The first warehouse created for an entity becomes the default automatically; later ones only when `is_default` is true.")}),xqv=/^wh_[0-9a-f]{24}$/,nTS=e.object({id:e.stringFormat("resource-id",xqv).describe("Warehouse identifier (wh_ prefix).")}),sTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),gqv=36,yqv=36,Oqv=200,oTS=e.object({id:e.string().max(gqv),entity_id:e.string().max(yqv),name:e.string().max(Oqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),vqv=/^wh_[0-9a-f]{24}$/,iTS=e.object({id:e.stringFormat("resource-id",vqv).describe("Warehouse identifier (wh_ prefix).")}),aTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Sqv=200,rTS=e.object({name:e.string().min(1).max(Sqv).nullish().describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Set true to make this the entity's default warehouse. Omit or send null to leave it unchanged.")}),hqv=36,bqv=36,zqv=200,lTS=e.object({id:e.string().max(hqv),entity_id:e.string().max(bqv),name:e.string().max(zqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),fqv=/^wh_[0-9a-f]{24}$/,dTS=e.object({id:e.stringFormat("resource-id",fqv).describe("Warehouse identifier (wh_ prefix).")}),uTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var At={};W(At,{CreateWebhookBody:()=>pTS,CreateWebhookHeader:()=>cTS,DeleteWebhookHeader:()=>BTS,DeleteWebhookParams:()=>fTS,DeleteWebhookResponse:()=>TTS,GetWebhookByIdHeader:()=>OTS,GetWebhookByIdParams:()=>yTS,GetWebhookByIdResponse:()=>vTS,GetWebhookDeliveriesHeader:()=>NTS,GetWebhookDeliveriesParams:()=>RTS,GetWebhookDeliveriesQueryParams:()=>_TS,GetWebhookDeliveriesResponse:()=>MTS,GetWebhooksHeader:()=>xTS,GetWebhooksQueryParams:()=>mTS,GetWebhooksResponse:()=>gTS,RotateWebhookSecretHeader:()=>PTS,RotateWebhookSecretParams:()=>UTS,RotateWebhookSecretResponse:()=>CTS,TestWebhookHeader:()=>ETS,TestWebhookParams:()=>ITS,TestWebhookResponse:()=>DTS,UpdateWebhookBody:()=>bTS,UpdateWebhookHeader:()=>hTS,UpdateWebhookParams:()=>STS,UpdateWebhookResponse:()=>zTS,createWebhookBodyActiveDefault:()=>Iqv,createWebhookBodyDescriptionMax:()=>Tqv,createWebhookBodyUrlMax:()=>Bqv,deleteWebhookPathIdRegExp:()=>Wqv,getWebhookByIdPathIdRegExp:()=>Pqv,getWebhookByIdResponseDescriptionMax:()=>Fqv,getWebhookByIdResponseEntityIdMax:()=>wqv,getWebhookByIdResponseIdMax:()=>Cqv,getWebhookByIdResponseMetadataDefault:()=>kqv,getWebhookByIdResponseUrlMax:()=>Aqv,getWebhookDeliveriesPathIdRegExp:()=>uWv,getWebhookDeliveriesQueryLimitDefault:()=>cWv,getWebhookDeliveriesQueryLimitMax:()=>pWv,getWebhookDeliveriesResponseDataItemAttemptMax:()=>zWv,getWebhookDeliveriesResponseDataItemAttemptMin:()=>bWv,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>IWv,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>TWv,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>gWv,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>hWv,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>yWv,getWebhookDeliveriesResponseDataItemIdMax:()=>mWv,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>BWv,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>fWv,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>SWv,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>vWv,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>OWv,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>xWv,getWebhooksQueryLimitDefault:()=>Eqv,getWebhooksQueryLimitMax:()=>Dqv,getWebhooksResponseDataItemDescriptionMax:()=>Mqv,getWebhooksResponseDataItemEntityIdMax:()=>_qv,getWebhooksResponseDataItemIdMax:()=>Rqv,getWebhooksResponseDataItemMetadataDefault:()=>Uqv,getWebhooksResponseDataItemUrlMax:()=>Nqv,rotateWebhookSecretPathIdRegExp:()=>EWv,rotateWebhookSecretResponseDescriptionMax:()=>NWv,rotateWebhookSecretResponseEntityIdMax:()=>RWv,rotateWebhookSecretResponseIdMax:()=>DWv,rotateWebhookSecretResponseMetadataDefault:()=>UWv,rotateWebhookSecretResponseSecretMax:()=>MWv,rotateWebhookSecretResponseUrlMax:()=>_Wv,testWebhookPathIdRegExp:()=>Yqv,testWebhookResponseAttemptMax:()=>iWv,testWebhookResponseAttemptMin:()=>oWv,testWebhookResponseDurationMsMax:()=>dWv,testWebhookResponseDurationMsMin:()=>lWv,testWebhookResponseEntityIdMax:()=>Jqv,testWebhookResponseErrorMessageMax:()=>sWv,testWebhookResponseEventTypeMax:()=>Xqv,testWebhookResponseIdMax:()=>$qv,testWebhookResponseMaxAttemptsMax:()=>rWv,testWebhookResponseMaxAttemptsMin:()=>aWv,testWebhookResponseResponseBodyMax:()=>nWv,testWebhookResponseResponseStatusMax:()=>tWv,testWebhookResponseResponseStatusMin:()=>eWv,testWebhookResponseWebhookIdMax:()=>Qqv,updateWebhookBodyDescriptionMax:()=>Lqv,updateWebhookBodyUrlMax:()=>Hqv,updateWebhookPathIdRegExp:()=>jqv,updateWebhookResponseDescriptionMax:()=>Zqv,updateWebhookResponseEntityIdMax:()=>Vqv,updateWebhookResponseIdMax:()=>Gqv,updateWebhookResponseMetadataDefault:()=>qqv,updateWebhookResponseUrlMax:()=>Kqv});var cTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Bqv=2048,Tqv=500,Iqv=true,pTS=e.object({url:e.url().max(Bqv).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Tqv).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).describe("Events that trigger this webhook"),active:e.boolean().default(Iqv).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Eqv=10,Dqv=100,mTS=e.object({limit:e.number().min(1).max(Dqv).default(Eqv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),xTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Rqv=36,_qv=36,Nqv=2048,Mqv=500,Uqv={},gTS=e.object({data:e.array(e.object({id:e.string().max(Rqv),entity_id:e.string().max(_qv),url:e.string().max(Nqv),description:e.string().max(Mqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Uqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Pqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,yTS=e.object({id:e.stringFormat("resource-id",Pqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),OTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Cqv=36,wqv=36,Aqv=2048,Fqv=500,kqv={},vTS=e.object({id:e.string().max(Cqv),entity_id:e.string().max(wqv),url:e.string().max(Aqv),description:e.string().max(Fqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(kqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),jqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,STS=e.object({id:e.stringFormat("resource-id",jqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hqv=2048,Lqv=500,bTS=e.object({url:e.url().max(Hqv).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Lqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).optional(),active:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Gqv=36,Vqv=36,Kqv=2048,Zqv=500,qqv={},zTS=e.object({id:e.string().max(Gqv),entity_id:e.string().max(Vqv),url:e.string().max(Kqv),description:e.string().max(Zqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(qqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Wqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,fTS=e.object({id:e.stringFormat("resource-id",Wqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),BTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TTS=e.object({success:e.boolean()}),Yqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,ITS=e.object({id:e.stringFormat("resource-id",Yqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ETS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$qv=36,Qqv=36,Jqv=36,Xqv=100,eWv=-2147483648,tWv=2147483647,nWv=1e4,sWv=2e3,oWv=-2147483648,iWv=2147483647,aWv=-2147483648,rWv=2147483647,lWv=-2147483648,dWv=2147483647,DTS=e.object({id:e.string().max($qv),webhook_id:e.string().max(Qqv),entity_id:e.string().max(Jqv),event_type:e.string().max(Xqv),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(eWv).max(tWv).nullish(),response_body:e.string().max(nWv).nullish(),error_message:e.string().max(sWv).nullish(),attempt:e.number().min(oWv).max(iWv),max_attempts:e.number().min(aWv).max(rWv),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(lWv).max(dWv).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),uWv=/^[a-z]{3,4}_[0-9a-f]{24}$/,RTS=e.object({id:e.stringFormat("resource-id",uWv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),cWv=10,pWv=100,_TS=e.object({limit:e.number().min(1).max(pWv).default(cWv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),NTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mWv=36,xWv=36,gWv=36,yWv=100,OWv=-2147483648,vWv=2147483647,SWv=1e4,hWv=2e3,bWv=-2147483648,zWv=2147483647,fWv=-2147483648,BWv=2147483647,TWv=-2147483648,IWv=2147483647,MTS=e.object({data:e.array(e.object({id:e.string().max(mWv),webhook_id:e.string().max(xWv),entity_id:e.string().max(gWv),event_type:e.string().max(yWv),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(OWv).max(vWv).nullish(),response_body:e.string().max(SWv).nullish(),error_message:e.string().max(hWv).nullish(),attempt:e.number().min(bWv).max(zWv),max_attempts:e.number().min(fWv).max(BWv),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(TWv).max(IWv).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),EWv=/^[a-z]{3,4}_[0-9a-f]{24}$/,UTS=e.object({id:e.stringFormat("resource-id",EWv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),PTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),DWv=36,RWv=36,_Wv=2048,NWv=500,MWv=64,UWv={},CTS=e.object({id:e.string().max(DWv),entity_id:e.string().max(RWv),url:e.string().max(_Wv),description:e.string().max(NWv).nullish(),secret:e.string().max(MWv),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(UWv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Webhook endpoint with full secret visible");var Ft={};W(Ft,{CheckWLFeatureParams:()=>FTS,CheckWLFeatureResponse:()=>kTS,CheckWLLimitParams:()=>jTS,CheckWLLimitResponse:()=>HTS,GetCurrentWLSubscriptionResponse:()=>wTS,GetWLSubscriptionPlansResponse:()=>ATS,UpdateWLSubscriptionBillingEmailBody:()=>LTS,UpdateWLSubscriptionBillingEmailResponse:()=>GTS,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>PWv,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>CWv});var PWv=0,CWv=null,wTS=e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e.string().describe("Subscription status"),billing_interval:e.string().nullable().describe("Current billing interval"),current_period_start:e.string().describe("Current period start date (ISO 8601)"),current_period_end:e.string().describe("Current period end date (ISO 8601)"),payment_provider:e.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e.boolean().optional().describe("Whether subscription charges and cancellation are managed by Shopify instead of Apollo's payment providers. May be omitted by API versions from before Shopify-managed billing."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e.boolean().describe("True only when this request created the trial subscription."),cancel_at:e.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e.object({last4:e.string().nullable(),brand:e.string().nullable(),has_card:e.boolean()}).nullable(),store_billing:e.union([e.object({connected_stores:e.number(),included_stores:e.number(),billable_extra_stores:e.number(),invoices_included_from_extra_stores:e.number(),extra_store_price_cents_monthly:e.number().nullable(),extra_store_price_cents_yearly:e.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e.null()]),usage:e.object({documents_count:e.number().describe("Documents created this period"),documents_limit:e.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e.number().default(PWv).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(CWv).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e.string().describe("Current period start date (ISO 8601)"),period_end:e.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),ATS=e.object({plans:e.array(e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),FTS=e.object({feature:e.string().describe("Feature slug to check")}),kTS=e.object({feature:e.string().describe("Feature being checked"),allowed:e.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),jTS=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),HTS=e.object({resource:e.string().describe("Resource being checked"),allowed:e.boolean().describe("Whether creating more of this resource is allowed"),usage:e.number().describe("Current usage count"),limit:e.number().nullable().describe("Current limit. Null means unlimited."),percentage:e.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),LTS=e.object({billing_email:e.email().nullable()}),GTS=e.object({billing_email:e.string().nullable()});var kt={};W(kt,{GetCurrentWhiteLabelResponse:()=>VTS,GetMyWhiteLabelResponse:()=>KTS});var VTS=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),KTS=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var ZTS=125e3,jt=null,_e=null,Ht=false;function AWv(d){jt=d;}function Lt(d){_e=d,d==null&&(Ht=false);}function qTS(){Ht||(Ht=true,console.warn("[space-invoices] setAccountId() fallback is deprecated for SDK instance requests. Pass accountId via the SDK constructor or per-call config instead."));}function WTS(){return _e}function YTS(){if(!jt)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return jt}function $TS(d){if(!d)return {};if(d instanceof Headers){let c={};return d.forEach((g,E)=>{c[E]=g;}),c}if(Array.isArray(d)){let c={};for(let[g,E]of d)c[g]=E;return c}return d}function QTS(d,c){if(c==null||c<=0)return {signal:d??void 0,cleanup:()=>{}};let g=new AbortController,E=()=>{g.abort(d?.reason);};if(d?.aborted)return E(),{signal:g.signal,cleanup:()=>{}};let z=setTimeout(()=>{g.abort(new Error(`SDK request timed out after ${c}ms`));},c),_=()=>{clearTimeout(z),d?.removeEventListener("abort",E);};return d?.addEventListener("abort",E,{once:true}),g.signal.addEventListener("abort",_,{once:true}),{signal:g.signal,cleanup:_}}async function h(d,c){let{timeoutMs:g,sdkConfig:E,...z}=c??{},_=E??YTS(),ge=await Promise.resolve(_.getAccessToken()),ye=`${_.baseUrl}${d}`,pe={...$TS(z.headers)};_.clientName&&Object.assign(pe,Ne(_.clientName)),ge&&(pe.Authorization=`Bearer ${ge}`);let ze=pe["x-account-id"]||pe["X-Account-Id"]||_.accountId||null;!ze&&_e&&(E&&qTS(),ze=_e),ze&&!pe["x-account-id"]&&!pe["X-Account-Id"]&&(pe["x-account-id"]=ze);let fe=QTS(z.signal,g===void 0?_.requestTimeoutMs??ZTS:g);try{let ve=await fetch(ye,{...z,headers:pe,signal:fe.signal});ve.status===401&&_.onUnauthorized&&_.onUnauthorized(ve);let Te,SeS=ve.headers.get("content-length"),Be=ve.headers.get("content-type"),heS=ve.headers.get("content-disposition");if(SeS==="0"||ve.status===204)Te=void 0;else if(Be?.includes("application/pdf")||Be?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||Be?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||Be?.includes("text/csv")||Be?.includes("application/octet-stream")||Be?.includes("application/zip")||Be?.includes("application/x-zip-compressed")||Be?.includes("image/"))Te=await ve.blob();else if(Be?.includes("application/xml")||Be?.includes("text/xml"))Te=heS?.toLowerCase().includes("attachment")?await ve.blob():await ve.text();else if(Be?.includes("text/html"))Te=await ve.text();else try{Te=await ve.json();}catch{Te=void 0;}return {data:Te,status:ve.status,headers:ve.headers}}finally{fe.cleanup();}}var JTS=1e3;function XTS(d){if(!d||typeof d!="object"||Array.isArray(d))return false;let c=d;return Array.isArray(c.data)&&!!c.pagination&&typeof c.pagination=="object"&&!Array.isArray(c.pagination)}function eIS(d){return Array.isArray(d)?"a bare array":d==null?String(d):typeof d!="object"?`a ${typeof d}`:Array.isArray(d.data)?"an object with a data array but no pagination object (e.g. { data, has_more } instead of { data, pagination: { next_cursor } })":"an object without a data array"}async function*tIS(d,c,g){let E=g?`listAll(${g})`:"listAll()",z=c?.next_cursor,_=0;for(;;){if(_>=1e3)throw new Error(`${E} exceeded the safety limit of 1000 pages without reaching the end of the result set. This is almost always a pagination bug (a cursor that never advances) rather than a genuinely huge result set. Narrow the request with additional filters (e.g. a date range or query) or paginate manually with next_cursor if you really need more than 1000 pages.`);_++;let ge=z,ye=await d({...c,next_cursor:ge});if(!XTS(ye))throw new Error(`${E} cannot paginate this method: its response is ${eIS(ye)}, not the expected { data: T[], pagination: { next_cursor } } shape. This usually means the endpoint does not support cursor-based pagination at all. Call the method directly (it already returns everything in one response) instead of iterating it with listAll().`);for(let pe of ye.data)yield pe;let he=ye.pagination.next_cursor;if(!he)return;if(he===ge)throw new Error(`${E} received the same cursor it just sent (${ge}) after ${_} page(s). The API's pagination cursor is not advancing, which means the server has a pagination bug, not that the result set ended. Stopping here without this error would silently return an incomplete list as if it were complete.`);z=he;}}var nIS=()=>"/account-webhooks",FWv=async(d,c)=>h(nIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/account-webhooks?${g}`:"/account-webhooks"},kWv=async(d,c)=>h(sIS(d),{...c,method:"GET"}),oIS=d=>`/account-webhooks/${d}`,jWv=async(d,c)=>h(oIS(d),{...c,method:"GET"}),iIS=d=>`/account-webhooks/${d}`,HWv=async(d,c,g)=>h(iIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),aIS=d=>`/account-webhooks/${d}`,LWv=async(d,c)=>h(aIS(d),{...c,method:"DELETE"}),rIS=d=>`/account-webhooks/${d}/test`,GWv=async(d,c)=>h(rIS(d),{...c,method:"POST"});var lIS=d=>`/account-webhooks/${d}/rotate-secret`,VWv=async(d,c)=>h(lIS(d),{...c,method:"POST"});async function dIS(d,c){return d(...c)}function ZWv(d){if(!d?.entity_id&&!d?.account_id&&!d?.request_id&&!d?.signal&&d?.timeoutMs===void 0&&!d?.sdkConfig)return;let c={};return (d.entity_id||d.account_id||d.request_id)&&(c.headers={...d.entity_id?{"x-entity-id":d.entity_id}:{},...d.account_id?{"x-account-id":d.account_id}:{},...d.request_id?{"X-Request-Id":d.request_id}:{}}),d.signal&&(c.signal=d.signal),d.timeoutMs!==void 0&&(c.timeoutMs=d.timeoutMs),d.sdkConfig&&(c.sdkConfig=d.sdkConfig),c}function b(d,c){let g=async(...z)=>{let _=z[z.length-1],ge=_&&typeof _=="object"&&("entity_id"in _||"account_id"in _||"request_id"in _||"signal"in _||"timeoutMs"in _||"sdkConfig"in _||Object.keys(_).length===0),ye,he;ge?(ye=z.slice(0,-1),he=ZWv(_)):ye=[...z];let pe=Math.max(0,d.length-1);for(;ye.length<pe;)ye.push(void 0);ye.push(he);let ze=await dIS(d,ye);if(ze.status>=200&&ze.status<300)return ze.data;let fe=new Error(`API error: ${ze.status}`);throw fe.status=ze.status,fe.data=ze.data,fe};return c===void 0?g:Object.assign(((...z)=>{let _=[...z];return _[c]??={},g(..._)}),{__sdkOptionsIndex:c})}function X(d){return Object.assign(async g=>{let{entity_id:E,account_id:z,request_id:_,signal:ge,timeoutMs:ye,sdkConfig:he,...pe}=g||{},ze=ZWv({entity_id:E,account_id:z,request_id:_,signal:ge,timeoutMs:ye,sdkConfig:he}),fe=await d(pe,ze);if(fe.status===200)return fe.data;let ve=new Error(`API error: ${fe.status}`);throw ve.status=fe.status,ve.data=fe.data,ve},{__sdkListMethod:true})}function KWv(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}function q(d,c){let g=Object.entries(d).map(([E,z])=>typeof z!="function"?[E,z]:[E,(..._)=>{let ge=c(),ye=_[_.length-1],he=z;if(he.__sdkListMethod){let pe=_[0];_[0]=pe&&typeof pe=="object"?{...pe,sdkConfig:ge}:{sdkConfig:ge};}else if(typeof he.__sdkOptionsIndex=="number"){let pe=_[he.__sdkOptionsIndex];_[he.__sdkOptionsIndex]=KWv(pe)?{...pe,sdkConfig:ge}:{sdkConfig:ge};}else KWv(ye)?_[_.length-1]={...ye,sdkConfig:ge}:_.push({sdkConfig:ge});return z(..._)}]);return Object.fromEntries(g)}var Gt={create:b(FWv,1),list:X(kWv),get:b(jWv,1),update:b(HWv,2),delete:b(LWv,1),testAccountWebhook:b(GWv,1),rotateAccountWebhookSecret:b(VWv,1)};var uIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/activities?${g}`:"/activities"},qWv=async(d,c)=>h(uIS(d),{...c,method:"GET"});var Vt={list:X(qWv)};var cIS=d=>`/advance-invoices/${d}/nav/retry`,WWv=async(d,c)=>h(cIS(d),{...c,method:"POST"}),pIS=d=>`/advance-invoices/${d}/nav/reconcile`,YWv=async(d,c)=>h(pIS(d),{...c,method:"POST"}),mIS=d=>`/advance-invoices/${d}/nav/annulment`,$Wv=async(d,c,g)=>h(mIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xIS=d=>`/advance-invoices/shareable/${d}`,QWv=async(d,c)=>h(xIS(d),{...c,method:"GET"}),gIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/html?${E}`:`/advance-invoices/shareable/${d}/html`},JWv=async(d,c,g)=>h(gIS(d,c),{...g,method:"GET"}),yIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/pdf?${E}`:`/advance-invoices/shareable/${d}/pdf`},XWv=async(d,c,g)=>h(yIS(d,c),{...g,method:"GET"}),OIS=d=>`/advance-invoices/shareable/${d}/eslog`,e6v=async(d,c)=>h(OIS(d),{...c,method:"GET"}),vIS=()=>"/advance-invoices",t6v=async(d,c)=>h(vIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),SIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/advance-invoices?${g}`:"/advance-invoices"},n6v=async(d,c)=>h(SIS(d),{...c,method:"GET"}),hIS=()=>"/advance-invoices/custom",s6v=async(d,c)=>h(hIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/${d}?${E}`:`/advance-invoices/${d}`},o6v=async(d,c,g)=>h(bIS(d,c),{...g,method:"GET"}),zIS=d=>`/advance-invoices/${d}`,i6v=async(d,c,g)=>h(zIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fIS=d=>`/advance-invoices/${d}/versions`,a6v=async(d,c)=>h(fIS(d),{...c,method:"GET"}),BIS=(d,c)=>`/advance-invoices/${d}/versions/${c}`,r6v=async(d,c,g)=>h(BIS(d,c),{...g,method:"GET"}),TIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/advance-invoices/render?${g}`:"/advance-invoices/render"},l6v=async(d,c,g)=>h(TIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),IIS=d=>`/advance-invoices/${d}/void`,d6v=async(d,c,g)=>h(IIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Kt={retryAdvanceInvoiceNav:b(WWv,1),reconcileAdvanceInvoiceNav:b(YWv,1),annulAdvanceInvoiceNav:b($Wv,2),getShareableAdvanceInvoice:b(QWv,1),getShareableAdvanceInvoiceHtml:b(JWv,2),getShareableAdvanceInvoicePdf:b(XWv,2),getShareableAdvanceInvoiceEslog:b(e6v,1),create:b(t6v,1),list:X(n6v),createCustom:b(s6v,1),get:b(o6v,2),update:b(i6v,2),getVersions:b(a6v,1),getVersion:b(r6v,2),renderAdvanceInvoicePreview:b(l6v,2),void:b(d6v,2)};var EIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/business-units?${g}`:"/business-units"},u6v=async(d,c)=>h(EIS(d),{...c,method:"GET"}),DIS=()=>"/business-units",c6v=async(d,c)=>h(DIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/business-units/${d}?${E}`:`/business-units/${d}`},p6v=async(d,c,g)=>h(RIS(d,c),{...g,method:"GET"}),_IS=d=>`/business-units/${d}`,m6v=async(d,c,g)=>h(_IS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),NIS=d=>`/business-units/${d}`,x6v=async(d,c)=>h(NIS(d),{...c,method:"DELETE"});var Zt={list:X(u6v),create:b(c6v,1),get:b(p6v,2),update:b(m6v,2),delete:b(x6v,1)};var MIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/company-registry/search?${g}`:"/company-registry/search"},g6v=async(d,c)=>h(MIS(d),{...c,method:"GET"}),UIS=()=>"/company-registry/countries",y6v=async d=>h(UIS(),{...d,method:"GET"});var qt={searchCompanyRegistry:b(g6v,1),list:b(y6v,0)};var PIS=d=>`/credit-notes/${d}/nav/retry`,O6v=async(d,c)=>h(PIS(d),{...c,method:"POST"}),CIS=d=>`/credit-notes/${d}/nav/reconcile`,v6v=async(d,c)=>h(CIS(d),{...c,method:"POST"}),wIS=d=>`/credit-notes/${d}/nav/annulment`,S6v=async(d,c,g)=>h(wIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),AIS=d=>`/credit-notes/shareable/${d}`,h6v=async(d,c)=>h(AIS(d),{...c,method:"GET"}),FIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/html?${E}`:`/credit-notes/shareable/${d}/html`},b6v=async(d,c,g)=>h(FIS(d,c),{...g,method:"GET"}),kIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/pdf?${E}`:`/credit-notes/shareable/${d}/pdf`},z6v=async(d,c,g)=>h(kIS(d,c),{...g,method:"GET"}),jIS=d=>`/credit-notes/shareable/${d}/eslog`,f6v=async(d,c)=>h(jIS(d),{...c,method:"GET"}),HIS=d=>`/credit-notes/${d}/ksef/recover`,B6v=async(d,c)=>h(HIS(d),{...c,method:"POST"}),LIS=d=>`/credit-notes/${d}/ksef`,T6v=async(d,c)=>h(LIS(d),{...c,method:"GET"}),GIS=d=>`/credit-notes/${d}/ksef/submit`,I6v=async(d,c)=>h(GIS(d),{...c,method:"POST"}),VIS=d=>`/credit-notes/${d}/ksef/upo`,E6v=async(d,c)=>h(VIS(d),{...c,method:"GET"}),KIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},D6v=async(d,c,g)=>h(KIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),ZIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},R6v=async(d,c)=>h(ZIS(d),{...c,method:"GET"}),qIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes/custom?${g}`:"/credit-notes/custom"},_6v=async(d,c,g)=>h(qIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),WIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/${d}?${E}`:`/credit-notes/${d}`},N6v=async(d,c,g)=>h(WIS(d,c),{...g,method:"GET"}),YIS=d=>`/credit-notes/${d}`,M6v=async(d,c,g)=>h(YIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$IS=d=>`/credit-notes/${d}/xrechnung`,U6v=async(d,c)=>h($IS(d),{...c,method:"GET"}),QIS=d=>`/credit-notes/${d}/zugferd`,P6v=async(d,c)=>h(QIS(d),{...c,method:"GET"}),JIS=d=>`/credit-notes/${d}/versions`,C6v=async(d,c)=>h(JIS(d),{...c,method:"GET"}),XIS=(d,c)=>`/credit-notes/${d}/versions/${c}`,w6v=async(d,c,g)=>h(XIS(d,c),{...g,method:"GET"}),eES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes/render?${g}`:"/credit-notes/render"},A6v=async(d,c,g)=>h(eES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),tES=d=>`/credit-notes/${d}/fiscalize`,F6v=async(d,c)=>h(tES(d),{...c,method:"POST"}),nES=d=>`/credit-notes/${d}/void`,k6v=async(d,c,g)=>h(nES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});function j6v(d){let c=b(d);function g(E,z,_){let ge=z&&typeof z=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(pe=>pe in z),ye=ge?void 0:z,he=ge?{...z,..._}:_;return c(E,ye??{},he??{})}return Object.assign(g,{__sdkOptionsIndex:2})}var Wt={retryCreditNoteNav:b(O6v,1),reconcileCreditNoteNav:b(v6v,1),annulCreditNoteNav:b(S6v,2),getShareableCreditNote:b(h6v,1),getShareableCreditNoteHtml:b(b6v,2),getShareableCreditNotePdf:b(z6v,2),getShareableCreditNoteEslog:b(f6v,1),recoverCreditNoteFromKsef:b(B6v,1),getCreditNoteKsefState:b(T6v,1),submitCreditNoteToKsef:b(I6v,1),getCreditNoteKsefUpo:b(E6v,1),create:j6v(D6v),list:X(R6v),createCustom:j6v(_6v),get:b(N6v,2),update:b(M6v,2),downloadCreditNoteXRechnung:b(U6v,1),downloadCreditNoteZugferd:b(P6v,1),getVersions:b(C6v,1),getVersion:b(w6v,2),renderCreditNotePreview:b(A6v,2),fiscalizeCreditNote:b(F6v,1),void:b(k6v,2)};var sES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/currency/exchange-rate?${g}`:"/currency/exchange-rate"},H6v=async(d,c)=>h(sES(d),{...c,method:"GET"});var Yt={getExchangeRate:b(H6v,1)};var oES=()=>"/customers",L6v=async(d,c)=>h(oES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/customers?${g}`:"/customers"},G6v=async(d,c)=>h(iES(d),{...c,method:"GET"}),aES=d=>`/customers/${d}`,V6v=async(d,c)=>h(aES(d),{...c,method:"GET"}),rES=d=>`/customers/${d}`,K6v=async(d,c,g)=>h(rES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),lES=d=>`/customers/${d}`,Z6v=async(d,c)=>h(lES(d),{...c,method:"DELETE"}),dES=d=>`/customers/${d}/restore`,q6v=async(d,c)=>h(dES(d),{...c,method:"POST"}),uES=d=>`/customers/${d}/permanent`,W6v=async(d,c)=>h(uES(d),{...c,method:"DELETE"});var $t={create:b(L6v,1),list:X(G6v),get:b(V6v,1),update:b(K6v,2),delete:b(Z6v,1),restoreCustomer:b(q6v,1),permanentDeleteCustomer:b(W6v,1)};var cES=d=>`/delivery-notes/shareable/${d}`,Y6v=async(d,c)=>h(cES(d),{...c,method:"GET"}),pES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/html?${E}`:`/delivery-notes/shareable/${d}/html`},$6v=async(d,c,g)=>h(pES(d,c),{...g,method:"GET"}),mES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/pdf?${E}`:`/delivery-notes/shareable/${d}/pdf`},Q6v=async(d,c,g)=>h(mES(d,c),{...g,method:"GET"}),xES=()=>"/delivery-notes",J6v=async(d,c)=>h(xES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/delivery-notes?${g}`:"/delivery-notes"},X6v=async(d,c)=>h(gES(d),{...c,method:"GET"}),yES=()=>"/delivery-notes/custom",e7v=async(d,c)=>h(yES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),OES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/${d}?${E}`:`/delivery-notes/${d}`},t7v=async(d,c,g)=>h(OES(d,c),{...g,method:"GET"}),vES=d=>`/delivery-notes/${d}`,n7v=async(d,c,g)=>h(vES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),SES=d=>`/delivery-notes/${d}/versions`,s7v=async(d,c)=>h(SES(d),{...c,method:"GET"}),hES=(d,c)=>`/delivery-notes/${d}/versions/${c}`,o7v=async(d,c,g)=>h(hES(d,c),{...g,method:"GET"}),bES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/delivery-notes/render?${g}`:"/delivery-notes/render"},i7v=async(d,c,g)=>h(bES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),zES=d=>`/delivery-notes/${d}/void`,a7v=async(d,c,g)=>h(zES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fES=d=>`/delivery-notes/${d}/sign`,r7v=async(d,c,g)=>h(fES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BES=d=>`/delivery-notes/${d}/quantities`,l7v=async(d,c,g)=>h(BES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Qt={getShareableDeliveryNote:b(Y6v,1),getShareableDeliveryNoteHtml:b($6v,2),getShareableDeliveryNotePdf:b(Q6v,2),create:b(J6v,1),list:X(X6v),createCustom:b(e7v,1),get:b(t7v,2),update:b(n7v,2),getVersions:b(s7v,1),getVersion:b(o7v,2),renderDeliveryNotePreview:b(i7v,2),void:b(a7v,2),signDeliveryNote:b(r7v,2),setDeliveryNoteQuantities:b(l7v,2)};var TES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/next-number?${g}`:"/documents/next-number"},d7v=async(d,c)=>h(TES(d),{...c,method:"GET"}),IES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/calculate?${g}`:"/documents/calculate"},u7v=async(d,c,g)=>h(IES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),EES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/finalize?${E}`:`/documents/${d}/finalize`},c7v=async(d,c,g,E)=>h(EES(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),DES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/fiscalize?${E}`:`/documents/${d}/fiscalize`},p7v=async(d,c,g,E)=>h(DES(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),RES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/register-output?${E}`:`/documents/${d}/register-output`},m7v=async(d,c,g)=>h(RES(d,c),{...g,method:"POST"}),_ES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}?${E}`:`/documents/${d}`},x7v=async(d,c,g)=>h(_ES(d,c),{...g,method:"DELETE"}),NES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/restore?${E}`:`/documents/${d}/restore`},g7v=async(d,c,g)=>h(NES(d,c),{...g,method:"POST"}),MES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/permanent?${E}`:`/documents/${d}/permanent`},y7v=async(d,c,g)=>h(MES(d,c),{...g,method:"DELETE"}),UES=d=>`/documents/${d}/send`,O7v=async(d,c,g)=>h(UES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PES=d=>`/documents/${d}/share`,v7v=async(d,c)=>h(PES(d),{...c,method:"POST"}),CES=d=>`/documents/${d}/share`,S7v=async(d,c)=>h(CES(d),{...c,method:"GET"}),wES=d=>`/documents/${d}/share`,h7v=async(d,c)=>h(wES(d),{...c,method:"DELETE"});var Jt=b(p7v,3);function AES(d){return !!d&&typeof d=="object"&&"type"in d}function Xt(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}var FES=async(d,c,g,E)=>{if(Xt(c))return Jt(d,void 0,void 0,c);if(AES(c))return Jt(d,void 0,c,g);let z=Xt(g)?void 0:g,_=Xt(g)?g:E;return Jt(d,c,z,_)},en={getNextNumber:b(d7v,1),calculateDocumentPreview:b(u7v,2),finalizeDocument:b(c7v,3),fiscalizeDocument:FES,registerDocumentOutput:b(m7v,2),delete:b(x7v,2),restoreDocument:b(g7v,2),permanentDeleteDocument:b(y7v,2),sendDocument:b(O7v,2),shareDocument:b(v7v,1),getShareableId:b(S7v,1),unshareDocument:b(h7v,1)};var kES=()=>"/e-invoicing/settings",b7v=async d=>h(kES(),{...d,method:"GET"}),jES=()=>"/e-invoicing/settings",z7v=async(d,c)=>h(jES(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HES=()=>"/e-invoicing/enrollment/sync",f7v=async d=>h(HES(),{...d,method:"POST"}),LES=()=>"/e-invoicing/enrollment/verification-link",B7v=async d=>h(LES(),{...d,method:"POST"}),GES=()=>"/e-invoicing/enrollment/authorize",T7v=async(d,c)=>h(GES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),VES=()=>"/e-invoicing/enrollment/disconnect",I7v=async d=>h(VES(),{...d,method:"POST"}),KES=()=>"/e-invoicing/france/directory/lookup",E7v=async(d,c)=>h(KES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ZES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/received-documents?${g}`:"/e-invoicing/received-documents"},D7v=async(d,c)=>h(ZES(d),{...c,method:"GET"}),qES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/e-invoicing/received-documents/${d}/download?${E}`:`/e-invoicing/received-documents/${d}/download`},R7v=async(d,c,g)=>h(qES(d,c),{...g,method:"GET"}),WES=d=>`/e-invoicing/received-documents/${d}/accept`,_7v=async(d,c)=>h(WES(d),{...c,method:"POST"}),YES=d=>`/e-invoicing/received-documents/${d}/lifecycle`,N7v=async(d,c,g)=>h(YES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$ES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/reporting-records?${g}`:"/e-invoicing/reporting-records"},M7v=async(d,c)=>h($ES(d),{...c,method:"GET"}),QES=d=>`/e-invoicing/reporting-records/${d}/retry`,U7v=async(d,c)=>h(QES(d),{...c,method:"POST"}),JES=()=>"/e-invoicing/supplier",P7v=async(d,c)=>h(JES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XES=()=>"/e-invoicing/supplier",C7v=async d=>h(XES(),{...d,method:"GET"});var eDS=()=>"/e-invoicing/recipients/check",w7v=async(d,c)=>h(eDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),tDS=()=>"/e-invoicing/customer-search",A7v=async(d,c)=>h(tDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),nDS=d=>`/e-invoicing/documents/${d}/send`,F7v=async(d,c,g)=>h(nDS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sDS=(d,c)=>`/e-invoicing/send/${d}/${c}`,k7v=async(d,c,g,E)=>h(sDS(d,c),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),oDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/submissions?${g}`:"/e-invoicing/submissions"},j7v=async(d,c)=>h(oDS(d),{...c,method:"GET"}),iDS=d=>`/e-invoicing/submissions/${d}`,tn=async(d,c)=>h(iDS(d),{...c,method:"GET"}),aDS=d=>`/e-invoicing/submissions/${d}/retry`,nn=async(d,c)=>h(aDS(d),{...c,method:"POST"});var sn={getEInvoicingSubmission:b(tn,1),retryEInvoicingSubmission:b(nn,1),list:b(b7v,0),update:b(z7v,1),syncEInvoicingEnrollment:b(f7v,0),create:b(B7v,0),createEInvoicingEnrollmentAuthorization:b(T7v,1),disconnectEInvoicingEnrollment:b(I7v,0),lookupFranceEInvoicingDirectory:b(E7v,1),listReceivedEInvoices:b(D7v,1),downloadReceivedEInvoice:b(R7v,2),acceptReceivedEInvoice:b(_7v,1),sendReceivedEInvoiceLifecycle:b(N7v,2),listFrenchEReportingRecords:b(M7v,1),retryFrenchEReportingRecord:b(U7v,1),registerEInvoicingSupplier:b(P7v,1),getEInvoicingSupplier:b(C7v,0),checkEInvoicingRecipient:b(w7v,1),searchEInvoicingCustomer:b(A7v,1),sendEInvoicingDocument:b(F7v,2),sendEInvoice:b(k7v,3),listEInvoicingSubmissions:b(j7v,1),get:b(tn,1),retryEInvoicingSubmissionById:b(nn,1)};var rDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/validate?${E}`:`/eslog/${d}/validate`},H7v=async(d,c,g)=>h(rDS(d,c),{...g,method:"POST"}),lDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/download?${E}`:`/eslog/${d}/download`},L7v=async(d,c,g)=>h(lDS(d,c),{...g,method:"GET"});var on={validate:b(H7v,2),download:b(L7v,2)};var dDS=()=>"/email/send",G7v=async(d,c)=>h(dDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var an={sendEmail:b(G7v,1)};var uDS=d=>`/entities/${d}/nav`,V7v=async(d,c)=>h(uDS(d),{...c,method:"GET"}),cDS=d=>`/entities/${d}/nav`,K7v=async(d,c,g)=>h(cDS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),pDS=d=>`/entities/${d}/nav/credentials`,Z7v=async(d,c,g)=>h(pDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),mDS=d=>`/entities/${d}/nav/credentials`,q7v=async(d,c)=>h(mDS(d),{...c,method:"DELETE"}),xDS=d=>`/entities/${d}/nav/credentials/verify`,W7v=async(d,c)=>h(xDS(d),{...c,method:"POST"}),gDS=d=>`/entities/${d}/ksef`,Y7v=async(d,c)=>h(gDS(d),{...c,method:"GET"}),yDS=d=>`/entities/${d}/ksef`,$7v=async(d,c,g)=>h(yDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),ODS=d=>`/entities/${d}/ksef/credentials`,Q7v=async(d,c,g)=>h(ODS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),vDS=d=>`/entities/${d}/ksef/credentials`,J7v=async(d,c)=>h(vDS(d),{...c,method:"DELETE"}),SDS=()=>"/entities",X7v=async(d,c)=>h(SDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),hDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/entities?${g}`:"/entities"},e9v=async(d,c)=>h(hDS(d),{...c,method:"GET"}),bDS=d=>`/entities/${d}`,t9v=async(d,c)=>h(bDS(d),{...c,method:"GET"}),zDS=d=>`/entities/${d}`,n9v=async(d,c,g)=>h(zDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fDS=d=>`/entities/${d}/enable`,s9v=async(d,c)=>h(fDS(d),{...c,method:"POST"}),BDS=d=>`/entities/${d}/disable`,o9v=async(d,c)=>h(BDS(d),{...c,method:"POST"}),TDS=d=>`/entities/${d}/email-sender`,i9v=async(d,c)=>h(TDS(d),{...c,method:"GET"}),IDS=d=>`/entities/${d}/email-sender`,a9v=async(d,c,g)=>h(IDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),EDS=d=>`/entities/${d}/email-sender`,r9v=async(d,c)=>h(EDS(d),{...c,method:"DELETE"}),DDS=d=>`/entities/${d}/email-sender/recheck`,l9v=async(d,c)=>h(DDS(d),{...c,method:"POST"});var rn={retrieveEntityNavSettings:b(V7v,1),modifyEntityNavSettings:b(K7v,2),storeEntityNavCredentials:b(Z7v,2),removeEntityNavCredentials:b(q7v,1),verifyEntityNavCredentials:b(W7v,1),getEntityKsefSetup:b(Y7v,1),putEntityKsefSettings:b($7v,2),putEntityKsefCredential:b(Q7v,2),removeEntityKsefCredential:b(J7v,1),create:b(X7v,1),list:X(e9v),get:b(t9v,1),update:b(n9v,2),enableEntity:b(s9v,1),disableEntity:b(o9v,1),getEntityEmailSender:b(i9v,1),putEntityEmailSender:b(a9v,2),deleteEntityEmailSender:b(r9v),recheckEntityEmailSender:b(l9v,1)};var RDS=()=>"/entities/api-keys",d9v=async d=>h(RDS(),{...d,method:"GET"}),_DS=()=>"/entities/api-keys",u9v=async(d,c)=>h(_DS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),NDS=d=>`/entities/api-keys/${d}`,c9v=async(d,c)=>h(NDS(d),{...c,method:"DELETE"}),MDS=()=>"/entities/api-keys/revoke-integration",p9v=async d=>h(MDS(),{...d,method:"POST"});var ln={listEntityApiKeys:b(d9v,0),create:b(u9v,1),delete:b(c9v,1),revokeEntityApiKeyIntegration:b(p9v,0)};var UDS=()=>"/entities/invitations",m9v=async d=>h(UDS(),{...d,method:"GET"}),PDS=d=>`/entities/invitations/${d}`,x9v=async(d,c)=>h(PDS(d),{...c,method:"GET"}),CDS=d=>`/entities/invitations/${d}`,g9v=async(d,c)=>h(CDS(d),{...c,method:"DELETE"}),wDS=d=>`/entities/invitations/${d}/resend`,y9v=async(d,c)=>h(wDS(d),{...c,method:"POST"}),ADS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invitations/preview?${g}`:"/invitations/preview"},O9v=async(d,c)=>h(ADS(d),{...c,method:"GET"}),FDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invitations/accept?${g}`:"/invitations/accept"},v9v=async(d,c,g)=>h(FDS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var dn={listEntityInvitations:b(m9v,0),getEntityInvitation:b(x9v,1),cancelEntityInvitation:b(g9v,1),resendEntityInvitation:b(y9v,1),preview:b(O9v,1),acceptEntityInvitation:b(v9v,2)};var kDS=()=>"/stats/query",S9v=async(d,c)=>h(kDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var un={queryEntityStats:b(S9v,1)};var jDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/entities/users?${g}`:"/entities/users"},h9v=async(d,c)=>h(jDS(d),{...c,method:"GET"}),HDS=()=>"/entities/users",b9v=async(d,c)=>h(HDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LDS=()=>"/entities/users/access",z9v=async d=>h(LDS(),{...d,method:"GET"}),GDS=d=>`/entities/users/${d}`,f9v=async(d,c,g)=>h(GDS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),VDS=d=>`/entities/users/${d}`,B9v=async(d,c)=>h(VDS(d),{...c,method:"DELETE"}),KDS=d=>`/entities/users/${d}/token`,T9v=async(d,c,g)=>h(KDS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var cn={list:X(h9v),addEntityUser:b(b9v,1),getAccess:b(z9v,0),update:b(f9v,2),removeEntityUser:b(B9v,1),generateEntityUserToken:b(T9v,2)};var ZDS=d=>`/estimates/shareable/${d}`,I9v=async(d,c)=>h(ZDS(d),{...c,method:"GET"}),qDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/html?${E}`:`/estimates/shareable/${d}/html`},E9v=async(d,c,g)=>h(qDS(d,c),{...g,method:"GET"}),WDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/pdf?${E}`:`/estimates/shareable/${d}/pdf`},D9v=async(d,c,g)=>h(WDS(d,c),{...g,method:"GET"}),YDS=d=>`/estimates/shareable/${d}/eslog`,R9v=async(d,c)=>h(YDS(d),{...c,method:"GET"}),$DS=()=>"/estimates",_9v=async(d,c)=>h($DS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/estimates?${g}`:"/estimates"},N9v=async(d,c)=>h(QDS(d),{...c,method:"GET"}),JDS=()=>"/estimates/custom",M9v=async(d,c)=>h(JDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/${d}?${E}`:`/estimates/${d}`},U9v=async(d,c,g)=>h(XDS(d,c),{...g,method:"GET"}),eRS=d=>`/estimates/${d}`,P9v=async(d,c,g)=>h(eRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),tRS=d=>`/estimates/${d}/versions`,C9v=async(d,c)=>h(tRS(d),{...c,method:"GET"}),nRS=(d,c)=>`/estimates/${d}/versions/${c}`,w9v=async(d,c,g)=>h(nRS(d,c),{...g,method:"GET"}),sRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/estimates/render?${g}`:"/estimates/render"},A9v=async(d,c,g)=>h(sRS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var pn={getShareableEstimate:b(I9v,1),getShareableEstimateHtml:b(E9v,2),getShareableEstimatePdf:b(D9v,2),getShareableEstimateEslog:b(R9v,1),create:b(_9v,1),list:X(N9v),createCustom:b(M9v,1),get:b(U9v,2),update:b(P9v,2),getVersions:b(C9v,1),getVersion:b(w9v,2),renderEstimatePreview:b(A9v,2)};var oRS=()=>"/expenses",F9v=async(d,c)=>h(oRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses?${g}`:"/expenses"},k9v=async(d,c)=>h(iRS(d),{...c,method:"GET"}),aRS=()=>"/expenses/custom",j9v=async(d,c)=>h(aRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),rRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/export?${g}`:"/expenses/export"},H9v=async(d,c)=>h(rRS(d),{...c,method:"GET"}),lRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/report?${g}`:"/expenses/report"},L9v=async(d,c)=>h(lRS(d),{...c,method:"GET"}),dRS=()=>"/expenses/recognition/settings",G9v=async d=>h(dRS(),{...d,method:"GET"}),uRS=()=>"/expenses/recognition/settings",V9v=async(d,c)=>h(uRS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),cRS=()=>"/expenses/recognition/backfill",K9v=async(d,c)=>h(cRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),pRS=()=>"/expenses/recognitions",Z9v=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(pRS(),{...c,method:"POST",body:g})},mRS=d=>`/expenses/recognitions/${d}`,q9v=async(d,c)=>h(mRS(d),{...c,method:"GET"}),xRS=d=>`/expenses/recognitions/${d}/retry`,W9v=async(d,c)=>h(xRS(d),{...c,method:"POST"}),gRS=()=>"/expenses/inbound-email",Y9v=async d=>h(gRS(),{...d,method:"GET"}),yRS=()=>"/expenses/inbound-email",$9v=async d=>h(yRS(),{...d,method:"POST"}),ORS=()=>"/expenses/inbound-email",Q9v=async d=>h(ORS(),{...d,method:"DELETE"}),vRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/inbound-email/messages?${g}`:"/expenses/inbound-email/messages"},J9v=async(d,c)=>h(vRS(d),{...c,method:"GET"}),SRS=()=>"/expenses/imports/shareable/preview",X9v=async(d,c)=>h(SRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),hRS=()=>"/expenses/imports/shareable",e8v=async(d,c)=>h(hRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bRS=d=>`/expenses/${d}/recognition`,t8v=async(d,c)=>h(bRS(d),{...c,method:"GET"}),zRS=d=>`/expenses/${d}`,n8v=async(d,c)=>h(zRS(d),{...c,method:"GET"}),fRS=d=>`/expenses/${d}`,s8v=async(d,c,g)=>h(fRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BRS=d=>`/expenses/${d}`,o8v=async(d,c)=>h(BRS(d),{...c,method:"DELETE"}),TRS=d=>`/expenses/${d}/void`,i8v=async(d,c)=>h(TRS(d),{...c,method:"POST"}),IRS=d=>`/expenses/${d}/restore`,a8v=async(d,c)=>h(IRS(d),{...c,method:"POST"}),ERS=d=>`/expenses/${d}/attachments`,r8v=async(d,c,g)=>{let E=new FormData;return c.file!==void 0&&E.append("file",c.file),h(ERS(d),{...g,method:"POST",body:E})},DRS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/expenses/${d}/attachments?${E}`:`/expenses/${d}/attachments`},l8v=async(d,c,g)=>h(DRS(d,c),{...g,method:"GET"}),RRS=(d,c)=>`/expenses/${d}/attachments/${c}`,d8v=async(d,c,g)=>h(RRS(d,c),{...g,method:"DELETE"}),_RS=d=>`/expenses/${d}/payments`,u8v=async(d,c)=>h(_RS(d),{...c,method:"GET"}),NRS=d=>`/expenses/${d}/payments`,c8v=async(d,c,g)=>h(NRS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var mn={create:b(F9v,1),list:X(k9v),createCustom:b(j9v,1),exportExpenses:b(H9v,1),getExpenseCategoryReport:b(L9v,1),getRecognitionSettings:b(G9v,0),updateRecognitionSettings:b(V9v,1),backfillExpenseRecognition:b(K9v,1),createRecognition:b(Z9v,1),getRecognition:b(q9v,1),retryRecognition:b(W9v,1),getExpenseInboundEmail:b(Y9v,0),rotateExpenseInboundEmail:b($9v,0),disableExpenseInboundEmail:b(Q9v,0),listExpenseInboundEmailMessages:b(J9v,1),previewImportFromShareableLink:b(X9v,1),importFromShareableLink:b(e8v,1),getLatestRecognition:b(t8v,1),get:b(n8v,1),update:b(s8v,2),delete:b(o8v,1),void:b(i8v,1),restoreExpense:b(a8v,1),uploadExpenseAttachment:b(r8v,2),getExpenseAttachments:b(l8v,2),deleteExpenseAttachment:b(d8v,2),getExpensePayments:b(u8v,1),createExpensePayment:b(c8v,2)};var MRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export?${g}`:"/documents/export"},p8v=async(d,c)=>h(MRS(d),{...c,method:"GET"}),URS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/sales-per-item?${g}`:"/documents/export/sales-per-item"},m8v=async(d,c)=>h(URS(d),{...c,method:"GET"}),PRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/inventory?${g}`:"/documents/export/inventory"},x8v=async(d,c)=>h(PRS(d),{...c,method:"GET"}),CRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/revenue-by-category?${g}`:"/documents/export/revenue-by-category"},g8v=async(d,c)=>h(CRS(d),{...c,method:"GET"}),wRS=()=>"/documents/export/pdf",y8v=async(d,c)=>h(wRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ARS=d=>`/documents/export/pdf/${d}`,O8v=async(d,c)=>h(ARS(d),{...c,method:"GET"}),FRS=d=>`/documents/export/pdf/${d}/download`,v8v=async(d,c)=>h(FRS(d),{...c,method:"GET"}),kRS=()=>"/documents/export/eslog",S8v=async(d,c)=>h(kRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),jRS=d=>`/documents/export/eslog/${d}`,h8v=async(d,c)=>h(jRS(d),{...c,method:"GET"}),HRS=d=>`/documents/export/eslog/${d}/download`,b8v=async(d,c)=>h(HRS(d),{...c,method:"GET"});var xn={exportDocuments:b(p8v,1),exportSalesPerItem:b(m8v,1),exportInventory:b(x8v,1),exportRevenueByCategory:b(g8v,1),startPdfExport:b(y8v,1),getPdfStatus:b(O8v,1),downloadPdfExport:b(v8v,1),startEslogExport:b(S8v,1),getEslogStatus:b(h8v,1),downloadEslogExport:b(b8v,1)};var LRS=()=>"/files",z8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),g.append("category",d.category),d.document_id!==void 0&&d.document_id!==null&&g.append("document_id",d.document_id),d.account_payable_id!==void 0&&g.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&g.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&g.append("expense_id",d.expense_id),h(LRS(),{...c,method:"POST",body:g})},GRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/files?${g}`:"/files"},f8v=async(d,c)=>h(GRS(d),{...c,method:"GET"}),VRS=d=>`/files/${d}`,B8v=async(d,c)=>h(VRS(d),{...c,method:"GET"}),KRS=d=>`/files/${d}`,T8v=async(d,c)=>h(KRS(d),{...c,method:"DELETE"});var gn={uploadFile:b(z8v,1),list:X(f8v),get:b(B8v,1),delete:b(T8v,1)};var ZRS=()=>"/fiscalization/fina/settings/certificate",I8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),d.passphrase!==void 0&&g.append("passphrase",d.passphrase),h(ZRS(),{...c,method:"POST",body:g})},qRS=()=>"/fiscalization/fina/settings/certificate",E8v=async d=>h(qRS(),{...d,method:"GET"}),WRS=()=>"/fiscalization/fina/settings/certificate",D8v=async d=>h(WRS(),{...d,method:"DELETE"});var yn={uploadFinaCertificate:b(I8v,1),getFinaCertificate:b(E8v,0),delete:b(D8v,0)};var YRS=d=>`/fiscalization/fina/premises/${d}/devices`,R8v=async(d,c)=>h(YRS(d),{...c,method:"GET"}),$RS=d=>`/fiscalization/fina/premises/${d}/devices`,_8v=async(d,c,g)=>h($RS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),QRS=d=>`/fiscalization/fina/devices/${d}`,N8v=async(d,c)=>h(QRS(d),{...c,method:"GET"}),JRS=d=>`/fiscalization/fina/devices/${d}`,M8v=async(d,c,g)=>h(JRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),XRS=d=>`/fiscalization/fina/devices/${d}`,U8v=async(d,c)=>h(XRS(d),{...c,method:"DELETE"});var On={listFinaDevices:b(R8v,1),registerFinaDevice:b(_8v,2),getFinaDevice:b(N8v,1),update:b(M8v,2),delete:b(U8v,1)};var e_S=()=>"/fiscalization/fina/premises",P8v=async d=>h(e_S(),{...d,method:"GET"}),t_S=()=>"/fiscalization/fina/premises",C8v=async(d,c)=>h(t_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),n_S=d=>`/fiscalization/fina/premises/${d}`,w8v=async(d,c)=>h(n_S(d),{...c,method:"GET"}),s_S=d=>`/fiscalization/fina/premises/${d}`,A8v=async(d,c,g)=>h(s_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),o_S=d=>`/fiscalization/fina/premises/${d}`,F8v=async(d,c)=>h(o_S(d),{...c,method:"DELETE"});var vn={listFinaPremises:b(P8v,0),create:b(C8v,1),getFinaPremise:b(w8v,1),update:b(A8v,2),delete:b(F8v,1)};var i_S=()=>"/fiscalization/fina/settings",k8v=async d=>h(i_S(),{...d,method:"GET"}),a_S=()=>"/fiscalization/fina/settings",j8v=async(d,c)=>h(a_S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Sn={list:b(k8v,0),update:b(j8v,1)};var r_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/financial-categories?${g}`:"/financial-categories"},H8v=async(d,c)=>h(r_S(d),{...c,method:"GET"}),l_S=()=>"/financial-categories",L8v=async(d,c)=>h(l_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),d_S=d=>`/financial-categories/${d}`,G8v=async(d,c,g)=>h(d_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),u_S=d=>`/financial-categories/${d}`,V8v=async(d,c)=>h(u_S(d),{...c,method:"DELETE"}),c_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/financial-categories/revenue-summary?${g}`:"/financial-categories/revenue-summary"},K8v=async(d,c)=>h(c_S(d),{...c,method:"GET"}),p_S=()=>"/financial-categories/document-items/batch",Z8v=async(d,c)=>h(p_S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),m_S=d=>`/financial-categories/document-items/${d}`,q8v=async(d,c,g)=>h(m_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var hn={list:X(H8v),create:b(L8v,1),update:b(G8v,2),delete:b(V8v,1),getRevenueByFinancialCategory:b(K8v,1),updateDocumentItemFinancialCategories:b(Z8v,1),updateDocumentItemFinancialCategory:b(q8v,2)};var x_S=()=>"/fiscalization/furs/settings/certificate",W8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),d.passphrase!==void 0&&g.append("passphrase",d.passphrase),h(x_S(),{...c,method:"POST",body:g})},g_S=()=>"/fiscalization/furs/settings/certificate",Y8v=async d=>h(g_S(),{...d,method:"GET"}),y_S=()=>"/fiscalization/furs/settings/certificate",$8v=async d=>h(y_S(),{...d,method:"DELETE"});var bn={uploadFursCertificate:b(W8v,1),getFursCertificate:b(Y8v,0),delete:b($8v,0)};var O_S=d=>`/fiscalization/furs/premises/${d}/devices`,Q8v=async(d,c)=>h(O_S(d),{...c,method:"GET"}),v_S=d=>`/fiscalization/furs/premises/${d}/devices`,J8v=async(d,c,g)=>h(v_S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),S_S=d=>`/fiscalization/furs/devices/${d}`,X8v=async(d,c)=>h(S_S(d),{...c,method:"GET"}),h_S=d=>`/fiscalization/furs/devices/${d}`,eYv=async(d,c,g)=>h(h_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var zn={listFursElectronicDevices:b(Q8v,1),registerFursElectronicDevice:b(J8v,2),getFursElectronicDevice:b(X8v,1),update:b(eYv,2)};var b_S=()=>"/fiscalization/furs/internal-act/report.pdf",tYv=async d=>h(b_S(),{...d,method:"GET"}),z_S=()=>"/fiscalization/furs/internal-act/report.docx",nYv=async d=>h(z_S(),{...d,method:"GET"});var fn={generateFursInternalActPdf:b(tYv,0),generateFursInternalActDocx:b(nYv,0)};var f_S=()=>"/fiscalization/furs/premises",sYv=async d=>h(f_S(),{...d,method:"GET"}),B_S=d=>`/fiscalization/furs/premises/${d}`,oYv=async(d,c)=>h(B_S(d),{...c,method:"GET"}),T_S=d=>`/fiscalization/furs/premises/${d}`,iYv=async(d,c,g)=>h(T_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),I_S=()=>"/fiscalization/furs/premises/real-estate",aYv=async(d,c)=>h(I_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),E_S=()=>"/fiscalization/furs/premises/movable",rYv=async(d,c)=>h(E_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),D_S=d=>`/fiscalization/furs/premises/${d}/close`,lYv=async(d,c)=>h(D_S(d),{...c,method:"POST"});var Bn={listFursBusinessPremises:b(sYv,0),getFursBusinessPremise:b(oYv,1),update:b(iYv,2),registerFursRealEstatePremise:b(aYv,1),registerFursMovablePremise:b(rYv,1),closeFursBusinessPremise:b(lYv,1)};var R_S=()=>"/fiscalization/furs/settings",dYv=async d=>h(R_S(),{...d,method:"GET"}),__S=()=>"/fiscalization/furs/settings",uYv=async(d,c)=>h(__S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Tn={list:b(dYv,0),update:b(uYv,1)};var N_S=()=>"/health/live",cYv=async d=>h(N_S(),{...d,method:"GET"}),M_S=()=>"/health/ready",pYv=async d=>h(M_S(),{...d,method:"GET"}),U_S=()=>"/health",mYv=async d=>h(U_S(),{...d,method:"GET"});var In={livenessCheck:b(cYv,0),readinessCheck:b(pYv,0),healthCheck:b(mYv,0)};var P_S=d=>`/invoices/${d}/nav/retry`,xYv=async(d,c)=>h(P_S(d),{...c,method:"POST"}),C_S=d=>`/invoices/${d}/nav/reconcile`,gYv=async(d,c)=>h(C_S(d),{...c,method:"POST"}),w_S=d=>`/invoices/${d}/nav/annulment`,yYv=async(d,c,g)=>h(w_S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),A_S=d=>`/invoices/shareable/${d}`,OYv=async(d,c)=>h(A_S(d),{...c,method:"GET"}),F_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/html?${E}`:`/invoices/shareable/${d}/html`},vYv=async(d,c,g)=>h(F_S(d,c),{...g,method:"GET"}),k_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/pdf?${E}`:`/invoices/shareable/${d}/pdf`},SYv=async(d,c,g)=>h(k_S(d,c),{...g,method:"GET"}),j_S=d=>`/invoices/shareable/${d}/eslog`,hYv=async(d,c)=>h(j_S(d),{...c,method:"GET"}),H_S=d=>`/invoices/${d}/ksef/recover`,bYv=async(d,c)=>h(H_S(d),{...c,method:"POST"}),L_S=d=>`/invoices/${d}/ksef`,zYv=async(d,c)=>h(L_S(d),{...c,method:"GET"}),G_S=d=>`/invoices/${d}/ksef/submit`,fYv=async(d,c)=>h(G_S(d),{...c,method:"POST"}),V_S=d=>`/invoices/${d}/ksef/upo`,BYv=async(d,c)=>h(V_S(d),{...c,method:"GET"}),K_S=()=>"/invoices",TYv=async(d,c)=>h(K_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Z_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invoices?${g}`:"/invoices"},IYv=async(d,c)=>h(Z_S(d),{...c,method:"GET"}),q_S=()=>"/invoices/custom",EYv=async(d,c)=>h(q_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),W_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/${d}?${E}`:`/invoices/${d}`},DYv=async(d,c,g)=>h(W_S(d,c),{...g,method:"GET"}),Y_S=d=>`/invoices/${d}`,RYv=async(d,c,g)=>h(Y_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$_S=d=>`/invoices/${d}/credit-options`,_Yv=async(d,c)=>h($_S(d),{...c,method:"GET"}),Q_S=d=>`/invoices/${d}/xrechnung`,NYv=async(d,c)=>h(Q_S(d),{...c,method:"GET"}),J_S=d=>`/invoices/${d}/zugferd`,MYv=async(d,c)=>h(J_S(d),{...c,method:"GET"}),X_S=d=>`/invoices/${d}/versions`,UYv=async(d,c)=>h(X_S(d),{...c,method:"GET"}),eNS=(d,c)=>`/invoices/${d}/versions/${c}`,PYv=async(d,c,g)=>h(eNS(d,c),{...g,method:"GET"}),tNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invoices/render?${g}`:"/invoices/render"},CYv=async(d,c,g)=>h(tNS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),nNS=d=>`/invoices/${d}/void`,wYv=async(d,c,g)=>h(nNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sNS=d=>`/invoices/${d}/fiscalize`,AYv=async(d,c)=>h(sNS(d),{...c,method:"POST"}),oNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/html?${E}`:`/documents/${d}/html`},FYv=async(d,c,g)=>h(oNS(d,c),{...g,method:"GET"}),iNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/pdf?${E}`:`/documents/${d}/pdf`},kYv=async(d,c,g)=>h(iNS(d,c),{...g,method:"GET"});function En(d,c){let g=URL.createObjectURL(d),E=document.createElement("a");E.href=g,E.download=c,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(g);}var jYv=b(kYv,2),aNS=Object.assign(async(d,c,g,E)=>{let z=await jYv(d,g,E);En(z,c);},{__sdkOptionsIndex:3}),Dn={retryInvoiceNav:b(xYv,1),reconcileInvoiceNav:b(gYv,1),annulInvoiceNav:b(yYv,2),getShareableInvoice:b(OYv,1),getShareableInvoiceHtml:b(vYv,2),getShareableInvoicePdf:b(SYv,2),getShareableInvoiceEslog:b(hYv,1),recoverInvoiceFromKsef:b(bYv,1),getInvoiceKsefState:b(zYv,1),submitInvoiceToKsef:b(fYv,1),getInvoiceKsefUpo:b(BYv,1),create:b(TYv,1),list:X(IYv),createCustom:b(EYv,1),get:b(DYv,2),update:b(RYv,2),getCreditOptions:b(_Yv,1),downloadInvoiceXRechnung:b(NYv,1),downloadInvoiceZugferd:b(MYv,1),getVersions:b(UYv,1),getVersion:b(PYv,2),renderInvoicePreview:b(CYv,2),void:b(wYv,2),fiscalizeInvoice:b(AYv,1),renderHtml:b(FYv,2),renderPdf:jYv,downloadPdf:aNS};var rNS=()=>"/items",HYv=async(d,c)=>h(rNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),lNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/items?${g}`:"/items"},LYv=async(d,c)=>h(lNS(d),{...c,method:"GET"}),dNS=()=>"/items/categories",GYv=async d=>h(dNS(),{...d,method:"GET"}),uNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/items/import/template?${g}`:"/items/import/template"},VYv=async(d,c)=>h(uNS(d),{...c,method:"GET"}),cNS=()=>"/items/import/preview",KYv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(cNS(),{...c,method:"POST",body:g})},pNS=()=>"/items/import",ZYv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(pNS(),{...c,method:"POST",body:g})},mNS=d=>`/items/${d}`,qYv=async(d,c,g)=>h(mNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xNS=d=>`/items/${d}`,WYv=async(d,c)=>h(xNS(d),{...c,method:"DELETE"}),gNS=d=>`/items/${d}/restore`,YYv=async(d,c)=>h(gNS(d),{...c,method:"POST"}),yNS=d=>`/items/${d}/permanent`,$Yv=async(d,c)=>h(yNS(d),{...c,method:"DELETE"}),ONS=d=>`/items/${d}/inventory`,QYv=async(d,c)=>h(ONS(d),{...c,method:"GET"}),vNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/items/${d}/inventory/movements?${E}`:`/items/${d}/inventory/movements`},JYv=async(d,c,g)=>h(vNS(d,c),{...g,method:"GET"}),SNS=d=>`/items/${d}/inventory/movements`,XYv=async(d,c,g)=>h(SNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),hNS=(d,c)=>`/items/${d}/inventory/movements/${c}`,e$v=async(d,c,g)=>h(hNS(d,c),{...g,method:"DELETE"});var Rn={create:b(HYv,1),list:X(LYv),categories:b(GYv,0),getItemsImportTemplate:b(VYv,1),preview:b(KYv,1),importItems:b(ZYv,1),update:b(qYv,2),delete:b(WYv,1),restoreItem:b(YYv,1),permanentDeleteItem:b($Yv,1),getItemInventory:b(QYv,1),getItemInventoryMovements:b(JYv,2),createItemInventoryMovement:b(XYv,2),deleteItemInventoryMovement:b(e$v,2)};var bNS=()=>"/legacy-migration/auth",t$v=async(d,c)=>h(bNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/legacy-migration/organizations/${d}?${E}`:`/legacy-migration/organizations/${d}`},n$v=async(d,c,g)=>h(zNS(d,c),{...g,method:"GET"}),fNS=()=>"/legacy-migration/jobs",s$v=async(d,c)=>h(fNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BNS=()=>"/legacy-migration/jobs",o$v=async d=>h(BNS(),{...d,method:"GET"}),TNS=d=>`/legacy-migration/jobs/${d}`,i$v=async(d,c)=>h(TNS(d),{...c,method:"GET"});var _n={legacyMigrationAuth:b(t$v,1),getLegacyMigrationOrganization:b(n$v,2),create:b(s$v,1),listMigrationJobs:b(o$v,0),getMigrationJob:b(i$v,1)};var INS=()=>"/locale/detect",a$v=async d=>h(INS(),{...d,method:"GET"});var Nn={detectLocale:b(a$v,0)};var ENS=()=>"/order-integrations/shopify/authorize",r$v=async(d,c)=>h(ENS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DNS=()=>"/order-integrations/woocommerce/authorize",l$v=async(d,c)=>h(DNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RNS=()=>"/order-integrations/magento/authorize",d$v=async(d,c)=>h(RNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),_NS=d=>`/order-integrations/magento/authorizations/${d}`,u$v=async(d,c)=>h(_NS(d),{...c,method:"GET"}),NNS=()=>"/order-integrations/shopify/resume-install",c$v=async(d,c)=>h(NNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MNS=d=>`/order-integrations/${d}/promote-shopify-billing`,p$v=async(d,c)=>h(MNS(d),{...c,method:"POST"}),UNS=d=>`/order-integrations/${d}/sync-shopify`,m$v=async(d,c,g)=>h(UNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PNS=d=>`/order-integrations/${d}/sync`,x$v=async(d,c,g)=>h(PNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),CNS=()=>"/order-integrations/custom/connect",g$v=async(d,c)=>h(CNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wNS=d=>`/order-integrations/${d}/custom/rotate-secret`,y$v=async(d,c)=>h(wNS(d),{...c,method:"POST"}),ANS=d=>`/order-integrations/${d}/orders`,O$v=async(d,c,g)=>h(ANS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),FNS=()=>"/order-integrations",v$v=async(d,c)=>h(FNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),kNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/order-integrations?${g}`:"/order-integrations"},S$v=async(d,c)=>h(kNS(d),{...c,method:"GET"}),jNS=d=>`/order-integrations/${d}`,h$v=async(d,c)=>h(jNS(d),{...c,method:"GET"}),HNS=d=>`/order-integrations/${d}`,b$v=async(d,c,g)=>h(HNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),LNS=d=>`/order-integrations/${d}`,z$v=async(d,c)=>h(LNS(d),{...c,method:"DELETE"});var Mn={authorizeShopify:b(r$v,1),authorizeWooCommerce:b(l$v,1),authorizeMagento:b(d$v,1),getMagentoAuthorization:b(u$v,1),resumeShopifyInstall:b(c$v,1),promoteShopifyBilling:b(p$v,1),syncShopifyOrders:b(m$v,2),syncOrderIntegration:b(x$v,2),connectCustomStore:b(g$v,1),rotateCustomStoreSecret:b(y$v,1),pushCustomStoreOrder:b(O$v,2),create:b(v$v,1),list:X(S$v),get:b(h$v,1),update:b(b$v,2),delete:b(z$v,1)};var GNS=()=>"/orders",f$v=async(d,c)=>h(GNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),VNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/orders?${g}`:"/orders"},B$v=async(d,c)=>h(VNS(d),{...c,method:"GET"}),KNS=d=>`/orders/${d}`,T$v=async(d,c)=>h(KNS(d),{...c,method:"GET"}),ZNS=d=>`/orders/${d}`,I$v=async(d,c,g)=>h(ZNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),qNS=d=>`/orders/${d}`,E$v=async(d,c)=>h(qNS(d),{...c,method:"DELETE"}),WNS=d=>`/orders/${d}/process`,D$v=async(d,c)=>h(WNS(d),{...c,method:"POST"}),YNS=d=>`/orders/${d}/cancel`,R$v=async(d,c)=>h(YNS(d),{...c,method:"POST"}),$NS=d=>`/orders/${d}/reissue`,_$v=async(d,c)=>h($NS(d),{...c,method:"POST"});var Un={create:b(f$v,1),list:X(B$v),get:b(T$v,1),update:b(I$v,2),delete:b(E$v,1),processOrder:b(D$v,1),cancelOrder:b(R$v,1),reissueOrder:b(_$v,1)};var QNS=()=>"/payment-reminders/send",N$v=async(d,c)=>h(QNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payment-reminders?${g}`:"/payment-reminders"},M$v=async(d,c)=>h(JNS(d),{...c,method:"GET"});var Pn={sendPaymentReminder:b(N$v,1),list:X(M$v)};var XNS=()=>"/payments",U$v=async(d,c)=>h(XNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),eMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payments?${g}`:"/payments"},P$v=async(d,c)=>h(eMS(d),{...c,method:"GET"}),tMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/payments/${d}?${E}`:`/payments/${d}`},C$v=async(d,c,g)=>h(tMS(d,c),{...g,method:"GET"}),nMS=d=>`/payments/${d}`,w$v=async(d,c,g)=>h(nMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sMS=d=>`/payments/${d}`,A$v=async(d,c)=>h(sMS(d),{...c,method:"DELETE"}),oMS=d=>`/payments/${d}/restore`,F$v=async(d,c)=>h(oMS(d),{...c,method:"POST"}),iMS=d=>`/payments/${d}/permanent`,k$v=async(d,c)=>h(iMS(d),{...c,method:"DELETE"}),aMS=()=>"/bank-imports",j$v=async(d,c)=>{let g=new FormData;return g.append("file",d.file),d.source_format!==void 0&&d.source_format!==null&&g.append("source_format",d.source_format),d.column_mapping!==void 0&&d.column_mapping!==null&&g.append("column_mapping",d.column_mapping),d.account_iban!==void 0&&d.account_iban!==null&&g.append("account_iban",d.account_iban),h(aMS(),{...c,method:"POST",body:g})},rMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/bank-imports?${g}`:"/bank-imports"},H$v=async(d,c)=>h(rMS(d),{...c,method:"GET"}),lMS=d=>`/bank-imports/${d}`,L$v=async(d,c)=>h(lMS(d),{...c,method:"GET"}),dMS=d=>`/bank-imports/${d}/summary`,G$v=async(d,c)=>h(dMS(d),{...c,method:"GET"}),uMS=d=>`/bank-imports/${d}/match`,V$v=async(d,c)=>h(uMS(d),{...c,method:"POST"}),cMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/bank-transactions?${g}`:"/bank-transactions"},K$v=async(d,c)=>h(cMS(d),{...c,method:"GET"}),pMS=d=>`/bank-transactions/${d}`,Z$v=async(d,c)=>h(pMS(d),{...c,method:"GET"}),mMS=d=>`/bank-transactions/${d}/link`,q$v=async(d,c,g)=>h(mMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xMS=d=>`/bank-transactions/${d}/confirm-fee`,W$v=async(d,c,g)=>h(xMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),gMS=d=>`/bank-transactions/${d}/ignore`,Y$v=async(d,c)=>h(gMS(d),{...c,method:"POST"}),yMS=d=>`/bank-transactions/${d}/unlink`,$$v=async(d,c)=>h(yMS(d),{...c,method:"POST"});var Cn={create:b(U$v,1),list:X(P$v),get:b(C$v,2),update:b(w$v,2),delete:b(A$v,1),restorePayment:b(F$v,1),permanentDeletePayment:b(k$v,1),importBankStatement:b(j$v,1),listBankImports:b(H$v,1),getBankImport:b(L$v,1),getBankImportSummary:b(G$v,1),rematchBankImport:b(V$v,1),listBankTransactions:b(K$v,1),getBankTransaction:b(Z$v,1),linkBankTransaction:b(q$v,2),confirmBankTransactionFee:b(W$v,2),ignoreBankTransaction:b(Y$v,1),unlinkBankTransaction:b($$v,1)};var OMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/tables?${g}`:"/pos/tables"},Q$v=async(d,c)=>h(OMS(d),{...c,method:"GET"}),vMS=()=>"/pos/tables",J$v=async(d,c)=>h(vMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),SMS=d=>`/pos/tables/${d}`,X$v=async(d,c,g)=>h(SMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),hMS=d=>`/pos/tables/${d}`,eQv=async(d,c)=>h(hMS(d),{...c,method:"DELETE"}),bMS=d=>`/pos/tabs/${d}/items`,tQv=async(d,c,g)=>h(bMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),zMS=d=>`/pos/tabs/${d}/claim`,nQv=async(d,c,g)=>h(zMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fMS=d=>`/pos/tabs/${d}/release`,sQv=async(d,c,g)=>h(fMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BMS=d=>`/pos/tabs/${d}/close`,oQv=async(d,c,g)=>h(BMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),TMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/tabs?${g}`:"/pos/tabs"},iQv=async(d,c)=>h(TMS(d),{...c,method:"GET"}),IMS=()=>"/pos/tabs",aQv=async(d,c)=>h(IMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),EMS=d=>`/pos/tabs/${d}`,rQv=async(d,c)=>h(EMS(d),{...c,method:"GET"}),DMS=d=>`/pos/tabs/${d}`,lQv=async(d,c,g)=>h(DMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),RMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/pos/tabs/${d}?${E}`:`/pos/tabs/${d}`},dQv=async(d,c,g)=>h(RMS(d,c),{...g,method:"DELETE"}),_MS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/daily/export?${g}`:"/pos/reports/daily/export"},uQv=async(d,c)=>h(_MS(d),{...c,method:"GET"}),NMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/monthly/export?${g}`:"/pos/reports/monthly/export"},cQv=async(d,c)=>h(NMS(d),{...c,method:"GET"}),MMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/daily?${g}`:"/pos/reports/daily"},pQv=async(d,c)=>h(MMS(d),{...c,method:"GET"}),UMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/monthly?${g}`:"/pos/reports/monthly"},mQv=async(d,c)=>h(UMS(d),{...c,method:"GET"}),PMS=()=>"/pos/operators",xQv=async d=>h(PMS(),{...d,method:"GET"}),CMS=()=>"/pos/operators/enrol",gQv=async(d,c)=>h(CMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wMS=()=>"/pos/operators/switch",yQv=async(d,c)=>h(wMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),AMS=d=>`/pos/operators/${d}/pin`,OQv=async(d,c,g)=>h(AMS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),FMS=d=>`/pos/operators/${d}/pin`,vQv=async(d,c)=>h(FMS(d),{...c,method:"DELETE"});var kMS=b(dQv,2),wn={listTables:X(Q$v),createTable:b(J$v,1),updateTable:b(X$v,2),deleteTable:b(eQv,1),appendTabItems:b(tQv,2),claimTab:b(nQv,2),releaseTab:b(sQv,2),closeTab:b(oQv,2),listTabs:X(iQv),createTab:b(aQv,1),getTab:b(rQv,1),updateTab:b(lQv,2),cancelTab:Object.assign((...d)=>kMS(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:b(uQv,1),exportPosMonthlyReport:b(cQv,1),dailyReport:b(pQv,1),getPosMonthlyReport:b(mQv,1),listOperators:b(xQv,0),enrolPosOperator:b(gQv,1),switchOperator:b(yQv,1),setOperatorPin:b(OQv,2),clearOperatorPin:b(vQv,1)};var jMS=()=>"/fiscalization/pt/atcud-series",SQv=async(d,c)=>h(jMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/atcud-series?${g}`:"/fiscalization/pt/atcud-series"},hQv=async(d,c)=>h(HMS(d),{...c,method:"GET"}),LMS=d=>`/fiscalization/pt/atcud-series/${d}`,bQv=async(d,c)=>h(LMS(d),{...c,method:"GET"}),GMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/atcud-series/active?${g}`:"/fiscalization/pt/atcud-series/active"},zQv=async(d,c)=>h(GMS(d),{...c,method:"POST"}),VMS=d=>`/fiscalization/pt/atcud-series/${d}/retire`,fQv=async(d,c)=>h(VMS(d),{...c,method:"POST"});var An={create:b(SQv,1),list:X(hQv),get:b(bQv,1),getActive:b(zQv,1),retirePtAtcudSeries:b(fQv,1)};var KMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/saft/report?${g}`:"/fiscalization/pt/saft/report"},BQv=async(d,c)=>h(KMS(d),{...c,method:"GET"});var Fn={generateReport:b(BQv,1)};var ZMS=d=>`/purchase-orders/shareable/${d}`,TQv=async(d,c)=>h(ZMS(d),{...c,method:"GET"}),qMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/html?${E}`:`/purchase-orders/shareable/${d}/html`},IQv=async(d,c,g)=>h(qMS(d,c),{...g,method:"GET"}),WMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/pdf?${E}`:`/purchase-orders/shareable/${d}/pdf`},EQv=async(d,c,g)=>h(WMS(d,c),{...g,method:"GET"}),YMS=()=>"/purchase-orders",DQv=async(d,c)=>h(YMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$MS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/purchase-orders?${g}`:"/purchase-orders"},RQv=async(d,c)=>h($MS(d),{...c,method:"GET"}),QMS=d=>`/purchase-orders/${d}`,_Qv=async(d,c)=>h(QMS(d),{...c,method:"GET"}),JMS=d=>`/purchase-orders/${d}`,NQv=async(d,c,g)=>h(JMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),XMS=d=>`/purchase-orders/${d}/versions`,MQv=async(d,c)=>h(XMS(d),{...c,method:"GET"}),eUS=(d,c)=>`/purchase-orders/${d}/versions/${c}`,UQv=async(d,c,g)=>h(eUS(d,c),{...g,method:"GET"}),tUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/purchase-orders/render?${g}`:"/purchase-orders/render"},PQv=async(d,c,g)=>h(tUS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),nUS=d=>`/purchase-orders/${d}/void`,CQv=async(d,c,g)=>h(nUS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var kn={getShareablePurchaseOrder:b(TQv,1),getShareablePurchaseOrderHtml:b(IQv,2),getShareablePurchaseOrderPdf:b(EQv,2),create:b(DQv,1),list:X(RQv),get:b(_Qv,1),update:b(NQv,2),getVersions:b(MQv,1),getVersion:b(UQv,2),renderPurchaseOrderPreview:b(PQv,2),void:b(CQv,2)};var sUS=()=>"/recurring-invoices",wQv=async(d,c)=>h(sUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),oUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/recurring-invoices?${g}`:"/recurring-invoices"},AQv=async(d,c)=>h(oUS(d),{...c,method:"GET"}),iUS=d=>`/recurring-invoices/${d}`,FQv=async(d,c)=>h(iUS(d),{...c,method:"GET"}),aUS=d=>`/recurring-invoices/${d}`,kQv=async(d,c,g)=>h(aUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),rUS=d=>`/recurring-invoices/${d}`,jQv=async(d,c)=>h(rUS(d),{...c,method:"DELETE"}),lUS=d=>`/recurring-invoices/${d}/restore`,HQv=async(d,c)=>h(lUS(d),{...c,method:"POST"}),dUS=d=>`/recurring-invoices/${d}/permanent`,LQv=async(d,c)=>h(dUS(d),{...c,method:"DELETE"}),uUS=d=>`/recurring-invoices/${d}/pause`,GQv=async(d,c)=>h(uUS(d),{...c,method:"POST"}),cUS=d=>`/recurring-invoices/${d}/resume`,VQv=async(d,c)=>h(cUS(d),{...c,method:"POST"}),pUS=d=>`/recurring-invoices/${d}/trigger`,KQv=async(d,c)=>h(pUS(d),{...c,method:"POST"});var jn={create:b(wQv,1),list:X(AQv),get:b(FQv,1),update:b(kQv,2),delete:b(jQv,1),restoreRecurringInvoice:b(HQv,1),permanentDeleteRecurringInvoice:b(LQv,1),pauseRecurringInvoice:b(GQv,1),resumeRecurringInvoice:b(VQv,1),triggerRecurringInvoice:b(KQv,1)};var mUS=()=>"/revenue-recognition/settings",ZQv=async d=>h(mUS(),{...d,method:"GET"}),xUS=()=>"/revenue-recognition/settings",qQv=async(d,c)=>h(xUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gUS=()=>"/revenue-recognition/backfill",WQv=async(d,c)=>h(gUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/report?${g}`:"/revenue-recognition/report"},YQv=async(d,c)=>h(yUS(d),{...c,method:"GET"}),OUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/details?${g}`:"/revenue-recognition/details"},$Qv=async(d,c)=>h(OUS(d),{...c,method:"GET"}),vUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/lines?${g}`:"/revenue-recognition/lines"},QQv=async(d,c)=>h(vUS(d),{...c,method:"GET"}),SUS=d=>`/revenue-recognition/documents/${d}`,JQv=async(d,c)=>h(SUS(d),{...c,method:"GET"});var Hn={getSettings:b(ZQv,0),updateSettings:b(qQv,1),backfill:b(WQv,1),getReport:b(YQv,1),getDetails:b($Qv,1),listLines:b(QQv,1),getDocumentSchedule:b(JQv,1)};var hUS=()=>"/stripe-app/marketplace-authorize",XQv=async(d,c)=>h(hUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bUS=()=>"/stripe-app/connect",eJv=async(d,c)=>h(bUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zUS=()=>"/stripe-app/entity-connection",tJv=async d=>h(zUS(),{...d,method:"GET"}),fUS=()=>"/stripe-app/entity-connection",nJv=async d=>h(fUS(),{...d,method:"DELETE"}),BUS=()=>"/stripe-app/entity-settings",sJv=async d=>h(BUS(),{...d,method:"GET"}),TUS=()=>"/stripe-app/entity-settings",oJv=async(d,c)=>h(TUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Ln={stripeAppMarketplaceAuthorize:b(XQv,1),stripeAppConnect:b(eJv,1),stripeAppEntityGetConnection:b(tJv,0),stripeAppEntityDisconnect:b(nJv,0),stripeAppEntityGetSettings:b(sJv,0),stripeAppEntityUpdateSettings:b(oJv,1)};var IUS=()=>"/subscriptions",iJv=async d=>h(IUS(),{...d,method:"GET"}),EUS=()=>"/subscriptions/spending-limit",aJv=async(d,c)=>h(EUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DUS=()=>"/subscriptions/check-entity-limit",rJv=async d=>h(DUS(),{...d,method:"GET"});var Gn={getCurrent:b(iJv,0),update:b(aJv,1),checkEntityLimit:b(rJv,0)};var RUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-rate-estimates/us?${g}`:"/tax-rate-estimates/us"},lJv=async(d,c)=>h(RUS(d),{...c,method:"GET"});var Vn={listUsTaxRateEstimates:b(lJv,1)};var _US=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/employees?${g}`:"/employees"},dJv=async(d,c)=>h(_US(d),{...c,method:"GET"}),NUS=()=>"/employees",uJv=async(d,c)=>h(NUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MUS=d=>`/employees/${d}`,cJv=async(d,c)=>h(MUS(d),{...c,method:"GET"}),UUS=d=>`/employees/${d}`,pJv=async(d,c,g)=>h(UUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PUS=d=>`/employees/${d}`,mJv=async(d,c)=>h(PUS(d),{...c,method:"DELETE"}),CUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},xJv=async(d,c,g)=>h(CUS(d,c),{...g,method:"GET"}),wUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},gJv=async(d,c,g,E)=>h(wUS(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),AUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payroll/parameters?${g}`:"/payroll/parameters"},yJv=async(d,c)=>h(AUS(d),{...c,method:"GET"}),FUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payroll/parameters/history?${g}`:"/payroll/parameters/history"},OJv=async(d,c)=>h(FUS(d),{...c,method:"GET"}),kUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/payroll/parameters/${d}?${E}`:`/payroll/parameters/${d}`},vJv=async(d,c,g,E)=>h(kUS(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),jUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/liability?${g}`:"/tax-reports/liability"},SJv=async(d,c)=>h(jUS(d),{...c,method:"GET"}),HUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/payments?${g}`:"/tax-reports/payments"},hJv=async(d,c)=>h(HUS(d),{...c,method:"GET"}),LUS=()=>"/tax-reports/payments",bJv=async(d,c)=>h(LUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),GUS=d=>`/tax-reports/payments/${d}`,zJv=async(d,c,g)=>h(GUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),VUS=d=>`/tax-reports/payments/${d}`,fJv=async(d,c)=>h(VUS(d),{...c,method:"DELETE"}),KUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/eu/oss?${g}`:"/tax-reports/eu/oss"},BJv=async(d,c)=>h(KUS(d),{...c,method:"GET"}),ZUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/kir?${g}`:"/tax-reports/kir"},TJv=async(d,c)=>h(ZUS(d),{...c,method:"POST"}),qUS=()=>"/tax-reports/si/profile",IJv=async d=>h(qUS(),{...d,method:"GET"}),WUS=()=>"/tax-reports/si/profile",EJv=async(d,c)=>h(WUS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),YUS=()=>"/tax-reports/si/yearly/normirani/review",DJv=async(d,c)=>h(YUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$US=()=>"/tax-reports/si/yearly/normirani/export",RJv=async(d,c)=>h($US(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QUS=()=>"/tax-reports/si/accounting/vod/export",_Jv=async(d,c)=>h(QUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JUS=()=>"/tax-reports/si/accounting/minimax/export",NJv=async(d,c)=>h(JUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XUS=()=>"/tax-reports/si/accounting/vasco/export",MJv=async(d,c)=>h(XUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ePS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/accounting/quickbooks/export?${g}`:"/tax-reports/accounting/quickbooks/export"},UJv=async(d,c)=>h(ePS(d),{...c,method:"GET"}),tPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/vat-returns/preview?${g}`:"/vat-returns/preview"},PJv=async(d,c)=>h(tPS(d),{...c,method:"GET"}),nPS=()=>"/vat-returns",CJv=async(d,c)=>h(nPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/vat-returns?${g}`:"/vat-returns"},wJv=async(d,c)=>h(sPS(d),{...c,method:"GET"}),oPS=d=>`/vat-returns/${d}`,AJv=async(d,c)=>h(oPS(d),{...c,method:"GET"}),iPS=d=>`/vat-returns/${d}/recompute`,FJv=async(d,c)=>h(iPS(d),{...c,method:"POST"}),aPS=d=>`/vat-returns/${d}/approve`,kJv=async(d,c)=>h(aPS(d),{...c,method:"POST"}),rPS=d=>`/vat-returns/${d}/submit`,jJv=async(d,c,g)=>h(rPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),lPS=d=>`/vat-returns/${d}/reopen`,HJv=async(d,c)=>h(lPS(d),{...c,method:"POST"}),dPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/vat-returns/${d}/export?${E}`:`/vat-returns/${d}/export`},LJv=async(d,c,g)=>h(dPS(d,c),{...g,method:"GET"}),uPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/filings?${g}`:"/filings"},GJv=async(d,c)=>h(uPS(d),{...c,method:"GET"}),cPS=d=>`/filings/${d}/complete`,VJv=async(d,c,g)=>h(cPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),pPS=d=>`/filings/${d}/reopen`,KJv=async(d,c)=>h(pPS(d),{...c,method:"POST"}),mPS=d=>`/filings/${d}/dismiss`,ZJv=async(d,c,g)=>h(mPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/accounting/filings-calendar?${g}`:"/accounting/filings-calendar"},qJv=async(d,c)=>h(xPS(d),{...c,method:"GET"});var Kn={listEmployees:b(dJv,1),registerEmployee:b(uJv,1),getEmployee:b(cJv,1),modifyEmployee:b(pJv,2),archiveEmployee:b(mJv,1),getEmployeeAttendance:b(xJv,2),replaceEmployeeAttendance:b(gJv,3),resolvePayrollParameters:b(yJv,1),getPayrollParameterHistory:b(OJv,1),setPayrollParameterOverride:b(vJv,3),getTaxLiabilityReport:b(SJv,1),list:X(hJv),create:b(bJv,1),update:b(zJv,2),delete:b(fJv,1),getEuOssReport:b(BJv,1),generateKirExport:b(TJv,1),getSloveniaTaxProfile:b(IJv,0),updateSloveniaTaxProfile:b(EJv,1),reviewSloveniaYearlyNormiraniReport:b(DJv,1),exportSloveniaYearlyNormiraniReport:b(RJv,1),exportSloveniaVodXml:b(_Jv,1),exportSloveniaMinimaxXml:b(NJv,1),exportSloveniaVascoXml:b(MJv,1),exportQuickbooksCsv:b(UJv,1),preview:b(PJv,1),draftVatReturn:b(CJv,1),listVatReturns:b(wJv,1),getVatReturn:b(AJv,1),recomputeVatReturn:b(FJv,1),approveVatReturn:b(kJv,1),submitVatReturn:b(jJv,2),reopenVatReturn:b(HJv,1),exportVatReturn:b(LJv,2),listFilings:b(GJv,1),completeFiling:b(VJv,2),reopenFiling:b(KJv,1),dismissFiling:b(ZJv,2),listAccountFilingsCalendar:b(qJv,1)};var gPS=()=>"/taxes",WJv=async(d,c)=>h(gPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/taxes?${g}`:"/taxes"},YJv=async(d,c)=>h(yPS(d),{...c,method:"GET"}),OPS=d=>`/taxes/${d}`,$Jv=async(d,c,g)=>h(OPS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),vPS=d=>`/taxes/${d}`,QJv=async(d,c,g)=>h(vPS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),SPS=d=>`/taxes/${d}`,JJv=async(d,c)=>h(SPS(d),{...c,method:"DELETE"}),hPS=d=>`/taxes/${d}/restore`,XJv=async(d,c)=>h(hPS(d),{...c,method:"POST"}),bPS=d=>`/taxes/${d}/permanent`,eXv=async(d,c)=>h(bPS(d),{...c,method:"DELETE"});var Zn={create:b(WJv,1),list:X(YJv),update:b($Jv,2),replaceTax:b(QJv,2),delete:b(JJv,1),restoreTax:b(XJv,1),permanentDeleteTax:b(eXv,1)};var zPS=()=>"/fiscalization/ticketbai/settings",tXv=async d=>h(zPS(),{...d,method:"GET"}),fPS=()=>"/fiscalization/ticketbai/settings",nXv=async(d,c)=>h(fPS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BPS=()=>"/fiscalization/ticketbai/settings/certificate",sXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(BPS(),{...c,method:"POST",body:g})},TPS=d=>`/fiscalization/ticketbai/records/${d}`,oXv=async(d,c)=>h(TPS(d),{...c,method:"GET"}),IPS=d=>`/fiscalization/ticketbai/records/${d}/xml`,iXv=async(d,c)=>h(IPS(d),{...c,method:"GET"}),EPS=d=>`/fiscalization/ticketbai/records/${d}/retry`,aXv=async(d,c)=>h(EPS(d),{...c,method:"POST"}),DPS=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,rXv=async(d,c)=>h(DPS(d),{...c,method:"POST"});var qn={getSettings:b(tXv,0),updateSettings:b(nXv,1),uploadCertificate:b(sXv,1),getRecord:b(oXv,1),downloadRecordXml:b(iXv,1),retryRecord:b(aXv,1),reconcileRecord:b(rXv,1)};var RPS=()=>"/transaction-type/check",lXv=async(d,c)=>h(RPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Wn={checkTransactionType:b(lXv,1)};var _PS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/travel-orders?${g}`:"/travel-orders"},dXv=async(d,c)=>h(_PS(d),{...c,method:"GET"}),NPS=()=>"/travel-orders",uXv=async(d,c)=>h(NPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MPS=()=>"/travel-orders/preview",cXv=async(d,c)=>h(MPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),UPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/travel-orders/render?${g}`:"/travel-orders/render"},pXv=async(d,c,g)=>h(UPS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),PPS=()=>"/travel-orders/route-distance",mXv=async(d,c)=>h(PPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),CPS=d=>`/travel-orders/${d}`,xXv=async(d,c)=>h(CPS(d),{...c,method:"GET"}),wPS=d=>`/travel-orders/${d}`,gXv=async(d,c,g)=>h(wPS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),APS=d=>`/travel-orders/${d}`,yXv=async(d,c)=>h(APS(d),{...c,method:"DELETE"}),FPS=d=>`/travel-orders/${d}/approve`,OXv=async(d,c)=>h(FPS(d),{...c,method:"POST"}),kPS=d=>`/travel-orders/${d}/settle`,vXv=async(d,c)=>h(kPS(d),{...c,method:"POST"}),jPS=d=>`/travel-orders/${d}/reopen`,SXv=async(d,c,g)=>h(jPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),HPS=d=>`/travel-orders/${d}/cancel`,hXv=async(d,c)=>h(HPS(d),{...c,method:"POST"}),LPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/pdf?${E}`:`/travel-orders/${d}/pdf`},bXv=async(d,c,g)=>h(LPS(d,c),{...g,method:"GET"}),GPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/html?${E}`:`/travel-orders/${d}/html`},zXv=async(d,c,g)=>h(GPS(d,c),{...g,method:"GET"});var Yn={list:X(dXv),create:b(uXv,1),preview:b(cXv,1),renderTravelOrderPreview:b(pXv,2),calculateTravelOrderRouteDistance:b(mXv,1),get:b(xXv,1),update:b(gXv,2),delete:b(yXv,1),approveTravelOrder:b(OXv,1),settleTravelOrder:b(vXv,1),reopenTravelOrder:b(SXv,2),cancelTravelOrder:b(hXv,1),renderPdf:b(bXv,2),renderHtml:b(zXv,2)};var Re="https://eu.spaceinvoices.com";var VPS=d=>`/documents/${d}/ujp`,fXv=async(d,c)=>h(VPS(d),{...c,method:"GET"});var $n={download:b(fXv,1)};var KPS=()=>"/upload/image",BXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(KPS(),{...c,method:"POST",body:g})};var Qn={uploadImage:b(BXv,1)};var ZPS=()=>"/accounts/two-factor-policy",TXv=async d=>h(ZPS(),{...d,method:"GET"}),qPS=()=>"/accounts/two-factor-policy",IXv=async(d,c)=>h(qPS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),WPS=d=>`/entities/${d}/two-factor-policy`,EXv=async(d,c)=>h(WPS(d),{...c,method:"GET"}),YPS=d=>`/entities/${d}/two-factor-policy`,DXv=async(d,c,g)=>h(YPS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$PS=()=>"/users/two-factor/setup",RXv=async(d,c)=>h($PS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QPS=()=>"/users/two-factor/enable",_Xv=async(d,c)=>h(QPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JPS=()=>"/users/me/two-factor",NXv=async d=>h(JPS(),{...d,method:"GET"}),XPS=()=>"/users/me/two-factor/setup",MXv=async(d,c)=>h(XPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),e2S=()=>"/users/me/two-factor/enable",UXv=async(d,c)=>h(e2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),t2S=()=>"/users/me/two-factor/disable",PXv=async(d,c)=>h(t2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),n2S=()=>"/users/two-factor/verify",CXv=async(d,c)=>h(n2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),s2S=()=>"/users/login",wXv=async(d,c)=>h(s2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),o2S=()=>"/users/signup",AXv=async(d,c)=>h(o2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),i2S=()=>"/users/password-reset",FXv=async(d,c)=>h(i2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),a2S=()=>"/users/password-reset/confirm",kXv=async(d,c)=>h(a2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),r2S=()=>"/users/me/accounts",jXv=async d=>h(r2S(),{...d,method:"GET"}),l2S=()=>"/users/me",HXv=async d=>h(l2S(),{...d,method:"GET"}),d2S=()=>"/users/me",LXv=async(d,c)=>h(d2S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),u2S=()=>"/users/me/account-deletion",GXv=async d=>h(u2S(),{...d,method:"POST"}),c2S=()=>"/users/me/settings/furs",VXv=async(d,c)=>h(c2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),p2S=()=>"/users/me/settings/fina",KXv=async(d,c)=>h(p2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Jn={getAccountTwoFactorPolicy:b(TXv,0),updateAccountTwoFactorPolicy:b(IXv,1),getEntityTwoFactorPolicy:b(EXv,1),updateEntityTwoFactorPolicy:b(DXv,2),setupRequiredTwoFactor:b(RXv,1),enableRequiredTwoFactor:b(_Xv,1),getTwoFactorConfiguration:b(NXv,0),setupTwoFactor:b(MXv,1),enableTwoFactor:b(UXv,1),disableTwoFactor:b(PXv,1),verifyTwoFactor:b(CXv,1),login:b(wXv,1),signup:b(AXv,1),requestPasswordReset:b(FXv,1),confirmPasswordReset:b(kXv,1),listMyAccounts:b(jXv,0),getMe:b(HXv,0),update:b(LXv,1),requestAccountDeletion:b(GXv,0),updateFursSettings:b(VXv,1),updateFinaSettings:b(KXv,1)};var m2S=()=>"/fiscalization/verifactu/settings",ZXv=async d=>h(m2S(),{...d,method:"GET"}),x2S=()=>"/fiscalization/verifactu/settings",qXv=async(d,c)=>h(x2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),g2S=()=>"/fiscalization/verifactu/certificate",WXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(g2S(),{...c,method:"POST",body:g})},y2S=d=>`/fiscalization/verifactu/records/${d}`,YXv=async(d,c)=>h(y2S(d),{...c,method:"GET"}),O2S=d=>`/fiscalization/verifactu/records/${d}/retry`,$Xv=async(d,c)=>h(O2S(d),{...c,method:"POST"}),v2S=d=>`/fiscalization/verifactu/records/${d}/correct`,QXv=async(d,c,g)=>h(v2S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),S2S=d=>`/fiscalization/verifactu/records/${d}/cancel`,JXv=async(d,c,g)=>h(S2S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Xn={getSettings:b(ZXv,0),updateSettings:b(qXv,1),uploadCertificate:b(WXv,1),getEvidence:b(YXv,1),retryRecord:b($Xv,1),correctRecord:b(QXv,2),cancelRecord:b(JXv,2)};var h2S=()=>"/vies/check",XXv=async(d,c)=>h(h2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var es={checkVies:b(XXv,1)};var b2S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/warehouses?${g}`:"/warehouses"},eeS=async(d,c)=>h(b2S(d),{...c,method:"GET"}),z2S=()=>"/warehouses",teS=async(d,c)=>h(z2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),f2S=d=>`/warehouses/${d}`,neS=async(d,c)=>h(f2S(d),{...c,method:"GET"}),B2S=d=>`/warehouses/${d}`,seS=async(d,c,g)=>h(B2S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),T2S=d=>`/warehouses/${d}`,oeS=async(d,c)=>h(T2S(d),{...c,method:"DELETE"});var ts={list:X(eeS),create:b(teS,1),get:b(neS,1),update:b(seS,2),delete:b(oeS,1)};var I2S=()=>"/webhooks",ieS=async(d,c)=>h(I2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),E2S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/webhooks?${g}`:"/webhooks"},aeS=async(d,c)=>h(E2S(d),{...c,method:"GET"}),D2S=d=>`/webhooks/${d}`,reS=async(d,c)=>h(D2S(d),{...c,method:"GET"}),R2S=d=>`/webhooks/${d}`,leS=async(d,c,g)=>h(R2S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),_2S=d=>`/webhooks/${d}`,deS=async(d,c)=>h(_2S(d),{...c,method:"DELETE"}),N2S=d=>`/webhooks/${d}/test`,ueS=async(d,c)=>h(N2S(d),{...c,method:"POST"});var M2S=d=>`/webhooks/${d}/rotate-secret`,ceS=async(d,c)=>h(M2S(d),{...c,method:"POST"});var ns={create:b(ieS,1),list:X(aeS),get:b(reS,1),update:b(leS,2),delete:b(deS,1),testWebhook:b(ueS,1),rotateWebhookSecret:b(ceS,1)};var U2S=()=>"/white-label-subscriptions",peS=async d=>h(U2S(),{...d,method:"GET"}),P2S=()=>"/white-label-subscriptions/plans",meS=async d=>h(P2S(),{...d,method:"GET"}),C2S=d=>`/white-label-subscriptions/check-feature/${d}`,xeS=async(d,c)=>h(C2S(d),{...c,method:"GET"}),w2S=d=>`/white-label-subscriptions/check-limit/${d}`,geS=async(d,c)=>h(w2S(d),{...c,method:"GET"}),A2S=()=>"/white-label-subscriptions/billing-email",yeS=async(d,c)=>h(A2S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var ss={getCurrentWLSubscription:b(peS,0),list:b(meS,0),checkWLFeature:b(xeS,1),checkWLLimit:b(geS,1),update:b(yeS,1)};var F2S=()=>"/white-labels/current",OeS=async d=>h(F2S(),{...d,method:"GET"}),k2S=()=>"/white-labels/me",veS=async d=>h(k2S(),{...d,method:"GET"});var os={getCurrentWhiteLabel:b(OeS,0),getMyWhiteLabel:b(veS,0)};var De=class{sdkConfig;accountWebhooks=q(Gt,()=>this.sdkConfig);activities=q(Vt,()=>this.sdkConfig);advanceInvoices=q(Kt,()=>this.sdkConfig);businessUnits=q(Zt,()=>this.sdkConfig);companyRegistry=q(qt,()=>this.sdkConfig);creditNotes=q(Wt,()=>this.sdkConfig);currency=q(Yt,()=>this.sdkConfig);customers=q($t,()=>this.sdkConfig);deliveryNotes=q(Qt,()=>this.sdkConfig);documents=q(en,()=>this.sdkConfig);eInvoicing=q(sn,()=>this.sdkConfig);eSlog=q(on,()=>this.sdkConfig);email=q(an,()=>this.sdkConfig);entities=q(rn,()=>this.sdkConfig);entityApiKeys=q(ln,()=>this.sdkConfig);entityInvitations=q(dn,()=>this.sdkConfig);entityStats=q(un,()=>this.sdkConfig);entityUsers=q(cn,()=>this.sdkConfig);estimates=q(pn,()=>this.sdkConfig);expenses=q(mn,()=>this.sdkConfig);exports=q(xn,()=>this.sdkConfig);files=q(gn,()=>this.sdkConfig);finaCertificate=q(yn,()=>this.sdkConfig);finaDevices=q(On,()=>this.sdkConfig);finaPremises=q(vn,()=>this.sdkConfig);finaSettings=q(Sn,()=>this.sdkConfig);financialCategories=q(hn,()=>this.sdkConfig);fursCertificate=q(bn,()=>this.sdkConfig);fursDevices=q(zn,()=>this.sdkConfig);fursInternalAct=q(fn,()=>this.sdkConfig);fursPremises=q(Bn,()=>this.sdkConfig);fursSettings=q(Tn,()=>this.sdkConfig);health=q(In,()=>this.sdkConfig);invoices=q(Dn,()=>this.sdkConfig);items=q(Rn,()=>this.sdkConfig);legacyMigration=q(_n,()=>this.sdkConfig);locale=q(Nn,()=>this.sdkConfig);orderIntegrations=q(Mn,()=>this.sdkConfig);orders=q(Un,()=>this.sdkConfig);paymentReminders=q(Pn,()=>this.sdkConfig);payments=q(Cn,()=>this.sdkConfig);pointOfSale=q(wn,()=>this.sdkConfig);ptAtcudSeries=q(An,()=>this.sdkConfig);ptSafT=q(Fn,()=>this.sdkConfig);purchaseOrders=q(kn,()=>this.sdkConfig);recurringInvoices=q(jn,()=>this.sdkConfig);revenueRecognition=q(Hn,()=>this.sdkConfig);stripeApp=q(Ln,()=>this.sdkConfig);subscriptions=q(Gn,()=>this.sdkConfig);taxRateEstimates=q(Vn,()=>this.sdkConfig);taxReports=q(Kn,()=>this.sdkConfig);taxes=q(Zn,()=>this.sdkConfig);ticketBai=q(qn,()=>this.sdkConfig);transactionType=q(Wn,()=>this.sdkConfig);travelOrders=q(Yn,()=>this.sdkConfig);ujp=q($n,()=>this.sdkConfig);upload=q(Qn,()=>this.sdkConfig);users=q(Jn,()=>this.sdkConfig);veriFactu=q(Xn,()=>this.sdkConfig);vies=q(es,()=>this.sdkConfig);warehouses=q(ts,()=>this.sdkConfig);webhooks=q(ns,()=>this.sdkConfig);whiteLabelSubscriptions=q(ss,()=>this.sdkConfig);whiteLabels=q(os,()=>this.sdkConfig);constructor(c){let g=typeof c=="string"?{accessToken:c}:c,E=typeof g.accessToken=="function"?g.accessToken:()=>g.accessToken;this.sdkConfig={baseUrl:g.basePath??Re,getAccessToken:E,clientName:g.clientName??"js-sdk",onUnauthorized:g.onUnauthorized,requestTimeoutMs:g.requestTimeoutMs,accountId:g.accountId??null};}};function j2S(d){let c=typeof d=="string"?{accessToken:d}:d,g=typeof c.accessToken=="function"?c.accessToken:()=>c.accessToken;AWv({baseUrl:c.basePath??Re,getAccessToken:g,clientName:c.clientName??"js-sdk",onUnauthorized:c.onUnauthorized,requestTimeoutMs:c.requestTimeoutMs}),Lt(c.accountId??null);}
|
|
235
235
|
export{G2S as AccountInfoRole,q2S as AccountWebhookDeliveryStatus,Y2S as AccountWebhookResponseEventsItem,Q2S as AccountWebhookWithSecretEventsItem,K2S as AccountingSettingsVatPeriod,X2S as AddEntityUserBodyRole,tCS as AdvanceInvoiceCalculationMode,sCS as AdvanceInvoiceItemClassification,iCS as AdvanceInvoiceItemType,rCS as AdvanceInvoiceTransactionType,dCS as AttendanceDayKind,cCS as AttendanceDaySickReason,mCS as AuthorizeShopifyBodyAutoProcessOn,gCS as AvailablePlansAllowedPaymentProvidersItem,OCS as AvailablePlansBillingProfile,SCS as AvailablePlansCurrencyCode,bCS as AvailablePlansStripePublishableKeyKind,fCS as BankImportParseErrorCauseCode,TCS as BankStatementImportSourceFormat,ECS as BankStatementImportStatus,RCS as BankTransactionConflictErrorCauseCode,NCS as BankTransactionDetailMatchStatus,UCS as BankTransactionDetailSourceFormat,CCS as BankTransactionMatchInfoDocumentType,ACS as BankTransactionMatchStatus,kCS as BankTransactionSourceFormat,HCS as BankTransactionSuggestedDocumentDocumentType,GCS as BusinessUnitSettingsInputPdfTemplate,KCS as BusinessUnitSettingsPdfTemplate,is as CLIENT_HEADER_NAME,YCS as CalculateDocumentPreviewCalculationMode,QCS as CalculateDocumentPreviewType,XCS as CalculateTravelOrderRouteDistance422Field,qCS as CalculatedItemType,twS as CalculationSettingsDefaultMode,swS as CheckEInvoicingRecipientRequestDocumentType,iwS as CompanyRegistryResultSettingsSloveniaVatProfile,rwS as CompleteAdvanceInvoicePreviewCalculationMode,dwS as CompleteAdvanceInvoicePreviewCreationSource,cwS as CompleteCreditNotePreviewCalculationMode,mwS as CompleteCreditNotePreviewCreationSource,gwS as CompleteDeliveryNotePreviewCalculationMode,OwS as CompleteDeliveryNotePreviewCreationSource,SwS as CompleteEstimatePreviewCalculationMode,bwS as CompleteEstimatePreviewCreationSource,fwS as CompleteEstimatePreviewTitleType,TwS as CompleteInvoicePreviewCalculationMode,EwS as CompleteInvoicePreviewCreationSource,RwS as CompletePurchaseOrderPreviewCalculationMode,NwS as CompletePurchaseOrderPreviewCreationSource,UwS as CreateAccountWebhookBodyEventsItem,CwS as CreateAdvanceInvoiceCalculationMode,AwS as CreateCheckoutRequestBillingInterval,kwS as CreateCreditNoteCalculationMode,HwS as CreateCustomerBodyContactType,GwS as CreateDeliveryNoteCalculationMode,KwS as CreateDocumentItemClassification,qwS as CreateDocumentItemType,YwS as CreateDocumentPaymentType,QwS as CreateEntityApiKeyBodyPurpose,XwS as CreateEntityBodyEnvironment,tAS as CreateEntityBodySettingsPdfTemplate,sAS as CreateEstimateCalculationMode,iAS as CreateEstimateTitleType,rAS as CreateExpenseBodyCalculationMode,dAS as CreateExpenseBodyPaymentsItemType,cAS as CreateExpenseBodyTransactionType,mAS as CreateExpenseBodyType,gAS as CreateExpenseItemClassification,OAS as CreateExpenseItemType,SAS as CreateExpensePaymentBodyType,bAS as CreateFinaInvoiceDataPaymentType,fAS as CreateInvoiceCalculationMode,TAS as CreateItemBodyClassification,EAS as CreateItemBodyUsage,RAS as CreateItemInventoryMovementBodyType,NAS as CreateMigrationJobRequestEnvironment,UAS as CreateMigrationJobResponseStatus,CAS as CreateOrderBodyPaymentStatus,AAS as CreateOrderBodySource,kAS as CreateOrderIntegrationBodySource,HAS as CreatePaymentBodyType,GAS as CreatePtAtcudSeriesBodyDocumentType,KAS as CreatePurchaseOrderCalculationMode,qAS as CreatePurchaseOrderItemClassification,YAS as CreatePurchaseOrderItemType,QAS as CreateRecurringInvoiceBodyFrequency,XAS as CreateTaxPaymentType,tFS as CreateTravelOrderBodyTripType,sFS as CreateWebhookBodyEventsItem,iFS as CreationSource,rFS as CreditNoteCalculationMode,dFS as CreditNoteItemClassification,cFS as CreditNoteItemType,mFS as CreditNoteTransactionType,gFS as CryptoEquivalentCode,OFS as CryptoEquivalentsSettingsCodesItem,SFS as CryptoWalletCode,bFS as CurrentSubscriptionAllowedPaymentProvidersItem,fFS as CurrentSubscriptionBillingProfile,TFS as CurrentSubscriptionCurrencyCode,EFS as CurrentSubscriptionPaymentProvider,RFS as CurrentSubscriptionStripePublishableKeyKind,NFS as CustomCreateAdvanceInvoiceCalculationMode,UFS as CustomCreateCreditNoteCalculationMode,CFS as CustomCreateDeliveryNoteCalculationMode,AFS as CustomCreateEstimateCalculationMode,kFS as CustomCreateEstimateTitleType,HFS as CustomCreateExpenseTransactionType,GFS as CustomCreateExpenseType,KFS as CustomCreateInvoiceCalculationMode,qFS as CustomDocumentItemClassification,YFS as CustomDocumentItemType,QFS as CustomExpenseItemClassification,XFS as CustomExpenseItemType,t5S as CustomExpenseWriteCalculationMode,s5S as CustomExpenseWritePaymentsItemType,i5S as CustomExpenseWriteTransactionType,r5S as CustomExpenseWriteType,d5S as CustomStoreConnectRequestAutoProcessOn,c5S as CustomStoreOrderItemsItemKind,m5S as CustomStoreOrderResultAction,Re as DEFAULT_BASE_URL,g5S as DeleteDocumentType,O5S as DeliveryNoteCalculationMode,S5S as DeliveryNoteItemClassification,b5S as DeliveryNoteItemType,f5S as DeliveryNoteTransactionType,T5S as DocumentCalculationCalculationMode,E5S as DocumentCalculationTransactionType,R5S as DocumentItemEInvoicingVatCategoryCode,N5S as DocumentItemRevenueRecognitionMethod,U5S as DocumentRelationRelatedDocumentTitleType,C5S as DocumentRelationRelatedDocumentType,A5S as DocumentRelationSourceType,k5S as DocumentRelationTargetType,H5S as DocumentVersionDocumentType,G5S as DownloadDocumentEslogType,K5S as DownloadReceivedEInvoiceFormat,q5S as EInvoicingEnrollmentChannel,Y5S as EInvoicingEnrollmentEnvironment,Q5S as EInvoicingEnrollmentState,X5S as EInvoicingRecipientCheckResponseDocumentType,tkS as EmailSenderDomainVerificationStatus,skS as EmailSenderEffectiveSource,ikS as EmailSenderEmailVerificationStatus,rkS as EmailSenderVerificationStatus,dkS as EntityApiKeyEnvironment,ckS as EntityApiKeyListItemEnvironment,mkS as EntityApiKeyListItemPurpose,gkS as EntityApiKeyPurpose,OkS as EntityBankAccountInputType,SkS as EntityBankAccountType,bkS as EntityEnvironment,fkS as EntityInvitationPreviewRole,TkS as EntityInvitationPreviewStatus,EkS as EntityInvitationRole,RkS as EntityInvitationStatus,NkS as EntitySettingsPdfTemplate,UkS as EntitySettingsUpdatePdfTemplate,CkS as EntityUserRole,AkS as EntityUsersAccessAccountRole,kkS as EntityUsersAccessEntityRole,HkS as EslogDataValidationStatus,GkS as EslogExportByDateRangeTypesItem,KkS as EstimateCalculationMode,qkS as EstimateItemClassification,YkS as EstimateItemType,QkS as EstimateTitleType,XkS as EstimateTransactionType,tjS as EuOssReportResponseEligibilityReason,sjS as EuOssReportResponseNoticesItem,ijS as EuOssThresholdAmount,rjS as EuOssThresholdCurrencyCode,djS as EuOssThresholdStatus,cjS as ExpenseCategoryReportResponseBasis,mjS as ExpenseCategoryReportResponseCalculationMode,gjS as ExpenseCategoryReportResponseGroupBy,OjS as ExpenseImportDraftItemClassification,SjS as ExpenseImportDraftItemType,bjS as ExpenseImportResultAttachmentStatus,fjS as ExpenseImportSourceDocumentType,TjS as ExpenseImportWarningCode,EjS as ExpenseInboundEmailAttachmentMode,RjS as ExpenseInboundEmailMessageStatus,NjS as ExpenseItemClassification,UjS as ExpenseItemRecognitionMethod,CjS as ExpenseItemType,AjS as ExpensePaymentOpenBalanceErrorCauseCode,kjS as ExpenseRecognitionJobSimulationMode,HjS as ExpenseRecognitionJobStatus,GjS as ExpenseRecognitionJobWarningsItemCode,KjS as ExpenseRecognitionSettingsDefaultMethod,qjS as ExpenseRecognitionSettingsResponseDefaultMethod,YjS as ExpenseSummaryClassification,QjS as ExpenseType,XjS as ExportDocumentsFormat,tHS as ExportDocumentsLanguage,sHS as ExportDocumentsType,iHS as ExportExpensesDateBasis,rHS as ExportExpensesFormat,dHS as ExportExpensesLanguage,cHS as ExportInventoryFormat,mHS as ExportInventoryLanguage,gHS as ExportPosDailyReportFormat,OHS as ExportPosDailyReportLanguage,SHS as ExportPosMonthlyReportFormat,bHS as ExportPosMonthlyReportLanguage,fHS as ExportRevenueByCategoryFormat,THS as ExportRevenueByCategoryLanguage,EHS as ExportSalesPerItemFormat,RHS as ExportSalesPerItemLanguage,NHS as ExportVatReturnFormat,UHS as FilingKind,CHS as FilingObligationType,AHS as FilingState,kHS as FilingStatus,HHS as FilingVerification,GHS as FinaFiscalizationResponseDataPaymentChangeUnconfirmedReason,KHS as FinaFiscalizationResponseStatus,qHS as FinalizeDocumentType,iLS as FiscalRecoveryErrorCauseCode,YHS as FiscalizationProviderErrorCauseProvider,QHS as FiscalizationProviderErrorCauseType,XHS as FiscalizationProviderErrorCode,tLS as FiscalizeDocumentType,sLS as FiscalizedOutputRegistrationFiscalizationProvider,rLS as FrenchEReportingRecordKind,dLS as FrenchEReportingRecordStatus,cLS as FursFiscalizationResponseStatus,mLS as FursPremiseSuccessResponseEnvironment,gLS as GeneratePtSaftReportMode,OLS as GermanEInvoicingDataValidationStatus,SLS as GetActivePtAtcudSeriesDocumentType,bLS as GetActivities200DataItemActorType,fLS as GetEntitiesEnvironment,TLS as GetEslogExportStatus200Status,ELS as GetExpenseCategoryReportBasis,RLS as GetExpenseCategoryReportGroupBy,NLS as GetFilesCategory,ULS as GetFinaSettings200CertificateStatus,CLS as GetFinaSettings200NumberingSequence,ALS as GetFursSettings200CertificateStatus,kLS as GetFursSettings200NumberingStrategy,HLS as GetItemsImportTemplateFormat,GLS as GetItemsImportTemplateLanguage,KLS as GetItemsUsage,qLS as GetLegacyMigrationOrganization200UnsupportedItemCode,YLS as GetNextDocumentNumberType,QLS as GetPaymentRemindersStatus,XLS as GetPaymentRemindersTrigger,t1S as GetPdfExportStatus200Status,s1S as GetRevenueRecognitionDetailsBasis,i1S as GetRevenueRecognitionDetailsGroupBy,r1S as GetRevenueRecognitionReportBasis,d1S as GetRevenueRecognitionReportGroupBy,c1S as GetShareableAdvanceInvoiceHtmlLanguage,m1S as GetShareableAdvanceInvoiceHtmlLocale,g1S as GetShareableAdvanceInvoicePdfLanguage,O1S as GetShareableAdvanceInvoicePdfLocale,S1S as GetShareableCreditNoteHtmlLanguage,b1S as GetShareableCreditNoteHtmlLocale,f1S as GetShareableCreditNotePdfLanguage,T1S as GetShareableCreditNotePdfLocale,E1S as GetShareableDeliveryNoteHtmlLanguage,R1S as GetShareableDeliveryNoteHtmlLocale,N1S as GetShareableDeliveryNotePdfLanguage,U1S as GetShareableDeliveryNotePdfLocale,C1S as GetShareableEstimateHtmlLanguage,A1S as GetShareableEstimateHtmlLocale,k1S as GetShareableEstimatePdfLanguage,H1S as GetShareableEstimatePdfLocale,G1S as GetShareableInvoiceHtmlLanguage,K1S as GetShareableInvoiceHtmlLocale,q1S as GetShareableInvoicePdfLanguage,Y1S as GetShareableInvoicePdfLocale,Q1S as GetShareablePurchaseOrderHtmlLanguage,X1S as GetShareablePurchaseOrderHtmlLocale,t4S as GetShareablePurchaseOrderPdfLanguage,s4S as GetShareablePurchaseOrderPdfLocale,i4S as GetSloveniaTaxProfile200AccountingExportsPreferredFormat,r4S as GetSloveniaTaxProfile200BusinessForm,d4S as GetSloveniaTaxProfile200BusinessFormSource,c4S as GetSloveniaTaxProfile200IncomeTaxRegime,m4S as GetSloveniaTaxProfile200InferredBusinessForm,g4S as GetSloveniaTaxProfile200TaxResidency,O4S as GetSloveniaTaxProfile200VatProfile,S4S as GetSloveniaTaxProfile200YearlyReportingAccountingType,b4S as GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,f4S as ImportBankStatementBodySourceFormat,T4S as InventoryMovementResponseType,E4S as InvoiceCalculationMode,R4S as InvoiceItemClassification,N4S as InvoiceItemType,U4S as InvoiceTransactionType,C4S as ItalyLineTaxDataNature,A4S as ItemClassification,G4S as ItemUsage,k4S as ItemsImportReportRowsItemAction,H4S as ItemsImportReportRowsItemStock,K4S as KsefDocumentDataStatus,q4S as KsefEntitySettingsObligation,Y4S as KsefSettingsResponseEnvironment,Q4S as KsefSettingsResponseObligation,X4S as LegacyAuthResponseOrganizationsItemUnsupportedItemCode,tGS as LegalDetailsLegalForm,sGS as LineDiscountInputType,iGS as LineDiscountType,rGS as LinkBankTransactionBodyDocumentType,dGS as ListAccountFilingsCalendarEnvironment,cGS as ListEmployeesStatus,mGS as ListPtAtcudSeriesDocumentType,gGS as ListReceivedEInvoicesState,OGS as ListRevenueRecognitionLinesBasis,SGS as ListRevenueRecognitionLinesGroupBy,JTS as MAX_LIST_ALL_PAGES,bGS as MagentoAuthorizationStatusFailureReason,fGS as MagentoAuthorizationStatusStatus,TGS as MagentoAuthorizeRequestAutoProcessOn,EGS as MigrationJobResponseStatus,RGS as ModifyEmployeeBodyCommuteMode,NGS as ModifyEmployeeBodyEmploymentType,UGS as ModifyEmployeeBodyGeneralAllowanceMode,CGS as ModifyEmployeeBodyStatus,AGS as ModifyEmployeeBodyTaxResidency,kGS as MovablePremisePremiseType,HGS as NavAnnulmentRequestAnnulmentCode,GGS as NavDocumentDataOperation,KGS as NavDocumentMessageSeverity,qGS as NavDocumentStatus,YGS as NavEnvironment,QGS as NavErrorBodyConflictsItemSource,XGS as NavErrorBodyConflictsItemTypesItem0,t3S as NavErrorBodyConflictsItemTypesItem1,s3S as NavInvoiceAppearance,i3S as NavObligation,r3S as NavVatTreatmentDomesticReverseChargeType,d3S as NavVatTreatmentExemptionCase,c3S as NavVatTreatmentExemptionType,m3S as NavVatTreatmentNoVatChargeType,g3S as NavVatTreatmentOutOfScopeCase,O3S as NavVatTreatmentOutOfScopeType,S3S as OrderBasePaymentStatus,b3S as OrderBaseSource,f3S as OrderBaseStatus,T3S as OrderIntegrationBaseAutoProcessOn,E3S as OrderIntegrationBaseSource,R3S as OrderItemKind,N3S as PartialAdvanceInvoicePreviewCalculationMode,U3S as PartialAdvanceInvoicePreviewCreationSource,C3S as PartialAdvanceInvoicePreviewItemsItemClassification,A3S as PartialAdvanceInvoicePreviewItemsItemDiscountsItemType,k3S as PartialAdvanceInvoicePreviewItemsItemType,H3S as PartialCreditNotePreviewCalculationMode,G3S as PartialCreditNotePreviewCreationSource,K3S as PartialCreditNotePreviewItemsItemClassification,q3S as PartialCreditNotePreviewItemsItemDiscountsItemType,Y3S as PartialCreditNotePreviewItemsItemType,Q3S as PartialDeliveryNotePreviewCalculationMode,X3S as PartialDeliveryNotePreviewCreationSource,tVS as PartialDeliveryNotePreviewItemsItemClassification,sVS as PartialDeliveryNotePreviewItemsItemDiscountsItemType,iVS as PartialDeliveryNotePreviewItemsItemType,rVS as PartialEstimatePreviewCalculationMode,dVS as PartialEstimatePreviewCreationSource,cVS as PartialEstimatePreviewItemsItemClassification,mVS as PartialEstimatePreviewItemsItemDiscountsItemType,gVS as PartialEstimatePreviewItemsItemType,OVS as PartialEstimatePreviewTitleType,SVS as PartialInvoicePreviewCalculationMode,bVS as PartialInvoicePreviewCreationSource,fVS as PartialInvoicePreviewItemsItemClassification,TVS as PartialInvoicePreviewItemsItemDiscountsItemType,EVS as PartialInvoicePreviewItemsItemType,RVS as PartialPurchaseOrderPreviewCalculationMode,NVS as PartialPurchaseOrderPreviewCreationSource,UVS as PartialPurchaseOrderPreviewItemsItemClassification,CVS as PartialPurchaseOrderPreviewItemsItemDiscountsItemType,AVS as PartialPurchaseOrderPreviewItemsItemType,kVS as PatchEntityBodySettingsPdfTemplate,HVS as PatchMeBodyLocale,GVS as PaymentReminderStatus,KVS as PaymentReminderTrigger,qVS as PaymentType,YVS as PdfExportByDateRangeLanguage,QVS as PdfExportByDateRangeLocale,XVS as PdfExportByDateRangeTypesItem,tKS as PdfExportByDocumentIdsLanguage,sKS as PdfExportByDocumentIdsLocale,iKS as PermanentDeleteDocumentType,rKS as PosTabConflictCode,dKS as PosTabResponseStatus,cKS as PreviewTravelOrderBodyTripType,mKS as PtAtcudSeriesDocumentType,gKS as PurchaseOrderBusinessUnitSettingsInputPdfTemplate,OKS as PurchaseOrderCalculationMode,SKS as PurchaseOrderItemClassification,bKS as PurchaseOrderItemType,fKS as PurchaseOrderTransactionType,TKS as PurchaseOrderVersionDocumentType,EKS as PutKsefCredentialEnvironment,RKS as ReceivedEInvoiceAttachmentStatus,NKS as ReceivedEInvoiceLifecycleRequestAction,UKS as ReceivedEInvoiceLifecycleRequestReasonCode,CKS as ReceivedEInvoiceState,AKS as RecurringInvoiceBaseFrequency,kKS as RecurringInvoiceBaseStatus,HKS as RegisterDocumentOutputType,GKS as RegisterEmployeeBodyCommuteMode,KKS as RegisterEmployeeBodyEmploymentType,qKS as RegisterEmployeeBodyGeneralAllowanceMode,YKS as RegisterEmployeeBodyStatus,QKS as RegisterEmployeeBodyTaxResidency,XKS as RegisterFursMovablePremiseBodyMovablePremisePremiseType,tZS as RenderAdvanceInvoicePreviewEpcQrEnabled,sZS as RenderAdvanceInvoicePreviewHub3QrEnabled,iZS as RenderAdvanceInvoicePreviewPartial,rZS as RenderAdvanceInvoicePreviewSwissQrBillEnabled,dZS as RenderAdvanceInvoicePreviewTemplate,cZS as RenderAdvanceInvoicePreviewUpnQrDisplayMode,mZS as RenderAdvanceInvoicePreviewUpnQrEnabled,gZS as RenderCreditNotePreviewEpcQrEnabled,OZS as RenderCreditNotePreviewHub3QrEnabled,SZS as RenderCreditNotePreviewPartial,bZS as RenderCreditNotePreviewSwissQrBillEnabled,fZS as RenderCreditNotePreviewTemplate,TZS as RenderCreditNotePreviewUpnQrDisplayMode,EZS as RenderCreditNotePreviewUpnQrEnabled,RZS as RenderDeliveryNotePreviewEpcQrEnabled,NZS as RenderDeliveryNotePreviewHub3QrEnabled,UZS as RenderDeliveryNotePreviewPartial,CZS as RenderDeliveryNotePreviewSwissQrBillEnabled,AZS as RenderDeliveryNotePreviewTemplate,kZS as RenderDeliveryNotePreviewUpnQrDisplayMode,HZS as RenderDeliveryNotePreviewUpnQrEnabled,GZS as RenderDocumentHtmlTemplate,KZS as RenderDocumentPdfTemplate,qZS as RenderEstimatePreviewEpcQrEnabled,YZS as RenderEstimatePreviewHub3QrEnabled,QZS as RenderEstimatePreviewPartial,XZS as RenderEstimatePreviewSwissQrBillEnabled,tqS as RenderEstimatePreviewTemplate,sqS as RenderEstimatePreviewUpnQrDisplayMode,iqS as RenderEstimatePreviewUpnQrEnabled,rqS as RenderInvoicePreviewEpcQrEnabled,dqS as RenderInvoicePreviewHub3QrEnabled,cqS as RenderInvoicePreviewPartial,mqS as RenderInvoicePreviewSwissQrBillEnabled,gqS as RenderInvoicePreviewTemplate,OqS as RenderInvoicePreviewUpnQrDisplayMode,SqS as RenderInvoicePreviewUpnQrEnabled,bqS as RenderPurchaseOrderPreviewEpcQrEnabled,fqS as RenderPurchaseOrderPreviewHub3QrEnabled,TqS as RenderPurchaseOrderPreviewPartial,EqS as RenderPurchaseOrderPreviewSwissQrBillEnabled,RqS as RenderPurchaseOrderPreviewTemplate,NqS as RenderPurchaseOrderPreviewUpnQrDisplayMode,UqS as RenderPurchaseOrderPreviewUpnQrEnabled,CqS as RenderTravelOrderPreviewBodyTripType,AqS as ReplaceEmployeeAttendanceBodyDaysItemKind,kqS as ReplaceEmployeeAttendanceBodyDaysItemSickReason,HqS as RestoreDocumentType,GqS as RevenueRecognitionDetailsResponseCalculationMode,KqS as RevenueRecognitionLinesResponseCalculationMode,qqS as RevenueRecognitionReportResponseBasis,YqS as RevenueRecognitionReportResponseCalculationMode,QqS as RevenueRecognitionReportResponseGroupBy,XqS as RevenueRecognitionSettingsDefaultMethod,tWS as RevenueRecognitionSettingsResponseDefaultMethod,sWS as ReviewSloveniaYearlyNormiraniReport200FilingKind,iWS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType,rWS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer,dWS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity,cWS as ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat,mWS as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm,gWS as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource,OWS as ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime,SWS as ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm,bWS as ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency,fWS as ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile,TWS as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType,EWS as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis,RWS as ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity,NWS as SdiLifecycleDataCountryCode,UWS as SdiLifecycleDataStatus,CWS as SendDocument200Status,AWS as SendEmail200Status,kWS as SendEmailBodyLanguage,HWS as SendEmailBodyLocale,GWS as SendPaymentReminderBodyLocale,KWS as SendPaymentReminderResponseStatus,qWS as SloveniaAccountingExportsSettingsPreferredFormat,YWS as SloveniaEntitySettingsBusinessForm,QWS as SloveniaEntitySettingsIncomeTaxRegime,XWS as SloveniaEntitySettingsTaxResidency,t6S as SloveniaEntitySettingsVatProfile,s6S as SloveniaYearlyReportingSettingsAccountingType,i6S as SloveniaYearlyReportingSettingsNormiranecInsuranceBasis,De as SpaceInvoices,r6S as StartEslogExport202Status,d6S as StartPdfExport202Status,c6S as StatsQueryRequestMetricsItemType,m6S as StatsQueryRequestOrderByItemDirection,g6S as StatsQueryRequestTable,O6S as StripeAppConnectionEntityEnvironment,S6S as StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem,b6S as StripeAppUpdateSettingsBodyAutoInvoiceEventsItem,f6S as SubscriptionTier,T6S as SyncOrderIntegrationResponseCompletionState,E6S as SyncShopifyOrdersResponseCompletionState,R6S as TaxPaymentType,N6S as TicketBaiDocumentDataExemptionCause,U6S as TicketBaiDocumentDataNonSubjectCause,C6S as TicketBaiDocumentDataOperationType,A6S as TicketBaiDocumentDataRecipientIdType,k6S as TicketBaiDocumentDataRectificationCode,H6S as TicketBaiDocumentDataStatus,G6S as TicketBaiDocumentDataTaxTreatment,K6S as TicketBaiDocumentDataVatRegime,q6S as TicketBaiDocumentInputExemptionCause,Y6S as TicketBaiDocumentInputNonSubjectCause,Q6S as TicketBaiDocumentInputOperationType,X6S as TicketBaiDocumentInputRecipientIdType,t7S as TicketBaiDocumentInputRectificationCode,s7S as TicketBaiDocumentInputTaxTreatment,i7S as TicketBaiDocumentInputVatRegime,r7S as TicketBaiRecordDocumentType,d7S as TicketBaiRecordEnvironment,c7S as TicketBaiRecordOperation,m7S as TicketBaiRecordRecentAttemptsItemKind,g7S as TicketBaiRecordRecentAttemptsItemStatus,O7S as TicketBaiRecordStatus,S7S as TicketBaiRecordTerritory,b7S as TicketBaiSettingsBlockersItem,f7S as TicketBaiSettingsEnvironment,T7S as TicketBaiSettingsLroeModel,E7S as TicketBaiSettingsTerritory,R7S as TransactionTypeCheckRequestItemsItemClassification,N7S as TransactionTypeCheckRequestItemsItemType,U7S as TransactionTypeCheckRequestSupplyType,C7S as TransactionTypeCheckResponseSupplyScope,A7S as TransactionTypeCheckResponseTransactionType,k7S as TransactionTypeCheckResponseWarningCode,H7S as TravelOrderCostType,G7S as TravelOrderCurrencyCode,K7S as TravelOrderPerDiemBand,q7S as TravelOrderRouteDistanceProvider,Y7S as TravelOrderStatus,Q7S as TravelOrderTransport,X7S as TravelOrderTripType,t9S as UjpDataValidationStatus,s9S as UpdateAccountWebhookBodyEventsItem,i9S as UpdateCustomerBodyContactType,r9S as UpdateEntityUserRoleBodyRole,d9S as UpdateEstimateTitleType,c9S as UpdateExpenseBodyCalculationMode,m9S as UpdateExpenseBodyTransactionType,g9S as UpdateExpenseBodyType,O9S as UpdateExpenseRecognitionSettingsDefaultMethod,S9S as UpdateFinaSettings200CertificateStatus,b9S as UpdateFinaSettings200NumberingSequence,f9S as UpdateFinaSettingsBodyNumberingSequence,T9S as UpdateFursSettings200CertificateStatus,E9S as UpdateFursSettings200NumberingStrategy,R9S as UpdateFursSettingsBodyNumberingStrategy,N9S as UpdateItemBodyClassification,U9S as UpdateItemBodyUsage,C9S as UpdateKsefSettingsObligation,A9S as UpdateNavSettingsInvoiceAppearance,k9S as UpdateNavSettingsObligation,H9S as UpdateOrderBodyPaymentStatus,G9S as UpdateOrderIntegrationBodyAutoProcessOn,K9S as UpdatePaymentBodyType,q9S as UpdateRecurringInvoiceBodyFrequency,Y9S as UpdateRevenueRecognitionSettingsDefaultMethod,Q9S as UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat,X9S as UpdateSloveniaTaxProfile200BusinessForm,t8S as UpdateSloveniaTaxProfile200BusinessFormSource,s8S as UpdateSloveniaTaxProfile200IncomeTaxRegime,i8S as UpdateSloveniaTaxProfile200InferredBusinessForm,r8S as UpdateSloveniaTaxProfile200TaxResidency,d8S as UpdateSloveniaTaxProfile200VatProfile,c8S as UpdateSloveniaTaxProfile200YearlyReportingAccountingType,m8S as UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,g8S as UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat,O8S as UpdateSloveniaTaxProfileBodyBusinessForm,S8S as UpdateSloveniaTaxProfileBodyIncomeTaxRegime,b8S as UpdateSloveniaTaxProfileBodyTaxResidency,f8S as UpdateSloveniaTaxProfileBodyVatProfile,T8S as UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType,E8S as UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis,R8S as UpdateTaxPaymentType,N8S as UpdateTicketBaiSettingsLroeModel,U8S as UpdateTicketBaiSettingsTerritory,C8S as UpdateTravelOrderBodyTransport,A8S as UpdateTravelOrderBodyTripType,k8S as UpdateVerifactuSettingsTerritory,H8S as UpdateWebhookBodyEventsItem,G8S as UploadFileBodyCategory,K8S as UpnQrSettingsDisplayMode,q8S as ValidateDocumentEslogType,Y8S as ValidationErrorConflictsItemSource,Q8S as ValidationErrorConflictsItemTypesItem0,X8S as ValidationErrorConflictsItemTypesItem1,tYS as VatReturnPreviewVatPeriodSetting,sYS as VatReturnStatus,iYS as VatReturnVatPeriodSetting,rYS as VerifactuDocumentInputCustomerIdType,dYS as VerifactuDocumentInputInvoiceType,cYS as VerifactuDocumentInputTaxTreatmentsItemQualification,mYS as VerifactuDocumentInputTaxTreatmentsItemTax,gYS as VerifactuDocumentStatus,OYS as VerifactuEvidenceKind,SYS as VerifactuSettingsEligibility,bYS as VerifactuSettingsEnvironment,fYS as VerifactuSettingsTerritory,TYS as WebhookDeliveryStatus,EYS as WebhookResponseEventsItem,RYS as WebhookWithSecretEventsItem,NYS as WhiteLabelConfigEnvironment,UYS as WhiteLabelPlanCurrencyCode,CYS as WooCommerceAuthorizeRequestAutoProcessOn,Gt as accountWebhooks,Vt as activities,Kt as advanceInvoices,Zt as businessUnits,qt as companyRegistry,Wt as creditNotes,Yt as currency,$t as customers,De as default,Qt as deliveryNotes,en as documents,En as downloadBlob,sn as eInvoicing,on as eSlog,an as email,rn as entities,ln as entityApiKeys,dn as entityInvitations,un as entityStats,cn as entityUsers,pn as estimates,mn as expenses,xn as exports,gn as files,yn as finaCertificate,On as finaDevices,vn as finaPremises,Sn as finaSettings,hn as financialCategories,bn as fursCertificate,zn as fursDevices,fn as fursInternalAct,Bn as fursPremises,Tn as fursSettings,WTS as getAccountId,Ne as getClientHeaders,In as health,j2S as initSDK,Dn as invoices,Rn as items,_n as legacyMigration,tIS as listAll,Nn as locale,Mn as orderIntegrations,Un as orders,Pn as paymentReminders,Cn as payments,wn as pointOfSale,An as ptAtcudSeries,Fn as ptSafT,kn as purchaseOrders,jn as recurringInvoices,Hn as revenueRecognition,Lt as setAccountId,Ln as stripeApp,Gn as subscriptions,Vn as taxRateEstimates,Kn as taxReports,Zn as taxes,qn as ticketBai,Wn as transactionType,Yn as travelOrders,$n as ujp,Qn as upload,Jn as users,Xn as veriFactu,es as vies,ts as warehouses,ns as webhooks,ss as whiteLabelSubscriptions,os as whiteLabels,wWv as zod};
|